autotool.patch 2.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libxkbfile-1.0.6.orig/aclocal.m4 libxkbfile-1.0.6/aclocal.m4
  6. --- libxkbfile-1.0.6.orig/aclocal.m4 2009-10-07 02:09:21.000000000 +0200
  7. +++ libxkbfile-1.0.6/aclocal.m4 2011-02-19 11:59:13.473558697 +0100
  8. @@ -1,4 +1,4 @@
  9. -# generated automatically by aclocal 1.11 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13. @@ -13,5467 +13,6385 @@
  14. m4_ifndef([AC_AUTOCONF_VERSION],
  15. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  16. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  17. -[m4_warning([this file was generated for autoconf 2.63.
  18. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  19. +[m4_warning([this file was generated for autoconf 2.65.
  20. You have another version of autoconf. It may work, but is not guaranteed to.
  21. If you have problems, you may need to regenerate the build system entirely.
  22. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  23. -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  24. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  25. #
  26. -# This file is free software; the Free Software Foundation
  27. -# gives unlimited permission to copy and/or distribute it,
  28. -# with or without modifications, as long as this notice is preserved.
  29. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  31. +# Written by Gordon Matzigkeit, 1996
  32. +#
  33. +# This file is free software; the Free Software Foundation gives
  34. +# unlimited permission to copy and/or distribute it, with or without
  35. +# modifications, as long as this notice is preserved.
  36. +
  37. +m4_define([_LT_COPYING], [dnl
  38. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40. +# Written by Gordon Matzigkeit, 1996
  41. +#
  42. +# This file is part of GNU Libtool.
  43. +#
  44. +# GNU Libtool is free software; you can redistribute it and/or
  45. +# modify it under the terms of the GNU General Public License as
  46. +# published by the Free Software Foundation; either version 2 of
  47. +# the License, or (at your option) any later version.
  48. +#
  49. +# As a special exception to the GNU General Public License,
  50. +# if you distribute this file as part of a program or library that
  51. +# is built using GNU Libtool, you may include this file under the
  52. +# same distribution terms that you use for the rest of that program.
  53. +#
  54. +# GNU Libtool is distributed in the hope that it will be useful,
  55. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  56. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  57. +# GNU General Public License for more details.
  58. +#
  59. +# You should have received a copy of the GNU General Public License
  60. +# along with GNU Libtool; see the file COPYING. If not, a copy
  61. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  62. +# obtained by writing to the Free Software Foundation, Inc.,
  63. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  64. +])
  65. -# AM_AUTOMAKE_VERSION(VERSION)
  66. -# ----------------------------
  67. -# Automake X.Y traces this macro to ensure aclocal.m4 has been
  68. -# generated from the m4 files accompanying Automake X.Y.
  69. -# (This private macro should not be called outside this file.)
  70. -AC_DEFUN([AM_AUTOMAKE_VERSION],
  71. -[am__api_version='1.11'
  72. -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  73. -dnl require some minimum version. Point them to the right macro.
  74. -m4_if([$1], [1.11], [],
  75. - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  76. +# serial 56 LT_INIT
  77. +
  78. +
  79. +# LT_PREREQ(VERSION)
  80. +# ------------------
  81. +# Complain and exit if this libtool version is less that VERSION.
  82. +m4_defun([LT_PREREQ],
  83. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  84. + [m4_default([$3],
  85. + [m4_fatal([Libtool version $1 or higher is required],
  86. + 63)])],
  87. + [$2])])
  88. +
  89. +
  90. +# _LT_CHECK_BUILDDIR
  91. +# ------------------
  92. +# Complain if the absolute build directory name contains unusual characters
  93. +m4_defun([_LT_CHECK_BUILDDIR],
  94. +[case `pwd` in
  95. + *\ * | *\ *)
  96. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  97. +esac
  98. ])
  99. -# _AM_AUTOCONF_VERSION(VERSION)
  100. -# -----------------------------
  101. -# aclocal traces this macro to find the Autoconf version.
  102. -# This is a private macro too. Using m4_define simplifies
  103. -# the logic in aclocal, which can simply ignore this definition.
  104. -m4_define([_AM_AUTOCONF_VERSION], [])
  105. -# AM_SET_CURRENT_AUTOMAKE_VERSION
  106. -# -------------------------------
  107. -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  108. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  109. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  110. -[AM_AUTOMAKE_VERSION([1.11])dnl
  111. -m4_ifndef([AC_AUTOCONF_VERSION],
  112. - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  113. -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  114. +# LT_INIT([OPTIONS])
  115. +# ------------------
  116. +AC_DEFUN([LT_INIT],
  117. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  118. +AC_BEFORE([$0], [LT_LANG])dnl
  119. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  120. +AC_BEFORE([$0], [LTDL_INIT])dnl
  121. +m4_require([_LT_CHECK_BUILDDIR])dnl
  122. +
  123. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  124. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  125. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  126. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  127. +dnl unless we require an AC_DEFUNed macro:
  128. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  129. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  130. +AC_REQUIRE([LTVERSION_VERSION])dnl
  131. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  132. +m4_require([_LT_PROG_LTMAIN])dnl
  133. -# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  134. +dnl Parse OPTIONS
  135. +_LT_SET_OPTIONS([$0], [$1])
  136. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  137. -#
  138. -# This file is free software; the Free Software Foundation
  139. -# gives unlimited permission to copy and/or distribute it,
  140. -# with or without modifications, as long as this notice is preserved.
  141. +# This can be used to rebuild libtool when needed
  142. +LIBTOOL_DEPS="$ltmain"
  143. -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  144. -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  145. -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  146. -#
  147. -# Of course, Automake must honor this variable whenever it calls a
  148. -# tool from the auxiliary directory. The problem is that $srcdir (and
  149. -# therefore $ac_aux_dir as well) can be either absolute or relative,
  150. -# depending on how configure is run. This is pretty annoying, since
  151. -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  152. -# source directory, any form will work fine, but in subdirectories a
  153. -# relative path needs to be adjusted first.
  154. -#
  155. -# $ac_aux_dir/missing
  156. -# fails when called from a subdirectory if $ac_aux_dir is relative
  157. -# $top_srcdir/$ac_aux_dir/missing
  158. -# fails if $ac_aux_dir is absolute,
  159. -# fails when called from a subdirectory in a VPATH build with
  160. -# a relative $ac_aux_dir
  161. -#
  162. -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  163. -# are both prefixed by $srcdir. In an in-source build this is usually
  164. -# harmless because $srcdir is `.', but things will broke when you
  165. -# start a VPATH build or use an absolute $srcdir.
  166. -#
  167. -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  168. -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  169. -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  170. -# and then we would define $MISSING as
  171. -# MISSING="\${SHELL} $am_aux_dir/missing"
  172. -# This will work as long as MISSING is not called from configure, because
  173. -# unfortunately $(top_srcdir) has no meaning in configure.
  174. -# However there are other variables, like CC, which are often used in
  175. -# configure, and could therefore not use this "fixed" $ac_aux_dir.
  176. -#
  177. -# Another solution, used here, is to always expand $ac_aux_dir to an
  178. -# absolute PATH. The drawback is that using absolute paths prevent a
  179. -# configured tree to be moved without reconfiguration.
  180. +# Always use our own libtool.
  181. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  182. +AC_SUBST(LIBTOOL)dnl
  183. -AC_DEFUN([AM_AUX_DIR_EXPAND],
  184. -[dnl Rely on autoconf to set up CDPATH properly.
  185. -AC_PREREQ([2.50])dnl
  186. -# expand $ac_aux_dir to an absolute path
  187. -am_aux_dir=`cd $ac_aux_dir && pwd`
  188. +_LT_SETUP
  189. +
  190. +# Only expand once:
  191. +m4_define([LT_INIT])
  192. +])# LT_INIT
  193. +
  194. +# Old names:
  195. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  196. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  197. +dnl aclocal-1.4 backwards compatibility:
  198. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  199. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  200. +
  201. +
  202. +# _LT_CC_BASENAME(CC)
  203. +# -------------------
  204. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  205. +m4_defun([_LT_CC_BASENAME],
  206. +[for cc_temp in $1""; do
  207. + case $cc_temp in
  208. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  209. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  210. + \-*) ;;
  211. + *) break;;
  212. + esac
  213. +done
  214. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  215. ])
  216. -# AM_CONDITIONAL -*- Autoconf -*-
  217. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  218. -# Free Software Foundation, Inc.
  219. -#
  220. -# This file is free software; the Free Software Foundation
  221. -# gives unlimited permission to copy and/or distribute it,
  222. -# with or without modifications, as long as this notice is preserved.
  223. +# _LT_FILEUTILS_DEFAULTS
  224. +# ----------------------
  225. +# It is okay to use these file commands and assume they have been set
  226. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  227. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  228. +[: ${CP="cp -f"}
  229. +: ${MV="mv -f"}
  230. +: ${RM="rm -f"}
  231. +])# _LT_FILEUTILS_DEFAULTS
  232. -# serial 9
  233. -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  234. -# -------------------------------------
  235. -# Define a conditional.
  236. -AC_DEFUN([AM_CONDITIONAL],
  237. -[AC_PREREQ(2.52)dnl
  238. - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  239. - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  240. -AC_SUBST([$1_TRUE])dnl
  241. -AC_SUBST([$1_FALSE])dnl
  242. -_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  243. -_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  244. -m4_define([_AM_COND_VALUE_$1], [$2])dnl
  245. -if $2; then
  246. - $1_TRUE=
  247. - $1_FALSE='#'
  248. -else
  249. - $1_TRUE='#'
  250. - $1_FALSE=
  251. +# _LT_SETUP
  252. +# ---------
  253. +m4_defun([_LT_SETUP],
  254. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  255. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  256. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  257. +_LT_DECL([], [host], [0])dnl
  258. +_LT_DECL([], [host_os], [0])dnl
  259. +dnl
  260. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  261. +_LT_DECL([], [build], [0])dnl
  262. +_LT_DECL([], [build_os], [0])dnl
  263. +dnl
  264. +AC_REQUIRE([AC_PROG_CC])dnl
  265. +AC_REQUIRE([LT_PATH_LD])dnl
  266. +AC_REQUIRE([LT_PATH_NM])dnl
  267. +dnl
  268. +AC_REQUIRE([AC_PROG_LN_S])dnl
  269. +test -z "$LN_S" && LN_S="ln -s"
  270. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  271. +dnl
  272. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  273. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  274. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  275. +dnl
  276. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  277. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  278. +m4_require([_LT_CMD_RELOAD])dnl
  279. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  280. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  281. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  282. +
  283. +_LT_CONFIG_LIBTOOL_INIT([
  284. +# See if we are running on zsh, and set the options which allow our
  285. +# commands through without removal of \ escapes INIT.
  286. +if test -n "\${ZSH_VERSION+set}" ; then
  287. + setopt NO_GLOB_SUBST
  288. +fi
  289. +])
  290. +if test -n "${ZSH_VERSION+set}" ; then
  291. + setopt NO_GLOB_SUBST
  292. fi
  293. -AC_CONFIG_COMMANDS_PRE(
  294. -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  295. - AC_MSG_ERROR([[conditional "$1" was never defined.
  296. -Usually this means the macro was only invoked conditionally.]])
  297. -fi])])
  298. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  299. -# Free Software Foundation, Inc.
  300. -#
  301. -# This file is free software; the Free Software Foundation
  302. -# gives unlimited permission to copy and/or distribute it,
  303. -# with or without modifications, as long as this notice is preserved.
  304. +_LT_CHECK_OBJDIR
  305. -# serial 10
  306. +m4_require([_LT_TAG_COMPILER])dnl
  307. +_LT_PROG_ECHO_BACKSLASH
  308. -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  309. -# written in clear, in which case automake, when reading aclocal.m4,
  310. -# will think it sees a *use*, and therefore will trigger all it's
  311. -# C support machinery. Also note that it means that autoscan, seeing
  312. -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  313. +case $host_os in
  314. +aix3*)
  315. + # AIX sometimes has problems with the GCC collect2 program. For some
  316. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  317. + # vanish in a puff of smoke.
  318. + if test "X${COLLECT_NAMES+set}" != Xset; then
  319. + COLLECT_NAMES=
  320. + export COLLECT_NAMES
  321. + fi
  322. + ;;
  323. +esac
  324. +# Sed substitution that helps us do robust quoting. It backslashifies
  325. +# metacharacters that are still active within double-quoted strings.
  326. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  327. -# _AM_DEPENDENCIES(NAME)
  328. -# ----------------------
  329. -# See how the compiler implements dependency checking.
  330. -# NAME is "CC", "CXX", "GCJ", or "OBJC".
  331. -# We try a few techniques and use that to set a single cache variable.
  332. -#
  333. -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  334. -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  335. -# dependency, and given that the user is not expected to run this macro,
  336. -# just rely on AC_PROG_CC.
  337. -AC_DEFUN([_AM_DEPENDENCIES],
  338. -[AC_REQUIRE([AM_SET_DEPDIR])dnl
  339. -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  340. -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  341. -AC_REQUIRE([AM_DEP_TRACK])dnl
  342. +# Same as above, but do not quote variable references.
  343. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  344. -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  345. - [$1], CXX, [depcc="$CXX" am_compiler_list=],
  346. - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  347. - [$1], UPC, [depcc="$UPC" am_compiler_list=],
  348. - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  349. - [depcc="$$1" am_compiler_list=])
  350. +# Sed substitution to delay expansion of an escaped shell variable in a
  351. +# double_quote_subst'ed string.
  352. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  353. -AC_CACHE_CHECK([dependency style of $depcc],
  354. - [am_cv_$1_dependencies_compiler_type],
  355. -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  356. - # We make a subdir and do the tests there. Otherwise we can end up
  357. - # making bogus files that we don't know about and never remove. For
  358. - # instance it was reported that on HP-UX the gcc test will end up
  359. - # making a dummy file named `D' -- because `-MD' means `put the output
  360. - # in D'.
  361. - mkdir conftest.dir
  362. - # Copy depcomp to subdir because otherwise we won't find it if we're
  363. - # using a relative directory.
  364. - cp "$am_depcomp" conftest.dir
  365. - cd conftest.dir
  366. - # We will build objects and dependencies in a subdirectory because
  367. - # it helps to detect inapplicable dependency modes. For instance
  368. - # both Tru64's cc and ICC support -MD to output dependencies as a
  369. - # side effect of compilation, but ICC will put the dependencies in
  370. - # the current directory while Tru64 will put them in the object
  371. - # directory.
  372. - mkdir sub
  373. +# Sed substitution to delay expansion of an escaped single quote.
  374. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  375. - am_cv_$1_dependencies_compiler_type=none
  376. - if test "$am_compiler_list" = ""; then
  377. - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  378. - fi
  379. - am__universal=false
  380. - m4_case([$1], [CC],
  381. - [case " $depcc " in #(
  382. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  383. - esac],
  384. - [CXX],
  385. - [case " $depcc " in #(
  386. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  387. - esac])
  388. +# Sed substitution to avoid accidental globbing in evaled expressions
  389. +no_glob_subst='s/\*/\\\*/g'
  390. - for depmode in $am_compiler_list; do
  391. - # Setup a source with many dependencies, because some compilers
  392. - # like to wrap large dependency lists on column 80 (with \), and
  393. - # we should not choose a depcomp mode which is confused by this.
  394. - #
  395. - # We need to recreate these files for each test, as the compiler may
  396. - # overwrite some of them when testing with obscure command lines.
  397. - # This happens at least with the AIX C compiler.
  398. - : > sub/conftest.c
  399. - for i in 1 2 3 4 5 6; do
  400. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  401. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  402. - # Solaris 8's {/usr,}/bin/sh.
  403. - touch sub/conftst$i.h
  404. - done
  405. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  406. +# Global variables:
  407. +ofile=libtool
  408. +can_build_shared=yes
  409. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  410. - # mode. It turns out that the SunPro C++ compiler does not properly
  411. - # handle `-M -o', and we need to detect this. Also, some Intel
  412. - # versions had trouble with output in subdirs
  413. - am__obj=sub/conftest.${OBJEXT-o}
  414. - am__minus_obj="-o $am__obj"
  415. - case $depmode in
  416. - gcc)
  417. - # This depmode causes a compiler race in universal mode.
  418. - test "$am__universal" = false || continue
  419. - ;;
  420. - nosideeffect)
  421. - # after this tag, mechanisms are not by side-effect, so they'll
  422. - # only be used when explicitly requested
  423. - if test "x$enable_dependency_tracking" = xyes; then
  424. - continue
  425. - else
  426. - break
  427. - fi
  428. - ;;
  429. - msvisualcpp | msvcmsys)
  430. - # This compiler won't grok `-c -o', but also, the minuso test has
  431. - # not run yet. These depmodes are late enough in the game, and
  432. - # so weak that their functioning should not be impacted.
  433. - am__obj=conftest.${OBJEXT-o}
  434. - am__minus_obj=
  435. - ;;
  436. - none) break ;;
  437. - esac
  438. - if depmode=$depmode \
  439. - source=sub/conftest.c object=$am__obj \
  440. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  441. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  442. - >/dev/null 2>conftest.err &&
  443. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  444. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  445. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  446. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  447. - # icc doesn't choke on unknown options, it will just issue warnings
  448. - # or remarks (even with -Werror). So we grep stderr for any message
  449. - # that says an option was ignored or not supported.
  450. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  451. - # icc: Command line warning: ignoring option '-M'; no argument required
  452. - # The diagnosis changed in icc 8.0:
  453. - # icc: Command line remark: option '-MP' not supported
  454. - if (grep 'ignoring option' conftest.err ||
  455. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  456. - am_cv_$1_dependencies_compiler_type=$depmode
  457. - break
  458. - fi
  459. - fi
  460. - done
  461. +# All known linkers require a `.a' archive for static linking (except MSVC,
  462. +# which needs '.lib').
  463. +libext=a
  464. - cd ..
  465. - rm -rf conftest.dir
  466. -else
  467. - am_cv_$1_dependencies_compiler_type=none
  468. -fi
  469. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  470. +
  471. +old_CC="$CC"
  472. +old_CFLAGS="$CFLAGS"
  473. +
  474. +# Set sane defaults for various variables
  475. +test -z "$CC" && CC=cc
  476. +test -z "$LTCC" && LTCC=$CC
  477. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  478. +test -z "$LD" && LD=ld
  479. +test -z "$ac_objext" && ac_objext=o
  480. +
  481. +_LT_CC_BASENAME([$compiler])
  482. +
  483. +# Only perform the check for file, if the check method requires it
  484. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  485. +case $deplibs_check_method in
  486. +file_magic*)
  487. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  488. + _LT_PATH_MAGIC
  489. + fi
  490. + ;;
  491. +esac
  492. +
  493. +# Use C for the default configuration in the libtool script
  494. +LT_SUPPORTED_TAG([CC])
  495. +_LT_LANG_C_CONFIG
  496. +_LT_LANG_DEFAULT_CONFIG
  497. +_LT_CONFIG_COMMANDS
  498. +])# _LT_SETUP
  499. +
  500. +
  501. +# _LT_PROG_LTMAIN
  502. +# ---------------
  503. +# Note that this code is called both from `configure', and `config.status'
  504. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  505. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  506. +# so we pass a copy along to make sure it has a sensible value anyway.
  507. +m4_defun([_LT_PROG_LTMAIN],
  508. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  509. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  510. +ltmain="$ac_aux_dir/ltmain.sh"
  511. +])# _LT_PROG_LTMAIN
  512. +
  513. +
  514. +
  515. +# So that we can recreate a full libtool script including additional
  516. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  517. +# in macros and then make a single call at the end using the `libtool'
  518. +# label.
  519. +
  520. +
  521. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  522. +# ----------------------------------------
  523. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  524. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  525. +[m4_ifval([$1],
  526. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  527. + [$1
  528. +])])])
  529. +
  530. +# Initialize.
  531. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  532. +
  533. +
  534. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  535. +# ------------------------------
  536. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  537. +m4_define([_LT_CONFIG_LIBTOOL],
  538. +[m4_ifval([$1],
  539. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  540. + [$1
  541. +])])])
  542. +
  543. +# Initialize.
  544. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  545. +
  546. +
  547. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  548. +# -----------------------------------------------------
  549. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  550. +[_LT_CONFIG_LIBTOOL([$1])
  551. +_LT_CONFIG_LIBTOOL_INIT([$2])
  552. ])
  553. -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  554. -AM_CONDITIONAL([am__fastdep$1], [
  555. - test "x$enable_dependency_tracking" != xno \
  556. - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  557. +
  558. +
  559. +# _LT_FORMAT_COMMENT([COMMENT])
  560. +# -----------------------------
  561. +# Add leading comment marks to the start of each line, and a trailing
  562. +# full-stop to the whole comment if one is not present already.
  563. +m4_define([_LT_FORMAT_COMMENT],
  564. +[m4_ifval([$1], [
  565. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  566. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  567. +)])
  568. +
  569. +
  570. +
  571. +
  572. +
  573. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  574. +# -------------------------------------------------------------------
  575. +# CONFIGNAME is the name given to the value in the libtool script.
  576. +# VARNAME is the (base) name used in the configure script.
  577. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  578. +# VARNAME. Any other value will be used directly.
  579. +m4_define([_LT_DECL],
  580. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  581. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  582. + [m4_ifval([$1], [$1], [$2])])
  583. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  584. + m4_ifval([$4],
  585. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  586. + lt_dict_add_subkey([lt_decl_dict], [$2],
  587. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  588. ])
  589. -# AM_SET_DEPDIR
  590. -# -------------
  591. -# Choose a directory name for dependency files.
  592. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  593. -AC_DEFUN([AM_SET_DEPDIR],
  594. -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  595. -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  596. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  597. +# --------------------------------------------------------
  598. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  599. +
  600. +
  601. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  602. +# ------------------------------------------------
  603. +m4_define([lt_decl_tag_varnames],
  604. +[_lt_decl_filter([tagged?], [yes], $@)])
  605. +
  606. +
  607. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  608. +# ---------------------------------------------------------
  609. +m4_define([_lt_decl_filter],
  610. +[m4_case([$#],
  611. + [0], [m4_fatal([$0: too few arguments: $#])],
  612. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  613. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  614. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  615. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  616. ])
  617. -# AM_DEP_TRACK
  618. -# ------------
  619. -AC_DEFUN([AM_DEP_TRACK],
  620. -[AC_ARG_ENABLE(dependency-tracking,
  621. -[ --disable-dependency-tracking speeds up one-time build
  622. - --enable-dependency-tracking do not reject slow dependency extractors])
  623. -if test "x$enable_dependency_tracking" != xno; then
  624. - am_depcomp="$ac_aux_dir/depcomp"
  625. - AMDEPBACKSLASH='\'
  626. -fi
  627. -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  628. -AC_SUBST([AMDEPBACKSLASH])dnl
  629. -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  630. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  631. +# --------------------------------------------------
  632. +m4_define([lt_decl_quote_varnames],
  633. +[_lt_decl_filter([value], [1], $@)])
  634. +
  635. +
  636. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  637. +# ---------------------------------------------------
  638. +m4_define([lt_decl_dquote_varnames],
  639. +[_lt_decl_filter([value], [2], $@)])
  640. +
  641. +
  642. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  643. +# ---------------------------------------------------
  644. +m4_define([lt_decl_varnames_tagged],
  645. +[m4_assert([$# <= 2])dnl
  646. +_$0(m4_quote(m4_default([$1], [[, ]])),
  647. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  648. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  649. +m4_define([_lt_decl_varnames_tagged],
  650. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  651. +
  652. +
  653. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  654. +# ------------------------------------------------
  655. +m4_define([lt_decl_all_varnames],
  656. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  657. + m4_if([$2], [],
  658. + m4_quote(lt_decl_varnames),
  659. + m4_quote(m4_shift($@))))[]dnl
  660. +])
  661. +m4_define([_lt_decl_all_varnames],
  662. +[lt_join($@, lt_decl_varnames_tagged([$1],
  663. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  664. ])
  665. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  666. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  667. -# Free Software Foundation, Inc.
  668. -#
  669. -# This file is free software; the Free Software Foundation
  670. -# gives unlimited permission to copy and/or distribute it,
  671. -# with or without modifications, as long as this notice is preserved.
  672. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  673. +# ------------------------------------
  674. +# Quote a variable value, and forward it to `config.status' so that its
  675. +# declaration there will have the same value as in `configure'. VARNAME
  676. +# must have a single quote delimited value for this to work.
  677. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  678. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  679. -#serial 5
  680. -# _AM_OUTPUT_DEPENDENCY_COMMANDS
  681. +# _LT_CONFIG_STATUS_DECLARATIONS
  682. # ------------------------------
  683. -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  684. -[{
  685. - # Autoconf 2.62 quotes --file arguments for eval, but not when files
  686. - # are listed without --file. Let's play safe and only enable the eval
  687. - # if we detect the quoting.
  688. - case $CONFIG_FILES in
  689. - *\'*) eval set x "$CONFIG_FILES" ;;
  690. - *) set x $CONFIG_FILES ;;
  691. - esac
  692. - shift
  693. - for mf
  694. - do
  695. - # Strip MF so we end up with the name of the file.
  696. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  697. - # Check whether this is an Automake generated Makefile or not.
  698. - # We used to match only the files named `Makefile.in', but
  699. - # some people rename them; so instead we look at the file content.
  700. - # Grep'ing the first line is not enough: some people post-process
  701. - # each Makefile.in and add a new line on top of each file to say so.
  702. - # Grep'ing the whole file is not good either: AIX grep has a line
  703. - # limit of 2048, but all sed's we know have understand at least 4000.
  704. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  705. - dirpart=`AS_DIRNAME("$mf")`
  706. - else
  707. - continue
  708. - fi
  709. - # Extract the definition of DEPDIR, am__include, and am__quote
  710. - # from the Makefile without running `make'.
  711. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  712. - test -z "$DEPDIR" && continue
  713. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  714. - test -z "am__include" && continue
  715. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  716. - # When using ansi2knr, U may be empty or an underscore; expand it
  717. - U=`sed -n 's/^U = //p' < "$mf"`
  718. - # Find all dependency output files, they are included files with
  719. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  720. - # simplest approach to changing $(DEPDIR) to its actual value in the
  721. - # expansion.
  722. - for file in `sed -n "
  723. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  724. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  725. - # Make sure the directory exists.
  726. - test -f "$dirpart/$file" && continue
  727. - fdir=`AS_DIRNAME(["$file"])`
  728. - AS_MKDIR_P([$dirpart/$fdir])
  729. - # echo "creating $dirpart/$file"
  730. - echo '# dummy' > "$dirpart/$file"
  731. - done
  732. - done
  733. -}
  734. -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  735. +# We delimit libtool config variables with single quotes, so when
  736. +# we write them to config.status, we have to be sure to quote all
  737. +# embedded single quotes properly. In configure, this macro expands
  738. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  739. +#
  740. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  741. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  742. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  743. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  744. -# AM_OUTPUT_DEPENDENCY_COMMANDS
  745. -# -----------------------------
  746. -# This macro should only be invoked once -- use via AC_REQUIRE.
  747. -#
  748. -# This code is only required when automatic dependency tracking
  749. -# is enabled. FIXME. This creates each `.P' file that we will
  750. -# need in order to bootstrap the dependency handling code.
  751. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  752. -[AC_CONFIG_COMMANDS([depfiles],
  753. - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  754. - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  755. +# _LT_LIBTOOL_TAGS
  756. +# ----------------
  757. +# Output comment and list of tags supported by the script
  758. +m4_defun([_LT_LIBTOOL_TAGS],
  759. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  760. +available_tags="_LT_TAGS"dnl
  761. ])
  762. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  763. -# Free Software Foundation, Inc.
  764. +
  765. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  766. +# -----------------------------------
  767. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  768. +# expand to a commented shell variable setting:
  769. #
  770. -# This file is free software; the Free Software Foundation
  771. -# gives unlimited permission to copy and/or distribute it,
  772. -# with or without modifications, as long as this notice is preserved.
  773. +# # Some comment about what VAR is for.
  774. +# visible_name=$lt_internal_name
  775. +m4_define([_LT_LIBTOOL_DECLARE],
  776. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  777. + [description])))[]dnl
  778. +m4_pushdef([_libtool_name],
  779. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  780. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  781. + [0], [_libtool_name=[$]$1],
  782. + [1], [_libtool_name=$lt_[]$1],
  783. + [2], [_libtool_name=$lt_[]$1],
  784. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  785. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  786. +])
  787. -# serial 8
  788. -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  789. -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  790. +# _LT_LIBTOOL_CONFIG_VARS
  791. +# -----------------------
  792. +# Produce commented declarations of non-tagged libtool config variables
  793. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  794. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  795. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  796. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  797. +[m4_foreach([_lt_var],
  798. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  799. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  800. -# Do all the work for Automake. -*- Autoconf -*-
  801. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  802. -# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  803. -#
  804. -# This file is free software; the Free Software Foundation
  805. -# gives unlimited permission to copy and/or distribute it,
  806. -# with or without modifications, as long as this notice is preserved.
  807. +# _LT_LIBTOOL_TAG_VARS(TAG)
  808. +# -------------------------
  809. +m4_define([_LT_LIBTOOL_TAG_VARS],
  810. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  811. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  812. -# serial 16
  813. -# This macro actually does too much. Some checks are only needed if
  814. -# your package does certain things. But this isn't really a big deal.
  815. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  816. +# ------------------------------
  817. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  818. -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  819. -# AM_INIT_AUTOMAKE([OPTIONS])
  820. -# -----------------------------------------------
  821. -# The call with PACKAGE and VERSION arguments is the old style
  822. -# call (pre autoconf-2.50), which is being phased out. PACKAGE
  823. -# and VERSION should now be passed to AC_INIT and removed from
  824. -# the call to AM_INIT_AUTOMAKE.
  825. -# We support both call styles for the transition. After
  826. -# the next Automake release, Autoconf can make the AC_INIT
  827. -# arguments mandatory, and then we can depend on a new Autoconf
  828. -# release and drop the old call support.
  829. -AC_DEFUN([AM_INIT_AUTOMAKE],
  830. -[AC_PREREQ([2.62])dnl
  831. -dnl Autoconf wants to disallow AM_ names. We explicitly allow
  832. -dnl the ones we care about.
  833. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  834. -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  835. -AC_REQUIRE([AC_PROG_INSTALL])dnl
  836. -if test "`cd $srcdir && pwd`" != "`pwd`"; then
  837. - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  838. - # is not polluted with repeated "-I."
  839. - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  840. - # test to see if srcdir already configured
  841. - if test -f $srcdir/config.status; then
  842. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  843. - fi
  844. -fi
  845. -# test whether we have cygpath
  846. -if test -z "$CYGPATH_W"; then
  847. - if (cygpath --version) >/dev/null 2>/dev/null; then
  848. - CYGPATH_W='cygpath -w'
  849. - else
  850. - CYGPATH_W=echo
  851. - fi
  852. -fi
  853. -AC_SUBST([CYGPATH_W])
  854. +# _LT_CONFIG_COMMANDS
  855. +# -------------------
  856. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  857. +# variables for single and double quote escaping we saved from calls
  858. +# to _LT_DECL, we can put quote escaped variables declarations
  859. +# into `config.status', and then the shell code to quote escape them in
  860. +# for loops in `config.status'. Finally, any additional code accumulated
  861. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  862. +m4_defun([_LT_CONFIG_COMMANDS],
  863. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  864. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  865. + dnl instead of duplicating it all over again into config.status,
  866. + dnl then we will have config.status run $CONFIG_LT later, so it
  867. + dnl needs to know what name is stored there:
  868. + [AC_CONFIG_COMMANDS([libtool],
  869. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  870. + dnl If the libtool generation code is destined for config.status,
  871. + dnl expand the accumulated commands and init code now:
  872. + [AC_CONFIG_COMMANDS([libtool],
  873. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  874. +])#_LT_CONFIG_COMMANDS
  875. -# Define the identity of the package.
  876. -dnl Distinguish between old-style and new-style calls.
  877. -m4_ifval([$2],
  878. -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  879. - AC_SUBST([PACKAGE], [$1])dnl
  880. - AC_SUBST([VERSION], [$2])],
  881. -[_AM_SET_OPTIONS([$1])dnl
  882. -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  883. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  884. - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  885. - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  886. - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  887. -_AM_IF_OPTION([no-define],,
  888. -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  889. - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  890. +# Initialize.
  891. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  892. +[
  893. -# Some tools Automake needs.
  894. -AC_REQUIRE([AM_SANITY_CHECK])dnl
  895. -AC_REQUIRE([AC_ARG_PROGRAM])dnl
  896. -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  897. -AM_MISSING_PROG(AUTOCONF, autoconf)
  898. -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  899. -AM_MISSING_PROG(AUTOHEADER, autoheader)
  900. -AM_MISSING_PROG(MAKEINFO, makeinfo)
  901. -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  902. -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  903. -AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  904. -# We need awk for the "check" target. The system "awk" is bad on
  905. -# some platforms.
  906. -AC_REQUIRE([AC_PROG_AWK])dnl
  907. -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  908. -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  909. -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  910. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  911. - [_AM_PROG_TAR([v7])])])
  912. -_AM_IF_OPTION([no-dependencies],,
  913. -[AC_PROVIDE_IFELSE([AC_PROG_CC],
  914. - [_AM_DEPENDENCIES(CC)],
  915. - [define([AC_PROG_CC],
  916. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  917. -AC_PROVIDE_IFELSE([AC_PROG_CXX],
  918. - [_AM_DEPENDENCIES(CXX)],
  919. - [define([AC_PROG_CXX],
  920. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  921. -AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  922. - [_AM_DEPENDENCIES(OBJC)],
  923. - [define([AC_PROG_OBJC],
  924. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  925. -])
  926. -_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  927. -dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  928. -dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  929. -dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  930. -AC_CONFIG_COMMANDS_PRE(dnl
  931. -[m4_provide_if([_AM_COMPILER_EXEEXT],
  932. - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  933. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  934. +# if CDPATH is set.
  935. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  936. +
  937. +sed_quote_subst='$sed_quote_subst'
  938. +double_quote_subst='$double_quote_subst'
  939. +delay_variable_subst='$delay_variable_subst'
  940. +_LT_CONFIG_STATUS_DECLARATIONS
  941. +LTCC='$LTCC'
  942. +LTCFLAGS='$LTCFLAGS'
  943. +compiler='$compiler_DEFAULT'
  944. +
  945. +# Quote evaled strings.
  946. +for var in lt_decl_all_varnames([[ \
  947. +]], lt_decl_quote_varnames); do
  948. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  949. + *[[\\\\\\\`\\"\\\$]]*)
  950. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  951. + ;;
  952. + *)
  953. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  954. + ;;
  955. + esac
  956. +done
  957. +
  958. +# Double-quote double-evaled strings.
  959. +for var in lt_decl_all_varnames([[ \
  960. +]], lt_decl_dquote_varnames); do
  961. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  962. + *[[\\\\\\\`\\"\\\$]]*)
  963. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  964. + ;;
  965. + *)
  966. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  967. + ;;
  968. + esac
  969. +done
  970. +
  971. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  972. +case \$lt_ECHO in
  973. +*'\\\[$]0 --fallback-echo"')dnl "
  974. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  975. + ;;
  976. +esac
  977. +
  978. +_LT_OUTPUT_LIBTOOL_INIT
  979. ])
  980. -dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  981. -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  982. -dnl mangled by Autoconf and run in a shell conditional statement.
  983. -m4_define([_AC_COMPILER_EXEEXT],
  984. -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  985. +# LT_OUTPUT
  986. +# ---------
  987. +# This macro allows early generation of the libtool script (before
  988. +# AC_OUTPUT is called), incase it is used in configure for compilation
  989. +# tests.
  990. +AC_DEFUN([LT_OUTPUT],
  991. +[: ${CONFIG_LT=./config.lt}
  992. +AC_MSG_NOTICE([creating $CONFIG_LT])
  993. +cat >"$CONFIG_LT" <<_LTEOF
  994. +#! $SHELL
  995. +# Generated by $as_me.
  996. +# Run this file to recreate a libtool stub with the current configuration.
  997. +
  998. +lt_cl_silent=false
  999. +SHELL=\${CONFIG_SHELL-$SHELL}
  1000. +_LTEOF
  1001. +
  1002. +cat >>"$CONFIG_LT" <<\_LTEOF
  1003. +AS_SHELL_SANITIZE
  1004. +_AS_PREPARE
  1005. -# When config.status generates a header, we must update the stamp-h file.
  1006. -# This file resides in the same directory as the config header
  1007. -# that is generated. The stamp files are numbered to have different names.
  1008. +exec AS_MESSAGE_FD>&1
  1009. +exec AS_MESSAGE_LOG_FD>>config.log
  1010. +{
  1011. + echo
  1012. + AS_BOX([Running $as_me.])
  1013. +} >&AS_MESSAGE_LOG_FD
  1014. +
  1015. +lt_cl_help="\
  1016. +\`$as_me' creates a local libtool stub from the current configuration,
  1017. +for use in further configure time tests before the real libtool is
  1018. +generated.
  1019. +
  1020. +Usage: $[0] [[OPTIONS]]
  1021. +
  1022. + -h, --help print this help, then exit
  1023. + -V, --version print version number, then exit
  1024. + -q, --quiet do not print progress messages
  1025. + -d, --debug don't remove temporary files
  1026. +
  1027. +Report bugs to <bug-libtool@gnu.org>."
  1028. +
  1029. +lt_cl_version="\
  1030. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1031. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1032. +configured by $[0], generated by m4_PACKAGE_STRING.
  1033. +
  1034. +Copyright (C) 2008 Free Software Foundation, Inc.
  1035. +This config.lt script is free software; the Free Software Foundation
  1036. +gives unlimited permision to copy, distribute and modify it."
  1037. -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  1038. -# loop where config.status creates the headers, so we can generate
  1039. -# our stamp files there.
  1040. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  1041. -[# Compute $1's index in $config_headers.
  1042. -_am_arg=$1
  1043. -_am_stamp_count=1
  1044. -for _am_header in $config_headers :; do
  1045. - case $_am_header in
  1046. - $_am_arg | $_am_arg:* )
  1047. - break ;;
  1048. - * )
  1049. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  1050. +while test $[#] != 0
  1051. +do
  1052. + case $[1] in
  1053. + --version | --v* | -V )
  1054. + echo "$lt_cl_version"; exit 0 ;;
  1055. + --help | --h* | -h )
  1056. + echo "$lt_cl_help"; exit 0 ;;
  1057. + --debug | --d* | -d )
  1058. + debug=: ;;
  1059. + --quiet | --q* | --silent | --s* | -q )
  1060. + lt_cl_silent=: ;;
  1061. +
  1062. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1063. +Try \`$[0] --help' for more information.]) ;;
  1064. +
  1065. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1066. +Try \`$[0] --help' for more information.]) ;;
  1067. esac
  1068. + shift
  1069. done
  1070. -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  1071. -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  1072. -#
  1073. -# This file is free software; the Free Software Foundation
  1074. -# gives unlimited permission to copy and/or distribute it,
  1075. -# with or without modifications, as long as this notice is preserved.
  1076. +if $lt_cl_silent; then
  1077. + exec AS_MESSAGE_FD>/dev/null
  1078. +fi
  1079. +_LTEOF
  1080. -# AM_PROG_INSTALL_SH
  1081. -# ------------------
  1082. -# Define $install_sh.
  1083. -AC_DEFUN([AM_PROG_INSTALL_SH],
  1084. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1085. -if test x"${install_sh}" != xset; then
  1086. - case $am_aux_dir in
  1087. - *\ * | *\ *)
  1088. - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1089. - *)
  1090. - install_sh="\${SHELL} $am_aux_dir/install-sh"
  1091. - esac
  1092. +cat >>"$CONFIG_LT" <<_LTEOF
  1093. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1094. +_LTEOF
  1095. +
  1096. +cat >>"$CONFIG_LT" <<\_LTEOF
  1097. +AC_MSG_NOTICE([creating $ofile])
  1098. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1099. +AS_EXIT(0)
  1100. +_LTEOF
  1101. +chmod +x "$CONFIG_LT"
  1102. +
  1103. +# configure is writing to config.log, but config.lt does its own redirection,
  1104. +# appending to config.log, which fails on DOS, as config.log is still kept
  1105. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1106. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1107. +if test "$no_create" != yes; then
  1108. + lt_cl_success=:
  1109. + test "$silent" = yes &&
  1110. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1111. + exec AS_MESSAGE_LOG_FD>/dev/null
  1112. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1113. + exec AS_MESSAGE_LOG_FD>>config.log
  1114. + $lt_cl_success || AS_EXIT(1)
  1115. fi
  1116. -AC_SUBST(install_sh)])
  1117. +])# LT_OUTPUT
  1118. -# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  1119. +
  1120. +# _LT_CONFIG(TAG)
  1121. +# ---------------
  1122. +# If TAG is the built-in tag, create an initial libtool script with a
  1123. +# default configuration from the untagged config vars. Otherwise add code
  1124. +# to config.status for appending the configuration named by TAG from the
  1125. +# matching tagged config vars.
  1126. +m4_defun([_LT_CONFIG],
  1127. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1128. +_LT_CONFIG_SAVE_COMMANDS([
  1129. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1130. + m4_if(_LT_TAG, [C], [
  1131. + # See if we are running on zsh, and set the options which allow our
  1132. + # commands through without removal of \ escapes.
  1133. + if test -n "${ZSH_VERSION+set}" ; then
  1134. + setopt NO_GLOB_SUBST
  1135. + fi
  1136. +
  1137. + cfgfile="${ofile}T"
  1138. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1139. + $RM "$cfgfile"
  1140. +
  1141. + cat <<_LT_EOF >> "$cfgfile"
  1142. +#! $SHELL
  1143. +
  1144. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1145. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1146. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1147. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1148. #
  1149. -# This file is free software; the Free Software Foundation
  1150. -# gives unlimited permission to copy and/or distribute it,
  1151. -# with or without modifications, as long as this notice is preserved.
  1152. +_LT_COPYING
  1153. +_LT_LIBTOOL_TAGS
  1154. -# serial 2
  1155. +# ### BEGIN LIBTOOL CONFIG
  1156. +_LT_LIBTOOL_CONFIG_VARS
  1157. +_LT_LIBTOOL_TAG_VARS
  1158. +# ### END LIBTOOL CONFIG
  1159. -# Check whether the underlying file-system supports filenames
  1160. -# with a leading dot. For instance MS-DOS doesn't.
  1161. -AC_DEFUN([AM_SET_LEADING_DOT],
  1162. -[rm -rf .tst 2>/dev/null
  1163. -mkdir .tst 2>/dev/null
  1164. -if test -d .tst; then
  1165. - am__leading_dot=.
  1166. -else
  1167. - am__leading_dot=_
  1168. +_LT_EOF
  1169. +
  1170. + case $host_os in
  1171. + aix3*)
  1172. + cat <<\_LT_EOF >> "$cfgfile"
  1173. +# AIX sometimes has problems with the GCC collect2 program. For some
  1174. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1175. +# vanish in a puff of smoke.
  1176. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1177. + COLLECT_NAMES=
  1178. + export COLLECT_NAMES
  1179. fi
  1180. -rmdir .tst 2>/dev/null
  1181. -AC_SUBST([am__leading_dot])])
  1182. +_LT_EOF
  1183. + ;;
  1184. + esac
  1185. -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  1186. -# From Jim Meyering
  1187. + _LT_PROG_LTMAIN
  1188. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  1189. -# Free Software Foundation, Inc.
  1190. -#
  1191. -# This file is free software; the Free Software Foundation
  1192. -# gives unlimited permission to copy and/or distribute it,
  1193. -# with or without modifications, as long as this notice is preserved.
  1194. + # We use sed instead of cat because bash on DJGPP gets confused if
  1195. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1196. + # text mode, it properly converts lines to CR/LF. This bash problem
  1197. + # is reportedly fixed, but why not run on old versions too?
  1198. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1199. + || (rm -f "$cfgfile"; exit 1)
  1200. -# serial 5
  1201. + _LT_PROG_XSI_SHELLFNS
  1202. -# AM_MAINTAINER_MODE([DEFAULT-MODE])
  1203. -# ----------------------------------
  1204. -# Control maintainer-specific portions of Makefiles.
  1205. -# Default is to disable them, unless `enable' is passed literally.
  1206. -# For symmetry, `disable' may be passed as well. Anyway, the user
  1207. -# can override the default with the --enable/--disable switch.
  1208. -AC_DEFUN([AM_MAINTAINER_MODE],
  1209. -[m4_case(m4_default([$1], [disable]),
  1210. - [enable], [m4_define([am_maintainer_other], [disable])],
  1211. - [disable], [m4_define([am_maintainer_other], [enable])],
  1212. - [m4_define([am_maintainer_other], [enable])
  1213. - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  1214. -AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  1215. - dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  1216. - AC_ARG_ENABLE([maintainer-mode],
  1217. -[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  1218. - (and sometimes confusing) to the casual installer],
  1219. - [USE_MAINTAINER_MODE=$enableval],
  1220. - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  1221. - AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  1222. - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  1223. - MAINT=$MAINTAINER_MODE_TRUE
  1224. - AC_SUBST([MAINT])dnl
  1225. -]
  1226. -)
  1227. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1228. + || (rm -f "$cfgfile"; exit 1)
  1229. -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  1230. + mv -f "$cfgfile" "$ofile" ||
  1231. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1232. + chmod +x "$ofile"
  1233. +],
  1234. +[cat <<_LT_EOF >> "$ofile"
  1235. -# Check to see how 'make' treats includes. -*- Autoconf -*-
  1236. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1237. +dnl in a comment (ie after a #).
  1238. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1239. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1240. +# ### END LIBTOOL TAG CONFIG: $1
  1241. +_LT_EOF
  1242. +])dnl /m4_if
  1243. +],
  1244. +[m4_if([$1], [], [
  1245. + PACKAGE='$PACKAGE'
  1246. + VERSION='$VERSION'
  1247. + TIMESTAMP='$TIMESTAMP'
  1248. + RM='$RM'
  1249. + ofile='$ofile'], [])
  1250. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1251. +])# _LT_CONFIG
  1252. -# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  1253. -#
  1254. -# This file is free software; the Free Software Foundation
  1255. -# gives unlimited permission to copy and/or distribute it,
  1256. -# with or without modifications, as long as this notice is preserved.
  1257. -# serial 4
  1258. +# LT_SUPPORTED_TAG(TAG)
  1259. +# ---------------------
  1260. +# Trace this macro to discover what tags are supported by the libtool
  1261. +# --tag option, using:
  1262. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1263. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1264. -# AM_MAKE_INCLUDE()
  1265. -# -----------------
  1266. -# Check to see how make treats includes.
  1267. -AC_DEFUN([AM_MAKE_INCLUDE],
  1268. -[am_make=${MAKE-make}
  1269. -cat > confinc << 'END'
  1270. -am__doit:
  1271. - @echo this is the am__doit target
  1272. -.PHONY: am__doit
  1273. -END
  1274. -# If we don't find an include directive, just comment out the code.
  1275. -AC_MSG_CHECKING([for style of include used by $am_make])
  1276. -am__include="#"
  1277. -am__quote=
  1278. -_am_result=none
  1279. -# First try GNU make style include.
  1280. -echo "include confinc" > confmf
  1281. -# Ignore all kinds of additional output from `make'.
  1282. -case `$am_make -s -f confmf 2> /dev/null` in #(
  1283. -*the\ am__doit\ target*)
  1284. - am__include=include
  1285. - am__quote=
  1286. - _am_result=GNU
  1287. - ;;
  1288. -esac
  1289. -# Now try BSD make style include.
  1290. -if test "$am__include" = "#"; then
  1291. - echo '.include "confinc"' > confmf
  1292. - case `$am_make -s -f confmf 2> /dev/null` in #(
  1293. - *the\ am__doit\ target*)
  1294. - am__include=.include
  1295. - am__quote="\""
  1296. - _am_result=BSD
  1297. - ;;
  1298. - esac
  1299. -fi
  1300. -AC_SUBST([am__include])
  1301. -AC_SUBST([am__quote])
  1302. -AC_MSG_RESULT([$_am_result])
  1303. -rm -f confinc confmf
  1304. -])
  1305. -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1306. -
  1307. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1308. -# Free Software Foundation, Inc.
  1309. -#
  1310. -# This file is free software; the Free Software Foundation
  1311. -# gives unlimited permission to copy and/or distribute it,
  1312. -# with or without modifications, as long as this notice is preserved.
  1313. +# C support is built-in for now
  1314. +m4_define([_LT_LANG_C_enabled], [])
  1315. +m4_define([_LT_TAGS], [])
  1316. -# serial 6
  1317. -# AM_MISSING_PROG(NAME, PROGRAM)
  1318. -# ------------------------------
  1319. -AC_DEFUN([AM_MISSING_PROG],
  1320. -[AC_REQUIRE([AM_MISSING_HAS_RUN])
  1321. -$1=${$1-"${am_missing_run}$2"}
  1322. -AC_SUBST($1)])
  1323. +# LT_LANG(LANG)
  1324. +# -------------
  1325. +# Enable libtool support for the given language if not already enabled.
  1326. +AC_DEFUN([LT_LANG],
  1327. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1328. +m4_case([$1],
  1329. + [C], [_LT_LANG(C)],
  1330. + [C++], [_LT_LANG(CXX)],
  1331. + [Java], [_LT_LANG(GCJ)],
  1332. + [Fortran 77], [_LT_LANG(F77)],
  1333. + [Fortran], [_LT_LANG(FC)],
  1334. + [Windows Resource], [_LT_LANG(RC)],
  1335. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1336. + [_LT_LANG($1)],
  1337. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1338. +])# LT_LANG
  1339. -# AM_MISSING_HAS_RUN
  1340. +# _LT_LANG(LANGNAME)
  1341. # ------------------
  1342. -# Define MISSING if not defined so far and test if it supports --run.
  1343. -# If it does, set am_missing_run to use it, otherwise, to nothing.
  1344. -AC_DEFUN([AM_MISSING_HAS_RUN],
  1345. -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1346. -AC_REQUIRE_AUX_FILE([missing])dnl
  1347. -if test x"${MISSING+set}" != xset; then
  1348. - case $am_aux_dir in
  1349. - *\ * | *\ *)
  1350. - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1351. - *)
  1352. - MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1353. - esac
  1354. -fi
  1355. -# Use eval to expand $SHELL
  1356. -if eval "$MISSING --run true"; then
  1357. - am_missing_run="$MISSING --run "
  1358. -else
  1359. - am_missing_run=
  1360. - AC_MSG_WARN([`missing' script is too old or missing])
  1361. -fi
  1362. -])
  1363. -
  1364. -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1365. -#
  1366. -# This file is free software; the Free Software Foundation
  1367. -# gives unlimited permission to copy and/or distribute it,
  1368. -# with or without modifications, as long as this notice is preserved.
  1369. -
  1370. -# AM_PROG_MKDIR_P
  1371. -# ---------------
  1372. -# Check for `mkdir -p'.
  1373. -AC_DEFUN([AM_PROG_MKDIR_P],
  1374. -[AC_PREREQ([2.60])dnl
  1375. -AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1376. -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  1377. -dnl while keeping a definition of mkdir_p for backward compatibility.
  1378. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1379. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1380. -dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1381. -dnl adjustment using top_builddir (which is defined more often than
  1382. -dnl MKDIR_P).
  1383. -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1384. -case $mkdir_p in
  1385. - [[\\/$]]* | ?:[[\\/]]*) ;;
  1386. - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1387. -esac
  1388. -])
  1389. +m4_defun([_LT_LANG],
  1390. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1391. + [LT_SUPPORTED_TAG([$1])dnl
  1392. + m4_append([_LT_TAGS], [$1 ])dnl
  1393. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1394. + _LT_LANG_$1_CONFIG($1)])dnl
  1395. +])# _LT_LANG
  1396. -# Helper functions for option handling. -*- Autoconf -*-
  1397. -
  1398. -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  1399. -#
  1400. -# This file is free software; the Free Software Foundation
  1401. -# gives unlimited permission to copy and/or distribute it,
  1402. -# with or without modifications, as long as this notice is preserved.
  1403. -
  1404. -# serial 4
  1405. -# _AM_MANGLE_OPTION(NAME)
  1406. +# _LT_LANG_DEFAULT_CONFIG
  1407. # -----------------------
  1408. -AC_DEFUN([_AM_MANGLE_OPTION],
  1409. -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1410. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1411. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1412. + [LT_LANG(CXX)],
  1413. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1414. +
  1415. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1416. + [LT_LANG(F77)],
  1417. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1418. +
  1419. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1420. + [LT_LANG(FC)],
  1421. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1422. +
  1423. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1424. +dnl pulling things in needlessly.
  1425. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1426. + [LT_LANG(GCJ)],
  1427. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1428. + [LT_LANG(GCJ)],
  1429. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1430. + [LT_LANG(GCJ)],
  1431. + [m4_ifdef([AC_PROG_GCJ],
  1432. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1433. + m4_ifdef([A][M_PROG_GCJ],
  1434. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1435. + m4_ifdef([LT_PROG_GCJ],
  1436. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1437. +
  1438. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1439. + [LT_LANG(RC)],
  1440. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1441. +])# _LT_LANG_DEFAULT_CONFIG
  1442. +
  1443. +# Obsolete macros:
  1444. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1445. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1446. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1447. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1448. +dnl aclocal-1.4 backwards compatibility:
  1449. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1450. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1451. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1452. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1453. -# _AM_SET_OPTION(NAME)
  1454. -# ------------------------------
  1455. -# Set option NAME. Presently that only means defining a flag for this option.
  1456. -AC_DEFUN([_AM_SET_OPTION],
  1457. -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1458. -# _AM_SET_OPTIONS(OPTIONS)
  1459. -# ----------------------------------
  1460. -# OPTIONS is a space-separated list of Automake options.
  1461. -AC_DEFUN([_AM_SET_OPTIONS],
  1462. -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1463. +# _LT_TAG_COMPILER
  1464. +# ----------------
  1465. +m4_defun([_LT_TAG_COMPILER],
  1466. +[AC_REQUIRE([AC_PROG_CC])dnl
  1467. -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1468. -# -------------------------------------------
  1469. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1470. -AC_DEFUN([_AM_IF_OPTION],
  1471. -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1472. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1473. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1474. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1475. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1476. -# Check to make sure that the build environment is sane. -*- Autoconf -*-
  1477. +# If no C compiler was specified, use CC.
  1478. +LTCC=${LTCC-"$CC"}
  1479. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  1480. -# Free Software Foundation, Inc.
  1481. -#
  1482. -# This file is free software; the Free Software Foundation
  1483. -# gives unlimited permission to copy and/or distribute it,
  1484. -# with or without modifications, as long as this notice is preserved.
  1485. +# If no C compiler flags were specified, use CFLAGS.
  1486. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1487. -# serial 5
  1488. +# Allow CC to be a program name with arguments.
  1489. +compiler=$CC
  1490. +])# _LT_TAG_COMPILER
  1491. -# AM_SANITY_CHECK
  1492. -# ---------------
  1493. -AC_DEFUN([AM_SANITY_CHECK],
  1494. -[AC_MSG_CHECKING([whether build environment is sane])
  1495. -# Just in case
  1496. -sleep 1
  1497. -echo timestamp > conftest.file
  1498. -# Reject unsafe characters in $srcdir or the absolute working directory
  1499. -# name. Accept space and tab only in the latter.
  1500. -am_lf='
  1501. -'
  1502. -case `pwd` in
  1503. - *[[\\\"\#\$\&\'\`$am_lf]]*)
  1504. - AC_MSG_ERROR([unsafe absolute working directory name]);;
  1505. -esac
  1506. -case $srcdir in
  1507. - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1508. - AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  1509. -esac
  1510. -# Do `set' in a subshell so we don't clobber the current shell's
  1511. -# arguments. Must try -L first in case configure is actually a
  1512. -# symlink; some systems play weird games with the mod time of symlinks
  1513. -# (eg FreeBSD returns the mod time of the symlink's containing
  1514. -# directory).
  1515. -if (
  1516. - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1517. - if test "$[*]" = "X"; then
  1518. - # -L didn't work.
  1519. - set X `ls -t "$srcdir/configure" conftest.file`
  1520. - fi
  1521. - rm -f conftest.file
  1522. - if test "$[*]" != "X $srcdir/configure conftest.file" \
  1523. - && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1524. +# _LT_COMPILER_BOILERPLATE
  1525. +# ------------------------
  1526. +# Check for compiler boilerplate output or warnings with
  1527. +# the simple compiler test code.
  1528. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1529. +[m4_require([_LT_DECL_SED])dnl
  1530. +ac_outfile=conftest.$ac_objext
  1531. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1532. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1533. +_lt_compiler_boilerplate=`cat conftest.err`
  1534. +$RM conftest*
  1535. +])# _LT_COMPILER_BOILERPLATE
  1536. - # If neither matched, then we have a broken ls. This can happen
  1537. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  1538. - # broken ls alias from the environment. This has actually
  1539. - # happened. Such a system could not be considered "sane".
  1540. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1541. -alias in your environment])
  1542. - fi
  1543. - test "$[2]" = conftest.file
  1544. - )
  1545. -then
  1546. - # Ok.
  1547. - :
  1548. -else
  1549. - AC_MSG_ERROR([newly created file is older than distributed files!
  1550. -Check your system clock])
  1551. -fi
  1552. -AC_MSG_RESULT(yes)])
  1553. +# _LT_LINKER_BOILERPLATE
  1554. +# ----------------------
  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. -# Copyright (C) 2009 Free Software Foundation, Inc.
  1566. -#
  1567. -# This file is free software; the Free Software Foundation
  1568. -# gives unlimited permission to copy and/or distribute it,
  1569. -# with or without modifications, as long as this notice is preserved.
  1570. +# _LT_REQUIRED_DARWIN_CHECKS
  1571. +# -------------------------
  1572. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1573. + case $host_os in
  1574. + rhapsody* | darwin*)
  1575. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1576. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1577. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1578. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1579. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1580. + _LT_DECL([], [DSYMUTIL], [1],
  1581. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1582. + _LT_DECL([], [NMEDIT], [1],
  1583. + [Tool to change global to local symbols on Mac OS X])
  1584. + _LT_DECL([], [LIPO], [1],
  1585. + [Tool to manipulate fat objects and archives on Mac OS X])
  1586. + _LT_DECL([], [OTOOL], [1],
  1587. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1588. + _LT_DECL([], [OTOOL64], [1],
  1589. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1590. -# serial 1
  1591. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1592. + [lt_cv_apple_cc_single_mod=no
  1593. + if test -z "${LT_MULTI_MODULE}"; then
  1594. + # By default we will add the -single_module flag. You can override
  1595. + # by either setting the environment variable LT_MULTI_MODULE
  1596. + # non-empty at configure time, or by adding -multi_module to the
  1597. + # link flags.
  1598. + rm -rf libconftest.dylib*
  1599. + echo "int foo(void){return 1;}" > conftest.c
  1600. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1601. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1602. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1603. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1604. + _lt_result=$?
  1605. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1606. + lt_cv_apple_cc_single_mod=yes
  1607. + else
  1608. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1609. + fi
  1610. + rm -rf libconftest.dylib*
  1611. + rm -f conftest.*
  1612. + fi])
  1613. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1614. + [lt_cv_ld_exported_symbols_list],
  1615. + [lt_cv_ld_exported_symbols_list=no
  1616. + save_LDFLAGS=$LDFLAGS
  1617. + echo "_main" > conftest.sym
  1618. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1619. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1620. + [lt_cv_ld_exported_symbols_list=yes],
  1621. + [lt_cv_ld_exported_symbols_list=no])
  1622. + LDFLAGS="$save_LDFLAGS"
  1623. + ])
  1624. + case $host_os in
  1625. + rhapsody* | darwin1.[[012]])
  1626. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1627. + darwin1.*)
  1628. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1629. + darwin*) # darwin 5.x on
  1630. + # if running on 10.5 or later, the deployment target defaults
  1631. + # to the OS version, if on x86, and 10.4, the deployment
  1632. + # target defaults to 10.4. Don't you love it?
  1633. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1634. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1635. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1636. + 10.[[012]]*)
  1637. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1638. + 10.*)
  1639. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1640. + esac
  1641. + ;;
  1642. + esac
  1643. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1644. + _lt_dar_single_mod='$single_module'
  1645. + fi
  1646. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1647. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1648. + else
  1649. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1650. + fi
  1651. + if test "$DSYMUTIL" != ":"; then
  1652. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1653. + else
  1654. + _lt_dsymutil=
  1655. + fi
  1656. + ;;
  1657. + esac
  1658. +])
  1659. -# AM_SILENT_RULES([DEFAULT])
  1660. +
  1661. +# _LT_DARWIN_LINKER_FEATURES
  1662. # --------------------------
  1663. -# Enable less verbose build rules; with the default set to DEFAULT
  1664. -# (`yes' being less verbose, `no' or empty being verbose).
  1665. -AC_DEFUN([AM_SILENT_RULES],
  1666. -[AC_ARG_ENABLE([silent-rules],
  1667. -[ --enable-silent-rules less verbose build output (undo: `make V=1')
  1668. - --disable-silent-rules verbose build output (undo: `make V=0')])
  1669. -case $enable_silent_rules in
  1670. -yes) AM_DEFAULT_VERBOSITY=0;;
  1671. -no) AM_DEFAULT_VERBOSITY=1;;
  1672. -*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  1673. -esac
  1674. -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  1675. -AM_BACKSLASH='\'
  1676. -AC_SUBST([AM_BACKSLASH])dnl
  1677. -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  1678. +# Checks for linker and compiler features on darwin
  1679. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1680. +[
  1681. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1682. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1683. + _LT_TAGVAR(hardcode_direct, $1)=no
  1684. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1685. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1686. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1687. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1688. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1689. + case $cc_basename in
  1690. + ifort*) _lt_dar_can_shared=yes ;;
  1691. + *) _lt_dar_can_shared=$GCC ;;
  1692. + esac
  1693. + if test "$_lt_dar_can_shared" = "yes"; then
  1694. + output_verbose_link_cmd=echo
  1695. + _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}"
  1696. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1697. + _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}"
  1698. + _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}"
  1699. + m4_if([$1], [CXX],
  1700. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1701. + _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}"
  1702. + _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}"
  1703. + fi
  1704. +],[])
  1705. + else
  1706. + _LT_TAGVAR(ld_shlibs, $1)=no
  1707. + fi
  1708. ])
  1709. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1710. -#
  1711. -# This file is free software; the Free Software Foundation
  1712. -# gives unlimited permission to copy and/or distribute it,
  1713. -# with or without modifications, as long as this notice is preserved.
  1714. -
  1715. -# AM_PROG_INSTALL_STRIP
  1716. -# ---------------------
  1717. -# One issue with vendor `install' (even GNU) is that you can't
  1718. -# specify the program used to strip binaries. This is especially
  1719. -# annoying in cross-compiling environments, where the build's strip
  1720. -# is unlikely to handle the host's binaries.
  1721. -# Fortunately install-sh will honor a STRIPPROG variable, so we
  1722. -# always use install-sh in `make install-strip', and initialize
  1723. -# STRIPPROG with the value of the STRIP variable (set by the user).
  1724. -AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1725. -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1726. -# Installed binaries are usually stripped using `strip' when the user
  1727. -# run `make install-strip'. However `strip' might not be the right
  1728. -# tool to use in cross-compilation environments, therefore Automake
  1729. -# will honor the `STRIP' environment variable to overrule this program.
  1730. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1731. -if test "$cross_compiling" != no; then
  1732. - AC_CHECK_TOOL([STRIP], [strip], :)
  1733. -fi
  1734. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1735. -AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1736. +# _LT_SYS_MODULE_PATH_AIX
  1737. +# -----------------------
  1738. +# Links a minimal program and checks the executable
  1739. +# for the system default hardcoded library path. In most cases,
  1740. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1741. +# the location of the communication and MPI libs are included too.
  1742. +# If we don't find anything, use the default library path according
  1743. +# to the aix ld manual.
  1744. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1745. +[m4_require([_LT_DECL_SED])dnl
  1746. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1747. +lt_aix_libpath_sed='
  1748. + /Import File Strings/,/^$/ {
  1749. + /^0/ {
  1750. + s/^0 *\(.*\)$/\1/
  1751. + p
  1752. + }
  1753. + }'
  1754. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1755. +# Check for a 64-bit object if we didn't find anything.
  1756. +if test -z "$aix_libpath"; then
  1757. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1758. +fi],[])
  1759. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1760. +])# _LT_SYS_MODULE_PATH_AIX
  1761. -# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  1762. -#
  1763. -# This file is free software; the Free Software Foundation
  1764. -# gives unlimited permission to copy and/or distribute it,
  1765. -# with or without modifications, as long as this notice is preserved.
  1766. -# serial 2
  1767. +# _LT_SHELL_INIT(ARG)
  1768. +# -------------------
  1769. +m4_define([_LT_SHELL_INIT],
  1770. +[ifdef([AC_DIVERSION_NOTICE],
  1771. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1772. + [AC_DIVERT_PUSH(NOTICE)])
  1773. +$1
  1774. +AC_DIVERT_POP
  1775. +])# _LT_SHELL_INIT
  1776. -# _AM_SUBST_NOTMAKE(VARIABLE)
  1777. -# ---------------------------
  1778. -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1779. -# This macro is traced by Automake.
  1780. -AC_DEFUN([_AM_SUBST_NOTMAKE])
  1781. -# AM_SUBST_NOTMAKE(VARIABLE)
  1782. -# ---------------------------
  1783. -# Public sister of _AM_SUBST_NOTMAKE.
  1784. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1785. +# _LT_PROG_ECHO_BACKSLASH
  1786. +# -----------------------
  1787. +# Add some code to the start of the generated configure script which
  1788. +# will find an echo command which doesn't interpret backslashes.
  1789. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1790. +[_LT_SHELL_INIT([
  1791. +# Check that we are running under the correct shell.
  1792. +SHELL=${CONFIG_SHELL-/bin/sh}
  1793. -# Check how to create a tarball. -*- Autoconf -*-
  1794. +case X$lt_ECHO in
  1795. +X*--fallback-echo)
  1796. + # Remove one level of quotation (which was required for Make).
  1797. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1798. + ;;
  1799. +esac
  1800. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  1801. -#
  1802. -# This file is free software; the Free Software Foundation
  1803. -# gives unlimited permission to copy and/or distribute it,
  1804. -# with or without modifications, as long as this notice is preserved.
  1805. +ECHO=${lt_ECHO-echo}
  1806. +if test "X[$]1" = X--no-reexec; then
  1807. + # Discard the --no-reexec flag, and continue.
  1808. + shift
  1809. +elif test "X[$]1" = X--fallback-echo; then
  1810. + # Avoid inline document here, it may be left over
  1811. + :
  1812. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1813. + # Yippee, $ECHO works!
  1814. + :
  1815. +else
  1816. + # Restart under the correct shell.
  1817. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1818. +fi
  1819. -# serial 2
  1820. +if test "X[$]1" = X--fallback-echo; then
  1821. + # used as fallback echo
  1822. + shift
  1823. + cat <<_LT_EOF
  1824. +[$]*
  1825. +_LT_EOF
  1826. + exit 0
  1827. +fi
  1828. -# _AM_PROG_TAR(FORMAT)
  1829. -# --------------------
  1830. -# Check how to create a tarball in format FORMAT.
  1831. -# FORMAT should be one of `v7', `ustar', or `pax'.
  1832. -#
  1833. -# Substitute a variable $(am__tar) that is a command
  1834. -# writing to stdout a FORMAT-tarball containing the directory
  1835. -# $tardir.
  1836. -# tardir=directory && $(am__tar) > result.tar
  1837. -#
  1838. -# Substitute a variable $(am__untar) that extract such
  1839. -# a tarball read from stdin.
  1840. -# $(am__untar) < result.tar
  1841. -AC_DEFUN([_AM_PROG_TAR],
  1842. -[# Always define AMTAR for backward compatibility.
  1843. -AM_MISSING_PROG([AMTAR], [tar])
  1844. -m4_if([$1], [v7],
  1845. - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1846. - [m4_case([$1], [ustar],, [pax],,
  1847. - [m4_fatal([Unknown tar format])])
  1848. -AC_MSG_CHECKING([how to create a $1 tar archive])
  1849. -# Loop over all known methods to create a tar archive until one works.
  1850. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1851. -_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1852. -# Do not fold the above two line into one, because Tru64 sh and
  1853. -# Solaris sh will not grok spaces in the rhs of `-'.
  1854. -for _am_tool in $_am_tools
  1855. -do
  1856. - case $_am_tool in
  1857. - gnutar)
  1858. - for _am_tar in tar gnutar gtar;
  1859. - do
  1860. - AM_RUN_LOG([$_am_tar --version]) && break
  1861. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1862. +# if CDPATH is set.
  1863. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1864. +
  1865. +if test -z "$lt_ECHO"; then
  1866. + if test "X${echo_test_string+set}" != Xset; then
  1867. + # find a string as large as possible, as long as the shell can cope with it
  1868. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1869. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1870. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1871. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1872. + then
  1873. + break
  1874. + fi
  1875. done
  1876. - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1877. - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1878. - am__untar="$_am_tar -xf -"
  1879. - ;;
  1880. - plaintar)
  1881. - # Must skip GNU tar: if it does not support --format= it doesn't create
  1882. - # ustar tarball either.
  1883. - (tar --version) >/dev/null 2>&1 && continue
  1884. - am__tar='tar chf - "$$tardir"'
  1885. - am__tar_='tar chf - "$tardir"'
  1886. - am__untar='tar xf -'
  1887. - ;;
  1888. - pax)
  1889. - am__tar='pax -L -x $1 -w "$$tardir"'
  1890. - am__tar_='pax -L -x $1 -w "$tardir"'
  1891. - am__untar='pax -r'
  1892. - ;;
  1893. - cpio)
  1894. - am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1895. - am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1896. - am__untar='cpio -i -H $1 -d'
  1897. - ;;
  1898. - none)
  1899. - am__tar=false
  1900. - am__tar_=false
  1901. - am__untar=false
  1902. - ;;
  1903. - esac
  1904. + fi
  1905. - # If the value was cached, stop now. We just wanted to have am__tar
  1906. - # and am__untar set.
  1907. - test -n "${am_cv_prog_tar_$1}" && break
  1908. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1909. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1910. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1911. + :
  1912. + else
  1913. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1914. + # backslashes. This makes it impossible to quote backslashes using
  1915. + # echo "$something" | sed 's/\\/\\\\/g'
  1916. + #
  1917. + # So, first we look for a working echo in the user's PATH.
  1918. - # tar/untar a dummy directory, and stop if the command works
  1919. - rm -rf conftest.dir
  1920. - mkdir conftest.dir
  1921. - echo GrepMe > conftest.dir/file
  1922. - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1923. - rm -rf conftest.dir
  1924. - if test -s conftest.tar; then
  1925. - AM_RUN_LOG([$am__untar <conftest.tar])
  1926. - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1927. - fi
  1928. -done
  1929. -rm -rf conftest.dir
  1930. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1931. + for dir in $PATH /usr/ucb; do
  1932. + IFS="$lt_save_ifs"
  1933. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1934. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1935. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1936. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1937. + ECHO="$dir/echo"
  1938. + break
  1939. + fi
  1940. + done
  1941. + IFS="$lt_save_ifs"
  1942. -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1943. -AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1944. -AC_SUBST([am__tar])
  1945. -AC_SUBST([am__untar])
  1946. -]) # _AM_PROG_TAR
  1947. + if test "X$ECHO" = Xecho; then
  1948. + # We didn't find a better echo, so look for alternatives.
  1949. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1950. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1951. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1952. + # This shell has a builtin print -r that does the trick.
  1953. + ECHO='print -r'
  1954. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1955. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1956. + # If we have ksh, try running configure again with it.
  1957. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1958. + export ORIGINAL_CONFIG_SHELL
  1959. + CONFIG_SHELL=/bin/ksh
  1960. + export CONFIG_SHELL
  1961. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1962. + else
  1963. + # Try using printf.
  1964. + ECHO='printf %s\n'
  1965. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1966. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1967. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1968. + # Cool, printf works
  1969. + :
  1970. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1971. + test "X$echo_testing_string" = 'X\t' &&
  1972. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1973. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1974. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1975. + export CONFIG_SHELL
  1976. + SHELL="$CONFIG_SHELL"
  1977. + export SHELL
  1978. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1979. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1980. + test "X$echo_testing_string" = 'X\t' &&
  1981. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1982. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1983. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1984. + else
  1985. + # maybe with a smaller string...
  1986. + prev=:
  1987. -dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
  1988. -dnl
  1989. -dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
  1990. -dnl
  1991. -dnl Permission is hereby granted, free of charge, to any person obtaining a
  1992. -dnl copy of this software and associated documentation files (the
  1993. -dnl "Software"), to deal in the Software without restriction, including
  1994. -dnl without limitation the rights to use, copy, modify, merge, publish,
  1995. -dnl distribute, and/or sell copies of the Software, and to permit persons
  1996. -dnl to whom the Software is furnished to do so, provided that the above
  1997. -dnl copyright notice(s) and this permission notice appear in all copies of
  1998. -dnl the Software and that both the above copyright notice(s) and this
  1999. -dnl permission notice appear in supporting documentation.
  2000. -dnl
  2001. -dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  2002. -dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  2003. -dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
  2004. -dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  2005. -dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
  2006. -dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
  2007. -dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  2008. -dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  2009. -dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  2010. -dnl
  2011. -dnl Except as contained in this notice, the name of a copyright holder
  2012. -dnl shall not be used in advertising or otherwise to promote the sale, use
  2013. -dnl or other dealings in this Software without prior written authorization
  2014. -dnl of the copyright holder.
  2015. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2016. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2017. + then
  2018. + break
  2019. + fi
  2020. + prev="$cmd"
  2021. + done
  2022. -# XORG_MACROS_VERSION(required-version)
  2023. -# -------------------------------------
  2024. -# Minimum version: 1.1.0
  2025. -#
  2026. -# If you're using a macro added in Version 1.1 or newer, include this in
  2027. -# your configure.ac with the minimum required version, such as:
  2028. -# XORG_MACROS_VERSION(1.1)
  2029. -#
  2030. -# To ensure that this macro is defined, also add:
  2031. -# m4_ifndef([XORG_MACROS_VERSION],
  2032. -# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
  2033. -#
  2034. -#
  2035. -# See the "minimum version" comment for each macro you use to see what
  2036. -# version you require.
  2037. -m4_defun([XORG_MACROS_VERSION],[
  2038. -m4_define([vers_have], [1.3.0])
  2039. -m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
  2040. -m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
  2041. -m4_if(m4_cmp(maj_have, maj_needed), 0,,
  2042. - [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
  2043. -m4_if(m4_version_compare(vers_have, [$1]), -1,
  2044. - [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
  2045. -m4_undefine([vers_have])
  2046. -m4_undefine([maj_have])
  2047. -m4_undefine([maj_needed])
  2048. -]) # XORG_MACROS_VERSION
  2049. + if test "$prev" != 'sed 50q "[$]0"'; then
  2050. + echo_test_string=`eval $prev`
  2051. + export echo_test_string
  2052. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2053. + else
  2054. + # Oops. We lost completely, so just stick with echo.
  2055. + ECHO=echo
  2056. + fi
  2057. + fi
  2058. + fi
  2059. + fi
  2060. + fi
  2061. +fi
  2062. -# XORG_PROG_RAWCPP()
  2063. -# ------------------
  2064. -# Minimum version: 1.0.0
  2065. -#
  2066. -# Find cpp program and necessary flags for use in pre-processing text files
  2067. -# such as man pages and config files
  2068. -AC_DEFUN([XORG_PROG_RAWCPP],[
  2069. -AC_REQUIRE([AC_PROG_CPP])
  2070. -AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
  2071. - [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
  2072. +# Copy echo and quote the copy suitably for passing to libtool from
  2073. +# the Makefile, instead of quoting the original, which is used later.
  2074. +lt_ECHO=$ECHO
  2075. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2076. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2077. +fi
  2078. -# Check for flag to avoid builtin definitions - assumes unix is predefined,
  2079. -# which is not the best choice for supporting other OS'es, but covers most
  2080. -# of the ones we need for now.
  2081. -AC_MSG_CHECKING([if $RAWCPP requires -undef])
  2082. -AC_LANG_CONFTEST([Does cpp redefine unix ?])
  2083. -if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  2084. - AC_MSG_RESULT([no])
  2085. -else
  2086. - if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  2087. - RAWCPPFLAGS=-undef
  2088. - AC_MSG_RESULT([yes])
  2089. - # under Cygwin unix is still defined even with -undef
  2090. - elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  2091. - RAWCPPFLAGS="-undef -ansi"
  2092. - AC_MSG_RESULT([yes, with -ansi])
  2093. - else
  2094. - AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
  2095. - fi
  2096. -fi
  2097. -rm -f conftest.$ac_ext
  2098. -
  2099. -AC_MSG_CHECKING([if $RAWCPP requires -traditional])
  2100. -AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
  2101. -if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  2102. - AC_MSG_RESULT([no])
  2103. -else
  2104. - if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  2105. - RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
  2106. - AC_MSG_RESULT([yes])
  2107. - else
  2108. - AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
  2109. - fi
  2110. -fi
  2111. -rm -f conftest.$ac_ext
  2112. -AC_SUBST(RAWCPPFLAGS)
  2113. -]) # XORG_PROG_RAWCPP
  2114. -
  2115. -# XORG_MANPAGE_SECTIONS()
  2116. -# -----------------------
  2117. -# Minimum version: 1.0.0
  2118. -#
  2119. -# Determine which sections man pages go in for the different man page types
  2120. -# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
  2121. -# Not sure if there's any better way than just hardcoding by OS name.
  2122. -# Override default settings by setting environment variables
  2123. -
  2124. -AC_DEFUN([XORG_MANPAGE_SECTIONS],[
  2125. -AC_REQUIRE([AC_CANONICAL_HOST])
  2126. -
  2127. -if test x$APP_MAN_SUFFIX = x ; then
  2128. - APP_MAN_SUFFIX=1
  2129. -fi
  2130. -if test x$APP_MAN_DIR = x ; then
  2131. - APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  2132. -fi
  2133. +AC_SUBST(lt_ECHO)
  2134. +])
  2135. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2136. +_LT_DECL([], [ECHO], [1],
  2137. + [An echo program that does not interpret backslashes])
  2138. +])# _LT_PROG_ECHO_BACKSLASH
  2139. -if test x$LIB_MAN_SUFFIX = x ; then
  2140. - LIB_MAN_SUFFIX=3
  2141. -fi
  2142. -if test x$LIB_MAN_DIR = x ; then
  2143. - LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  2144. -fi
  2145. -if test x$FILE_MAN_SUFFIX = x ; then
  2146. - case $host_os in
  2147. - solaris*) FILE_MAN_SUFFIX=4 ;;
  2148. - *) FILE_MAN_SUFFIX=5 ;;
  2149. - esac
  2150. -fi
  2151. -if test x$FILE_MAN_DIR = x ; then
  2152. - FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  2153. -fi
  2154. +# _LT_ENABLE_LOCK
  2155. +# ---------------
  2156. +m4_defun([_LT_ENABLE_LOCK],
  2157. +[AC_ARG_ENABLE([libtool-lock],
  2158. + [AS_HELP_STRING([--disable-libtool-lock],
  2159. + [avoid locking (might break parallel builds)])])
  2160. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2161. -if test x$MISC_MAN_SUFFIX = x ; then
  2162. - case $host_os in
  2163. - solaris*) MISC_MAN_SUFFIX=5 ;;
  2164. - *) MISC_MAN_SUFFIX=7 ;;
  2165. +# Some flags need to be propagated to the compiler or linker for good
  2166. +# libtool support.
  2167. +case $host in
  2168. +ia64-*-hpux*)
  2169. + # Find out which ABI we are using.
  2170. + echo 'int i;' > conftest.$ac_ext
  2171. + if AC_TRY_EVAL(ac_compile); then
  2172. + case `/usr/bin/file conftest.$ac_objext` in
  2173. + *ELF-32*)
  2174. + HPUX_IA64_MODE="32"
  2175. + ;;
  2176. + *ELF-64*)
  2177. + HPUX_IA64_MODE="64"
  2178. + ;;
  2179. esac
  2180. -fi
  2181. -if test x$MISC_MAN_DIR = x ; then
  2182. - MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  2183. -fi
  2184. + fi
  2185. + rm -rf conftest*
  2186. + ;;
  2187. +*-*-irix6*)
  2188. + # Find out which ABI we are using.
  2189. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2190. + if AC_TRY_EVAL(ac_compile); then
  2191. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2192. + case `/usr/bin/file conftest.$ac_objext` in
  2193. + *32-bit*)
  2194. + LD="${LD-ld} -melf32bsmip"
  2195. + ;;
  2196. + *N32*)
  2197. + LD="${LD-ld} -melf32bmipn32"
  2198. + ;;
  2199. + *64-bit*)
  2200. + LD="${LD-ld} -melf64bmip"
  2201. + ;;
  2202. + esac
  2203. + else
  2204. + case `/usr/bin/file conftest.$ac_objext` in
  2205. + *32-bit*)
  2206. + LD="${LD-ld} -32"
  2207. + ;;
  2208. + *N32*)
  2209. + LD="${LD-ld} -n32"
  2210. + ;;
  2211. + *64-bit*)
  2212. + LD="${LD-ld} -64"
  2213. + ;;
  2214. + esac
  2215. + fi
  2216. + fi
  2217. + rm -rf conftest*
  2218. + ;;
  2219. -if test x$DRIVER_MAN_SUFFIX = x ; then
  2220. - case $host_os in
  2221. - solaris*) DRIVER_MAN_SUFFIX=7 ;;
  2222. - *) DRIVER_MAN_SUFFIX=4 ;;
  2223. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2224. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2225. + # Find out which ABI we are using.
  2226. + echo 'int i;' > conftest.$ac_ext
  2227. + if AC_TRY_EVAL(ac_compile); then
  2228. + case `/usr/bin/file conftest.o` in
  2229. + *32-bit*)
  2230. + case $host in
  2231. + x86_64-*kfreebsd*-gnu)
  2232. + LD="${LD-ld} -m elf_i386_fbsd"
  2233. + ;;
  2234. + x86_64-*linux*)
  2235. + LD="${LD-ld} -m elf_i386"
  2236. + ;;
  2237. + ppc64-*linux*|powerpc64-*linux*)
  2238. + LD="${LD-ld} -m elf32ppclinux"
  2239. + ;;
  2240. + s390x-*linux*)
  2241. + LD="${LD-ld} -m elf_s390"
  2242. + ;;
  2243. + sparc64-*linux*)
  2244. + LD="${LD-ld} -m elf32_sparc"
  2245. + ;;
  2246. + esac
  2247. + ;;
  2248. + *64-bit*)
  2249. + case $host in
  2250. + x86_64-*kfreebsd*-gnu)
  2251. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2252. + ;;
  2253. + x86_64-*linux*)
  2254. + LD="${LD-ld} -m elf_x86_64"
  2255. + ;;
  2256. + ppc*-*linux*|powerpc*-*linux*)
  2257. + LD="${LD-ld} -m elf64ppc"
  2258. + ;;
  2259. + s390*-*linux*|s390*-*tpf*)
  2260. + LD="${LD-ld} -m elf64_s390"
  2261. + ;;
  2262. + sparc*-*linux*)
  2263. + LD="${LD-ld} -m elf64_sparc"
  2264. + ;;
  2265. + esac
  2266. + ;;
  2267. esac
  2268. -fi
  2269. -if test x$DRIVER_MAN_DIR = x ; then
  2270. - DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  2271. -fi
  2272. + fi
  2273. + rm -rf conftest*
  2274. + ;;
  2275. -if test x$ADMIN_MAN_SUFFIX = x ; then
  2276. - case $host_os in
  2277. - solaris*) ADMIN_MAN_SUFFIX=1m ;;
  2278. - *) ADMIN_MAN_SUFFIX=8 ;;
  2279. +*-*-sco3.2v5*)
  2280. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2281. + SAVE_CFLAGS="$CFLAGS"
  2282. + CFLAGS="$CFLAGS -belf"
  2283. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2284. + [AC_LANG_PUSH(C)
  2285. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2286. + AC_LANG_POP])
  2287. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2288. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2289. + CFLAGS="$SAVE_CFLAGS"
  2290. + fi
  2291. + ;;
  2292. +sparc*-*solaris*)
  2293. + # Find out which ABI we are using.
  2294. + echo 'int i;' > conftest.$ac_ext
  2295. + if AC_TRY_EVAL(ac_compile); then
  2296. + case `/usr/bin/file conftest.o` in
  2297. + *64-bit*)
  2298. + case $lt_cv_prog_gnu_ld in
  2299. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2300. + *)
  2301. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2302. + LD="${LD-ld} -64"
  2303. + fi
  2304. + ;;
  2305. + esac
  2306. + ;;
  2307. esac
  2308. -fi
  2309. -if test x$ADMIN_MAN_DIR = x ; then
  2310. - ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  2311. -fi
  2312. + fi
  2313. + rm -rf conftest*
  2314. + ;;
  2315. +esac
  2316. +need_locks="$enable_libtool_lock"
  2317. +])# _LT_ENABLE_LOCK
  2318. -AC_SUBST([APP_MAN_SUFFIX])
  2319. -AC_SUBST([LIB_MAN_SUFFIX])
  2320. -AC_SUBST([FILE_MAN_SUFFIX])
  2321. -AC_SUBST([MISC_MAN_SUFFIX])
  2322. -AC_SUBST([DRIVER_MAN_SUFFIX])
  2323. -AC_SUBST([ADMIN_MAN_SUFFIX])
  2324. -AC_SUBST([APP_MAN_DIR])
  2325. -AC_SUBST([LIB_MAN_DIR])
  2326. -AC_SUBST([FILE_MAN_DIR])
  2327. -AC_SUBST([MISC_MAN_DIR])
  2328. -AC_SUBST([DRIVER_MAN_DIR])
  2329. -AC_SUBST([ADMIN_MAN_DIR])
  2330. -]) # XORG_MANPAGE_SECTIONS
  2331. -# XORG_CHECK_LINUXDOC
  2332. +# _LT_CMD_OLD_ARCHIVE
  2333. # -------------------
  2334. -# Minimum version: 1.0.0
  2335. -#
  2336. -# Defines the variable MAKE_TEXT if the necessary tools and
  2337. -# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
  2338. -# Whether or not the necessary tools and files are found can be checked
  2339. -# with the AM_CONDITIONAL "BUILD_LINUXDOC"
  2340. -AC_DEFUN([XORG_CHECK_LINUXDOC],[
  2341. -if test x$XORG_SGML_PATH = x ; then
  2342. - XORG_SGML_PATH=$prefix/share/sgml
  2343. -fi
  2344. -HAVE_DEFS_ENT=
  2345. -
  2346. -if test x"$cross_compiling" = x"yes" ; then
  2347. - HAVE_DEFS_ENT=no
  2348. -else
  2349. - AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  2350. -fi
  2351. -
  2352. -AC_PATH_PROG(LINUXDOC, linuxdoc)
  2353. -AC_PATH_PROG(PS2PDF, ps2pdf)
  2354. -
  2355. -AC_MSG_CHECKING([Whether to build documentation])
  2356. -
  2357. -if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
  2358. - BUILDDOC=yes
  2359. -else
  2360. - BUILDDOC=no
  2361. -fi
  2362. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2363. +[AC_CHECK_TOOL(AR, ar, false)
  2364. +test -z "$AR" && AR=ar
  2365. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2366. +_LT_DECL([], [AR], [1], [The archiver])
  2367. +_LT_DECL([], [AR_FLAGS], [1])
  2368. -AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
  2369. +AC_CHECK_TOOL(STRIP, strip, :)
  2370. +test -z "$STRIP" && STRIP=:
  2371. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2372. -AC_MSG_RESULT([$BUILDDOC])
  2373. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2374. +test -z "$RANLIB" && RANLIB=:
  2375. +_LT_DECL([], [RANLIB], [1],
  2376. + [Commands used to install an old-style archive])
  2377. -AC_MSG_CHECKING([Whether to build pdf documentation])
  2378. +# Determine commands to create old-style static archives.
  2379. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2380. +old_postinstall_cmds='chmod 644 $oldlib'
  2381. +old_postuninstall_cmds=
  2382. -if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
  2383. - BUILDPDFDOC=yes
  2384. -else
  2385. - BUILDPDFDOC=no
  2386. +if test -n "$RANLIB"; then
  2387. + case $host_os in
  2388. + openbsd*)
  2389. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2390. + ;;
  2391. + *)
  2392. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2393. + ;;
  2394. + esac
  2395. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2396. fi
  2397. +_LT_DECL([], [old_postinstall_cmds], [2])
  2398. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2399. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2400. + [Commands used to build an old-style archive])
  2401. +])# _LT_CMD_OLD_ARCHIVE
  2402. -AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  2403. -
  2404. -AC_MSG_RESULT([$BUILDPDFDOC])
  2405. -
  2406. -MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
  2407. -MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
  2408. -MAKE_PDF="$PS2PDF"
  2409. -MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
  2410. -AC_SUBST(MAKE_TEXT)
  2411. -AC_SUBST(MAKE_PS)
  2412. -AC_SUBST(MAKE_PDF)
  2413. -AC_SUBST(MAKE_HTML)
  2414. -]) # XORG_CHECK_LINUXDOC
  2415. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2416. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2417. +# ----------------------------------------------------------------
  2418. +# Check whether the given compiler option works
  2419. +AC_DEFUN([_LT_COMPILER_OPTION],
  2420. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2421. +m4_require([_LT_DECL_SED])dnl
  2422. +AC_CACHE_CHECK([$1], [$2],
  2423. + [$2=no
  2424. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2425. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2426. + lt_compiler_flag="$3"
  2427. + # Insert the option either (1) after the last *FLAGS variable, or
  2428. + # (2) before a word containing "conftest.", or (3) at the end.
  2429. + # Note that $ac_compile itself does not contain backslashes and begins
  2430. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2431. + # The option is referenced via a variable to avoid confusing sed.
  2432. + lt_compile=`echo "$ac_compile" | $SED \
  2433. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2434. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2435. + -e 's:$: $lt_compiler_flag:'`
  2436. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2437. + (eval "$lt_compile" 2>conftest.err)
  2438. + ac_status=$?
  2439. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2440. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2441. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2442. + # The compiler can only warn and ignore the option if not recognized
  2443. + # So say no if there are warnings other than the usual output.
  2444. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2445. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2446. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2447. + $2=yes
  2448. + fi
  2449. + fi
  2450. + $RM conftest*
  2451. +])
  2452. -# XORG_CHECK_DOCBOOK
  2453. -# -------------------
  2454. -# Minimum version: 1.0.0
  2455. -#
  2456. -# Checks for the ability to build output formats from SGML DocBook source.
  2457. -# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
  2458. -# indicates whether the necessary tools and files are found and, if set,
  2459. -# $(MAKE_XXX) blah.sgml will produce blah.xxx.
  2460. -AC_DEFUN([XORG_CHECK_DOCBOOK],[
  2461. -if test x$XORG_SGML_PATH = x ; then
  2462. - XORG_SGML_PATH=$prefix/share/sgml
  2463. +if test x"[$]$2" = xyes; then
  2464. + m4_if([$5], , :, [$5])
  2465. +else
  2466. + m4_if([$6], , :, [$6])
  2467. fi
  2468. -HAVE_DEFS_ENT=
  2469. -BUILDTXTDOC=no
  2470. -BUILDPDFDOC=no
  2471. -BUILDPSDOC=no
  2472. -BUILDHTMLDOC=no
  2473. +])# _LT_COMPILER_OPTION
  2474. -AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  2475. -
  2476. -AC_PATH_PROG(DOCBOOKPS, docbook2ps)
  2477. -AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
  2478. -AC_PATH_PROG(DOCBOOKHTML, docbook2html)
  2479. -AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
  2480. +# Old name:
  2481. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2482. +dnl aclocal-1.4 backwards compatibility:
  2483. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2484. +
  2485. +
  2486. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2487. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2488. +# ----------------------------------------------------
  2489. +# Check whether the given linker option works
  2490. +AC_DEFUN([_LT_LINKER_OPTION],
  2491. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2492. +m4_require([_LT_DECL_SED])dnl
  2493. +AC_CACHE_CHECK([$1], [$2],
  2494. + [$2=no
  2495. + save_LDFLAGS="$LDFLAGS"
  2496. + LDFLAGS="$LDFLAGS $3"
  2497. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2498. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2499. + # The linker can only warn and ignore the option if not recognized
  2500. + # So say no if there are warnings
  2501. + if test -s conftest.err; then
  2502. + # Append any errors to the config.log.
  2503. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2504. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2505. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2506. + if diff conftest.exp conftest.er2 >/dev/null; then
  2507. + $2=yes
  2508. + fi
  2509. + else
  2510. + $2=yes
  2511. + fi
  2512. + fi
  2513. + $RM -r conftest*
  2514. + LDFLAGS="$save_LDFLAGS"
  2515. +])
  2516. -AC_MSG_CHECKING([Whether to build text documentation])
  2517. -if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
  2518. - test x$BUILD_TXTDOC != xno; then
  2519. - BUILDTXTDOC=yes
  2520. +if test x"[$]$2" = xyes; then
  2521. + m4_if([$4], , :, [$4])
  2522. +else
  2523. + m4_if([$5], , :, [$5])
  2524. fi
  2525. -AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
  2526. -AC_MSG_RESULT([$BUILDTXTDOC])
  2527. +])# _LT_LINKER_OPTION
  2528. -AC_MSG_CHECKING([Whether to build PDF documentation])
  2529. -if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
  2530. - test x$BUILD_PDFDOC != xno; then
  2531. - BUILDPDFDOC=yes
  2532. -fi
  2533. -AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  2534. -AC_MSG_RESULT([$BUILDPDFDOC])
  2535. +# Old name:
  2536. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2537. +dnl aclocal-1.4 backwards compatibility:
  2538. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2539. -AC_MSG_CHECKING([Whether to build PostScript documentation])
  2540. -if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
  2541. - test x$BUILD_PSDOC != xno; then
  2542. - BUILDPSDOC=yes
  2543. -fi
  2544. -AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
  2545. -AC_MSG_RESULT([$BUILDPSDOC])
  2546. -AC_MSG_CHECKING([Whether to build HTML documentation])
  2547. -if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
  2548. - test x$BUILD_HTMLDOC != xno; then
  2549. - BUILDHTMLDOC=yes
  2550. -fi
  2551. -AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
  2552. -AC_MSG_RESULT([$BUILDHTMLDOC])
  2553. +# LT_CMD_MAX_LEN
  2554. +#---------------
  2555. +AC_DEFUN([LT_CMD_MAX_LEN],
  2556. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2557. +# find the maximum length of command line arguments
  2558. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2559. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2560. + i=0
  2561. + teststring="ABCD"
  2562. -MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
  2563. -MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
  2564. -MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
  2565. -MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
  2566. + case $build_os in
  2567. + msdosdjgpp*)
  2568. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2569. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2570. + # during glob expansion). Even if it were fixed, the result of this
  2571. + # check would be larger than it should be.
  2572. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2573. + ;;
  2574. -AC_SUBST(MAKE_TEXT)
  2575. -AC_SUBST(MAKE_PS)
  2576. -AC_SUBST(MAKE_PDF)
  2577. -AC_SUBST(MAKE_HTML)
  2578. -]) # XORG_CHECK_DOCBOOK
  2579. + gnu*)
  2580. + # Under GNU Hurd, this test is not required because there is
  2581. + # no limit to the length of command line arguments.
  2582. + # Libtool will interpret -1 as no limit whatsoever
  2583. + lt_cv_sys_max_cmd_len=-1;
  2584. + ;;
  2585. -# XORG_CHECK_MALLOC_ZERO
  2586. -# ----------------------
  2587. -# Minimum version: 1.0.0
  2588. -#
  2589. -# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
  2590. -# malloc(0) returns NULL. Packages should add one of these cflags to
  2591. -# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
  2592. -AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
  2593. -AC_ARG_ENABLE(malloc0returnsnull,
  2594. - AS_HELP_STRING([--enable-malloc0returnsnull],
  2595. - [malloc(0) returns NULL (default: auto)]),
  2596. - [MALLOC_ZERO_RETURNS_NULL=$enableval],
  2597. - [MALLOC_ZERO_RETURNS_NULL=auto])
  2598. + cygwin* | mingw* | cegcc*)
  2599. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2600. + # about 5 minutes as the teststring grows exponentially.
  2601. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2602. + # you end up with a "frozen" computer, even though with patience
  2603. + # the test eventually succeeds (with a max line length of 256k).
  2604. + # Instead, let's just punt: use the minimum linelength reported by
  2605. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2606. + lt_cv_sys_max_cmd_len=8192;
  2607. + ;;
  2608. -AC_MSG_CHECKING([whether malloc(0) returns NULL])
  2609. -if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
  2610. - AC_RUN_IFELSE([
  2611. -char *malloc();
  2612. -char *realloc();
  2613. -char *calloc();
  2614. -main() {
  2615. - char *m0, *r0, *c0, *p;
  2616. - m0 = malloc(0);
  2617. - p = malloc(10);
  2618. - r0 = realloc(p,0);
  2619. - c0 = calloc(0);
  2620. - exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
  2621. -}],
  2622. - [MALLOC_ZERO_RETURNS_NULL=yes],
  2623. - [MALLOC_ZERO_RETURNS_NULL=no])
  2624. -fi
  2625. -AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
  2626. + amigaos*)
  2627. + # On AmigaOS with pdksh, this test takes hours, literally.
  2628. + # So we just punt and use a minimum line length of 8192.
  2629. + lt_cv_sys_max_cmd_len=8192;
  2630. + ;;
  2631. -if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
  2632. - MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
  2633. - XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
  2634. - XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
  2635. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2636. + # This has been around since 386BSD, at least. Likely further.
  2637. + if test -x /sbin/sysctl; then
  2638. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2639. + elif test -x /usr/sbin/sysctl; then
  2640. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2641. + else
  2642. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2643. + fi
  2644. + # And add a safety zone
  2645. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2646. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2647. + ;;
  2648. +
  2649. + interix*)
  2650. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2651. + lt_cv_sys_max_cmd_len=196608
  2652. + ;;
  2653. +
  2654. + osf*)
  2655. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2656. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2657. + # nice to cause kernel panics so lets avoid the loop below.
  2658. + # First set a reasonable default.
  2659. + lt_cv_sys_max_cmd_len=16384
  2660. + #
  2661. + if test -x /sbin/sysconfig; then
  2662. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2663. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2664. + esac
  2665. + fi
  2666. + ;;
  2667. + sco3.2v5*)
  2668. + lt_cv_sys_max_cmd_len=102400
  2669. + ;;
  2670. + sysv5* | sco5v6* | sysv4.2uw2*)
  2671. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2672. + if test -n "$kargmax"; then
  2673. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2674. + else
  2675. + lt_cv_sys_max_cmd_len=32768
  2676. + fi
  2677. + ;;
  2678. + *)
  2679. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2680. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2681. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2682. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2683. + else
  2684. + # Make teststring a little bigger before we do anything with it.
  2685. + # a 1K string should be a reasonable start.
  2686. + for i in 1 2 3 4 5 6 7 8 ; do
  2687. + teststring=$teststring$teststring
  2688. + done
  2689. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2690. + # If test is not a shell built-in, we'll probably end up computing a
  2691. + # maximum length that is only half of the actual maximum length, but
  2692. + # we can't tell.
  2693. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2694. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2695. + test $i != 17 # 1/2 MB should be enough
  2696. + do
  2697. + i=`expr $i + 1`
  2698. + teststring=$teststring$teststring
  2699. + done
  2700. + # Only check the string length outside the loop.
  2701. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2702. + teststring=
  2703. + # Add a significant safety factor because C++ compilers can tack on
  2704. + # massive amounts of additional arguments before passing them to the
  2705. + # linker. It appears as though 1/2 is a usable value.
  2706. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2707. + fi
  2708. + ;;
  2709. + esac
  2710. +])
  2711. +if test -n $lt_cv_sys_max_cmd_len ; then
  2712. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2713. else
  2714. - MALLOC_ZERO_CFLAGS=""
  2715. - XMALLOC_ZERO_CFLAGS=""
  2716. - XTMALLOC_ZERO_CFLAGS=""
  2717. + AC_MSG_RESULT(none)
  2718. fi
  2719. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2720. +_LT_DECL([], [max_cmd_len], [0],
  2721. + [What is the maximum length of a command?])
  2722. +])# LT_CMD_MAX_LEN
  2723. -AC_SUBST([MALLOC_ZERO_CFLAGS])
  2724. -AC_SUBST([XMALLOC_ZERO_CFLAGS])
  2725. -AC_SUBST([XTMALLOC_ZERO_CFLAGS])
  2726. -]) # XORG_CHECK_MALLOC_ZERO
  2727. +# Old name:
  2728. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2729. +dnl aclocal-1.4 backwards compatibility:
  2730. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2731. -# XORG_WITH_LINT()
  2732. +
  2733. +# _LT_HEADER_DLFCN
  2734. # ----------------
  2735. -# Minimum version: 1.1.0
  2736. -#
  2737. -# Sets up flags for source checkers such as lint and sparse if --with-lint
  2738. -# is specified. (Use --with-lint=sparse for sparse.)
  2739. -# Sets $LINT to name of source checker passed with --with-lint (default: lint)
  2740. -# Sets $LINT_FLAGS to flags to pass to source checker
  2741. -# Sets LINT automake conditional if enabled (default: disabled)
  2742. -#
  2743. -AC_DEFUN([XORG_WITH_LINT],[
  2744. +m4_defun([_LT_HEADER_DLFCN],
  2745. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2746. +])# _LT_HEADER_DLFCN
  2747. -# Allow checking code with lint, sparse, etc.
  2748. -AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
  2749. - [Use a lint-style source code checker (default: disabled)])],
  2750. - [use_lint=$withval], [use_lint=no])
  2751. -if test "x$use_lint" = "xyes" ; then
  2752. - LINT="lint"
  2753. +
  2754. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2755. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2756. +# ----------------------------------------------------------------
  2757. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2758. +[m4_require([_LT_HEADER_DLFCN])dnl
  2759. +if test "$cross_compiling" = yes; then :
  2760. + [$4]
  2761. else
  2762. - LINT="$use_lint"
  2763. -fi
  2764. -if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
  2765. - case $LINT in
  2766. - lint|*/lint)
  2767. - case $host_os in
  2768. - solaris*)
  2769. - LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
  2770. - ;;
  2771. - esac
  2772. - ;;
  2773. - esac
  2774. -fi
  2775. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2776. + lt_status=$lt_dlunknown
  2777. + cat > conftest.$ac_ext <<_LT_EOF
  2778. +[#line __oline__ "configure"
  2779. +#include "confdefs.h"
  2780. -AC_SUBST(LINT)
  2781. -AC_SUBST(LINT_FLAGS)
  2782. -AM_CONDITIONAL(LINT, [test x$LINT != xno])
  2783. +#if HAVE_DLFCN_H
  2784. +#include <dlfcn.h>
  2785. +#endif
  2786. -]) # XORG_WITH_LINT
  2787. +#include <stdio.h>
  2788. -# XORG_LINT_LIBRARY(LIBNAME)
  2789. -# --------------------------
  2790. -# Minimum version: 1.1.0
  2791. -#
  2792. -# Sets up flags for building lint libraries for checking programs that call
  2793. -# functions in the library.
  2794. -# Disabled by default, enable with --enable-lint-library
  2795. -# Sets:
  2796. -# @LINTLIB@ - name of lint library file to make
  2797. -# MAKE_LINT_LIB - automake conditional
  2798. -#
  2799. +#ifdef RTLD_GLOBAL
  2800. +# define LT_DLGLOBAL RTLD_GLOBAL
  2801. +#else
  2802. +# ifdef DL_GLOBAL
  2803. +# define LT_DLGLOBAL DL_GLOBAL
  2804. +# else
  2805. +# define LT_DLGLOBAL 0
  2806. +# endif
  2807. +#endif
  2808. -AC_DEFUN([XORG_LINT_LIBRARY],[
  2809. -AC_REQUIRE([XORG_WITH_LINT])
  2810. -# Build lint "library" for more indepth checks of programs calling this library
  2811. -AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
  2812. - [Create lint library (default: disabled)])],
  2813. - [make_lint_lib=$enableval], [make_lint_lib=no])
  2814. -if test "x$make_lint_lib" != "xno" ; then
  2815. - if test "x$LINT" = "xno" ; then
  2816. - AC_MSG_ERROR([Cannot make lint library without --with-lint])
  2817. - fi
  2818. - if test "x$make_lint_lib" = "xyes" ; then
  2819. - LINTLIB=llib-l$1.ln
  2820. - else
  2821. - LINTLIB=$make_lint_lib
  2822. - fi
  2823. -fi
  2824. -AC_SUBST(LINTLIB)
  2825. -AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
  2826. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2827. + find out it does not work in some platform. */
  2828. +#ifndef LT_DLLAZY_OR_NOW
  2829. +# ifdef RTLD_LAZY
  2830. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2831. +# else
  2832. +# ifdef DL_LAZY
  2833. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2834. +# else
  2835. +# ifdef RTLD_NOW
  2836. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2837. +# else
  2838. +# ifdef DL_NOW
  2839. +# define LT_DLLAZY_OR_NOW DL_NOW
  2840. +# else
  2841. +# define LT_DLLAZY_OR_NOW 0
  2842. +# endif
  2843. +# endif
  2844. +# endif
  2845. +# endif
  2846. +#endif
  2847. -]) # XORG_LINT_LIBRARY
  2848. +void fnord() { int i=42;}
  2849. +int main ()
  2850. +{
  2851. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2852. + int status = $lt_dlunknown;
  2853. -# XORG_CWARNFLAGS
  2854. -# ---------------
  2855. -# Minimum version: 1.2.0
  2856. -#
  2857. -# Defines CWARNFLAGS to enable C compiler warnings.
  2858. -#
  2859. -AC_DEFUN([XORG_CWARNFLAGS], [
  2860. -AC_REQUIRE([AC_PROG_CC])
  2861. -if test "x$GCC" = xyes ; then
  2862. - CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  2863. --Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  2864. --Wbad-function-cast"
  2865. - case `$CC -dumpversion` in
  2866. - 3.4.* | 4.*)
  2867. - CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  2868. - ;;
  2869. + if (self)
  2870. + {
  2871. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2872. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2873. + /* dlclose (self); */
  2874. + }
  2875. + else
  2876. + puts (dlerror ());
  2877. +
  2878. + return status;
  2879. +}]
  2880. +_LT_EOF
  2881. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2882. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2883. + lt_status=$?
  2884. + case x$lt_status in
  2885. + x$lt_dlno_uscore) $1 ;;
  2886. + x$lt_dlneed_uscore) $2 ;;
  2887. + x$lt_dlunknown|x*) $3 ;;
  2888. esac
  2889. -else
  2890. - AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  2891. - if test "x$SUNCC" = "xyes"; then
  2892. - CWARNFLAGS="-v"
  2893. - fi
  2894. + else :
  2895. + # compilation failed
  2896. + $3
  2897. + fi
  2898. fi
  2899. -AC_SUBST(CWARNFLAGS)
  2900. -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  2901. -]) # XORG_CWARNFLAGS
  2902. +rm -fr conftest*
  2903. +])# _LT_TRY_DLOPEN_SELF
  2904. -# XORG_STRICT_OPTION
  2905. -# -----------------------
  2906. -# Minimum version: 1.3.0
  2907. -#
  2908. -# Add configure option to enable strict compilation
  2909. -AC_DEFUN([XORG_STRICT_OPTION], [
  2910. -AC_REQUIRE([AC_PROG_CC])
  2911. -AC_REQUIRE([AC_PROG_CC_C99])
  2912. -AC_REQUIRE([XORG_CWARNFLAGS])
  2913. -AC_ARG_ENABLE(strict-compilation,
  2914. - AS_HELP_STRING([--enable-strict-compilation],
  2915. - [Enable all warnings from compiler and make them errors (default: disabled)]),
  2916. - [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
  2917. -if test "x$STRICT_COMPILE" = "xyes"; then
  2918. - AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  2919. - AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
  2920. - if test "x$GCC" = xyes ; then
  2921. - STRICT_CFLAGS="-pedantic -Werror"
  2922. - elif test "x$SUNCC" = "xyes"; then
  2923. - STRICT_CFLAGS="-errwarn"
  2924. - elif test "x$INTELCC" = "xyes"; then
  2925. - STRICT_CFLAGS="-Werror"
  2926. - fi
  2927. -fi
  2928. -CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  2929. -AC_SUBST([CWARNFLAGS])
  2930. -]) # XORG_STRICT_OPTION
  2931. +# LT_SYS_DLOPEN_SELF
  2932. +# ------------------
  2933. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2934. +[m4_require([_LT_HEADER_DLFCN])dnl
  2935. +if test "x$enable_dlopen" != xyes; then
  2936. + enable_dlopen=unknown
  2937. + enable_dlopen_self=unknown
  2938. + enable_dlopen_self_static=unknown
  2939. +else
  2940. + lt_cv_dlopen=no
  2941. + lt_cv_dlopen_libs=
  2942. -# XORG_DEFAULT_OPTIONS
  2943. -# --------------------
  2944. -# Minimum version: 1.3.0
  2945. -#
  2946. -# Defines default options for X.Org modules.
  2947. -#
  2948. -AC_DEFUN([XORG_DEFAULT_OPTIONS], [
  2949. -XORG_CWARNFLAGS
  2950. -XORG_STRICT_OPTION
  2951. -XORG_RELEASE_VERSION
  2952. -XORG_CHANGELOG
  2953. -XORG_MANPAGE_SECTIONS
  2954. -]) # XORG_DEFAULT_OPTIONS
  2955. -dnl Copyright 2005 Red Hat, Inc
  2956. -dnl
  2957. -dnl Permission to use, copy, modify, distribute, and sell this software and its
  2958. -dnl documentation for any purpose is hereby granted without fee, provided that
  2959. -dnl the above copyright notice appear in all copies and that both that
  2960. -dnl copyright notice and this permission notice appear in supporting
  2961. -dnl documentation.
  2962. -dnl
  2963. -dnl The above copyright notice and this permission notice shall be included
  2964. -dnl in all copies or substantial portions of the Software.
  2965. -dnl
  2966. -dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  2967. -dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  2968. -dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  2969. -dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  2970. -dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  2971. -dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  2972. -dnl OTHER DEALINGS IN THE SOFTWARE.
  2973. -dnl
  2974. -dnl Except as contained in this notice, the name of the copyright holders shall
  2975. -dnl not be used in advertising or otherwise to promote the sale, use or
  2976. -dnl other dealings in this Software without prior written authorization
  2977. -dnl from the copyright holders.
  2978. -dnl
  2979. + case $host_os in
  2980. + beos*)
  2981. + lt_cv_dlopen="load_add_on"
  2982. + lt_cv_dlopen_libs=
  2983. + lt_cv_dlopen_self=yes
  2984. + ;;
  2985. -# XORG_RELEASE_VERSION
  2986. -# --------------------
  2987. -# Adds --with/without-release-string and changes the PACKAGE and
  2988. -# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
  2989. -# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
  2990. -# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
  2991. -
  2992. -AC_DEFUN([XORG_RELEASE_VERSION],[
  2993. - AC_ARG_WITH(release-version,
  2994. - AS_HELP_STRING([--with-release-version=STRING],
  2995. - [Use release version string in package name]),
  2996. - [RELEASE_VERSION="$withval"],
  2997. - [RELEASE_VERSION=""])
  2998. - if test "x$RELEASE_VERSION" != "x"; then
  2999. - PACKAGE="$PACKAGE-$RELEASE_VERSION"
  3000. - PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  3001. - AC_MSG_NOTICE([Building with package name set to $PACKAGE])
  3002. - fi
  3003. - AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
  3004. - [`echo $PACKAGE_VERSION | cut -d . -f 1`],
  3005. - [Major version of this package])
  3006. - PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  3007. - if test "x$PVM" = "x"; then
  3008. - PVM="0"
  3009. - fi
  3010. - AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
  3011. - [$PVM],
  3012. - [Minor version of this package])
  3013. - PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  3014. - if test "x$PVP" = "x"; then
  3015. - PVP="0"
  3016. - fi
  3017. - AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
  3018. - [$PVP],
  3019. - [Patch version of this package])
  3020. -])
  3021. + mingw* | pw32* | cegcc*)
  3022. + lt_cv_dlopen="LoadLibrary"
  3023. + lt_cv_dlopen_libs=
  3024. + ;;
  3025. -# XORG_CHANGELOG()
  3026. -# ----------------
  3027. -# Minimum version: 1.2.0
  3028. -#
  3029. -# Defines the variable CHANGELOG_CMD as the command to generate
  3030. -# ChangeLog from git.
  3031. -#
  3032. -# Arrange that distcleancheck ignores ChangeLog left over by distclean.
  3033. -#
  3034. -AC_DEFUN([XORG_CHANGELOG], [
  3035. -CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
  3036. -mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
  3037. -echo 'git directory not found: installing possibly empty changelog.' >&2)"
  3038. -AC_SUBST([CHANGELOG_CMD])
  3039. -AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
  3040. -]) # XORG_CHANGELOG
  3041. + cygwin*)
  3042. + lt_cv_dlopen="dlopen"
  3043. + lt_cv_dlopen_libs=
  3044. + ;;
  3045. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  3046. + darwin*)
  3047. + # if libdl is installed we need to link against it
  3048. + AC_CHECK_LIB([dl], [dlopen],
  3049. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3050. + lt_cv_dlopen="dyld"
  3051. + lt_cv_dlopen_libs=
  3052. + lt_cv_dlopen_self=yes
  3053. + ])
  3054. + ;;
  3055. -# serial 52 AC_PROG_LIBTOOL
  3056. + *)
  3057. + AC_CHECK_FUNC([shl_load],
  3058. + [lt_cv_dlopen="shl_load"],
  3059. + [AC_CHECK_LIB([dld], [shl_load],
  3060. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3061. + [AC_CHECK_FUNC([dlopen],
  3062. + [lt_cv_dlopen="dlopen"],
  3063. + [AC_CHECK_LIB([dl], [dlopen],
  3064. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3065. + [AC_CHECK_LIB([svld], [dlopen],
  3066. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3067. + [AC_CHECK_LIB([dld], [dld_link],
  3068. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3069. + ])
  3070. + ])
  3071. + ])
  3072. + ])
  3073. + ])
  3074. + ;;
  3075. + esac
  3076. + if test "x$lt_cv_dlopen" != xno; then
  3077. + enable_dlopen=yes
  3078. + else
  3079. + enable_dlopen=no
  3080. + fi
  3081. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  3082. -# -----------------------------------------------------------
  3083. -# If this macro is not defined by Autoconf, define it here.
  3084. -m4_ifdef([AC_PROVIDE_IFELSE],
  3085. - [],
  3086. - [m4_define([AC_PROVIDE_IFELSE],
  3087. - [m4_ifdef([AC_PROVIDE_$1],
  3088. - [$2], [$3])])])
  3089. + case $lt_cv_dlopen in
  3090. + dlopen)
  3091. + save_CPPFLAGS="$CPPFLAGS"
  3092. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3093. + save_LDFLAGS="$LDFLAGS"
  3094. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3095. -# AC_PROG_LIBTOOL
  3096. -# ---------------
  3097. -AC_DEFUN([AC_PROG_LIBTOOL],
  3098. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  3099. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  3100. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  3101. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  3102. - [AC_LIBTOOL_CXX],
  3103. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  3104. - ])])
  3105. -dnl And a similar setup for Fortran 77 support
  3106. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  3107. - [AC_LIBTOOL_F77],
  3108. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  3109. -])])
  3110. -
  3111. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  3112. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  3113. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  3114. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  3115. - [AC_LIBTOOL_GCJ],
  3116. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  3117. - [AC_LIBTOOL_GCJ],
  3118. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  3119. - [AC_LIBTOOL_GCJ],
  3120. - [ifdef([AC_PROG_GCJ],
  3121. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  3122. - ifdef([A][M_PROG_GCJ],
  3123. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  3124. - ifdef([LT_AC_PROG_GCJ],
  3125. - [define([LT_AC_PROG_GCJ],
  3126. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  3127. -])])# AC_PROG_LIBTOOL
  3128. + save_LIBS="$LIBS"
  3129. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3130. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3131. + lt_cv_dlopen_self, [dnl
  3132. + _LT_TRY_DLOPEN_SELF(
  3133. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3134. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3135. + ])
  3136. -# _AC_PROG_LIBTOOL
  3137. -# ----------------
  3138. -AC_DEFUN([_AC_PROG_LIBTOOL],
  3139. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  3140. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  3141. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  3142. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  3143. + if test "x$lt_cv_dlopen_self" = xyes; then
  3144. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3145. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3146. + lt_cv_dlopen_self_static, [dnl
  3147. + _LT_TRY_DLOPEN_SELF(
  3148. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3149. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3150. + ])
  3151. + fi
  3152. -# This can be used to rebuild libtool when needed
  3153. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  3154. + CPPFLAGS="$save_CPPFLAGS"
  3155. + LDFLAGS="$save_LDFLAGS"
  3156. + LIBS="$save_LIBS"
  3157. + ;;
  3158. + esac
  3159. -# Always use our own libtool.
  3160. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  3161. -AC_SUBST(LIBTOOL)dnl
  3162. + case $lt_cv_dlopen_self in
  3163. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3164. + *) enable_dlopen_self=unknown ;;
  3165. + esac
  3166. -# Prevent multiple expansion
  3167. -define([AC_PROG_LIBTOOL], [])
  3168. -])# _AC_PROG_LIBTOOL
  3169. + case $lt_cv_dlopen_self_static in
  3170. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3171. + *) enable_dlopen_self_static=unknown ;;
  3172. + esac
  3173. +fi
  3174. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3175. + [Whether dlopen is supported])
  3176. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3177. + [Whether dlopen of programs is supported])
  3178. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3179. + [Whether dlopen of statically linked programs is supported])
  3180. +])# LT_SYS_DLOPEN_SELF
  3181. +
  3182. +# Old name:
  3183. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3184. +dnl aclocal-1.4 backwards compatibility:
  3185. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3186. -# AC_LIBTOOL_SETUP
  3187. -# ----------------
  3188. -AC_DEFUN([AC_LIBTOOL_SETUP],
  3189. -[AC_PREREQ(2.50)dnl
  3190. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  3191. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  3192. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  3193. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3194. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3195. -AC_REQUIRE([AC_PROG_CC])dnl
  3196. -AC_REQUIRE([AC_PROG_LD])dnl
  3197. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  3198. -AC_REQUIRE([AC_PROG_NM])dnl
  3199. +# _LT_COMPILER_C_O([TAGNAME])
  3200. +# ---------------------------
  3201. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3202. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3203. +m4_defun([_LT_COMPILER_C_O],
  3204. +[m4_require([_LT_DECL_SED])dnl
  3205. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3206. +m4_require([_LT_TAG_COMPILER])dnl
  3207. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3208. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3209. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3210. + $RM -r conftest 2>/dev/null
  3211. + mkdir conftest
  3212. + cd conftest
  3213. + mkdir out
  3214. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3215. -AC_REQUIRE([AC_PROG_LN_S])dnl
  3216. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  3217. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  3218. -AC_REQUIRE([AC_OBJEXT])dnl
  3219. -AC_REQUIRE([AC_EXEEXT])dnl
  3220. -dnl
  3221. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  3222. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  3223. -AC_LIBTOOL_OBJDIR
  3224. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3225. + # Insert the option either (1) after the last *FLAGS variable, or
  3226. + # (2) before a word containing "conftest.", or (3) at the end.
  3227. + # Note that $ac_compile itself does not contain backslashes and begins
  3228. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3229. + lt_compile=`echo "$ac_compile" | $SED \
  3230. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3231. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3232. + -e 's:$: $lt_compiler_flag:'`
  3233. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3234. + (eval "$lt_compile" 2>out/conftest.err)
  3235. + ac_status=$?
  3236. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3237. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3238. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3239. + then
  3240. + # The compiler can only warn and ignore the option if not recognized
  3241. + # So say no if there are warnings
  3242. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3243. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3244. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3245. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3246. + fi
  3247. + fi
  3248. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3249. + $RM conftest*
  3250. + # SGI C++ compiler will create directory out/ii_files/ for
  3251. + # template instantiation
  3252. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3253. + $RM out/* && rmdir out
  3254. + cd ..
  3255. + $RM -r conftest
  3256. + $RM conftest*
  3257. +])
  3258. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3259. + [Does compiler simultaneously support -c and -o options?])
  3260. +])# _LT_COMPILER_C_O
  3261. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  3262. -_LT_AC_PROG_ECHO_BACKSLASH
  3263. -case $host_os in
  3264. -aix3*)
  3265. - # AIX sometimes has problems with the GCC collect2 program. For some
  3266. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  3267. - # vanish in a puff of smoke.
  3268. - if test "X${COLLECT_NAMES+set}" != Xset; then
  3269. - COLLECT_NAMES=
  3270. - export COLLECT_NAMES
  3271. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3272. +# ----------------------------------
  3273. +# Check to see if we can do hard links to lock some files if needed
  3274. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3275. +[m4_require([_LT_ENABLE_LOCK])dnl
  3276. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3277. +_LT_COMPILER_C_O([$1])
  3278. +
  3279. +hard_links="nottested"
  3280. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3281. + # do not overwrite the value of need_locks provided by the user
  3282. + AC_MSG_CHECKING([if we can lock with hard links])
  3283. + hard_links=yes
  3284. + $RM conftest*
  3285. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3286. + touch conftest.a
  3287. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3288. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3289. + AC_MSG_RESULT([$hard_links])
  3290. + if test "$hard_links" = no; then
  3291. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3292. + need_locks=warn
  3293. fi
  3294. - ;;
  3295. -esac
  3296. +else
  3297. + need_locks=no
  3298. +fi
  3299. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3300. +])# _LT_COMPILER_FILE_LOCKS
  3301. -# Sed substitution that helps us do robust quoting. It backslashifies
  3302. -# metacharacters that are still active within double-quoted strings.
  3303. -Xsed='sed -e 1s/^X//'
  3304. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  3305. -# Same as above, but do not quote variable references.
  3306. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  3307. +# _LT_CHECK_OBJDIR
  3308. +# ----------------
  3309. +m4_defun([_LT_CHECK_OBJDIR],
  3310. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3311. +[rm -f .libs 2>/dev/null
  3312. +mkdir .libs 2>/dev/null
  3313. +if test -d .libs; then
  3314. + lt_cv_objdir=.libs
  3315. +else
  3316. + # MS-DOS does not allow filenames that begin with a dot.
  3317. + lt_cv_objdir=_libs
  3318. +fi
  3319. +rmdir .libs 2>/dev/null])
  3320. +objdir=$lt_cv_objdir
  3321. +_LT_DECL([], [objdir], [0],
  3322. + [The name of the directory that contains temporary libtool files])dnl
  3323. +m4_pattern_allow([LT_OBJDIR])dnl
  3324. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3325. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3326. +])# _LT_CHECK_OBJDIR
  3327. -# Sed substitution to delay expansion of an escaped shell variable in a
  3328. -# double_quote_subst'ed string.
  3329. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3330. -# Sed substitution to avoid accidental globbing in evaled expressions
  3331. -no_glob_subst='s/\*/\\\*/g'
  3332. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3333. +# --------------------------------------
  3334. +# Check hardcoding attributes.
  3335. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3336. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3337. +_LT_TAGVAR(hardcode_action, $1)=
  3338. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3339. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3340. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3341. -# Constants:
  3342. -rm="rm -f"
  3343. + # We can hardcode non-existent directories.
  3344. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3345. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3346. + # have to relink, otherwise we might link with an installed library
  3347. + # when we should be linking with a yet-to-be-installed one
  3348. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3349. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3350. + # Linking always hardcodes the temporary library directory.
  3351. + _LT_TAGVAR(hardcode_action, $1)=relink
  3352. + else
  3353. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3354. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3355. + fi
  3356. +else
  3357. + # We cannot hardcode anything, or else we can only hardcode existing
  3358. + # directories.
  3359. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3360. +fi
  3361. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3362. -# Global variables:
  3363. -default_ofile=libtool
  3364. -can_build_shared=yes
  3365. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3366. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3367. + # Fast installation is not supported
  3368. + enable_fast_install=no
  3369. +elif test "$shlibpath_overrides_runpath" = yes ||
  3370. + test "$enable_shared" = no; then
  3371. + # Fast installation is not necessary
  3372. + enable_fast_install=needless
  3373. +fi
  3374. +_LT_TAGDECL([], [hardcode_action], [0],
  3375. + [How to hardcode a shared library path into an executable])
  3376. +])# _LT_LINKER_HARDCODE_LIBPATH
  3377. -# All known linkers require a `.a' archive for static linking (except MSVC,
  3378. -# which needs '.lib').
  3379. -libext=a
  3380. -ltmain="$ac_aux_dir/ltmain.sh"
  3381. -ofile="$default_ofile"
  3382. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  3383. -AC_CHECK_TOOL(AR, ar, false)
  3384. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  3385. -AC_CHECK_TOOL(STRIP, strip, :)
  3386. +# _LT_CMD_STRIPLIB
  3387. +# ----------------
  3388. +m4_defun([_LT_CMD_STRIPLIB],
  3389. +[m4_require([_LT_DECL_EGREP])
  3390. +striplib=
  3391. +old_striplib=
  3392. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3393. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3394. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3395. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3396. + AC_MSG_RESULT([yes])
  3397. +else
  3398. +# FIXME - insert some real tests, host_os isn't really good enough
  3399. + case $host_os in
  3400. + darwin*)
  3401. + if test -n "$STRIP" ; then
  3402. + striplib="$STRIP -x"
  3403. + old_striplib="$STRIP -S"
  3404. + AC_MSG_RESULT([yes])
  3405. + else
  3406. + AC_MSG_RESULT([no])
  3407. + fi
  3408. + ;;
  3409. + *)
  3410. + AC_MSG_RESULT([no])
  3411. + ;;
  3412. + esac
  3413. +fi
  3414. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3415. +_LT_DECL([], [striplib], [1])
  3416. +])# _LT_CMD_STRIPLIB
  3417. -old_CC="$CC"
  3418. -old_CFLAGS="$CFLAGS"
  3419. -# Set sane defaults for various variables
  3420. -test -z "$AR" && AR=ar
  3421. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  3422. -test -z "$AS" && AS=as
  3423. -test -z "$CC" && CC=cc
  3424. -test -z "$LTCC" && LTCC=$CC
  3425. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  3426. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  3427. -test -z "$LD" && LD=ld
  3428. -test -z "$LN_S" && LN_S="ln -s"
  3429. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  3430. -test -z "$NM" && NM=nm
  3431. -test -z "$SED" && SED=sed
  3432. -test -z "$OBJDUMP" && OBJDUMP=objdump
  3433. -test -z "$RANLIB" && RANLIB=:
  3434. -test -z "$STRIP" && STRIP=:
  3435. -test -z "$ac_objext" && ac_objext=o
  3436. -
  3437. -# Determine commands to create old-style static archives.
  3438. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  3439. -old_postinstall_cmds='chmod 644 $oldlib'
  3440. -old_postuninstall_cmds=
  3441. -
  3442. -if test -n "$RANLIB"; then
  3443. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3444. +# -----------------------------
  3445. +# PORTME Fill in your ld.so characteristics
  3446. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3447. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3448. +m4_require([_LT_DECL_EGREP])dnl
  3449. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3450. +m4_require([_LT_DECL_OBJDUMP])dnl
  3451. +m4_require([_LT_DECL_SED])dnl
  3452. +AC_MSG_CHECKING([dynamic linker characteristics])
  3453. +m4_if([$1],
  3454. + [], [
  3455. +if test "$GCC" = yes; then
  3456. case $host_os in
  3457. - openbsd*)
  3458. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  3459. - ;;
  3460. - *)
  3461. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  3462. - ;;
  3463. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3464. + *) lt_awk_arg="/^libraries:/" ;;
  3465. esac
  3466. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  3467. -fi
  3468. -
  3469. -_LT_CC_BASENAME([$compiler])
  3470. -
  3471. -# Only perform the check for file, if the check method requires it
  3472. -case $deplibs_check_method in
  3473. -file_magic*)
  3474. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3475. - AC_PATH_MAGIC
  3476. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3477. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3478. + # if the path contains ";" then we assume it to be the separator
  3479. + # otherwise default to the standard path separator (i.e. ":") - it is
  3480. + # assumed that no part of a normal pathname contains ";" but that should
  3481. + # okay in the real world where ";" in dirpaths is itself problematic.
  3482. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3483. + else
  3484. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3485. fi
  3486. - ;;
  3487. -esac
  3488. + # Ok, now we have the path, separated by spaces, we can step through it
  3489. + # and add multilib dir if necessary.
  3490. + lt_tmp_lt_search_path_spec=
  3491. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3492. + for lt_sys_path in $lt_search_path_spec; do
  3493. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3494. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3495. + else
  3496. + test -d "$lt_sys_path" && \
  3497. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3498. + fi
  3499. + done
  3500. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3501. +BEGIN {RS=" "; FS="/|\n";} {
  3502. + lt_foo="";
  3503. + lt_count=0;
  3504. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3505. + if ($lt_i != "" && $lt_i != ".") {
  3506. + if ($lt_i == "..") {
  3507. + lt_count++;
  3508. + } else {
  3509. + if (lt_count == 0) {
  3510. + lt_foo="/" $lt_i lt_foo;
  3511. + } else {
  3512. + lt_count--;
  3513. + }
  3514. + }
  3515. + }
  3516. + }
  3517. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3518. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3519. +}'`
  3520. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3521. +else
  3522. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3523. +fi])
  3524. +library_names_spec=
  3525. +libname_spec='lib$name'
  3526. +soname_spec=
  3527. +shrext_cmds=".so"
  3528. +postinstall_cmds=
  3529. +postuninstall_cmds=
  3530. +finish_cmds=
  3531. +finish_eval=
  3532. +shlibpath_var=
  3533. +shlibpath_overrides_runpath=unknown
  3534. +version_type=none
  3535. +dynamic_linker="$host_os ld.so"
  3536. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3537. +need_lib_prefix=unknown
  3538. +hardcode_into_libs=no
  3539. -_LT_REQUIRED_DARWIN_CHECKS
  3540. +# when you set need_version to no, make sure it does not cause -set_version
  3541. +# flags to be left without arguments
  3542. +need_version=unknown
  3543. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  3544. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  3545. -enable_win32_dll=yes, enable_win32_dll=no)
  3546. -
  3547. -AC_ARG_ENABLE([libtool-lock],
  3548. - [AC_HELP_STRING([--disable-libtool-lock],
  3549. - [avoid locking (might break parallel builds)])])
  3550. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3551. +case $host_os in
  3552. +aix3*)
  3553. + version_type=linux
  3554. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3555. + shlibpath_var=LIBPATH
  3556. -AC_ARG_WITH([pic],
  3557. - [AC_HELP_STRING([--with-pic],
  3558. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  3559. - [pic_mode="$withval"],
  3560. - [pic_mode=default])
  3561. -test -z "$pic_mode" && pic_mode=default
  3562. + # AIX 3 has no versioning support, so we append a major version to the name.
  3563. + soname_spec='${libname}${release}${shared_ext}$major'
  3564. + ;;
  3565. -# Use C for the default configuration in the libtool script
  3566. -tagname=
  3567. -AC_LIBTOOL_LANG_C_CONFIG
  3568. -_LT_AC_TAGCONFIG
  3569. -])# AC_LIBTOOL_SETUP
  3570. +aix[[4-9]]*)
  3571. + version_type=linux
  3572. + need_lib_prefix=no
  3573. + need_version=no
  3574. + hardcode_into_libs=yes
  3575. + if test "$host_cpu" = ia64; then
  3576. + # AIX 5 supports IA64
  3577. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3578. + shlibpath_var=LD_LIBRARY_PATH
  3579. + else
  3580. + # With GCC up to 2.95.x, collect2 would create an import file
  3581. + # for dependence libraries. The import file would start with
  3582. + # the line `#! .'. This would cause the generated library to
  3583. + # depend on `.', always an invalid library. This was fixed in
  3584. + # development snapshots of GCC prior to 3.0.
  3585. + case $host_os in
  3586. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3587. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3588. + echo ' yes '
  3589. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3590. + :
  3591. + else
  3592. + can_build_shared=no
  3593. + fi
  3594. + ;;
  3595. + esac
  3596. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3597. + # soname into executable. Probably we can add versioning support to
  3598. + # collect2, so additional links can be useful in future.
  3599. + if test "$aix_use_runtimelinking" = yes; then
  3600. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3601. + # instead of lib<name>.a to let people know that these are not
  3602. + # typical AIX shared libraries.
  3603. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3604. + else
  3605. + # We preserve .a as extension for shared libraries through AIX4.2
  3606. + # and later when we are not doing run time linking.
  3607. + library_names_spec='${libname}${release}.a $libname.a'
  3608. + soname_spec='${libname}${release}${shared_ext}$major'
  3609. + fi
  3610. + shlibpath_var=LIBPATH
  3611. + fi
  3612. + ;;
  3613. +amigaos*)
  3614. + case $host_cpu in
  3615. + powerpc)
  3616. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3617. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3618. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3619. + ;;
  3620. + m68k)
  3621. + library_names_spec='$libname.ixlibrary $libname.a'
  3622. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3623. + 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'
  3624. + ;;
  3625. + esac
  3626. + ;;
  3627. -# _LT_AC_SYS_COMPILER
  3628. -# -------------------
  3629. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  3630. -[AC_REQUIRE([AC_PROG_CC])dnl
  3631. +beos*)
  3632. + library_names_spec='${libname}${shared_ext}'
  3633. + dynamic_linker="$host_os ld.so"
  3634. + shlibpath_var=LIBRARY_PATH
  3635. + ;;
  3636. -# If no C compiler was specified, use CC.
  3637. -LTCC=${LTCC-"$CC"}
  3638. +bsdi[[45]]*)
  3639. + version_type=linux
  3640. + need_version=no
  3641. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3642. + soname_spec='${libname}${release}${shared_ext}$major'
  3643. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3644. + shlibpath_var=LD_LIBRARY_PATH
  3645. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3646. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3647. + # the default ld.so.conf also contains /usr/contrib/lib and
  3648. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3649. + # libtool to hard-code these into programs
  3650. + ;;
  3651. -# If no C compiler flags were specified, use CFLAGS.
  3652. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3653. +cygwin* | mingw* | pw32* | cegcc*)
  3654. + version_type=windows
  3655. + shrext_cmds=".dll"
  3656. + need_version=no
  3657. + need_lib_prefix=no
  3658. -# Allow CC to be a program name with arguments.
  3659. -compiler=$CC
  3660. -])# _LT_AC_SYS_COMPILER
  3661. + case $GCC,$host_os in
  3662. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3663. + library_names_spec='$libname.dll.a'
  3664. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3665. + postinstall_cmds='base_file=`basename \${file}`~
  3666. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3667. + dldir=$destdir/`dirname \$dlpath`~
  3668. + test -d \$dldir || mkdir -p \$dldir~
  3669. + $install_prog $dir/$dlname \$dldir/$dlname~
  3670. + chmod a+x \$dldir/$dlname~
  3671. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3672. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3673. + fi'
  3674. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3675. + dlpath=$dir/\$dldll~
  3676. + $RM \$dlpath'
  3677. + shlibpath_overrides_runpath=yes
  3678. + case $host_os in
  3679. + cygwin*)
  3680. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3681. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3682. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3683. + ;;
  3684. + mingw* | cegcc*)
  3685. + # MinGW DLLs use traditional 'lib' prefix
  3686. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3687. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3688. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3689. + # It is most probably a Windows format PATH printed by
  3690. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3691. + # path with ; separators, and with drive letters. We can handle the
  3692. + # drive letters (cygwin fileutils understands them), so leave them,
  3693. + # especially as we might pass files found there to a mingw objdump,
  3694. + # which wouldn't understand a cygwinified path. Ahh.
  3695. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3696. + else
  3697. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3698. + fi
  3699. + ;;
  3700. + pw32*)
  3701. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3702. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3703. + ;;
  3704. + esac
  3705. + ;;
  3706. -# _LT_CC_BASENAME(CC)
  3707. -# -------------------
  3708. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  3709. -AC_DEFUN([_LT_CC_BASENAME],
  3710. -[for cc_temp in $1""; do
  3711. - case $cc_temp in
  3712. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  3713. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  3714. - \-*) ;;
  3715. - *) break;;
  3716. + *)
  3717. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  3718. + ;;
  3719. esac
  3720. -done
  3721. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  3722. -])
  3723. + dynamic_linker='Win32 ld.exe'
  3724. + # FIXME: first we should search . and the directory the executable is in
  3725. + shlibpath_var=PATH
  3726. + ;;
  3727. +darwin* | rhapsody*)
  3728. + dynamic_linker="$host_os dyld"
  3729. + version_type=darwin
  3730. + need_lib_prefix=no
  3731. + need_version=no
  3732. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3733. + soname_spec='${libname}${release}${major}$shared_ext'
  3734. + shlibpath_overrides_runpath=yes
  3735. + shlibpath_var=DYLD_LIBRARY_PATH
  3736. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  3737. +m4_if([$1], [],[
  3738. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  3739. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3740. + ;;
  3741. -# _LT_COMPILER_BOILERPLATE
  3742. -# ------------------------
  3743. -# Check for compiler boilerplate output or warnings with
  3744. -# the simple compiler test code.
  3745. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  3746. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  3747. -ac_outfile=conftest.$ac_objext
  3748. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  3749. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  3750. -_lt_compiler_boilerplate=`cat conftest.err`
  3751. -$rm conftest*
  3752. -])# _LT_COMPILER_BOILERPLATE
  3753. -
  3754. -
  3755. -# _LT_LINKER_BOILERPLATE
  3756. -# ----------------------
  3757. -# Check for linker boilerplate output or warnings with
  3758. -# the simple link test code.
  3759. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  3760. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  3761. -ac_outfile=conftest.$ac_objext
  3762. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  3763. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  3764. -_lt_linker_boilerplate=`cat conftest.err`
  3765. -$rm -r conftest*
  3766. -])# _LT_LINKER_BOILERPLATE
  3767. +dgux*)
  3768. + version_type=linux
  3769. + need_lib_prefix=no
  3770. + need_version=no
  3771. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  3772. + soname_spec='${libname}${release}${shared_ext}$major'
  3773. + shlibpath_var=LD_LIBRARY_PATH
  3774. + ;;
  3775. -# _LT_REQUIRED_DARWIN_CHECKS
  3776. -# --------------------------
  3777. -# Check for some things on darwin
  3778. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  3779. - case $host_os in
  3780. - rhapsody* | darwin*)
  3781. - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  3782. - AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  3783. +freebsd1*)
  3784. + dynamic_linker=no
  3785. + ;;
  3786. - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  3787. - [lt_cv_apple_cc_single_mod=no
  3788. - if test -z "${LT_MULTI_MODULE}"; then
  3789. - # By default we will add the -single_module flag. You can override
  3790. - # by either setting the environment variable LT_MULTI_MODULE
  3791. - # non-empty at configure time, or by adding -multi_module to the
  3792. - # link flags.
  3793. - echo "int foo(void){return 1;}" > conftest.c
  3794. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  3795. - -dynamiclib ${wl}-single_module conftest.c
  3796. - if test -f libconftest.dylib; then
  3797. - lt_cv_apple_cc_single_mod=yes
  3798. - rm -rf libconftest.dylib*
  3799. - fi
  3800. - rm conftest.c
  3801. - fi])
  3802. - AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  3803. - [lt_cv_ld_exported_symbols_list],
  3804. - [lt_cv_ld_exported_symbols_list=no
  3805. - save_LDFLAGS=$LDFLAGS
  3806. - echo "_main" > conftest.sym
  3807. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  3808. - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  3809. - [lt_cv_ld_exported_symbols_list=yes],
  3810. - [lt_cv_ld_exported_symbols_list=no])
  3811. - LDFLAGS="$save_LDFLAGS"
  3812. - ])
  3813. +freebsd* | dragonfly*)
  3814. + # DragonFly does not have aout. When/if they implement a new
  3815. + # versioning mechanism, adjust this.
  3816. + if test -x /usr/bin/objformat; then
  3817. + objformat=`/usr/bin/objformat`
  3818. + else
  3819. case $host_os in
  3820. - rhapsody* | darwin1.[[0123]])
  3821. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  3822. - darwin1.*)
  3823. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  3824. - darwin*)
  3825. - # if running on 10.5 or later, the deployment target defaults
  3826. - # to the OS version, if on x86, and 10.4, the deployment
  3827. - # target defaults to 10.4. Don't you love it?
  3828. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  3829. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  3830. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  3831. - 10.[[012]]*)
  3832. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  3833. - 10.*)
  3834. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  3835. - esac
  3836. + freebsd[[123]]*) objformat=aout ;;
  3837. + *) objformat=elf ;;
  3838. + esac
  3839. + fi
  3840. + version_type=freebsd-$objformat
  3841. + case $version_type in
  3842. + freebsd-elf*)
  3843. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3844. + need_version=no
  3845. + need_lib_prefix=no
  3846. + ;;
  3847. + freebsd-*)
  3848. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  3849. + need_version=yes
  3850. + ;;
  3851. + esac
  3852. + shlibpath_var=LD_LIBRARY_PATH
  3853. + case $host_os in
  3854. + freebsd2*)
  3855. + shlibpath_overrides_runpath=yes
  3856. + ;;
  3857. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  3858. + shlibpath_overrides_runpath=yes
  3859. + hardcode_into_libs=yes
  3860. + ;;
  3861. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  3862. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  3863. + shlibpath_overrides_runpath=no
  3864. + hardcode_into_libs=yes
  3865. + ;;
  3866. + *) # from 4.6 on, and DragonFly
  3867. + shlibpath_overrides_runpath=yes
  3868. + hardcode_into_libs=yes
  3869. ;;
  3870. esac
  3871. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  3872. - _lt_dar_single_mod='$single_module'
  3873. - fi
  3874. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  3875. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  3876. - else
  3877. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  3878. - fi
  3879. - if test "$DSYMUTIL" != ":"; then
  3880. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  3881. + ;;
  3882. +
  3883. +gnu*)
  3884. + version_type=linux
  3885. + need_lib_prefix=no
  3886. + need_version=no
  3887. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  3888. + soname_spec='${libname}${release}${shared_ext}$major'
  3889. + shlibpath_var=LD_LIBRARY_PATH
  3890. + hardcode_into_libs=yes
  3891. + ;;
  3892. +
  3893. +hpux9* | hpux10* | hpux11*)
  3894. + # Give a soname corresponding to the major version so that dld.sl refuses to
  3895. + # link against other versions.
  3896. + version_type=sunos
  3897. + need_lib_prefix=no
  3898. + need_version=no
  3899. + case $host_cpu in
  3900. + ia64*)
  3901. + shrext_cmds='.so'
  3902. + hardcode_into_libs=yes
  3903. + dynamic_linker="$host_os dld.so"
  3904. + shlibpath_var=LD_LIBRARY_PATH
  3905. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3906. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3907. + soname_spec='${libname}${release}${shared_ext}$major'
  3908. + if test "X$HPUX_IA64_MODE" = X32; then
  3909. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  3910. else
  3911. - _lt_dsymutil=
  3912. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  3913. fi
  3914. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3915. + ;;
  3916. + hppa*64*)
  3917. + shrext_cmds='.sl'
  3918. + hardcode_into_libs=yes
  3919. + dynamic_linker="$host_os dld.sl"
  3920. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3921. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3922. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3923. + soname_spec='${libname}${release}${shared_ext}$major'
  3924. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3925. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3926. + ;;
  3927. + *)
  3928. + shrext_cmds='.sl'
  3929. + dynamic_linker="$host_os dld.sl"
  3930. + shlibpath_var=SHLIB_PATH
  3931. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3932. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3933. + soname_spec='${libname}${release}${shared_ext}$major'
  3934. ;;
  3935. esac
  3936. -])
  3937. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3938. + postinstall_cmds='chmod 555 $lib'
  3939. + ;;
  3940. -# _LT_AC_SYS_LIBPATH_AIX
  3941. -# ----------------------
  3942. -# Links a minimal program and checks the executable
  3943. -# for the system default hardcoded library path. In most cases,
  3944. -# this is /usr/lib:/lib, but when the MPI compilers are used
  3945. -# the location of the communication and MPI libs are included too.
  3946. -# If we don't find anything, use the default library path according
  3947. -# to the aix ld manual.
  3948. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  3949. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  3950. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  3951. -lt_aix_libpath_sed='
  3952. - /Import File Strings/,/^$/ {
  3953. - /^0/ {
  3954. - s/^0 *\(.*\)$/\1/
  3955. - p
  3956. - }
  3957. - }'
  3958. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  3959. -# Check for a 64-bit object if we didn't find anything.
  3960. -if test -z "$aix_libpath"; then
  3961. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  3962. -fi],[])
  3963. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  3964. -])# _LT_AC_SYS_LIBPATH_AIX
  3965. +interix[[3-9]]*)
  3966. + version_type=linux
  3967. + need_lib_prefix=no
  3968. + need_version=no
  3969. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  3970. + soname_spec='${libname}${release}${shared_ext}$major'
  3971. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  3972. + shlibpath_var=LD_LIBRARY_PATH
  3973. + shlibpath_overrides_runpath=no
  3974. + hardcode_into_libs=yes
  3975. + ;;
  3976. +irix5* | irix6* | nonstopux*)
  3977. + case $host_os in
  3978. + nonstopux*) version_type=nonstopux ;;
  3979. + *)
  3980. + if test "$lt_cv_prog_gnu_ld" = yes; then
  3981. + version_type=linux
  3982. + else
  3983. + version_type=irix
  3984. + fi ;;
  3985. + esac
  3986. + need_lib_prefix=no
  3987. + need_version=no
  3988. + soname_spec='${libname}${release}${shared_ext}$major'
  3989. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  3990. + case $host_os in
  3991. + irix5* | nonstopux*)
  3992. + libsuff= shlibsuff=
  3993. + ;;
  3994. + *)
  3995. + case $LD in # libtool.m4 will add one of these switches to LD
  3996. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  3997. + libsuff= shlibsuff= libmagic=32-bit;;
  3998. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  3999. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4000. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4001. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4002. + *) libsuff= shlibsuff= libmagic=never-match;;
  4003. + esac
  4004. + ;;
  4005. + esac
  4006. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4007. + shlibpath_overrides_runpath=no
  4008. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4009. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4010. + hardcode_into_libs=yes
  4011. + ;;
  4012. -# _LT_AC_SHELL_INIT(ARG)
  4013. -# ----------------------
  4014. -AC_DEFUN([_LT_AC_SHELL_INIT],
  4015. -[ifdef([AC_DIVERSION_NOTICE],
  4016. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  4017. - [AC_DIVERT_PUSH(NOTICE)])
  4018. -$1
  4019. -AC_DIVERT_POP
  4020. -])# _LT_AC_SHELL_INIT
  4021. +# No shared lib support for Linux oldld, aout, or coff.
  4022. +linux*oldld* | linux*aout* | linux*coff*)
  4023. + dynamic_linker=no
  4024. + ;;
  4025. +# This must be Linux ELF.
  4026. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4027. + version_type=linux
  4028. + need_lib_prefix=no
  4029. + need_version=no
  4030. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4031. + soname_spec='${libname}${release}${shared_ext}$major'
  4032. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4033. + shlibpath_var=LD_LIBRARY_PATH
  4034. + shlibpath_overrides_runpath=no
  4035. + # Some binutils ld are patched to set DT_RUNPATH
  4036. + save_LDFLAGS=$LDFLAGS
  4037. + save_libdir=$libdir
  4038. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4039. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4040. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4041. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4042. + [shlibpath_overrides_runpath=yes])])
  4043. + LDFLAGS=$save_LDFLAGS
  4044. + libdir=$save_libdir
  4045. -# _LT_AC_PROG_ECHO_BACKSLASH
  4046. -# --------------------------
  4047. -# Add some code to the start of the generated configure script which
  4048. -# will find an echo command which doesn't interpret backslashes.
  4049. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  4050. -[_LT_AC_SHELL_INIT([
  4051. -# Check that we are running under the correct shell.
  4052. -SHELL=${CONFIG_SHELL-/bin/sh}
  4053. + # This implies no fast_install, which is unacceptable.
  4054. + # Some rework will be needed to allow for fast_install
  4055. + # before this can be enabled.
  4056. + hardcode_into_libs=yes
  4057. -case X$ECHO in
  4058. -X*--fallback-echo)
  4059. - # Remove one level of quotation (which was required for Make).
  4060. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  4061. - ;;
  4062. -esac
  4063. + # Append ld.so.conf contents to the search path
  4064. + if test -f /etc/ld.so.conf; then
  4065. + 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' ' '`
  4066. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4067. + fi
  4068. -echo=${ECHO-echo}
  4069. -if test "X[$]1" = X--no-reexec; then
  4070. - # Discard the --no-reexec flag, and continue.
  4071. - shift
  4072. -elif test "X[$]1" = X--fallback-echo; then
  4073. - # Avoid inline document here, it may be left over
  4074. - :
  4075. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  4076. - # Yippee, $echo works!
  4077. - :
  4078. -else
  4079. - # Restart under the correct shell.
  4080. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  4081. -fi
  4082. -
  4083. -if test "X[$]1" = X--fallback-echo; then
  4084. - # used as fallback echo
  4085. - shift
  4086. - cat <<EOF
  4087. -[$]*
  4088. -EOF
  4089. - exit 0
  4090. -fi
  4091. -
  4092. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4093. -# if CDPATH is set.
  4094. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4095. -
  4096. -if test -z "$ECHO"; then
  4097. -if test "X${echo_test_string+set}" != Xset; then
  4098. -# find a string as large as possible, as long as the shell can cope with it
  4099. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  4100. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  4101. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  4102. - echo_test_string=`eval $cmd` &&
  4103. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  4104. - then
  4105. - break
  4106. - fi
  4107. - done
  4108. -fi
  4109. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4110. + # powerpc, because MkLinux only supported shared libraries with the
  4111. + # GNU dynamic linker. Since this was broken with cross compilers,
  4112. + # most powerpc-linux boxes support dynamic linking these days and
  4113. + # people can always --disable-shared, the test was removed, and we
  4114. + # assume the GNU/Linux dynamic linker is in use.
  4115. + dynamic_linker='GNU/Linux ld.so'
  4116. + ;;
  4117. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  4118. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  4119. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4120. - :
  4121. -else
  4122. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  4123. - # backslashes. This makes it impossible to quote backslashes using
  4124. - # echo "$something" | sed 's/\\/\\\\/g'
  4125. - #
  4126. - # So, first we look for a working echo in the user's PATH.
  4127. +netbsdelf*-gnu)
  4128. + version_type=linux
  4129. + need_lib_prefix=no
  4130. + need_version=no
  4131. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4132. + soname_spec='${libname}${release}${shared_ext}$major'
  4133. + shlibpath_var=LD_LIBRARY_PATH
  4134. + shlibpath_overrides_runpath=no
  4135. + hardcode_into_libs=yes
  4136. + dynamic_linker='NetBSD ld.elf_so'
  4137. + ;;
  4138. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4139. - for dir in $PATH /usr/ucb; do
  4140. - IFS="$lt_save_ifs"
  4141. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  4142. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  4143. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  4144. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4145. - echo="$dir/echo"
  4146. - break
  4147. - fi
  4148. - done
  4149. - IFS="$lt_save_ifs"
  4150. +netbsd*)
  4151. + version_type=sunos
  4152. + need_lib_prefix=no
  4153. + need_version=no
  4154. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4155. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4156. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4157. + dynamic_linker='NetBSD (a.out) ld.so'
  4158. + else
  4159. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4160. + soname_spec='${libname}${release}${shared_ext}$major'
  4161. + dynamic_linker='NetBSD ld.elf_so'
  4162. + fi
  4163. + shlibpath_var=LD_LIBRARY_PATH
  4164. + shlibpath_overrides_runpath=yes
  4165. + hardcode_into_libs=yes
  4166. + ;;
  4167. - if test "X$echo" = Xecho; then
  4168. - # We didn't find a better echo, so look for alternatives.
  4169. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  4170. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  4171. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4172. - # This shell has a builtin print -r that does the trick.
  4173. - echo='print -r'
  4174. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  4175. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  4176. - # If we have ksh, try running configure again with it.
  4177. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  4178. - export ORIGINAL_CONFIG_SHELL
  4179. - CONFIG_SHELL=/bin/ksh
  4180. - export CONFIG_SHELL
  4181. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  4182. - else
  4183. - # Try using printf.
  4184. - echo='printf %s\n'
  4185. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  4186. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  4187. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4188. - # Cool, printf works
  4189. - :
  4190. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  4191. - test "X$echo_testing_string" = 'X\t' &&
  4192. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  4193. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4194. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  4195. - export CONFIG_SHELL
  4196. - SHELL="$CONFIG_SHELL"
  4197. - export SHELL
  4198. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  4199. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  4200. - test "X$echo_testing_string" = 'X\t' &&
  4201. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  4202. - test "X$echo_testing_string" = "X$echo_test_string"; then
  4203. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  4204. - else
  4205. - # maybe with a smaller string...
  4206. - prev=:
  4207. +newsos6)
  4208. + version_type=linux
  4209. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4210. + shlibpath_var=LD_LIBRARY_PATH
  4211. + shlibpath_overrides_runpath=yes
  4212. + ;;
  4213. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  4214. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  4215. - then
  4216. - break
  4217. - fi
  4218. - prev="$cmd"
  4219. - done
  4220. +*nto* | *qnx*)
  4221. + version_type=qnx
  4222. + need_lib_prefix=no
  4223. + need_version=no
  4224. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4225. + soname_spec='${libname}${release}${shared_ext}$major'
  4226. + shlibpath_var=LD_LIBRARY_PATH
  4227. + shlibpath_overrides_runpath=no
  4228. + hardcode_into_libs=yes
  4229. + dynamic_linker='ldqnx.so'
  4230. + ;;
  4231. - if test "$prev" != 'sed 50q "[$]0"'; then
  4232. - echo_test_string=`eval $prev`
  4233. - export echo_test_string
  4234. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  4235. - else
  4236. - # Oops. We lost completely, so just stick with echo.
  4237. - echo=echo
  4238. - fi
  4239. - fi
  4240. - fi
  4241. +openbsd*)
  4242. + version_type=sunos
  4243. + sys_lib_dlsearch_path_spec="/usr/lib"
  4244. + need_lib_prefix=no
  4245. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4246. + case $host_os in
  4247. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4248. + *) need_version=no ;;
  4249. + esac
  4250. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4251. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4252. + shlibpath_var=LD_LIBRARY_PATH
  4253. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4254. + case $host_os in
  4255. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4256. + shlibpath_overrides_runpath=no
  4257. + ;;
  4258. + *)
  4259. + shlibpath_overrides_runpath=yes
  4260. + ;;
  4261. + esac
  4262. + else
  4263. + shlibpath_overrides_runpath=yes
  4264. fi
  4265. -fi
  4266. -fi
  4267. + ;;
  4268. -# Copy echo and quote the copy suitably for passing to libtool from
  4269. -# the Makefile, instead of quoting the original, which is used later.
  4270. -ECHO=$echo
  4271. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  4272. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  4273. -fi
  4274. +os2*)
  4275. + libname_spec='$name'
  4276. + shrext_cmds=".dll"
  4277. + need_lib_prefix=no
  4278. + library_names_spec='$libname${shared_ext} $libname.a'
  4279. + dynamic_linker='OS/2 ld.exe'
  4280. + shlibpath_var=LIBPATH
  4281. + ;;
  4282. -AC_SUBST(ECHO)
  4283. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  4284. +osf3* | osf4* | osf5*)
  4285. + version_type=osf
  4286. + need_lib_prefix=no
  4287. + need_version=no
  4288. + soname_spec='${libname}${release}${shared_ext}$major'
  4289. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4290. + shlibpath_var=LD_LIBRARY_PATH
  4291. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4292. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4293. + ;;
  4294. +rdos*)
  4295. + dynamic_linker=no
  4296. + ;;
  4297. -# _LT_AC_LOCK
  4298. -# -----------
  4299. -AC_DEFUN([_LT_AC_LOCK],
  4300. -[AC_ARG_ENABLE([libtool-lock],
  4301. - [AC_HELP_STRING([--disable-libtool-lock],
  4302. - [avoid locking (might break parallel builds)])])
  4303. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4304. +solaris*)
  4305. + version_type=linux
  4306. + need_lib_prefix=no
  4307. + need_version=no
  4308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4309. + soname_spec='${libname}${release}${shared_ext}$major'
  4310. + shlibpath_var=LD_LIBRARY_PATH
  4311. + shlibpath_overrides_runpath=yes
  4312. + hardcode_into_libs=yes
  4313. + # ldd complains unless libraries are executable
  4314. + postinstall_cmds='chmod +x $lib'
  4315. + ;;
  4316. -# Some flags need to be propagated to the compiler or linker for good
  4317. -# libtool support.
  4318. -case $host in
  4319. -ia64-*-hpux*)
  4320. - # Find out which ABI we are using.
  4321. - echo 'int i;' > conftest.$ac_ext
  4322. - if AC_TRY_EVAL(ac_compile); then
  4323. - case `/usr/bin/file conftest.$ac_objext` in
  4324. - *ELF-32*)
  4325. - HPUX_IA64_MODE="32"
  4326. - ;;
  4327. - *ELF-64*)
  4328. - HPUX_IA64_MODE="64"
  4329. - ;;
  4330. - esac
  4331. +sunos4*)
  4332. + version_type=sunos
  4333. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4334. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4335. + shlibpath_var=LD_LIBRARY_PATH
  4336. + shlibpath_overrides_runpath=yes
  4337. + if test "$with_gnu_ld" = yes; then
  4338. + need_lib_prefix=no
  4339. fi
  4340. - rm -rf conftest*
  4341. + need_version=yes
  4342. ;;
  4343. -*-*-irix6*)
  4344. - # Find out which ABI we are using.
  4345. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  4346. - if AC_TRY_EVAL(ac_compile); then
  4347. - if test "$lt_cv_prog_gnu_ld" = yes; then
  4348. - case `/usr/bin/file conftest.$ac_objext` in
  4349. - *32-bit*)
  4350. - LD="${LD-ld} -melf32bsmip"
  4351. - ;;
  4352. - *N32*)
  4353. - LD="${LD-ld} -melf32bmipn32"
  4354. - ;;
  4355. - *64-bit*)
  4356. - LD="${LD-ld} -melf64bmip"
  4357. - ;;
  4358. - esac
  4359. - else
  4360. - case `/usr/bin/file conftest.$ac_objext` in
  4361. - *32-bit*)
  4362. - LD="${LD-ld} -32"
  4363. +
  4364. +sysv4 | sysv4.3*)
  4365. + version_type=linux
  4366. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4367. + soname_spec='${libname}${release}${shared_ext}$major'
  4368. + shlibpath_var=LD_LIBRARY_PATH
  4369. + case $host_vendor in
  4370. + sni)
  4371. + shlibpath_overrides_runpath=no
  4372. + need_lib_prefix=no
  4373. + runpath_var=LD_RUN_PATH
  4374. ;;
  4375. - *N32*)
  4376. - LD="${LD-ld} -n32"
  4377. + siemens)
  4378. + need_lib_prefix=no
  4379. ;;
  4380. - *64-bit*)
  4381. - LD="${LD-ld} -64"
  4382. + motorola)
  4383. + need_lib_prefix=no
  4384. + need_version=no
  4385. + shlibpath_overrides_runpath=no
  4386. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4387. ;;
  4388. - esac
  4389. - fi
  4390. + esac
  4391. + ;;
  4392. +
  4393. +sysv4*MP*)
  4394. + if test -d /usr/nec ;then
  4395. + version_type=linux
  4396. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4397. + soname_spec='$libname${shared_ext}.$major'
  4398. + shlibpath_var=LD_LIBRARY_PATH
  4399. fi
  4400. - rm -rf conftest*
  4401. ;;
  4402. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4403. -s390*-*linux*|sparc*-*linux*)
  4404. - # Find out which ABI we are using.
  4405. - echo 'int i;' > conftest.$ac_ext
  4406. - if AC_TRY_EVAL(ac_compile); then
  4407. - case `/usr/bin/file conftest.o` in
  4408. - *32-bit*)
  4409. - case $host in
  4410. - x86_64-*kfreebsd*-gnu)
  4411. - LD="${LD-ld} -m elf_i386_fbsd"
  4412. - ;;
  4413. - x86_64-*linux*)
  4414. - LD="${LD-ld} -m elf_i386"
  4415. - ;;
  4416. - ppc64-*linux*|powerpc64-*linux*)
  4417. - LD="${LD-ld} -m elf32ppclinux"
  4418. - ;;
  4419. - s390x-*linux*)
  4420. - LD="${LD-ld} -m elf_s390"
  4421. - ;;
  4422. - sparc64-*linux*)
  4423. - LD="${LD-ld} -m elf32_sparc"
  4424. - ;;
  4425. - esac
  4426. - ;;
  4427. - *64-bit*)
  4428. - case $host in
  4429. - x86_64-*kfreebsd*-gnu)
  4430. - LD="${LD-ld} -m elf_x86_64_fbsd"
  4431. - ;;
  4432. - x86_64-*linux*)
  4433. - LD="${LD-ld} -m elf_x86_64"
  4434. - ;;
  4435. - ppc*-*linux*|powerpc*-*linux*)
  4436. - LD="${LD-ld} -m elf64ppc"
  4437. - ;;
  4438. - s390*-*linux*)
  4439. - LD="${LD-ld} -m elf64_s390"
  4440. - ;;
  4441. - sparc*-*linux*)
  4442. - LD="${LD-ld} -m elf64_sparc"
  4443. - ;;
  4444. - esac
  4445. - ;;
  4446. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4447. + version_type=freebsd-elf
  4448. + need_lib_prefix=no
  4449. + need_version=no
  4450. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4451. + soname_spec='${libname}${release}${shared_ext}$major'
  4452. + shlibpath_var=LD_LIBRARY_PATH
  4453. + shlibpath_overrides_runpath=yes
  4454. + hardcode_into_libs=yes
  4455. + if test "$with_gnu_ld" = yes; then
  4456. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4457. + else
  4458. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4459. + case $host_os in
  4460. + sco3.2v5*)
  4461. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4462. + ;;
  4463. esac
  4464. fi
  4465. - rm -rf conftest*
  4466. + sys_lib_dlsearch_path_spec='/usr/lib'
  4467. ;;
  4468. -*-*-sco3.2v5*)
  4469. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4470. - SAVE_CFLAGS="$CFLAGS"
  4471. - CFLAGS="$CFLAGS -belf"
  4472. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  4473. - [AC_LANG_PUSH(C)
  4474. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  4475. - AC_LANG_POP])
  4476. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4477. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4478. - CFLAGS="$SAVE_CFLAGS"
  4479. - fi
  4480. +tpf*)
  4481. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4482. + version_type=linux
  4483. + need_lib_prefix=no
  4484. + need_version=no
  4485. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4486. + shlibpath_var=LD_LIBRARY_PATH
  4487. + shlibpath_overrides_runpath=no
  4488. + hardcode_into_libs=yes
  4489. ;;
  4490. -sparc*-*solaris*)
  4491. - # Find out which ABI we are using.
  4492. - echo 'int i;' > conftest.$ac_ext
  4493. - if AC_TRY_EVAL(ac_compile); then
  4494. - case `/usr/bin/file conftest.o` in
  4495. - *64-bit*)
  4496. - case $lt_cv_prog_gnu_ld in
  4497. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4498. - *)
  4499. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4500. - LD="${LD-ld} -64"
  4501. - fi
  4502. - ;;
  4503. - esac
  4504. - ;;
  4505. - esac
  4506. - fi
  4507. - rm -rf conftest*
  4508. +
  4509. +uts4*)
  4510. + version_type=linux
  4511. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4512. + soname_spec='${libname}${release}${shared_ext}$major'
  4513. + shlibpath_var=LD_LIBRARY_PATH
  4514. ;;
  4515. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  4516. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  4517. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  4518. - AC_CHECK_TOOL(AS, as, false)
  4519. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  4520. +*)
  4521. + dynamic_linker=no
  4522. ;;
  4523. - ])
  4524. esac
  4525. +AC_MSG_RESULT([$dynamic_linker])
  4526. +test "$dynamic_linker" = no && can_build_shared=no
  4527. -need_locks="$enable_libtool_lock"
  4528. -
  4529. -])# _LT_AC_LOCK
  4530. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4531. +if test "$GCC" = yes; then
  4532. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4533. +fi
  4534. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4535. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4536. +fi
  4537. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4538. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4539. +fi
  4540. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  4541. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  4542. -# ----------------------------------------------------------------
  4543. -# Check whether the given compiler option works
  4544. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  4545. -[AC_REQUIRE([LT_AC_PROG_SED])
  4546. -AC_CACHE_CHECK([$1], [$2],
  4547. - [$2=no
  4548. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  4549. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4550. - lt_compiler_flag="$3"
  4551. - # Insert the option either (1) after the last *FLAGS variable, or
  4552. - # (2) before a word containing "conftest.", or (3) at the end.
  4553. - # Note that $ac_compile itself does not contain backslashes and begins
  4554. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  4555. - # The option is referenced via a variable to avoid confusing sed.
  4556. - lt_compile=`echo "$ac_compile" | $SED \
  4557. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4558. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  4559. - -e 's:$: $lt_compiler_flag:'`
  4560. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  4561. - (eval "$lt_compile" 2>conftest.err)
  4562. - ac_status=$?
  4563. - cat conftest.err >&AS_MESSAGE_LOG_FD
  4564. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  4565. - if (exit $ac_status) && test -s "$ac_outfile"; then
  4566. - # The compiler can only warn and ignore the option if not recognized
  4567. - # So say no if there are warnings other than the usual output.
  4568. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  4569. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4570. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  4571. - $2=yes
  4572. - fi
  4573. - fi
  4574. - $rm conftest*
  4575. -])
  4576. +_LT_DECL([], [variables_saved_for_relink], [1],
  4577. + [Variables whose values should be saved in libtool wrapper scripts and
  4578. + restored at link time])
  4579. +_LT_DECL([], [need_lib_prefix], [0],
  4580. + [Do we need the "lib" prefix for modules?])
  4581. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4582. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4583. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4584. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4585. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4586. + [Is shlibpath searched before the hard-coded library search path?])
  4587. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4588. +_LT_DECL([], [library_names_spec], [1],
  4589. + [[List of archive names. First name is the real one, the rest are links.
  4590. + The last name is the one that the linker finds with -lNAME]])
  4591. +_LT_DECL([], [soname_spec], [1],
  4592. + [[The coded name of the library, if different from the real name]])
  4593. +_LT_DECL([], [postinstall_cmds], [2],
  4594. + [Command to use after installation of a shared archive])
  4595. +_LT_DECL([], [postuninstall_cmds], [2],
  4596. + [Command to use after uninstallation of a shared archive])
  4597. +_LT_DECL([], [finish_cmds], [2],
  4598. + [Commands used to finish a libtool library installation in a directory])
  4599. +_LT_DECL([], [finish_eval], [1],
  4600. + [[As "finish_cmds", except a single script fragment to be evaled but
  4601. + not shown]])
  4602. +_LT_DECL([], [hardcode_into_libs], [0],
  4603. + [Whether we should hardcode library paths into libraries])
  4604. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4605. + [Compile-time system search path for libraries])
  4606. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4607. + [Run-time system search path for libraries])
  4608. +])# _LT_SYS_DYNAMIC_LINKER
  4609. -if test x"[$]$2" = xyes; then
  4610. - ifelse([$5], , :, [$5])
  4611. -else
  4612. - ifelse([$6], , :, [$6])
  4613. -fi
  4614. -])# AC_LIBTOOL_COMPILER_OPTION
  4615. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4616. +# --------------------------
  4617. +# find a file program which can recognize shared library
  4618. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4619. +[m4_require([_LT_DECL_EGREP])dnl
  4620. +AC_MSG_CHECKING([for $1])
  4621. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4622. +[case $MAGIC_CMD in
  4623. +[[\\/*] | ?:[\\/]*])
  4624. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4625. + ;;
  4626. +*)
  4627. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4628. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4629. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4630. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4631. +dnl not every word. This closes a longstanding sh security hole.
  4632. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4633. + for ac_dir in $ac_dummy; do
  4634. + IFS="$lt_save_ifs"
  4635. + test -z "$ac_dir" && ac_dir=.
  4636. + if test -f $ac_dir/$1; then
  4637. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4638. + if test -n "$file_magic_test_file"; then
  4639. + case $deplibs_check_method in
  4640. + "file_magic "*)
  4641. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4642. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4643. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4644. + $EGREP "$file_magic_regex" > /dev/null; then
  4645. + :
  4646. + else
  4647. + cat <<_LT_EOF 1>&2
  4648. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  4649. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  4650. -# ------------------------------------------------------------
  4651. -# Check whether the given compiler option works
  4652. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  4653. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4654. -AC_CACHE_CHECK([$1], [$2],
  4655. - [$2=no
  4656. - save_LDFLAGS="$LDFLAGS"
  4657. - LDFLAGS="$LDFLAGS $3"
  4658. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  4659. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  4660. - # The linker can only warn and ignore the option if not recognized
  4661. - # So say no if there are warnings
  4662. - if test -s conftest.err; then
  4663. - # Append any errors to the config.log.
  4664. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  4665. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  4666. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4667. - if diff conftest.exp conftest.er2 >/dev/null; then
  4668. - $2=yes
  4669. - fi
  4670. - else
  4671. - $2=yes
  4672. - fi
  4673. - fi
  4674. - $rm -r conftest*
  4675. - LDFLAGS="$save_LDFLAGS"
  4676. -])
  4677. +*** Warning: the command libtool uses to detect shared libraries,
  4678. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4679. +*** The result is that libtool may fail to recognize shared libraries
  4680. +*** as such. This will affect the creation of libtool libraries that
  4681. +*** depend on shared libraries, but programs linked with such libtool
  4682. +*** libraries will work regardless of this problem. Nevertheless, you
  4683. +*** may want to report the problem to your system manager and/or to
  4684. +*** bug-libtool@gnu.org
  4685. -if test x"[$]$2" = xyes; then
  4686. - ifelse([$4], , :, [$4])
  4687. +_LT_EOF
  4688. + fi ;;
  4689. + esac
  4690. + fi
  4691. + break
  4692. + fi
  4693. + done
  4694. + IFS="$lt_save_ifs"
  4695. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4696. + ;;
  4697. +esac])
  4698. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4699. +if test -n "$MAGIC_CMD"; then
  4700. + AC_MSG_RESULT($MAGIC_CMD)
  4701. else
  4702. - ifelse([$5], , :, [$5])
  4703. + AC_MSG_RESULT(no)
  4704. fi
  4705. -])# AC_LIBTOOL_LINKER_OPTION
  4706. +_LT_DECL([], [MAGIC_CMD], [0],
  4707. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4708. +])# _LT_PATH_TOOL_PREFIX
  4709. +# Old name:
  4710. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4711. +dnl aclocal-1.4 backwards compatibility:
  4712. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4713. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  4714. -# --------------------------
  4715. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  4716. -[# find the maximum length of command line arguments
  4717. -AC_MSG_CHECKING([the maximum length of command line arguments])
  4718. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  4719. - i=0
  4720. - teststring="ABCD"
  4721. - case $build_os in
  4722. - msdosdjgpp*)
  4723. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  4724. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  4725. - # during glob expansion). Even if it were fixed, the result of this
  4726. - # check would be larger than it should be.
  4727. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4728. - ;;
  4729. +# _LT_PATH_MAGIC
  4730. +# --------------
  4731. +# find a file program which can recognize a shared library
  4732. +m4_defun([_LT_PATH_MAGIC],
  4733. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4734. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4735. + if test -n "$ac_tool_prefix"; then
  4736. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  4737. + else
  4738. + MAGIC_CMD=:
  4739. + fi
  4740. +fi
  4741. +])# _LT_PATH_MAGIC
  4742. - gnu*)
  4743. - # Under GNU Hurd, this test is not required because there is
  4744. - # no limit to the length of command line arguments.
  4745. - # Libtool will interpret -1 as no limit whatsoever
  4746. - lt_cv_sys_max_cmd_len=-1;
  4747. - ;;
  4748. - cygwin* | mingw*)
  4749. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  4750. - # about 5 minutes as the teststring grows exponentially.
  4751. - # Worse, since 9x/ME are not pre-emptively multitasking,
  4752. - # you end up with a "frozen" computer, even though with patience
  4753. - # the test eventually succeeds (with a max line length of 256k).
  4754. - # Instead, let's just punt: use the minimum linelength reported by
  4755. - # all of the supported platforms: 8192 (on NT/2K/XP).
  4756. - lt_cv_sys_max_cmd_len=8192;
  4757. - ;;
  4758. +# LT_PATH_LD
  4759. +# ----------
  4760. +# find the pathname to the GNU or non-GNU linker
  4761. +AC_DEFUN([LT_PATH_LD],
  4762. +[AC_REQUIRE([AC_PROG_CC])dnl
  4763. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4764. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4765. +m4_require([_LT_DECL_SED])dnl
  4766. +m4_require([_LT_DECL_EGREP])dnl
  4767. - amigaos*)
  4768. - # On AmigaOS with pdksh, this test takes hours, literally.
  4769. - # So we just punt and use a minimum line length of 8192.
  4770. - lt_cv_sys_max_cmd_len=8192;
  4771. - ;;
  4772. +AC_ARG_WITH([gnu-ld],
  4773. + [AS_HELP_STRING([--with-gnu-ld],
  4774. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  4775. + [test "$withval" = no || with_gnu_ld=yes],
  4776. + [with_gnu_ld=no])dnl
  4777. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4778. - # This has been around since 386BSD, at least. Likely further.
  4779. - if test -x /sbin/sysctl; then
  4780. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4781. - elif test -x /usr/sbin/sysctl; then
  4782. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4783. - else
  4784. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4785. - fi
  4786. - # And add a safety zone
  4787. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4788. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4789. +ac_prog=ld
  4790. +if test "$GCC" = yes; then
  4791. + # Check if gcc -print-prog-name=ld gives a path.
  4792. + AC_MSG_CHECKING([for ld used by $CC])
  4793. + case $host in
  4794. + *-*-mingw*)
  4795. + # gcc leaves a trailing carriage return which upsets mingw
  4796. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4797. + *)
  4798. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4799. + esac
  4800. + case $ac_prog in
  4801. + # Accept absolute paths.
  4802. + [[\\/]]* | ?:[[\\/]]*)
  4803. + re_direlt='/[[^/]][[^/]]*/\.\./'
  4804. + # Canonicalize the pathname of ld
  4805. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4806. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4807. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4808. + done
  4809. + test -z "$LD" && LD="$ac_prog"
  4810. + ;;
  4811. + "")
  4812. + # If it fails, then pretend we aren't using GCC.
  4813. + ac_prog=ld
  4814. ;;
  4815. -
  4816. - interix*)
  4817. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4818. - lt_cv_sys_max_cmd_len=196608
  4819. + *)
  4820. + # If it is relative, then search for the first ld in PATH.
  4821. + with_gnu_ld=unknown
  4822. ;;
  4823. -
  4824. - osf*)
  4825. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4826. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4827. - # nice to cause kernel panics so lets avoid the loop below.
  4828. - # First set a reasonable default.
  4829. - lt_cv_sys_max_cmd_len=16384
  4830. - #
  4831. - if test -x /sbin/sysconfig; then
  4832. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4833. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4834. + esac
  4835. +elif test "$with_gnu_ld" = yes; then
  4836. + AC_MSG_CHECKING([for GNU ld])
  4837. +else
  4838. + AC_MSG_CHECKING([for non-GNU ld])
  4839. +fi
  4840. +AC_CACHE_VAL(lt_cv_path_LD,
  4841. +[if test -z "$LD"; then
  4842. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4843. + for ac_dir in $PATH; do
  4844. + IFS="$lt_save_ifs"
  4845. + test -z "$ac_dir" && ac_dir=.
  4846. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4847. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4848. + # Check to see if the program is GNU ld. I'd rather use --version,
  4849. + # but apparently some variants of GNU ld only accept -v.
  4850. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4851. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4852. + *GNU* | *'with BFD'*)
  4853. + test "$with_gnu_ld" != no && break
  4854. + ;;
  4855. + *)
  4856. + test "$with_gnu_ld" != yes && break
  4857. + ;;
  4858. esac
  4859. fi
  4860. - ;;
  4861. - sco3.2v5*)
  4862. - lt_cv_sys_max_cmd_len=102400
  4863. - ;;
  4864. - sysv5* | sco5v6* | sysv4.2uw2*)
  4865. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4866. - if test -n "$kargmax"; then
  4867. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  4868. - else
  4869. - lt_cv_sys_max_cmd_len=32768
  4870. - fi
  4871. - ;;
  4872. - *)
  4873. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4874. - if test -n "$lt_cv_sys_max_cmd_len"; then
  4875. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4876. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4877. - else
  4878. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4879. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  4880. - = "XX$teststring") >/dev/null 2>&1 &&
  4881. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4882. - lt_cv_sys_max_cmd_len=$new_result &&
  4883. - test $i != 17 # 1/2 MB should be enough
  4884. - do
  4885. - i=`expr $i + 1`
  4886. - teststring=$teststring$teststring
  4887. - done
  4888. - teststring=
  4889. - # Add a significant safety factor because C++ compilers can tack on massive
  4890. - # amounts of additional arguments before passing them to the linker.
  4891. - # It appears as though 1/2 is a usable value.
  4892. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4893. - fi
  4894. - ;;
  4895. - esac
  4896. -])
  4897. -if test -n $lt_cv_sys_max_cmd_len ; then
  4898. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  4899. + done
  4900. + IFS="$lt_save_ifs"
  4901. else
  4902. - AC_MSG_RESULT(none)
  4903. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4904. +fi])
  4905. +LD="$lt_cv_path_LD"
  4906. +if test -n "$LD"; then
  4907. + AC_MSG_RESULT($LD)
  4908. +else
  4909. + AC_MSG_RESULT(no)
  4910. fi
  4911. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  4912. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  4913. +_LT_PATH_LD_GNU
  4914. +AC_SUBST([LD])
  4915. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  4916. +])# LT_PATH_LD
  4917. -# _LT_AC_CHECK_DLFCN
  4918. -# ------------------
  4919. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  4920. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  4921. -])# _LT_AC_CHECK_DLFCN
  4922. +# Old names:
  4923. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  4924. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  4925. +dnl aclocal-1.4 backwards compatibility:
  4926. +dnl AC_DEFUN([AM_PROG_LD], [])
  4927. +dnl AC_DEFUN([AC_PROG_LD], [])
  4928. +
  4929. +
  4930. +# _LT_PATH_LD_GNU
  4931. +#- --------------
  4932. +m4_defun([_LT_PATH_LD_GNU],
  4933. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4934. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  4935. +case `$LD -v 2>&1 </dev/null` in
  4936. +*GNU* | *'with BFD'*)
  4937. + lt_cv_prog_gnu_ld=yes
  4938. + ;;
  4939. +*)
  4940. + lt_cv_prog_gnu_ld=no
  4941. + ;;
  4942. +esac])
  4943. +with_gnu_ld=$lt_cv_prog_gnu_ld
  4944. +])# _LT_PATH_LD_GNU
  4945. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  4946. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  4947. -# ---------------------------------------------------------------------
  4948. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  4949. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  4950. -if test "$cross_compiling" = yes; then :
  4951. - [$4]
  4952. -else
  4953. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4954. - lt_status=$lt_dlunknown
  4955. - cat > conftest.$ac_ext <<EOF
  4956. -[#line __oline__ "configure"
  4957. -#include "confdefs.h"
  4958. +# _LT_CMD_RELOAD
  4959. +# --------------
  4960. +# find reload flag for linker
  4961. +# -- PORTME Some linkers may need a different reload flag.
  4962. +m4_defun([_LT_CMD_RELOAD],
  4963. +[AC_CACHE_CHECK([for $LD option to reload object files],
  4964. + lt_cv_ld_reload_flag,
  4965. + [lt_cv_ld_reload_flag='-r'])
  4966. +reload_flag=$lt_cv_ld_reload_flag
  4967. +case $reload_flag in
  4968. +"" | " "*) ;;
  4969. +*) reload_flag=" $reload_flag" ;;
  4970. +esac
  4971. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4972. +case $host_os in
  4973. + darwin*)
  4974. + if test "$GCC" = yes; then
  4975. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4976. + else
  4977. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4978. + fi
  4979. + ;;
  4980. +esac
  4981. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  4982. +_LT_DECL([], [reload_cmds], [2])dnl
  4983. +])# _LT_CMD_RELOAD
  4984. -#if HAVE_DLFCN_H
  4985. -#include <dlfcn.h>
  4986. -#endif
  4987. -#include <stdio.h>
  4988. +# _LT_CHECK_MAGIC_METHOD
  4989. +# ----------------------
  4990. +# how to check for library dependencies
  4991. +# -- PORTME fill in with the dynamic library characteristics
  4992. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  4993. +[m4_require([_LT_DECL_EGREP])
  4994. +m4_require([_LT_DECL_OBJDUMP])
  4995. +AC_CACHE_CHECK([how to recognize dependent libraries],
  4996. +lt_cv_deplibs_check_method,
  4997. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  4998. +lt_cv_file_magic_test_file=
  4999. +lt_cv_deplibs_check_method='unknown'
  5000. +# Need to set the preceding variable on all platforms that support
  5001. +# interlibrary dependencies.
  5002. +# 'none' -- dependencies not supported.
  5003. +# `unknown' -- same as none, but documents that we really don't know.
  5004. +# 'pass_all' -- all dependencies passed with no checks.
  5005. +# 'test_compile' -- check by making test program.
  5006. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5007. +# which responds to the $file_magic_cmd with a given extended regex.
  5008. +# If you have `file' or equivalent on your system and you're not sure
  5009. +# whether `pass_all' will *always* work, you probably want this one.
  5010. -#ifdef RTLD_GLOBAL
  5011. -# define LT_DLGLOBAL RTLD_GLOBAL
  5012. -#else
  5013. -# ifdef DL_GLOBAL
  5014. -# define LT_DLGLOBAL DL_GLOBAL
  5015. -# else
  5016. -# define LT_DLGLOBAL 0
  5017. -# endif
  5018. -#endif
  5019. +case $host_os in
  5020. +aix[[4-9]]*)
  5021. + lt_cv_deplibs_check_method=pass_all
  5022. + ;;
  5023. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  5024. - find out it does not work in some platform. */
  5025. -#ifndef LT_DLLAZY_OR_NOW
  5026. -# ifdef RTLD_LAZY
  5027. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  5028. -# else
  5029. -# ifdef DL_LAZY
  5030. -# define LT_DLLAZY_OR_NOW DL_LAZY
  5031. -# else
  5032. -# ifdef RTLD_NOW
  5033. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  5034. -# else
  5035. -# ifdef DL_NOW
  5036. -# define LT_DLLAZY_OR_NOW DL_NOW
  5037. -# else
  5038. -# define LT_DLLAZY_OR_NOW 0
  5039. -# endif
  5040. -# endif
  5041. -# endif
  5042. -# endif
  5043. -#endif
  5044. +beos*)
  5045. + lt_cv_deplibs_check_method=pass_all
  5046. + ;;
  5047. -#ifdef __cplusplus
  5048. -extern "C" void exit (int);
  5049. -#endif
  5050. +bsdi[[45]]*)
  5051. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5052. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5053. + lt_cv_file_magic_test_file=/shlib/libc.so
  5054. + ;;
  5055. -void fnord() { int i=42;}
  5056. -int main ()
  5057. -{
  5058. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  5059. - int status = $lt_dlunknown;
  5060. +cygwin*)
  5061. + # func_win32_libid is a shell function defined in ltmain.sh
  5062. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5063. + lt_cv_file_magic_cmd='func_win32_libid'
  5064. + ;;
  5065. - if (self)
  5066. - {
  5067. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  5068. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  5069. - /* dlclose (self); */
  5070. - }
  5071. +mingw* | pw32*)
  5072. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5073. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5074. + # unless we find 'file', for example because we are cross-compiling.
  5075. + if ( file / ) >/dev/null 2>&1; then
  5076. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5077. + lt_cv_file_magic_cmd='func_win32_libid'
  5078. else
  5079. - puts (dlerror ());
  5080. -
  5081. - exit (status);
  5082. -}]
  5083. -EOF
  5084. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  5085. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  5086. - lt_status=$?
  5087. - case x$lt_status in
  5088. - x$lt_dlno_uscore) $1 ;;
  5089. - x$lt_dlneed_uscore) $2 ;;
  5090. - x$lt_dlunknown|x*) $3 ;;
  5091. - esac
  5092. - else :
  5093. - # compilation failed
  5094. - $3
  5095. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5096. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5097. fi
  5098. -fi
  5099. -rm -fr conftest*
  5100. -])# _LT_AC_TRY_DLOPEN_SELF
  5101. + ;;
  5102. +cegcc)
  5103. + # use the weaker test based on 'objdump'. See mingw*.
  5104. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5105. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5106. + ;;
  5107. -# AC_LIBTOOL_DLOPEN_SELF
  5108. -# ----------------------
  5109. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  5110. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  5111. -if test "x$enable_dlopen" != xyes; then
  5112. - enable_dlopen=unknown
  5113. - enable_dlopen_self=unknown
  5114. - enable_dlopen_self_static=unknown
  5115. -else
  5116. - lt_cv_dlopen=no
  5117. - lt_cv_dlopen_libs=
  5118. +darwin* | rhapsody*)
  5119. + lt_cv_deplibs_check_method=pass_all
  5120. + ;;
  5121. - case $host_os in
  5122. - beos*)
  5123. - lt_cv_dlopen="load_add_on"
  5124. - lt_cv_dlopen_libs=
  5125. - lt_cv_dlopen_self=yes
  5126. - ;;
  5127. +freebsd* | dragonfly*)
  5128. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5129. + case $host_cpu in
  5130. + i*86 )
  5131. + # Not sure whether the presence of OpenBSD here was a mistake.
  5132. + # Let's accept both of them until this is cleared up.
  5133. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5134. + lt_cv_file_magic_cmd=/usr/bin/file
  5135. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5136. + ;;
  5137. + esac
  5138. + else
  5139. + lt_cv_deplibs_check_method=pass_all
  5140. + fi
  5141. + ;;
  5142. - mingw* | pw32*)
  5143. - lt_cv_dlopen="LoadLibrary"
  5144. - lt_cv_dlopen_libs=
  5145. - ;;
  5146. -
  5147. - cygwin*)
  5148. - lt_cv_dlopen="dlopen"
  5149. - lt_cv_dlopen_libs=
  5150. - ;;
  5151. -
  5152. - darwin*)
  5153. - # if libdl is installed we need to link against it
  5154. - AC_CHECK_LIB([dl], [dlopen],
  5155. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  5156. - lt_cv_dlopen="dyld"
  5157. - lt_cv_dlopen_libs=
  5158. - lt_cv_dlopen_self=yes
  5159. - ])
  5160. - ;;
  5161. +gnu*)
  5162. + lt_cv_deplibs_check_method=pass_all
  5163. + ;;
  5164. +hpux10.20* | hpux11*)
  5165. + lt_cv_file_magic_cmd=/usr/bin/file
  5166. + case $host_cpu in
  5167. + ia64*)
  5168. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5169. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5170. + ;;
  5171. + hppa*64*)
  5172. + [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]']
  5173. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5174. + ;;
  5175. *)
  5176. - AC_CHECK_FUNC([shl_load],
  5177. - [lt_cv_dlopen="shl_load"],
  5178. - [AC_CHECK_LIB([dld], [shl_load],
  5179. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  5180. - [AC_CHECK_FUNC([dlopen],
  5181. - [lt_cv_dlopen="dlopen"],
  5182. - [AC_CHECK_LIB([dl], [dlopen],
  5183. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  5184. - [AC_CHECK_LIB([svld], [dlopen],
  5185. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  5186. - [AC_CHECK_LIB([dld], [dld_link],
  5187. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  5188. - ])
  5189. - ])
  5190. - ])
  5191. - ])
  5192. - ])
  5193. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5194. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5195. ;;
  5196. esac
  5197. + ;;
  5198. - if test "x$lt_cv_dlopen" != xno; then
  5199. - enable_dlopen=yes
  5200. +interix[[3-9]]*)
  5201. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5202. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5203. + ;;
  5204. +
  5205. +irix5* | irix6* | nonstopux*)
  5206. + case $LD in
  5207. + *-32|*"-32 ") libmagic=32-bit;;
  5208. + *-n32|*"-n32 ") libmagic=N32;;
  5209. + *-64|*"-64 ") libmagic=64-bit;;
  5210. + *) libmagic=never-match;;
  5211. + esac
  5212. + lt_cv_deplibs_check_method=pass_all
  5213. + ;;
  5214. +
  5215. +# This must be Linux ELF.
  5216. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5217. + lt_cv_deplibs_check_method=pass_all
  5218. + ;;
  5219. +
  5220. +netbsd* | netbsdelf*-gnu)
  5221. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5222. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5223. else
  5224. - enable_dlopen=no
  5225. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5226. fi
  5227. + ;;
  5228. - case $lt_cv_dlopen in
  5229. - dlopen)
  5230. - save_CPPFLAGS="$CPPFLAGS"
  5231. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  5232. +newos6*)
  5233. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5234. + lt_cv_file_magic_cmd=/usr/bin/file
  5235. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5236. + ;;
  5237. - save_LDFLAGS="$LDFLAGS"
  5238. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  5239. +*nto* | *qnx*)
  5240. + lt_cv_deplibs_check_method=pass_all
  5241. + ;;
  5242. - save_LIBS="$LIBS"
  5243. - LIBS="$lt_cv_dlopen_libs $LIBS"
  5244. +openbsd*)
  5245. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5246. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5247. + else
  5248. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5249. + fi
  5250. + ;;
  5251. - AC_CACHE_CHECK([whether a program can dlopen itself],
  5252. - lt_cv_dlopen_self, [dnl
  5253. - _LT_AC_TRY_DLOPEN_SELF(
  5254. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  5255. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  5256. - ])
  5257. +osf3* | osf4* | osf5*)
  5258. + lt_cv_deplibs_check_method=pass_all
  5259. + ;;
  5260. - if test "x$lt_cv_dlopen_self" = xyes; then
  5261. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  5262. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  5263. - lt_cv_dlopen_self_static, [dnl
  5264. - _LT_AC_TRY_DLOPEN_SELF(
  5265. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  5266. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  5267. - ])
  5268. - fi
  5269. +rdos*)
  5270. + lt_cv_deplibs_check_method=pass_all
  5271. + ;;
  5272. - CPPFLAGS="$save_CPPFLAGS"
  5273. - LDFLAGS="$save_LDFLAGS"
  5274. - LIBS="$save_LIBS"
  5275. - ;;
  5276. - esac
  5277. +solaris*)
  5278. + lt_cv_deplibs_check_method=pass_all
  5279. + ;;
  5280. - case $lt_cv_dlopen_self in
  5281. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  5282. - *) enable_dlopen_self=unknown ;;
  5283. - esac
  5284. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5285. + lt_cv_deplibs_check_method=pass_all
  5286. + ;;
  5287. - case $lt_cv_dlopen_self_static in
  5288. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  5289. - *) enable_dlopen_self_static=unknown ;;
  5290. +sysv4 | sysv4.3*)
  5291. + case $host_vendor in
  5292. + motorola)
  5293. + 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]]'
  5294. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5295. + ;;
  5296. + ncr)
  5297. + lt_cv_deplibs_check_method=pass_all
  5298. + ;;
  5299. + sequent)
  5300. + lt_cv_file_magic_cmd='/bin/file'
  5301. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  5302. + ;;
  5303. + sni)
  5304. + lt_cv_file_magic_cmd='/bin/file'
  5305. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  5306. + lt_cv_file_magic_test_file=/lib/libc.so
  5307. + ;;
  5308. + siemens)
  5309. + lt_cv_deplibs_check_method=pass_all
  5310. + ;;
  5311. + pc)
  5312. + lt_cv_deplibs_check_method=pass_all
  5313. + ;;
  5314. esac
  5315. -fi
  5316. -])# AC_LIBTOOL_DLOPEN_SELF
  5317. -
  5318. -
  5319. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  5320. -# ---------------------------------
  5321. -# Check to see if options -c and -o are simultaneously supported by compiler
  5322. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  5323. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  5324. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  5325. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  5326. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  5327. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  5328. - $rm -r conftest 2>/dev/null
  5329. - mkdir conftest
  5330. - cd conftest
  5331. - mkdir out
  5332. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5333. + ;;
  5334. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  5335. - # Insert the option either (1) after the last *FLAGS variable, or
  5336. - # (2) before a word containing "conftest.", or (3) at the end.
  5337. - # Note that $ac_compile itself does not contain backslashes and begins
  5338. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  5339. - lt_compile=`echo "$ac_compile" | $SED \
  5340. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5341. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  5342. - -e 's:$: $lt_compiler_flag:'`
  5343. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  5344. - (eval "$lt_compile" 2>out/conftest.err)
  5345. - ac_status=$?
  5346. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  5347. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  5348. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5349. - then
  5350. - # The compiler can only warn and ignore the option if not recognized
  5351. - # So say no if there are warnings
  5352. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5353. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5354. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5355. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5356. - fi
  5357. - fi
  5358. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  5359. - $rm conftest*
  5360. - # SGI C++ compiler will create directory out/ii_files/ for
  5361. - # template instantiation
  5362. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5363. - $rm out/* && rmdir out
  5364. - cd ..
  5365. - rmdir conftest
  5366. - $rm conftest*
  5367. +tpf*)
  5368. + lt_cv_deplibs_check_method=pass_all
  5369. + ;;
  5370. +esac
  5371. ])
  5372. -])# AC_LIBTOOL_PROG_CC_C_O
  5373. +file_magic_cmd=$lt_cv_file_magic_cmd
  5374. +deplibs_check_method=$lt_cv_deplibs_check_method
  5375. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5376. +_LT_DECL([], [deplibs_check_method], [1],
  5377. + [Method to check whether dependent libraries are shared objects])
  5378. +_LT_DECL([], [file_magic_cmd], [1],
  5379. + [Command to use when deplibs_check_method == "file_magic"])
  5380. +])# _LT_CHECK_MAGIC_METHOD
  5381. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  5382. -# -----------------------------------------
  5383. -# Check to see if we can do hard links to lock some files if needed
  5384. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  5385. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  5386. -hard_links="nottested"
  5387. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  5388. - # do not overwrite the value of need_locks provided by the user
  5389. - AC_MSG_CHECKING([if we can lock with hard links])
  5390. - hard_links=yes
  5391. - $rm conftest*
  5392. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5393. - touch conftest.a
  5394. - ln conftest.a conftest.b 2>&5 || hard_links=no
  5395. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5396. - AC_MSG_RESULT([$hard_links])
  5397. - if test "$hard_links" = no; then
  5398. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  5399. - need_locks=warn
  5400. +# LT_PATH_NM
  5401. +# ----------
  5402. +# find the pathname to a BSD- or MS-compatible name lister
  5403. +AC_DEFUN([LT_PATH_NM],
  5404. +[AC_REQUIRE([AC_PROG_CC])dnl
  5405. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  5406. +[if test -n "$NM"; then
  5407. + # Let the user override the test.
  5408. + lt_cv_path_NM="$NM"
  5409. +else
  5410. + lt_nm_to_check="${ac_tool_prefix}nm"
  5411. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5412. + lt_nm_to_check="$lt_nm_to_check nm"
  5413. fi
  5414. + for lt_tmp_nm in $lt_nm_to_check; do
  5415. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5416. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5417. + IFS="$lt_save_ifs"
  5418. + test -z "$ac_dir" && ac_dir=.
  5419. + tmp_nm="$ac_dir/$lt_tmp_nm"
  5420. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5421. + # Check to see if the nm accepts a BSD-compat flag.
  5422. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5423. + # nm: unknown option "B" ignored
  5424. + # Tru64's nm complains that /dev/null is an invalid object file
  5425. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5426. + */dev/null* | *'Invalid file or object type'*)
  5427. + lt_cv_path_NM="$tmp_nm -B"
  5428. + break
  5429. + ;;
  5430. + *)
  5431. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5432. + */dev/null*)
  5433. + lt_cv_path_NM="$tmp_nm -p"
  5434. + break
  5435. + ;;
  5436. + *)
  5437. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5438. + continue # so that we can try to find one that supports BSD flags
  5439. + ;;
  5440. + esac
  5441. + ;;
  5442. + esac
  5443. + fi
  5444. + done
  5445. + IFS="$lt_save_ifs"
  5446. + done
  5447. + : ${lt_cv_path_NM=no}
  5448. +fi])
  5449. +if test "$lt_cv_path_NM" != "no"; then
  5450. + NM="$lt_cv_path_NM"
  5451. else
  5452. - need_locks=no
  5453. + # Didn't find any BSD compatible name lister, look for dumpbin.
  5454. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  5455. + AC_SUBST([DUMPBIN])
  5456. + if test "$DUMPBIN" != ":"; then
  5457. + NM="$DUMPBIN"
  5458. + fi
  5459. fi
  5460. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  5461. +test -z "$NM" && NM=nm
  5462. +AC_SUBST([NM])
  5463. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  5464. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  5465. + [lt_cv_nm_interface="BSD nm"
  5466. + echo "int some_variable = 0;" > conftest.$ac_ext
  5467. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  5468. + (eval "$ac_compile" 2>conftest.err)
  5469. + cat conftest.err >&AS_MESSAGE_LOG_FD
  5470. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  5471. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5472. + cat conftest.err >&AS_MESSAGE_LOG_FD
  5473. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  5474. + cat conftest.out >&AS_MESSAGE_LOG_FD
  5475. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5476. + lt_cv_nm_interface="MS dumpbin"
  5477. + fi
  5478. + rm -f conftest*])
  5479. +])# LT_PATH_NM
  5480. +
  5481. +# Old names:
  5482. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  5483. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  5484. +dnl aclocal-1.4 backwards compatibility:
  5485. +dnl AC_DEFUN([AM_PROG_NM], [])
  5486. +dnl AC_DEFUN([AC_PROG_NM], [])
  5487. -# AC_LIBTOOL_OBJDIR
  5488. -# -----------------
  5489. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  5490. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  5491. -[rm -f .libs 2>/dev/null
  5492. -mkdir .libs 2>/dev/null
  5493. -if test -d .libs; then
  5494. - lt_cv_objdir=.libs
  5495. -else
  5496. - # MS-DOS does not allow filenames that begin with a dot.
  5497. - lt_cv_objdir=_libs
  5498. -fi
  5499. -rmdir .libs 2>/dev/null])
  5500. -objdir=$lt_cv_objdir
  5501. -])# AC_LIBTOOL_OBJDIR
  5502. +# LT_LIB_M
  5503. +# --------
  5504. +# check for math library
  5505. +AC_DEFUN([LT_LIB_M],
  5506. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5507. +LIBM=
  5508. +case $host in
  5509. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  5510. + # These system don't have libm, or don't need it
  5511. + ;;
  5512. +*-ncr-sysv4.3*)
  5513. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  5514. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  5515. + ;;
  5516. +*)
  5517. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  5518. + ;;
  5519. +esac
  5520. +AC_SUBST([LIBM])
  5521. +])# LT_LIB_M
  5522. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  5523. -# ----------------------------------------------
  5524. -# Check hardcoding attributes.
  5525. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  5526. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  5527. -_LT_AC_TAGVAR(hardcode_action, $1)=
  5528. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  5529. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  5530. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  5531. +# Old name:
  5532. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  5533. +dnl aclocal-1.4 backwards compatibility:
  5534. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  5535. - # We can hardcode non-existant directories.
  5536. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  5537. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5538. - # have to relink, otherwise we might link with an installed library
  5539. - # when we should be linking with a yet-to-be-installed one
  5540. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  5541. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  5542. - # Linking always hardcodes the temporary library directory.
  5543. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  5544. - else
  5545. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5546. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  5547. - fi
  5548. -else
  5549. - # We cannot hardcode anything, or else we can only hardcode existing
  5550. - # directories.
  5551. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  5552. -fi
  5553. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  5554. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  5555. - # Fast installation is not supported
  5556. - enable_fast_install=no
  5557. -elif test "$shlibpath_overrides_runpath" = yes ||
  5558. - test "$enable_shared" = no; then
  5559. - # Fast installation is not necessary
  5560. - enable_fast_install=needless
  5561. -fi
  5562. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  5563. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  5564. +# -------------------------------
  5565. +m4_defun([_LT_COMPILER_NO_RTTI],
  5566. +[m4_require([_LT_TAG_COMPILER])dnl
  5567. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5568. -# AC_LIBTOOL_SYS_LIB_STRIP
  5569. -# ------------------------
  5570. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  5571. -[striplib=
  5572. -old_striplib=
  5573. -AC_MSG_CHECKING([whether stripping libraries is possible])
  5574. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5575. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5576. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5577. - AC_MSG_RESULT([yes])
  5578. -else
  5579. -# FIXME - insert some real tests, host_os isn't really good enough
  5580. - case $host_os in
  5581. - darwin*)
  5582. - if test -n "$STRIP" ; then
  5583. - striplib="$STRIP -x"
  5584. - old_striplib="$STRIP -S"
  5585. - AC_MSG_RESULT([yes])
  5586. - else
  5587. - AC_MSG_RESULT([no])
  5588. -fi
  5589. - ;;
  5590. - *)
  5591. - AC_MSG_RESULT([no])
  5592. - ;;
  5593. - esac
  5594. +if test "$GCC" = yes; then
  5595. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5596. +
  5597. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  5598. + lt_cv_prog_compiler_rtti_exceptions,
  5599. + [-fno-rtti -fno-exceptions], [],
  5600. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  5601. fi
  5602. -])# AC_LIBTOOL_SYS_LIB_STRIP
  5603. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  5604. + [Compiler flag to turn off builtin functions])
  5605. +])# _LT_COMPILER_NO_RTTI
  5606. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  5607. -# -----------------------------
  5608. -# PORTME Fill in your ld.so characteristics
  5609. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  5610. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  5611. -AC_MSG_CHECKING([dynamic linker characteristics])
  5612. -library_names_spec=
  5613. -libname_spec='lib$name'
  5614. -soname_spec=
  5615. -shrext_cmds=".so"
  5616. -postinstall_cmds=
  5617. -postuninstall_cmds=
  5618. -finish_cmds=
  5619. -finish_eval=
  5620. -shlibpath_var=
  5621. -shlibpath_overrides_runpath=unknown
  5622. -version_type=none
  5623. -dynamic_linker="$host_os ld.so"
  5624. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5625. -m4_if($1,[],[
  5626. -if test "$GCC" = yes; then
  5627. - case $host_os in
  5628. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  5629. - *) lt_awk_arg="/^libraries:/" ;;
  5630. - esac
  5631. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  5632. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  5633. - # if the path contains ";" then we assume it to be the separator
  5634. - # otherwise default to the standard path separator (i.e. ":") - it is
  5635. - # assumed that no part of a normal pathname contains ";" but that should
  5636. - # okay in the real world where ";" in dirpaths is itself problematic.
  5637. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  5638. - else
  5639. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  5640. - fi
  5641. - # Ok, now we have the path, separated by spaces, we can step through it
  5642. - # and add multilib dir if necessary.
  5643. - lt_tmp_lt_search_path_spec=
  5644. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  5645. - for lt_sys_path in $lt_search_path_spec; do
  5646. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  5647. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  5648. - else
  5649. - test -d "$lt_sys_path" && \
  5650. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  5651. - fi
  5652. - done
  5653. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  5654. -BEGIN {RS=" "; FS="/|\n";} {
  5655. - lt_foo="";
  5656. - lt_count=0;
  5657. - for (lt_i = NF; lt_i > 0; lt_i--) {
  5658. - if ($lt_i != "" && $lt_i != ".") {
  5659. - if ($lt_i == "..") {
  5660. - lt_count++;
  5661. - } else {
  5662. - if (lt_count == 0) {
  5663. - lt_foo="/" $lt_i lt_foo;
  5664. - } else {
  5665. - lt_count--;
  5666. - }
  5667. - }
  5668. - }
  5669. - }
  5670. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  5671. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  5672. -}'`
  5673. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  5674. -else
  5675. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5676. -fi])
  5677. -need_lib_prefix=unknown
  5678. -hardcode_into_libs=no
  5679. +# _LT_CMD_GLOBAL_SYMBOLS
  5680. +# ----------------------
  5681. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  5682. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5683. +AC_REQUIRE([AC_PROG_CC])dnl
  5684. +AC_REQUIRE([LT_PATH_NM])dnl
  5685. +AC_REQUIRE([LT_PATH_LD])dnl
  5686. +m4_require([_LT_DECL_SED])dnl
  5687. +m4_require([_LT_DECL_EGREP])dnl
  5688. +m4_require([_LT_TAG_COMPILER])dnl
  5689. -# when you set need_version to no, make sure it does not cause -set_version
  5690. -# flags to be left without arguments
  5691. -need_version=unknown
  5692. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  5693. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  5694. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  5695. +[
  5696. +# These are sane defaults that work on at least a few old systems.
  5697. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5698. -case $host_os in
  5699. -aix3*)
  5700. - version_type=linux
  5701. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  5702. - shlibpath_var=LIBPATH
  5703. +# Character class describing NM global symbol codes.
  5704. +symcode='[[BCDEGRST]]'
  5705. - # AIX 3 has no versioning support, so we append a major version to the name.
  5706. - soname_spec='${libname}${release}${shared_ext}$major'
  5707. - ;;
  5708. +# Regexp to match symbols that can be accessed directly from C.
  5709. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  5710. -aix[[4-9]]*)
  5711. - version_type=linux
  5712. - need_lib_prefix=no
  5713. - need_version=no
  5714. - hardcode_into_libs=yes
  5715. +# Define system-specific variables.
  5716. +case $host_os in
  5717. +aix*)
  5718. + symcode='[[BCDT]]'
  5719. + ;;
  5720. +cygwin* | mingw* | pw32* | cegcc*)
  5721. + symcode='[[ABCDGISTW]]'
  5722. + ;;
  5723. +hpux*)
  5724. if test "$host_cpu" = ia64; then
  5725. - # AIX 5 supports IA64
  5726. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  5727. - shlibpath_var=LD_LIBRARY_PATH
  5728. - else
  5729. - # With GCC up to 2.95.x, collect2 would create an import file
  5730. - # for dependence libraries. The import file would start with
  5731. - # the line `#! .'. This would cause the generated library to
  5732. - # depend on `.', always an invalid library. This was fixed in
  5733. - # development snapshots of GCC prior to 3.0.
  5734. - case $host_os in
  5735. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  5736. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5737. - echo ' yes '
  5738. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5739. - :
  5740. - else
  5741. - can_build_shared=no
  5742. - fi
  5743. - ;;
  5744. - esac
  5745. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  5746. - # soname into executable. Probably we can add versioning support to
  5747. - # collect2, so additional links can be useful in future.
  5748. - if test "$aix_use_runtimelinking" = yes; then
  5749. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5750. - # instead of lib<name>.a to let people know that these are not
  5751. - # typical AIX shared libraries.
  5752. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5753. - else
  5754. - # We preserve .a as extension for shared libraries through AIX4.2
  5755. - # and later when we are not doing run time linking.
  5756. - library_names_spec='${libname}${release}.a $libname.a'
  5757. - soname_spec='${libname}${release}${shared_ext}$major'
  5758. - fi
  5759. - shlibpath_var=LIBPATH
  5760. + symcode='[[ABCDEGRST]]'
  5761. fi
  5762. ;;
  5763. -
  5764. -amigaos*)
  5765. - library_names_spec='$libname.ixlibrary $libname.a'
  5766. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5767. - 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'
  5768. +irix* | nonstopux*)
  5769. + symcode='[[BCDEGRST]]'
  5770. ;;
  5771. -
  5772. -beos*)
  5773. - library_names_spec='${libname}${shared_ext}'
  5774. - dynamic_linker="$host_os ld.so"
  5775. - shlibpath_var=LIBRARY_PATH
  5776. +osf*)
  5777. + symcode='[[BCDEGQRST]]'
  5778. ;;
  5779. -
  5780. -bsdi[[45]]*)
  5781. - version_type=linux
  5782. - need_version=no
  5783. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5784. - soname_spec='${libname}${release}${shared_ext}$major'
  5785. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5786. - shlibpath_var=LD_LIBRARY_PATH
  5787. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5788. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5789. - # the default ld.so.conf also contains /usr/contrib/lib and
  5790. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5791. - # libtool to hard-code these into programs
  5792. +solaris*)
  5793. + symcode='[[BDRT]]'
  5794. + ;;
  5795. +sco3.2v5*)
  5796. + symcode='[[DT]]'
  5797. + ;;
  5798. +sysv4.2uw2*)
  5799. + symcode='[[DT]]'
  5800. + ;;
  5801. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5802. + symcode='[[ABDT]]'
  5803. + ;;
  5804. +sysv4)
  5805. + symcode='[[DFNSTU]]'
  5806. ;;
  5807. +esac
  5808. -cygwin* | mingw* | pw32*)
  5809. - version_type=windows
  5810. - shrext_cmds=".dll"
  5811. - need_version=no
  5812. - need_lib_prefix=no
  5813. +# If we're using GNU nm, then use its standard symbol codes.
  5814. +case `$NM -V 2>&1` in
  5815. +*GNU* | *'with BFD'*)
  5816. + symcode='[[ABCDGIRSTW]]' ;;
  5817. +esac
  5818. - case $GCC,$host_os in
  5819. - yes,cygwin* | yes,mingw* | yes,pw32*)
  5820. - library_names_spec='$libname.dll.a'
  5821. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  5822. - postinstall_cmds='base_file=`basename \${file}`~
  5823. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  5824. - dldir=$destdir/`dirname \$dlpath`~
  5825. - test -d \$dldir || mkdir -p \$dldir~
  5826. - $install_prog $dir/$dlname \$dldir/$dlname~
  5827. - chmod a+x \$dldir/$dlname'
  5828. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5829. - dlpath=$dir/\$dldll~
  5830. - $rm \$dlpath'
  5831. - shlibpath_overrides_runpath=yes
  5832. +# Transform an extracted symbol line into a proper C declaration.
  5833. +# Some systems (esp. on ia64) link data and code symbols differently,
  5834. +# so use this general approach.
  5835. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5836. - case $host_os in
  5837. - cygwin*)
  5838. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  5839. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5840. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  5841. - ;;
  5842. - mingw*)
  5843. - # MinGW DLLs use traditional 'lib' prefix
  5844. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5845. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  5846. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  5847. - # It is most probably a Windows format PATH printed by
  5848. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  5849. - # path with ; separators, and with drive letters. We can handle the
  5850. - # drive letters (cygwin fileutils understands them), so leave them,
  5851. - # especially as we might pass files found there to a mingw objdump,
  5852. - # which wouldn't understand a cygwinified path. Ahh.
  5853. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  5854. - else
  5855. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  5856. - fi
  5857. - ;;
  5858. - pw32*)
  5859. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  5860. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  5861. - ;;
  5862. - esac
  5863. - ;;
  5864. -
  5865. - *)
  5866. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  5867. - ;;
  5868. - esac
  5869. - dynamic_linker='Win32 ld.exe'
  5870. - # FIXME: first we should search . and the directory the executable is in
  5871. - shlibpath_var=PATH
  5872. - ;;
  5873. +# Transform an extracted symbol line into symbol name and symbol address
  5874. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5875. +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'"
  5876. -darwin* | rhapsody*)
  5877. - dynamic_linker="$host_os dyld"
  5878. - version_type=darwin
  5879. - need_lib_prefix=no
  5880. - need_version=no
  5881. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  5882. - soname_spec='${libname}${release}${major}$shared_ext'
  5883. - shlibpath_overrides_runpath=yes
  5884. - shlibpath_var=DYLD_LIBRARY_PATH
  5885. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  5886. - m4_if([$1], [],[
  5887. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  5888. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  5889. +# Handle CRLF in mingw tool chain
  5890. +opt_cr=
  5891. +case $build_os in
  5892. +mingw*)
  5893. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5894. ;;
  5895. +esac
  5896. -dgux*)
  5897. - version_type=linux
  5898. - need_lib_prefix=no
  5899. - need_version=no
  5900. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  5901. - soname_spec='${libname}${release}${shared_ext}$major'
  5902. - shlibpath_var=LD_LIBRARY_PATH
  5903. - ;;
  5904. +# Try without a prefix underscore, then with it.
  5905. +for ac_symprfx in "" "_"; do
  5906. -freebsd1*)
  5907. - dynamic_linker=no
  5908. - ;;
  5909. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5910. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  5911. -freebsd* | dragonfly*)
  5912. - # DragonFly does not have aout. When/if they implement a new
  5913. - # versioning mechanism, adjust this.
  5914. - if test -x /usr/bin/objformat; then
  5915. - objformat=`/usr/bin/objformat`
  5916. + # Write the raw and C identifiers.
  5917. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5918. + # Fake it for dumpbin and say T for any non-static function
  5919. + # and D for any global variable.
  5920. + # Also find C++ and __fastcall symbols from MSVC++,
  5921. + # which start with @ or ?.
  5922. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  5923. +" {last_section=section; section=\$ 3};"\
  5924. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5925. +" \$ 0!~/External *\|/{next};"\
  5926. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5927. +" {if(hide[section]) next};"\
  5928. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5929. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5930. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5931. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5932. +" ' prfx=^$ac_symprfx]"
  5933. else
  5934. - case $host_os in
  5935. - freebsd[[123]]*) objformat=aout ;;
  5936. - *) objformat=elf ;;
  5937. - esac
  5938. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5939. fi
  5940. - version_type=freebsd-$objformat
  5941. - case $version_type in
  5942. - freebsd-elf*)
  5943. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  5944. - need_version=no
  5945. - need_lib_prefix=no
  5946. - ;;
  5947. - freebsd-*)
  5948. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  5949. - need_version=yes
  5950. - ;;
  5951. - esac
  5952. - shlibpath_var=LD_LIBRARY_PATH
  5953. - case $host_os in
  5954. - freebsd2*)
  5955. - shlibpath_overrides_runpath=yes
  5956. - ;;
  5957. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  5958. - shlibpath_overrides_runpath=yes
  5959. - hardcode_into_libs=yes
  5960. - ;;
  5961. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  5962. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  5963. - shlibpath_overrides_runpath=no
  5964. - hardcode_into_libs=yes
  5965. - ;;
  5966. - *) # from 4.6 on, and DragonFly
  5967. - shlibpath_overrides_runpath=yes
  5968. - hardcode_into_libs=yes
  5969. - ;;
  5970. - esac
  5971. - ;;
  5972. -gnu*)
  5973. - version_type=linux
  5974. - need_lib_prefix=no
  5975. - need_version=no
  5976. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  5977. - soname_spec='${libname}${release}${shared_ext}$major'
  5978. - shlibpath_var=LD_LIBRARY_PATH
  5979. - hardcode_into_libs=yes
  5980. - ;;
  5981. + # Check to see that the pipe works correctly.
  5982. + pipe_works=no
  5983. -hpux9* | hpux10* | hpux11*)
  5984. - # Give a soname corresponding to the major version so that dld.sl refuses to
  5985. - # link against other versions.
  5986. - version_type=sunos
  5987. - need_lib_prefix=no
  5988. - need_version=no
  5989. - case $host_cpu in
  5990. - ia64*)
  5991. - shrext_cmds='.so'
  5992. - hardcode_into_libs=yes
  5993. - dynamic_linker="$host_os dld.so"
  5994. - shlibpath_var=LD_LIBRARY_PATH
  5995. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  5996. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  5997. - soname_spec='${libname}${release}${shared_ext}$major'
  5998. - if test "X$HPUX_IA64_MODE" = X32; then
  5999. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6000. - else
  6001. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6002. - fi
  6003. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6004. - ;;
  6005. - hppa*64*)
  6006. - shrext_cmds='.sl'
  6007. - hardcode_into_libs=yes
  6008. - dynamic_linker="$host_os dld.sl"
  6009. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6010. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6011. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6012. - soname_spec='${libname}${release}${shared_ext}$major'
  6013. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6014. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6015. - ;;
  6016. - *)
  6017. - shrext_cmds='.sl'
  6018. - dynamic_linker="$host_os dld.sl"
  6019. - shlibpath_var=SHLIB_PATH
  6020. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6021. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6022. - soname_spec='${libname}${release}${shared_ext}$major'
  6023. - ;;
  6024. - esac
  6025. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6026. - postinstall_cmds='chmod 555 $lib'
  6027. - ;;
  6028. + rm -f conftest*
  6029. + cat > conftest.$ac_ext <<_LT_EOF
  6030. +#ifdef __cplusplus
  6031. +extern "C" {
  6032. +#endif
  6033. +char nm_test_var;
  6034. +void nm_test_func(void);
  6035. +void nm_test_func(void){}
  6036. +#ifdef __cplusplus
  6037. +}
  6038. +#endif
  6039. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6040. +_LT_EOF
  6041. -interix[[3-9]]*)
  6042. - version_type=linux
  6043. - need_lib_prefix=no
  6044. - need_version=no
  6045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6046. - soname_spec='${libname}${release}${shared_ext}$major'
  6047. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  6048. - shlibpath_var=LD_LIBRARY_PATH
  6049. - shlibpath_overrides_runpath=no
  6050. - hardcode_into_libs=yes
  6051. - ;;
  6052. + if AC_TRY_EVAL(ac_compile); then
  6053. + # Now try to grab the symbols.
  6054. + nlist=conftest.nm
  6055. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6056. + # Try sorting and uniquifying the output.
  6057. + if sort "$nlist" | uniq > "$nlist"T; then
  6058. + mv -f "$nlist"T "$nlist"
  6059. + else
  6060. + rm -f "$nlist"T
  6061. + fi
  6062. -irix5* | irix6* | nonstopux*)
  6063. - case $host_os in
  6064. - nonstopux*) version_type=nonstopux ;;
  6065. - *)
  6066. - if test "$lt_cv_prog_gnu_ld" = yes; then
  6067. - version_type=linux
  6068. - else
  6069. - version_type=irix
  6070. - fi ;;
  6071. - esac
  6072. - need_lib_prefix=no
  6073. - need_version=no
  6074. - soname_spec='${libname}${release}${shared_ext}$major'
  6075. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6076. - case $host_os in
  6077. - irix5* | nonstopux*)
  6078. - libsuff= shlibsuff=
  6079. - ;;
  6080. - *)
  6081. - case $LD in # libtool.m4 will add one of these switches to LD
  6082. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6083. - libsuff= shlibsuff= libmagic=32-bit;;
  6084. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6085. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  6086. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6087. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6088. - *) libsuff= shlibsuff= libmagic=never-match;;
  6089. - esac
  6090. - ;;
  6091. - esac
  6092. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6093. - shlibpath_overrides_runpath=no
  6094. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6095. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6096. - hardcode_into_libs=yes
  6097. - ;;
  6098. + # Make sure that we snagged all the symbols we need.
  6099. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6100. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6101. + cat <<_LT_EOF > conftest.$ac_ext
  6102. +#ifdef __cplusplus
  6103. +extern "C" {
  6104. +#endif
  6105. -# No shared lib support for Linux oldld, aout, or coff.
  6106. -linux*oldld* | linux*aout* | linux*coff*)
  6107. - dynamic_linker=no
  6108. - ;;
  6109. +_LT_EOF
  6110. + # Now generate the symbol file.
  6111. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6112. -# This must be Linux ELF.
  6113. -linux* | k*bsd*-gnu)
  6114. - version_type=linux
  6115. - need_lib_prefix=no
  6116. - need_version=no
  6117. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6118. - soname_spec='${libname}${release}${shared_ext}$major'
  6119. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6120. - shlibpath_var=LD_LIBRARY_PATH
  6121. - shlibpath_overrides_runpath=no
  6122. - # This implies no fast_install, which is unacceptable.
  6123. - # Some rework will be needed to allow for fast_install
  6124. - # before this can be enabled.
  6125. - hardcode_into_libs=yes
  6126. + cat <<_LT_EOF >> conftest.$ac_ext
  6127. - # Append ld.so.conf contents to the search path
  6128. - if test -f /etc/ld.so.conf; then
  6129. - 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' ' '`
  6130. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6131. - fi
  6132. +/* The mapping between symbol names and symbols. */
  6133. +const struct {
  6134. + const char *name;
  6135. + void *address;
  6136. +}
  6137. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6138. +{
  6139. + { "@PROGRAM@", (void *) 0 },
  6140. +_LT_EOF
  6141. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6142. + cat <<\_LT_EOF >> conftest.$ac_ext
  6143. + {0, (void *) 0}
  6144. +};
  6145. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  6146. - # powerpc, because MkLinux only supported shared libraries with the
  6147. - # GNU dynamic linker. Since this was broken with cross compilers,
  6148. - # most powerpc-linux boxes support dynamic linking these days and
  6149. - # people can always --disable-shared, the test was removed, and we
  6150. - # assume the GNU/Linux dynamic linker is in use.
  6151. - dynamic_linker='GNU/Linux ld.so'
  6152. - ;;
  6153. +/* This works around a problem in FreeBSD linker */
  6154. +#ifdef FREEBSD_WORKAROUND
  6155. +static const void *lt_preloaded_setup() {
  6156. + return lt__PROGRAM__LTX_preloaded_symbols;
  6157. +}
  6158. +#endif
  6159. -netbsd*)
  6160. - version_type=sunos
  6161. - need_lib_prefix=no
  6162. - need_version=no
  6163. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6164. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6165. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6166. - dynamic_linker='NetBSD (a.out) ld.so'
  6167. +#ifdef __cplusplus
  6168. +}
  6169. +#endif
  6170. +_LT_EOF
  6171. + # Now try linking the two files.
  6172. + mv conftest.$ac_objext conftstm.$ac_objext
  6173. + lt_save_LIBS="$LIBS"
  6174. + lt_save_CFLAGS="$CFLAGS"
  6175. + LIBS="conftstm.$ac_objext"
  6176. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6177. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6178. + pipe_works=yes
  6179. + fi
  6180. + LIBS="$lt_save_LIBS"
  6181. + CFLAGS="$lt_save_CFLAGS"
  6182. + else
  6183. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6184. + fi
  6185. + else
  6186. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6187. + fi
  6188. + else
  6189. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6190. + fi
  6191. else
  6192. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6193. - soname_spec='${libname}${release}${shared_ext}$major'
  6194. - dynamic_linker='NetBSD ld.elf_so'
  6195. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6196. + cat conftest.$ac_ext >&5
  6197. fi
  6198. - shlibpath_var=LD_LIBRARY_PATH
  6199. - shlibpath_overrides_runpath=yes
  6200. - hardcode_into_libs=yes
  6201. - ;;
  6202. -
  6203. -newsos6)
  6204. - version_type=linux
  6205. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6206. - shlibpath_var=LD_LIBRARY_PATH
  6207. - shlibpath_overrides_runpath=yes
  6208. - ;;
  6209. -
  6210. -nto-qnx*)
  6211. - version_type=linux
  6212. - need_lib_prefix=no
  6213. - need_version=no
  6214. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6215. - soname_spec='${libname}${release}${shared_ext}$major'
  6216. - shlibpath_var=LD_LIBRARY_PATH
  6217. - shlibpath_overrides_runpath=yes
  6218. - ;;
  6219. + rm -rf conftest* conftst*
  6220. -openbsd*)
  6221. - version_type=sunos
  6222. - sys_lib_dlsearch_path_spec="/usr/lib"
  6223. - need_lib_prefix=no
  6224. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6225. - case $host_os in
  6226. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6227. - *) need_version=no ;;
  6228. - esac
  6229. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6230. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6231. - shlibpath_var=LD_LIBRARY_PATH
  6232. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6233. - case $host_os in
  6234. - openbsd2.[[89]] | openbsd2.[[89]].*)
  6235. - shlibpath_overrides_runpath=no
  6236. - ;;
  6237. - *)
  6238. - shlibpath_overrides_runpath=yes
  6239. - ;;
  6240. - esac
  6241. + # Do not use the global_symbol_pipe unless it works.
  6242. + if test "$pipe_works" = yes; then
  6243. + break
  6244. else
  6245. - shlibpath_overrides_runpath=yes
  6246. + lt_cv_sys_global_symbol_pipe=
  6247. fi
  6248. - ;;
  6249. +done
  6250. +])
  6251. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6252. + lt_cv_sys_global_symbol_to_cdecl=
  6253. +fi
  6254. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6255. + AC_MSG_RESULT(failed)
  6256. +else
  6257. + AC_MSG_RESULT(ok)
  6258. +fi
  6259. -os2*)
  6260. - libname_spec='$name'
  6261. - shrext_cmds=".dll"
  6262. - need_lib_prefix=no
  6263. - library_names_spec='$libname${shared_ext} $libname.a'
  6264. - dynamic_linker='OS/2 ld.exe'
  6265. - shlibpath_var=LIBPATH
  6266. - ;;
  6267. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6268. + [Take the output of nm and produce a listing of raw symbols and C names])
  6269. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6270. + [Transform the output of nm in a proper C declaration])
  6271. +_LT_DECL([global_symbol_to_c_name_address],
  6272. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6273. + [Transform the output of nm in a C name address pair])
  6274. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6275. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6276. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6277. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6278. -osf3* | osf4* | osf5*)
  6279. - version_type=osf
  6280. - need_lib_prefix=no
  6281. - need_version=no
  6282. - soname_spec='${libname}${release}${shared_ext}$major'
  6283. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6284. - shlibpath_var=LD_LIBRARY_PATH
  6285. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6286. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6287. - ;;
  6288. -rdos*)
  6289. - dynamic_linker=no
  6290. - ;;
  6291. +# _LT_COMPILER_PIC([TAGNAME])
  6292. +# ---------------------------
  6293. +m4_defun([_LT_COMPILER_PIC],
  6294. +[m4_require([_LT_TAG_COMPILER])dnl
  6295. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6296. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6297. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6298. -solaris*)
  6299. - version_type=linux
  6300. - need_lib_prefix=no
  6301. - need_version=no
  6302. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6303. - soname_spec='${libname}${release}${shared_ext}$major'
  6304. - shlibpath_var=LD_LIBRARY_PATH
  6305. - shlibpath_overrides_runpath=yes
  6306. - hardcode_into_libs=yes
  6307. - # ldd complains unless libraries are executable
  6308. - postinstall_cmds='chmod +x $lib'
  6309. - ;;
  6310. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6311. +m4_if([$1], [CXX], [
  6312. + # C++ specific cases for pic, static, wl, etc.
  6313. + if test "$GXX" = yes; then
  6314. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6315. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6316. -sunos4*)
  6317. - version_type=sunos
  6318. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6319. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6320. - shlibpath_var=LD_LIBRARY_PATH
  6321. - shlibpath_overrides_runpath=yes
  6322. - if test "$with_gnu_ld" = yes; then
  6323. - need_lib_prefix=no
  6324. - fi
  6325. - need_version=yes
  6326. - ;;
  6327. + case $host_os in
  6328. + aix*)
  6329. + # All AIX code is PIC.
  6330. + if test "$host_cpu" = ia64; then
  6331. + # AIX 5 now supports IA64 processor
  6332. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6333. + fi
  6334. + ;;
  6335. -sysv4 | sysv4.3*)
  6336. - version_type=linux
  6337. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6338. - soname_spec='${libname}${release}${shared_ext}$major'
  6339. - shlibpath_var=LD_LIBRARY_PATH
  6340. - case $host_vendor in
  6341. - sni)
  6342. - shlibpath_overrides_runpath=no
  6343. - need_lib_prefix=no
  6344. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  6345. - runpath_var=LD_RUN_PATH
  6346. + amigaos*)
  6347. + case $host_cpu in
  6348. + powerpc)
  6349. + # see comment about AmigaOS4 .so support
  6350. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6351. + ;;
  6352. + m68k)
  6353. + # FIXME: we need at least 68020 code to build shared libraries, but
  6354. + # adding the `-m68020' flag to GCC prevents building anything better,
  6355. + # like `-m68040'.
  6356. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6357. + ;;
  6358. + esac
  6359. ;;
  6360. - siemens)
  6361. - need_lib_prefix=no
  6362. +
  6363. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6364. + # PIC is the default for these OSes.
  6365. ;;
  6366. - motorola)
  6367. - need_lib_prefix=no
  6368. - need_version=no
  6369. - shlibpath_overrides_runpath=no
  6370. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6371. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  6372. + # This hack is so that the source file can tell whether it is being
  6373. + # built for inclusion in a dll (and should export symbols for example).
  6374. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6375. + # (--disable-auto-import) libraries
  6376. + m4_if([$1], [GCJ], [],
  6377. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6378. ;;
  6379. - esac
  6380. - ;;
  6381. -
  6382. -sysv4*MP*)
  6383. - if test -d /usr/nec ;then
  6384. - version_type=linux
  6385. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6386. - soname_spec='$libname${shared_ext}.$major'
  6387. - shlibpath_var=LD_LIBRARY_PATH
  6388. - fi
  6389. - ;;
  6390. -
  6391. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6392. - version_type=freebsd-elf
  6393. - need_lib_prefix=no
  6394. - need_version=no
  6395. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6396. - soname_spec='${libname}${release}${shared_ext}$major'
  6397. - shlibpath_var=LD_LIBRARY_PATH
  6398. - hardcode_into_libs=yes
  6399. - if test "$with_gnu_ld" = yes; then
  6400. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  6401. - shlibpath_overrides_runpath=no
  6402. + darwin* | rhapsody*)
  6403. + # PIC is the default on this platform
  6404. + # Common symbols not allowed in MH_DYLIB files
  6405. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6406. + ;;
  6407. + *djgpp*)
  6408. + # DJGPP does not support shared libraries at all
  6409. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6410. + ;;
  6411. + interix[[3-9]]*)
  6412. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6413. + # Instead, we relocate shared libraries at runtime.
  6414. + ;;
  6415. + sysv4*MP*)
  6416. + if test -d /usr/nec; then
  6417. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6418. + fi
  6419. + ;;
  6420. + hpux*)
  6421. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6422. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6423. + # sets the default TLS model and affects inlining.
  6424. + case $host_cpu in
  6425. + hppa*64*)
  6426. + ;;
  6427. + *)
  6428. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6429. + ;;
  6430. + esac
  6431. + ;;
  6432. + *qnx* | *nto*)
  6433. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6434. + # it will coredump.
  6435. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6436. + ;;
  6437. + *)
  6438. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6439. + ;;
  6440. + esac
  6441. else
  6442. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  6443. - shlibpath_overrides_runpath=yes
  6444. case $host_os in
  6445. - sco3.2v5*)
  6446. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  6447. + aix[[4-9]]*)
  6448. + # All AIX code is PIC.
  6449. + if test "$host_cpu" = ia64; then
  6450. + # AIX 5 now supports IA64 processor
  6451. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6452. + else
  6453. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6454. + fi
  6455. ;;
  6456. - esac
  6457. - fi
  6458. - sys_lib_dlsearch_path_spec='/usr/lib'
  6459. - ;;
  6460. -
  6461. -uts4*)
  6462. - version_type=linux
  6463. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6464. - soname_spec='${libname}${release}${shared_ext}$major'
  6465. - shlibpath_var=LD_LIBRARY_PATH
  6466. - ;;
  6467. -
  6468. -*)
  6469. - dynamic_linker=no
  6470. - ;;
  6471. -esac
  6472. -AC_MSG_RESULT([$dynamic_linker])
  6473. -test "$dynamic_linker" = no && can_build_shared=no
  6474. -
  6475. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  6476. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  6477. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  6478. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  6479. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  6480. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  6481. -
  6482. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6483. -if test "$GCC" = yes; then
  6484. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6485. -fi
  6486. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  6487. -
  6488. -
  6489. -# _LT_AC_TAGCONFIG
  6490. -# ----------------
  6491. -AC_DEFUN([_LT_AC_TAGCONFIG],
  6492. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  6493. -AC_ARG_WITH([tags],
  6494. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  6495. - [include additional configurations @<:@automatic@:>@])],
  6496. - [tagnames="$withval"])
  6497. -
  6498. -if test -f "$ltmain" && test -n "$tagnames"; then
  6499. - if test ! -f "${ofile}"; then
  6500. - AC_MSG_WARN([output file `$ofile' does not exist])
  6501. - fi
  6502. -
  6503. - if test -z "$LTCC"; then
  6504. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  6505. - if test -z "$LTCC"; then
  6506. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  6507. - else
  6508. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  6509. - fi
  6510. - fi
  6511. - if test -z "$LTCFLAGS"; then
  6512. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  6513. - fi
  6514. -
  6515. - # Extract list of available tagged configurations in $ofile.
  6516. - # Note that this assumes the entire list is on one line.
  6517. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  6518. -
  6519. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6520. - for tagname in $tagnames; do
  6521. - IFS="$lt_save_ifs"
  6522. - # Check whether tagname contains only valid characters
  6523. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  6524. - "") ;;
  6525. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  6526. + chorus*)
  6527. + case $cc_basename in
  6528. + cxch68*)
  6529. + # Green Hills C++ Compiler
  6530. + # _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"
  6531. + ;;
  6532. + esac
  6533. ;;
  6534. - esac
  6535. -
  6536. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  6537. - then
  6538. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  6539. - fi
  6540. -
  6541. - # Update the list of available tags.
  6542. - if test -n "$tagname"; then
  6543. - echo appending configuration tag \"$tagname\" to $ofile
  6544. -
  6545. - case $tagname in
  6546. - CXX)
  6547. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6548. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6549. - (test "X$CXX" != "Xg++"))) ; then
  6550. - AC_LIBTOOL_LANG_CXX_CONFIG
  6551. - else
  6552. - tagname=""
  6553. - fi
  6554. + dgux*)
  6555. + case $cc_basename in
  6556. + ec++*)
  6557. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6558. + ;;
  6559. + ghcx*)
  6560. + # Green Hills C++ Compiler
  6561. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6562. + ;;
  6563. + *)
  6564. + ;;
  6565. + esac
  6566. ;;
  6567. -
  6568. - F77)
  6569. - if test -n "$F77" && test "X$F77" != "Xno"; then
  6570. - AC_LIBTOOL_LANG_F77_CONFIG
  6571. - else
  6572. - tagname=""
  6573. - fi
  6574. + freebsd* | dragonfly*)
  6575. + # FreeBSD uses GNU C++
  6576. ;;
  6577. -
  6578. - GCJ)
  6579. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  6580. - AC_LIBTOOL_LANG_GCJ_CONFIG
  6581. - else
  6582. - tagname=""
  6583. - fi
  6584. + hpux9* | hpux10* | hpux11*)
  6585. + case $cc_basename in
  6586. + CC*)
  6587. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6588. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6589. + if test "$host_cpu" != ia64; then
  6590. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6591. + fi
  6592. + ;;
  6593. + aCC*)
  6594. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6595. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6596. + case $host_cpu in
  6597. + hppa*64*|ia64*)
  6598. + # +Z the default
  6599. + ;;
  6600. + *)
  6601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6602. + ;;
  6603. + esac
  6604. + ;;
  6605. + *)
  6606. + ;;
  6607. + esac
  6608. ;;
  6609. -
  6610. - RC)
  6611. - AC_LIBTOOL_LANG_RC_CONFIG
  6612. + interix*)
  6613. + # This is c89, which is MS Visual C++ (no shared libs)
  6614. + # Anyone wants to do a port?
  6615. + ;;
  6616. + irix5* | irix6* | nonstopux*)
  6617. + case $cc_basename in
  6618. + CC*)
  6619. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6620. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6621. + # CC pic flag -KPIC is the default.
  6622. + ;;
  6623. + *)
  6624. + ;;
  6625. + esac
  6626. + ;;
  6627. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6628. + case $cc_basename in
  6629. + KCC*)
  6630. + # KAI C++ Compiler
  6631. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6632. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6633. + ;;
  6634. + ecpc* )
  6635. + # old Intel C++ for x86_64 which still supported -KPIC.
  6636. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6637. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6638. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6639. + ;;
  6640. + icpc* )
  6641. + # Intel C++, used to be incompatible with GCC.
  6642. + # ICC 10 doesn't accept -KPIC any more.
  6643. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6644. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6645. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6646. + ;;
  6647. + pgCC* | pgcpp*)
  6648. + # Portland Group C++ compiler
  6649. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6650. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6651. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6652. + ;;
  6653. + cxx*)
  6654. + # Compaq C++
  6655. + # Make sure the PIC flag is empty. It appears that all Alpha
  6656. + # Linux and Compaq Tru64 Unix objects are PIC.
  6657. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6658. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6659. + ;;
  6660. + xlc* | xlC*)
  6661. + # IBM XL 8.0 on PPC
  6662. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6663. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6664. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6665. + ;;
  6666. + *)
  6667. + case `$CC -V 2>&1 | sed 5q` in
  6668. + *Sun\ C*)
  6669. + # Sun C++ 5.9
  6670. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6671. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6672. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6673. + ;;
  6674. + esac
  6675. + ;;
  6676. + esac
  6677. + ;;
  6678. + lynxos*)
  6679. + ;;
  6680. + m88k*)
  6681. + ;;
  6682. + mvs*)
  6683. + case $cc_basename in
  6684. + cxx*)
  6685. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6686. + ;;
  6687. + *)
  6688. + ;;
  6689. + esac
  6690. + ;;
  6691. + netbsd* | netbsdelf*-gnu)
  6692. + ;;
  6693. + *qnx* | *nto*)
  6694. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6695. + # it will coredump.
  6696. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6697. + ;;
  6698. + osf3* | osf4* | osf5*)
  6699. + case $cc_basename in
  6700. + KCC*)
  6701. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6702. + ;;
  6703. + RCC*)
  6704. + # Rational C++ 2.4.1
  6705. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6706. + ;;
  6707. + cxx*)
  6708. + # Digital/Compaq C++
  6709. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6710. + # Make sure the PIC flag is empty. It appears that all Alpha
  6711. + # Linux and Compaq Tru64 Unix objects are PIC.
  6712. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6713. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6714. + ;;
  6715. + *)
  6716. + ;;
  6717. + esac
  6718. + ;;
  6719. + psos*)
  6720. + ;;
  6721. + solaris*)
  6722. + case $cc_basename in
  6723. + CC*)
  6724. + # Sun C++ 4.2, 5.x and Centerline C++
  6725. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6726. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6727. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6728. + ;;
  6729. + gcx*)
  6730. + # Green Hills C++ Compiler
  6731. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6732. + ;;
  6733. + *)
  6734. + ;;
  6735. + esac
  6736. + ;;
  6737. + sunos4*)
  6738. + case $cc_basename in
  6739. + CC*)
  6740. + # Sun C++ 4.x
  6741. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6742. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6743. + ;;
  6744. + lcc*)
  6745. + # Lucid
  6746. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6747. + ;;
  6748. + *)
  6749. + ;;
  6750. + esac
  6751. + ;;
  6752. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6753. + case $cc_basename in
  6754. + CC*)
  6755. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6756. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6757. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6758. + ;;
  6759. + esac
  6760. + ;;
  6761. + tandem*)
  6762. + case $cc_basename in
  6763. + NCC*)
  6764. + # NonStop-UX NCC 3.20
  6765. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6766. + ;;
  6767. + *)
  6768. + ;;
  6769. + esac
  6770. + ;;
  6771. + vxworks*)
  6772. ;;
  6773. -
  6774. *)
  6775. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  6776. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6777. ;;
  6778. - esac
  6779. + esac
  6780. + fi
  6781. +],
  6782. +[
  6783. + if test "$GCC" = yes; then
  6784. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6785. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6786. - # Append the new tag name to the list of available tags.
  6787. - if test -n "$tagname" ; then
  6788. - available_tags="$available_tags $tagname"
  6789. - fi
  6790. - fi
  6791. - done
  6792. - IFS="$lt_save_ifs"
  6793. + case $host_os in
  6794. + aix*)
  6795. + # All AIX code is PIC.
  6796. + if test "$host_cpu" = ia64; then
  6797. + # AIX 5 now supports IA64 processor
  6798. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6799. + fi
  6800. + ;;
  6801. - # Now substitute the updated list of available tags.
  6802. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  6803. - mv "${ofile}T" "$ofile"
  6804. - chmod +x "$ofile"
  6805. - else
  6806. - rm -f "${ofile}T"
  6807. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  6808. - fi
  6809. -fi
  6810. -])# _LT_AC_TAGCONFIG
  6811. + amigaos*)
  6812. + case $host_cpu in
  6813. + powerpc)
  6814. + # see comment about AmigaOS4 .so support
  6815. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6816. + ;;
  6817. + m68k)
  6818. + # FIXME: we need at least 68020 code to build shared libraries, but
  6819. + # adding the `-m68020' flag to GCC prevents building anything better,
  6820. + # like `-m68040'.
  6821. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6822. + ;;
  6823. + esac
  6824. + ;;
  6825. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6826. + # PIC is the default for these OSes.
  6827. + ;;
  6828. -# AC_LIBTOOL_DLOPEN
  6829. -# -----------------
  6830. -# enable checks for dlopen support
  6831. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  6832. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  6833. -])# AC_LIBTOOL_DLOPEN
  6834. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  6835. + # This hack is so that the source file can tell whether it is being
  6836. + # built for inclusion in a dll (and should export symbols for example).
  6837. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6838. + # (--disable-auto-import) libraries
  6839. + m4_if([$1], [GCJ], [],
  6840. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6841. + ;;
  6842. + darwin* | rhapsody*)
  6843. + # PIC is the default on this platform
  6844. + # Common symbols not allowed in MH_DYLIB files
  6845. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6846. + ;;
  6847. -# AC_LIBTOOL_WIN32_DLL
  6848. -# --------------------
  6849. -# declare package support for building win32 DLLs
  6850. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  6851. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  6852. -])# AC_LIBTOOL_WIN32_DLL
  6853. + hpux*)
  6854. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6855. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6856. + # sets the default TLS model and affects inlining.
  6857. + case $host_cpu in
  6858. + hppa*64*)
  6859. + # +Z the default
  6860. + ;;
  6861. + *)
  6862. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6863. + ;;
  6864. + esac
  6865. + ;;
  6866. + interix[[3-9]]*)
  6867. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6868. + # Instead, we relocate shared libraries at runtime.
  6869. + ;;
  6870. -# AC_ENABLE_SHARED([DEFAULT])
  6871. -# ---------------------------
  6872. -# implement the --enable-shared flag
  6873. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6874. -AC_DEFUN([AC_ENABLE_SHARED],
  6875. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  6876. -AC_ARG_ENABLE([shared],
  6877. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  6878. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  6879. - [p=${PACKAGE-default}
  6880. - case $enableval in
  6881. - yes) enable_shared=yes ;;
  6882. - no) enable_shared=no ;;
  6883. - *)
  6884. + msdosdjgpp*)
  6885. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  6886. + # on systems that don't support them.
  6887. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6888. enable_shared=no
  6889. - # Look at the argument we got. We use all the common list separators.
  6890. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6891. - for pkg in $enableval; do
  6892. - IFS="$lt_save_ifs"
  6893. - if test "X$pkg" = "X$p"; then
  6894. - enable_shared=yes
  6895. - fi
  6896. - done
  6897. - IFS="$lt_save_ifs"
  6898. ;;
  6899. - esac],
  6900. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  6901. -])# AC_ENABLE_SHARED
  6902. + *nto* | *qnx*)
  6903. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6904. + # it will coredump.
  6905. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6906. + ;;
  6907. -# AC_DISABLE_SHARED
  6908. -# -----------------
  6909. -# set the default shared flag to --disable-shared
  6910. -AC_DEFUN([AC_DISABLE_SHARED],
  6911. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  6912. -AC_ENABLE_SHARED(no)
  6913. -])# AC_DISABLE_SHARED
  6914. -
  6915. + sysv4*MP*)
  6916. + if test -d /usr/nec; then
  6917. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6918. + fi
  6919. + ;;
  6920. -# AC_ENABLE_STATIC([DEFAULT])
  6921. -# ---------------------------
  6922. -# implement the --enable-static flag
  6923. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6924. -AC_DEFUN([AC_ENABLE_STATIC],
  6925. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  6926. -AC_ARG_ENABLE([static],
  6927. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  6928. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  6929. - [p=${PACKAGE-default}
  6930. - case $enableval in
  6931. - yes) enable_static=yes ;;
  6932. - no) enable_static=no ;;
  6933. *)
  6934. - enable_static=no
  6935. - # Look at the argument we got. We use all the common list separators.
  6936. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6937. - for pkg in $enableval; do
  6938. - IFS="$lt_save_ifs"
  6939. - if test "X$pkg" = "X$p"; then
  6940. - enable_static=yes
  6941. - fi
  6942. - done
  6943. - IFS="$lt_save_ifs"
  6944. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6945. + ;;
  6946. + esac
  6947. + else
  6948. + # PORTME Check for flag to pass linker flags through the system compiler.
  6949. + case $host_os in
  6950. + aix*)
  6951. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6952. + if test "$host_cpu" = ia64; then
  6953. + # AIX 5 now supports IA64 processor
  6954. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6955. + else
  6956. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6957. + fi
  6958. ;;
  6959. - esac],
  6960. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  6961. -])# AC_ENABLE_STATIC
  6962. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  6963. + # This hack is so that the source file can tell whether it is being
  6964. + # built for inclusion in a dll (and should export symbols for example).
  6965. + m4_if([$1], [GCJ], [],
  6966. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6967. + ;;
  6968. -# AC_DISABLE_STATIC
  6969. -# -----------------
  6970. -# set the default static flag to --disable-static
  6971. -AC_DEFUN([AC_DISABLE_STATIC],
  6972. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  6973. -AC_ENABLE_STATIC(no)
  6974. -])# AC_DISABLE_STATIC
  6975. + hpux9* | hpux10* | hpux11*)
  6976. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6977. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6978. + # not for PA HP-UX.
  6979. + case $host_cpu in
  6980. + hppa*64*|ia64*)
  6981. + # +Z the default
  6982. + ;;
  6983. + *)
  6984. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6985. + ;;
  6986. + esac
  6987. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6988. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6989. + ;;
  6990. + irix5* | irix6* | nonstopux*)
  6991. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6992. + # PIC (with -KPIC) is the default.
  6993. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6994. + ;;
  6995. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  6996. -# ---------------------------------
  6997. -# implement the --enable-fast-install flag
  6998. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  6999. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  7000. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  7001. -AC_ARG_ENABLE([fast-install],
  7002. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7003. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7004. - [p=${PACKAGE-default}
  7005. - case $enableval in
  7006. - yes) enable_fast_install=yes ;;
  7007. - no) enable_fast_install=no ;;
  7008. - *)
  7009. - enable_fast_install=no
  7010. - # Look at the argument we got. We use all the common list separators.
  7011. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7012. - for pkg in $enableval; do
  7013. - IFS="$lt_save_ifs"
  7014. - if test "X$pkg" = "X$p"; then
  7015. - enable_fast_install=yes
  7016. - fi
  7017. - done
  7018. - IFS="$lt_save_ifs"
  7019. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7020. + case $cc_basename in
  7021. + # old Intel for x86_64 which still supported -KPIC.
  7022. + ecc*)
  7023. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7024. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7025. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7026. + ;;
  7027. + # icc used to be incompatible with GCC.
  7028. + # ICC 10 doesn't accept -KPIC any more.
  7029. + icc* | ifort*)
  7030. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7031. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7032. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7033. + ;;
  7034. + # Lahey Fortran 8.1.
  7035. + lf95*)
  7036. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7037. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7038. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7039. + ;;
  7040. + pgcc* | pgf77* | pgf90* | pgf95*)
  7041. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7042. + # which looks to be a dead project)
  7043. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7044. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7045. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7046. + ;;
  7047. + ccc*)
  7048. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7049. + # All Alpha code is PIC.
  7050. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7051. + ;;
  7052. + xl*)
  7053. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7054. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7055. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7056. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7057. + ;;
  7058. + *)
  7059. + case `$CC -V 2>&1 | sed 5q` in
  7060. + *Sun\ C*)
  7061. + # Sun C 5.9
  7062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7063. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7064. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7065. + ;;
  7066. + *Sun\ F*)
  7067. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7068. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7069. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7070. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7071. + ;;
  7072. + esac
  7073. + ;;
  7074. + esac
  7075. ;;
  7076. - esac],
  7077. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  7078. -])# AC_ENABLE_FAST_INSTALL
  7079. + newsos6)
  7080. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7081. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7082. + ;;
  7083. -# AC_DISABLE_FAST_INSTALL
  7084. -# -----------------------
  7085. -# set the default to --disable-fast-install
  7086. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  7087. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7088. -AC_ENABLE_FAST_INSTALL(no)
  7089. -])# AC_DISABLE_FAST_INSTALL
  7090. + *nto* | *qnx*)
  7091. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7092. + # it will coredump.
  7093. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7094. + ;;
  7095. + osf3* | osf4* | osf5*)
  7096. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7097. + # All OSF/1 code is PIC.
  7098. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7099. + ;;
  7100. -# AC_LIBTOOL_PICMODE([MODE])
  7101. -# --------------------------
  7102. -# implement the --with-pic flag
  7103. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7104. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  7105. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7106. -pic_mode=ifelse($#,1,$1,default)
  7107. -])# AC_LIBTOOL_PICMODE
  7108. + rdos*)
  7109. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7110. + ;;
  7111. + solaris*)
  7112. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7113. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7114. + case $cc_basename in
  7115. + f77* | f90* | f95*)
  7116. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7117. + *)
  7118. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7119. + esac
  7120. + ;;
  7121. -# AC_PROG_EGREP
  7122. -# -------------
  7123. -# This is predefined starting with Autoconf 2.54, so this conditional
  7124. -# definition can be removed once we require Autoconf 2.54 or later.
  7125. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  7126. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  7127. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  7128. - then ac_cv_prog_egrep='grep -E'
  7129. - else ac_cv_prog_egrep='egrep'
  7130. - fi])
  7131. - EGREP=$ac_cv_prog_egrep
  7132. - AC_SUBST([EGREP])
  7133. -])])
  7134. + sunos4*)
  7135. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7136. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7137. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7138. + ;;
  7139. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7140. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7141. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7142. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7143. + ;;
  7144. -# AC_PATH_TOOL_PREFIX
  7145. -# -------------------
  7146. -# find a file program which can recognize shared library
  7147. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  7148. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  7149. -AC_MSG_CHECKING([for $1])
  7150. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  7151. -[case $MAGIC_CMD in
  7152. -[[\\/*] | ?:[\\/]*])
  7153. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7154. - ;;
  7155. -*)
  7156. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  7157. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7158. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  7159. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  7160. -dnl not every word. This closes a longstanding sh security hole.
  7161. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  7162. - for ac_dir in $ac_dummy; do
  7163. - IFS="$lt_save_ifs"
  7164. - test -z "$ac_dir" && ac_dir=.
  7165. - if test -f $ac_dir/$1; then
  7166. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  7167. - if test -n "$file_magic_test_file"; then
  7168. - case $deplibs_check_method in
  7169. - "file_magic "*)
  7170. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7171. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7172. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7173. - $EGREP "$file_magic_regex" > /dev/null; then
  7174. - :
  7175. - else
  7176. - cat <<EOF 1>&2
  7177. + sysv4*MP*)
  7178. + if test -d /usr/nec ;then
  7179. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7180. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7181. + fi
  7182. + ;;
  7183. -*** Warning: the command libtool uses to detect shared libraries,
  7184. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  7185. -*** The result is that libtool may fail to recognize shared libraries
  7186. -*** as such. This will affect the creation of libtool libraries that
  7187. -*** depend on shared libraries, but programs linked with such libtool
  7188. -*** libraries will work regardless of this problem. Nevertheless, you
  7189. -*** may want to report the problem to your system manager and/or to
  7190. -*** bug-libtool@gnu.org
  7191. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7192. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7193. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7194. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7195. + ;;
  7196. -EOF
  7197. - fi ;;
  7198. - esac
  7199. - fi
  7200. - break
  7201. - fi
  7202. - done
  7203. - IFS="$lt_save_ifs"
  7204. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  7205. - ;;
  7206. -esac])
  7207. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7208. -if test -n "$MAGIC_CMD"; then
  7209. - AC_MSG_RESULT($MAGIC_CMD)
  7210. -else
  7211. - AC_MSG_RESULT(no)
  7212. -fi
  7213. -])# AC_PATH_TOOL_PREFIX
  7214. + unicos*)
  7215. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7216. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7217. + ;;
  7218. + uts4*)
  7219. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7220. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7221. + ;;
  7222. -# AC_PATH_MAGIC
  7223. -# -------------
  7224. -# find a file program which can recognize a shared library
  7225. -AC_DEFUN([AC_PATH_MAGIC],
  7226. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  7227. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  7228. - if test -n "$ac_tool_prefix"; then
  7229. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  7230. - else
  7231. - MAGIC_CMD=:
  7232. + *)
  7233. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7234. + ;;
  7235. + esac
  7236. fi
  7237. +])
  7238. +case $host_os in
  7239. + # For platforms which do not support PIC, -DPIC is meaningless:
  7240. + *djgpp*)
  7241. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7242. + ;;
  7243. + *)
  7244. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7245. + ;;
  7246. +esac
  7247. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7248. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7249. + [How to pass a linker flag through the compiler])
  7250. +
  7251. +#
  7252. +# Check to make sure the PIC flag actually works.
  7253. +#
  7254. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7255. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7256. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7257. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7258. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7259. + "" | " "*) ;;
  7260. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7261. + esac],
  7262. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7263. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7264. fi
  7265. -])# AC_PATH_MAGIC
  7266. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7267. + [Additional compiler flags for building library objects])
  7268. +#
  7269. +# Check to make sure the static flag actually works.
  7270. +#
  7271. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7272. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7273. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7274. + $lt_tmp_static_flag,
  7275. + [],
  7276. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7277. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7278. + [Compiler flag to prevent dynamic linking])
  7279. +])# _LT_COMPILER_PIC
  7280. -# AC_PROG_LD
  7281. -# ----------
  7282. -# find the pathname to the GNU or non-GNU linker
  7283. -AC_DEFUN([AC_PROG_LD],
  7284. -[AC_ARG_WITH([gnu-ld],
  7285. - [AC_HELP_STRING([--with-gnu-ld],
  7286. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  7287. - [test "$withval" = no || with_gnu_ld=yes],
  7288. - [with_gnu_ld=no])
  7289. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  7290. -AC_REQUIRE([AC_PROG_CC])dnl
  7291. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7292. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7293. -ac_prog=ld
  7294. -if test "$GCC" = yes; then
  7295. - # Check if gcc -print-prog-name=ld gives a path.
  7296. - AC_MSG_CHECKING([for ld used by $CC])
  7297. - case $host in
  7298. - *-*-mingw*)
  7299. - # gcc leaves a trailing carriage return which upsets mingw
  7300. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7301. - *)
  7302. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7303. - esac
  7304. - case $ac_prog in
  7305. - # Accept absolute paths.
  7306. - [[\\/]]* | ?:[[\\/]]*)
  7307. - re_direlt='/[[^/]][[^/]]*/\.\./'
  7308. - # Canonicalize the pathname of ld
  7309. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  7310. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7311. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  7312. - done
  7313. - test -z "$LD" && LD="$ac_prog"
  7314. - ;;
  7315. - "")
  7316. - # If it fails, then pretend we aren't using GCC.
  7317. - ac_prog=ld
  7318. +
  7319. +# _LT_LINKER_SHLIBS([TAGNAME])
  7320. +# ----------------------------
  7321. +# See if the linker supports building shared libraries.
  7322. +m4_defun([_LT_LINKER_SHLIBS],
  7323. +[AC_REQUIRE([LT_PATH_LD])dnl
  7324. +AC_REQUIRE([LT_PATH_NM])dnl
  7325. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7326. +m4_require([_LT_DECL_EGREP])dnl
  7327. +m4_require([_LT_DECL_SED])dnl
  7328. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7329. +m4_require([_LT_TAG_COMPILER])dnl
  7330. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7331. +m4_if([$1], [CXX], [
  7332. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7333. + case $host_os in
  7334. + aix[[4-9]]*)
  7335. + # If we're using GNU nm, then we don't want the "-C" option.
  7336. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7337. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7338. + _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'
  7339. + else
  7340. + _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'
  7341. + fi
  7342. ;;
  7343. + pw32*)
  7344. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7345. + ;;
  7346. + cygwin* | mingw* | cegcc*)
  7347. + _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'
  7348. + ;;
  7349. + linux* | k*bsd*-gnu)
  7350. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7351. + ;;
  7352. *)
  7353. - # If it is relative, then search for the first ld in PATH.
  7354. - with_gnu_ld=unknown
  7355. - ;;
  7356. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7357. + ;;
  7358. esac
  7359. -elif test "$with_gnu_ld" = yes; then
  7360. - AC_MSG_CHECKING([for GNU ld])
  7361. -else
  7362. - AC_MSG_CHECKING([for non-GNU ld])
  7363. -fi
  7364. -AC_CACHE_VAL(lt_cv_path_LD,
  7365. -[if test -z "$LD"; then
  7366. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7367. - for ac_dir in $PATH; do
  7368. - IFS="$lt_save_ifs"
  7369. - test -z "$ac_dir" && ac_dir=.
  7370. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7371. - lt_cv_path_LD="$ac_dir/$ac_prog"
  7372. - # Check to see if the program is GNU ld. I'd rather use --version,
  7373. - # but apparently some variants of GNU ld only accept -v.
  7374. - # Break only if it was the GNU/non-GNU ld that we prefer.
  7375. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7376. - *GNU* | *'with BFD'*)
  7377. - test "$with_gnu_ld" != no && break
  7378. - ;;
  7379. - *)
  7380. - test "$with_gnu_ld" != yes && break
  7381. - ;;
  7382. - esac
  7383. - fi
  7384. - done
  7385. - IFS="$lt_save_ifs"
  7386. -else
  7387. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7388. -fi])
  7389. -LD="$lt_cv_path_LD"
  7390. -if test -n "$LD"; then
  7391. - AC_MSG_RESULT($LD)
  7392. -else
  7393. - AC_MSG_RESULT(no)
  7394. -fi
  7395. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  7396. -AC_PROG_LD_GNU
  7397. -])# AC_PROG_LD
  7398. -
  7399. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7400. +], [
  7401. + runpath_var=
  7402. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7403. + _LT_TAGVAR(always_export_symbols, $1)=no
  7404. + _LT_TAGVAR(archive_cmds, $1)=
  7405. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7406. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7407. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7408. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7409. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7410. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7411. + _LT_TAGVAR(hardcode_direct, $1)=no
  7412. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7413. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7414. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7415. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7416. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7417. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7418. + _LT_TAGVAR(inherit_rpath, $1)=no
  7419. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7420. + _LT_TAGVAR(module_cmds, $1)=
  7421. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7422. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7423. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7424. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7425. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7426. + # include_expsyms should be a list of space-separated symbols to be *always*
  7427. + # included in the symbol list
  7428. + _LT_TAGVAR(include_expsyms, $1)=
  7429. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7430. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7431. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7432. + # as well as any symbol that contains `d'.
  7433. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7434. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7435. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7436. + # the symbol is explicitly referenced. Since portable code cannot
  7437. + # rely on this symbol name, it's probably fine to never include it in
  7438. + # preloaded symbol tables.
  7439. + # Exclude shared library initialization/finalization symbols.
  7440. +dnl Note also adjust exclude_expsyms for C++ above.
  7441. + extract_expsyms_cmds=
  7442. -# AC_PROG_LD_GNU
  7443. -# --------------
  7444. -AC_DEFUN([AC_PROG_LD_GNU],
  7445. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  7446. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  7447. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  7448. -case `$LD -v 2>&1 </dev/null` in
  7449. -*GNU* | *'with BFD'*)
  7450. - lt_cv_prog_gnu_ld=yes
  7451. - ;;
  7452. -*)
  7453. - lt_cv_prog_gnu_ld=no
  7454. - ;;
  7455. -esac])
  7456. -with_gnu_ld=$lt_cv_prog_gnu_ld
  7457. -])# AC_PROG_LD_GNU
  7458. + case $host_os in
  7459. + cygwin* | mingw* | pw32* | cegcc*)
  7460. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7461. + # When not using gcc, we currently assume that we are using
  7462. + # Microsoft Visual C++.
  7463. + if test "$GCC" != yes; then
  7464. + with_gnu_ld=no
  7465. + fi
  7466. + ;;
  7467. + interix*)
  7468. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7469. + with_gnu_ld=yes
  7470. + ;;
  7471. + openbsd*)
  7472. + with_gnu_ld=no
  7473. + ;;
  7474. + linux* | k*bsd*-gnu)
  7475. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7476. + ;;
  7477. + esac
  7478. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7479. + if test "$with_gnu_ld" = yes; then
  7480. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7481. + wlarc='${wl}'
  7482. -# AC_PROG_LD_RELOAD_FLAG
  7483. -# ----------------------
  7484. -# find reload flag for linker
  7485. -# -- PORTME Some linkers may need a different reload flag.
  7486. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  7487. -[AC_CACHE_CHECK([for $LD option to reload object files],
  7488. - lt_cv_ld_reload_flag,
  7489. - [lt_cv_ld_reload_flag='-r'])
  7490. -reload_flag=$lt_cv_ld_reload_flag
  7491. -case $reload_flag in
  7492. -"" | " "*) ;;
  7493. -*) reload_flag=" $reload_flag" ;;
  7494. -esac
  7495. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7496. -case $host_os in
  7497. - darwin*)
  7498. - if test "$GCC" = yes; then
  7499. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7500. + # Set some defaults for GNU ld with shared library support. These
  7501. + # are reset later if shared libraries are not supported. Putting them
  7502. + # here allows them to be overridden if necessary.
  7503. + runpath_var=LD_RUN_PATH
  7504. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7505. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7506. + # ancient GNU ld didn't support --whole-archive et. al.
  7507. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7508. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7509. else
  7510. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7511. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7512. fi
  7513. - ;;
  7514. -esac
  7515. -])# AC_PROG_LD_RELOAD_FLAG
  7516. + supports_anon_versioning=no
  7517. + case `$LD -v 2>&1` in
  7518. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7519. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7520. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7521. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7522. + *\ 2.11.*) ;; # other 2.11 versions
  7523. + *) supports_anon_versioning=yes ;;
  7524. + esac
  7525. + # See if GNU ld supports shared libraries.
  7526. + case $host_os in
  7527. + aix[[3-9]]*)
  7528. + # On AIX/PPC, the GNU linker is very broken
  7529. + if test "$host_cpu" != ia64; then
  7530. + _LT_TAGVAR(ld_shlibs, $1)=no
  7531. + cat <<_LT_EOF 1>&2
  7532. -# AC_DEPLIBS_CHECK_METHOD
  7533. -# -----------------------
  7534. -# how to check for library dependencies
  7535. -# -- PORTME fill in with the dynamic library characteristics
  7536. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  7537. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  7538. -lt_cv_deplibs_check_method,
  7539. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  7540. -lt_cv_file_magic_test_file=
  7541. -lt_cv_deplibs_check_method='unknown'
  7542. -# Need to set the preceding variable on all platforms that support
  7543. -# interlibrary dependencies.
  7544. -# 'none' -- dependencies not supported.
  7545. -# `unknown' -- same as none, but documents that we really don't know.
  7546. -# 'pass_all' -- all dependencies passed with no checks.
  7547. -# 'test_compile' -- check by making test program.
  7548. -# 'file_magic [[regex]]' -- check by looking for files in library path
  7549. -# which responds to the $file_magic_cmd with a given extended regex.
  7550. -# If you have `file' or equivalent on your system and you're not sure
  7551. -# whether `pass_all' will *always* work, you probably want this one.
  7552. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7553. +*** to be unable to reliably create shared libraries on AIX.
  7554. +*** Therefore, libtool is disabling shared libraries support. If you
  7555. +*** really care for shared libraries, you may want to modify your PATH
  7556. +*** so that a non-GNU linker is found, and then restart.
  7557. -case $host_os in
  7558. -aix[[4-9]]*)
  7559. - lt_cv_deplibs_check_method=pass_all
  7560. - ;;
  7561. +_LT_EOF
  7562. + fi
  7563. + ;;
  7564. -beos*)
  7565. - lt_cv_deplibs_check_method=pass_all
  7566. - ;;
  7567. + amigaos*)
  7568. + case $host_cpu in
  7569. + powerpc)
  7570. + # see comment about AmigaOS4 .so support
  7571. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7572. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7573. + ;;
  7574. + m68k)
  7575. + _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)'
  7576. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7577. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7578. + ;;
  7579. + esac
  7580. + ;;
  7581. -bsdi[[45]]*)
  7582. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  7583. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  7584. - lt_cv_file_magic_test_file=/shlib/libc.so
  7585. - ;;
  7586. + beos*)
  7587. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7588. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7589. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7590. + # support --undefined. This deserves some investigation. FIXME
  7591. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7592. + else
  7593. + _LT_TAGVAR(ld_shlibs, $1)=no
  7594. + fi
  7595. + ;;
  7596. -cygwin*)
  7597. - # func_win32_libid is a shell function defined in ltmain.sh
  7598. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7599. - lt_cv_file_magic_cmd='func_win32_libid'
  7600. - ;;
  7601. + cygwin* | mingw* | pw32* | cegcc*)
  7602. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7603. + # as there is no search path for DLLs.
  7604. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7605. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7606. + _LT_TAGVAR(always_export_symbols, $1)=no
  7607. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7608. + _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'
  7609. -mingw* | pw32*)
  7610. - # Base MSYS/MinGW do not provide the 'file' command needed by
  7611. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7612. - # unless we find 'file', for example because we are cross-compiling.
  7613. - if ( file / ) >/dev/null 2>&1; then
  7614. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7615. - lt_cv_file_magic_cmd='func_win32_libid'
  7616. - else
  7617. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7618. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  7619. - fi
  7620. - ;;
  7621. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7622. + _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'
  7623. + # If the export-symbols file already is a .def file (1st line
  7624. + # is EXPORTS), use it as is; otherwise, prepend...
  7625. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7626. + cp $export_symbols $output_objdir/$soname.def;
  7627. + else
  7628. + echo EXPORTS > $output_objdir/$soname.def;
  7629. + cat $export_symbols >> $output_objdir/$soname.def;
  7630. + fi~
  7631. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7632. + else
  7633. + _LT_TAGVAR(ld_shlibs, $1)=no
  7634. + fi
  7635. + ;;
  7636. -darwin* | rhapsody*)
  7637. - lt_cv_deplibs_check_method=pass_all
  7638. - ;;
  7639. + interix[[3-9]]*)
  7640. + _LT_TAGVAR(hardcode_direct, $1)=no
  7641. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7642. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7643. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7644. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7645. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7646. + # default) and relocated if they conflict, which is a slow very memory
  7647. + # consuming and fragmenting process. To avoid this, we pick a random,
  7648. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7649. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7650. + _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'
  7651. + _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'
  7652. + ;;
  7653. -freebsd* | dragonfly*)
  7654. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7655. - case $host_cpu in
  7656. - i*86 )
  7657. - # Not sure whether the presence of OpenBSD here was a mistake.
  7658. - # Let's accept both of them until this is cleared up.
  7659. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  7660. - lt_cv_file_magic_cmd=/usr/bin/file
  7661. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7662. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7663. + tmp_diet=no
  7664. + if test "$host_os" = linux-dietlibc; then
  7665. + case $cc_basename in
  7666. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7667. + esac
  7668. + fi
  7669. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7670. + && test "$tmp_diet" = no
  7671. + then
  7672. + tmp_addflag=
  7673. + tmp_sharedflag='-shared'
  7674. + case $cc_basename,$host_cpu in
  7675. + pgcc*) # Portland Group C compiler
  7676. + _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'
  7677. + tmp_addflag=' $pic_flag'
  7678. + ;;
  7679. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7680. + _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'
  7681. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7682. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7683. + tmp_addflag=' -i_dynamic' ;;
  7684. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7685. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7686. + ifc* | ifort*) # Intel Fortran compiler
  7687. + tmp_addflag=' -nofor_main' ;;
  7688. + lf95*) # Lahey Fortran 8.1
  7689. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7690. + tmp_sharedflag='--shared' ;;
  7691. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7692. + tmp_sharedflag='-qmkshrobj'
  7693. + tmp_addflag= ;;
  7694. + esac
  7695. + case `$CC -V 2>&1 | sed 5q` in
  7696. + *Sun\ C*) # Sun C 5.9
  7697. + _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'
  7698. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7699. + tmp_sharedflag='-G' ;;
  7700. + *Sun\ F*) # Sun Fortran 8.3
  7701. + tmp_sharedflag='-G' ;;
  7702. + esac
  7703. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. +
  7705. + if test "x$supports_anon_versioning" = xyes; then
  7706. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7707. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7708. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7709. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7710. + fi
  7711. +
  7712. + case $cc_basename in
  7713. + xlf*)
  7714. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7715. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  7716. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7717. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7718. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7719. + if test "x$supports_anon_versioning" = xyes; then
  7720. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7721. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7722. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7723. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7724. + fi
  7725. + ;;
  7726. + esac
  7727. + else
  7728. + _LT_TAGVAR(ld_shlibs, $1)=no
  7729. + fi
  7730. ;;
  7731. - esac
  7732. - else
  7733. - lt_cv_deplibs_check_method=pass_all
  7734. - fi
  7735. - ;;
  7736. -gnu*)
  7737. - lt_cv_deplibs_check_method=pass_all
  7738. - ;;
  7739. + netbsd* | netbsdelf*-gnu)
  7740. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7741. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7742. + wlarc=
  7743. + else
  7744. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7745. + _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'
  7746. + fi
  7747. + ;;
  7748. -hpux10.20* | hpux11*)
  7749. - lt_cv_file_magic_cmd=/usr/bin/file
  7750. - case $host_cpu in
  7751. - ia64*)
  7752. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  7753. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7754. - ;;
  7755. - hppa*64*)
  7756. - [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]']
  7757. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7758. - ;;
  7759. - *)
  7760. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  7761. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7762. - ;;
  7763. - esac
  7764. - ;;
  7765. + solaris*)
  7766. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7767. + _LT_TAGVAR(ld_shlibs, $1)=no
  7768. + cat <<_LT_EOF 1>&2
  7769. -interix[[3-9]]*)
  7770. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7771. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  7772. - ;;
  7773. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7774. +*** create shared libraries on Solaris systems. Therefore, libtool
  7775. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7776. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7777. +*** your PATH or compiler configuration so that the native linker is
  7778. +*** used, and then restart.
  7779. -irix5* | irix6* | nonstopux*)
  7780. - case $LD in
  7781. - *-32|*"-32 ") libmagic=32-bit;;
  7782. - *-n32|*"-n32 ") libmagic=N32;;
  7783. - *-64|*"-64 ") libmagic=64-bit;;
  7784. - *) libmagic=never-match;;
  7785. - esac
  7786. - lt_cv_deplibs_check_method=pass_all
  7787. - ;;
  7788. +_LT_EOF
  7789. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7790. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7791. + _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'
  7792. + else
  7793. + _LT_TAGVAR(ld_shlibs, $1)=no
  7794. + fi
  7795. + ;;
  7796. -# This must be Linux ELF.
  7797. -linux* | k*bsd*-gnu)
  7798. - lt_cv_deplibs_check_method=pass_all
  7799. - ;;
  7800. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7801. + case `$LD -v 2>&1` in
  7802. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  7803. + _LT_TAGVAR(ld_shlibs, $1)=no
  7804. + cat <<_LT_EOF 1>&2
  7805. -netbsd*)
  7806. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7807. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  7808. - else
  7809. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  7810. - fi
  7811. - ;;
  7812. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7813. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  7814. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7815. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7816. +*** your PATH or compiler configuration so that the native linker is
  7817. +*** used, and then restart.
  7818. -newos6*)
  7819. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  7820. - lt_cv_file_magic_cmd=/usr/bin/file
  7821. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7822. - ;;
  7823. +_LT_EOF
  7824. + ;;
  7825. + *)
  7826. + # For security reasons, it is highly recommended that you always
  7827. + # use absolute paths for naming shared libraries, and exclude the
  7828. + # DT_RUNPATH tag from executables and libraries. But doing so
  7829. + # requires that you compile everything twice, which is a pain.
  7830. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7831. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7832. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7833. + _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'
  7834. + else
  7835. + _LT_TAGVAR(ld_shlibs, $1)=no
  7836. + fi
  7837. + ;;
  7838. + esac
  7839. + ;;
  7840. -nto-qnx*)
  7841. - lt_cv_deplibs_check_method=unknown
  7842. - ;;
  7843. + sunos4*)
  7844. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7845. + wlarc=
  7846. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7847. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7848. + ;;
  7849. -openbsd*)
  7850. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7851. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  7852. - else
  7853. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  7854. - fi
  7855. - ;;
  7856. + *)
  7857. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7859. + _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'
  7860. + else
  7861. + _LT_TAGVAR(ld_shlibs, $1)=no
  7862. + fi
  7863. + ;;
  7864. + esac
  7865. -osf3* | osf4* | osf5*)
  7866. - lt_cv_deplibs_check_method=pass_all
  7867. - ;;
  7868. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  7869. + runpath_var=
  7870. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7871. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7872. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7873. + fi
  7874. + else
  7875. + # PORTME fill in a description of your system's linker (not GNU ld)
  7876. + case $host_os in
  7877. + aix3*)
  7878. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7879. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7880. + _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'
  7881. + # Note: this linker hardcodes the directories in LIBPATH if there
  7882. + # are no directories specified by -L.
  7883. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7884. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7885. + # Neither direct hardcoding nor static linking is supported with a
  7886. + # broken collect2.
  7887. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7888. + fi
  7889. + ;;
  7890. -rdos*)
  7891. - lt_cv_deplibs_check_method=pass_all
  7892. - ;;
  7893. + aix[[4-9]]*)
  7894. + if test "$host_cpu" = ia64; then
  7895. + # On IA64, the linker does run time linking by default, so we don't
  7896. + # have to do anything special.
  7897. + aix_use_runtimelinking=no
  7898. + exp_sym_flag='-Bexport'
  7899. + no_entry_flag=""
  7900. + else
  7901. + # If we're using GNU nm, then we don't want the "-C" option.
  7902. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7903. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7904. + _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'
  7905. + else
  7906. + _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'
  7907. + fi
  7908. + aix_use_runtimelinking=no
  7909. -solaris*)
  7910. - lt_cv_deplibs_check_method=pass_all
  7911. - ;;
  7912. + # Test if we are trying to use run time linking or normal
  7913. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7914. + # need to do runtime linking.
  7915. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7916. + for ld_flag in $LDFLAGS; do
  7917. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7918. + aix_use_runtimelinking=yes
  7919. + break
  7920. + fi
  7921. + done
  7922. + ;;
  7923. + esac
  7924. -sysv4 | sysv4.3*)
  7925. - case $host_vendor in
  7926. - motorola)
  7927. - 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]]'
  7928. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7929. - ;;
  7930. - ncr)
  7931. - lt_cv_deplibs_check_method=pass_all
  7932. - ;;
  7933. - sequent)
  7934. - lt_cv_file_magic_cmd='/bin/file'
  7935. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  7936. - ;;
  7937. - sni)
  7938. - lt_cv_file_magic_cmd='/bin/file'
  7939. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  7940. - lt_cv_file_magic_test_file=/lib/libc.so
  7941. - ;;
  7942. - siemens)
  7943. - lt_cv_deplibs_check_method=pass_all
  7944. - ;;
  7945. - pc)
  7946. - lt_cv_deplibs_check_method=pass_all
  7947. - ;;
  7948. - esac
  7949. - ;;
  7950. + exp_sym_flag='-bexport'
  7951. + no_entry_flag='-bnoentry'
  7952. + fi
  7953. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7954. - lt_cv_deplibs_check_method=pass_all
  7955. - ;;
  7956. -esac
  7957. -])
  7958. -file_magic_cmd=$lt_cv_file_magic_cmd
  7959. -deplibs_check_method=$lt_cv_deplibs_check_method
  7960. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7961. -])# AC_DEPLIBS_CHECK_METHOD
  7962. + # When large executables or shared objects are built, AIX ld can
  7963. + # have problems creating the table of contents. If linking a library
  7964. + # or program results in "error TOC overflow" add -mminimal-toc to
  7965. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7966. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7967. + _LT_TAGVAR(archive_cmds, $1)=''
  7968. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7969. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7970. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7971. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7972. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7973. -# AC_PROG_NM
  7974. -# ----------
  7975. -# find the pathname to a BSD-compatible name lister
  7976. -AC_DEFUN([AC_PROG_NM],
  7977. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  7978. -[if test -n "$NM"; then
  7979. - # Let the user override the test.
  7980. - lt_cv_path_NM="$NM"
  7981. -else
  7982. - lt_nm_to_check="${ac_tool_prefix}nm"
  7983. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7984. - lt_nm_to_check="$lt_nm_to_check nm"
  7985. - fi
  7986. - for lt_tmp_nm in $lt_nm_to_check; do
  7987. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7988. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7989. - IFS="$lt_save_ifs"
  7990. - test -z "$ac_dir" && ac_dir=.
  7991. - tmp_nm="$ac_dir/$lt_tmp_nm"
  7992. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7993. - # Check to see if the nm accepts a BSD-compat flag.
  7994. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7995. - # nm: unknown option "B" ignored
  7996. - # Tru64's nm complains that /dev/null is an invalid object file
  7997. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7998. - */dev/null* | *'Invalid file or object type'*)
  7999. - lt_cv_path_NM="$tmp_nm -B"
  8000. - break
  8001. - ;;
  8002. - *)
  8003. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  8004. - */dev/null*)
  8005. - lt_cv_path_NM="$tmp_nm -p"
  8006. - break
  8007. - ;;
  8008. - *)
  8009. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8010. - continue # so that we can try to find one that supports BSD flags
  8011. - ;;
  8012. - esac
  8013. + if test "$GCC" = yes; then
  8014. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8015. + # We only want to do this on AIX 4.2 and lower, the check
  8016. + # below for broken collect2 doesn't work under 4.3+
  8017. + collect2name=`${CC} -print-prog-name=collect2`
  8018. + if test -f "$collect2name" &&
  8019. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8020. + then
  8021. + # We have reworked collect2
  8022. + :
  8023. + else
  8024. + # We have old collect2
  8025. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8026. + # It fails to find uninstalled libraries when the uninstalled
  8027. + # path is not listed in the libpath. Setting hardcode_minus_L
  8028. + # to unsupported forces relinking
  8029. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8030. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8031. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8032. + fi
  8033. ;;
  8034. esac
  8035. + shared_flag='-shared'
  8036. + if test "$aix_use_runtimelinking" = yes; then
  8037. + shared_flag="$shared_flag "'${wl}-G'
  8038. + fi
  8039. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8040. + else
  8041. + # not using gcc
  8042. + if test "$host_cpu" = ia64; then
  8043. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8044. + # chokes on -Wl,-G. The following line is correct:
  8045. + shared_flag='-G'
  8046. + else
  8047. + if test "$aix_use_runtimelinking" = yes; then
  8048. + shared_flag='${wl}-G'
  8049. + else
  8050. + shared_flag='${wl}-bM:SRE'
  8051. + fi
  8052. + fi
  8053. fi
  8054. - done
  8055. - IFS="$lt_save_ifs"
  8056. - done
  8057. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  8058. -fi])
  8059. -NM="$lt_cv_path_NM"
  8060. -])# AC_PROG_NM
  8061. -
  8062. -# AC_CHECK_LIBM
  8063. -# -------------
  8064. -# check for math library
  8065. -AC_DEFUN([AC_CHECK_LIBM],
  8066. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8067. -LIBM=
  8068. -case $host in
  8069. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  8070. - # These system don't have libm, or don't need it
  8071. - ;;
  8072. -*-ncr-sysv4.3*)
  8073. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  8074. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  8075. - ;;
  8076. -*)
  8077. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  8078. - ;;
  8079. -esac
  8080. -])# AC_CHECK_LIBM
  8081. -
  8082. -
  8083. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  8084. -# -----------------------------------
  8085. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  8086. -# LTDLINCL to the include flags for the libltdl header and adds
  8087. -# --enable-ltdl-convenience to the configure arguments. Note that
  8088. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  8089. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  8090. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  8091. -# (note the single quotes!). If your package is not flat and you're not
  8092. -# using automake, define top_builddir and top_srcdir appropriately in
  8093. -# the Makefiles.
  8094. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  8095. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8096. - case $enable_ltdl_convenience in
  8097. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  8098. - "") enable_ltdl_convenience=yes
  8099. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  8100. - esac
  8101. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  8102. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8103. - # For backwards non-gettext consistent compatibility...
  8104. - INCLTDL="$LTDLINCL"
  8105. -])# AC_LIBLTDL_CONVENIENCE
  8106. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8107. + # It seems that -bexpall does not export symbols beginning with
  8108. + # underscore (_), so it is better to generate a list of symbols to export.
  8109. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8110. + if test "$aix_use_runtimelinking" = yes; then
  8111. + # Warning - without using the other runtime loading flags (-brtl),
  8112. + # -berok will link without error, but may produce a broken library.
  8113. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8114. + # Determine the default libpath from the value encoded in an
  8115. + # empty executable.
  8116. + _LT_SYS_MODULE_PATH_AIX
  8117. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8118. + _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"
  8119. + else
  8120. + if test "$host_cpu" = ia64; then
  8121. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8122. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8123. + _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"
  8124. + else
  8125. + # Determine the default libpath from the value encoded in an
  8126. + # empty executable.
  8127. + _LT_SYS_MODULE_PATH_AIX
  8128. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8129. + # Warning - without using the other run time loading flags,
  8130. + # -berok will link without error, but may produce a broken library.
  8131. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8132. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8133. + # Exported symbols can be pulled into shared objects from archives
  8134. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8135. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8136. + # This is similar to how AIX traditionally builds its shared libraries.
  8137. + _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'
  8138. + fi
  8139. + fi
  8140. + ;;
  8141. + amigaos*)
  8142. + case $host_cpu in
  8143. + powerpc)
  8144. + # see comment about AmigaOS4 .so support
  8145. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8146. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8147. + ;;
  8148. + m68k)
  8149. + _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)'
  8150. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8151. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8152. + ;;
  8153. + esac
  8154. + ;;
  8155. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  8156. -# -----------------------------------
  8157. -# sets LIBLTDL to the link flags for the libltdl installable library and
  8158. -# LTDLINCL to the include flags for the libltdl header and adds
  8159. -# --enable-ltdl-install to the configure arguments. Note that
  8160. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  8161. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  8162. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  8163. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  8164. -# flat and you're not using automake, define top_builddir and top_srcdir
  8165. -# appropriately in the Makefiles.
  8166. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  8167. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  8168. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8169. - AC_CHECK_LIB(ltdl, lt_dlinit,
  8170. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  8171. - [if test x"$enable_ltdl_install" = xno; then
  8172. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  8173. - else
  8174. - enable_ltdl_install=yes
  8175. - fi
  8176. - ])
  8177. - if test x"$enable_ltdl_install" = x"yes"; then
  8178. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  8179. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  8180. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8181. - else
  8182. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  8183. - LIBLTDL="-lltdl"
  8184. - LTDLINCL=
  8185. - fi
  8186. - # For backwards non-gettext consistent compatibility...
  8187. - INCLTDL="$LTDLINCL"
  8188. -])# AC_LIBLTDL_INSTALLABLE
  8189. + bsdi[[45]]*)
  8190. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8191. + ;;
  8192. + cygwin* | mingw* | pw32* | cegcc*)
  8193. + # When not using gcc, we currently assume that we are using
  8194. + # Microsoft Visual C++.
  8195. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8196. + # no search path for DLLs.
  8197. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8198. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8199. + # Tell ltmain to make .lib files, not .a files.
  8200. + libext=lib
  8201. + # Tell ltmain to make .dll files, not .so files.
  8202. + shrext_cmds=".dll"
  8203. + # FIXME: Setting linknames here is a bad hack.
  8204. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8205. + # The linker will automatically build a .lib file if we build a DLL.
  8206. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8207. + # FIXME: Should let the user specify the lib program.
  8208. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8209. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8210. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8211. + ;;
  8212. -# AC_LIBTOOL_CXX
  8213. -# --------------
  8214. -# enable support for C++ libraries
  8215. -AC_DEFUN([AC_LIBTOOL_CXX],
  8216. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  8217. -])# AC_LIBTOOL_CXX
  8218. + darwin* | rhapsody*)
  8219. + _LT_DARWIN_LINKER_FEATURES($1)
  8220. + ;;
  8221. + dgux*)
  8222. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8223. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8224. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8225. + ;;
  8226. -# _LT_AC_LANG_CXX
  8227. -# ---------------
  8228. -AC_DEFUN([_LT_AC_LANG_CXX],
  8229. -[AC_REQUIRE([AC_PROG_CXX])
  8230. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  8231. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  8232. -])# _LT_AC_LANG_CXX
  8233. + freebsd1*)
  8234. + _LT_TAGVAR(ld_shlibs, $1)=no
  8235. + ;;
  8236. -# _LT_AC_PROG_CXXCPP
  8237. -# ------------------
  8238. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  8239. -[
  8240. -AC_REQUIRE([AC_PROG_CXX])
  8241. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8242. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8243. - (test "X$CXX" != "Xg++"))) ; then
  8244. - AC_PROG_CXXCPP
  8245. -fi
  8246. -])# _LT_AC_PROG_CXXCPP
  8247. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8248. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8249. + # does not break anything, and helps significantly (at the cost of a little
  8250. + # extra space).
  8251. + freebsd2.2*)
  8252. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8253. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8254. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8255. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8256. + ;;
  8257. -# AC_LIBTOOL_F77
  8258. -# --------------
  8259. -# enable support for Fortran 77 libraries
  8260. -AC_DEFUN([AC_LIBTOOL_F77],
  8261. -[AC_REQUIRE([_LT_AC_LANG_F77])
  8262. -])# AC_LIBTOOL_F77
  8263. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8264. + freebsd2*)
  8265. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8266. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8267. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8268. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8269. + ;;
  8270. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8271. + freebsd* | dragonfly*)
  8272. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8273. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8274. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8275. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8276. + ;;
  8277. -# _LT_AC_LANG_F77
  8278. -# ---------------
  8279. -AC_DEFUN([_LT_AC_LANG_F77],
  8280. -[AC_REQUIRE([AC_PROG_F77])
  8281. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  8282. -])# _LT_AC_LANG_F77
  8283. + hpux9*)
  8284. + if test "$GCC" = yes; then
  8285. + _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'
  8286. + else
  8287. + _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'
  8288. + fi
  8289. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8290. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8291. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8292. + # hardcode_minus_L: Not really in the search PATH,
  8293. + # but as the default location of the library.
  8294. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8295. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8296. + ;;
  8297. -# AC_LIBTOOL_GCJ
  8298. -# --------------
  8299. -# enable support for GCJ libraries
  8300. -AC_DEFUN([AC_LIBTOOL_GCJ],
  8301. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  8302. -])# AC_LIBTOOL_GCJ
  8303. + hpux10*)
  8304. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8305. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8306. + else
  8307. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8308. + fi
  8309. + if test "$with_gnu_ld" = no; then
  8310. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8311. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8312. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8313. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8314. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8315. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8316. + # hardcode_minus_L: Not really in the search PATH,
  8317. + # but as the default location of the library.
  8318. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8319. + fi
  8320. + ;;
  8321. + hpux11*)
  8322. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8323. + case $host_cpu in
  8324. + hppa*64*)
  8325. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8326. + ;;
  8327. + ia64*)
  8328. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8329. + ;;
  8330. + *)
  8331. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8332. + ;;
  8333. + esac
  8334. + else
  8335. + case $host_cpu in
  8336. + hppa*64*)
  8337. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8338. + ;;
  8339. + ia64*)
  8340. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8341. + ;;
  8342. + *)
  8343. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8344. + ;;
  8345. + esac
  8346. + fi
  8347. + if test "$with_gnu_ld" = no; then
  8348. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8349. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8350. -# _LT_AC_LANG_GCJ
  8351. -# ---------------
  8352. -AC_DEFUN([_LT_AC_LANG_GCJ],
  8353. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  8354. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  8355. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  8356. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  8357. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  8358. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  8359. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  8360. -])# _LT_AC_LANG_GCJ
  8361. + case $host_cpu in
  8362. + hppa*64*|ia64*)
  8363. + _LT_TAGVAR(hardcode_direct, $1)=no
  8364. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8365. + ;;
  8366. + *)
  8367. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8368. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8369. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8370. + # hardcode_minus_L: Not really in the search PATH,
  8371. + # but as the default location of the library.
  8372. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8373. + ;;
  8374. + esac
  8375. + fi
  8376. + ;;
  8377. -# AC_LIBTOOL_RC
  8378. -# -------------
  8379. -# enable support for Windows resource files
  8380. -AC_DEFUN([AC_LIBTOOL_RC],
  8381. -[AC_REQUIRE([LT_AC_PROG_RC])
  8382. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  8383. -])# AC_LIBTOOL_RC
  8384. + irix5* | irix6* | nonstopux*)
  8385. + if test "$GCC" = yes; then
  8386. + _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'
  8387. + # Try to use the -exported_symbol ld option, if it does not
  8388. + # work, assume that -exports_file does not work either and
  8389. + # implicitly export all symbols.
  8390. + save_LDFLAGS="$LDFLAGS"
  8391. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8392. + AC_LINK_IFELSE(int foo(void) {},
  8393. + _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'
  8394. + )
  8395. + LDFLAGS="$save_LDFLAGS"
  8396. + else
  8397. + _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'
  8398. + _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'
  8399. + fi
  8400. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8401. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8402. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8403. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8404. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8405. + ;;
  8406. + netbsd* | netbsdelf*-gnu)
  8407. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8408. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8409. + else
  8410. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8411. + fi
  8412. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8413. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8414. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8415. + ;;
  8416. -# AC_LIBTOOL_LANG_C_CONFIG
  8417. -# ------------------------
  8418. -# Ensure that the configuration vars for the C compiler are
  8419. -# suitably defined. Those variables are subsequently used by
  8420. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  8421. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  8422. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  8423. -[lt_save_CC="$CC"
  8424. -AC_LANG_PUSH(C)
  8425. + newsos6)
  8426. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8428. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8429. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8430. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8431. + ;;
  8432. -# Source file extension for C test sources.
  8433. -ac_ext=c
  8434. + *nto* | *qnx*)
  8435. + ;;
  8436. -# Object file extension for compiled C test sources.
  8437. -objext=o
  8438. -_LT_AC_TAGVAR(objext, $1)=$objext
  8439. + openbsd*)
  8440. + if test -f /usr/libexec/ld.so; then
  8441. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8442. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8443. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8444. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8445. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8446. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8447. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8448. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8449. + else
  8450. + case $host_os in
  8451. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8452. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8453. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8454. + ;;
  8455. + *)
  8456. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8457. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8458. + ;;
  8459. + esac
  8460. + fi
  8461. + else
  8462. + _LT_TAGVAR(ld_shlibs, $1)=no
  8463. + fi
  8464. + ;;
  8465. -# Code to be used in simple compile tests
  8466. -lt_simple_compile_test_code="int some_variable = 0;"
  8467. + os2*)
  8468. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8469. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8470. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8471. + _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'
  8472. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8473. + ;;
  8474. -# Code to be used in simple link tests
  8475. -lt_simple_link_test_code='int main(){return(0);}'
  8476. + osf3*)
  8477. + if test "$GCC" = yes; then
  8478. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8479. + _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'
  8480. + else
  8481. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8482. + _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'
  8483. + fi
  8484. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8485. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8486. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8487. + ;;
  8488. -_LT_AC_SYS_COMPILER
  8489. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8490. + if test "$GCC" = yes; then
  8491. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8492. + _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'
  8493. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8494. + else
  8495. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8496. + _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'
  8497. + _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~
  8498. + $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'
  8499. -# save warnings/boilerplate of simple test code
  8500. -_LT_COMPILER_BOILERPLATE
  8501. -_LT_LINKER_BOILERPLATE
  8502. + # Both c and cxx compiler support -rpath directly
  8503. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8504. + fi
  8505. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8506. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8507. + ;;
  8508. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  8509. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  8510. -AC_LIBTOOL_PROG_CC_C_O($1)
  8511. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  8512. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  8513. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  8514. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  8515. -AC_LIBTOOL_SYS_LIB_STRIP
  8516. -AC_LIBTOOL_DLOPEN_SELF
  8517. -
  8518. -# Report which library types will actually be built
  8519. -AC_MSG_CHECKING([if libtool supports shared libraries])
  8520. -AC_MSG_RESULT([$can_build_shared])
  8521. + solaris*)
  8522. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8523. + if test "$GCC" = yes; then
  8524. + wlarc='${wl}'
  8525. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8526. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8527. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8528. + else
  8529. + case `$CC -V 2>&1` in
  8530. + *"Compilers 5.0"*)
  8531. + wlarc=''
  8532. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8533. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8534. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8535. + ;;
  8536. + *)
  8537. + wlarc='${wl}'
  8538. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8540. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8541. + ;;
  8542. + esac
  8543. + fi
  8544. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8545. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8546. + case $host_os in
  8547. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8548. + *)
  8549. + # The compiler driver will combine and reorder linker options,
  8550. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8551. + # but is careful enough not to reorder.
  8552. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8553. + if test "$GCC" = yes; then
  8554. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8555. + else
  8556. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8557. + fi
  8558. + ;;
  8559. + esac
  8560. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8561. + ;;
  8562. -AC_MSG_CHECKING([whether to build shared libraries])
  8563. -test "$can_build_shared" = "no" && enable_shared=no
  8564. + sunos4*)
  8565. + if test "x$host_vendor" = xsequent; then
  8566. + # Use $CC to link under sequent, because it throws in some extra .o
  8567. + # files that make .init and .fini sections work.
  8568. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. + else
  8570. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8571. + fi
  8572. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8573. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8574. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8575. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8576. + ;;
  8577. -# On AIX, shared libraries and static libraries use the same namespace, and
  8578. -# are all built from PIC.
  8579. -case $host_os in
  8580. -aix3*)
  8581. - test "$enable_shared" = yes && enable_static=no
  8582. - if test -n "$RANLIB"; then
  8583. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8584. - postinstall_cmds='$RANLIB $lib'
  8585. - fi
  8586. - ;;
  8587. + sysv4)
  8588. + case $host_vendor in
  8589. + sni)
  8590. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8591. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8592. + ;;
  8593. + siemens)
  8594. + ## LD is ld it makes a PLAMLIB
  8595. + ## CC just makes a GrossModule.
  8596. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8597. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8598. + _LT_TAGVAR(hardcode_direct, $1)=no
  8599. + ;;
  8600. + motorola)
  8601. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8602. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8603. + ;;
  8604. + esac
  8605. + runpath_var='LD_RUN_PATH'
  8606. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8607. + ;;
  8608. -aix[[4-9]]*)
  8609. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8610. - test "$enable_shared" = yes && enable_static=no
  8611. - fi
  8612. - ;;
  8613. -esac
  8614. -AC_MSG_RESULT([$enable_shared])
  8615. + sysv4.3*)
  8616. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8617. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8618. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8619. + ;;
  8620. -AC_MSG_CHECKING([whether to build static libraries])
  8621. -# Make sure either enable_shared or enable_static is yes.
  8622. -test "$enable_shared" = yes || enable_static=yes
  8623. -AC_MSG_RESULT([$enable_static])
  8624. + sysv4*MP*)
  8625. + if test -d /usr/nec; then
  8626. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8627. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8628. + runpath_var=LD_RUN_PATH
  8629. + hardcode_runpath_var=yes
  8630. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8631. + fi
  8632. + ;;
  8633. -AC_LIBTOOL_CONFIG($1)
  8634. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8635. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8636. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8637. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8638. + runpath_var='LD_RUN_PATH'
  8639. -AC_LANG_POP
  8640. -CC="$lt_save_CC"
  8641. -])# AC_LIBTOOL_LANG_C_CONFIG
  8642. + if test "$GCC" = yes; then
  8643. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8644. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8645. + else
  8646. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8647. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8648. + fi
  8649. + ;;
  8650. + sysv5* | sco3.2v5* | sco5v6*)
  8651. + # Note: We can NOT use -z defs as we might desire, because we do not
  8652. + # link with -lc, and that would cause any symbols used from libc to
  8653. + # always be unresolved, which means just about no library would
  8654. + # ever link correctly. If we're not using GNU ld we use -z text
  8655. + # though, which does catch some bad symbols but isn't as heavy-handed
  8656. + # as -z defs.
  8657. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8658. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8659. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8660. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8661. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8662. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8663. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8664. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8665. + runpath_var='LD_RUN_PATH'
  8666. -# AC_LIBTOOL_LANG_CXX_CONFIG
  8667. -# --------------------------
  8668. -# Ensure that the configuration vars for the C compiler are
  8669. -# suitably defined. Those variables are subsequently used by
  8670. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  8671. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  8672. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  8673. -[AC_LANG_PUSH(C++)
  8674. -AC_REQUIRE([AC_PROG_CXX])
  8675. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  8676. -
  8677. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8678. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  8679. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  8680. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  8681. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  8682. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  8683. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8684. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8685. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  8686. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  8687. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8688. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  8689. -_LT_AC_TAGVAR(module_cmds, $1)=
  8690. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  8691. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  8692. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8693. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  8694. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  8695. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8696. + if test "$GCC" = yes; then
  8697. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8698. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8699. + else
  8700. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8701. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8702. + fi
  8703. + ;;
  8704. -# Dependencies to place before and after the object being linked:
  8705. -_LT_AC_TAGVAR(predep_objects, $1)=
  8706. -_LT_AC_TAGVAR(postdep_objects, $1)=
  8707. -_LT_AC_TAGVAR(predeps, $1)=
  8708. -_LT_AC_TAGVAR(postdeps, $1)=
  8709. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  8710. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  8711. + uts4*)
  8712. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8713. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8714. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8715. + ;;
  8716. -# Source file extension for C++ test sources.
  8717. -ac_ext=cpp
  8718. + *)
  8719. + _LT_TAGVAR(ld_shlibs, $1)=no
  8720. + ;;
  8721. + esac
  8722. -# Object file extension for compiled C++ test sources.
  8723. + if test x$host_vendor = xsni; then
  8724. + case $host in
  8725. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8726. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8727. + ;;
  8728. + esac
  8729. + fi
  8730. + fi
  8731. +])
  8732. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8733. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8734. +
  8735. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8736. +
  8737. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8738. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8739. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8740. + [The commands to extract the exported symbol list from a shared archive])
  8741. +
  8742. +#
  8743. +# Do we need to explicitly link libc?
  8744. +#
  8745. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8746. +x|xyes)
  8747. + # Assume -lc should be added
  8748. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8749. +
  8750. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8751. + case $_LT_TAGVAR(archive_cmds, $1) in
  8752. + *'~'*)
  8753. + # FIXME: we may have to deal with multi-command sequences.
  8754. + ;;
  8755. + '$CC '*)
  8756. + # Test whether the compiler implicitly links with -lc since on some
  8757. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8758. + # to ld, don't add -lc before -lgcc.
  8759. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8760. + $RM conftest*
  8761. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8762. +
  8763. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8764. + soname=conftest
  8765. + lib=conftest
  8766. + libobjs=conftest.$ac_objext
  8767. + deplibs=
  8768. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8769. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8770. + compiler_flags=-v
  8771. + linker_flags=-v
  8772. + verstring=
  8773. + output_objdir=.
  8774. + libname=conftest
  8775. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8776. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8777. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8778. + then
  8779. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8780. + else
  8781. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8782. + fi
  8783. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8784. + else
  8785. + cat conftest.err 1>&5
  8786. + fi
  8787. + $RM conftest*
  8788. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8789. + ;;
  8790. + esac
  8791. + fi
  8792. + ;;
  8793. +esac
  8794. +
  8795. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8796. + [Whether or not to add -lc for building shared libraries])
  8797. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8798. + [enable_shared_with_static_runtimes], [0],
  8799. + [Whether or not to disallow shared libs when runtime libs are static])
  8800. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8801. + [Compiler flag to allow reflexive dlopens])
  8802. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8803. + [Compiler flag to generate shared objects directly from archives])
  8804. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8805. + [Whether the compiler copes with passing no objects directly])
  8806. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8807. + [Create an old-style archive from a shared archive])
  8808. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8809. + [Create a temporary old-style archive to link instead of a shared archive])
  8810. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8811. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8812. +_LT_TAGDECL([], [module_cmds], [2],
  8813. + [Commands used to build a loadable module if different from building
  8814. + a shared archive.])
  8815. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8816. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8817. + [Whether we are building with GNU ld or not])
  8818. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8819. + [Flag that allows shared libraries with undefined symbols to be built])
  8820. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8821. + [Flag that enforces no undefined symbols])
  8822. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8823. + [Flag to hardcode $libdir into a binary during linking.
  8824. + This must work even if $libdir does not exist])
  8825. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8826. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8827. + during linking. This must work even if $libdir does not exist]])
  8828. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8829. + [Whether we need a single "-rpath" flag with a separated argument])
  8830. +_LT_TAGDECL([], [hardcode_direct], [0],
  8831. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8832. + DIR into the resulting binary])
  8833. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8834. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8835. + DIR into the resulting binary and the resulting library dependency is
  8836. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8837. + library is relocated])
  8838. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8839. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8840. + into the resulting binary])
  8841. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8842. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8843. + into the resulting binary])
  8844. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8845. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8846. + into the library and all subsequent libraries and executables linked
  8847. + against it])
  8848. +_LT_TAGDECL([], [inherit_rpath], [0],
  8849. + [Set to yes if linker adds runtime paths of dependent libraries
  8850. + to runtime path list])
  8851. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8852. + [Whether libtool must link a program against all its dependency libraries])
  8853. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8854. + [Fix the shell variable $srcfile for the compiler])
  8855. +_LT_TAGDECL([], [always_export_symbols], [0],
  8856. + [Set to "yes" if exported symbols are required])
  8857. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8858. + [The commands to list exported symbols])
  8859. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8860. + [Symbols that should not be listed in the preloaded symbols])
  8861. +_LT_TAGDECL([], [include_expsyms], [1],
  8862. + [Symbols that must always be exported])
  8863. +_LT_TAGDECL([], [prelink_cmds], [2],
  8864. + [Commands necessary for linking programs (against libraries) with templates])
  8865. +_LT_TAGDECL([], [file_list_spec], [1],
  8866. + [Specify filename containing input files])
  8867. +dnl FIXME: Not yet implemented
  8868. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8869. +dnl [Compiler flag to generate thread safe objects])
  8870. +])# _LT_LINKER_SHLIBS
  8871. +
  8872. +
  8873. +# _LT_LANG_C_CONFIG([TAG])
  8874. +# ------------------------
  8875. +# Ensure that the configuration variables for a C compiler are suitably
  8876. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8877. +# the compiler configuration to `libtool'.
  8878. +m4_defun([_LT_LANG_C_CONFIG],
  8879. +[m4_require([_LT_DECL_EGREP])dnl
  8880. +lt_save_CC="$CC"
  8881. +AC_LANG_PUSH(C)
  8882. +
  8883. +# Source file extension for C test sources.
  8884. +ac_ext=c
  8885. +
  8886. +# Object file extension for compiled C test sources.
  8887. objext=o
  8888. -_LT_AC_TAGVAR(objext, $1)=$objext
  8889. +_LT_TAGVAR(objext, $1)=$objext
  8890. # Code to be used in simple compile tests
  8891. lt_simple_compile_test_code="int some_variable = 0;"
  8892. # Code to be used in simple link tests
  8893. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  8894. +lt_simple_link_test_code='int main(){return(0);}'
  8895. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8896. -_LT_AC_SYS_COMPILER
  8897. +_LT_TAG_COMPILER
  8898. +# Save the default compiler, since it gets overwritten when the other
  8899. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8900. +compiler_DEFAULT=$CC
  8901. # save warnings/boilerplate of simple test code
  8902. _LT_COMPILER_BOILERPLATE
  8903. _LT_LINKER_BOILERPLATE
  8904. -# Allow CC to be a program name with arguments.
  8905. -lt_save_CC=$CC
  8906. -lt_save_LD=$LD
  8907. -lt_save_GCC=$GCC
  8908. -GCC=$GXX
  8909. -lt_save_with_gnu_ld=$with_gnu_ld
  8910. -lt_save_path_LD=$lt_cv_path_LD
  8911. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8912. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8913. -else
  8914. - $as_unset lt_cv_prog_gnu_ld
  8915. -fi
  8916. -if test -n "${lt_cv_path_LDCXX+set}"; then
  8917. - lt_cv_path_LD=$lt_cv_path_LDCXX
  8918. -else
  8919. - $as_unset lt_cv_path_LD
  8920. -fi
  8921. -test -z "${LDCXX+set}" || LD=$LDCXX
  8922. -CC=${CXX-"c++"}
  8923. -compiler=$CC
  8924. -_LT_AC_TAGVAR(compiler, $1)=$CC
  8925. -_LT_CC_BASENAME([$compiler])
  8926. -
  8927. -# We don't want -fno-exception wen compiling C++ code, so set the
  8928. -# no_builtin_flag separately
  8929. -if test "$GXX" = yes; then
  8930. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8931. -else
  8932. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8933. -fi
  8934. -
  8935. -if test "$GXX" = yes; then
  8936. - # Set up default GNU C++ configuration
  8937. -
  8938. - AC_PROG_LD
  8939. -
  8940. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8941. - # archiving commands below assume that GNU ld is being used.
  8942. - if test "$with_gnu_ld" = yes; then
  8943. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8944. - _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'
  8945. +if test -n "$compiler"; then
  8946. + _LT_COMPILER_NO_RTTI($1)
  8947. + _LT_COMPILER_PIC($1)
  8948. + _LT_COMPILER_C_O($1)
  8949. + _LT_COMPILER_FILE_LOCKS($1)
  8950. + _LT_LINKER_SHLIBS($1)
  8951. + _LT_SYS_DYNAMIC_LINKER($1)
  8952. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8953. + LT_SYS_DLOPEN_SELF
  8954. + _LT_CMD_STRIPLIB
  8955. +
  8956. + # Report which library types will actually be built
  8957. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8958. + AC_MSG_RESULT([$can_build_shared])
  8959. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  8960. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8961. + AC_MSG_CHECKING([whether to build shared libraries])
  8962. + test "$can_build_shared" = "no" && enable_shared=no
  8963. - # If archive_cmds runs LD, not CC, wlarc should be empty
  8964. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8965. - # investigate it a little bit more. (MM)
  8966. - wlarc='${wl}'
  8967. + # On AIX, shared libraries and static libraries use the same namespace, and
  8968. + # are all built from PIC.
  8969. + case $host_os in
  8970. + aix3*)
  8971. + test "$enable_shared" = yes && enable_static=no
  8972. + if test -n "$RANLIB"; then
  8973. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8974. + postinstall_cmds='$RANLIB $lib'
  8975. + fi
  8976. + ;;
  8977. - # ancient GNU ld didn't support --whole-archive et. al.
  8978. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8979. - grep 'no-whole-archive' > /dev/null; then
  8980. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8981. - else
  8982. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  8983. + aix[[4-9]]*)
  8984. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8985. + test "$enable_shared" = yes && enable_static=no
  8986. fi
  8987. - else
  8988. - with_gnu_ld=no
  8989. - wlarc=
  8990. + ;;
  8991. + esac
  8992. + AC_MSG_RESULT([$enable_shared])
  8993. - # A generic and very simple default shared library creation
  8994. - # command for GNU C++ for the case where it uses the native
  8995. - # linker, instead of GNU ld. If possible, this setting should
  8996. - # overridden to take advantage of the native linker features on
  8997. - # the platform it is being used on.
  8998. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8999. - fi
  9000. + AC_MSG_CHECKING([whether to build static libraries])
  9001. + # Make sure either enable_shared or enable_static is yes.
  9002. + test "$enable_shared" = yes || enable_static=yes
  9003. + AC_MSG_RESULT([$enable_static])
  9004. +
  9005. + _LT_CONFIG($1)
  9006. +fi
  9007. +AC_LANG_POP
  9008. +CC="$lt_save_CC"
  9009. +])# _LT_LANG_C_CONFIG
  9010. - # Commands to make compiler produce verbose output that lists
  9011. - # what "hidden" libraries, object files and flags are used when
  9012. - # linking a shared library.
  9013. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9014. +# _LT_PROG_CXX
  9015. +# ------------
  9016. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9017. +# compiler, we have our own version here.
  9018. +m4_defun([_LT_PROG_CXX],
  9019. +[
  9020. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9021. +AC_PROG_CXX
  9022. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9023. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9024. + (test "X$CXX" != "Xg++"))) ; then
  9025. + AC_PROG_CXXCPP
  9026. else
  9027. - GXX=no
  9028. - with_gnu_ld=no
  9029. - wlarc=
  9030. + _lt_caught_CXX_error=yes
  9031. fi
  9032. +popdef([AC_MSG_ERROR])
  9033. +])# _LT_PROG_CXX
  9034. -# PORTME: fill in a description of your system's C++ link characteristics
  9035. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9036. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9037. -case $host_os in
  9038. - aix3*)
  9039. - # FIXME: insert proper C++ library support
  9040. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9041. - ;;
  9042. - aix[[4-9]]*)
  9043. - if test "$host_cpu" = ia64; then
  9044. - # On IA64, the linker does run time linking by default, so we don't
  9045. - # have to do anything special.
  9046. - aix_use_runtimelinking=no
  9047. - exp_sym_flag='-Bexport'
  9048. - no_entry_flag=""
  9049. - else
  9050. - aix_use_runtimelinking=no
  9051. +dnl aclocal-1.4 backwards compatibility:
  9052. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9053. - # Test if we are trying to use run time linking or normal
  9054. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9055. - # need to do runtime linking.
  9056. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9057. - for ld_flag in $LDFLAGS; do
  9058. - case $ld_flag in
  9059. - *-brtl*)
  9060. - aix_use_runtimelinking=yes
  9061. - break
  9062. - ;;
  9063. - esac
  9064. - done
  9065. - ;;
  9066. - esac
  9067. - exp_sym_flag='-bexport'
  9068. - no_entry_flag='-bnoentry'
  9069. - fi
  9070. +# _LT_LANG_CXX_CONFIG([TAG])
  9071. +# --------------------------
  9072. +# Ensure that the configuration variables for a C++ compiler are suitably
  9073. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9074. +# the compiler configuration to `libtool'.
  9075. +m4_defun([_LT_LANG_CXX_CONFIG],
  9076. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9077. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9078. +m4_require([_LT_DECL_EGREP])dnl
  9079. +
  9080. +AC_LANG_PUSH(C++)
  9081. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9082. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9083. +_LT_TAGVAR(always_export_symbols, $1)=no
  9084. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9085. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9086. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9087. +_LT_TAGVAR(hardcode_direct, $1)=no
  9088. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9089. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9090. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9091. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9092. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9093. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9094. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9095. +_LT_TAGVAR(inherit_rpath, $1)=no
  9096. +_LT_TAGVAR(module_cmds, $1)=
  9097. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9098. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9099. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9100. +_LT_TAGVAR(no_undefined_flag, $1)=
  9101. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9102. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9103. - # When large executables or shared objects are built, AIX ld can
  9104. - # have problems creating the table of contents. If linking a library
  9105. - # or program results in "error TOC overflow" add -mminimal-toc to
  9106. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9107. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9108. -
  9109. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  9110. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9111. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  9112. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  9113. +# Source file extension for C++ test sources.
  9114. +ac_ext=cpp
  9115. +
  9116. +# Object file extension for compiled C++ test sources.
  9117. +objext=o
  9118. +_LT_TAGVAR(objext, $1)=$objext
  9119. +
  9120. +# No sense in running all these tests if we already determined that
  9121. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9122. +# are currently assumed to apply to all compilers on this platform,
  9123. +# and will be corrupted by setting them based on a non-working compiler.
  9124. +if test "$_lt_caught_CXX_error" != yes; then
  9125. + # Code to be used in simple compile tests
  9126. + lt_simple_compile_test_code="int some_variable = 0;"
  9127. +
  9128. + # Code to be used in simple link tests
  9129. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9130. +
  9131. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9132. + _LT_TAG_COMPILER
  9133. +
  9134. + # save warnings/boilerplate of simple test code
  9135. + _LT_COMPILER_BOILERPLATE
  9136. + _LT_LINKER_BOILERPLATE
  9137. +
  9138. + # Allow CC to be a program name with arguments.
  9139. + lt_save_CC=$CC
  9140. + lt_save_LD=$LD
  9141. + lt_save_GCC=$GCC
  9142. + GCC=$GXX
  9143. + lt_save_with_gnu_ld=$with_gnu_ld
  9144. + lt_save_path_LD=$lt_cv_path_LD
  9145. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9146. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9147. + else
  9148. + $as_unset lt_cv_prog_gnu_ld
  9149. + fi
  9150. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9151. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9152. + else
  9153. + $as_unset lt_cv_path_LD
  9154. + fi
  9155. + test -z "${LDCXX+set}" || LD=$LDCXX
  9156. + CC=${CXX-"c++"}
  9157. + compiler=$CC
  9158. + _LT_TAGVAR(compiler, $1)=$CC
  9159. + _LT_CC_BASENAME([$compiler])
  9160. + if test -n "$compiler"; then
  9161. + # We don't want -fno-exception when compiling C++ code, so set the
  9162. + # no_builtin_flag separately
  9163. if test "$GXX" = yes; then
  9164. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9165. - # We only want to do this on AIX 4.2 and lower, the check
  9166. - # below for broken collect2 doesn't work under 4.3+
  9167. - collect2name=`${CC} -print-prog-name=collect2`
  9168. - if test -f "$collect2name" && \
  9169. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  9170. - then
  9171. - # We have reworked collect2
  9172. - :
  9173. - else
  9174. - # We have old collect2
  9175. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  9176. - # It fails to find uninstalled libraries when the uninstalled
  9177. - # path is not listed in the libpath. Setting hardcode_minus_L
  9178. - # to unsupported forces relinking
  9179. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9180. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9181. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9182. - fi
  9183. - ;;
  9184. - esac
  9185. - shared_flag='-shared'
  9186. - if test "$aix_use_runtimelinking" = yes; then
  9187. - shared_flag="$shared_flag "'${wl}-G'
  9188. - fi
  9189. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9190. else
  9191. - # not using gcc
  9192. - if test "$host_cpu" = ia64; then
  9193. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9194. - # chokes on -Wl,-G. The following line is correct:
  9195. - shared_flag='-G'
  9196. - else
  9197. - if test "$aix_use_runtimelinking" = yes; then
  9198. - shared_flag='${wl}-G'
  9199. - else
  9200. - shared_flag='${wl}-bM:SRE'
  9201. - fi
  9202. - fi
  9203. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9204. fi
  9205. - # It seems that -bexpall does not export symbols beginning with
  9206. - # underscore (_), so it is better to generate a list of symbols to export.
  9207. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  9208. - if test "$aix_use_runtimelinking" = yes; then
  9209. - # Warning - without using the other runtime loading flags (-brtl),
  9210. - # -berok will link without error, but may produce a broken library.
  9211. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  9212. - # Determine the default libpath from the value encoded in an empty executable.
  9213. - _LT_AC_SYS_LIBPATH_AIX
  9214. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9215. + if test "$GXX" = yes; then
  9216. + # Set up default GNU C++ configuration
  9217. - _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"
  9218. - else
  9219. - if test "$host_cpu" = ia64; then
  9220. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9221. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9222. - _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"
  9223. + LT_PATH_LD
  9224. +
  9225. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9226. + # archiving commands below assume that GNU ld is being used.
  9227. + if test "$with_gnu_ld" = yes; then
  9228. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9229. + _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'
  9230. +
  9231. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9232. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9233. +
  9234. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9235. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9236. + # investigate it a little bit more. (MM)
  9237. + wlarc='${wl}'
  9238. +
  9239. + # ancient GNU ld didn't support --whole-archive et. al.
  9240. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9241. + $GREP 'no-whole-archive' > /dev/null; then
  9242. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9243. + else
  9244. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9245. + fi
  9246. else
  9247. - # Determine the default libpath from the value encoded in an empty executable.
  9248. - _LT_AC_SYS_LIBPATH_AIX
  9249. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9250. - # Warning - without using the other run time loading flags,
  9251. - # -berok will link without error, but may produce a broken library.
  9252. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9253. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9254. - # Exported symbols can be pulled into shared objects from archives
  9255. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9256. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  9257. - # This is similar to how AIX traditionally builds its shared libraries.
  9258. - _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'
  9259. + with_gnu_ld=no
  9260. + wlarc=
  9261. +
  9262. + # A generic and very simple default shared library creation
  9263. + # command for GNU C++ for the case where it uses the native
  9264. + # linker, instead of GNU ld. If possible, this setting should
  9265. + # overridden to take advantage of the native linker features on
  9266. + # the platform it is being used on.
  9267. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9268. fi
  9269. - fi
  9270. - ;;
  9271. - beos*)
  9272. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9273. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9274. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9275. - # support --undefined. This deserves some investigation. FIXME
  9276. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9277. + # Commands to make compiler produce verbose output that lists
  9278. + # what "hidden" libraries, object files and flags are used when
  9279. + # linking a shared library.
  9280. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9281. +
  9282. else
  9283. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9284. + GXX=no
  9285. + with_gnu_ld=no
  9286. + wlarc=
  9287. fi
  9288. - ;;
  9289. - chorus*)
  9290. - case $cc_basename in
  9291. - *)
  9292. - # FIXME: insert proper C++ library support
  9293. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9294. - ;;
  9295. - esac
  9296. - ;;
  9297. + # PORTME: fill in a description of your system's C++ link characteristics
  9298. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9299. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9300. + case $host_os in
  9301. + aix3*)
  9302. + # FIXME: insert proper C++ library support
  9303. + _LT_TAGVAR(ld_shlibs, $1)=no
  9304. + ;;
  9305. + aix[[4-9]]*)
  9306. + if test "$host_cpu" = ia64; then
  9307. + # On IA64, the linker does run time linking by default, so we don't
  9308. + # have to do anything special.
  9309. + aix_use_runtimelinking=no
  9310. + exp_sym_flag='-Bexport'
  9311. + no_entry_flag=""
  9312. + else
  9313. + aix_use_runtimelinking=no
  9314. - cygwin* | mingw* | pw32*)
  9315. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9316. - # as there is no search path for DLLs.
  9317. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9318. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9319. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9320. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9321. -
  9322. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9323. - _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'
  9324. - # If the export-symbols file already is a .def file (1st line
  9325. - # is EXPORTS), use it as is; otherwise, prepend...
  9326. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9327. - cp $export_symbols $output_objdir/$soname.def;
  9328. - else
  9329. - echo EXPORTS > $output_objdir/$soname.def;
  9330. - cat $export_symbols >> $output_objdir/$soname.def;
  9331. - fi~
  9332. - $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'
  9333. - else
  9334. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9335. - fi
  9336. - ;;
  9337. - darwin* | rhapsody*)
  9338. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  9339. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9340. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  9341. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9342. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  9343. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  9344. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  9345. - if test "$GXX" = yes ; then
  9346. - output_verbose_link_cmd='echo'
  9347. - _LT_AC_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}"
  9348. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9349. - _LT_AC_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}"
  9350. - _LT_AC_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}"
  9351. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9352. - _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${_lt_dsymutil}"
  9353. - _LT_AC_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}"
  9354. - fi
  9355. - else
  9356. - case $cc_basename in
  9357. - xlc*)
  9358. - output_verbose_link_cmd='echo'
  9359. - _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` $xlcverstring'
  9360. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9361. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9362. - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9363. - _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}'
  9364. - ;;
  9365. - *)
  9366. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9367. - ;;
  9368. - esac
  9369. - fi
  9370. + # Test if we are trying to use run time linking or normal
  9371. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9372. + # need to do runtime linking.
  9373. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9374. + for ld_flag in $LDFLAGS; do
  9375. + case $ld_flag in
  9376. + *-brtl*)
  9377. + aix_use_runtimelinking=yes
  9378. + break
  9379. + ;;
  9380. + esac
  9381. + done
  9382. + ;;
  9383. + esac
  9384. +
  9385. + exp_sym_flag='-bexport'
  9386. + no_entry_flag='-bnoentry'
  9387. + fi
  9388. +
  9389. + # When large executables or shared objects are built, AIX ld can
  9390. + # have problems creating the table of contents. If linking a library
  9391. + # or program results in "error TOC overflow" add -mminimal-toc to
  9392. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9393. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9394. +
  9395. + _LT_TAGVAR(archive_cmds, $1)=''
  9396. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9397. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9398. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9399. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9400. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9401. +
  9402. + if test "$GXX" = yes; then
  9403. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9404. + # We only want to do this on AIX 4.2 and lower, the check
  9405. + # below for broken collect2 doesn't work under 4.3+
  9406. + collect2name=`${CC} -print-prog-name=collect2`
  9407. + if test -f "$collect2name" &&
  9408. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9409. + then
  9410. + # We have reworked collect2
  9411. + :
  9412. + else
  9413. + # We have old collect2
  9414. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9415. + # It fails to find uninstalled libraries when the uninstalled
  9416. + # path is not listed in the libpath. Setting hardcode_minus_L
  9417. + # to unsupported forces relinking
  9418. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9419. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9420. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9421. + fi
  9422. + esac
  9423. + shared_flag='-shared'
  9424. + if test "$aix_use_runtimelinking" = yes; then
  9425. + shared_flag="$shared_flag "'${wl}-G'
  9426. + fi
  9427. + else
  9428. + # not using gcc
  9429. + if test "$host_cpu" = ia64; then
  9430. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9431. + # chokes on -Wl,-G. The following line is correct:
  9432. + shared_flag='-G'
  9433. + else
  9434. + if test "$aix_use_runtimelinking" = yes; then
  9435. + shared_flag='${wl}-G'
  9436. + else
  9437. + shared_flag='${wl}-bM:SRE'
  9438. + fi
  9439. + fi
  9440. + fi
  9441. +
  9442. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9443. + # It seems that -bexpall does not export symbols beginning with
  9444. + # underscore (_), so it is better to generate a list of symbols to
  9445. + # export.
  9446. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9447. + if test "$aix_use_runtimelinking" = yes; then
  9448. + # Warning - without using the other runtime loading flags (-brtl),
  9449. + # -berok will link without error, but may produce a broken library.
  9450. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9451. + # Determine the default libpath from the value encoded in an empty
  9452. + # executable.
  9453. + _LT_SYS_MODULE_PATH_AIX
  9454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9455. +
  9456. + _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"
  9457. + else
  9458. + if test "$host_cpu" = ia64; then
  9459. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9460. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9461. + _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"
  9462. + else
  9463. + # Determine the default libpath from the value encoded in an
  9464. + # empty executable.
  9465. + _LT_SYS_MODULE_PATH_AIX
  9466. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9467. + # Warning - without using the other run time loading flags,
  9468. + # -berok will link without error, but may produce a broken library.
  9469. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9470. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9471. + # Exported symbols can be pulled into shared objects from archives
  9472. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9473. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9474. + # This is similar to how AIX traditionally builds its shared
  9475. + # libraries.
  9476. + _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'
  9477. + fi
  9478. + fi
  9479. ;;
  9480. - dgux*)
  9481. - case $cc_basename in
  9482. - ec++*)
  9483. - # FIXME: insert proper C++ library support
  9484. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9485. - ;;
  9486. - ghcx*)
  9487. - # Green Hills C++ Compiler
  9488. - # FIXME: insert proper C++ library support
  9489. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9490. - ;;
  9491. - *)
  9492. - # FIXME: insert proper C++ library support
  9493. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9494. + beos*)
  9495. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9496. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9497. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9498. + # support --undefined. This deserves some investigation. FIXME
  9499. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9500. + else
  9501. + _LT_TAGVAR(ld_shlibs, $1)=no
  9502. + fi
  9503. ;;
  9504. - esac
  9505. - ;;
  9506. - freebsd[[12]]*)
  9507. - # C++ shared libraries reported to be fairly broken before switch to ELF
  9508. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9509. - ;;
  9510. - freebsd-elf*)
  9511. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  9512. - ;;
  9513. - freebsd* | dragonfly*)
  9514. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9515. - # conventions
  9516. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9517. - ;;
  9518. - gnu*)
  9519. - ;;
  9520. - hpux9*)
  9521. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9522. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  9523. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9524. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9525. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9526. - # but as the default
  9527. - # location of the library.
  9528. -
  9529. - case $cc_basename in
  9530. - CC*)
  9531. - # FIXME: insert proper C++ library support
  9532. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9533. - ;;
  9534. - aCC*)
  9535. - _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'
  9536. - # Commands to make compiler produce verbose output that lists
  9537. - # what "hidden" libraries, object files and flags are used when
  9538. - # linking a shared library.
  9539. - #
  9540. - # There doesn't appear to be a way to prevent this compiler from
  9541. - # explicitly linking system object files so we need to strip them
  9542. - # from the output so that they don't get included in the library
  9543. - # dependencies.
  9544. - 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'
  9545. - ;;
  9546. - *)
  9547. - if test "$GXX" = yes; then
  9548. - _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'
  9549. - else
  9550. - # FIXME: insert proper C++ library support
  9551. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9552. - fi
  9553. - ;;
  9554. - esac
  9555. - ;;
  9556. - hpux10*|hpux11*)
  9557. - if test $with_gnu_ld = no; then
  9558. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9559. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  9560. - case $host_cpu in
  9561. - hppa*64*|ia64*) ;;
  9562. - *)
  9563. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9564. + chorus*)
  9565. + case $cc_basename in
  9566. + *)
  9567. + # FIXME: insert proper C++ library support
  9568. + _LT_TAGVAR(ld_shlibs, $1)=no
  9569. + ;;
  9570. + esac
  9571. ;;
  9572. - esac
  9573. - fi
  9574. - case $host_cpu in
  9575. - hppa*64*|ia64*)
  9576. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9577. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9578. - ;;
  9579. - *)
  9580. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9581. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9582. - # but as the default
  9583. - # location of the library.
  9584. - ;;
  9585. - esac
  9586. - case $cc_basename in
  9587. - CC*)
  9588. - # FIXME: insert proper C++ library support
  9589. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9590. + cygwin* | mingw* | pw32* | cegcc*)
  9591. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9592. + # as there is no search path for DLLs.
  9593. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9594. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9595. + _LT_TAGVAR(always_export_symbols, $1)=no
  9596. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9597. +
  9598. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9599. + _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'
  9600. + # If the export-symbols file already is a .def file (1st line
  9601. + # is EXPORTS), use it as is; otherwise, prepend...
  9602. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9603. + cp $export_symbols $output_objdir/$soname.def;
  9604. + else
  9605. + echo EXPORTS > $output_objdir/$soname.def;
  9606. + cat $export_symbols >> $output_objdir/$soname.def;
  9607. + fi~
  9608. + $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'
  9609. + else
  9610. + _LT_TAGVAR(ld_shlibs, $1)=no
  9611. + fi
  9612. + ;;
  9613. + darwin* | rhapsody*)
  9614. + _LT_DARWIN_LINKER_FEATURES($1)
  9615. ;;
  9616. - aCC*)
  9617. - case $host_cpu in
  9618. - hppa*64*)
  9619. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9620. - ;;
  9621. - ia64*)
  9622. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9623. - ;;
  9624. - *)
  9625. - _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'
  9626. - ;;
  9627. - esac
  9628. - # Commands to make compiler produce verbose output that lists
  9629. - # what "hidden" libraries, object files and flags are used when
  9630. - # linking a shared library.
  9631. - #
  9632. - # There doesn't appear to be a way to prevent this compiler from
  9633. - # explicitly linking system object files so we need to strip them
  9634. - # from the output so that they don't get included in the library
  9635. - # dependencies.
  9636. - 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'
  9637. - ;;
  9638. - *)
  9639. - if test "$GXX" = yes; then
  9640. - if test $with_gnu_ld = no; then
  9641. +
  9642. + dgux*)
  9643. + case $cc_basename in
  9644. + ec++*)
  9645. + # FIXME: insert proper C++ library support
  9646. + _LT_TAGVAR(ld_shlibs, $1)=no
  9647. + ;;
  9648. + ghcx*)
  9649. + # Green Hills C++ Compiler
  9650. + # FIXME: insert proper C++ library support
  9651. + _LT_TAGVAR(ld_shlibs, $1)=no
  9652. + ;;
  9653. + *)
  9654. + # FIXME: insert proper C++ library support
  9655. + _LT_TAGVAR(ld_shlibs, $1)=no
  9656. + ;;
  9657. + esac
  9658. + ;;
  9659. +
  9660. + freebsd[[12]]*)
  9661. + # C++ shared libraries reported to be fairly broken before
  9662. + # switch to ELF
  9663. + _LT_TAGVAR(ld_shlibs, $1)=no
  9664. + ;;
  9665. +
  9666. + freebsd-elf*)
  9667. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9668. + ;;
  9669. +
  9670. + freebsd* | dragonfly*)
  9671. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9672. + # conventions
  9673. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9674. + ;;
  9675. +
  9676. + gnu*)
  9677. + ;;
  9678. +
  9679. + hpux9*)
  9680. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9681. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9682. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9683. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9684. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9685. + # but as the default
  9686. + # location of the library.
  9687. +
  9688. + case $cc_basename in
  9689. + CC*)
  9690. + # FIXME: insert proper C++ library support
  9691. + _LT_TAGVAR(ld_shlibs, $1)=no
  9692. + ;;
  9693. + aCC*)
  9694. + _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'
  9695. + # Commands to make compiler produce verbose output that lists
  9696. + # what "hidden" libraries, object files and flags are used when
  9697. + # linking a shared library.
  9698. + #
  9699. + # There doesn't appear to be a way to prevent this compiler from
  9700. + # explicitly linking system object files so we need to strip them
  9701. + # from the output so that they don't get included in the library
  9702. + # dependencies.
  9703. + 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'
  9704. + ;;
  9705. + *)
  9706. + if test "$GXX" = yes; then
  9707. + _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'
  9708. + else
  9709. + # FIXME: insert proper C++ library support
  9710. + _LT_TAGVAR(ld_shlibs, $1)=no
  9711. + fi
  9712. + ;;
  9713. + esac
  9714. + ;;
  9715. +
  9716. + hpux10*|hpux11*)
  9717. + if test $with_gnu_ld = no; then
  9718. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9719. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9720. +
  9721. + case $host_cpu in
  9722. + hppa*64*|ia64*)
  9723. + ;;
  9724. + *)
  9725. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9726. + ;;
  9727. + esac
  9728. + fi
  9729. + case $host_cpu in
  9730. + hppa*64*|ia64*)
  9731. + _LT_TAGVAR(hardcode_direct, $1)=no
  9732. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9733. + ;;
  9734. + *)
  9735. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9736. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9737. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9738. + # but as the default
  9739. + # location of the library.
  9740. + ;;
  9741. + esac
  9742. +
  9743. + case $cc_basename in
  9744. + CC*)
  9745. + # FIXME: insert proper C++ library support
  9746. + _LT_TAGVAR(ld_shlibs, $1)=no
  9747. + ;;
  9748. + aCC*)
  9749. case $host_cpu in
  9750. - hppa*64*)
  9751. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9752. - ;;
  9753. - ia64*)
  9754. - _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'
  9755. + hppa*64*)
  9756. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9757. + ;;
  9758. + ia64*)
  9759. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9760. + ;;
  9761. + *)
  9762. + _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'
  9763. + ;;
  9764. + esac
  9765. + # Commands to make compiler produce verbose output that lists
  9766. + # what "hidden" libraries, object files and flags are used when
  9767. + # linking a shared library.
  9768. + #
  9769. + # There doesn't appear to be a way to prevent this compiler from
  9770. + # explicitly linking system object files so we need to strip them
  9771. + # from the output so that they don't get included in the library
  9772. + # dependencies.
  9773. + 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'
  9774. + ;;
  9775. + *)
  9776. + if test "$GXX" = yes; then
  9777. + if test $with_gnu_ld = no; then
  9778. + case $host_cpu in
  9779. + hppa*64*)
  9780. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9781. + ;;
  9782. + ia64*)
  9783. + _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'
  9784. + ;;
  9785. + *)
  9786. + _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'
  9787. + ;;
  9788. + esac
  9789. + fi
  9790. + else
  9791. + # FIXME: insert proper C++ library support
  9792. + _LT_TAGVAR(ld_shlibs, $1)=no
  9793. + fi
  9794. + ;;
  9795. + esac
  9796. + ;;
  9797. +
  9798. + interix[[3-9]]*)
  9799. + _LT_TAGVAR(hardcode_direct, $1)=no
  9800. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9801. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9802. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9803. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9804. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9805. + # default) and relocated if they conflict, which is a slow very memory
  9806. + # consuming and fragmenting process. To avoid this, we pick a random,
  9807. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9808. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9809. + _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'
  9810. + _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'
  9811. + ;;
  9812. + irix5* | irix6*)
  9813. + case $cc_basename in
  9814. + CC*)
  9815. + # SGI C++
  9816. + _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'
  9817. +
  9818. + # Archives containing C++ object files must be created using
  9819. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9820. + # necessary to make sure instantiated templates are included
  9821. + # in the archive.
  9822. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9823. + ;;
  9824. + *)
  9825. + if test "$GXX" = yes; then
  9826. + if test "$with_gnu_ld" = no; then
  9827. + _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'
  9828. + else
  9829. + _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'
  9830. + fi
  9831. + fi
  9832. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9833. + ;;
  9834. + esac
  9835. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9836. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9837. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9838. + ;;
  9839. +
  9840. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9841. + case $cc_basename in
  9842. + KCC*)
  9843. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9844. +
  9845. + # KCC will only create a shared library if the output file
  9846. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9847. + # to its proper name (with version) after linking.
  9848. + _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'
  9849. + _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'
  9850. + # Commands to make compiler produce verbose output that lists
  9851. + # what "hidden" libraries, object files and flags are used when
  9852. + # linking a shared library.
  9853. + #
  9854. + # There doesn't appear to be a way to prevent this compiler from
  9855. + # explicitly linking system object files so we need to strip them
  9856. + # from the output so that they don't get included in the library
  9857. + # dependencies.
  9858. + 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'
  9859. +
  9860. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9861. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9862. +
  9863. + # Archives containing C++ object files must be created using
  9864. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9865. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9866. + ;;
  9867. + icpc* | ecpc* )
  9868. + # Intel C++
  9869. + with_gnu_ld=yes
  9870. + # version 8.0 and above of icpc choke on multiply defined symbols
  9871. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9872. + # earlier do not add the objects themselves.
  9873. + case `$CC -V 2>&1` in
  9874. + *"Version 7."*)
  9875. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9876. + _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'
  9877. + ;;
  9878. + *) # Version 8.0 or newer
  9879. + tmp_idyn=
  9880. + case $host_cpu in
  9881. + ia64*) tmp_idyn=' -i_dynamic';;
  9882. + esac
  9883. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9884. + _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'
  9885. + ;;
  9886. + esac
  9887. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9888. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9889. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9890. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9891. + ;;
  9892. + pgCC* | pgcpp*)
  9893. + # Portland Group C++ compiler
  9894. + case `$CC -V` in
  9895. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9896. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9897. + rm -rf $tpldir~
  9898. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9899. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9900. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9901. + rm -rf $tpldir~
  9902. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9903. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9904. + $RANLIB $oldlib'
  9905. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9906. + rm -rf $tpldir~
  9907. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9908. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9909. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9910. + rm -rf $tpldir~
  9911. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9912. + $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'
  9913. ;;
  9914. - *)
  9915. - _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'
  9916. + *) # Version 6 will use weak symbols
  9917. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9918. + _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'
  9919. ;;
  9920. esac
  9921. - fi
  9922. - else
  9923. - # FIXME: insert proper C++ library support
  9924. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9925. - fi
  9926. - ;;
  9927. - esac
  9928. - ;;
  9929. - interix[[3-9]]*)
  9930. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9931. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9932. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9933. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9934. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9935. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9936. - # default) and relocated if they conflict, which is a slow very memory
  9937. - # consuming and fragmenting process. To avoid this, we pick a random,
  9938. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9939. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9940. - _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'
  9941. - _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'
  9942. - ;;
  9943. - irix5* | irix6*)
  9944. - case $cc_basename in
  9945. - CC*)
  9946. - # SGI C++
  9947. - _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'
  9948. -
  9949. - # Archives containing C++ object files must be created using
  9950. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9951. - # necessary to make sure instantiated templates are included
  9952. - # in the archive.
  9953. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9954. - ;;
  9955. - *)
  9956. - if test "$GXX" = yes; then
  9957. - if test "$with_gnu_ld" = no; then
  9958. - _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'
  9959. - else
  9960. - _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'
  9961. - fi
  9962. - fi
  9963. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  9964. - ;;
  9965. - esac
  9966. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9967. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  9968. - ;;
  9969. - linux* | k*bsd*-gnu)
  9970. - case $cc_basename in
  9971. - KCC*)
  9972. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  9973. -
  9974. - # KCC will only create a shared library if the output file
  9975. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9976. - # to its proper name (with version) after linking.
  9977. - _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'
  9978. - _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'
  9979. - # Commands to make compiler produce verbose output that lists
  9980. - # what "hidden" libraries, object files and flags are used when
  9981. - # linking a shared library.
  9982. - #
  9983. - # There doesn't appear to be a way to prevent this compiler from
  9984. - # explicitly linking system object files so we need to strip them
  9985. - # from the output so that they don't get included in the library
  9986. - # dependencies.
  9987. - 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'
  9988. -
  9989. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  9990. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9991. -
  9992. - # Archives containing C++ object files must be created using
  9993. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9994. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9995. - ;;
  9996. - icpc*)
  9997. - # Intel C++
  9998. - with_gnu_ld=yes
  9999. - # version 8.0 and above of icpc choke on multiply defined symbols
  10000. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  10001. - # earlier do not add the objects themselves.
  10002. - case `$CC -V 2>&1` in
  10003. - *"Version 7."*)
  10004. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10005. - _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'
  10006. - ;;
  10007. - *) # Version 8.0 or newer
  10008. - tmp_idyn=
  10009. - case $host_cpu in
  10010. - ia64*) tmp_idyn=' -i_dynamic';;
  10011. - esac
  10012. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10013. - _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'
  10014. - ;;
  10015. - esac
  10016. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10017. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10018. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10019. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10020. - ;;
  10021. - pgCC* | pgcpp*)
  10022. - # Portland Group C++ compiler
  10023. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10024. - _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'
  10025. -
  10026. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10027. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10028. - _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'
  10029. - ;;
  10030. - cxx*)
  10031. - # Compaq C++
  10032. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10033. - _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'
  10034. - runpath_var=LD_RUN_PATH
  10035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10036. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10037. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10038. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10039. + _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'
  10040. + ;;
  10041. + cxx*)
  10042. + # Compaq C++
  10043. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10044. + _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'
  10045. - # Commands to make compiler produce verbose output that lists
  10046. - # what "hidden" libraries, object files and flags are used when
  10047. - # linking a shared library.
  10048. - #
  10049. - # There doesn't appear to be a way to prevent this compiler from
  10050. - # explicitly linking system object files so we need to strip them
  10051. - # from the output so that they don't get included in the library
  10052. - # dependencies.
  10053. - 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'
  10054. - ;;
  10055. - *)
  10056. - case `$CC -V 2>&1 | sed 5q` in
  10057. - *Sun\ C*)
  10058. - # Sun C++ 5.9
  10059. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10060. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10061. - _LT_AC_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'
  10062. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10063. - _LT_AC_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'
  10064. -
  10065. - # Not sure whether something based on
  10066. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10067. - # would be better.
  10068. - output_verbose_link_cmd='echo'
  10069. -
  10070. - # Archives containing C++ object files must be created using
  10071. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10072. - # necessary to make sure instantiated templates are included
  10073. - # in the archive.
  10074. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10075. - ;;
  10076. + runpath_var=LD_RUN_PATH
  10077. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10078. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10079. +
  10080. + # Commands to make compiler produce verbose output that lists
  10081. + # what "hidden" libraries, object files and flags are used when
  10082. + # linking a shared library.
  10083. + #
  10084. + # There doesn't appear to be a way to prevent this compiler from
  10085. + # explicitly linking system object files so we need to strip them
  10086. + # from the output so that they don't get included in the library
  10087. + # dependencies.
  10088. + 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'
  10089. + ;;
  10090. + xl*)
  10091. + # IBM XL 8.0 on PPC, with GNU ld
  10092. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10093. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10094. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10095. + if test "x$supports_anon_versioning" = xyes; then
  10096. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  10097. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10098. + echo "local: *; };" >> $output_objdir/$libname.ver~
  10099. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10100. + fi
  10101. + ;;
  10102. + *)
  10103. + case `$CC -V 2>&1 | sed 5q` in
  10104. + *Sun\ C*)
  10105. + # Sun C++ 5.9
  10106. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10107. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10108. + _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'
  10109. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10110. + _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'
  10111. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  10112. +
  10113. + # Not sure whether something based on
  10114. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10115. + # would be better.
  10116. + output_verbose_link_cmd='echo'
  10117. +
  10118. + # Archives containing C++ object files must be created using
  10119. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10120. + # necessary to make sure instantiated templates are included
  10121. + # in the archive.
  10122. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10123. + ;;
  10124. + esac
  10125. + ;;
  10126. esac
  10127. ;;
  10128. - esac
  10129. - ;;
  10130. - lynxos*)
  10131. - # FIXME: insert proper C++ library support
  10132. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10133. - ;;
  10134. - m88k*)
  10135. - # FIXME: insert proper C++ library support
  10136. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10137. - ;;
  10138. - mvs*)
  10139. - case $cc_basename in
  10140. - cxx*)
  10141. - # FIXME: insert proper C++ library support
  10142. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10143. +
  10144. + lynxos*)
  10145. + # FIXME: insert proper C++ library support
  10146. + _LT_TAGVAR(ld_shlibs, $1)=no
  10147. ;;
  10148. - *)
  10149. - # FIXME: insert proper C++ library support
  10150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10151. +
  10152. + m88k*)
  10153. + # FIXME: insert proper C++ library support
  10154. + _LT_TAGVAR(ld_shlibs, $1)=no
  10155. ;;
  10156. - esac
  10157. - ;;
  10158. - netbsd*)
  10159. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10160. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10161. - wlarc=
  10162. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10163. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10164. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10165. - fi
  10166. - # Workaround some broken pre-1.5 toolchains
  10167. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10168. - ;;
  10169. - openbsd2*)
  10170. - # C++ shared libraries are fairly broken
  10171. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10172. - ;;
  10173. - openbsd*)
  10174. - if test -f /usr/libexec/ld.so; then
  10175. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10176. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10177. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10178. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10179. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10180. - _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'
  10181. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10182. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10183. - fi
  10184. - output_verbose_link_cmd='echo'
  10185. - else
  10186. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10187. - fi
  10188. - ;;
  10189. - osf3*)
  10190. - case $cc_basename in
  10191. - KCC*)
  10192. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10193. -
  10194. - # KCC will only create a shared library if the output file
  10195. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10196. - # to its proper name (with version) after linking.
  10197. - _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'
  10198. -
  10199. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10200. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10201. -
  10202. - # Archives containing C++ object files must be created using
  10203. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10204. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  10205. -
  10206. - ;;
  10207. - RCC*)
  10208. - # Rational C++ 2.4.1
  10209. - # FIXME: insert proper C++ library support
  10210. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10211. - ;;
  10212. - cxx*)
  10213. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10214. - _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'
  10215. -
  10216. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10217. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10218. -
  10219. - # Commands to make compiler produce verbose output that lists
  10220. - # what "hidden" libraries, object files and flags are used when
  10221. - # linking a shared library.
  10222. - #
  10223. - # There doesn't appear to be a way to prevent this compiler from
  10224. - # explicitly linking system object files so we need to strip them
  10225. - # from the output so that they don't get included in the library
  10226. - # dependencies.
  10227. - 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'
  10228. +
  10229. + mvs*)
  10230. + case $cc_basename in
  10231. + cxx*)
  10232. + # FIXME: insert proper C++ library support
  10233. + _LT_TAGVAR(ld_shlibs, $1)=no
  10234. + ;;
  10235. + *)
  10236. + # FIXME: insert proper C++ library support
  10237. + _LT_TAGVAR(ld_shlibs, $1)=no
  10238. + ;;
  10239. + esac
  10240. ;;
  10241. - *)
  10242. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10243. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10244. - _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'
  10245. -
  10246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10247. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10248. -
  10249. - # Commands to make compiler produce verbose output that lists
  10250. - # what "hidden" libraries, object files and flags are used when
  10251. - # linking a shared library.
  10252. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10253. - else
  10254. - # FIXME: insert proper C++ library support
  10255. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10256. + netbsd*)
  10257. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10258. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10259. + wlarc=
  10260. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10261. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10262. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10263. fi
  10264. + # Workaround some broken pre-1.5 toolchains
  10265. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10266. ;;
  10267. - esac
  10268. - ;;
  10269. - osf4* | osf5*)
  10270. - case $cc_basename in
  10271. - KCC*)
  10272. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10273. -
  10274. - # KCC will only create a shared library if the output file
  10275. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10276. - # to its proper name (with version) after linking.
  10277. - _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'
  10278. -
  10279. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10280. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10281. -
  10282. - # Archives containing C++ object files must be created using
  10283. - # the KAI C++ compiler.
  10284. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  10285. - ;;
  10286. - RCC*)
  10287. - # Rational C++ 2.4.1
  10288. - # FIXME: insert proper C++ library support
  10289. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10290. - ;;
  10291. - cxx*)
  10292. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10293. - _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'
  10294. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10295. - echo "-hidden">> $lib.exp~
  10296. - $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~
  10297. - $rm $lib.exp'
  10298. -
  10299. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10300. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10301. -
  10302. - # Commands to make compiler produce verbose output that lists
  10303. - # what "hidden" libraries, object files and flags are used when
  10304. - # linking a shared library.
  10305. - #
  10306. - # There doesn't appear to be a way to prevent this compiler from
  10307. - # explicitly linking system object files so we need to strip them
  10308. - # from the output so that they don't get included in the library
  10309. - # dependencies.
  10310. - 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'
  10311. +
  10312. + *nto* | *qnx*)
  10313. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10314. ;;
  10315. - *)
  10316. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10317. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10318. - _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'
  10319. -
  10320. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10321. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10322. -
  10323. - # Commands to make compiler produce verbose output that lists
  10324. - # what "hidden" libraries, object files and flags are used when
  10325. - # linking a shared library.
  10326. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10327. + openbsd2*)
  10328. + # C++ shared libraries are fairly broken
  10329. + _LT_TAGVAR(ld_shlibs, $1)=no
  10330. + ;;
  10331. +
  10332. + openbsd*)
  10333. + if test -f /usr/libexec/ld.so; then
  10334. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10335. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10336. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10337. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10338. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10339. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10340. + _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'
  10341. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10342. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10343. + fi
  10344. + output_verbose_link_cmd=echo
  10345. else
  10346. - # FIXME: insert proper C++ library support
  10347. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10348. + _LT_TAGVAR(ld_shlibs, $1)=no
  10349. fi
  10350. ;;
  10351. - esac
  10352. - ;;
  10353. - psos*)
  10354. - # FIXME: insert proper C++ library support
  10355. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10356. - ;;
  10357. - sunos4*)
  10358. - case $cc_basename in
  10359. - CC*)
  10360. - # Sun C++ 4.x
  10361. - # FIXME: insert proper C++ library support
  10362. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10363. - ;;
  10364. - lcc*)
  10365. - # Lucid
  10366. - # FIXME: insert proper C++ library support
  10367. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10368. - ;;
  10369. - *)
  10370. - # FIXME: insert proper C++ library support
  10371. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10372. - ;;
  10373. - esac
  10374. - ;;
  10375. - solaris*)
  10376. - case $cc_basename in
  10377. - CC*)
  10378. - # Sun C++ 4.2, 5.x and Centerline C++
  10379. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  10380. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10381. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10382. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10383. - $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'
  10384. -
  10385. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10386. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10387. - case $host_os in
  10388. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10389. - *)
  10390. - # The compiler driver will combine and reorder linker options,
  10391. - # but understands `-z linker_flag'.
  10392. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10393. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10394. - ;;
  10395. - esac
  10396. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10397. -
  10398. - output_verbose_link_cmd='echo'
  10399. - # Archives containing C++ object files must be created using
  10400. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10401. - # necessary to make sure instantiated templates are included
  10402. - # in the archive.
  10403. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10404. - ;;
  10405. - gcx*)
  10406. - # Green Hills C++ Compiler
  10407. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10408. + osf3* | osf4* | osf5*)
  10409. + case $cc_basename in
  10410. + KCC*)
  10411. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10412. +
  10413. + # KCC will only create a shared library if the output file
  10414. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10415. + # to its proper name (with version) after linking.
  10416. + _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'
  10417. +
  10418. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10419. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10420. +
  10421. + # Archives containing C++ object files must be created using
  10422. + # the KAI C++ compiler.
  10423. + case $host in
  10424. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10425. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10426. + esac
  10427. + ;;
  10428. + RCC*)
  10429. + # Rational C++ 2.4.1
  10430. + # FIXME: insert proper C++ library support
  10431. + _LT_TAGVAR(ld_shlibs, $1)=no
  10432. + ;;
  10433. + cxx*)
  10434. + case $host in
  10435. + osf3*)
  10436. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10437. + _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'
  10438. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10439. + ;;
  10440. + *)
  10441. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10442. + _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'
  10443. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10444. + echo "-hidden">> $lib.exp~
  10445. + $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~
  10446. + $RM $lib.exp'
  10447. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10448. + ;;
  10449. + esac
  10450. - # The C++ compiler must be used to create the archive.
  10451. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10452. - ;;
  10453. - *)
  10454. - # GNU C++ compiler with Solaris linker
  10455. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10456. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10457. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  10458. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10459. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10460. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10461. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10462. # Commands to make compiler produce verbose output that lists
  10463. # what "hidden" libraries, object files and flags are used when
  10464. # linking a shared library.
  10465. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10466. - else
  10467. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10468. - # platform.
  10469. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10470. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10471. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10472. + #
  10473. + # There doesn't appear to be a way to prevent this compiler from
  10474. + # explicitly linking system object files so we need to strip them
  10475. + # from the output so that they don't get included in the library
  10476. + # dependencies.
  10477. + 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'
  10478. + ;;
  10479. + *)
  10480. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10481. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10482. + case $host in
  10483. + osf3*)
  10484. + _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'
  10485. + ;;
  10486. + *)
  10487. + _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'
  10488. + ;;
  10489. + esac
  10490. +
  10491. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10492. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10493. +
  10494. + # Commands to make compiler produce verbose output that lists
  10495. + # what "hidden" libraries, object files and flags are used when
  10496. + # linking a shared library.
  10497. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10498. +
  10499. + else
  10500. + # FIXME: insert proper C++ library support
  10501. + _LT_TAGVAR(ld_shlibs, $1)=no
  10502. + fi
  10503. + ;;
  10504. + esac
  10505. + ;;
  10506. - # Commands to make compiler produce verbose output that lists
  10507. - # what "hidden" libraries, object files and flags are used when
  10508. - # linking a shared library.
  10509. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10510. - fi
  10511. + psos*)
  10512. + # FIXME: insert proper C++ library support
  10513. + _LT_TAGVAR(ld_shlibs, $1)=no
  10514. + ;;
  10515. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10516. - case $host_os in
  10517. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10518. + sunos4*)
  10519. + case $cc_basename in
  10520. + CC*)
  10521. + # Sun C++ 4.x
  10522. + # FIXME: insert proper C++ library support
  10523. + _LT_TAGVAR(ld_shlibs, $1)=no
  10524. + ;;
  10525. + lcc*)
  10526. + # Lucid
  10527. + # FIXME: insert proper C++ library support
  10528. + _LT_TAGVAR(ld_shlibs, $1)=no
  10529. + ;;
  10530. + *)
  10531. + # FIXME: insert proper C++ library support
  10532. + _LT_TAGVAR(ld_shlibs, $1)=no
  10533. + ;;
  10534. + esac
  10535. + ;;
  10536. +
  10537. + solaris*)
  10538. + case $cc_basename in
  10539. + CC*)
  10540. + # Sun C++ 4.2, 5.x and Centerline C++
  10541. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10542. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10543. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10544. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10545. + $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'
  10546. +
  10547. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10548. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10549. + case $host_os in
  10550. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10551. + *)
  10552. + # The compiler driver will combine and reorder linker options,
  10553. + # but understands `-z linker_flag'.
  10554. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10555. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10556. + ;;
  10557. + esac
  10558. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10559. +
  10560. + output_verbose_link_cmd='echo'
  10561. +
  10562. + # Archives containing C++ object files must be created using
  10563. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10564. + # necessary to make sure instantiated templates are included
  10565. + # in the archive.
  10566. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10567. + ;;
  10568. + gcx*)
  10569. + # Green Hills C++ Compiler
  10570. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10571. +
  10572. + # The C++ compiler must be used to create the archive.
  10573. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10574. + ;;
  10575. + *)
  10576. + # GNU C++ compiler with Solaris linker
  10577. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10578. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10579. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10580. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10581. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10582. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10583. +
  10584. + # Commands to make compiler produce verbose output that lists
  10585. + # what "hidden" libraries, object files and flags are used when
  10586. + # linking a shared library.
  10587. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10588. + else
  10589. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10590. + # platform.
  10591. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10592. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10593. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10594. +
  10595. + # Commands to make compiler produce verbose output that lists
  10596. + # what "hidden" libraries, object files and flags are used when
  10597. + # linking a shared library.
  10598. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10599. + fi
  10600. +
  10601. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10602. + case $host_os in
  10603. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10604. + *)
  10605. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10606. + ;;
  10607. + esac
  10608. + fi
  10609. + ;;
  10610. + esac
  10611. + ;;
  10612. +
  10613. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10614. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10615. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10616. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10617. + runpath_var='LD_RUN_PATH'
  10618. +
  10619. + case $cc_basename in
  10620. + CC*)
  10621. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10622. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10623. + ;;
  10624. + *)
  10625. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10626. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10627. + ;;
  10628. + esac
  10629. + ;;
  10630. +
  10631. + sysv5* | sco3.2v5* | sco5v6*)
  10632. + # Note: We can NOT use -z defs as we might desire, because we do not
  10633. + # link with -lc, and that would cause any symbols used from libc to
  10634. + # always be unresolved, which means just about no library would
  10635. + # ever link correctly. If we're not using GNU ld we use -z text
  10636. + # though, which does catch some bad symbols but isn't as heavy-handed
  10637. + # as -z defs.
  10638. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10639. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10640. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10641. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10642. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10643. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10644. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10645. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10646. + runpath_var='LD_RUN_PATH'
  10647. +
  10648. + case $cc_basename in
  10649. + CC*)
  10650. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10651. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10652. + ;;
  10653. *)
  10654. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10655. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10656. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10657. ;;
  10658. - esac
  10659. - fi
  10660. - ;;
  10661. - esac
  10662. - ;;
  10663. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10664. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10665. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10666. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10667. - runpath_var='LD_RUN_PATH'
  10668. -
  10669. - case $cc_basename in
  10670. - CC*)
  10671. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10672. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10673. - ;;
  10674. - *)
  10675. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10676. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10677. - ;;
  10678. - esac
  10679. - ;;
  10680. - sysv5* | sco3.2v5* | sco5v6*)
  10681. - # Note: We can NOT use -z defs as we might desire, because we do not
  10682. - # link with -lc, and that would cause any symbols used from libc to
  10683. - # always be unresolved, which means just about no library would
  10684. - # ever link correctly. If we're not using GNU ld we use -z text
  10685. - # though, which does catch some bad symbols but isn't as heavy-handed
  10686. - # as -z defs.
  10687. - # For security reasons, it is highly recommended that you always
  10688. - # use absolute paths for naming shared libraries, and exclude the
  10689. - # DT_RUNPATH tag from executables and libraries. But doing so
  10690. - # requires that you compile everything twice, which is a pain.
  10691. - # So that behaviour is only enabled if SCOABSPATH is set to a
  10692. - # non-empty value in the environment. Most likely only useful for
  10693. - # creating official distributions of packages.
  10694. - # This is a hack until libtool officially supports absolute path
  10695. - # names for shared libraries.
  10696. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10697. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10698. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10699. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10700. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10701. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10702. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10703. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10704. - runpath_var='LD_RUN_PATH'
  10705. -
  10706. - case $cc_basename in
  10707. - CC*)
  10708. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10709. - _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'
  10710. - ;;
  10711. - *)
  10712. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10713. - _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'
  10714. - ;;
  10715. - esac
  10716. - ;;
  10717. - tandem*)
  10718. - case $cc_basename in
  10719. - NCC*)
  10720. - # NonStop-UX NCC 3.20
  10721. - # FIXME: insert proper C++ library support
  10722. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10723. - ;;
  10724. + esac
  10725. + ;;
  10726. +
  10727. + tandem*)
  10728. + case $cc_basename in
  10729. + NCC*)
  10730. + # NonStop-UX NCC 3.20
  10731. + # FIXME: insert proper C++ library support
  10732. + _LT_TAGVAR(ld_shlibs, $1)=no
  10733. + ;;
  10734. + *)
  10735. + # FIXME: insert proper C++ library support
  10736. + _LT_TAGVAR(ld_shlibs, $1)=no
  10737. + ;;
  10738. + esac
  10739. + ;;
  10740. +
  10741. + vxworks*)
  10742. + # FIXME: insert proper C++ library support
  10743. + _LT_TAGVAR(ld_shlibs, $1)=no
  10744. + ;;
  10745. +
  10746. *)
  10747. - # FIXME: insert proper C++ library support
  10748. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10749. - ;;
  10750. + # FIXME: insert proper C++ library support
  10751. + _LT_TAGVAR(ld_shlibs, $1)=no
  10752. + ;;
  10753. esac
  10754. - ;;
  10755. - vxworks*)
  10756. - # FIXME: insert proper C++ library support
  10757. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10758. - ;;
  10759. - *)
  10760. - # FIXME: insert proper C++ library support
  10761. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10762. - ;;
  10763. -esac
  10764. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10765. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10766. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  10767. -_LT_AC_TAGVAR(LD, $1)="$LD"
  10768. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10769. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10770. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  10771. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  10772. -AC_LIBTOOL_PROG_CC_C_O($1)
  10773. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  10774. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  10775. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  10776. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  10777. + _LT_TAGVAR(GCC, $1)="$GXX"
  10778. + _LT_TAGVAR(LD, $1)="$LD"
  10779. -AC_LIBTOOL_CONFIG($1)
  10780. + ## CAVEAT EMPTOR:
  10781. + ## There is no encapsulation within the following macros, do not change
  10782. + ## the running order or otherwise move them around unless you know exactly
  10783. + ## what you are doing...
  10784. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10785. + _LT_COMPILER_PIC($1)
  10786. + _LT_COMPILER_C_O($1)
  10787. + _LT_COMPILER_FILE_LOCKS($1)
  10788. + _LT_LINKER_SHLIBS($1)
  10789. + _LT_SYS_DYNAMIC_LINKER($1)
  10790. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10791. +
  10792. + _LT_CONFIG($1)
  10793. + fi # test -n "$compiler"
  10794. +
  10795. + CC=$lt_save_CC
  10796. + LDCXX=$LD
  10797. + LD=$lt_save_LD
  10798. + GCC=$lt_save_GCC
  10799. + with_gnu_ld=$lt_save_with_gnu_ld
  10800. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10801. + lt_cv_path_LD=$lt_save_path_LD
  10802. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10803. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10804. +fi # test "$_lt_caught_CXX_error" != yes
  10805. AC_LANG_POP
  10806. -CC=$lt_save_CC
  10807. -LDCXX=$LD
  10808. -LD=$lt_save_LD
  10809. -GCC=$lt_save_GCC
  10810. -with_gnu_ldcxx=$with_gnu_ld
  10811. -with_gnu_ld=$lt_save_with_gnu_ld
  10812. -lt_cv_path_LDCXX=$lt_cv_path_LD
  10813. -lt_cv_path_LD=$lt_save_path_LD
  10814. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10815. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10816. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  10817. +])# _LT_LANG_CXX_CONFIG
  10818. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  10819. -# ------------------------------------
  10820. +
  10821. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10822. +# ---------------------------------
  10823. # Figure out "hidden" library dependencies from verbose
  10824. # compiler output when linking a shared library.
  10825. # Parse the compiler output and extract the necessary
  10826. # objects, libraries and library flags.
  10827. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  10828. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  10829. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10830. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10831. +# Dependencies to place before and after the object being linked:
  10832. +_LT_TAGVAR(predep_objects, $1)=
  10833. +_LT_TAGVAR(postdep_objects, $1)=
  10834. +_LT_TAGVAR(predeps, $1)=
  10835. +_LT_TAGVAR(postdeps, $1)=
  10836. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10837. +
  10838. dnl we can't use the lt_simple_compile_test_code here,
  10839. dnl because it contains code intended for an executable,
  10840. dnl not a library. It's possible we should let each
  10841. dnl tag define a new lt_????_link_test_code variable,
  10842. dnl but it's only used here...
  10843. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  10844. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10845. int a;
  10846. void foo (void) { a = 0; }
  10847. -EOF
  10848. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  10849. +_LT_EOF
  10850. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10851. class Foo
  10852. {
  10853. public:
  10854. @@ -5481,23 +6399,31 @@
  10855. private:
  10856. int a;
  10857. };
  10858. -EOF
  10859. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  10860. +_LT_EOF
  10861. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10862. subroutine foo
  10863. implicit none
  10864. integer*4 a
  10865. a=0
  10866. return
  10867. end
  10868. -EOF
  10869. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  10870. +_LT_EOF
  10871. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10872. + subroutine foo
  10873. + implicit none
  10874. + integer a
  10875. + a=0
  10876. + return
  10877. + end
  10878. +_LT_EOF
  10879. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10880. public class foo {
  10881. private int a;
  10882. public void bar (void) {
  10883. a = 0;
  10884. }
  10885. };
  10886. -EOF
  10887. +_LT_EOF
  10888. ])
  10889. dnl Parse the compiler output and extract the necessary
  10890. dnl objects, libraries and library flags.
  10891. @@ -5509,19 +6435,14 @@
  10892. # the conftest object file.
  10893. pre_test_object_deps_done=no
  10894. - # The `*' in the case matches for architectures that use `case' in
  10895. - # $output_verbose_cmd can trigger glob expansion during the loop
  10896. - # eval without this substitution.
  10897. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10898. -
  10899. - for p in `eval $output_verbose_link_cmd`; do
  10900. + for p in `eval "$output_verbose_link_cmd"`; do
  10901. case $p in
  10902. -L* | -R* | -l*)
  10903. # Some compilers place space between "-{L,R}" and the path.
  10904. # Remove the space.
  10905. - if test $p = "-L" \
  10906. - || test $p = "-R"; then
  10907. + if test $p = "-L" ||
  10908. + test $p = "-R"; then
  10909. prev=$p
  10910. continue
  10911. else
  10912. @@ -5534,20 +6455,20 @@
  10913. # Internal compiler library paths should come after those
  10914. # provided the user. The postdeps already come after the
  10915. # user supplied libs so there is no need to process them.
  10916. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  10917. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10918. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10919. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10920. else
  10921. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10922. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10923. fi
  10924. ;;
  10925. # The "-l" case would never come before the object being
  10926. # linked, so don't bother handling this case.
  10927. esac
  10928. else
  10929. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  10930. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  10931. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10932. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10933. else
  10934. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  10935. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10936. fi
  10937. fi
  10938. ;;
  10939. @@ -5561,16 +6482,16 @@
  10940. fi
  10941. if test "$pre_test_object_deps_done" = no; then
  10942. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  10943. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  10944. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10945. + _LT_TAGVAR(predep_objects, $1)="$p"
  10946. else
  10947. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  10948. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10949. fi
  10950. else
  10951. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  10952. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  10953. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10954. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10955. else
  10956. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  10957. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10958. fi
  10959. fi
  10960. ;;
  10961. @@ -5586,29 +6507,24 @@
  10962. echo "libtool.m4: error: problem compiling $1 test program"
  10963. fi
  10964. -$rm -f confest.$objext
  10965. -
  10966. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  10967. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  10968. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10969. -fi
  10970. +$RM -f confest.$objext
  10971. # PORTME: override above test on systems where it is broken
  10972. -ifelse([$1],[CXX],
  10973. +m4_if([$1], [CXX],
  10974. [case $host_os in
  10975. interix[[3-9]]*)
  10976. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10977. # hack all around it, let's just trust "g++" to DTRT.
  10978. - _LT_AC_TAGVAR(predep_objects,$1)=
  10979. - _LT_AC_TAGVAR(postdep_objects,$1)=
  10980. - _LT_AC_TAGVAR(postdeps,$1)=
  10981. + _LT_TAGVAR(predep_objects,$1)=
  10982. + _LT_TAGVAR(postdep_objects,$1)=
  10983. + _LT_TAGVAR(postdeps,$1)=
  10984. ;;
  10985. linux*)
  10986. case `$CC -V 2>&1 | sed 5q` in
  10987. *Sun\ C*)
  10988. # Sun C++ 5.9
  10989. - #
  10990. +
  10991. # The more standards-conforming stlport4 library is
  10992. # incompatible with the Cstd library. Avoid specifying
  10993. # it if it's in CXXFLAGS. Ignore libCrun as
  10994. @@ -5618,8 +6534,9 @@
  10995. solaris_use_stlport4=yes
  10996. ;;
  10997. esac
  10998. +
  10999. if test "$solaris_use_stlport4" != yes; then
  11000. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11001. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11002. fi
  11003. ;;
  11004. esac
  11005. @@ -5642,142 +6559,339 @@
  11006. # Sun compiler versions before 5.6, else PIC objects from an old
  11007. # archive will be linked into the output, leading to subtle bugs.
  11008. if test "$solaris_use_stlport4" != yes; then
  11009. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11010. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11011. fi
  11012. ;;
  11013. esac
  11014. ;;
  11015. esac
  11016. ])
  11017. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  11018. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  11019. +
  11020. +case " $_LT_TAGVAR(postdeps, $1) " in
  11021. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  11022. esac
  11023. -])# AC_LIBTOOL_POSTDEP_PREDEP
  11024. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  11025. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  11026. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11027. +fi
  11028. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  11029. + [The directories searched by this compiler when creating a shared library])
  11030. +_LT_TAGDECL([], [predep_objects], [1],
  11031. + [Dependencies to place before and after the objects being linked to
  11032. + create a shared library])
  11033. +_LT_TAGDECL([], [postdep_objects], [1])
  11034. +_LT_TAGDECL([], [predeps], [1])
  11035. +_LT_TAGDECL([], [postdeps], [1])
  11036. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  11037. + [The library search path used internally by the compiler when linking
  11038. + a shared library])
  11039. +])# _LT_SYS_HIDDEN_LIBDEPS
  11040. +
  11041. +
  11042. +# _LT_PROG_F77
  11043. +# ------------
  11044. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  11045. +# if there is no fortran compiler, we have our own version here.
  11046. +m4_defun([_LT_PROG_F77],
  11047. +[
  11048. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  11049. +AC_PROG_F77
  11050. +if test -z "$F77" || test "X$F77" = "Xno"; then
  11051. + _lt_disable_F77=yes
  11052. +fi
  11053. +popdef([AC_MSG_ERROR])
  11054. +])# _LT_PROG_F77
  11055. +
  11056. +dnl aclocal-1.4 backwards compatibility:
  11057. +dnl AC_DEFUN([_LT_PROG_F77], [])
  11058. -# AC_LIBTOOL_LANG_F77_CONFIG
  11059. +
  11060. +# _LT_LANG_F77_CONFIG([TAG])
  11061. # --------------------------
  11062. -# Ensure that the configuration vars for the C compiler are
  11063. -# suitably defined. Those variables are subsequently used by
  11064. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  11065. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  11066. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  11067. -[AC_REQUIRE([AC_PROG_F77])
  11068. +# Ensure that the configuration variables for a Fortran 77 compiler are
  11069. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  11070. +# to write the compiler configuration to `libtool'.
  11071. +m4_defun([_LT_LANG_F77_CONFIG],
  11072. +[AC_REQUIRE([_LT_PROG_F77])dnl
  11073. AC_LANG_PUSH(Fortran 77)
  11074. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11075. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11076. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  11077. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11078. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11079. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  11080. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11081. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11082. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11083. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11084. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11085. -_LT_AC_TAGVAR(module_cmds, $1)=
  11086. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11087. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11088. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11089. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  11090. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11091. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11092. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11093. +_LT_TAGVAR(allow_undefined_flag, $1)=
  11094. +_LT_TAGVAR(always_export_symbols, $1)=no
  11095. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  11096. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11097. +_LT_TAGVAR(hardcode_direct, $1)=no
  11098. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11099. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11100. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11101. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11102. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  11103. +_LT_TAGVAR(hardcode_automatic, $1)=no
  11104. +_LT_TAGVAR(inherit_rpath, $1)=no
  11105. +_LT_TAGVAR(module_cmds, $1)=
  11106. +_LT_TAGVAR(module_expsym_cmds, $1)=
  11107. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11108. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11109. +_LT_TAGVAR(no_undefined_flag, $1)=
  11110. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11111. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11112. # Source file extension for f77 test sources.
  11113. ac_ext=f
  11114. # Object file extension for compiled f77 test sources.
  11115. objext=o
  11116. -_LT_AC_TAGVAR(objext, $1)=$objext
  11117. +_LT_TAGVAR(objext, $1)=$objext
  11118. -# Code to be used in simple compile tests
  11119. -lt_simple_compile_test_code="\
  11120. +# No sense in running all these tests if we already determined that
  11121. +# the F77 compiler isn't working. Some variables (like enable_shared)
  11122. +# are currently assumed to apply to all compilers on this platform,
  11123. +# and will be corrupted by setting them based on a non-working compiler.
  11124. +if test "$_lt_disable_F77" != yes; then
  11125. + # Code to be used in simple compile tests
  11126. + lt_simple_compile_test_code="\
  11127. subroutine t
  11128. return
  11129. end
  11130. "
  11131. -# Code to be used in simple link tests
  11132. -lt_simple_link_test_code="\
  11133. + # Code to be used in simple link tests
  11134. + lt_simple_link_test_code="\
  11135. program t
  11136. end
  11137. "
  11138. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11139. -_LT_AC_SYS_COMPILER
  11140. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11141. + _LT_TAG_COMPILER
  11142. -# save warnings/boilerplate of simple test code
  11143. -_LT_COMPILER_BOILERPLATE
  11144. -_LT_LINKER_BOILERPLATE
  11145. + # save warnings/boilerplate of simple test code
  11146. + _LT_COMPILER_BOILERPLATE
  11147. + _LT_LINKER_BOILERPLATE
  11148. +
  11149. + # Allow CC to be a program name with arguments.
  11150. + lt_save_CC="$CC"
  11151. + lt_save_GCC=$GCC
  11152. + CC=${F77-"f77"}
  11153. + compiler=$CC
  11154. + _LT_TAGVAR(compiler, $1)=$CC
  11155. + _LT_CC_BASENAME([$compiler])
  11156. + GCC=$G77
  11157. + if test -n "$compiler"; then
  11158. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11159. + AC_MSG_RESULT([$can_build_shared])
  11160. -# Allow CC to be a program name with arguments.
  11161. -lt_save_CC="$CC"
  11162. -CC=${F77-"f77"}
  11163. -compiler=$CC
  11164. -_LT_AC_TAGVAR(compiler, $1)=$CC
  11165. -_LT_CC_BASENAME([$compiler])
  11166. + AC_MSG_CHECKING([whether to build shared libraries])
  11167. + test "$can_build_shared" = "no" && enable_shared=no
  11168. -AC_MSG_CHECKING([if libtool supports shared libraries])
  11169. -AC_MSG_RESULT([$can_build_shared])
  11170. + # On AIX, shared libraries and static libraries use the same namespace, and
  11171. + # are all built from PIC.
  11172. + case $host_os in
  11173. + aix3*)
  11174. + test "$enable_shared" = yes && enable_static=no
  11175. + if test -n "$RANLIB"; then
  11176. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11177. + postinstall_cmds='$RANLIB $lib'
  11178. + fi
  11179. + ;;
  11180. + aix[[4-9]]*)
  11181. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11182. + test "$enable_shared" = yes && enable_static=no
  11183. + fi
  11184. + ;;
  11185. + esac
  11186. + AC_MSG_RESULT([$enable_shared])
  11187. -AC_MSG_CHECKING([whether to build shared libraries])
  11188. -test "$can_build_shared" = "no" && enable_shared=no
  11189. + AC_MSG_CHECKING([whether to build static libraries])
  11190. + # Make sure either enable_shared or enable_static is yes.
  11191. + test "$enable_shared" = yes || enable_static=yes
  11192. + AC_MSG_RESULT([$enable_static])
  11193. +
  11194. + _LT_TAGVAR(GCC, $1)="$G77"
  11195. + _LT_TAGVAR(LD, $1)="$LD"
  11196. +
  11197. + ## CAVEAT EMPTOR:
  11198. + ## There is no encapsulation within the following macros, do not change
  11199. + ## the running order or otherwise move them around unless you know exactly
  11200. + ## what you are doing...
  11201. + _LT_COMPILER_PIC($1)
  11202. + _LT_COMPILER_C_O($1)
  11203. + _LT_COMPILER_FILE_LOCKS($1)
  11204. + _LT_LINKER_SHLIBS($1)
  11205. + _LT_SYS_DYNAMIC_LINKER($1)
  11206. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11207. +
  11208. + _LT_CONFIG($1)
  11209. + fi # test -n "$compiler"
  11210. +
  11211. + GCC=$lt_save_GCC
  11212. + CC="$lt_save_CC"
  11213. +fi # test "$_lt_disable_F77" != yes
  11214. -# On AIX, shared libraries and static libraries use the same namespace, and
  11215. -# are all built from PIC.
  11216. -case $host_os in
  11217. -aix3*)
  11218. - test "$enable_shared" = yes && enable_static=no
  11219. - if test -n "$RANLIB"; then
  11220. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11221. - postinstall_cmds='$RANLIB $lib'
  11222. - fi
  11223. - ;;
  11224. -aix[[4-9]]*)
  11225. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11226. - test "$enable_shared" = yes && enable_static=no
  11227. - fi
  11228. - ;;
  11229. -esac
  11230. -AC_MSG_RESULT([$enable_shared])
  11231. +AC_LANG_POP
  11232. +])# _LT_LANG_F77_CONFIG
  11233. +
  11234. +
  11235. +# _LT_PROG_FC
  11236. +# -----------
  11237. +# Since AC_PROG_FC is broken, in that it returns the empty string
  11238. +# if there is no fortran compiler, we have our own version here.
  11239. +m4_defun([_LT_PROG_FC],
  11240. +[
  11241. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  11242. +AC_PROG_FC
  11243. +if test -z "$FC" || test "X$FC" = "Xno"; then
  11244. + _lt_disable_FC=yes
  11245. +fi
  11246. +popdef([AC_MSG_ERROR])
  11247. +])# _LT_PROG_FC
  11248. +
  11249. +dnl aclocal-1.4 backwards compatibility:
  11250. +dnl AC_DEFUN([_LT_PROG_FC], [])
  11251. +
  11252. +
  11253. +# _LT_LANG_FC_CONFIG([TAG])
  11254. +# -------------------------
  11255. +# Ensure that the configuration variables for a Fortran compiler are
  11256. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  11257. +# to write the compiler configuration to `libtool'.
  11258. +m4_defun([_LT_LANG_FC_CONFIG],
  11259. +[AC_REQUIRE([_LT_PROG_FC])dnl
  11260. +AC_LANG_PUSH(Fortran)
  11261. +
  11262. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11263. +_LT_TAGVAR(allow_undefined_flag, $1)=
  11264. +_LT_TAGVAR(always_export_symbols, $1)=no
  11265. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  11266. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11267. +_LT_TAGVAR(hardcode_direct, $1)=no
  11268. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11269. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11270. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11271. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11272. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  11273. +_LT_TAGVAR(hardcode_automatic, $1)=no
  11274. +_LT_TAGVAR(inherit_rpath, $1)=no
  11275. +_LT_TAGVAR(module_cmds, $1)=
  11276. +_LT_TAGVAR(module_expsym_cmds, $1)=
  11277. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11278. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11279. +_LT_TAGVAR(no_undefined_flag, $1)=
  11280. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11281. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11282. +
  11283. +# Source file extension for fc test sources.
  11284. +ac_ext=${ac_fc_srcext-f}
  11285. +
  11286. +# Object file extension for compiled fc test sources.
  11287. +objext=o
  11288. +_LT_TAGVAR(objext, $1)=$objext
  11289. +
  11290. +# No sense in running all these tests if we already determined that
  11291. +# the FC compiler isn't working. Some variables (like enable_shared)
  11292. +# are currently assumed to apply to all compilers on this platform,
  11293. +# and will be corrupted by setting them based on a non-working compiler.
  11294. +if test "$_lt_disable_FC" != yes; then
  11295. + # Code to be used in simple compile tests
  11296. + lt_simple_compile_test_code="\
  11297. + subroutine t
  11298. + return
  11299. + end
  11300. +"
  11301. +
  11302. + # Code to be used in simple link tests
  11303. + lt_simple_link_test_code="\
  11304. + program t
  11305. + end
  11306. +"
  11307. +
  11308. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11309. + _LT_TAG_COMPILER
  11310. +
  11311. + # save warnings/boilerplate of simple test code
  11312. + _LT_COMPILER_BOILERPLATE
  11313. + _LT_LINKER_BOILERPLATE
  11314. +
  11315. + # Allow CC to be a program name with arguments.
  11316. + lt_save_CC="$CC"
  11317. + lt_save_GCC=$GCC
  11318. + CC=${FC-"f95"}
  11319. + compiler=$CC
  11320. + GCC=$ac_cv_fc_compiler_gnu
  11321. +
  11322. + _LT_TAGVAR(compiler, $1)=$CC
  11323. + _LT_CC_BASENAME([$compiler])
  11324. -AC_MSG_CHECKING([whether to build static libraries])
  11325. -# Make sure either enable_shared or enable_static is yes.
  11326. -test "$enable_shared" = yes || enable_static=yes
  11327. -AC_MSG_RESULT([$enable_static])
  11328. -
  11329. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  11330. -_LT_AC_TAGVAR(LD, $1)="$LD"
  11331. -
  11332. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  11333. -AC_LIBTOOL_PROG_CC_C_O($1)
  11334. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  11335. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  11336. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  11337. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  11338. + if test -n "$compiler"; then
  11339. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11340. + AC_MSG_RESULT([$can_build_shared])
  11341. -AC_LIBTOOL_CONFIG($1)
  11342. + AC_MSG_CHECKING([whether to build shared libraries])
  11343. + test "$can_build_shared" = "no" && enable_shared=no
  11344. +
  11345. + # On AIX, shared libraries and static libraries use the same namespace, and
  11346. + # are all built from PIC.
  11347. + case $host_os in
  11348. + aix3*)
  11349. + test "$enable_shared" = yes && enable_static=no
  11350. + if test -n "$RANLIB"; then
  11351. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11352. + postinstall_cmds='$RANLIB $lib'
  11353. + fi
  11354. + ;;
  11355. + aix[[4-9]]*)
  11356. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11357. + test "$enable_shared" = yes && enable_static=no
  11358. + fi
  11359. + ;;
  11360. + esac
  11361. + AC_MSG_RESULT([$enable_shared])
  11362. +
  11363. + AC_MSG_CHECKING([whether to build static libraries])
  11364. + # Make sure either enable_shared or enable_static is yes.
  11365. + test "$enable_shared" = yes || enable_static=yes
  11366. + AC_MSG_RESULT([$enable_static])
  11367. +
  11368. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  11369. + _LT_TAGVAR(LD, $1)="$LD"
  11370. +
  11371. + ## CAVEAT EMPTOR:
  11372. + ## There is no encapsulation within the following macros, do not change
  11373. + ## the running order or otherwise move them around unless you know exactly
  11374. + ## what you are doing...
  11375. + _LT_SYS_HIDDEN_LIBDEPS($1)
  11376. + _LT_COMPILER_PIC($1)
  11377. + _LT_COMPILER_C_O($1)
  11378. + _LT_COMPILER_FILE_LOCKS($1)
  11379. + _LT_LINKER_SHLIBS($1)
  11380. + _LT_SYS_DYNAMIC_LINKER($1)
  11381. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11382. +
  11383. + _LT_CONFIG($1)
  11384. + fi # test -n "$compiler"
  11385. +
  11386. + GCC=$lt_save_GCC
  11387. + CC="$lt_save_CC"
  11388. +fi # test "$_lt_disable_FC" != yes
  11389. AC_LANG_POP
  11390. -CC="$lt_save_CC"
  11391. -])# AC_LIBTOOL_LANG_F77_CONFIG
  11392. +])# _LT_LANG_FC_CONFIG
  11393. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  11394. +# _LT_LANG_GCJ_CONFIG([TAG])
  11395. # --------------------------
  11396. -# Ensure that the configuration vars for the C compiler are
  11397. -# suitably defined. Those variables are subsequently used by
  11398. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  11399. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  11400. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  11401. -[AC_LANG_SAVE
  11402. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  11403. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11404. +# to write the compiler configuration to `libtool'.
  11405. +m4_defun([_LT_LANG_GCJ_CONFIG],
  11406. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  11407. +AC_LANG_SAVE
  11408. # Source file extension for Java test sources.
  11409. ac_ext=java
  11410. # Object file extension for compiled Java test sources.
  11411. objext=o
  11412. -_LT_AC_TAGVAR(objext, $1)=$objext
  11413. +_LT_TAGVAR(objext, $1)=$objext
  11414. # Code to be used in simple compile tests
  11415. lt_simple_compile_test_code="class foo {}"
  11416. @@ -5786,7 +6900,7 @@
  11417. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  11418. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11419. -_LT_AC_SYS_COMPILER
  11420. +_LT_TAG_COMPILER
  11421. # save warnings/boilerplate of simple test code
  11422. _LT_COMPILER_BOILERPLATE
  11423. @@ -5794,46 +6908,52 @@
  11424. # Allow CC to be a program name with arguments.
  11425. lt_save_CC="$CC"
  11426. +lt_save_GCC=$GCC
  11427. +GCC=yes
  11428. CC=${GCJ-"gcj"}
  11429. compiler=$CC
  11430. -_LT_AC_TAGVAR(compiler, $1)=$CC
  11431. +_LT_TAGVAR(compiler, $1)=$CC
  11432. +_LT_TAGVAR(LD, $1)="$LD"
  11433. _LT_CC_BASENAME([$compiler])
  11434. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  11435. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11436. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11437. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11438. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11439. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  11440. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  11441. -AC_LIBTOOL_PROG_CC_C_O($1)
  11442. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  11443. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  11444. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  11445. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  11446. +if test -n "$compiler"; then
  11447. + _LT_COMPILER_NO_RTTI($1)
  11448. + _LT_COMPILER_PIC($1)
  11449. + _LT_COMPILER_C_O($1)
  11450. + _LT_COMPILER_FILE_LOCKS($1)
  11451. + _LT_LINKER_SHLIBS($1)
  11452. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11453. -AC_LIBTOOL_CONFIG($1)
  11454. + _LT_CONFIG($1)
  11455. +fi
  11456. AC_LANG_RESTORE
  11457. +
  11458. +GCC=$lt_save_GCC
  11459. CC="$lt_save_CC"
  11460. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  11461. +])# _LT_LANG_GCJ_CONFIG
  11462. -# AC_LIBTOOL_LANG_RC_CONFIG
  11463. +# _LT_LANG_RC_CONFIG([TAG])
  11464. # -------------------------
  11465. -# Ensure that the configuration vars for the Windows resource compiler are
  11466. -# suitably defined. Those variables are subsequently used by
  11467. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  11468. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  11469. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  11470. -[AC_LANG_SAVE
  11471. +# Ensure that the configuration variables for the Windows resource compiler
  11472. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11473. +# to write the compiler configuration to `libtool'.
  11474. +m4_defun([_LT_LANG_RC_CONFIG],
  11475. +[AC_REQUIRE([LT_PROG_RC])dnl
  11476. +AC_LANG_SAVE
  11477. # Source file extension for RC test sources.
  11478. ac_ext=rc
  11479. # Object file extension for compiled RC test sources.
  11480. objext=o
  11481. -_LT_AC_TAGVAR(objext, $1)=$objext
  11482. +_LT_TAGVAR(objext, $1)=$objext
  11483. # Code to be used in simple compile tests
  11484. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11485. @@ -5842,7 +6962,7 @@
  11486. lt_simple_link_test_code="$lt_simple_compile_test_code"
  11487. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11488. -_LT_AC_SYS_COMPILER
  11489. +_LT_TAG_COMPILER
  11490. # save warnings/boilerplate of simple test code
  11491. _LT_COMPILER_BOILERPLATE
  11492. @@ -5850,2553 +6970,2930 @@
  11493. # Allow CC to be a program name with arguments.
  11494. lt_save_CC="$CC"
  11495. +lt_save_GCC=$GCC
  11496. +GCC=
  11497. CC=${RC-"windres"}
  11498. compiler=$CC
  11499. -_LT_AC_TAGVAR(compiler, $1)=$CC
  11500. +_LT_TAGVAR(compiler, $1)=$CC
  11501. _LT_CC_BASENAME([$compiler])
  11502. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11503. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  11504. -AC_LIBTOOL_CONFIG($1)
  11505. +if test -n "$compiler"; then
  11506. + :
  11507. + _LT_CONFIG($1)
  11508. +fi
  11509. +GCC=$lt_save_GCC
  11510. AC_LANG_RESTORE
  11511. CC="$lt_save_CC"
  11512. -])# AC_LIBTOOL_LANG_RC_CONFIG
  11513. +])# _LT_LANG_RC_CONFIG
  11514. -# AC_LIBTOOL_CONFIG([TAGNAME])
  11515. -# ----------------------------
  11516. -# If TAGNAME is not passed, then create an initial libtool script
  11517. -# with a default configuration from the untagged config vars. Otherwise
  11518. -# add code to config.status for appending the configuration named by
  11519. -# TAGNAME from the matching tagged config vars.
  11520. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  11521. -[# The else clause should only fire when bootstrapping the
  11522. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  11523. -# with your package, and you will get complaints that there are
  11524. -# no rules to generate ltmain.sh.
  11525. -if test -f "$ltmain"; then
  11526. - # See if we are running on zsh, and set the options which allow our commands through
  11527. - # without removal of \ escapes.
  11528. - if test -n "${ZSH_VERSION+set}" ; then
  11529. - setopt NO_GLOB_SUBST
  11530. - fi
  11531. - # Now quote all the things that may contain metacharacters while being
  11532. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  11533. - # variables and quote the copies for generation of the libtool script.
  11534. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11535. - SED SHELL STRIP \
  11536. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11537. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11538. - deplibs_check_method reload_flag reload_cmds need_locks \
  11539. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11540. - lt_cv_sys_global_symbol_to_c_name_address \
  11541. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11542. - old_postinstall_cmds old_postuninstall_cmds \
  11543. - _LT_AC_TAGVAR(compiler, $1) \
  11544. - _LT_AC_TAGVAR(CC, $1) \
  11545. - _LT_AC_TAGVAR(LD, $1) \
  11546. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  11547. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  11548. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  11549. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  11550. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  11551. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  11552. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  11553. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  11554. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  11555. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  11556. - _LT_AC_TAGVAR(predep_objects, $1) \
  11557. - _LT_AC_TAGVAR(postdep_objects, $1) \
  11558. - _LT_AC_TAGVAR(predeps, $1) \
  11559. - _LT_AC_TAGVAR(postdeps, $1) \
  11560. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  11561. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  11562. - _LT_AC_TAGVAR(archive_cmds, $1) \
  11563. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  11564. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  11565. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  11566. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  11567. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  11568. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  11569. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  11570. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  11571. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  11572. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  11573. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  11574. - _LT_AC_TAGVAR(module_cmds, $1) \
  11575. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  11576. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  11577. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  11578. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  11579. - _LT_AC_TAGVAR(include_expsyms, $1); do
  11580. -
  11581. - case $var in
  11582. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  11583. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  11584. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  11585. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  11586. - _LT_AC_TAGVAR(module_cmds, $1) | \
  11587. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  11588. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  11589. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  11590. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11591. - postinstall_cmds | postuninstall_cmds | \
  11592. - old_postinstall_cmds | old_postuninstall_cmds | \
  11593. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11594. - # Double-quote double-evaled strings.
  11595. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11596. - ;;
  11597. - *)
  11598. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11599. - ;;
  11600. - esac
  11601. - done
  11602. +# LT_PROG_GCJ
  11603. +# -----------
  11604. +AC_DEFUN([LT_PROG_GCJ],
  11605. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11606. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11607. + [AC_CHECK_TOOL(GCJ, gcj,)
  11608. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11609. + AC_SUBST(GCJFLAGS)])])[]dnl
  11610. +])
  11611. - case $lt_echo in
  11612. - *'\[$]0 --fallback-echo"')
  11613. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  11614. - ;;
  11615. - esac
  11616. +# Old name:
  11617. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11618. +dnl aclocal-1.4 backwards compatibility:
  11619. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11620. -ifelse([$1], [],
  11621. - [cfgfile="${ofile}T"
  11622. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  11623. - $rm -f "$cfgfile"
  11624. - AC_MSG_NOTICE([creating $ofile])],
  11625. - [cfgfile="$ofile"])
  11626. - cat <<__EOF__ >> "$cfgfile"
  11627. -ifelse([$1], [],
  11628. -[#! $SHELL
  11629. +# LT_PROG_RC
  11630. +# ----------
  11631. +AC_DEFUN([LT_PROG_RC],
  11632. +[AC_CHECK_TOOL(RC, windres,)
  11633. +])
  11634. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11635. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  11636. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11637. -#
  11638. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  11639. -# Free Software Foundation, Inc.
  11640. -#
  11641. -# This file is part of GNU Libtool:
  11642. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  11643. -#
  11644. -# This program is free software; you can redistribute it and/or modify
  11645. -# it under the terms of the GNU General Public License as published by
  11646. -# the Free Software Foundation; either version 2 of the License, or
  11647. -# (at your option) any later version.
  11648. -#
  11649. -# This program is distributed in the hope that it will be useful, but
  11650. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  11651. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11652. -# General Public License for more details.
  11653. -#
  11654. -# You should have received a copy of the GNU General Public License
  11655. -# along with this program; if not, write to the Free Software
  11656. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11657. -#
  11658. -# As a special exception to the GNU General Public License, if you
  11659. -# distribute this file as part of a program that contains a
  11660. -# configuration script generated by Autoconf, you may include it under
  11661. -# the same distribution terms that you use for the rest of that program.
  11662. +# Old name:
  11663. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11664. +dnl aclocal-1.4 backwards compatibility:
  11665. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11666. -# A sed program that does not truncate output.
  11667. -SED=$lt_SED
  11668. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11669. -Xsed="$SED -e 1s/^X//"
  11670. +# _LT_DECL_EGREP
  11671. +# --------------
  11672. +# If we don't have a new enough Autoconf to choose the best grep
  11673. +# available, choose the one first in the user's PATH.
  11674. +m4_defun([_LT_DECL_EGREP],
  11675. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11676. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11677. +test -z "$GREP" && GREP=grep
  11678. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11679. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11680. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11681. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11682. +AC_SUBST([GREP])
  11683. +])
  11684. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  11685. -# if CDPATH is set.
  11686. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11687. -# The names of the tagged configurations supported by this script.
  11688. -available_tags=
  11689. +# _LT_DECL_OBJDUMP
  11690. +# --------------
  11691. +# If we don't have a new enough Autoconf to choose the best objdump
  11692. +# available, choose the one first in the user's PATH.
  11693. +m4_defun([_LT_DECL_OBJDUMP],
  11694. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11695. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11696. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11697. +AC_SUBST([OBJDUMP])
  11698. +])
  11699. -# ### BEGIN LIBTOOL CONFIG],
  11700. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  11701. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11702. +# _LT_DECL_SED
  11703. +# ------------
  11704. +# Check for a fully-functional sed program, that truncates
  11705. +# as few characters as possible. Prefer GNU sed if found.
  11706. +m4_defun([_LT_DECL_SED],
  11707. +[AC_PROG_SED
  11708. +test -z "$SED" && SED=sed
  11709. +Xsed="$SED -e 1s/^X//"
  11710. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11711. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11712. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11713. +])# _LT_DECL_SED
  11714. -# Shell to use when invoking shell scripts.
  11715. -SHELL=$lt_SHELL
  11716. +m4_ifndef([AC_PROG_SED], [
  11717. +# NOTE: This macro has been submitted for inclusion into #
  11718. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11719. +# a released version of Autoconf we should remove this #
  11720. +# macro and use it instead. #
  11721. -# Whether or not to build shared libraries.
  11722. -build_libtool_libs=$enable_shared
  11723. +m4_defun([AC_PROG_SED],
  11724. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11725. +AC_CACHE_VAL(lt_cv_path_SED,
  11726. +[# Loop through the user's path and test for sed and gsed.
  11727. +# Then use that list of sed's as ones to test for truncation.
  11728. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11729. +for as_dir in $PATH
  11730. +do
  11731. + IFS=$as_save_IFS
  11732. + test -z "$as_dir" && as_dir=.
  11733. + for lt_ac_prog in sed gsed; do
  11734. + for ac_exec_ext in '' $ac_executable_extensions; do
  11735. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11736. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11737. + fi
  11738. + done
  11739. + done
  11740. +done
  11741. +IFS=$as_save_IFS
  11742. +lt_ac_max=0
  11743. +lt_ac_count=0
  11744. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11745. +# along with /bin/sed that truncates output.
  11746. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11747. + test ! -f $lt_ac_sed && continue
  11748. + cat /dev/null > conftest.in
  11749. + lt_ac_count=0
  11750. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11751. + # Check for GNU sed and select it if it is found.
  11752. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11753. + lt_cv_path_SED=$lt_ac_sed
  11754. + break
  11755. + fi
  11756. + while true; do
  11757. + cat conftest.in conftest.in >conftest.tmp
  11758. + mv conftest.tmp conftest.in
  11759. + cp conftest.in conftest.nl
  11760. + echo >>conftest.nl
  11761. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11762. + cmp -s conftest.out conftest.nl || break
  11763. + # 10000 chars as input seems more than enough
  11764. + test $lt_ac_count -gt 10 && break
  11765. + lt_ac_count=`expr $lt_ac_count + 1`
  11766. + if test $lt_ac_count -gt $lt_ac_max; then
  11767. + lt_ac_max=$lt_ac_count
  11768. + lt_cv_path_SED=$lt_ac_sed
  11769. + fi
  11770. + done
  11771. +done
  11772. +])
  11773. +SED=$lt_cv_path_SED
  11774. +AC_SUBST([SED])
  11775. +AC_MSG_RESULT([$SED])
  11776. +])#AC_PROG_SED
  11777. +])#m4_ifndef
  11778. -# Whether or not to build static libraries.
  11779. -build_old_libs=$enable_static
  11780. +# Old name:
  11781. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11782. +dnl aclocal-1.4 backwards compatibility:
  11783. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11784. -# Whether or not to add -lc for building shared libraries.
  11785. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  11786. -# Whether or not to disallow shared libs when runtime libs are static
  11787. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  11788. +# _LT_CHECK_SHELL_FEATURES
  11789. +# ------------------------
  11790. +# Find out whether the shell is Bourne or XSI compatible,
  11791. +# or has some other useful features.
  11792. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11793. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11794. +# Try some XSI features
  11795. +xsi_shell=no
  11796. +( _lt_dummy="a/b/c"
  11797. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11798. + = c,a/b,, \
  11799. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11800. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11801. + && xsi_shell=yes
  11802. +AC_MSG_RESULT([$xsi_shell])
  11803. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11804. +
  11805. +AC_MSG_CHECKING([whether the shell understands "+="])
  11806. +lt_shell_append=no
  11807. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11808. + >/dev/null 2>&1 \
  11809. + && lt_shell_append=yes
  11810. +AC_MSG_RESULT([$lt_shell_append])
  11811. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11812. -# Whether or not to optimize for fast installation.
  11813. -fast_install=$enable_fast_install
  11814. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11815. + lt_unset=unset
  11816. +else
  11817. + lt_unset=false
  11818. +fi
  11819. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11820. -# The host system.
  11821. -host_alias=$host_alias
  11822. -host=$host
  11823. -host_os=$host_os
  11824. +# test EBCDIC or ASCII
  11825. +case `echo X|tr X '\101'` in
  11826. + A) # ASCII based system
  11827. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11828. + lt_SP2NL='tr \040 \012'
  11829. + lt_NL2SP='tr \015\012 \040\040'
  11830. + ;;
  11831. + *) # EBCDIC based system
  11832. + lt_SP2NL='tr \100 \n'
  11833. + lt_NL2SP='tr \r\n \100\100'
  11834. + ;;
  11835. +esac
  11836. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11837. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11838. +])# _LT_CHECK_SHELL_FEATURES
  11839. -# The build system.
  11840. -build_alias=$build_alias
  11841. -build=$build
  11842. -build_os=$build_os
  11843. -# An echo program that does not interpret backslashes.
  11844. -echo=$lt_echo
  11845. +# _LT_PROG_XSI_SHELLFNS
  11846. +# ---------------------
  11847. +# Bourne and XSI compatible variants of some useful shell functions.
  11848. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11849. +[case $xsi_shell in
  11850. + yes)
  11851. + cat << \_LT_EOF >> "$cfgfile"
  11852. +
  11853. +# func_dirname file append nondir_replacement
  11854. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11855. +# otherwise set result to NONDIR_REPLACEMENT.
  11856. +func_dirname ()
  11857. +{
  11858. + case ${1} in
  11859. + */*) func_dirname_result="${1%/*}${2}" ;;
  11860. + * ) func_dirname_result="${3}" ;;
  11861. + esac
  11862. +}
  11863. -# The archiver.
  11864. -AR=$lt_AR
  11865. -AR_FLAGS=$lt_AR_FLAGS
  11866. +# func_basename file
  11867. +func_basename ()
  11868. +{
  11869. + func_basename_result="${1##*/}"
  11870. +}
  11871. -# A C compiler.
  11872. -LTCC=$lt_LTCC
  11873. +# func_dirname_and_basename file append nondir_replacement
  11874. +# perform func_basename and func_dirname in a single function
  11875. +# call:
  11876. +# dirname: Compute the dirname of FILE. If nonempty,
  11877. +# add APPEND to the result, otherwise set result
  11878. +# to NONDIR_REPLACEMENT.
  11879. +# value returned in "$func_dirname_result"
  11880. +# basename: Compute filename of FILE.
  11881. +# value retuned in "$func_basename_result"
  11882. +# Implementation must be kept synchronized with func_dirname
  11883. +# and func_basename. For efficiency, we do not delegate to
  11884. +# those functions but instead duplicate the functionality here.
  11885. +func_dirname_and_basename ()
  11886. +{
  11887. + case ${1} in
  11888. + */*) func_dirname_result="${1%/*}${2}" ;;
  11889. + * ) func_dirname_result="${3}" ;;
  11890. + esac
  11891. + func_basename_result="${1##*/}"
  11892. +}
  11893. -# LTCC compiler flags.
  11894. -LTCFLAGS=$lt_LTCFLAGS
  11895. +# func_stripname prefix suffix name
  11896. +# strip PREFIX and SUFFIX off of NAME.
  11897. +# PREFIX and SUFFIX must not contain globbing or regex special
  11898. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11899. +# dot (in which case that matches only a dot).
  11900. +func_stripname ()
  11901. +{
  11902. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11903. + # positional parameters, so assign one to ordinary parameter first.
  11904. + func_stripname_result=${3}
  11905. + func_stripname_result=${func_stripname_result#"${1}"}
  11906. + func_stripname_result=${func_stripname_result%"${2}"}
  11907. +}
  11908. -# A language-specific compiler.
  11909. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  11910. +# func_opt_split
  11911. +func_opt_split ()
  11912. +{
  11913. + func_opt_split_opt=${1%%=*}
  11914. + func_opt_split_arg=${1#*=}
  11915. +}
  11916. -# Is the compiler the GNU C compiler?
  11917. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  11918. +# func_lo2o object
  11919. +func_lo2o ()
  11920. +{
  11921. + case ${1} in
  11922. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11923. + *) func_lo2o_result=${1} ;;
  11924. + esac
  11925. +}
  11926. -# An ERE matcher.
  11927. -EGREP=$lt_EGREP
  11928. +# func_xform libobj-or-source
  11929. +func_xform ()
  11930. +{
  11931. + func_xform_result=${1%.*}.lo
  11932. +}
  11933. -# The linker used to build libraries.
  11934. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  11935. +# func_arith arithmetic-term...
  11936. +func_arith ()
  11937. +{
  11938. + func_arith_result=$(( $[*] ))
  11939. +}
  11940. -# Whether we need hard or soft links.
  11941. -LN_S=$lt_LN_S
  11942. +# func_len string
  11943. +# STRING may not start with a hyphen.
  11944. +func_len ()
  11945. +{
  11946. + func_len_result=${#1}
  11947. +}
  11948. -# A BSD-compatible nm program.
  11949. -NM=$lt_NM
  11950. +_LT_EOF
  11951. + ;;
  11952. + *) # Bourne compatible functions.
  11953. + cat << \_LT_EOF >> "$cfgfile"
  11954. -# A symbol stripping program
  11955. -STRIP=$lt_STRIP
  11956. +# func_dirname file append nondir_replacement
  11957. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11958. +# otherwise set result to NONDIR_REPLACEMENT.
  11959. +func_dirname ()
  11960. +{
  11961. + # Extract subdirectory from the argument.
  11962. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11963. + if test "X$func_dirname_result" = "X${1}"; then
  11964. + func_dirname_result="${3}"
  11965. + else
  11966. + func_dirname_result="$func_dirname_result${2}"
  11967. + fi
  11968. +}
  11969. -# Used to examine libraries when file_magic_cmd begins "file"
  11970. -MAGIC_CMD=$MAGIC_CMD
  11971. +# func_basename file
  11972. +func_basename ()
  11973. +{
  11974. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11975. +}
  11976. -# Used on cygwin: DLL creation program.
  11977. -DLLTOOL="$DLLTOOL"
  11978. +dnl func_dirname_and_basename
  11979. +dnl A portable version of this function is already defined in general.m4sh
  11980. +dnl so there is no need for it here.
  11981. +
  11982. +# func_stripname prefix suffix name
  11983. +# strip PREFIX and SUFFIX off of NAME.
  11984. +# PREFIX and SUFFIX must not contain globbing or regex special
  11985. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11986. +# dot (in which case that matches only a dot).
  11987. +# func_strip_suffix prefix name
  11988. +func_stripname ()
  11989. +{
  11990. + case ${2} in
  11991. + .*) func_stripname_result=`$ECHO "X${3}" \
  11992. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11993. + *) func_stripname_result=`$ECHO "X${3}" \
  11994. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11995. + esac
  11996. +}
  11997. -# Used on cygwin: object dumper.
  11998. -OBJDUMP="$OBJDUMP"
  11999. +# sed scripts:
  12000. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  12001. +my_sed_long_arg='1s/^-[[^=]]*=//'
  12002. -# Used on cygwin: assembler.
  12003. -AS="$AS"
  12004. +# func_opt_split
  12005. +func_opt_split ()
  12006. +{
  12007. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  12008. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  12009. +}
  12010. -# The name of the directory that contains temporary libtool files.
  12011. -objdir=$objdir
  12012. +# func_lo2o object
  12013. +func_lo2o ()
  12014. +{
  12015. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  12016. +}
  12017. -# How to create reloadable object files.
  12018. -reload_flag=$lt_reload_flag
  12019. -reload_cmds=$lt_reload_cmds
  12020. +# func_xform libobj-or-source
  12021. +func_xform ()
  12022. +{
  12023. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  12024. +}
  12025. -# How to pass a linker flag through the compiler.
  12026. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12027. +# func_arith arithmetic-term...
  12028. +func_arith ()
  12029. +{
  12030. + func_arith_result=`expr "$[@]"`
  12031. +}
  12032. -# Object file suffix (normally "o").
  12033. -objext="$ac_objext"
  12034. +# func_len string
  12035. +# STRING may not start with a hyphen.
  12036. +func_len ()
  12037. +{
  12038. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  12039. +}
  12040. -# Old archive suffix (normally "a").
  12041. -libext="$libext"
  12042. +_LT_EOF
  12043. +esac
  12044. -# Shared library suffix (normally ".so").
  12045. -shrext_cmds='$shrext_cmds'
  12046. +case $lt_shell_append in
  12047. + yes)
  12048. + cat << \_LT_EOF >> "$cfgfile"
  12049. +
  12050. +# func_append var value
  12051. +# Append VALUE to the end of shell variable VAR.
  12052. +func_append ()
  12053. +{
  12054. + eval "$[1]+=\$[2]"
  12055. +}
  12056. +_LT_EOF
  12057. + ;;
  12058. + *)
  12059. + cat << \_LT_EOF >> "$cfgfile"
  12060. -# Executable file suffix (normally "").
  12061. -exeext="$exeext"
  12062. +# func_append var value
  12063. +# Append VALUE to the end of shell variable VAR.
  12064. +func_append ()
  12065. +{
  12066. + eval "$[1]=\$$[1]\$[2]"
  12067. +}
  12068. -# Additional compiler flags for building library objects.
  12069. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12070. -pic_mode=$pic_mode
  12071. +_LT_EOF
  12072. + ;;
  12073. + esac
  12074. +])
  12075. -# What is the maximum length of a command?
  12076. -max_cmd_len=$lt_cv_sys_max_cmd_len
  12077. +# Helper functions for option handling. -*- Autoconf -*-
  12078. +#
  12079. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12080. +# Written by Gary V. Vaughan, 2004
  12081. +#
  12082. +# This file is free software; the Free Software Foundation gives
  12083. +# unlimited permission to copy and/or distribute it, with or without
  12084. +# modifications, as long as this notice is preserved.
  12085. -# Does compiler simultaneously support -c and -o options?
  12086. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  12087. +# serial 6 ltoptions.m4
  12088. -# Must we lock files when doing compilation?
  12089. -need_locks=$lt_need_locks
  12090. +# This is to help aclocal find these macros, as it can't see m4_define.
  12091. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  12092. -# Do we need the lib prefix for modules?
  12093. -need_lib_prefix=$need_lib_prefix
  12094. -# Do we need a version for libraries?
  12095. -need_version=$need_version
  12096. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  12097. +# ------------------------------------------
  12098. +m4_define([_LT_MANGLE_OPTION],
  12099. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  12100. -# Whether dlopen is supported.
  12101. -dlopen_support=$enable_dlopen
  12102. -# Whether dlopen of programs is supported.
  12103. -dlopen_self=$enable_dlopen_self
  12104. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  12105. +# ---------------------------------------
  12106. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  12107. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  12108. +# saved as a flag.
  12109. +m4_define([_LT_SET_OPTION],
  12110. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  12111. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  12112. + _LT_MANGLE_DEFUN([$1], [$2]),
  12113. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  12114. +])
  12115. -# Whether dlopen of statically linked programs is supported.
  12116. -dlopen_self_static=$enable_dlopen_self_static
  12117. -# Compiler flag to prevent dynamic linking.
  12118. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  12119. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  12120. +# ------------------------------------------------------------
  12121. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  12122. +m4_define([_LT_IF_OPTION],
  12123. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  12124. -# Compiler flag to turn off builtin functions.
  12125. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  12126. -# Compiler flag to allow reflexive dlopens.
  12127. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  12128. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  12129. +# -------------------------------------------------------
  12130. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  12131. +# are set.
  12132. +m4_define([_LT_UNLESS_OPTIONS],
  12133. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12134. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  12135. + [m4_define([$0_found])])])[]dnl
  12136. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  12137. +])[]dnl
  12138. +])
  12139. -# Compiler flag to generate shared objects directly from archives.
  12140. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  12141. -# Compiler flag to generate thread-safe objects.
  12142. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  12143. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  12144. +# ----------------------------------------
  12145. +# OPTION-LIST is a space-separated list of Libtool options associated
  12146. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  12147. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  12148. +# the unknown option and exit.
  12149. +m4_defun([_LT_SET_OPTIONS],
  12150. +[# Set options
  12151. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  12152. + [_LT_SET_OPTION([$1], _LT_Option)])
  12153. +
  12154. +m4_if([$1],[LT_INIT],[
  12155. + dnl
  12156. + dnl Simply set some default values (i.e off) if boolean options were not
  12157. + dnl specified:
  12158. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  12159. + ])
  12160. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  12161. + ])
  12162. + dnl
  12163. + dnl If no reference was made to various pairs of opposing options, then
  12164. + dnl we run the default mode handler for the pair. For example, if neither
  12165. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  12166. + dnl archives by default:
  12167. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  12168. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  12169. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  12170. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  12171. + [_LT_ENABLE_FAST_INSTALL])
  12172. + ])
  12173. +])# _LT_SET_OPTIONS
  12174. -# Library versioning type.
  12175. -version_type=$version_type
  12176. -# Format of library name prefix.
  12177. -libname_spec=$lt_libname_spec
  12178. -# List of archive names. First name is the real one, the rest are links.
  12179. -# The last name is the one that the linker finds with -lNAME.
  12180. -library_names_spec=$lt_library_names_spec
  12181. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  12182. +# -----------------------------------------
  12183. +m4_define([_LT_MANGLE_DEFUN],
  12184. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  12185. -# The coded name of the library, if different from the real name.
  12186. -soname_spec=$lt_soname_spec
  12187. -# Commands used to build and install an old-style archive.
  12188. -RANLIB=$lt_RANLIB
  12189. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  12190. -old_postinstall_cmds=$lt_old_postinstall_cmds
  12191. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12192. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  12193. +# -----------------------------------------------
  12194. +m4_define([LT_OPTION_DEFINE],
  12195. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  12196. +])# LT_OPTION_DEFINE
  12197. -# Create an old-style archive from a shared archive.
  12198. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  12199. -# Create a temporary old-style archive to link instead of a shared archive.
  12200. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  12201. +# dlopen
  12202. +# ------
  12203. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  12204. +])
  12205. -# Commands used to build and install a shared archive.
  12206. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  12207. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  12208. -postinstall_cmds=$lt_postinstall_cmds
  12209. -postuninstall_cmds=$lt_postuninstall_cmds
  12210. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12211. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  12212. +AC_DIAGNOSE([obsolete],
  12213. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12214. +put the `dlopen' option into LT_INIT's first parameter.])
  12215. +])
  12216. -# Commands used to build a loadable module (assumed same as above if empty)
  12217. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  12218. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  12219. +dnl aclocal-1.4 backwards compatibility:
  12220. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12221. -# Commands to strip libraries.
  12222. -old_striplib=$lt_old_striplib
  12223. -striplib=$lt_striplib
  12224. -# Dependencies to place before the objects being linked to create a
  12225. -# shared library.
  12226. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  12227. +# win32-dll
  12228. +# ---------
  12229. +# Declare package support for building win32 dll's.
  12230. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  12231. +[enable_win32_dll=yes
  12232. -# Dependencies to place after the objects being linked to create a
  12233. -# shared library.
  12234. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  12235. +case $host in
  12236. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  12237. + AC_CHECK_TOOL(AS, as, false)
  12238. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12239. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12240. + ;;
  12241. +esac
  12242. -# Dependencies to place before the objects being linked to create a
  12243. -# shared library.
  12244. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  12245. +test -z "$AS" && AS=as
  12246. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  12247. -# Dependencies to place after the objects being linked to create a
  12248. -# shared library.
  12249. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  12250. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  12251. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12252. -# The directories searched by this compiler when creating a shared
  12253. -# library
  12254. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  12255. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12256. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12257. +])# win32-dll
  12258. -# The library search path used internally by the compiler when linking
  12259. -# a shared library.
  12260. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  12261. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12262. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12263. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12264. +AC_DIAGNOSE([obsolete],
  12265. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12266. +put the `win32-dll' option into LT_INIT's first parameter.])
  12267. +])
  12268. -# Method to check whether dependent libraries are shared objects.
  12269. -deplibs_check_method=$lt_deplibs_check_method
  12270. +dnl aclocal-1.4 backwards compatibility:
  12271. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12272. -# Command to use when deplibs_check_method == file_magic.
  12273. -file_magic_cmd=$lt_file_magic_cmd
  12274. -# Flag that allows shared libraries with undefined symbols to be built.
  12275. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12276. +# _LT_ENABLE_SHARED([DEFAULT])
  12277. +# ----------------------------
  12278. +# implement the --enable-shared flag, and supports the `shared' and
  12279. +# `disable-shared' LT_INIT options.
  12280. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12281. +m4_define([_LT_ENABLE_SHARED],
  12282. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12283. +AC_ARG_ENABLE([shared],
  12284. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12285. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12286. + [p=${PACKAGE-default}
  12287. + case $enableval in
  12288. + yes) enable_shared=yes ;;
  12289. + no) enable_shared=no ;;
  12290. + *)
  12291. + enable_shared=no
  12292. + # Look at the argument we got. We use all the common list separators.
  12293. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12294. + for pkg in $enableval; do
  12295. + IFS="$lt_save_ifs"
  12296. + if test "X$pkg" = "X$p"; then
  12297. + enable_shared=yes
  12298. + fi
  12299. + done
  12300. + IFS="$lt_save_ifs"
  12301. + ;;
  12302. + esac],
  12303. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12304. -# Flag that forces no undefined symbols.
  12305. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  12306. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12307. + [Whether or not to build shared libraries])
  12308. +])# _LT_ENABLE_SHARED
  12309. -# Commands used to finish a libtool library installation in a directory.
  12310. -finish_cmds=$lt_finish_cmds
  12311. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12312. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12313. -# Same as above, but a single script fragment to be evaled but not shown.
  12314. -finish_eval=$lt_finish_eval
  12315. +# Old names:
  12316. +AC_DEFUN([AC_ENABLE_SHARED],
  12317. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12318. +])
  12319. -# Take the output of nm and produce a listing of raw symbols and C names.
  12320. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12321. +AC_DEFUN([AC_DISABLE_SHARED],
  12322. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12323. +])
  12324. -# Transform the output of nm in a proper C declaration
  12325. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12326. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12327. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12328. -# Transform the output of nm in a C name address pair
  12329. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12330. +dnl aclocal-1.4 backwards compatibility:
  12331. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12332. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12333. -# This is the shared library runtime path variable.
  12334. -runpath_var=$runpath_var
  12335. -# This is the shared library path variable.
  12336. -shlibpath_var=$shlibpath_var
  12337. -# Is shlibpath searched before the hard-coded library search path?
  12338. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12339. +# _LT_ENABLE_STATIC([DEFAULT])
  12340. +# ----------------------------
  12341. +# implement the --enable-static flag, and support the `static' and
  12342. +# `disable-static' LT_INIT options.
  12343. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12344. +m4_define([_LT_ENABLE_STATIC],
  12345. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12346. +AC_ARG_ENABLE([static],
  12347. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12348. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12349. + [p=${PACKAGE-default}
  12350. + case $enableval in
  12351. + yes) enable_static=yes ;;
  12352. + no) enable_static=no ;;
  12353. + *)
  12354. + enable_static=no
  12355. + # Look at the argument we got. We use all the common list separators.
  12356. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12357. + for pkg in $enableval; do
  12358. + IFS="$lt_save_ifs"
  12359. + if test "X$pkg" = "X$p"; then
  12360. + enable_static=yes
  12361. + fi
  12362. + done
  12363. + IFS="$lt_save_ifs"
  12364. + ;;
  12365. + esac],
  12366. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12367. -# How to hardcode a shared library path into an executable.
  12368. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  12369. + _LT_DECL([build_old_libs], [enable_static], [0],
  12370. + [Whether or not to build static libraries])
  12371. +])# _LT_ENABLE_STATIC
  12372. -# Whether we should hardcode library paths into libraries.
  12373. -hardcode_into_libs=$hardcode_into_libs
  12374. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12375. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12376. -# Flag to hardcode \$libdir into a binary during linking.
  12377. -# This must work even if \$libdir does not exist.
  12378. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  12379. +# Old names:
  12380. +AC_DEFUN([AC_ENABLE_STATIC],
  12381. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12382. +])
  12383. -# If ld is used when linking, flag to hardcode \$libdir into
  12384. -# a binary during linking. This must work even if \$libdir does
  12385. -# not exist.
  12386. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  12387. +AC_DEFUN([AC_DISABLE_STATIC],
  12388. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12389. +])
  12390. -# Whether we need a single -rpath flag with a separated argument.
  12391. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  12392. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12393. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12394. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12395. -# resulting binary.
  12396. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  12397. +dnl aclocal-1.4 backwards compatibility:
  12398. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12399. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12400. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12401. -# resulting binary.
  12402. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  12403. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12404. -# the resulting binary.
  12405. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  12406. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  12407. -# and all subsequent libraries and executables linked against it.
  12408. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  12409. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12410. +# ----------------------------------
  12411. +# implement the --enable-fast-install flag, and support the `fast-install'
  12412. +# and `disable-fast-install' LT_INIT options.
  12413. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12414. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12415. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12416. +AC_ARG_ENABLE([fast-install],
  12417. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12418. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12419. + [p=${PACKAGE-default}
  12420. + case $enableval in
  12421. + yes) enable_fast_install=yes ;;
  12422. + no) enable_fast_install=no ;;
  12423. + *)
  12424. + enable_fast_install=no
  12425. + # Look at the argument we got. We use all the common list separators.
  12426. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12427. + for pkg in $enableval; do
  12428. + IFS="$lt_save_ifs"
  12429. + if test "X$pkg" = "X$p"; then
  12430. + enable_fast_install=yes
  12431. + fi
  12432. + done
  12433. + IFS="$lt_save_ifs"
  12434. + ;;
  12435. + esac],
  12436. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12437. -# Variables whose values should be saved in libtool wrapper scripts and
  12438. -# restored at relink time.
  12439. -variables_saved_for_relink="$variables_saved_for_relink"
  12440. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12441. + [Whether or not to optimize for fast installation])dnl
  12442. +])# _LT_ENABLE_FAST_INSTALL
  12443. +
  12444. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12445. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12446. +
  12447. +# Old names:
  12448. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12449. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12450. +AC_DIAGNOSE([obsolete],
  12451. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12452. +the `fast-install' option into LT_INIT's first parameter.])
  12453. +])
  12454. -# Whether libtool must link a program against all its dependency libraries.
  12455. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  12456. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12457. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12458. +AC_DIAGNOSE([obsolete],
  12459. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12460. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12461. +])
  12462. -# Compile-time system search path for libraries
  12463. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12464. +dnl aclocal-1.4 backwards compatibility:
  12465. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12466. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12467. -# Run-time system search path for libraries
  12468. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12469. -# Fix the shell variable \$srcfile for the compiler.
  12470. -fix_srcfile_path=$lt_fix_srcfile_path
  12471. +# _LT_WITH_PIC([MODE])
  12472. +# --------------------
  12473. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12474. +# LT_INIT options.
  12475. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12476. +m4_define([_LT_WITH_PIC],
  12477. +[AC_ARG_WITH([pic],
  12478. + [AS_HELP_STRING([--with-pic],
  12479. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12480. + [pic_mode="$withval"],
  12481. + [pic_mode=default])
  12482. -# Set to yes if exported symbols are required.
  12483. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  12484. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12485. -# The commands to list exported symbols.
  12486. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  12487. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12488. +])# _LT_WITH_PIC
  12489. -# The commands to extract the exported symbol list from a shared archive.
  12490. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12491. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12492. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12493. -# Symbols that should not be listed in the preloaded symbols.
  12494. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  12495. +# Old name:
  12496. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12497. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12498. +AC_DIAGNOSE([obsolete],
  12499. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12500. +put the `pic-only' option into LT_INIT's first parameter.])
  12501. +])
  12502. -# Symbols that must always be exported.
  12503. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  12504. +dnl aclocal-1.4 backwards compatibility:
  12505. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12506. -ifelse([$1],[],
  12507. -[# ### END LIBTOOL CONFIG],
  12508. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  12509. -__EOF__
  12510. +m4_define([_LTDL_MODE], [])
  12511. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12512. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12513. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12514. + [m4_define([_LTDL_MODE], [recursive])])
  12515. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12516. + [m4_define([_LTDL_MODE], [subproject])])
  12517. -ifelse([$1],[], [
  12518. - case $host_os in
  12519. - aix3*)
  12520. - cat <<\EOF >> "$cfgfile"
  12521. +m4_define([_LTDL_TYPE], [])
  12522. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12523. + [m4_define([_LTDL_TYPE], [installable])])
  12524. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12525. + [m4_define([_LTDL_TYPE], [convenience])])
  12526. -# AIX sometimes has problems with the GCC collect2 program. For some
  12527. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  12528. -# vanish in a puff of smoke.
  12529. -if test "X${COLLECT_NAMES+set}" != Xset; then
  12530. - COLLECT_NAMES=
  12531. - export COLLECT_NAMES
  12532. -fi
  12533. -EOF
  12534. - ;;
  12535. - esac
  12536. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12537. +#
  12538. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12539. +# Written by Gary V. Vaughan, 2004
  12540. +#
  12541. +# This file is free software; the Free Software Foundation gives
  12542. +# unlimited permission to copy and/or distribute it, with or without
  12543. +# modifications, as long as this notice is preserved.
  12544. - # We use sed instead of cat because bash on DJGPP gets confused if
  12545. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12546. - # text mode, it properly converts lines to CR/LF. This bash problem
  12547. - # is reportedly fixed, but why not run on old versions too?
  12548. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  12549. +# serial 6 ltsugar.m4
  12550. - mv -f "$cfgfile" "$ofile" || \
  12551. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12552. - chmod +x "$ofile"
  12553. -])
  12554. -else
  12555. - # If there is no Makefile yet, we rely on a make rule to execute
  12556. - # `config.status --recheck' to rerun these tests and create the
  12557. - # libtool script then.
  12558. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12559. - if test -f "$ltmain_in"; then
  12560. - test -f Makefile && make "$ltmain"
  12561. - fi
  12562. -fi
  12563. -])# AC_LIBTOOL_CONFIG
  12564. +# This is to help aclocal find these macros, as it can't see m4_define.
  12565. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12566. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  12567. -# -------------------------------------------
  12568. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  12569. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  12570. +# lt_join(SEP, ARG1, [ARG2...])
  12571. +# -----------------------------
  12572. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12573. +# associated separator.
  12574. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12575. +# versions in m4sugar had bugs.
  12576. +m4_define([lt_join],
  12577. +[m4_if([$#], [1], [],
  12578. + [$#], [2], [[$2]],
  12579. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12580. +m4_define([_lt_join],
  12581. +[m4_if([$#$2], [2], [],
  12582. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12583. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  12584. -if test "$GCC" = yes; then
  12585. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  12586. +# lt_car(LIST)
  12587. +# lt_cdr(LIST)
  12588. +# ------------
  12589. +# Manipulate m4 lists.
  12590. +# These macros are necessary as long as will still need to support
  12591. +# Autoconf-2.59 which quotes differently.
  12592. +m4_define([lt_car], [[$1]])
  12593. +m4_define([lt_cdr],
  12594. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12595. + [$#], 1, [],
  12596. + [m4_dquote(m4_shift($@))])])
  12597. +m4_define([lt_unquote], $1)
  12598. +
  12599. +
  12600. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12601. +# ------------------------------------------
  12602. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12603. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12604. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12605. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12606. +# than defined and empty).
  12607. +#
  12608. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12609. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12610. +m4_define([lt_append],
  12611. +[m4_define([$1],
  12612. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12613. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  12614. - lt_cv_prog_compiler_rtti_exceptions,
  12615. - [-fno-rtti -fno-exceptions], [],
  12616. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  12617. -fi
  12618. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  12619. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  12620. -# ---------------------------------
  12621. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  12622. -[AC_REQUIRE([AC_CANONICAL_HOST])
  12623. -AC_REQUIRE([LT_AC_PROG_SED])
  12624. -AC_REQUIRE([AC_PROG_NM])
  12625. -AC_REQUIRE([AC_OBJEXT])
  12626. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  12627. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  12628. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  12629. -[
  12630. -# These are sane defaults that work on at least a few old systems.
  12631. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  12632. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12633. +# ----------------------------------------------------------
  12634. +# Produce a SEP delimited list of all paired combinations of elements of
  12635. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12636. +# has the form PREFIXmINFIXSUFFIXn.
  12637. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12638. +m4_define([lt_combine],
  12639. +[m4_if(m4_eval([$# > 3]), [1],
  12640. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12641. +[[m4_foreach([_Lt_prefix], [$2],
  12642. + [m4_foreach([_Lt_suffix],
  12643. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12644. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12645. +
  12646. +
  12647. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12648. +# -----------------------------------------------------------------------
  12649. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12650. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12651. +m4_define([lt_if_append_uniq],
  12652. +[m4_ifdef([$1],
  12653. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12654. + [lt_append([$1], [$2], [$3])$4],
  12655. + [$5])],
  12656. + [lt_append([$1], [$2], [$3])$4])])
  12657. -# Character class describing NM global symbol codes.
  12658. -symcode='[[BCDEGRST]]'
  12659. -# Regexp to match symbols that can be accessed directly from C.
  12660. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  12661. +# lt_dict_add(DICT, KEY, VALUE)
  12662. +# -----------------------------
  12663. +m4_define([lt_dict_add],
  12664. +[m4_define([$1($2)], [$3])])
  12665. -# Transform an extracted symbol line into a proper C declaration
  12666. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  12667. -# Transform an extracted symbol line into symbol name and symbol address
  12668. -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'"
  12669. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12670. +# --------------------------------------------
  12671. +m4_define([lt_dict_add_subkey],
  12672. +[m4_define([$1($2:$3)], [$4])])
  12673. -# Define system-specific variables.
  12674. -case $host_os in
  12675. -aix*)
  12676. - symcode='[[BCDT]]'
  12677. - ;;
  12678. -cygwin* | mingw* | pw32*)
  12679. - symcode='[[ABCDGISTW]]'
  12680. - ;;
  12681. -hpux*) # Its linker distinguishes data from code symbols
  12682. - if test "$host_cpu" = ia64; then
  12683. - symcode='[[ABCDEGRST]]'
  12684. - fi
  12685. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12686. - 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'"
  12687. - ;;
  12688. -linux* | k*bsd*-gnu)
  12689. - if test "$host_cpu" = ia64; then
  12690. - symcode='[[ABCDGIRSTW]]'
  12691. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12692. - 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'"
  12693. - fi
  12694. - ;;
  12695. -irix* | nonstopux*)
  12696. - symcode='[[BCDEGRST]]'
  12697. - ;;
  12698. -osf*)
  12699. - symcode='[[BCDEGQRST]]'
  12700. - ;;
  12701. -solaris*)
  12702. - symcode='[[BDRT]]'
  12703. - ;;
  12704. -sco3.2v5*)
  12705. - symcode='[[DT]]'
  12706. - ;;
  12707. -sysv4.2uw2*)
  12708. - symcode='[[DT]]'
  12709. - ;;
  12710. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  12711. - symcode='[[ABDT]]'
  12712. - ;;
  12713. -sysv4)
  12714. - symcode='[[DFNSTU]]'
  12715. - ;;
  12716. -esac
  12717. -# Handle CRLF in mingw tool chain
  12718. -opt_cr=
  12719. -case $build_os in
  12720. -mingw*)
  12721. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  12722. - ;;
  12723. -esac
  12724. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12725. +# ----------------------------------
  12726. +m4_define([lt_dict_fetch],
  12727. +[m4_ifval([$3],
  12728. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12729. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12730. -# If we're using GNU nm, then use its standard symbol codes.
  12731. -case `$NM -V 2>&1` in
  12732. -*GNU* | *'with BFD'*)
  12733. - symcode='[[ABCDGIRSTW]]' ;;
  12734. -esac
  12735. -# Try without a prefix undercore, then with it.
  12736. -for ac_symprfx in "" "_"; do
  12737. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12738. +# -----------------------------------------------------------------
  12739. +m4_define([lt_if_dict_fetch],
  12740. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12741. + [$5],
  12742. + [$6])])
  12743. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  12744. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  12745. - # Write the raw and C identifiers.
  12746. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  12747. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12748. +# --------------------------------------------------------------
  12749. +m4_define([lt_dict_filter],
  12750. +[m4_if([$5], [], [],
  12751. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12752. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12753. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12754. +])
  12755. - # Check to see that the pipe works correctly.
  12756. - pipe_works=no
  12757. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12758. +#
  12759. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12760. +# Written by Scott James Remnant, 2004
  12761. +#
  12762. +# This file is free software; the Free Software Foundation gives
  12763. +# unlimited permission to copy and/or distribute it, with or without
  12764. +# modifications, as long as this notice is preserved.
  12765. - rm -f conftest*
  12766. - cat > conftest.$ac_ext <<EOF
  12767. -#ifdef __cplusplus
  12768. -extern "C" {
  12769. -#endif
  12770. -char nm_test_var;
  12771. -void nm_test_func(){}
  12772. -#ifdef __cplusplus
  12773. -}
  12774. -#endif
  12775. -int main(){nm_test_var='a';nm_test_func();return(0);}
  12776. -EOF
  12777. +# Generated from ltversion.in.
  12778. - if AC_TRY_EVAL(ac_compile); then
  12779. - # Now try to grab the symbols.
  12780. - nlist=conftest.nm
  12781. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  12782. - # Try sorting and uniquifying the output.
  12783. - if sort "$nlist" | uniq > "$nlist"T; then
  12784. - mv -f "$nlist"T "$nlist"
  12785. - else
  12786. - rm -f "$nlist"T
  12787. - fi
  12788. +# serial 3017 ltversion.m4
  12789. +# This file is part of GNU Libtool
  12790. - # Make sure that we snagged all the symbols we need.
  12791. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  12792. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  12793. - cat <<EOF > conftest.$ac_ext
  12794. -#ifdef __cplusplus
  12795. -extern "C" {
  12796. -#endif
  12797. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12798. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12799. -EOF
  12800. - # Now generate the symbol file.
  12801. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  12802. +AC_DEFUN([LTVERSION_VERSION],
  12803. +[macro_version='2.2.6b'
  12804. +macro_revision='1.3017'
  12805. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12806. +_LT_DECL(, macro_revision, 0)
  12807. +])
  12808. - cat <<EOF >> conftest.$ac_ext
  12809. -#if defined (__STDC__) && __STDC__
  12810. -# define lt_ptr_t void *
  12811. -#else
  12812. -# define lt_ptr_t char *
  12813. -# define const
  12814. -#endif
  12815. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12816. +#
  12817. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12818. +# Written by Scott James Remnant, 2004.
  12819. +#
  12820. +# This file is free software; the Free Software Foundation gives
  12821. +# unlimited permission to copy and/or distribute it, with or without
  12822. +# modifications, as long as this notice is preserved.
  12823. +
  12824. +# serial 4 lt~obsolete.m4
  12825. +
  12826. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12827. +#
  12828. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12829. +# which have later been changed to m4_define as they aren't part of the
  12830. +# exported API, or moved to Autoconf or Automake where they belong.
  12831. +#
  12832. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12833. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12834. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12835. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12836. +# and doesn't know about Autoconf macros at all.)
  12837. +#
  12838. +# So we provide this file, which has a silly filename so it's always
  12839. +# included after everything else. This provides aclocal with the
  12840. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12841. +# because those macros already exist, or will be overwritten later.
  12842. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12843. +#
  12844. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12845. +# Yes, that means every name once taken will need to remain here until
  12846. +# we give up compatibility with versions before 1.7, at which point
  12847. +# we need to keep only those names which we still refer to.
  12848. +
  12849. +# This is to help aclocal find these macros, as it can't see m4_define.
  12850. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12851. +
  12852. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12853. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12854. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12855. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12856. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12857. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12858. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12859. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12860. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12861. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12862. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12863. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12864. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12865. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12866. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12867. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12868. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12869. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12870. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12871. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12872. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12873. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12874. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12875. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12876. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12877. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12878. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12879. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12880. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12881. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12882. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12883. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12884. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12885. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12886. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12887. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12888. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12889. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12890. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12891. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12892. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12893. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12894. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12895. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12896. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12897. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12898. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12899. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12900. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12901. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12902. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12903. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12904. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12905. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12906. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12907. -/* The mapping between symbol names and symbols. */
  12908. -const struct {
  12909. - const char *name;
  12910. - lt_ptr_t address;
  12911. -}
  12912. -lt_preloaded_symbols[[]] =
  12913. -{
  12914. -EOF
  12915. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  12916. - cat <<\EOF >> conftest.$ac_ext
  12917. - {0, (lt_ptr_t) 0}
  12918. -};
  12919. +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  12920. +#
  12921. +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  12922. +#
  12923. +# This program is free software; you can redistribute it and/or modify
  12924. +# it under the terms of the GNU General Public License as published by
  12925. +# the Free Software Foundation; either version 2 of the License, or
  12926. +# (at your option) any later version.
  12927. +#
  12928. +# This program is distributed in the hope that it will be useful, but
  12929. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  12930. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12931. +# General Public License for more details.
  12932. +#
  12933. +# You should have received a copy of the GNU General Public License
  12934. +# along with this program; if not, write to the Free Software
  12935. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  12936. +#
  12937. +# As a special exception to the GNU General Public License, if you
  12938. +# distribute this file as part of a program that contains a
  12939. +# configuration script generated by Autoconf, you may include it under
  12940. +# the same distribution terms that you use for the rest of that program.
  12941. -#ifdef __cplusplus
  12942. -}
  12943. -#endif
  12944. -EOF
  12945. - # Now try linking the two files.
  12946. - mv conftest.$ac_objext conftstm.$ac_objext
  12947. - lt_save_LIBS="$LIBS"
  12948. - lt_save_CFLAGS="$CFLAGS"
  12949. - LIBS="conftstm.$ac_objext"
  12950. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  12951. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  12952. - pipe_works=yes
  12953. - fi
  12954. - LIBS="$lt_save_LIBS"
  12955. - CFLAGS="$lt_save_CFLAGS"
  12956. +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
  12957. +# ----------------------------------
  12958. +AC_DEFUN([PKG_PROG_PKG_CONFIG],
  12959. +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  12960. +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  12961. +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  12962. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12963. + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  12964. +fi
  12965. +if test -n "$PKG_CONFIG"; then
  12966. + _pkg_min_version=m4_default([$1], [0.9.0])
  12967. + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  12968. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12969. + AC_MSG_RESULT([yes])
  12970. else
  12971. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  12972. + AC_MSG_RESULT([no])
  12973. + PKG_CONFIG=""
  12974. fi
  12975. - else
  12976. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  12977. - fi
  12978. +
  12979. +fi[]dnl
  12980. +])# PKG_PROG_PKG_CONFIG
  12981. +
  12982. +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  12983. +#
  12984. +# Check to see whether a particular set of modules exists. Similar
  12985. +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
  12986. +#
  12987. +#
  12988. +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
  12989. +# this or PKG_CHECK_MODULES is called, or make sure to call
  12990. +# PKG_CHECK_EXISTS manually
  12991. +# --------------------------------------------------------------
  12992. +AC_DEFUN([PKG_CHECK_EXISTS],
  12993. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  12994. +if test -n "$PKG_CONFIG" && \
  12995. + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  12996. + m4_ifval([$2], [$2], [:])
  12997. +m4_ifvaln([$3], [else
  12998. + $3])dnl
  12999. +fi])
  13000. +
  13001. +
  13002. +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  13003. +# ---------------------------------------------
  13004. +m4_define([_PKG_CONFIG],
  13005. +[if test -n "$PKG_CONFIG"; then
  13006. + if test -n "$$1"; then
  13007. + pkg_cv_[]$1="$$1"
  13008. else
  13009. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  13010. + PKG_CHECK_EXISTS([$3],
  13011. + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  13012. + [pkg_failed=yes])
  13013. fi
  13014. - else
  13015. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  13016. - cat conftest.$ac_ext >&5
  13017. - fi
  13018. - rm -rf conftest* conftst*
  13019. +else
  13020. + pkg_failed=untried
  13021. +fi[]dnl
  13022. +])# _PKG_CONFIG
  13023. - # Do not use the global_symbol_pipe unless it works.
  13024. - if test "$pipe_works" = yes; then
  13025. - break
  13026. - else
  13027. - lt_cv_sys_global_symbol_pipe=
  13028. - fi
  13029. -done
  13030. -])
  13031. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  13032. - lt_cv_sys_global_symbol_to_cdecl=
  13033. +# _PKG_SHORT_ERRORS_SUPPORTED
  13034. +# -----------------------------
  13035. +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  13036. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  13037. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13038. + _pkg_short_errors_supported=yes
  13039. +else
  13040. + _pkg_short_errors_supported=no
  13041. +fi[]dnl
  13042. +])# _PKG_SHORT_ERRORS_SUPPORTED
  13043. +
  13044. +
  13045. +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  13046. +# [ACTION-IF-NOT-FOUND])
  13047. +#
  13048. +#
  13049. +# Note that if there is a possibility the first call to
  13050. +# PKG_CHECK_MODULES might not happen, you should be sure to include an
  13051. +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  13052. +#
  13053. +#
  13054. +# --------------------------------------------------------------
  13055. +AC_DEFUN([PKG_CHECK_MODULES],
  13056. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  13057. +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  13058. +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  13059. +
  13060. +pkg_failed=no
  13061. +AC_MSG_CHECKING([for $1])
  13062. +
  13063. +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  13064. +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
  13065. +
  13066. +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  13067. +and $1[]_LIBS to avoid the need to call pkg-config.
  13068. +See the pkg-config man page for more details.])
  13069. +
  13070. +if test $pkg_failed = yes; then
  13071. + _PKG_SHORT_ERRORS_SUPPORTED
  13072. + if test $_pkg_short_errors_supported = yes; then
  13073. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  13074. + else
  13075. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  13076. + fi
  13077. + # Put the nasty error message in config.log where it belongs
  13078. + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  13079. +
  13080. + ifelse([$4], , [AC_MSG_ERROR(dnl
  13081. +[Package requirements ($2) were not met:
  13082. +
  13083. +$$1_PKG_ERRORS
  13084. +
  13085. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13086. +installed software in a non-standard prefix.
  13087. +
  13088. +_PKG_TEXT
  13089. +])],
  13090. + [AC_MSG_RESULT([no])
  13091. + $4])
  13092. +elif test $pkg_failed = untried; then
  13093. + ifelse([$4], , [AC_MSG_FAILURE(dnl
  13094. +[The pkg-config script could not be found or is too old. Make sure it
  13095. +is in your PATH or set the PKG_CONFIG environment variable to the full
  13096. +path to pkg-config.
  13097. +
  13098. +_PKG_TEXT
  13099. +
  13100. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
  13101. + [$4])
  13102. +else
  13103. + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  13104. + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  13105. + AC_MSG_RESULT([yes])
  13106. + ifelse([$3], , :, [$3])
  13107. +fi[]dnl
  13108. +])# PKG_CHECK_MODULES
  13109. +
  13110. +dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
  13111. +dnl
  13112. +dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
  13113. +dnl
  13114. +dnl Permission is hereby granted, free of charge, to any person obtaining a
  13115. +dnl copy of this software and associated documentation files (the "Software"),
  13116. +dnl to deal in the Software without restriction, including without limitation
  13117. +dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
  13118. +dnl and/or sell copies of the Software, and to permit persons to whom the
  13119. +dnl Software is furnished to do so, subject to the following conditions:
  13120. +dnl
  13121. +dnl The above copyright notice and this permission notice (including the next
  13122. +dnl paragraph) shall be included in all copies or substantial portions of the
  13123. +dnl Software.
  13124. +dnl
  13125. +dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13126. +dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13127. +dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  13128. +dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  13129. +dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  13130. +dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  13131. +dnl DEALINGS IN THE SOFTWARE.
  13132. +
  13133. +# XORG_MACROS_VERSION(required-version)
  13134. +# -------------------------------------
  13135. +# Minimum version: 1.1.0
  13136. +#
  13137. +# If you're using a macro added in Version 1.1 or newer, include this in
  13138. +# your configure.ac with the minimum required version, such as:
  13139. +# XORG_MACROS_VERSION(1.1)
  13140. +#
  13141. +# To ensure that this macro is defined, also add:
  13142. +# m4_ifndef([XORG_MACROS_VERSION],
  13143. +# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
  13144. +#
  13145. +#
  13146. +# See the "minimum version" comment for each macro you use to see what
  13147. +# version you require.
  13148. +m4_defun([XORG_MACROS_VERSION],[
  13149. +m4_define([vers_have], [1.5.0])
  13150. +m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
  13151. +m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
  13152. +m4_if(m4_cmp(maj_have, maj_needed), 0,,
  13153. + [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
  13154. +m4_if(m4_version_compare(vers_have, [$1]), -1,
  13155. + [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
  13156. +m4_undefine([vers_have])
  13157. +m4_undefine([maj_have])
  13158. +m4_undefine([maj_needed])
  13159. +]) # XORG_MACROS_VERSION
  13160. +
  13161. +# XORG_PROG_RAWCPP()
  13162. +# ------------------
  13163. +# Minimum version: 1.0.0
  13164. +#
  13165. +# Find cpp program and necessary flags for use in pre-processing text files
  13166. +# such as man pages and config files
  13167. +AC_DEFUN([XORG_PROG_RAWCPP],[
  13168. +AC_REQUIRE([AC_PROG_CPP])
  13169. +AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
  13170. + [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
  13171. +
  13172. +# Check for flag to avoid builtin definitions - assumes unix is predefined,
  13173. +# which is not the best choice for supporting other OS'es, but covers most
  13174. +# of the ones we need for now.
  13175. +AC_MSG_CHECKING([if $RAWCPP requires -undef])
  13176. +AC_LANG_CONFTEST([Does cpp redefine unix ?])
  13177. +if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  13178. + AC_MSG_RESULT([no])
  13179. +else
  13180. + if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  13181. + RAWCPPFLAGS=-undef
  13182. + AC_MSG_RESULT([yes])
  13183. + # under Cygwin unix is still defined even with -undef
  13184. + elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  13185. + RAWCPPFLAGS="-undef -ansi"
  13186. + AC_MSG_RESULT([yes, with -ansi])
  13187. + else
  13188. + AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
  13189. + fi
  13190. fi
  13191. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  13192. - AC_MSG_RESULT(failed)
  13193. +rm -f conftest.$ac_ext
  13194. +
  13195. +AC_MSG_CHECKING([if $RAWCPP requires -traditional])
  13196. +AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
  13197. +if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  13198. + AC_MSG_RESULT([no])
  13199. else
  13200. - AC_MSG_RESULT(ok)
  13201. + if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  13202. + RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
  13203. + AC_MSG_RESULT([yes])
  13204. + else
  13205. + AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
  13206. + fi
  13207. fi
  13208. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  13209. +rm -f conftest.$ac_ext
  13210. +AC_SUBST(RAWCPPFLAGS)
  13211. +]) # XORG_PROG_RAWCPP
  13212. +# XORG_MANPAGE_SECTIONS()
  13213. +# -----------------------
  13214. +# Minimum version: 1.0.0
  13215. +#
  13216. +# Determine which sections man pages go in for the different man page types
  13217. +# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
  13218. +# Not sure if there's any better way than just hardcoding by OS name.
  13219. +# Override default settings by setting environment variables
  13220. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  13221. -# ---------------------------------------
  13222. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  13223. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  13224. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  13225. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  13226. +AC_DEFUN([XORG_MANPAGE_SECTIONS],[
  13227. +AC_REQUIRE([AC_CANONICAL_HOST])
  13228. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  13229. - ifelse([$1],[CXX],[
  13230. - # C++ specific cases for pic, static, wl, etc.
  13231. - if test "$GXX" = yes; then
  13232. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13233. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  13234. +if test x$APP_MAN_SUFFIX = x ; then
  13235. + APP_MAN_SUFFIX=1
  13236. +fi
  13237. +if test x$APP_MAN_DIR = x ; then
  13238. + APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  13239. +fi
  13240. - case $host_os in
  13241. - aix*)
  13242. - # All AIX code is PIC.
  13243. - if test "$host_cpu" = ia64; then
  13244. - # AIX 5 now supports IA64 processor
  13245. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13246. - fi
  13247. - ;;
  13248. - amigaos*)
  13249. - # FIXME: we need at least 68020 code to build shared libraries, but
  13250. - # adding the `-m68020' flag to GCC prevents building anything better,
  13251. - # like `-m68040'.
  13252. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  13253. - ;;
  13254. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13255. - # PIC is the default for these OSes.
  13256. - ;;
  13257. - mingw* | cygwin* | os2* | pw32*)
  13258. - # This hack is so that the source file can tell whether it is being
  13259. - # built for inclusion in a dll (and should export symbols for example).
  13260. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13261. - # (--disable-auto-import) libraries
  13262. - m4_if([$1], [GCJ], [],
  13263. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  13264. - ;;
  13265. - darwin* | rhapsody*)
  13266. - # PIC is the default on this platform
  13267. - # Common symbols not allowed in MH_DYLIB files
  13268. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  13269. - ;;
  13270. - *djgpp*)
  13271. - # DJGPP does not support shared libraries at all
  13272. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  13273. - ;;
  13274. - interix[[3-9]]*)
  13275. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13276. - # Instead, we relocate shared libraries at runtime.
  13277. - ;;
  13278. - sysv4*MP*)
  13279. - if test -d /usr/nec; then
  13280. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  13281. - fi
  13282. - ;;
  13283. - hpux*)
  13284. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13285. - # not for PA HP-UX.
  13286. - case $host_cpu in
  13287. - hppa*64*|ia64*)
  13288. - ;;
  13289. - *)
  13290. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  13291. - ;;
  13292. - esac
  13293. - ;;
  13294. - *)
  13295. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  13296. - ;;
  13297. +if test x$LIB_MAN_SUFFIX = x ; then
  13298. + LIB_MAN_SUFFIX=3
  13299. +fi
  13300. +if test x$LIB_MAN_DIR = x ; then
  13301. + LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  13302. +fi
  13303. +
  13304. +if test x$FILE_MAN_SUFFIX = x ; then
  13305. + case $host_os in
  13306. + solaris*) FILE_MAN_SUFFIX=4 ;;
  13307. + *) FILE_MAN_SUFFIX=5 ;;
  13308. esac
  13309. - else
  13310. +fi
  13311. +if test x$FILE_MAN_DIR = x ; then
  13312. + FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  13313. +fi
  13314. +
  13315. +if test x$MISC_MAN_SUFFIX = x ; then
  13316. case $host_os in
  13317. - aix[[4-9]]*)
  13318. - # All AIX code is PIC.
  13319. - if test "$host_cpu" = ia64; then
  13320. - # AIX 5 now supports IA64 processor
  13321. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13322. - else
  13323. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  13324. - fi
  13325. - ;;
  13326. - chorus*)
  13327. - case $cc_basename in
  13328. - cxch68*)
  13329. - # Green Hills C++ Compiler
  13330. - # _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"
  13331. - ;;
  13332. - esac
  13333. - ;;
  13334. - darwin*)
  13335. - # PIC is the default on this platform
  13336. - # Common symbols not allowed in MH_DYLIB files
  13337. - case $cc_basename in
  13338. - xlc*)
  13339. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  13340. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13341. - ;;
  13342. - esac
  13343. - ;;
  13344. - dgux*)
  13345. - case $cc_basename in
  13346. - ec++*)
  13347. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13348. - ;;
  13349. - ghcx*)
  13350. - # Green Hills C++ Compiler
  13351. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  13352. - ;;
  13353. - *)
  13354. - ;;
  13355. - esac
  13356. - ;;
  13357. - freebsd* | dragonfly*)
  13358. - # FreeBSD uses GNU C++
  13359. - ;;
  13360. - hpux9* | hpux10* | hpux11*)
  13361. - case $cc_basename in
  13362. - CC*)
  13363. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13364. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  13365. - if test "$host_cpu" != ia64; then
  13366. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  13367. - fi
  13368. - ;;
  13369. - aCC*)
  13370. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13371. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  13372. - case $host_cpu in
  13373. - hppa*64*|ia64*)
  13374. - # +Z the default
  13375. - ;;
  13376. - *)
  13377. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  13378. - ;;
  13379. - esac
  13380. - ;;
  13381. - *)
  13382. - ;;
  13383. - esac
  13384. - ;;
  13385. - interix*)
  13386. - # This is c89, which is MS Visual C++ (no shared libs)
  13387. - # Anyone wants to do a port?
  13388. - ;;
  13389. - irix5* | irix6* | nonstopux*)
  13390. - case $cc_basename in
  13391. - CC*)
  13392. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13393. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  13394. - # CC pic flag -KPIC is the default.
  13395. - ;;
  13396. - *)
  13397. - ;;
  13398. - esac
  13399. - ;;
  13400. - linux* | k*bsd*-gnu)
  13401. - case $cc_basename in
  13402. - KCC*)
  13403. - # KAI C++ Compiler
  13404. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  13405. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  13406. - ;;
  13407. - icpc* | ecpc*)
  13408. - # Intel C++
  13409. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13410. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13411. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  13412. - ;;
  13413. - pgCC* | pgcpp*)
  13414. - # Portland Group C++ compiler.
  13415. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13416. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  13417. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13418. - ;;
  13419. - cxx*)
  13420. - # Compaq C++
  13421. - # Make sure the PIC flag is empty. It appears that all Alpha
  13422. - # Linux and Compaq Tru64 Unix objects are PIC.
  13423. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  13424. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  13425. - ;;
  13426. - *)
  13427. - case `$CC -V 2>&1 | sed 5q` in
  13428. - *Sun\ C*)
  13429. - # Sun C++ 5.9
  13430. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13431. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13432. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  13433. - ;;
  13434. - esac
  13435. - ;;
  13436. - esac
  13437. - ;;
  13438. - lynxos*)
  13439. - ;;
  13440. - m88k*)
  13441. - ;;
  13442. - mvs*)
  13443. - case $cc_basename in
  13444. - cxx*)
  13445. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  13446. - ;;
  13447. - *)
  13448. - ;;
  13449. - esac
  13450. - ;;
  13451. - netbsd*)
  13452. - ;;
  13453. - osf3* | osf4* | osf5*)
  13454. - case $cc_basename in
  13455. - KCC*)
  13456. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  13457. - ;;
  13458. - RCC*)
  13459. - # Rational C++ 2.4.1
  13460. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  13461. - ;;
  13462. - cxx*)
  13463. - # Digital/Compaq C++
  13464. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13465. - # Make sure the PIC flag is empty. It appears that all Alpha
  13466. - # Linux and Compaq Tru64 Unix objects are PIC.
  13467. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  13468. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  13469. - ;;
  13470. - *)
  13471. - ;;
  13472. - esac
  13473. - ;;
  13474. - psos*)
  13475. - ;;
  13476. - solaris*)
  13477. - case $cc_basename in
  13478. - CC*)
  13479. - # Sun C++ 4.2, 5.x and Centerline C++
  13480. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13481. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13482. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  13483. - ;;
  13484. - gcx*)
  13485. - # Green Hills C++ Compiler
  13486. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  13487. - ;;
  13488. - *)
  13489. - ;;
  13490. - esac
  13491. - ;;
  13492. - sunos4*)
  13493. - case $cc_basename in
  13494. - CC*)
  13495. - # Sun C++ 4.x
  13496. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  13497. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13498. - ;;
  13499. - lcc*)
  13500. - # Lucid
  13501. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  13502. - ;;
  13503. - *)
  13504. - ;;
  13505. - esac
  13506. - ;;
  13507. - tandem*)
  13508. - case $cc_basename in
  13509. - NCC*)
  13510. - # NonStop-UX NCC 3.20
  13511. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13512. - ;;
  13513. - *)
  13514. - ;;
  13515. - esac
  13516. - ;;
  13517. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13518. - case $cc_basename in
  13519. - CC*)
  13520. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13521. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13522. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13523. - ;;
  13524. - esac
  13525. - ;;
  13526. - vxworks*)
  13527. - ;;
  13528. - *)
  13529. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  13530. - ;;
  13531. + solaris*) MISC_MAN_SUFFIX=5 ;;
  13532. + *) MISC_MAN_SUFFIX=7 ;;
  13533. esac
  13534. - fi
  13535. -],
  13536. -[
  13537. - if test "$GCC" = yes; then
  13538. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13539. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  13540. +fi
  13541. +if test x$MISC_MAN_DIR = x ; then
  13542. + MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  13543. +fi
  13544. +
  13545. +if test x$DRIVER_MAN_SUFFIX = x ; then
  13546. + case $host_os in
  13547. + solaris*) DRIVER_MAN_SUFFIX=7 ;;
  13548. + *) DRIVER_MAN_SUFFIX=4 ;;
  13549. + esac
  13550. +fi
  13551. +if test x$DRIVER_MAN_DIR = x ; then
  13552. + DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  13553. +fi
  13554. +
  13555. +if test x$ADMIN_MAN_SUFFIX = x ; then
  13556. + case $host_os in
  13557. + solaris*) ADMIN_MAN_SUFFIX=1m ;;
  13558. + *) ADMIN_MAN_SUFFIX=8 ;;
  13559. + esac
  13560. +fi
  13561. +if test x$ADMIN_MAN_DIR = x ; then
  13562. + ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  13563. +fi
  13564. +
  13565. +
  13566. +AC_SUBST([APP_MAN_SUFFIX])
  13567. +AC_SUBST([LIB_MAN_SUFFIX])
  13568. +AC_SUBST([FILE_MAN_SUFFIX])
  13569. +AC_SUBST([MISC_MAN_SUFFIX])
  13570. +AC_SUBST([DRIVER_MAN_SUFFIX])
  13571. +AC_SUBST([ADMIN_MAN_SUFFIX])
  13572. +AC_SUBST([APP_MAN_DIR])
  13573. +AC_SUBST([LIB_MAN_DIR])
  13574. +AC_SUBST([FILE_MAN_DIR])
  13575. +AC_SUBST([MISC_MAN_DIR])
  13576. +AC_SUBST([DRIVER_MAN_DIR])
  13577. +AC_SUBST([ADMIN_MAN_DIR])
  13578. +]) # XORG_MANPAGE_SECTIONS
  13579. +
  13580. +# XORG_CHECK_LINUXDOC
  13581. +# -------------------
  13582. +# Minimum version: 1.0.0
  13583. +#
  13584. +# Defines the variable MAKE_TEXT if the necessary tools and
  13585. +# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
  13586. +# Whether or not the necessary tools and files are found can be checked
  13587. +# with the AM_CONDITIONAL "BUILD_LINUXDOC"
  13588. +AC_DEFUN([XORG_CHECK_LINUXDOC],[
  13589. +if test x$XORG_SGML_PATH = x ; then
  13590. + XORG_SGML_PATH=$prefix/share/sgml
  13591. +fi
  13592. +HAVE_DEFS_ENT=
  13593. +
  13594. +if test x"$cross_compiling" = x"yes" ; then
  13595. + HAVE_DEFS_ENT=no
  13596. +else
  13597. + AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  13598. +fi
  13599. +
  13600. +AC_PATH_PROG(LINUXDOC, linuxdoc)
  13601. +AC_PATH_PROG(PS2PDF, ps2pdf)
  13602. +
  13603. +AC_MSG_CHECKING([Whether to build documentation])
  13604. +
  13605. +if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
  13606. + BUILDDOC=yes
  13607. +else
  13608. + BUILDDOC=no
  13609. +fi
  13610. +
  13611. +AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
  13612. +
  13613. +AC_MSG_RESULT([$BUILDDOC])
  13614. +
  13615. +AC_MSG_CHECKING([Whether to build pdf documentation])
  13616. +
  13617. +if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
  13618. + BUILDPDFDOC=yes
  13619. +else
  13620. + BUILDPDFDOC=no
  13621. +fi
  13622. +
  13623. +AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  13624. +
  13625. +AC_MSG_RESULT([$BUILDPDFDOC])
  13626. +
  13627. +MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
  13628. +MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
  13629. +MAKE_PDF="$PS2PDF"
  13630. +MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
  13631. - case $host_os in
  13632. - aix*)
  13633. - # All AIX code is PIC.
  13634. - if test "$host_cpu" = ia64; then
  13635. - # AIX 5 now supports IA64 processor
  13636. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13637. - fi
  13638. - ;;
  13639. +AC_SUBST(MAKE_TEXT)
  13640. +AC_SUBST(MAKE_PS)
  13641. +AC_SUBST(MAKE_PDF)
  13642. +AC_SUBST(MAKE_HTML)
  13643. +]) # XORG_CHECK_LINUXDOC
  13644. - amigaos*)
  13645. - # FIXME: we need at least 68020 code to build shared libraries, but
  13646. - # adding the `-m68020' flag to GCC prevents building anything better,
  13647. - # like `-m68040'.
  13648. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  13649. - ;;
  13650. +# XORG_CHECK_DOCBOOK
  13651. +# -------------------
  13652. +# Minimum version: 1.0.0
  13653. +#
  13654. +# Checks for the ability to build output formats from SGML DocBook source.
  13655. +# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
  13656. +# indicates whether the necessary tools and files are found and, if set,
  13657. +# $(MAKE_XXX) blah.sgml will produce blah.xxx.
  13658. +AC_DEFUN([XORG_CHECK_DOCBOOK],[
  13659. +if test x$XORG_SGML_PATH = x ; then
  13660. + XORG_SGML_PATH=$prefix/share/sgml
  13661. +fi
  13662. +HAVE_DEFS_ENT=
  13663. +BUILDTXTDOC=no
  13664. +BUILDPDFDOC=no
  13665. +BUILDPSDOC=no
  13666. +BUILDHTMLDOC=no
  13667. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13668. - # PIC is the default for these OSes.
  13669. - ;;
  13670. +AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  13671. - mingw* | cygwin* | pw32* | os2*)
  13672. - # This hack is so that the source file can tell whether it is being
  13673. - # built for inclusion in a dll (and should export symbols for example).
  13674. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13675. - # (--disable-auto-import) libraries
  13676. - m4_if([$1], [GCJ], [],
  13677. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  13678. - ;;
  13679. +AC_PATH_PROG(DOCBOOKPS, docbook2ps)
  13680. +AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
  13681. +AC_PATH_PROG(DOCBOOKHTML, docbook2html)
  13682. +AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
  13683. - darwin* | rhapsody*)
  13684. - # PIC is the default on this platform
  13685. - # Common symbols not allowed in MH_DYLIB files
  13686. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  13687. - ;;
  13688. +AC_MSG_CHECKING([Whether to build text documentation])
  13689. +if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
  13690. + test x$BUILD_TXTDOC != xno; then
  13691. + BUILDTXTDOC=yes
  13692. +fi
  13693. +AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
  13694. +AC_MSG_RESULT([$BUILDTXTDOC])
  13695. - interix[[3-9]]*)
  13696. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13697. - # Instead, we relocate shared libraries at runtime.
  13698. - ;;
  13699. +AC_MSG_CHECKING([Whether to build PDF documentation])
  13700. +if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
  13701. + test x$BUILD_PDFDOC != xno; then
  13702. + BUILDPDFDOC=yes
  13703. +fi
  13704. +AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  13705. +AC_MSG_RESULT([$BUILDPDFDOC])
  13706. - msdosdjgpp*)
  13707. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  13708. - # on systems that don't support them.
  13709. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  13710. - enable_shared=no
  13711. - ;;
  13712. +AC_MSG_CHECKING([Whether to build PostScript documentation])
  13713. +if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
  13714. + test x$BUILD_PSDOC != xno; then
  13715. + BUILDPSDOC=yes
  13716. +fi
  13717. +AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
  13718. +AC_MSG_RESULT([$BUILDPSDOC])
  13719. - sysv4*MP*)
  13720. - if test -d /usr/nec; then
  13721. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  13722. - fi
  13723. - ;;
  13724. +AC_MSG_CHECKING([Whether to build HTML documentation])
  13725. +if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
  13726. + test x$BUILD_HTMLDOC != xno; then
  13727. + BUILDHTMLDOC=yes
  13728. +fi
  13729. +AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
  13730. +AC_MSG_RESULT([$BUILDHTMLDOC])
  13731. - hpux*)
  13732. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13733. - # not for PA HP-UX.
  13734. - case $host_cpu in
  13735. - hppa*64*|ia64*)
  13736. - # +Z the default
  13737. - ;;
  13738. - *)
  13739. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  13740. - ;;
  13741. - esac
  13742. - ;;
  13743. +MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
  13744. +MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
  13745. +MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
  13746. +MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
  13747. - *)
  13748. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  13749. - ;;
  13750. - esac
  13751. - else
  13752. - # PORTME Check for flag to pass linker flags through the system compiler.
  13753. - case $host_os in
  13754. - aix*)
  13755. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13756. - if test "$host_cpu" = ia64; then
  13757. - # AIX 5 now supports IA64 processor
  13758. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13759. - else
  13760. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  13761. - fi
  13762. - ;;
  13763. - darwin*)
  13764. - # PIC is the default on this platform
  13765. - # Common symbols not allowed in MH_DYLIB files
  13766. - case $cc_basename in
  13767. - xlc*)
  13768. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  13769. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13770. - ;;
  13771. - esac
  13772. - ;;
  13773. +AC_SUBST(MAKE_TEXT)
  13774. +AC_SUBST(MAKE_PS)
  13775. +AC_SUBST(MAKE_PDF)
  13776. +AC_SUBST(MAKE_HTML)
  13777. +]) # XORG_CHECK_DOCBOOK
  13778. - mingw* | cygwin* | pw32* | os2*)
  13779. - # This hack is so that the source file can tell whether it is being
  13780. - # built for inclusion in a dll (and should export symbols for example).
  13781. - m4_if([$1], [GCJ], [],
  13782. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  13783. - ;;
  13784. +# XORG_WITH_XMLTO
  13785. +# ----------------
  13786. +# Minimum version: 1.5.0
  13787. +#
  13788. +# Documentation tools are not always available on all platforms and sometimes
  13789. +# not at the appropriate level. This macro enables a module to test for the
  13790. +# presence of the tool and obtain it's path in separate variables. Coupled with
  13791. +# the --with-xmlto option, it allows maximum flexibilty in making decisions
  13792. +# as whether or not to use the xmlto package.
  13793. +#
  13794. +# Interface to module:
  13795. +# HAVE_XMLTO: used in makefiles to conditionally generate documentation
  13796. +# XMLTO: returns the path of the xmlto program found
  13797. +# returns the path set by the user in the environment
  13798. +# --with-xmlto: 'yes' user instructs the module to use xmlto
  13799. +# 'no' user instructs the module not to use xmlto
  13800. +#
  13801. +# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
  13802. +#
  13803. +AC_DEFUN([XORG_WITH_XMLTO],[
  13804. +AC_ARG_VAR([XMLTO], [Path to xmlto command])
  13805. +AC_ARG_WITH(xmlto,
  13806. + AS_HELP_STRING([--with-xmlto],
  13807. + [Use xmlto to regenerate documentation (default: yes, if installed)]),
  13808. + [use_xmlto=$withval], [use_xmlto=auto])
  13809. +
  13810. +if test "x$use_xmlto" = x"auto"; then
  13811. + AC_PATH_PROG([XMLTO], [xmlto])
  13812. + if test "x$XMLTO" = "x"; then
  13813. + AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
  13814. + have_xmlto=no
  13815. + else
  13816. + have_xmlto=yes
  13817. + fi
  13818. +elif test "x$use_xmlto" = x"yes" ; then
  13819. + AC_PATH_PROG([XMLTO], [xmlto])
  13820. + if test "x$XMLTO" = "x"; then
  13821. + AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
  13822. + fi
  13823. + have_xmlto=yes
  13824. +elif test "x$use_xmlto" = x"no" ; then
  13825. + if test "x$XMLTO" != "x"; then
  13826. + AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
  13827. + fi
  13828. + have_xmlto=no
  13829. +else
  13830. + AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
  13831. +fi
  13832. +AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
  13833. +]) # XORG_CHECK_XMLTO
  13834. - hpux9* | hpux10* | hpux11*)
  13835. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13836. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13837. - # not for PA HP-UX.
  13838. - case $host_cpu in
  13839. - hppa*64*|ia64*)
  13840. - # +Z the default
  13841. - ;;
  13842. - *)
  13843. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  13844. - ;;
  13845. - esac
  13846. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13847. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  13848. - ;;
  13849. +# XORG_WITH_ASCIIDOC
  13850. +# ----------------
  13851. +# Minimum version: 1.5.0
  13852. +#
  13853. +# Documentation tools are not always available on all platforms and sometimes
  13854. +# not at the appropriate level. This macro enables a module to test for the
  13855. +# presence of the tool and obtain it's path in separate variables. Coupled with
  13856. +# the --with-asciidoc option, it allows maximum flexibilty in making decisions
  13857. +# as whether or not to use the asciidoc package.
  13858. +#
  13859. +# Interface to module:
  13860. +# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
  13861. +# ASCIIDOC: returns the path of the asciidoc program found
  13862. +# returns the path set by the user in the environment
  13863. +# --with-asciidoc: 'yes' user instructs the module to use asciidoc
  13864. +# 'no' user instructs the module not to use asciidoc
  13865. +#
  13866. +# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
  13867. +#
  13868. +AC_DEFUN([XORG_WITH_ASCIIDOC],[
  13869. +AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
  13870. +AC_ARG_WITH(asciidoc,
  13871. + AS_HELP_STRING([--with-asciidoc],
  13872. + [Use asciidoc to regenerate documentation (default: yes, if installed)]),
  13873. + [use_asciidoc=$withval], [use_asciidoc=auto])
  13874. +
  13875. +if test "x$use_asciidoc" = x"auto"; then
  13876. + AC_PATH_PROG([ASCIIDOC], [asciidoc])
  13877. + if test "x$ASCIIDOC" = "x"; then
  13878. + AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
  13879. + have_asciidoc=no
  13880. + else
  13881. + have_asciidoc=yes
  13882. + fi
  13883. +elif test "x$use_asciidoc" = x"yes" ; then
  13884. + AC_PATH_PROG([ASCIIDOC], [asciidoc])
  13885. + if test "x$ASCIIDOC" = "x"; then
  13886. + AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
  13887. + fi
  13888. + have_asciidoc=yes
  13889. +elif test "x$use_asciidoc" = x"no" ; then
  13890. + if test "x$ASCIIDOC" != "x"; then
  13891. + AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
  13892. + fi
  13893. + have_asciidoc=no
  13894. +else
  13895. + AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
  13896. +fi
  13897. +AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
  13898. +]) # XORG_CHECK_ASCIIDOC
  13899. - irix5* | irix6* | nonstopux*)
  13900. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13901. - # PIC (with -KPIC) is the default.
  13902. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  13903. - ;;
  13904. +# XORG_WITH_DOXYGEN
  13905. +# ----------------
  13906. +# Minimum version: 1.5.0
  13907. +#
  13908. +# Documentation tools are not always available on all platforms and sometimes
  13909. +# not at the appropriate level. This macro enables a module to test for the
  13910. +# presence of the tool and obtain it's path in separate variables. Coupled with
  13911. +# the --with-doxygen option, it allows maximum flexibilty in making decisions
  13912. +# as whether or not to use the doxygen package.
  13913. +#
  13914. +# Interface to module:
  13915. +# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
  13916. +# DOXYGEN: returns the path of the doxygen program found
  13917. +# returns the path set by the user in the environment
  13918. +# --with-doxygen: 'yes' user instructs the module to use doxygen
  13919. +# 'no' user instructs the module not to use doxygen
  13920. +#
  13921. +# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
  13922. +#
  13923. +AC_DEFUN([XORG_WITH_DOXYGEN],[
  13924. +AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
  13925. +AC_ARG_WITH(doxygen,
  13926. + AS_HELP_STRING([--with-doxygen],
  13927. + [Use doxygen to regenerate documentation (default: yes, if installed)]),
  13928. + [use_doxygen=$withval], [use_doxygen=auto])
  13929. +
  13930. +if test "x$use_doxygen" = x"auto"; then
  13931. + AC_PATH_PROG([DOXYGEN], [doxygen])
  13932. + if test "x$DOXYGEN" = "x"; then
  13933. + AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
  13934. + have_doxygen=no
  13935. + else
  13936. + have_doxygen=yes
  13937. + fi
  13938. +elif test "x$use_doxygen" = x"yes" ; then
  13939. + AC_PATH_PROG([DOXYGEN], [doxygen])
  13940. + if test "x$DOXYGEN" = "x"; then
  13941. + AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
  13942. + fi
  13943. + have_doxygen=yes
  13944. +elif test "x$use_doxygen" = x"no" ; then
  13945. + if test "x$DOXYGEN" != "x"; then
  13946. + AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
  13947. + fi
  13948. + have_doxygen=no
  13949. +else
  13950. + AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
  13951. +fi
  13952. +AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
  13953. +]) # XORG_CHECK_DOXYGEN
  13954. - newsos6)
  13955. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13956. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13957. - ;;
  13958. +# XORG_CHECK_MALLOC_ZERO
  13959. +# ----------------------
  13960. +# Minimum version: 1.0.0
  13961. +#
  13962. +# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
  13963. +# malloc(0) returns NULL. Packages should add one of these cflags to
  13964. +# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
  13965. +AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
  13966. +AC_ARG_ENABLE(malloc0returnsnull,
  13967. + AS_HELP_STRING([--enable-malloc0returnsnull],
  13968. + [malloc(0) returns NULL (default: auto)]),
  13969. + [MALLOC_ZERO_RETURNS_NULL=$enableval],
  13970. + [MALLOC_ZERO_RETURNS_NULL=auto])
  13971. - linux* | k*bsd*-gnu)
  13972. - case $cc_basename in
  13973. - icc* | ecc*)
  13974. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13975. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13976. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  13977. - ;;
  13978. - pgcc* | pgf77* | pgf90* | pgf95*)
  13979. - # Portland Group compilers (*not* the Pentium gcc compiler,
  13980. - # which looks to be a dead project)
  13981. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13982. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  13983. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13984. - ;;
  13985. - ccc*)
  13986. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13987. - # All Alpha code is PIC.
  13988. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  13989. - ;;
  13990. - *)
  13991. - case `$CC -V 2>&1 | sed 5q` in
  13992. - *Sun\ C*)
  13993. - # Sun C 5.9
  13994. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  13995. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  13996. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  13997. - ;;
  13998. - *Sun\ F*)
  13999. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14000. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  14001. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14002. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  14003. - ;;
  14004. - esac
  14005. - ;;
  14006. - esac
  14007. - ;;
  14008. +AC_MSG_CHECKING([whether malloc(0) returns NULL])
  14009. +if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
  14010. + AC_RUN_IFELSE([
  14011. +char *malloc();
  14012. +char *realloc();
  14013. +char *calloc();
  14014. +main() {
  14015. + char *m0, *r0, *c0, *p;
  14016. + m0 = malloc(0);
  14017. + p = malloc(10);
  14018. + r0 = realloc(p,0);
  14019. + c0 = calloc(0);
  14020. + exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
  14021. +}],
  14022. + [MALLOC_ZERO_RETURNS_NULL=yes],
  14023. + [MALLOC_ZERO_RETURNS_NULL=no],
  14024. + [MALLOC_ZERO_RETURNS_NULL=yes])
  14025. +fi
  14026. +AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
  14027. - osf3* | osf4* | osf5*)
  14028. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  14029. - # All OSF/1 code is PIC.
  14030. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  14031. - ;;
  14032. +if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
  14033. + MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
  14034. + XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
  14035. + XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
  14036. +else
  14037. + MALLOC_ZERO_CFLAGS=""
  14038. + XMALLOC_ZERO_CFLAGS=""
  14039. + XTMALLOC_ZERO_CFLAGS=""
  14040. +fi
  14041. - rdos*)
  14042. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  14043. - ;;
  14044. +AC_SUBST([MALLOC_ZERO_CFLAGS])
  14045. +AC_SUBST([XMALLOC_ZERO_CFLAGS])
  14046. +AC_SUBST([XTMALLOC_ZERO_CFLAGS])
  14047. +]) # XORG_CHECK_MALLOC_ZERO
  14048. - solaris*)
  14049. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  14050. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14051. - case $cc_basename in
  14052. - f77* | f90* | f95*)
  14053. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  14054. - *)
  14055. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  14056. - esac
  14057. - ;;
  14058. +# XORG_WITH_LINT()
  14059. +# ----------------
  14060. +# Minimum version: 1.1.0
  14061. +#
  14062. +# Sets up flags for source checkers such as lint and sparse if --with-lint
  14063. +# is specified. (Use --with-lint=sparse for sparse.)
  14064. +# Sets $LINT to name of source checker passed with --with-lint (default: lint)
  14065. +# Sets $LINT_FLAGS to flags to pass to source checker
  14066. +# Sets LINT automake conditional if enabled (default: disabled)
  14067. +#
  14068. +AC_DEFUN([XORG_WITH_LINT],[
  14069. - sunos4*)
  14070. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  14071. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  14072. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14073. - ;;
  14074. +# Allow checking code with lint, sparse, etc.
  14075. +AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
  14076. + [Use a lint-style source code checker (default: disabled)])],
  14077. + [use_lint=$withval], [use_lint=no])
  14078. +if test "x$use_lint" = "xyes" ; then
  14079. + LINT="lint"
  14080. +else
  14081. + LINT="$use_lint"
  14082. +fi
  14083. +if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
  14084. + case $LINT in
  14085. + lint|*/lint)
  14086. + case $host_os in
  14087. + solaris*)
  14088. + LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
  14089. + ;;
  14090. + esac
  14091. + ;;
  14092. + esac
  14093. +fi
  14094. - sysv4 | sysv4.2uw2* | sysv4.3*)
  14095. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  14096. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  14097. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14098. - ;;
  14099. +AC_SUBST(LINT)
  14100. +AC_SUBST(LINT_FLAGS)
  14101. +AM_CONDITIONAL(LINT, [test x$LINT != xno])
  14102. - sysv4*MP*)
  14103. - if test -d /usr/nec ;then
  14104. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  14105. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14106. - fi
  14107. - ;;
  14108. +]) # XORG_WITH_LINT
  14109. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14110. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  14111. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  14112. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14113. - ;;
  14114. +# XORG_LINT_LIBRARY(LIBNAME)
  14115. +# --------------------------
  14116. +# Minimum version: 1.1.0
  14117. +#
  14118. +# Sets up flags for building lint libraries for checking programs that call
  14119. +# functions in the library.
  14120. +# Disabled by default, enable with --enable-lint-library
  14121. +# Sets:
  14122. +# @LINTLIB@ - name of lint library file to make
  14123. +# MAKE_LINT_LIB - automake conditional
  14124. +#
  14125. - unicos*)
  14126. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  14127. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  14128. - ;;
  14129. +AC_DEFUN([XORG_LINT_LIBRARY],[
  14130. +AC_REQUIRE([XORG_WITH_LINT])
  14131. +# Build lint "library" for more indepth checks of programs calling this library
  14132. +AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
  14133. + [Create lint library (default: disabled)])],
  14134. + [make_lint_lib=$enableval], [make_lint_lib=no])
  14135. +if test "x$make_lint_lib" != "xno" ; then
  14136. + if test "x$LINT" = "xno" ; then
  14137. + AC_MSG_ERROR([Cannot make lint library without --with-lint])
  14138. + fi
  14139. + if test "x$make_lint_lib" = "xyes" ; then
  14140. + LINTLIB=llib-l$1.ln
  14141. + else
  14142. + LINTLIB=$make_lint_lib
  14143. + fi
  14144. +fi
  14145. +AC_SUBST(LINTLIB)
  14146. +AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
  14147. - uts4*)
  14148. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  14149. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  14150. - ;;
  14151. +]) # XORG_LINT_LIBRARY
  14152. - *)
  14153. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  14154. - ;;
  14155. +# XORG_CWARNFLAGS
  14156. +# ---------------
  14157. +# Minimum version: 1.2.0
  14158. +#
  14159. +# Defines CWARNFLAGS to enable C compiler warnings.
  14160. +#
  14161. +AC_DEFUN([XORG_CWARNFLAGS], [
  14162. +AC_REQUIRE([AC_PROG_CC])
  14163. +if test "x$GCC" = xyes ; then
  14164. + CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  14165. +-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  14166. +-Wbad-function-cast"
  14167. + case `$CC -dumpversion` in
  14168. + 3.4.* | 4.*)
  14169. + CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  14170. + ;;
  14171. esac
  14172. - fi
  14173. -])
  14174. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  14175. +else
  14176. + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  14177. + if test "x$SUNCC" = "xyes"; then
  14178. + CWARNFLAGS="-v"
  14179. + fi
  14180. +fi
  14181. +AC_SUBST(CWARNFLAGS)
  14182. +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  14183. +]) # XORG_CWARNFLAGS
  14184. +# XORG_STRICT_OPTION
  14185. +# -----------------------
  14186. +# Minimum version: 1.3.0
  14187. #
  14188. -# Check to make sure the PIC flag actually works.
  14189. -#
  14190. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  14191. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  14192. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  14193. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  14194. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  14195. - "" | " "*) ;;
  14196. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  14197. - esac],
  14198. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  14199. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  14200. +# Add configure option to enable strict compilation
  14201. +AC_DEFUN([XORG_STRICT_OPTION], [
  14202. +AC_REQUIRE([AC_PROG_CC])
  14203. +AC_REQUIRE([AC_PROG_CC_C99])
  14204. +AC_REQUIRE([XORG_CWARNFLAGS])
  14205. +
  14206. +AC_ARG_ENABLE(strict-compilation,
  14207. + AS_HELP_STRING([--enable-strict-compilation],
  14208. + [Enable all warnings from compiler and make them errors (default: disabled)]),
  14209. + [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
  14210. +if test "x$STRICT_COMPILE" = "xyes"; then
  14211. + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  14212. + AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
  14213. + if test "x$GCC" = xyes ; then
  14214. + STRICT_CFLAGS="-pedantic -Werror"
  14215. + elif test "x$SUNCC" = "xyes"; then
  14216. + STRICT_CFLAGS="-errwarn"
  14217. + elif test "x$INTELCC" = "xyes"; then
  14218. + STRICT_CFLAGS="-Werror"
  14219. + fi
  14220. fi
  14221. -case $host_os in
  14222. - # For platforms which do not support PIC, -DPIC is meaningless:
  14223. - *djgpp*)
  14224. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  14225. - ;;
  14226. - *)
  14227. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  14228. - ;;
  14229. -esac
  14230. +CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  14231. +AC_SUBST([CWARNFLAGS])
  14232. +]) # XORG_STRICT_OPTION
  14233. +# XORG_DEFAULT_OPTIONS
  14234. +# --------------------
  14235. +# Minimum version: 1.3.0
  14236. #
  14237. -# Check to make sure the static flag actually works.
  14238. +# Defines default options for X.Org modules.
  14239. #
  14240. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  14241. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  14242. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  14243. - $lt_tmp_static_flag,
  14244. - [],
  14245. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  14246. -])
  14247. +AC_DEFUN([XORG_DEFAULT_OPTIONS], [
  14248. +XORG_CWARNFLAGS
  14249. +XORG_STRICT_OPTION
  14250. +XORG_RELEASE_VERSION
  14251. +XORG_CHANGELOG
  14252. +XORG_INSTALL
  14253. +XORG_MANPAGE_SECTIONS
  14254. +]) # XORG_DEFAULT_OPTIONS
  14255. +# XORG_INSTALL()
  14256. +# ----------------
  14257. +# Minimum version: 1.4.0
  14258. +#
  14259. +# Defines the variable INSTALL_CMD as the command to copy
  14260. +# INSTALL from $prefix/share/util-macros.
  14261. +#
  14262. +AC_DEFUN([XORG_INSTALL], [
  14263. +AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  14264. +macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  14265. +INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  14266. +mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  14267. +|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  14268. +echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  14269. +AC_SUBST([INSTALL_CMD])
  14270. +]) # XORG_INSTALL
  14271. +dnl Copyright 2005 Red Hat, Inc
  14272. +dnl
  14273. +dnl Permission to use, copy, modify, distribute, and sell this software and its
  14274. +dnl documentation for any purpose is hereby granted without fee, provided that
  14275. +dnl the above copyright notice appear in all copies and that both that
  14276. +dnl copyright notice and this permission notice appear in supporting
  14277. +dnl documentation.
  14278. +dnl
  14279. +dnl The above copyright notice and this permission notice shall be included
  14280. +dnl in all copies or substantial portions of the Software.
  14281. +dnl
  14282. +dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  14283. +dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14284. +dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  14285. +dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  14286. +dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  14287. +dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  14288. +dnl OTHER DEALINGS IN THE SOFTWARE.
  14289. +dnl
  14290. +dnl Except as contained in this notice, the name of the copyright holders shall
  14291. +dnl not be used in advertising or otherwise to promote the sale, use or
  14292. +dnl other dealings in this Software without prior written authorization
  14293. +dnl from the copyright holders.
  14294. +dnl
  14295. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  14296. -# ------------------------------------
  14297. -# See if the linker supports building shared libraries.
  14298. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  14299. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  14300. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  14301. -ifelse([$1],[CXX],[
  14302. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14303. - case $host_os in
  14304. - aix[[4-9]]*)
  14305. - # If we're using GNU nm, then we don't want the "-C" option.
  14306. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14307. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14308. - _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'
  14309. - else
  14310. - _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'
  14311. - fi
  14312. - ;;
  14313. - pw32*)
  14314. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  14315. - ;;
  14316. - cygwin* | mingw*)
  14317. - _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'
  14318. - ;;
  14319. - *)
  14320. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14321. - ;;
  14322. - esac
  14323. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  14324. -],[
  14325. - runpath_var=
  14326. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  14327. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  14328. - _LT_AC_TAGVAR(archive_cmds, $1)=
  14329. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  14330. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  14331. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  14332. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  14333. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  14334. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  14335. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  14336. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  14337. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  14338. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  14339. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  14340. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  14341. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  14342. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  14343. - _LT_AC_TAGVAR(module_cmds, $1)=
  14344. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  14345. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  14346. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14347. - # include_expsyms should be a list of space-separated symbols to be *always*
  14348. - # included in the symbol list
  14349. - _LT_AC_TAGVAR(include_expsyms, $1)=
  14350. - # exclude_expsyms can be an extended regexp of symbols to exclude
  14351. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14352. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14353. - # as well as any symbol that contains `d'.
  14354. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  14355. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14356. - # platforms (ab)use it in PIC code, but their linkers get confused if
  14357. - # the symbol is explicitly referenced. Since portable code cannot
  14358. - # rely on this symbol name, it's probably fine to never include it in
  14359. - # preloaded symbol tables.
  14360. - # Exclude shared library initialization/finalization symbols.
  14361. -dnl Note also adjust exclude_expsyms for C++ above.
  14362. - extract_expsyms_cmds=
  14363. - # Just being paranoid about ensuring that cc_basename is set.
  14364. - _LT_CC_BASENAME([$compiler])
  14365. - case $host_os in
  14366. - cygwin* | mingw* | pw32*)
  14367. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14368. - # When not using gcc, we currently assume that we are using
  14369. - # Microsoft Visual C++.
  14370. - if test "$GCC" != yes; then
  14371. - with_gnu_ld=no
  14372. - fi
  14373. - ;;
  14374. - interix*)
  14375. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  14376. - with_gnu_ld=yes
  14377. - ;;
  14378. - openbsd*)
  14379. - with_gnu_ld=no
  14380. - ;;
  14381. - esac
  14382. +# XORG_RELEASE_VERSION
  14383. +# --------------------
  14384. +# Adds --with/without-release-string and changes the PACKAGE and
  14385. +# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
  14386. +# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
  14387. +# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
  14388. +
  14389. +AC_DEFUN([XORG_RELEASE_VERSION],[
  14390. + AC_ARG_WITH(release-version,
  14391. + AS_HELP_STRING([--with-release-version=STRING],
  14392. + [Use release version string in package name]),
  14393. + [RELEASE_VERSION="$withval"],
  14394. + [RELEASE_VERSION=""])
  14395. + if test "x$RELEASE_VERSION" != "x"; then
  14396. + PACKAGE="$PACKAGE-$RELEASE_VERSION"
  14397. + PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  14398. + AC_MSG_NOTICE([Building with package name set to $PACKAGE])
  14399. + fi
  14400. + AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
  14401. + [`echo $PACKAGE_VERSION | cut -d . -f 1`],
  14402. + [Major version of this package])
  14403. + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  14404. + if test "x$PVM" = "x"; then
  14405. + PVM="0"
  14406. + fi
  14407. + AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
  14408. + [$PVM],
  14409. + [Minor version of this package])
  14410. + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  14411. + if test "x$PVP" = "x"; then
  14412. + PVP="0"
  14413. + fi
  14414. + AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
  14415. + [$PVP],
  14416. + [Patch version of this package])
  14417. +])
  14418. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  14419. - if test "$with_gnu_ld" = yes; then
  14420. - # If archive_cmds runs LD, not CC, wlarc should be empty
  14421. - wlarc='${wl}'
  14422. +# XORG_CHANGELOG()
  14423. +# ----------------
  14424. +# Minimum version: 1.2.0
  14425. +#
  14426. +# Defines the variable CHANGELOG_CMD as the command to generate
  14427. +# ChangeLog from git.
  14428. +#
  14429. +#
  14430. +AC_DEFUN([XORG_CHANGELOG], [
  14431. +CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  14432. +mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  14433. +|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  14434. +echo 'git directory not found: installing possibly empty changelog.' >&2)"
  14435. +AC_SUBST([CHANGELOG_CMD])
  14436. +]) # XORG_CHANGELOG
  14437. - # Set some defaults for GNU ld with shared library support. These
  14438. - # are reset later if shared libraries are not supported. Putting them
  14439. - # here allows them to be overridden if necessary.
  14440. - runpath_var=LD_RUN_PATH
  14441. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  14442. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  14443. - # ancient GNU ld didn't support --whole-archive et. al.
  14444. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14445. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14446. - else
  14447. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  14448. - fi
  14449. - supports_anon_versioning=no
  14450. - case `$LD -v 2>/dev/null` in
  14451. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  14452. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14453. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14454. - *\ 2.11.*) ;; # other 2.11 versions
  14455. - *) supports_anon_versioning=yes ;;
  14456. - esac
  14457. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14458. +#
  14459. +# This file is free software; the Free Software Foundation
  14460. +# gives unlimited permission to copy and/or distribute it,
  14461. +# with or without modifications, as long as this notice is preserved.
  14462. - # See if GNU ld supports shared libraries.
  14463. - case $host_os in
  14464. - aix[[3-9]]*)
  14465. - # On AIX/PPC, the GNU linker is very broken
  14466. - if test "$host_cpu" != ia64; then
  14467. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14468. - cat <<EOF 1>&2
  14469. +# AM_AUTOMAKE_VERSION(VERSION)
  14470. +# ----------------------------
  14471. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  14472. +# generated from the m4 files accompanying Automake X.Y.
  14473. +# (This private macro should not be called outside this file.)
  14474. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  14475. +[am__api_version='1.11'
  14476. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  14477. +dnl require some minimum version. Point them to the right macro.
  14478. +m4_if([$1], [1.11.1], [],
  14479. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  14480. +])
  14481. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14482. -*** to be unable to reliably create shared libraries on AIX.
  14483. -*** Therefore, libtool is disabling shared libraries support. If you
  14484. -*** really care for shared libraries, you may want to modify your PATH
  14485. -*** so that a non-GNU linker is found, and then restart.
  14486. +# _AM_AUTOCONF_VERSION(VERSION)
  14487. +# -----------------------------
  14488. +# aclocal traces this macro to find the Autoconf version.
  14489. +# This is a private macro too. Using m4_define simplifies
  14490. +# the logic in aclocal, which can simply ignore this definition.
  14491. +m4_define([_AM_AUTOCONF_VERSION], [])
  14492. -EOF
  14493. - fi
  14494. - ;;
  14495. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  14496. +# -------------------------------
  14497. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  14498. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  14499. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  14500. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  14501. +m4_ifndef([AC_AUTOCONF_VERSION],
  14502. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14503. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  14504. - amigaos*)
  14505. - _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)'
  14506. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  14507. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  14508. -
  14509. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14510. - # that the semantics of dynamic libraries on AmigaOS, at least up
  14511. - # to version 4, is to share data among multiple programs linked
  14512. - # with the same dynamic library. Since this doesn't match the
  14513. - # behavior of shared libraries on other platforms, we can't use
  14514. - # them.
  14515. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14516. - ;;
  14517. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  14518. - beos*)
  14519. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14520. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  14521. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14522. - # support --undefined. This deserves some investigation. FIXME
  14523. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14524. - else
  14525. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14526. - fi
  14527. - ;;
  14528. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  14529. +#
  14530. +# This file is free software; the Free Software Foundation
  14531. +# gives unlimited permission to copy and/or distribute it,
  14532. +# with or without modifications, as long as this notice is preserved.
  14533. - cygwin* | mingw* | pw32*)
  14534. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  14535. - # as there is no search path for DLLs.
  14536. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  14537. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  14538. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  14539. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  14540. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  14541. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  14542. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  14543. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  14544. +#
  14545. +# Of course, Automake must honor this variable whenever it calls a
  14546. +# tool from the auxiliary directory. The problem is that $srcdir (and
  14547. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  14548. +# depending on how configure is run. This is pretty annoying, since
  14549. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  14550. +# source directory, any form will work fine, but in subdirectories a
  14551. +# relative path needs to be adjusted first.
  14552. +#
  14553. +# $ac_aux_dir/missing
  14554. +# fails when called from a subdirectory if $ac_aux_dir is relative
  14555. +# $top_srcdir/$ac_aux_dir/missing
  14556. +# fails if $ac_aux_dir is absolute,
  14557. +# fails when called from a subdirectory in a VPATH build with
  14558. +# a relative $ac_aux_dir
  14559. +#
  14560. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  14561. +# are both prefixed by $srcdir. In an in-source build this is usually
  14562. +# harmless because $srcdir is `.', but things will broke when you
  14563. +# start a VPATH build or use an absolute $srcdir.
  14564. +#
  14565. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  14566. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  14567. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  14568. +# and then we would define $MISSING as
  14569. +# MISSING="\${SHELL} $am_aux_dir/missing"
  14570. +# This will work as long as MISSING is not called from configure, because
  14571. +# unfortunately $(top_srcdir) has no meaning in configure.
  14572. +# However there are other variables, like CC, which are often used in
  14573. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  14574. +#
  14575. +# Another solution, used here, is to always expand $ac_aux_dir to an
  14576. +# absolute PATH. The drawback is that using absolute paths prevent a
  14577. +# configured tree to be moved without reconfiguration.
  14578. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14579. - _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'
  14580. - # If the export-symbols file already is a .def file (1st line
  14581. - # is EXPORTS), use it as is; otherwise, prepend...
  14582. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14583. - cp $export_symbols $output_objdir/$soname.def;
  14584. - else
  14585. - echo EXPORTS > $output_objdir/$soname.def;
  14586. - cat $export_symbols >> $output_objdir/$soname.def;
  14587. - fi~
  14588. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14589. - else
  14590. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14591. - fi
  14592. - ;;
  14593. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  14594. +[dnl Rely on autoconf to set up CDPATH properly.
  14595. +AC_PREREQ([2.50])dnl
  14596. +# expand $ac_aux_dir to an absolute path
  14597. +am_aux_dir=`cd $ac_aux_dir && pwd`
  14598. +])
  14599. - interix[[3-9]]*)
  14600. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  14601. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  14602. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  14603. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  14604. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14605. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  14606. - # default) and relocated if they conflict, which is a slow very memory
  14607. - # consuming and fragmenting process. To avoid this, we pick a random,
  14608. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14609. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14610. - _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'
  14611. - _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'
  14612. - ;;
  14613. +# AM_CONDITIONAL -*- Autoconf -*-
  14614. - gnu* | linux* | k*bsd*-gnu)
  14615. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14616. - tmp_addflag=
  14617. - case $cc_basename,$host_cpu in
  14618. - pgcc*) # Portland Group C compiler
  14619. - _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'
  14620. - tmp_addflag=' $pic_flag'
  14621. - ;;
  14622. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14623. - _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'
  14624. - tmp_addflag=' $pic_flag -Mnomain' ;;
  14625. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14626. - tmp_addflag=' -i_dynamic' ;;
  14627. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14628. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  14629. - ifc* | ifort*) # Intel Fortran compiler
  14630. - tmp_addflag=' -nofor_main' ;;
  14631. - esac
  14632. - case `$CC -V 2>&1 | sed 5q` in
  14633. - *Sun\ C*) # Sun C 5.9
  14634. - _LT_AC_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'
  14635. - tmp_sharedflag='-G' ;;
  14636. - *Sun\ F*) # Sun Fortran 8.3
  14637. - tmp_sharedflag='-G' ;;
  14638. - *)
  14639. - tmp_sharedflag='-shared' ;;
  14640. - esac
  14641. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14642. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  14643. +# Free Software Foundation, Inc.
  14644. +#
  14645. +# This file is free software; the Free Software Foundation
  14646. +# gives unlimited permission to copy and/or distribute it,
  14647. +# with or without modifications, as long as this notice is preserved.
  14648. - if test $supports_anon_versioning = yes; then
  14649. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  14650. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14651. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  14652. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14653. - fi
  14654. - else
  14655. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14656. - fi
  14657. - ;;
  14658. +# serial 9
  14659. - netbsd*)
  14660. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14661. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14662. - wlarc=
  14663. - else
  14664. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14665. - _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'
  14666. - fi
  14667. - ;;
  14668. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  14669. +# -------------------------------------
  14670. +# Define a conditional.
  14671. +AC_DEFUN([AM_CONDITIONAL],
  14672. +[AC_PREREQ(2.52)dnl
  14673. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  14674. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  14675. +AC_SUBST([$1_TRUE])dnl
  14676. +AC_SUBST([$1_FALSE])dnl
  14677. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  14678. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  14679. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  14680. +if $2; then
  14681. + $1_TRUE=
  14682. + $1_FALSE='#'
  14683. +else
  14684. + $1_TRUE='#'
  14685. + $1_FALSE=
  14686. +fi
  14687. +AC_CONFIG_COMMANDS_PRE(
  14688. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  14689. + AC_MSG_ERROR([[conditional "$1" was never defined.
  14690. +Usually this means the macro was only invoked conditionally.]])
  14691. +fi])])
  14692. - solaris*)
  14693. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14694. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14695. - cat <<EOF 1>&2
  14696. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  14697. +# Free Software Foundation, Inc.
  14698. +#
  14699. +# This file is free software; the Free Software Foundation
  14700. +# gives unlimited permission to copy and/or distribute it,
  14701. +# with or without modifications, as long as this notice is preserved.
  14702. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14703. -*** create shared libraries on Solaris systems. Therefore, libtool
  14704. -*** is disabling shared libraries support. We urge you to upgrade GNU
  14705. -*** binutils to release 2.9.1 or newer. Another option is to modify
  14706. -*** your PATH or compiler configuration so that the native linker is
  14707. -*** used, and then restart.
  14708. +# serial 10
  14709. -EOF
  14710. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14711. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14712. - _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'
  14713. - else
  14714. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14715. - fi
  14716. - ;;
  14717. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  14718. +# written in clear, in which case automake, when reading aclocal.m4,
  14719. +# will think it sees a *use*, and therefore will trigger all it's
  14720. +# C support machinery. Also note that it means that autoscan, seeing
  14721. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  14722. +
  14723. +
  14724. +# _AM_DEPENDENCIES(NAME)
  14725. +# ----------------------
  14726. +# See how the compiler implements dependency checking.
  14727. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  14728. +# We try a few techniques and use that to set a single cache variable.
  14729. +#
  14730. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  14731. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  14732. +# dependency, and given that the user is not expected to run this macro,
  14733. +# just rely on AC_PROG_CC.
  14734. +AC_DEFUN([_AM_DEPENDENCIES],
  14735. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  14736. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  14737. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  14738. +AC_REQUIRE([AM_DEP_TRACK])dnl
  14739. +
  14740. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  14741. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  14742. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  14743. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  14744. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  14745. + [depcc="$$1" am_compiler_list=])
  14746. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14747. - case `$LD -v 2>&1` in
  14748. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  14749. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14750. - cat <<_LT_EOF 1>&2
  14751. +AC_CACHE_CHECK([dependency style of $depcc],
  14752. + [am_cv_$1_dependencies_compiler_type],
  14753. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  14754. + # We make a subdir and do the tests there. Otherwise we can end up
  14755. + # making bogus files that we don't know about and never remove. For
  14756. + # instance it was reported that on HP-UX the gcc test will end up
  14757. + # making a dummy file named `D' -- because `-MD' means `put the output
  14758. + # in D'.
  14759. + mkdir conftest.dir
  14760. + # Copy depcomp to subdir because otherwise we won't find it if we're
  14761. + # using a relative directory.
  14762. + cp "$am_depcomp" conftest.dir
  14763. + cd conftest.dir
  14764. + # We will build objects and dependencies in a subdirectory because
  14765. + # it helps to detect inapplicable dependency modes. For instance
  14766. + # both Tru64's cc and ICC support -MD to output dependencies as a
  14767. + # side effect of compilation, but ICC will put the dependencies in
  14768. + # the current directory while Tru64 will put them in the object
  14769. + # directory.
  14770. + mkdir sub
  14771. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14772. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  14773. -*** is disabling shared libraries support. We urge you to upgrade GNU
  14774. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14775. -*** your PATH or compiler configuration so that the native linker is
  14776. -*** used, and then restart.
  14777. + am_cv_$1_dependencies_compiler_type=none
  14778. + if test "$am_compiler_list" = ""; then
  14779. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  14780. + fi
  14781. + am__universal=false
  14782. + m4_case([$1], [CC],
  14783. + [case " $depcc " in #(
  14784. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  14785. + esac],
  14786. + [CXX],
  14787. + [case " $depcc " in #(
  14788. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  14789. + esac])
  14790. -_LT_EOF
  14791. - ;;
  14792. - *)
  14793. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14794. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14795. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14796. - _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'
  14797. - else
  14798. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14799. - fi
  14800. - ;;
  14801. - esac
  14802. - ;;
  14803. + for depmode in $am_compiler_list; do
  14804. + # Setup a source with many dependencies, because some compilers
  14805. + # like to wrap large dependency lists on column 80 (with \), and
  14806. + # we should not choose a depcomp mode which is confused by this.
  14807. + #
  14808. + # We need to recreate these files for each test, as the compiler may
  14809. + # overwrite some of them when testing with obscure command lines.
  14810. + # This happens at least with the AIX C compiler.
  14811. + : > sub/conftest.c
  14812. + for i in 1 2 3 4 5 6; do
  14813. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  14814. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  14815. + # Solaris 8's {/usr,}/bin/sh.
  14816. + touch sub/conftst$i.h
  14817. + done
  14818. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  14819. - sunos4*)
  14820. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14821. - wlarc=
  14822. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  14823. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  14824. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  14825. + # mode. It turns out that the SunPro C++ compiler does not properly
  14826. + # handle `-M -o', and we need to detect this. Also, some Intel
  14827. + # versions had trouble with output in subdirs
  14828. + am__obj=sub/conftest.${OBJEXT-o}
  14829. + am__minus_obj="-o $am__obj"
  14830. + case $depmode in
  14831. + gcc)
  14832. + # This depmode causes a compiler race in universal mode.
  14833. + test "$am__universal" = false || continue
  14834. ;;
  14835. -
  14836. - *)
  14837. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14838. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14839. - _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'
  14840. + nosideeffect)
  14841. + # after this tag, mechanisms are not by side-effect, so they'll
  14842. + # only be used when explicitly requested
  14843. + if test "x$enable_dependency_tracking" = xyes; then
  14844. + continue
  14845. else
  14846. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  14847. + break
  14848. fi
  14849. ;;
  14850. + msvisualcpp | msvcmsys)
  14851. + # This compiler won't grok `-c -o', but also, the minuso test has
  14852. + # not run yet. These depmodes are late enough in the game, and
  14853. + # so weak that their functioning should not be impacted.
  14854. + am__obj=conftest.${OBJEXT-o}
  14855. + am__minus_obj=
  14856. + ;;
  14857. + none) break ;;
  14858. esac
  14859. -
  14860. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  14861. - runpath_var=
  14862. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  14863. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  14864. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  14865. - fi
  14866. - else
  14867. - # PORTME fill in a description of your system's linker (not GNU ld)
  14868. - case $host_os in
  14869. - aix3*)
  14870. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  14871. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  14872. - _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'
  14873. - # Note: this linker hardcodes the directories in LIBPATH if there
  14874. - # are no directories specified by -L.
  14875. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  14876. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14877. - # Neither direct hardcoding nor static linking is supported with a
  14878. - # broken collect2.
  14879. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  14880. + if depmode=$depmode \
  14881. + source=sub/conftest.c object=$am__obj \
  14882. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  14883. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  14884. + >/dev/null 2>conftest.err &&
  14885. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  14886. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  14887. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  14888. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  14889. + # icc doesn't choke on unknown options, it will just issue warnings
  14890. + # or remarks (even with -Werror). So we grep stderr for any message
  14891. + # that says an option was ignored or not supported.
  14892. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  14893. + # icc: Command line warning: ignoring option '-M'; no argument required
  14894. + # The diagnosis changed in icc 8.0:
  14895. + # icc: Command line remark: option '-MP' not supported
  14896. + if (grep 'ignoring option' conftest.err ||
  14897. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  14898. + am_cv_$1_dependencies_compiler_type=$depmode
  14899. + break
  14900. fi
  14901. - ;;
  14902. + fi
  14903. + done
  14904. - aix[[4-9]]*)
  14905. - if test "$host_cpu" = ia64; then
  14906. - # On IA64, the linker does run time linking by default, so we don't
  14907. - # have to do anything special.
  14908. - aix_use_runtimelinking=no
  14909. - exp_sym_flag='-Bexport'
  14910. - no_entry_flag=""
  14911. - else
  14912. - # If we're using GNU nm, then we don't want the "-C" option.
  14913. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14914. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14915. - _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'
  14916. - else
  14917. - _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'
  14918. - fi
  14919. - aix_use_runtimelinking=no
  14920. + cd ..
  14921. + rm -rf conftest.dir
  14922. +else
  14923. + am_cv_$1_dependencies_compiler_type=none
  14924. +fi
  14925. +])
  14926. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  14927. +AM_CONDITIONAL([am__fastdep$1], [
  14928. + test "x$enable_dependency_tracking" != xno \
  14929. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  14930. +])
  14931. - # Test if we are trying to use run time linking or normal
  14932. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14933. - # need to do runtime linking.
  14934. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  14935. - for ld_flag in $LDFLAGS; do
  14936. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14937. - aix_use_runtimelinking=yes
  14938. - break
  14939. - fi
  14940. - done
  14941. - ;;
  14942. - esac
  14943. - exp_sym_flag='-bexport'
  14944. - no_entry_flag='-bnoentry'
  14945. - fi
  14946. +# AM_SET_DEPDIR
  14947. +# -------------
  14948. +# Choose a directory name for dependency files.
  14949. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  14950. +AC_DEFUN([AM_SET_DEPDIR],
  14951. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  14952. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  14953. +])
  14954. - # When large executables or shared objects are built, AIX ld can
  14955. - # have problems creating the table of contents. If linking a library
  14956. - # or program results in "error TOC overflow" add -mminimal-toc to
  14957. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14958. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14959. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  14960. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  14961. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  14962. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  14963. +# AM_DEP_TRACK
  14964. +# ------------
  14965. +AC_DEFUN([AM_DEP_TRACK],
  14966. +[AC_ARG_ENABLE(dependency-tracking,
  14967. +[ --disable-dependency-tracking speeds up one-time build
  14968. + --enable-dependency-tracking do not reject slow dependency extractors])
  14969. +if test "x$enable_dependency_tracking" != xno; then
  14970. + am_depcomp="$ac_aux_dir/depcomp"
  14971. + AMDEPBACKSLASH='\'
  14972. +fi
  14973. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  14974. +AC_SUBST([AMDEPBACKSLASH])dnl
  14975. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  14976. +])
  14977. +
  14978. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  14979. - if test "$GCC" = yes; then
  14980. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  14981. - # We only want to do this on AIX 4.2 and lower, the check
  14982. - # below for broken collect2 doesn't work under 4.3+
  14983. - collect2name=`${CC} -print-prog-name=collect2`
  14984. - if test -f "$collect2name" && \
  14985. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  14986. - then
  14987. - # We have reworked collect2
  14988. - :
  14989. - else
  14990. - # We have old collect2
  14991. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  14992. - # It fails to find uninstalled libraries when the uninstalled
  14993. - # path is not listed in the libpath. Setting hardcode_minus_L
  14994. - # to unsupported forces relinking
  14995. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  14996. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  14997. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  14998. - fi
  14999. - ;;
  15000. - esac
  15001. - shared_flag='-shared'
  15002. - if test "$aix_use_runtimelinking" = yes; then
  15003. - shared_flag="$shared_flag "'${wl}-G'
  15004. - fi
  15005. - else
  15006. - # not using gcc
  15007. - if test "$host_cpu" = ia64; then
  15008. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15009. - # chokes on -Wl,-G. The following line is correct:
  15010. - shared_flag='-G'
  15011. - else
  15012. - if test "$aix_use_runtimelinking" = yes; then
  15013. - shared_flag='${wl}-G'
  15014. - else
  15015. - shared_flag='${wl}-bM:SRE'
  15016. - fi
  15017. - fi
  15018. - fi
  15019. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  15020. +# Free Software Foundation, Inc.
  15021. +#
  15022. +# This file is free software; the Free Software Foundation
  15023. +# gives unlimited permission to copy and/or distribute it,
  15024. +# with or without modifications, as long as this notice is preserved.
  15025. +
  15026. +#serial 5
  15027. +
  15028. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  15029. +# ------------------------------
  15030. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  15031. +[{
  15032. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15033. + # are listed without --file. Let's play safe and only enable the eval
  15034. + # if we detect the quoting.
  15035. + case $CONFIG_FILES in
  15036. + *\'*) eval set x "$CONFIG_FILES" ;;
  15037. + *) set x $CONFIG_FILES ;;
  15038. + esac
  15039. + shift
  15040. + for mf
  15041. + do
  15042. + # Strip MF so we end up with the name of the file.
  15043. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  15044. + # Check whether this is an Automake generated Makefile or not.
  15045. + # We used to match only the files named `Makefile.in', but
  15046. + # some people rename them; so instead we look at the file content.
  15047. + # Grep'ing the first line is not enough: some people post-process
  15048. + # each Makefile.in and add a new line on top of each file to say so.
  15049. + # Grep'ing the whole file is not good either: AIX grep has a line
  15050. + # limit of 2048, but all sed's we know have understand at least 4000.
  15051. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15052. + dirpart=`AS_DIRNAME("$mf")`
  15053. + else
  15054. + continue
  15055. + fi
  15056. + # Extract the definition of DEPDIR, am__include, and am__quote
  15057. + # from the Makefile without running `make'.
  15058. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15059. + test -z "$DEPDIR" && continue
  15060. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15061. + test -z "am__include" && continue
  15062. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15063. + # When using ansi2knr, U may be empty or an underscore; expand it
  15064. + U=`sed -n 's/^U = //p' < "$mf"`
  15065. + # Find all dependency output files, they are included files with
  15066. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  15067. + # simplest approach to changing $(DEPDIR) to its actual value in the
  15068. + # expansion.
  15069. + for file in `sed -n "
  15070. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15071. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15072. + # Make sure the directory exists.
  15073. + test -f "$dirpart/$file" && continue
  15074. + fdir=`AS_DIRNAME(["$file"])`
  15075. + AS_MKDIR_P([$dirpart/$fdir])
  15076. + # echo "creating $dirpart/$file"
  15077. + echo '# dummy' > "$dirpart/$file"
  15078. + done
  15079. + done
  15080. +}
  15081. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  15082. - # It seems that -bexpall does not export symbols beginning with
  15083. - # underscore (_), so it is better to generate a list of symbols to export.
  15084. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  15085. - if test "$aix_use_runtimelinking" = yes; then
  15086. - # Warning - without using the other runtime loading flags (-brtl),
  15087. - # -berok will link without error, but may produce a broken library.
  15088. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  15089. - # Determine the default libpath from the value encoded in an empty executable.
  15090. - _LT_AC_SYS_LIBPATH_AIX
  15091. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  15092. - _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"
  15093. - else
  15094. - if test "$host_cpu" = ia64; then
  15095. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  15096. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  15097. - _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"
  15098. - else
  15099. - # Determine the default libpath from the value encoded in an empty executable.
  15100. - _LT_AC_SYS_LIBPATH_AIX
  15101. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  15102. - # Warning - without using the other run time loading flags,
  15103. - # -berok will link without error, but may produce a broken library.
  15104. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  15105. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  15106. - # Exported symbols can be pulled into shared objects from archives
  15107. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  15108. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  15109. - # This is similar to how AIX traditionally builds its shared libraries.
  15110. - _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'
  15111. - fi
  15112. - fi
  15113. - ;;
  15114. - amigaos*)
  15115. - _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)'
  15116. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15117. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15118. - # see comment about different semantics on the GNU ld section
  15119. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  15120. - ;;
  15121. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  15122. +# -----------------------------
  15123. +# This macro should only be invoked once -- use via AC_REQUIRE.
  15124. +#
  15125. +# This code is only required when automatic dependency tracking
  15126. +# is enabled. FIXME. This creates each `.P' file that we will
  15127. +# need in order to bootstrap the dependency handling code.
  15128. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  15129. +[AC_CONFIG_COMMANDS([depfiles],
  15130. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  15131. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  15132. +])
  15133. - bsdi[[45]]*)
  15134. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  15135. - ;;
  15136. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  15137. +# Free Software Foundation, Inc.
  15138. +#
  15139. +# This file is free software; the Free Software Foundation
  15140. +# gives unlimited permission to copy and/or distribute it,
  15141. +# with or without modifications, as long as this notice is preserved.
  15142. - cygwin* | mingw* | pw32*)
  15143. - # When not using gcc, we currently assume that we are using
  15144. - # Microsoft Visual C++.
  15145. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  15146. - # no search path for DLLs.
  15147. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  15148. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  15149. - # Tell ltmain to make .lib files, not .a files.
  15150. - libext=lib
  15151. - # Tell ltmain to make .dll files, not .so files.
  15152. - shrext_cmds=".dll"
  15153. - # FIXME: Setting linknames here is a bad hack.
  15154. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15155. - # The linker will automatically build a .lib file if we build a DLL.
  15156. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  15157. - # FIXME: Should let the user specify the lib program.
  15158. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15159. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  15160. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  15161. - ;;
  15162. +# serial 8
  15163. - darwin* | rhapsody*)
  15164. - case $host_os in
  15165. - rhapsody* | darwin1.[[012]])
  15166. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  15167. - ;;
  15168. - *) # Darwin 1.3 on
  15169. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15170. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15171. - else
  15172. - case ${MACOSX_DEPLOYMENT_TARGET} in
  15173. - 10.[[012]])
  15174. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15175. - ;;
  15176. - 10.*)
  15177. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  15178. - ;;
  15179. - esac
  15180. - fi
  15181. - ;;
  15182. - esac
  15183. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  15184. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  15185. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  15186. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  15187. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  15188. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  15189. - if test "$GCC" = yes ; then
  15190. - output_verbose_link_cmd='echo'
  15191. - _LT_AC_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}"
  15192. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  15193. - _LT_AC_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}"
  15194. - _LT_AC_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}"
  15195. - else
  15196. - case $cc_basename in
  15197. - xlc*)
  15198. - output_verbose_link_cmd='echo'
  15199. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15200. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15201. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15202. - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15203. - _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}'
  15204. - ;;
  15205. - *)
  15206. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  15207. - ;;
  15208. - esac
  15209. - fi
  15210. - ;;
  15211. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  15212. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  15213. - dgux*)
  15214. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15215. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15216. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15217. - ;;
  15218. +# Do all the work for Automake. -*- Autoconf -*-
  15219. - freebsd1*)
  15220. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  15221. - ;;
  15222. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  15223. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  15224. +#
  15225. +# This file is free software; the Free Software Foundation
  15226. +# gives unlimited permission to copy and/or distribute it,
  15227. +# with or without modifications, as long as this notice is preserved.
  15228. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15229. - # support. Future versions do this automatically, but an explicit c++rt0.o
  15230. - # does not break anything, and helps significantly (at the cost of a little
  15231. - # extra space).
  15232. - freebsd2.2*)
  15233. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15234. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  15235. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15236. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15237. - ;;
  15238. +# serial 16
  15239. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15240. - freebsd2*)
  15241. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15242. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15243. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15244. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15245. - ;;
  15246. +# This macro actually does too much. Some checks are only needed if
  15247. +# your package does certain things. But this isn't really a big deal.
  15248. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15249. - freebsd* | dragonfly*)
  15250. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15251. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  15252. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15253. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15254. - ;;
  15255. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  15256. +# AM_INIT_AUTOMAKE([OPTIONS])
  15257. +# -----------------------------------------------
  15258. +# The call with PACKAGE and VERSION arguments is the old style
  15259. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  15260. +# and VERSION should now be passed to AC_INIT and removed from
  15261. +# the call to AM_INIT_AUTOMAKE.
  15262. +# We support both call styles for the transition. After
  15263. +# the next Automake release, Autoconf can make the AC_INIT
  15264. +# arguments mandatory, and then we can depend on a new Autoconf
  15265. +# release and drop the old call support.
  15266. +AC_DEFUN([AM_INIT_AUTOMAKE],
  15267. +[AC_PREREQ([2.62])dnl
  15268. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  15269. +dnl the ones we care about.
  15270. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  15271. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  15272. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  15273. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  15274. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  15275. + # is not polluted with repeated "-I."
  15276. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  15277. + # test to see if srcdir already configured
  15278. + if test -f $srcdir/config.status; then
  15279. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  15280. + fi
  15281. +fi
  15282. - hpux9*)
  15283. - if test "$GCC" = yes; then
  15284. - _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'
  15285. - else
  15286. - _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'
  15287. - fi
  15288. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  15289. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15290. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15291. +# test whether we have cygpath
  15292. +if test -z "$CYGPATH_W"; then
  15293. + if (cygpath --version) >/dev/null 2>/dev/null; then
  15294. + CYGPATH_W='cygpath -w'
  15295. + else
  15296. + CYGPATH_W=echo
  15297. + fi
  15298. +fi
  15299. +AC_SUBST([CYGPATH_W])
  15300. - # hardcode_minus_L: Not really in the search PATH,
  15301. - # but as the default location of the library.
  15302. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15303. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  15304. - ;;
  15305. +# Define the identity of the package.
  15306. +dnl Distinguish between old-style and new-style calls.
  15307. +m4_ifval([$2],
  15308. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  15309. + AC_SUBST([PACKAGE], [$1])dnl
  15310. + AC_SUBST([VERSION], [$2])],
  15311. +[_AM_SET_OPTIONS([$1])dnl
  15312. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  15313. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  15314. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  15315. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  15316. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  15317. - hpux10*)
  15318. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15319. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15320. - else
  15321. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15322. - fi
  15323. - if test "$with_gnu_ld" = no; then
  15324. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  15325. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15326. +_AM_IF_OPTION([no-define],,
  15327. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  15328. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  15329. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15330. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  15331. +# Some tools Automake needs.
  15332. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  15333. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  15334. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  15335. +AM_MISSING_PROG(AUTOCONF, autoconf)
  15336. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  15337. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  15338. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  15339. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  15340. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  15341. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  15342. +# We need awk for the "check" target. The system "awk" is bad on
  15343. +# some platforms.
  15344. +AC_REQUIRE([AC_PROG_AWK])dnl
  15345. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  15346. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  15347. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  15348. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  15349. + [_AM_PROG_TAR([v7])])])
  15350. +_AM_IF_OPTION([no-dependencies],,
  15351. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  15352. + [_AM_DEPENDENCIES(CC)],
  15353. + [define([AC_PROG_CC],
  15354. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  15355. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  15356. + [_AM_DEPENDENCIES(CXX)],
  15357. + [define([AC_PROG_CXX],
  15358. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  15359. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  15360. + [_AM_DEPENDENCIES(OBJC)],
  15361. + [define([AC_PROG_OBJC],
  15362. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  15363. +])
  15364. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  15365. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  15366. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  15367. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  15368. +AC_CONFIG_COMMANDS_PRE(dnl
  15369. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  15370. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  15371. +])
  15372. - # hardcode_minus_L: Not really in the search PATH,
  15373. - # but as the default location of the library.
  15374. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15375. - fi
  15376. - ;;
  15377. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  15378. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  15379. +dnl mangled by Autoconf and run in a shell conditional statement.
  15380. +m4_define([_AC_COMPILER_EXEEXT],
  15381. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  15382. - hpux11*)
  15383. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15384. - case $host_cpu in
  15385. - hppa*64*)
  15386. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15387. - ;;
  15388. - ia64*)
  15389. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15390. - ;;
  15391. - *)
  15392. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15393. - ;;
  15394. - esac
  15395. - else
  15396. - case $host_cpu in
  15397. - hppa*64*)
  15398. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15399. - ;;
  15400. - ia64*)
  15401. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15402. - ;;
  15403. - *)
  15404. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15405. - ;;
  15406. - esac
  15407. - fi
  15408. - if test "$with_gnu_ld" = no; then
  15409. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  15410. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15411. - case $host_cpu in
  15412. - hppa*64*|ia64*)
  15413. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  15414. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  15415. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15416. - ;;
  15417. - *)
  15418. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15419. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  15420. +# When config.status generates a header, we must update the stamp-h file.
  15421. +# This file resides in the same directory as the config header
  15422. +# that is generated. The stamp files are numbered to have different names.
  15423. - # hardcode_minus_L: Not really in the search PATH,
  15424. - # but as the default location of the library.
  15425. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15426. - ;;
  15427. - esac
  15428. - fi
  15429. - ;;
  15430. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  15431. +# loop where config.status creates the headers, so we can generate
  15432. +# our stamp files there.
  15433. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  15434. +[# Compute $1's index in $config_headers.
  15435. +_am_arg=$1
  15436. +_am_stamp_count=1
  15437. +for _am_header in $config_headers :; do
  15438. + case $_am_header in
  15439. + $_am_arg | $_am_arg:* )
  15440. + break ;;
  15441. + * )
  15442. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15443. + esac
  15444. +done
  15445. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  15446. - irix5* | irix6* | nonstopux*)
  15447. - if test "$GCC" = yes; then
  15448. - _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'
  15449. - else
  15450. - _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'
  15451. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  15452. - fi
  15453. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  15454. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15455. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  15456. - ;;
  15457. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  15458. +#
  15459. +# This file is free software; the Free Software Foundation
  15460. +# gives unlimited permission to copy and/or distribute it,
  15461. +# with or without modifications, as long as this notice is preserved.
  15462. - netbsd*)
  15463. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15464. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15465. - else
  15466. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15467. - fi
  15468. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  15469. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15470. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15471. - ;;
  15472. +# AM_PROG_INSTALL_SH
  15473. +# ------------------
  15474. +# Define $install_sh.
  15475. +AC_DEFUN([AM_PROG_INSTALL_SH],
  15476. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  15477. +if test x"${install_sh}" != xset; then
  15478. + case $am_aux_dir in
  15479. + *\ * | *\ *)
  15480. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  15481. + *)
  15482. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  15483. + esac
  15484. +fi
  15485. +AC_SUBST(install_sh)])
  15486. - newsos6)
  15487. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15488. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15489. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  15490. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15491. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15492. - ;;
  15493. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  15494. +#
  15495. +# This file is free software; the Free Software Foundation
  15496. +# gives unlimited permission to copy and/or distribute it,
  15497. +# with or without modifications, as long as this notice is preserved.
  15498. - openbsd*)
  15499. - if test -f /usr/libexec/ld.so; then
  15500. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15501. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15502. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15503. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15504. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15505. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  15506. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  15507. - else
  15508. - case $host_os in
  15509. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  15510. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15511. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  15512. - ;;
  15513. - *)
  15514. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15515. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  15516. - ;;
  15517. - esac
  15518. - fi
  15519. - else
  15520. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  15521. - fi
  15522. - ;;
  15523. +# serial 2
  15524. - os2*)
  15525. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15526. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15527. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  15528. - _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'
  15529. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15530. - ;;
  15531. +# Check whether the underlying file-system supports filenames
  15532. +# with a leading dot. For instance MS-DOS doesn't.
  15533. +AC_DEFUN([AM_SET_LEADING_DOT],
  15534. +[rm -rf .tst 2>/dev/null
  15535. +mkdir .tst 2>/dev/null
  15536. +if test -d .tst; then
  15537. + am__leading_dot=.
  15538. +else
  15539. + am__leading_dot=_
  15540. +fi
  15541. +rmdir .tst 2>/dev/null
  15542. +AC_SUBST([am__leading_dot])])
  15543. - osf3*)
  15544. - if test "$GCC" = yes; then
  15545. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  15546. - _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'
  15547. - else
  15548. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  15549. - _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'
  15550. - fi
  15551. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  15552. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15553. - ;;
  15554. +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  15555. +# From Jim Meyering
  15556. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  15557. - if test "$GCC" = yes; then
  15558. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  15559. - _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'
  15560. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  15561. - else
  15562. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  15563. - _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'
  15564. - _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~
  15565. - $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'
  15566. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  15567. +# Free Software Foundation, Inc.
  15568. +#
  15569. +# This file is free software; the Free Software Foundation
  15570. +# gives unlimited permission to copy and/or distribute it,
  15571. +# with or without modifications, as long as this notice is preserved.
  15572. - # Both c and cxx compiler support -rpath directly
  15573. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  15574. - fi
  15575. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  15576. - ;;
  15577. +# serial 5
  15578. - solaris*)
  15579. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  15580. - if test "$GCC" = yes; then
  15581. - wlarc='${wl}'
  15582. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15583. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15584. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15585. - else
  15586. - wlarc=''
  15587. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15588. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15589. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15590. - fi
  15591. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  15592. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15593. - case $host_os in
  15594. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  15595. - *)
  15596. - # The compiler driver will combine and reorder linker options,
  15597. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  15598. - # but is careful enough not to reorder.
  15599. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  15600. - if test "$GCC" = yes; then
  15601. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15602. - else
  15603. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  15604. - fi
  15605. - ;;
  15606. - esac
  15607. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  15608. - ;;
  15609. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  15610. +# ----------------------------------
  15611. +# Control maintainer-specific portions of Makefiles.
  15612. +# Default is to disable them, unless `enable' is passed literally.
  15613. +# For symmetry, `disable' may be passed as well. Anyway, the user
  15614. +# can override the default with the --enable/--disable switch.
  15615. +AC_DEFUN([AM_MAINTAINER_MODE],
  15616. +[m4_case(m4_default([$1], [disable]),
  15617. + [enable], [m4_define([am_maintainer_other], [disable])],
  15618. + [disable], [m4_define([am_maintainer_other], [enable])],
  15619. + [m4_define([am_maintainer_other], [enable])
  15620. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  15621. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  15622. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  15623. + AC_ARG_ENABLE([maintainer-mode],
  15624. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  15625. + (and sometimes confusing) to the casual installer],
  15626. + [USE_MAINTAINER_MODE=$enableval],
  15627. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  15628. + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  15629. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  15630. + MAINT=$MAINTAINER_MODE_TRUE
  15631. + AC_SUBST([MAINT])dnl
  15632. +]
  15633. +)
  15634. - sunos4*)
  15635. - if test "x$host_vendor" = xsequent; then
  15636. - # Use $CC to link under sequent, because it throws in some extra .o
  15637. - # files that make .init and .fini sections work.
  15638. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15639. - else
  15640. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15641. - fi
  15642. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15643. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  15644. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  15645. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15646. - ;;
  15647. +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  15648. - sysv4)
  15649. - case $host_vendor in
  15650. - sni)
  15651. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15652. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  15653. - ;;
  15654. - siemens)
  15655. - ## LD is ld it makes a PLAMLIB
  15656. - ## CC just makes a GrossModule.
  15657. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15658. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  15659. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  15660. - ;;
  15661. - motorola)
  15662. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15663. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  15664. - ;;
  15665. - esac
  15666. - runpath_var='LD_RUN_PATH'
  15667. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15668. - ;;
  15669. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  15670. - sysv4.3*)
  15671. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15672. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15673. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  15674. - ;;
  15675. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  15676. +#
  15677. +# This file is free software; the Free Software Foundation
  15678. +# gives unlimited permission to copy and/or distribute it,
  15679. +# with or without modifications, as long as this notice is preserved.
  15680. - sysv4*MP*)
  15681. - if test -d /usr/nec; then
  15682. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15683. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15684. - runpath_var=LD_RUN_PATH
  15685. - hardcode_runpath_var=yes
  15686. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  15687. - fi
  15688. - ;;
  15689. +# serial 4
  15690. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  15691. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  15692. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  15693. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15694. - runpath_var='LD_RUN_PATH'
  15695. +# AM_MAKE_INCLUDE()
  15696. +# -----------------
  15697. +# Check to see how make treats includes.
  15698. +AC_DEFUN([AM_MAKE_INCLUDE],
  15699. +[am_make=${MAKE-make}
  15700. +cat > confinc << 'END'
  15701. +am__doit:
  15702. + @echo this is the am__doit target
  15703. +.PHONY: am__doit
  15704. +END
  15705. +# If we don't find an include directive, just comment out the code.
  15706. +AC_MSG_CHECKING([for style of include used by $am_make])
  15707. +am__include="#"
  15708. +am__quote=
  15709. +_am_result=none
  15710. +# First try GNU make style include.
  15711. +echo "include confinc" > confmf
  15712. +# Ignore all kinds of additional output from `make'.
  15713. +case `$am_make -s -f confmf 2> /dev/null` in #(
  15714. +*the\ am__doit\ target*)
  15715. + am__include=include
  15716. + am__quote=
  15717. + _am_result=GNU
  15718. + ;;
  15719. +esac
  15720. +# Now try BSD make style include.
  15721. +if test "$am__include" = "#"; then
  15722. + echo '.include "confinc"' > confmf
  15723. + case `$am_make -s -f confmf 2> /dev/null` in #(
  15724. + *the\ am__doit\ target*)
  15725. + am__include=.include
  15726. + am__quote="\""
  15727. + _am_result=BSD
  15728. + ;;
  15729. + esac
  15730. +fi
  15731. +AC_SUBST([am__include])
  15732. +AC_SUBST([am__quote])
  15733. +AC_MSG_RESULT([$_am_result])
  15734. +rm -f confinc confmf
  15735. +])
  15736. - if test "$GCC" = yes; then
  15737. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15738. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15739. - else
  15740. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15741. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15742. - fi
  15743. - ;;
  15744. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  15745. - sysv5* | sco3.2v5* | sco5v6*)
  15746. - # Note: We can NOT use -z defs as we might desire, because we do not
  15747. - # link with -lc, and that would cause any symbols used from libc to
  15748. - # always be unresolved, which means just about no library would
  15749. - # ever link correctly. If we're not using GNU ld we use -z text
  15750. - # though, which does catch some bad symbols but isn't as heavy-handed
  15751. - # as -z defs.
  15752. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  15753. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  15754. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  15755. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15756. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15757. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  15758. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  15759. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  15760. - runpath_var='LD_RUN_PATH'
  15761. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  15762. +# Free Software Foundation, Inc.
  15763. +#
  15764. +# This file is free software; the Free Software Foundation
  15765. +# gives unlimited permission to copy and/or distribute it,
  15766. +# with or without modifications, as long as this notice is preserved.
  15767. - if test "$GCC" = yes; then
  15768. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15769. - _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'
  15770. - else
  15771. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15772. - _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'
  15773. - fi
  15774. - ;;
  15775. +# serial 6
  15776. +
  15777. +# AM_MISSING_PROG(NAME, PROGRAM)
  15778. +# ------------------------------
  15779. +AC_DEFUN([AM_MISSING_PROG],
  15780. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  15781. +$1=${$1-"${am_missing_run}$2"}
  15782. +AC_SUBST($1)])
  15783. - uts4*)
  15784. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15785. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  15786. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  15787. - ;;
  15788. - *)
  15789. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  15790. - ;;
  15791. - esac
  15792. - fi
  15793. +# AM_MISSING_HAS_RUN
  15794. +# ------------------
  15795. +# Define MISSING if not defined so far and test if it supports --run.
  15796. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  15797. +AC_DEFUN([AM_MISSING_HAS_RUN],
  15798. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  15799. +AC_REQUIRE_AUX_FILE([missing])dnl
  15800. +if test x"${MISSING+set}" != xset; then
  15801. + case $am_aux_dir in
  15802. + *\ * | *\ *)
  15803. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  15804. + *)
  15805. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  15806. + esac
  15807. +fi
  15808. +# Use eval to expand $SHELL
  15809. +if eval "$MISSING --run true"; then
  15810. + am_missing_run="$MISSING --run "
  15811. +else
  15812. + am_missing_run=
  15813. + AC_MSG_WARN([`missing' script is too old or missing])
  15814. +fi
  15815. ])
  15816. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  15817. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  15818. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  15819. #
  15820. -# Do we need to explicitly link libc?
  15821. -#
  15822. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  15823. -x|xyes)
  15824. - # Assume -lc should be added
  15825. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  15826. -
  15827. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  15828. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  15829. - *'~'*)
  15830. - # FIXME: we may have to deal with multi-command sequences.
  15831. - ;;
  15832. - '$CC '*)
  15833. - # Test whether the compiler implicitly links with -lc since on some
  15834. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15835. - # to ld, don't add -lc before -lgcc.
  15836. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  15837. - $rm conftest*
  15838. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15839. +# This file is free software; the Free Software Foundation
  15840. +# gives unlimited permission to copy and/or distribute it,
  15841. +# with or without modifications, as long as this notice is preserved.
  15842. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  15843. - soname=conftest
  15844. - lib=conftest
  15845. - libobjs=conftest.$ac_objext
  15846. - deplibs=
  15847. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  15848. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  15849. - compiler_flags=-v
  15850. - linker_flags=-v
  15851. - verstring=
  15852. - output_objdir=.
  15853. - libname=conftest
  15854. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  15855. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  15856. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  15857. - then
  15858. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  15859. - else
  15860. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  15861. - fi
  15862. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  15863. - else
  15864. - cat conftest.err 1>&5
  15865. - fi
  15866. - $rm conftest*
  15867. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  15868. - ;;
  15869. - esac
  15870. - fi
  15871. - ;;
  15872. +# AM_PROG_MKDIR_P
  15873. +# ---------------
  15874. +# Check for `mkdir -p'.
  15875. +AC_DEFUN([AM_PROG_MKDIR_P],
  15876. +[AC_PREREQ([2.60])dnl
  15877. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  15878. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  15879. +dnl while keeping a definition of mkdir_p for backward compatibility.
  15880. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  15881. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  15882. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  15883. +dnl adjustment using top_builddir (which is defined more often than
  15884. +dnl MKDIR_P).
  15885. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  15886. +case $mkdir_p in
  15887. + [[\\/$]]* | ?:[[\\/]]*) ;;
  15888. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  15889. esac
  15890. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  15891. -
  15892. -
  15893. -# _LT_AC_FILE_LTDLL_C
  15894. -# -------------------
  15895. -# Be careful that the start marker always follows a newline.
  15896. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  15897. -# /* ltdll.c starts here */
  15898. -# #define WIN32_LEAN_AND_MEAN
  15899. -# #include <windows.h>
  15900. -# #undef WIN32_LEAN_AND_MEAN
  15901. -# #include <stdio.h>
  15902. -#
  15903. -# #ifndef __CYGWIN__
  15904. -# # ifdef __CYGWIN32__
  15905. -# # define __CYGWIN__ __CYGWIN32__
  15906. -# # endif
  15907. -# #endif
  15908. -#
  15909. -# #ifdef __cplusplus
  15910. -# extern "C" {
  15911. -# #endif
  15912. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  15913. -# #ifdef __cplusplus
  15914. -# }
  15915. -# #endif
  15916. -#
  15917. -# #ifdef __CYGWIN__
  15918. -# #include <cygwin/cygwin_dll.h>
  15919. -# DECLARE_CYGWIN_DLL( DllMain );
  15920. -# #endif
  15921. -# HINSTANCE __hDllInstance_base;
  15922. -#
  15923. -# BOOL APIENTRY
  15924. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  15925. -# {
  15926. -# __hDllInstance_base = hInst;
  15927. -# return TRUE;
  15928. -# }
  15929. -# /* ltdll.c ends here */
  15930. -])# _LT_AC_FILE_LTDLL_C
  15931. +])
  15932. +# Helper functions for option handling. -*- Autoconf -*-
  15933. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  15934. -# ---------------------------------
  15935. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  15936. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  15937. +#
  15938. +# This file is free software; the Free Software Foundation
  15939. +# gives unlimited permission to copy and/or distribute it,
  15940. +# with or without modifications, as long as this notice is preserved.
  15941. +# serial 4
  15942. -# old names
  15943. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  15944. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  15945. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  15946. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  15947. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  15948. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  15949. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  15950. +# _AM_MANGLE_OPTION(NAME)
  15951. +# -----------------------
  15952. +AC_DEFUN([_AM_MANGLE_OPTION],
  15953. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  15954. -# This is just to silence aclocal about the macro not being used
  15955. -ifelse([AC_DISABLE_FAST_INSTALL])
  15956. +# _AM_SET_OPTION(NAME)
  15957. +# ------------------------------
  15958. +# Set option NAME. Presently that only means defining a flag for this option.
  15959. +AC_DEFUN([_AM_SET_OPTION],
  15960. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  15961. -AC_DEFUN([LT_AC_PROG_GCJ],
  15962. -[AC_CHECK_TOOL(GCJ, gcj, no)
  15963. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  15964. - AC_SUBST(GCJFLAGS)
  15965. -])
  15966. +# _AM_SET_OPTIONS(OPTIONS)
  15967. +# ----------------------------------
  15968. +# OPTIONS is a space-separated list of Automake options.
  15969. +AC_DEFUN([_AM_SET_OPTIONS],
  15970. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  15971. -AC_DEFUN([LT_AC_PROG_RC],
  15972. -[AC_CHECK_TOOL(RC, windres, no)
  15973. -])
  15974. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  15975. +# -------------------------------------------
  15976. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  15977. +AC_DEFUN([_AM_IF_OPTION],
  15978. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  15979. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  15980. -# Cheap backport of AS_EXECUTABLE_P and required macros
  15981. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  15982. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  15983. +# Free Software Foundation, Inc.
  15984. +#
  15985. +# This file is free software; the Free Software Foundation
  15986. +# gives unlimited permission to copy and/or distribute it,
  15987. +# with or without modifications, as long as this notice is preserved.
  15988. -# _AS_TEST_PREPARE
  15989. -# ----------------
  15990. -m4_ifndef([_AS_TEST_PREPARE],
  15991. -[m4_defun([_AS_TEST_PREPARE],
  15992. -[if test -x / >/dev/null 2>&1; then
  15993. - as_executable_p='test -x'
  15994. -else
  15995. - as_executable_p='test -f'
  15996. -fi
  15997. -])])# _AS_TEST_PREPARE
  15998. +# serial 5
  15999. -# AS_EXECUTABLE_P
  16000. +# AM_SANITY_CHECK
  16001. # ---------------
  16002. -# Check whether a file is executable.
  16003. -m4_ifndef([AS_EXECUTABLE_P],
  16004. -[m4_defun([AS_EXECUTABLE_P],
  16005. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  16006. -$as_executable_p $1[]dnl
  16007. -])])# AS_EXECUTABLE_P
  16008. +AC_DEFUN([AM_SANITY_CHECK],
  16009. +[AC_MSG_CHECKING([whether build environment is sane])
  16010. +# Just in case
  16011. +sleep 1
  16012. +echo timestamp > conftest.file
  16013. +# Reject unsafe characters in $srcdir or the absolute working directory
  16014. +# name. Accept space and tab only in the latter.
  16015. +am_lf='
  16016. +'
  16017. +case `pwd` in
  16018. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  16019. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  16020. +esac
  16021. +case $srcdir in
  16022. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  16023. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  16024. +esac
  16025. -# NOTE: This macro has been submitted for inclusion into #
  16026. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  16027. -# a released version of Autoconf we should remove this #
  16028. -# macro and use it instead. #
  16029. -# LT_AC_PROG_SED
  16030. -# --------------
  16031. -# Check for a fully-functional sed program, that truncates
  16032. -# as few characters as possible. Prefer GNU sed if found.
  16033. -AC_DEFUN([LT_AC_PROG_SED],
  16034. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  16035. -AC_CACHE_VAL(lt_cv_path_SED,
  16036. -[# Loop through the user's path and test for sed and gsed.
  16037. -# Then use that list of sed's as ones to test for truncation.
  16038. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16039. -for as_dir in $PATH
  16040. -do
  16041. - IFS=$as_save_IFS
  16042. - test -z "$as_dir" && as_dir=.
  16043. - for lt_ac_prog in sed gsed; do
  16044. - for ac_exec_ext in '' $ac_executable_extensions; do
  16045. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  16046. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  16047. - fi
  16048. - done
  16049. - done
  16050. -done
  16051. -IFS=$as_save_IFS
  16052. -lt_ac_max=0
  16053. -lt_ac_count=0
  16054. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  16055. -# along with /bin/sed that truncates output.
  16056. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  16057. - test ! -f $lt_ac_sed && continue
  16058. - cat /dev/null > conftest.in
  16059. - lt_ac_count=0
  16060. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  16061. - # Check for GNU sed and select it if it is found.
  16062. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  16063. - lt_cv_path_SED=$lt_ac_sed
  16064. - break
  16065. - fi
  16066. - while true; do
  16067. - cat conftest.in conftest.in >conftest.tmp
  16068. - mv conftest.tmp conftest.in
  16069. - cp conftest.in conftest.nl
  16070. - echo >>conftest.nl
  16071. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  16072. - cmp -s conftest.out conftest.nl || break
  16073. - # 10000 chars as input seems more than enough
  16074. - test $lt_ac_count -gt 10 && break
  16075. - lt_ac_count=`expr $lt_ac_count + 1`
  16076. - if test $lt_ac_count -gt $lt_ac_max; then
  16077. - lt_ac_max=$lt_ac_count
  16078. - lt_cv_path_SED=$lt_ac_sed
  16079. - fi
  16080. - done
  16081. -done
  16082. -])
  16083. -SED=$lt_cv_path_SED
  16084. -AC_SUBST([SED])
  16085. -AC_MSG_RESULT([$SED])
  16086. -])
  16087. +# Do `set' in a subshell so we don't clobber the current shell's
  16088. +# arguments. Must try -L first in case configure is actually a
  16089. +# symlink; some systems play weird games with the mod time of symlinks
  16090. +# (eg FreeBSD returns the mod time of the symlink's containing
  16091. +# directory).
  16092. +if (
  16093. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  16094. + if test "$[*]" = "X"; then
  16095. + # -L didn't work.
  16096. + set X `ls -t "$srcdir/configure" conftest.file`
  16097. + fi
  16098. + rm -f conftest.file
  16099. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  16100. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  16101. -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  16102. -#
  16103. -# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  16104. -#
  16105. -# This program is free software; you can redistribute it and/or modify
  16106. -# it under the terms of the GNU General Public License as published by
  16107. -# the Free Software Foundation; either version 2 of the License, or
  16108. -# (at your option) any later version.
  16109. -#
  16110. -# This program is distributed in the hope that it will be useful, but
  16111. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  16112. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16113. -# General Public License for more details.
  16114. -#
  16115. -# You should have received a copy of the GNU General Public License
  16116. -# along with this program; if not, write to the Free Software
  16117. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16118. -#
  16119. -# As a special exception to the GNU General Public License, if you
  16120. -# distribute this file as part of a program that contains a
  16121. -# configuration script generated by Autoconf, you may include it under
  16122. -# the same distribution terms that you use for the rest of that program.
  16123. + # If neither matched, then we have a broken ls. This can happen
  16124. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  16125. + # broken ls alias from the environment. This has actually
  16126. + # happened. Such a system could not be considered "sane".
  16127. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  16128. +alias in your environment])
  16129. + fi
  16130. -# PKG_PROG_PKG_CONFIG([MIN-VERSION])
  16131. -# ----------------------------------
  16132. -AC_DEFUN([PKG_PROG_PKG_CONFIG],
  16133. -[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  16134. -m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  16135. -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  16136. -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  16137. - AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  16138. + test "$[2]" = conftest.file
  16139. + )
  16140. +then
  16141. + # Ok.
  16142. + :
  16143. +else
  16144. + AC_MSG_ERROR([newly created file is older than distributed files!
  16145. +Check your system clock])
  16146. fi
  16147. -if test -n "$PKG_CONFIG"; then
  16148. - _pkg_min_version=m4_default([$1], [0.9.0])
  16149. - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  16150. - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  16151. - AC_MSG_RESULT([yes])
  16152. - else
  16153. - AC_MSG_RESULT([no])
  16154. - PKG_CONFIG=""
  16155. - fi
  16156. -
  16157. -fi[]dnl
  16158. -])# PKG_PROG_PKG_CONFIG
  16159. +AC_MSG_RESULT(yes)])
  16160. -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  16161. -#
  16162. -# Check to see whether a particular set of modules exists. Similar
  16163. -# to PKG_CHECK_MODULES(), but does not set variables or print errors.
  16164. -#
  16165. +# Copyright (C) 2009 Free Software Foundation, Inc.
  16166. #
  16167. -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
  16168. -# this or PKG_CHECK_MODULES is called, or make sure to call
  16169. -# PKG_CHECK_EXISTS manually
  16170. -# --------------------------------------------------------------
  16171. -AC_DEFUN([PKG_CHECK_EXISTS],
  16172. -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  16173. -if test -n "$PKG_CONFIG" && \
  16174. - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  16175. - m4_ifval([$2], [$2], [:])
  16176. -m4_ifvaln([$3], [else
  16177. - $3])dnl
  16178. -fi])
  16179. +# This file is free software; the Free Software Foundation
  16180. +# gives unlimited permission to copy and/or distribute it,
  16181. +# with or without modifications, as long as this notice is preserved.
  16182. +# serial 1
  16183. -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  16184. -# ---------------------------------------------
  16185. -m4_define([_PKG_CONFIG],
  16186. -[if test -n "$$1"; then
  16187. - pkg_cv_[]$1="$$1"
  16188. - elif test -n "$PKG_CONFIG"; then
  16189. - PKG_CHECK_EXISTS([$3],
  16190. - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  16191. - [pkg_failed=yes])
  16192. - else
  16193. - pkg_failed=untried
  16194. -fi[]dnl
  16195. -])# _PKG_CONFIG
  16196. +# AM_SILENT_RULES([DEFAULT])
  16197. +# --------------------------
  16198. +# Enable less verbose build rules; with the default set to DEFAULT
  16199. +# (`yes' being less verbose, `no' or empty being verbose).
  16200. +AC_DEFUN([AM_SILENT_RULES],
  16201. +[AC_ARG_ENABLE([silent-rules],
  16202. +[ --enable-silent-rules less verbose build output (undo: `make V=1')
  16203. + --disable-silent-rules verbose build output (undo: `make V=0')])
  16204. +case $enable_silent_rules in
  16205. +yes) AM_DEFAULT_VERBOSITY=0;;
  16206. +no) AM_DEFAULT_VERBOSITY=1;;
  16207. +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  16208. +esac
  16209. +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  16210. +AM_BACKSLASH='\'
  16211. +AC_SUBST([AM_BACKSLASH])dnl
  16212. +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  16213. +])
  16214. -# _PKG_SHORT_ERRORS_SUPPORTED
  16215. -# -----------------------------
  16216. -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  16217. -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  16218. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16219. - _pkg_short_errors_supported=yes
  16220. -else
  16221. - _pkg_short_errors_supported=no
  16222. -fi[]dnl
  16223. -])# _PKG_SHORT_ERRORS_SUPPORTED
  16224. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  16225. +#
  16226. +# This file is free software; the Free Software Foundation
  16227. +# gives unlimited permission to copy and/or distribute it,
  16228. +# with or without modifications, as long as this notice is preserved.
  16229. +# AM_PROG_INSTALL_STRIP
  16230. +# ---------------------
  16231. +# One issue with vendor `install' (even GNU) is that you can't
  16232. +# specify the program used to strip binaries. This is especially
  16233. +# annoying in cross-compiling environments, where the build's strip
  16234. +# is unlikely to handle the host's binaries.
  16235. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  16236. +# always use install-sh in `make install-strip', and initialize
  16237. +# STRIPPROG with the value of the STRIP variable (set by the user).
  16238. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  16239. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  16240. +# Installed binaries are usually stripped using `strip' when the user
  16241. +# run `make install-strip'. However `strip' might not be the right
  16242. +# tool to use in cross-compilation environments, therefore Automake
  16243. +# will honor the `STRIP' environment variable to overrule this program.
  16244. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  16245. +if test "$cross_compiling" != no; then
  16246. + AC_CHECK_TOOL([STRIP], [strip], :)
  16247. +fi
  16248. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  16249. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  16250. -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  16251. -# [ACTION-IF-NOT-FOUND])
  16252. -#
  16253. -#
  16254. -# Note that if there is a possibility the first call to
  16255. -# PKG_CHECK_MODULES might not happen, you should be sure to include an
  16256. -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  16257. -#
  16258. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  16259. #
  16260. -# --------------------------------------------------------------
  16261. -AC_DEFUN([PKG_CHECK_MODULES],
  16262. -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  16263. -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  16264. -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  16265. +# This file is free software; the Free Software Foundation
  16266. +# gives unlimited permission to copy and/or distribute it,
  16267. +# with or without modifications, as long as this notice is preserved.
  16268. -pkg_failed=no
  16269. -AC_MSG_CHECKING([for $1])
  16270. +# serial 2
  16271. -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  16272. -_PKG_CONFIG([$1][_LIBS], [libs], [$2])
  16273. +# _AM_SUBST_NOTMAKE(VARIABLE)
  16274. +# ---------------------------
  16275. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  16276. +# This macro is traced by Automake.
  16277. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  16278. -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  16279. -and $1[]_LIBS to avoid the need to call pkg-config.
  16280. -See the pkg-config man page for more details.])
  16281. +# AM_SUBST_NOTMAKE(VARIABLE)
  16282. +# ---------------------------
  16283. +# Public sister of _AM_SUBST_NOTMAKE.
  16284. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  16285. -if test $pkg_failed = yes; then
  16286. - _PKG_SHORT_ERRORS_SUPPORTED
  16287. - if test $_pkg_short_errors_supported = yes; then
  16288. - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  16289. - else
  16290. - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  16291. - fi
  16292. - # Put the nasty error message in config.log where it belongs
  16293. - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  16294. +# Check how to create a tarball. -*- Autoconf -*-
  16295. - ifelse([$4], , [AC_MSG_ERROR(dnl
  16296. -[Package requirements ($2) were not met:
  16297. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  16298. +#
  16299. +# This file is free software; the Free Software Foundation
  16300. +# gives unlimited permission to copy and/or distribute it,
  16301. +# with or without modifications, as long as this notice is preserved.
  16302. -$$1_PKG_ERRORS
  16303. +# serial 2
  16304. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16305. -installed software in a non-standard prefix.
  16306. +# _AM_PROG_TAR(FORMAT)
  16307. +# --------------------
  16308. +# Check how to create a tarball in format FORMAT.
  16309. +# FORMAT should be one of `v7', `ustar', or `pax'.
  16310. +#
  16311. +# Substitute a variable $(am__tar) that is a command
  16312. +# writing to stdout a FORMAT-tarball containing the directory
  16313. +# $tardir.
  16314. +# tardir=directory && $(am__tar) > result.tar
  16315. +#
  16316. +# Substitute a variable $(am__untar) that extract such
  16317. +# a tarball read from stdin.
  16318. +# $(am__untar) < result.tar
  16319. +AC_DEFUN([_AM_PROG_TAR],
  16320. +[# Always define AMTAR for backward compatibility.
  16321. +AM_MISSING_PROG([AMTAR], [tar])
  16322. +m4_if([$1], [v7],
  16323. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  16324. + [m4_case([$1], [ustar],, [pax],,
  16325. + [m4_fatal([Unknown tar format])])
  16326. +AC_MSG_CHECKING([how to create a $1 tar archive])
  16327. +# Loop over all known methods to create a tar archive until one works.
  16328. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  16329. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  16330. +# Do not fold the above two line into one, because Tru64 sh and
  16331. +# Solaris sh will not grok spaces in the rhs of `-'.
  16332. +for _am_tool in $_am_tools
  16333. +do
  16334. + case $_am_tool in
  16335. + gnutar)
  16336. + for _am_tar in tar gnutar gtar;
  16337. + do
  16338. + AM_RUN_LOG([$_am_tar --version]) && break
  16339. + done
  16340. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  16341. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  16342. + am__untar="$_am_tar -xf -"
  16343. + ;;
  16344. + plaintar)
  16345. + # Must skip GNU tar: if it does not support --format= it doesn't create
  16346. + # ustar tarball either.
  16347. + (tar --version) >/dev/null 2>&1 && continue
  16348. + am__tar='tar chf - "$$tardir"'
  16349. + am__tar_='tar chf - "$tardir"'
  16350. + am__untar='tar xf -'
  16351. + ;;
  16352. + pax)
  16353. + am__tar='pax -L -x $1 -w "$$tardir"'
  16354. + am__tar_='pax -L -x $1 -w "$tardir"'
  16355. + am__untar='pax -r'
  16356. + ;;
  16357. + cpio)
  16358. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  16359. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  16360. + am__untar='cpio -i -H $1 -d'
  16361. + ;;
  16362. + none)
  16363. + am__tar=false
  16364. + am__tar_=false
  16365. + am__untar=false
  16366. + ;;
  16367. + esac
  16368. -_PKG_TEXT
  16369. -])],
  16370. - [AC_MSG_RESULT([no])
  16371. - $4])
  16372. -elif test $pkg_failed = untried; then
  16373. - ifelse([$4], , [AC_MSG_FAILURE(dnl
  16374. -[The pkg-config script could not be found or is too old. Make sure it
  16375. -is in your PATH or set the PKG_CONFIG environment variable to the full
  16376. -path to pkg-config.
  16377. + # If the value was cached, stop now. We just wanted to have am__tar
  16378. + # and am__untar set.
  16379. + test -n "${am_cv_prog_tar_$1}" && break
  16380. -_PKG_TEXT
  16381. + # tar/untar a dummy directory, and stop if the command works
  16382. + rm -rf conftest.dir
  16383. + mkdir conftest.dir
  16384. + echo GrepMe > conftest.dir/file
  16385. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  16386. + rm -rf conftest.dir
  16387. + if test -s conftest.tar; then
  16388. + AM_RUN_LOG([$am__untar <conftest.tar])
  16389. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  16390. + fi
  16391. +done
  16392. +rm -rf conftest.dir
  16393. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
  16394. - [$4])
  16395. -else
  16396. - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  16397. - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  16398. - AC_MSG_RESULT([yes])
  16399. - ifelse([$3], , :, [$3])
  16400. -fi[]dnl
  16401. -])# PKG_CHECK_MODULES
  16402. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  16403. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  16404. +AC_SUBST([am__tar])
  16405. +AC_SUBST([am__untar])
  16406. +]) # _AM_PROG_TAR
  16407. diff -Nur libxkbfile-1.0.6.orig/config.guess libxkbfile-1.0.6/config.guess
  16408. --- libxkbfile-1.0.6.orig/config.guess 2009-09-11 16:54:52.000000000 +0200
  16409. +++ libxkbfile-1.0.6/config.guess 2011-02-19 11:59:15.093551895 +0100
  16410. @@ -1,10 +1,10 @@
  16411. #! /bin/sh
  16412. # Attempt to guess a canonical system name.
  16413. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  16414. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  16415. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  16416. # Free Software Foundation, Inc.
  16417. -timestamp='2008-01-23'
  16418. +timestamp='2009-06-10'
  16419. # This file is free software; you can redistribute it and/or modify it
  16420. # under the terms of the GNU General Public License as published by
  16421. @@ -170,7 +170,7 @@
  16422. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  16423. eval $set_cc_for_build
  16424. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  16425. - | grep __ELF__ >/dev/null
  16426. + | grep -q __ELF__
  16427. then
  16428. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  16429. # Return netbsd for either. FIX?
  16430. @@ -324,6 +324,9 @@
  16431. case `/usr/bin/uname -p` in
  16432. sparc) echo sparc-icl-nx7; exit ;;
  16433. esac ;;
  16434. + s390x:SunOS:*:*)
  16435. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16436. + exit ;;
  16437. sun4H:SunOS:5.*:*)
  16438. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16439. exit ;;
  16440. @@ -331,7 +334,20 @@
  16441. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16442. exit ;;
  16443. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  16444. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16445. + eval $set_cc_for_build
  16446. + SUN_ARCH="i386"
  16447. + # If there is a compiler, see if it is configured for 64-bit objects.
  16448. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  16449. + # This test works for both compilers.
  16450. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  16451. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  16452. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  16453. + grep IS_64BIT_ARCH >/dev/null
  16454. + then
  16455. + SUN_ARCH="x86_64"
  16456. + fi
  16457. + fi
  16458. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16459. exit ;;
  16460. sun4*:SunOS:6*:*)
  16461. # According to config.sub, this is the proper way to canonicalize
  16462. @@ -640,7 +656,7 @@
  16463. # => hppa64-hp-hpux11.23
  16464. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  16465. - grep __LP64__ >/dev/null
  16466. + grep -q __LP64__
  16467. then
  16468. HP_ARCH="hppa2.0w"
  16469. else
  16470. @@ -796,7 +812,7 @@
  16471. x86)
  16472. echo i586-pc-interix${UNAME_RELEASE}
  16473. exit ;;
  16474. - EM64T | authenticamd)
  16475. + EM64T | authenticamd | genuineintel)
  16476. echo x86_64-unknown-interix${UNAME_RELEASE}
  16477. exit ;;
  16478. IA64)
  16479. @@ -806,6 +822,9 @@
  16480. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  16481. echo i${UNAME_MACHINE}-pc-mks
  16482. exit ;;
  16483. + 8664:Windows_NT:*)
  16484. + echo x86_64-pc-mks
  16485. + exit ;;
  16486. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  16487. # How do we know it's Interix rather than the generic POSIX subsystem?
  16488. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  16489. @@ -866,40 +885,17 @@
  16490. m68*:Linux:*:*)
  16491. echo ${UNAME_MACHINE}-unknown-linux-gnu
  16492. exit ;;
  16493. - mips:Linux:*:*)
  16494. + mips:Linux:*:* | mips64:Linux:*:*)
  16495. eval $set_cc_for_build
  16496. sed 's/^ //' << EOF >$dummy.c
  16497. #undef CPU
  16498. - #undef mips
  16499. - #undef mipsel
  16500. + #undef ${UNAME_MACHINE}
  16501. + #undef ${UNAME_MACHINE}el
  16502. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  16503. - CPU=mipsel
  16504. + CPU=${UNAME_MACHINE}el
  16505. #else
  16506. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  16507. - CPU=mips
  16508. - #else
  16509. - CPU=
  16510. - #endif
  16511. - #endif
  16512. -EOF
  16513. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  16514. - /^CPU/{
  16515. - s: ::g
  16516. - p
  16517. - }'`"
  16518. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  16519. - ;;
  16520. - mips64:Linux:*:*)
  16521. - eval $set_cc_for_build
  16522. - sed 's/^ //' << EOF >$dummy.c
  16523. - #undef CPU
  16524. - #undef mips64
  16525. - #undef mips64el
  16526. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  16527. - CPU=mips64el
  16528. - #else
  16529. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  16530. - CPU=mips64
  16531. + CPU=${UNAME_MACHINE}
  16532. #else
  16533. CPU=
  16534. #endif
  16535. @@ -931,10 +927,13 @@
  16536. EV67) UNAME_MACHINE=alphaev67 ;;
  16537. EV68*) UNAME_MACHINE=alphaev68 ;;
  16538. esac
  16539. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  16540. + objdump --private-headers /bin/sh | grep -q ld.so.1
  16541. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  16542. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  16543. exit ;;
  16544. + padre:Linux:*:*)
  16545. + echo sparc-unknown-linux-gnu
  16546. + exit ;;
  16547. parisc:Linux:*:* | hppa:Linux:*:*)
  16548. # Look for CPU level
  16549. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  16550. @@ -982,17 +981,6 @@
  16551. elf32-i386)
  16552. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  16553. ;;
  16554. - a.out-i386-linux)
  16555. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  16556. - exit ;;
  16557. - coff-i386)
  16558. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  16559. - exit ;;
  16560. - "")
  16561. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  16562. - # one that does not give us useful --help.
  16563. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  16564. - exit ;;
  16565. esac
  16566. # Determine whether the default compiler is a.out or elf
  16567. eval $set_cc_for_build
  16568. @@ -1058,7 +1046,7 @@
  16569. i*86:syllable:*:*)
  16570. echo ${UNAME_MACHINE}-pc-syllable
  16571. exit ;;
  16572. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  16573. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  16574. echo i386-unknown-lynxos${UNAME_RELEASE}
  16575. exit ;;
  16576. i*86:*DOS:*:*)
  16577. @@ -1102,8 +1090,11 @@
  16578. pc:*:*:*)
  16579. # Left here for compatibility:
  16580. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  16581. - # the processor, so we play safe by assuming i386.
  16582. - echo i386-pc-msdosdjgpp
  16583. + # the processor, so we play safe by assuming i586.
  16584. + # Note: whatever this is, it MUST be the same as what config.sub
  16585. + # prints for the "djgpp" host, or else GDB configury will decide that
  16586. + # this is a cross-build.
  16587. + echo i586-pc-msdosdjgpp
  16588. exit ;;
  16589. Intel:Mach:3*:*)
  16590. echo i386-pc-mach3
  16591. @@ -1141,6 +1132,16 @@
  16592. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  16593. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  16594. && { echo i486-ncr-sysv4; exit; } ;;
  16595. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  16596. + OS_REL='.3'
  16597. + test -r /etc/.relid \
  16598. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  16599. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  16600. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  16601. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  16602. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  16603. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  16604. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  16605. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  16606. echo m68k-unknown-lynxos${UNAME_RELEASE}
  16607. exit ;;
  16608. @@ -1153,7 +1154,7 @@
  16609. rs6000:LynxOS:2.*:*)
  16610. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  16611. exit ;;
  16612. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  16613. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  16614. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  16615. exit ;;
  16616. SM[BE]S:UNIX_SV:*:*)
  16617. @@ -1216,6 +1217,9 @@
  16618. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  16619. echo i586-pc-beos
  16620. exit ;;
  16621. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  16622. + echo i586-pc-haiku
  16623. + exit ;;
  16624. SX-4:SUPER-UX:*:*)
  16625. echo sx4-nec-superux${UNAME_RELEASE}
  16626. exit ;;
  16627. @@ -1324,6 +1328,9 @@
  16628. i*86:rdos:*:*)
  16629. echo ${UNAME_MACHINE}-pc-rdos
  16630. exit ;;
  16631. + i*86:AROS:*:*)
  16632. + echo ${UNAME_MACHINE}-pc-aros
  16633. + exit ;;
  16634. esac
  16635. #echo '(No uname command or uname output not recognized.)' 1>&2
  16636. diff -Nur libxkbfile-1.0.6.orig/config.h.in libxkbfile-1.0.6/config.h.in
  16637. --- libxkbfile-1.0.6.orig/config.h.in 2009-10-07 02:09:28.000000000 +0200
  16638. +++ libxkbfile-1.0.6/config.h.in 2011-02-19 11:59:14.000000000 +0100
  16639. @@ -33,6 +33,10 @@
  16640. /* 'Unlocked stdio' */
  16641. #undef HAVE_UNLOCKED_STDIO
  16642. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  16643. + */
  16644. +#undef LT_OBJDIR
  16645. +
  16646. /* Do not have 'strcasecmp'. */
  16647. #undef NEED_STRCASECMP
  16648. @@ -51,6 +55,9 @@
  16649. /* Define to the one symbol short name of this package. */
  16650. #undef PACKAGE_TARNAME
  16651. +/* Define to the home page for this package. */
  16652. +#undef PACKAGE_URL
  16653. +
  16654. /* Define to the version of this package. */
  16655. #undef PACKAGE_VERSION
  16656. diff -Nur libxkbfile-1.0.6.orig/config.h.in~ libxkbfile-1.0.6/config.h.in~
  16657. --- libxkbfile-1.0.6.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  16658. +++ libxkbfile-1.0.6/config.h.in~ 2009-10-07 02:09:28.000000000 +0200
  16659. @@ -0,0 +1,70 @@
  16660. +/* config.h.in. Generated from configure.ac by autoheader. */
  16661. +
  16662. +/* Define to 1 if you have the <dlfcn.h> header file. */
  16663. +#undef HAVE_DLFCN_H
  16664. +
  16665. +/* Define to 1 if you have the <inttypes.h> header file. */
  16666. +#undef HAVE_INTTYPES_H
  16667. +
  16668. +/* Define to 1 if you have the <memory.h> header file. */
  16669. +#undef HAVE_MEMORY_H
  16670. +
  16671. +/* Define to 1 if you have the <stdint.h> header file. */
  16672. +#undef HAVE_STDINT_H
  16673. +
  16674. +/* Define to 1 if you have the <stdlib.h> header file. */
  16675. +#undef HAVE_STDLIB_H
  16676. +
  16677. +/* Define to 1 if you have the <strings.h> header file. */
  16678. +#undef HAVE_STRINGS_H
  16679. +
  16680. +/* Define to 1 if you have the <string.h> header file. */
  16681. +#undef HAVE_STRING_H
  16682. +
  16683. +/* Define to 1 if you have the <sys/stat.h> header file. */
  16684. +#undef HAVE_SYS_STAT_H
  16685. +
  16686. +/* Define to 1 if you have the <sys/types.h> header file. */
  16687. +#undef HAVE_SYS_TYPES_H
  16688. +
  16689. +/* Define to 1 if you have the <unistd.h> header file. */
  16690. +#undef HAVE_UNISTD_H
  16691. +
  16692. +/* 'Unlocked stdio' */
  16693. +#undef HAVE_UNLOCKED_STDIO
  16694. +
  16695. +/* Do not have 'strcasecmp'. */
  16696. +#undef NEED_STRCASECMP
  16697. +
  16698. +/* Name of package */
  16699. +#undef PACKAGE
  16700. +
  16701. +/* Define to the address where bug reports for this package should be sent. */
  16702. +#undef PACKAGE_BUGREPORT
  16703. +
  16704. +/* Define to the full name of this package. */
  16705. +#undef PACKAGE_NAME
  16706. +
  16707. +/* Define to the full name and version of this package. */
  16708. +#undef PACKAGE_STRING
  16709. +
  16710. +/* Define to the one symbol short name of this package. */
  16711. +#undef PACKAGE_TARNAME
  16712. +
  16713. +/* Define to the version of this package. */
  16714. +#undef PACKAGE_VERSION
  16715. +
  16716. +/* Major version of this package */
  16717. +#undef PACKAGE_VERSION_MAJOR
  16718. +
  16719. +/* Minor version of this package */
  16720. +#undef PACKAGE_VERSION_MINOR
  16721. +
  16722. +/* Patch version of this package */
  16723. +#undef PACKAGE_VERSION_PATCHLEVEL
  16724. +
  16725. +/* Define to 1 if you have the ANSI C header files. */
  16726. +#undef STDC_HEADERS
  16727. +
  16728. +/* Version number of package */
  16729. +#undef VERSION
  16730. diff -Nur libxkbfile-1.0.6.orig/config.sub libxkbfile-1.0.6/config.sub
  16731. --- libxkbfile-1.0.6.orig/config.sub 2009-09-11 16:54:52.000000000 +0200
  16732. +++ libxkbfile-1.0.6/config.sub 2011-02-19 11:59:15.103557923 +0100
  16733. @@ -1,10 +1,10 @@
  16734. #! /bin/sh
  16735. # Configuration validation subroutine script.
  16736. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  16737. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  16738. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  16739. # Free Software Foundation, Inc.
  16740. -timestamp='2008-01-16'
  16741. +timestamp='2009-06-11'
  16742. # This file is (in principle) common to ALL GNU software.
  16743. # The presence of a machine in this file suggests that SOME GNU software
  16744. @@ -122,6 +122,7 @@
  16745. case $maybe_os in
  16746. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  16747. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  16748. + kopensolaris*-gnu* | \
  16749. storm-chaos* | os2-emx* | rtmk-nova*)
  16750. os=-$maybe_os
  16751. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  16752. @@ -152,6 +153,9 @@
  16753. os=
  16754. basic_machine=$1
  16755. ;;
  16756. + -bluegene*)
  16757. + os=-cnk
  16758. + ;;
  16759. -sim | -cisco | -oki | -wec | -winbond)
  16760. os=
  16761. basic_machine=$1
  16762. @@ -249,13 +253,16 @@
  16763. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  16764. | i370 | i860 | i960 | ia64 \
  16765. | ip2k | iq2000 \
  16766. + | lm32 \
  16767. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  16768. - | maxq | mb | microblaze | mcore | mep \
  16769. + | maxq | mb | microblaze | mcore | mep | metag \
  16770. | mips | mipsbe | mipseb | mipsel | mipsle \
  16771. | mips16 \
  16772. | mips64 | mips64el \
  16773. - | mips64vr | mips64vrel \
  16774. + | mips64octeon | mips64octeonel \
  16775. | mips64orion | mips64orionel \
  16776. + | mips64r5900 | mips64r5900el \
  16777. + | mips64vr | mips64vrel \
  16778. | mips64vr4100 | mips64vr4100el \
  16779. | mips64vr4300 | mips64vr4300el \
  16780. | mips64vr5000 | mips64vr5000el \
  16781. @@ -268,6 +275,7 @@
  16782. | mipsisa64sr71k | mipsisa64sr71kel \
  16783. | mipstx39 | mipstx39el \
  16784. | mn10200 | mn10300 \
  16785. + | moxie \
  16786. | mt \
  16787. | msp430 \
  16788. | nios | nios2 \
  16789. @@ -277,7 +285,7 @@
  16790. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  16791. | pyramid \
  16792. | score \
  16793. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  16794. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  16795. | sh64 | sh64le \
  16796. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  16797. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  16798. @@ -286,7 +294,7 @@
  16799. | v850 | v850e \
  16800. | we32k \
  16801. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  16802. - | z8k)
  16803. + | z8k | z80)
  16804. basic_machine=$basic_machine-unknown
  16805. ;;
  16806. m6811 | m68hc11 | m6812 | m68hc12)
  16807. @@ -329,14 +337,17 @@
  16808. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  16809. | i*86-* | i860-* | i960-* | ia64-* \
  16810. | ip2k-* | iq2000-* \
  16811. + | lm32-* \
  16812. | m32c-* | m32r-* | m32rle-* \
  16813. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  16814. - | m88110-* | m88k-* | maxq-* | mcore-* \
  16815. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  16816. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  16817. | mips16-* \
  16818. | mips64-* | mips64el-* \
  16819. - | mips64vr-* | mips64vrel-* \
  16820. + | mips64octeon-* | mips64octeonel-* \
  16821. | mips64orion-* | mips64orionel-* \
  16822. + | mips64r5900-* | mips64r5900el-* \
  16823. + | mips64vr-* | mips64vrel-* \
  16824. | mips64vr4100-* | mips64vr4100el-* \
  16825. | mips64vr4300-* | mips64vr4300el-* \
  16826. | mips64vr5000-* | mips64vr5000el-* \
  16827. @@ -358,20 +369,20 @@
  16828. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  16829. | pyramid-* \
  16830. | romp-* | rs6000-* \
  16831. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  16832. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  16833. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  16834. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  16835. | sparclite-* \
  16836. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  16837. | tahoe-* | thumb-* \
  16838. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  16839. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  16840. | tron-* \
  16841. | v850-* | v850e-* | vax-* \
  16842. | we32k-* \
  16843. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  16844. | xstormy16-* | xtensa*-* \
  16845. | ymp-* \
  16846. - | z8k-*)
  16847. + | z8k-* | z80-*)
  16848. ;;
  16849. # Recognize the basic CPU types without company name, with glob match.
  16850. xtensa*)
  16851. @@ -439,6 +450,10 @@
  16852. basic_machine=m68k-apollo
  16853. os=-bsd
  16854. ;;
  16855. + aros)
  16856. + basic_machine=i386-pc
  16857. + os=-aros
  16858. + ;;
  16859. aux)
  16860. basic_machine=m68k-apple
  16861. os=-aux
  16862. @@ -455,10 +470,18 @@
  16863. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  16864. os=-linux
  16865. ;;
  16866. + bluegene*)
  16867. + basic_machine=powerpc-ibm
  16868. + os=-cnk
  16869. + ;;
  16870. c90)
  16871. basic_machine=c90-cray
  16872. os=-unicos
  16873. ;;
  16874. + cegcc)
  16875. + basic_machine=arm-unknown
  16876. + os=-cegcc
  16877. + ;;
  16878. convex-c1)
  16879. basic_machine=c1-convex
  16880. os=-bsd
  16881. @@ -526,6 +549,10 @@
  16882. basic_machine=m88k-motorola
  16883. os=-sysv3
  16884. ;;
  16885. + dicos)
  16886. + basic_machine=i686-pc
  16887. + os=-dicos
  16888. + ;;
  16889. djgpp)
  16890. basic_machine=i586-pc
  16891. os=-msdosdjgpp
  16892. @@ -1128,6 +1155,10 @@
  16893. basic_machine=z8k-unknown
  16894. os=-sim
  16895. ;;
  16896. + z80-*-coff)
  16897. + basic_machine=z80-unknown
  16898. + os=-sim
  16899. + ;;
  16900. none)
  16901. basic_machine=none-none
  16902. os=-none
  16903. @@ -1166,7 +1197,7 @@
  16904. we32k)
  16905. basic_machine=we32k-att
  16906. ;;
  16907. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  16908. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  16909. basic_machine=sh-unknown
  16910. ;;
  16911. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  16912. @@ -1236,10 +1267,11 @@
  16913. # Each alternative MUST END IN A *, to match a version number.
  16914. # -sysv* is not here because it comes later, after sysvr4.
  16915. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  16916. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  16917. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  16918. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  16919. + | -kopensolaris* \
  16920. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  16921. - | -aos* \
  16922. + | -aos* | -aros* \
  16923. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  16924. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  16925. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  16926. @@ -1248,7 +1280,7 @@
  16927. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  16928. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  16929. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  16930. - | -chorusos* | -chorusrdb* \
  16931. + | -chorusos* | -chorusrdb* | -cegcc* \
  16932. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  16933. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  16934. | -uxpv* | -beos* | -mpeix* | -udk* \
  16935. @@ -1388,6 +1420,9 @@
  16936. -zvmoe)
  16937. os=-zvmoe
  16938. ;;
  16939. + -dicos*)
  16940. + os=-dicos
  16941. + ;;
  16942. -none)
  16943. ;;
  16944. *)
  16945. @@ -1585,7 +1620,7 @@
  16946. -sunos*)
  16947. vendor=sun
  16948. ;;
  16949. - -aix*)
  16950. + -cnk*|-aix*)
  16951. vendor=ibm
  16952. ;;
  16953. -beos*)
  16954. diff -Nur libxkbfile-1.0.6.orig/configure libxkbfile-1.0.6/configure
  16955. --- libxkbfile-1.0.6.orig/configure 2009-10-07 02:09:27.000000000 +0200
  16956. +++ libxkbfile-1.0.6/configure 2011-02-19 11:59:14.083567237 +0100
  16957. @@ -1,20 +1,24 @@
  16958. #! /bin/sh
  16959. # Guess values for system-dependent variables and create Makefiles.
  16960. -# Generated by GNU Autoconf 2.63 for libxkbfile 1.0.6.
  16961. +# Generated by GNU Autoconf 2.65 for libxkbfile 1.0.6.
  16962. #
  16963. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  16964. #
  16965. +#
  16966. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16967. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  16968. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  16969. +# Inc.
  16970. +#
  16971. +#
  16972. # This configure script is free software; the Free Software Foundation
  16973. # gives unlimited permission to copy, distribute and modify it.
  16974. -## --------------------- ##
  16975. -## M4sh Initialization. ##
  16976. -## --------------------- ##
  16977. +## -------------------- ##
  16978. +## M4sh Initialization. ##
  16979. +## -------------------- ##
  16980. # Be more Bourne compatible
  16981. DUALCASE=1; export DUALCASE # for MKS sh
  16982. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16983. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16984. emulate sh
  16985. NULLCMD=:
  16986. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16987. @@ -22,23 +26,15 @@
  16988. alias -g '${1+"$@"}'='"$@"'
  16989. setopt NO_GLOB_SUBST
  16990. else
  16991. - case `(set -o) 2>/dev/null` in
  16992. - *posix*) set -o posix ;;
  16993. + case `(set -o) 2>/dev/null` in #(
  16994. + *posix*) :
  16995. + set -o posix ;; #(
  16996. + *) :
  16997. + ;;
  16998. esac
  16999. -
  17000. fi
  17001. -
  17002. -
  17003. -# PATH needs CR
  17004. -# Avoid depending upon Character Ranges.
  17005. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17006. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17007. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17008. -as_cr_digits='0123456789'
  17009. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  17010. -
  17011. as_nl='
  17012. '
  17013. export as_nl
  17014. @@ -46,7 +42,13 @@
  17015. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17016. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17017. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17018. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17019. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  17020. +# but without wasting forks for bash or zsh.
  17021. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  17022. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17023. + as_echo='print -r --'
  17024. + as_echo_n='print -rn --'
  17025. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17026. as_echo='printf %s\n'
  17027. as_echo_n='printf %s'
  17028. else
  17029. @@ -57,7 +59,7 @@
  17030. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17031. as_echo_n_body='eval
  17032. arg=$1;
  17033. - case $arg in
  17034. + case $arg in #(
  17035. *"$as_nl"*)
  17036. expr "X$arg" : "X\\(.*\\)$as_nl";
  17037. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17038. @@ -80,13 +82,6 @@
  17039. }
  17040. fi
  17041. -# Support unset when possible.
  17042. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17043. - as_unset=unset
  17044. -else
  17045. - as_unset=false
  17046. -fi
  17047. -
  17048. # IFS
  17049. # We need space, tab and new line, in precisely that order. Quoting is
  17050. @@ -96,15 +91,15 @@
  17051. IFS=" "" $as_nl"
  17052. # Find who we are. Look in the path if we contain no directory separator.
  17053. -case $0 in
  17054. +case $0 in #((
  17055. *[\\/]* ) as_myself=$0 ;;
  17056. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17057. for as_dir in $PATH
  17058. do
  17059. IFS=$as_save_IFS
  17060. test -z "$as_dir" && as_dir=.
  17061. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17062. -done
  17063. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17064. + done
  17065. IFS=$as_save_IFS
  17066. ;;
  17067. @@ -116,12 +111,16 @@
  17068. fi
  17069. if test ! -f "$as_myself"; then
  17070. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17071. - { (exit 1); exit 1; }
  17072. + exit 1
  17073. fi
  17074. -# Work around bugs in pre-3.0 UWIN ksh.
  17075. -for as_var in ENV MAIL MAILPATH
  17076. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17077. +# Unset variables that we do not need and which cause bugs (e.g. in
  17078. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17079. +# suppresses any "Segmentation fault" message there. '((' could
  17080. +# trigger a bug in pdksh 5.2.14.
  17081. +for as_var in BASH_ENV ENV MAIL MAILPATH
  17082. +do eval test x\${$as_var+set} = xset \
  17083. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17084. done
  17085. PS1='$ '
  17086. PS2='> '
  17087. @@ -133,330 +132,301 @@
  17088. LANGUAGE=C
  17089. export LANGUAGE
  17090. -# Required to use basename.
  17091. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  17092. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17093. - as_expr=expr
  17094. -else
  17095. - as_expr=false
  17096. -fi
  17097. -
  17098. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17099. - as_basename=basename
  17100. -else
  17101. - as_basename=false
  17102. -fi
  17103. -
  17104. -
  17105. -# Name of the executable.
  17106. -as_me=`$as_basename -- "$0" ||
  17107. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17108. - X"$0" : 'X\(//\)$' \| \
  17109. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17110. -$as_echo X/"$0" |
  17111. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  17112. - s//\1/
  17113. - q
  17114. - }
  17115. - /^X\/\(\/\/\)$/{
  17116. - s//\1/
  17117. - q
  17118. - }
  17119. - /^X\/\(\/\).*/{
  17120. - s//\1/
  17121. - q
  17122. - }
  17123. - s/.*/./; q'`
  17124. -
  17125. # CDPATH.
  17126. -$as_unset CDPATH
  17127. -
  17128. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17129. if test "x$CONFIG_SHELL" = x; then
  17130. - if (eval ":") 2>/dev/null; then
  17131. - as_have_required=yes
  17132. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  17133. + emulate sh
  17134. + NULLCMD=:
  17135. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  17136. + # is contrary to our usage. Disable this feature.
  17137. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  17138. + setopt NO_GLOB_SUBST
  17139. else
  17140. - as_have_required=no
  17141. + case \`(set -o) 2>/dev/null\` in #(
  17142. + *posix*) :
  17143. + set -o posix ;; #(
  17144. + *) :
  17145. + ;;
  17146. +esac
  17147. fi
  17148. -
  17149. - if test $as_have_required = yes && (eval ":
  17150. -(as_func_return () {
  17151. - (exit \$1)
  17152. -}
  17153. -as_func_success () {
  17154. - as_func_return 0
  17155. -}
  17156. -as_func_failure () {
  17157. - as_func_return 1
  17158. -}
  17159. -as_func_ret_success () {
  17160. - return 0
  17161. -}
  17162. -as_func_ret_failure () {
  17163. - return 1
  17164. -}
  17165. +"
  17166. + as_required="as_fn_return () { (exit \$1); }
  17167. +as_fn_success () { as_fn_return 0; }
  17168. +as_fn_failure () { as_fn_return 1; }
  17169. +as_fn_ret_success () { return 0; }
  17170. +as_fn_ret_failure () { return 1; }
  17171. exitcode=0
  17172. -if as_func_success; then
  17173. - :
  17174. -else
  17175. - exitcode=1
  17176. - echo as_func_success failed.
  17177. -fi
  17178. -
  17179. -if as_func_failure; then
  17180. - exitcode=1
  17181. - echo as_func_failure succeeded.
  17182. -fi
  17183. -
  17184. -if as_func_ret_success; then
  17185. - :
  17186. -else
  17187. - exitcode=1
  17188. - echo as_func_ret_success failed.
  17189. -fi
  17190. -
  17191. -if as_func_ret_failure; then
  17192. - exitcode=1
  17193. - echo as_func_ret_failure succeeded.
  17194. -fi
  17195. -
  17196. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  17197. - :
  17198. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  17199. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  17200. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  17201. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  17202. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  17203. +
  17204. +else
  17205. + exitcode=1; echo positional parameters were not saved.
  17206. +fi
  17207. +test x\$exitcode = x0 || exit 1"
  17208. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  17209. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  17210. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  17211. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  17212. +test \$(( 1 + 1 )) = 2 || exit 1"
  17213. + if (eval "$as_required") 2>/dev/null; then :
  17214. + as_have_required=yes
  17215. else
  17216. - exitcode=1
  17217. - echo positional parameters were not saved.
  17218. + as_have_required=no
  17219. fi
  17220. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  17221. -test \$exitcode = 0) || { (exit 1); exit 1; }
  17222. -
  17223. -(
  17224. - as_lineno_1=\$LINENO
  17225. - as_lineno_2=\$LINENO
  17226. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  17227. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  17228. -") 2> /dev/null; then
  17229. - :
  17230. else
  17231. - as_candidate_shells=
  17232. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17233. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17234. +as_found=false
  17235. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  17236. do
  17237. IFS=$as_save_IFS
  17238. test -z "$as_dir" && as_dir=.
  17239. - case $as_dir in
  17240. + as_found=:
  17241. + case $as_dir in #(
  17242. /*)
  17243. for as_base in sh bash ksh sh5; do
  17244. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  17245. + # Try only shells that exist, to save several forks.
  17246. + as_shell=$as_dir/$as_base
  17247. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  17248. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  17249. + CONFIG_SHELL=$as_shell as_have_required=yes
  17250. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  17251. + break 2
  17252. +fi
  17253. +fi
  17254. done;;
  17255. esac
  17256. + as_found=false
  17257. done
  17258. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  17259. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  17260. + CONFIG_SHELL=$SHELL as_have_required=yes
  17261. +fi; }
  17262. IFS=$as_save_IFS
  17263. - for as_shell in $as_candidate_shells $SHELL; do
  17264. - # Try only shells that exist, to save several forks.
  17265. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  17266. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  17267. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17268. - emulate sh
  17269. - NULLCMD=:
  17270. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17271. - # is contrary to our usage. Disable this feature.
  17272. - alias -g '${1+"$@"}'='"$@"'
  17273. - setopt NO_GLOB_SUBST
  17274. -else
  17275. - case `(set -o) 2>/dev/null` in
  17276. - *posix*) set -o posix ;;
  17277. -esac
  17278. -
  17279. -fi
  17280. -
  17281. -
  17282. -:
  17283. -_ASEOF
  17284. -}; then
  17285. - CONFIG_SHELL=$as_shell
  17286. - as_have_required=yes
  17287. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  17288. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17289. - emulate sh
  17290. - NULLCMD=:
  17291. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17292. - # is contrary to our usage. Disable this feature.
  17293. - alias -g '${1+"$@"}'='"$@"'
  17294. - setopt NO_GLOB_SUBST
  17295. -else
  17296. - case `(set -o) 2>/dev/null` in
  17297. - *posix*) set -o posix ;;
  17298. -esac
  17299. -
  17300. -fi
  17301. -
  17302. -
  17303. -:
  17304. -(as_func_return () {
  17305. - (exit $1)
  17306. -}
  17307. -as_func_success () {
  17308. - as_func_return 0
  17309. -}
  17310. -as_func_failure () {
  17311. - as_func_return 1
  17312. -}
  17313. -as_func_ret_success () {
  17314. - return 0
  17315. -}
  17316. -as_func_ret_failure () {
  17317. - return 1
  17318. -}
  17319. -
  17320. -exitcode=0
  17321. -if as_func_success; then
  17322. - :
  17323. -else
  17324. - exitcode=1
  17325. - echo as_func_success failed.
  17326. -fi
  17327. -
  17328. -if as_func_failure; then
  17329. - exitcode=1
  17330. - echo as_func_failure succeeded.
  17331. -fi
  17332. -
  17333. -if as_func_ret_success; then
  17334. - :
  17335. -else
  17336. - exitcode=1
  17337. - echo as_func_ret_success failed.
  17338. -fi
  17339. -
  17340. -if as_func_ret_failure; then
  17341. - exitcode=1
  17342. - echo as_func_ret_failure succeeded.
  17343. -fi
  17344. -
  17345. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  17346. - :
  17347. -else
  17348. - exitcode=1
  17349. - echo positional parameters were not saved.
  17350. -fi
  17351. -
  17352. -test $exitcode = 0) || { (exit 1); exit 1; }
  17353. -
  17354. -(
  17355. - as_lineno_1=$LINENO
  17356. - as_lineno_2=$LINENO
  17357. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  17358. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  17359. -
  17360. -_ASEOF
  17361. -}; then
  17362. - break
  17363. -fi
  17364. -
  17365. -fi
  17366. -
  17367. - done
  17368. -
  17369. - if test "x$CONFIG_SHELL" != x; then
  17370. - for as_var in BASH_ENV ENV
  17371. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17372. - done
  17373. + if test "x$CONFIG_SHELL" != x; then :
  17374. + # We cannot yet assume a decent shell, so we have to provide a
  17375. + # neutralization value for shells without unset; and this also
  17376. + # works around shells that cannot unset nonexistent variables.
  17377. + BASH_ENV=/dev/null
  17378. + ENV=/dev/null
  17379. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  17380. export CONFIG_SHELL
  17381. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  17382. fi
  17383. -
  17384. - if test $as_have_required = no; then
  17385. - echo This script requires a shell more modern than all the
  17386. - echo shells that I found on your system. Please install a
  17387. - echo modern shell, or manually run the script under such a
  17388. - echo shell if you do have one.
  17389. - { (exit 1); exit 1; }
  17390. + if test x$as_have_required = xno; then :
  17391. + $as_echo "$0: This script requires a shell more modern than all"
  17392. + $as_echo "$0: the shells that I found on your system."
  17393. + if test x${ZSH_VERSION+set} = xset ; then
  17394. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  17395. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  17396. + else
  17397. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  17398. +$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  17399. +$0: about your system, including any error possibly output
  17400. +$0: before this message. Then install a modern shell, or
  17401. +$0: manually run the script under such a shell if you do
  17402. +$0: have one."
  17403. + fi
  17404. + exit 1
  17405. fi
  17406. -
  17407. -
  17408. fi
  17409. -
  17410. fi
  17411. +SHELL=${CONFIG_SHELL-/bin/sh}
  17412. +export SHELL
  17413. +# Unset more variables known to interfere with behavior of common tools.
  17414. +CLICOLOR_FORCE= GREP_OPTIONS=
  17415. +unset CLICOLOR_FORCE GREP_OPTIONS
  17416. +
  17417. +## --------------------- ##
  17418. +## M4sh Shell Functions. ##
  17419. +## --------------------- ##
  17420. +# as_fn_unset VAR
  17421. +# ---------------
  17422. +# Portably unset VAR.
  17423. +as_fn_unset ()
  17424. +{
  17425. + { eval $1=; unset $1;}
  17426. +}
  17427. +as_unset=as_fn_unset
  17428. +
  17429. +# as_fn_set_status STATUS
  17430. +# -----------------------
  17431. +# Set $? to STATUS, without forking.
  17432. +as_fn_set_status ()
  17433. +{
  17434. + return $1
  17435. +} # as_fn_set_status
  17436. +
  17437. +# as_fn_exit STATUS
  17438. +# -----------------
  17439. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17440. +as_fn_exit ()
  17441. +{
  17442. + set +e
  17443. + as_fn_set_status $1
  17444. + exit $1
  17445. +} # as_fn_exit
  17446. +
  17447. +# as_fn_mkdir_p
  17448. +# -------------
  17449. +# Create "$as_dir" as a directory, including parents if necessary.
  17450. +as_fn_mkdir_p ()
  17451. +{
  17452. + case $as_dir in #(
  17453. + -*) as_dir=./$as_dir;;
  17454. + esac
  17455. + test -d "$as_dir" || eval $as_mkdir_p || {
  17456. + as_dirs=
  17457. + while :; do
  17458. + case $as_dir in #(
  17459. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17460. + *) as_qdir=$as_dir;;
  17461. + esac
  17462. + as_dirs="'$as_qdir' $as_dirs"
  17463. + as_dir=`$as_dirname -- "$as_dir" ||
  17464. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17465. + X"$as_dir" : 'X\(//\)[^/]' \| \
  17466. + X"$as_dir" : 'X\(//\)$' \| \
  17467. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17468. +$as_echo X"$as_dir" |
  17469. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17470. + s//\1/
  17471. + q
  17472. + }
  17473. + /^X\(\/\/\)[^/].*/{
  17474. + s//\1/
  17475. + q
  17476. + }
  17477. + /^X\(\/\/\)$/{
  17478. + s//\1/
  17479. + q
  17480. + }
  17481. + /^X\(\/\).*/{
  17482. + s//\1/
  17483. + q
  17484. + }
  17485. + s/.*/./; q'`
  17486. + test -d "$as_dir" && break
  17487. + done
  17488. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  17489. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  17490. -(eval "as_func_return () {
  17491. - (exit \$1)
  17492. -}
  17493. -as_func_success () {
  17494. - as_func_return 0
  17495. -}
  17496. -as_func_failure () {
  17497. - as_func_return 1
  17498. -}
  17499. -as_func_ret_success () {
  17500. - return 0
  17501. -}
  17502. -as_func_ret_failure () {
  17503. - return 1
  17504. -}
  17505. +} # as_fn_mkdir_p
  17506. +# as_fn_append VAR VALUE
  17507. +# ----------------------
  17508. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  17509. +# advantage of any shell optimizations that allow amortized linear growth over
  17510. +# repeated appends, instead of the typical quadratic growth present in naive
  17511. +# implementations.
  17512. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17513. + eval 'as_fn_append ()
  17514. + {
  17515. + eval $1+=\$2
  17516. + }'
  17517. +else
  17518. + as_fn_append ()
  17519. + {
  17520. + eval $1=\$$1\$2
  17521. + }
  17522. +fi # as_fn_append
  17523. -exitcode=0
  17524. -if as_func_success; then
  17525. - :
  17526. +# as_fn_arith ARG...
  17527. +# ------------------
  17528. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  17529. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  17530. +# must be portable across $(()) and expr.
  17531. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17532. + eval 'as_fn_arith ()
  17533. + {
  17534. + as_val=$(( $* ))
  17535. + }'
  17536. else
  17537. - exitcode=1
  17538. - echo as_func_success failed.
  17539. -fi
  17540. + as_fn_arith ()
  17541. + {
  17542. + as_val=`expr "$@" || test $? -eq 1`
  17543. + }
  17544. +fi # as_fn_arith
  17545. -if as_func_failure; then
  17546. - exitcode=1
  17547. - echo as_func_failure succeeded.
  17548. -fi
  17549. -if as_func_ret_success; then
  17550. - :
  17551. +# as_fn_error ERROR [LINENO LOG_FD]
  17552. +# ---------------------------------
  17553. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17554. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17555. +# script with status $?, using 1 if that was 0.
  17556. +as_fn_error ()
  17557. +{
  17558. + as_status=$?; test $as_status -eq 0 && as_status=1
  17559. + if test "$3"; then
  17560. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17561. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  17562. + fi
  17563. + $as_echo "$as_me: error: $1" >&2
  17564. + as_fn_exit $as_status
  17565. +} # as_fn_error
  17566. +
  17567. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  17568. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17569. + as_expr=expr
  17570. else
  17571. - exitcode=1
  17572. - echo as_func_ret_success failed.
  17573. + as_expr=false
  17574. fi
  17575. -if as_func_ret_failure; then
  17576. - exitcode=1
  17577. - echo as_func_ret_failure succeeded.
  17578. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17579. + as_basename=basename
  17580. +else
  17581. + as_basename=false
  17582. fi
  17583. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  17584. - :
  17585. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17586. + as_dirname=dirname
  17587. else
  17588. - exitcode=1
  17589. - echo positional parameters were not saved.
  17590. + as_dirname=false
  17591. fi
  17592. -test \$exitcode = 0") || {
  17593. - echo No shell found that supports shell functions.
  17594. - echo Please tell bug-autoconf@gnu.org about your system,
  17595. - echo including any error possibly output before this message.
  17596. - echo This can help us improve future autoconf versions.
  17597. - echo Configuration will now proceed without shell functions.
  17598. -}
  17599. +as_me=`$as_basename -- "$0" ||
  17600. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17601. + X"$0" : 'X\(//\)$' \| \
  17602. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17603. +$as_echo X/"$0" |
  17604. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  17605. + s//\1/
  17606. + q
  17607. + }
  17608. + /^X\/\(\/\/\)$/{
  17609. + s//\1/
  17610. + q
  17611. + }
  17612. + /^X\/\(\/\).*/{
  17613. + s//\1/
  17614. + q
  17615. + }
  17616. + s/.*/./; q'`
  17617. +# Avoid depending upon Character Ranges.
  17618. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17619. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17620. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17621. +as_cr_digits='0123456789'
  17622. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  17623. - as_lineno_1=$LINENO
  17624. - as_lineno_2=$LINENO
  17625. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  17626. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  17627. -
  17628. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  17629. - # uniformly replaced by the line number. The first 'sed' inserts a
  17630. - # line-number line after each line using $LINENO; the second 'sed'
  17631. - # does the real work. The second script uses 'N' to pair each
  17632. - # line-number line with the line containing $LINENO, and appends
  17633. - # trailing '-' during substitution so that $LINENO is not a special
  17634. - # case at line end.
  17635. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  17636. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  17637. - # E. McMahon (1931-1989) for sed's syntax. :-)
  17638. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  17639. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  17640. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  17641. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  17642. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  17643. sed -n '
  17644. p
  17645. /[$]LINENO/=
  17646. @@ -473,8 +443,7 @@
  17647. s/-\n.*//
  17648. ' >$as_me.lineno &&
  17649. chmod +x "$as_me.lineno" ||
  17650. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  17651. - { (exit 1); exit 1; }; }
  17652. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  17653. # Don't try to exec as it changes $[0], causing all sort of problems
  17654. # (the dirname of $[0] is not the place where we might find the
  17655. @@ -484,29 +453,18 @@
  17656. exit
  17657. }
  17658. -
  17659. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17660. - as_dirname=dirname
  17661. -else
  17662. - as_dirname=false
  17663. -fi
  17664. -
  17665. ECHO_C= ECHO_N= ECHO_T=
  17666. -case `echo -n x` in
  17667. +case `echo -n x` in #(((((
  17668. -n*)
  17669. - case `echo 'x\c'` in
  17670. + case `echo 'xy\c'` in
  17671. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17672. - *) ECHO_C='\c';;
  17673. + xy) ECHO_C='\c';;
  17674. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17675. + ECHO_T=' ';;
  17676. esac;;
  17677. *)
  17678. ECHO_N='-n';;
  17679. esac
  17680. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  17681. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17682. - as_expr=expr
  17683. -else
  17684. - as_expr=false
  17685. -fi
  17686. rm -f conf$$ conf$$.exe conf$$.file
  17687. if test -d conf$$.dir; then
  17688. @@ -536,7 +494,7 @@
  17689. rmdir conf$$.dir 2>/dev/null
  17690. if mkdir -p . 2>/dev/null; then
  17691. - as_mkdir_p=:
  17692. + as_mkdir_p='mkdir -p "$as_dir"'
  17693. else
  17694. test -d ./-p && rmdir ./-p
  17695. as_mkdir_p=false
  17696. @@ -555,10 +513,10 @@
  17697. if test -d "$1"; then
  17698. test -d "$1/.";
  17699. else
  17700. - case $1 in
  17701. + case $1 in #(
  17702. -*)set "./$1";;
  17703. esac;
  17704. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  17705. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  17706. ???[sx]*):;;*)false;;esac;fi
  17707. '\'' sh
  17708. '
  17709. @@ -573,26 +531,25 @@
  17710. -
  17711. # Check that we are running under the correct shell.
  17712. SHELL=${CONFIG_SHELL-/bin/sh}
  17713. -case X$ECHO in
  17714. +case X$lt_ECHO in
  17715. X*--fallback-echo)
  17716. # Remove one level of quotation (which was required for Make).
  17717. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  17718. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  17719. ;;
  17720. esac
  17721. -echo=${ECHO-echo}
  17722. +ECHO=${lt_ECHO-echo}
  17723. if test "X$1" = X--no-reexec; then
  17724. # Discard the --no-reexec flag, and continue.
  17725. shift
  17726. elif test "X$1" = X--fallback-echo; then
  17727. # Avoid inline document here, it may be left over
  17728. :
  17729. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  17730. - # Yippee, $echo works!
  17731. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  17732. + # Yippee, $ECHO works!
  17733. :
  17734. else
  17735. # Restart under the correct shell.
  17736. @@ -602,9 +559,9 @@
  17737. if test "X$1" = X--fallback-echo; then
  17738. # used as fallback echo
  17739. shift
  17740. - cat <<EOF
  17741. + cat <<_LT_EOF
  17742. $*
  17743. -EOF
  17744. +_LT_EOF
  17745. exit 0
  17746. fi
  17747. @@ -612,122 +569,118 @@
  17748. # if CDPATH is set.
  17749. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17750. -if test -z "$ECHO"; then
  17751. -if test "X${echo_test_string+set}" != Xset; then
  17752. -# find a string as large as possible, as long as the shell can cope with it
  17753. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  17754. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  17755. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  17756. - echo_test_string=`eval $cmd` &&
  17757. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  17758. - then
  17759. - break
  17760. - fi
  17761. - done
  17762. -fi
  17763. +if test -z "$lt_ECHO"; then
  17764. + if test "X${echo_test_string+set}" != Xset; then
  17765. + # find a string as large as possible, as long as the shell can cope with it
  17766. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  17767. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  17768. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  17769. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  17770. + then
  17771. + break
  17772. + fi
  17773. + done
  17774. + fi
  17775. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  17776. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  17777. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17778. - :
  17779. -else
  17780. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  17781. - # backslashes. This makes it impossible to quote backslashes using
  17782. - # echo "$something" | sed 's/\\/\\\\/g'
  17783. - #
  17784. - # So, first we look for a working echo in the user's PATH.
  17785. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  17786. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  17787. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17788. + :
  17789. + else
  17790. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  17791. + # backslashes. This makes it impossible to quote backslashes using
  17792. + # echo "$something" | sed 's/\\/\\\\/g'
  17793. + #
  17794. + # So, first we look for a working echo in the user's PATH.
  17795. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17796. - for dir in $PATH /usr/ucb; do
  17797. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17798. + for dir in $PATH /usr/ucb; do
  17799. + IFS="$lt_save_ifs"
  17800. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  17801. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  17802. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  17803. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17804. + ECHO="$dir/echo"
  17805. + break
  17806. + fi
  17807. + done
  17808. IFS="$lt_save_ifs"
  17809. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  17810. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  17811. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  17812. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17813. - echo="$dir/echo"
  17814. - break
  17815. - fi
  17816. - done
  17817. - IFS="$lt_save_ifs"
  17818. - if test "X$echo" = Xecho; then
  17819. - # We didn't find a better echo, so look for alternatives.
  17820. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  17821. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  17822. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17823. - # This shell has a builtin print -r that does the trick.
  17824. - echo='print -r'
  17825. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  17826. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  17827. - # If we have ksh, try running configure again with it.
  17828. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  17829. - export ORIGINAL_CONFIG_SHELL
  17830. - CONFIG_SHELL=/bin/ksh
  17831. - export CONFIG_SHELL
  17832. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  17833. - else
  17834. - # Try using printf.
  17835. - echo='printf %s\n'
  17836. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  17837. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  17838. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17839. - # Cool, printf works
  17840. - :
  17841. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17842. - test "X$echo_testing_string" = 'X\t' &&
  17843. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17844. - test "X$echo_testing_string" = "X$echo_test_string"; then
  17845. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  17846. - export CONFIG_SHELL
  17847. - SHELL="$CONFIG_SHELL"
  17848. - export SHELL
  17849. - echo="$CONFIG_SHELL $0 --fallback-echo"
  17850. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17851. - test "X$echo_testing_string" = 'X\t' &&
  17852. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17853. + if test "X$ECHO" = Xecho; then
  17854. + # We didn't find a better echo, so look for alternatives.
  17855. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  17856. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  17857. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17858. + # This shell has a builtin print -r that does the trick.
  17859. + ECHO='print -r'
  17860. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  17861. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  17862. + # If we have ksh, try running configure again with it.
  17863. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  17864. + export ORIGINAL_CONFIG_SHELL
  17865. + CONFIG_SHELL=/bin/ksh
  17866. + export CONFIG_SHELL
  17867. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  17868. + else
  17869. + # Try using printf.
  17870. + ECHO='printf %s\n'
  17871. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  17872. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  17873. test "X$echo_testing_string" = "X$echo_test_string"; then
  17874. - echo="$CONFIG_SHELL $0 --fallback-echo"
  17875. - else
  17876. - # maybe with a smaller string...
  17877. - prev=:
  17878. + # Cool, printf works
  17879. + :
  17880. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17881. + test "X$echo_testing_string" = 'X\t' &&
  17882. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17883. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17884. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  17885. + export CONFIG_SHELL
  17886. + SHELL="$CONFIG_SHELL"
  17887. + export SHELL
  17888. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  17889. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  17890. + test "X$echo_testing_string" = 'X\t' &&
  17891. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  17892. + test "X$echo_testing_string" = "X$echo_test_string"; then
  17893. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  17894. + else
  17895. + # maybe with a smaller string...
  17896. + prev=:
  17897. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  17898. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  17899. - then
  17900. - break
  17901. - fi
  17902. - prev="$cmd"
  17903. - done
  17904. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  17905. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  17906. + then
  17907. + break
  17908. + fi
  17909. + prev="$cmd"
  17910. + done
  17911. - if test "$prev" != 'sed 50q "$0"'; then
  17912. - echo_test_string=`eval $prev`
  17913. - export echo_test_string
  17914. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  17915. - else
  17916. - # Oops. We lost completely, so just stick with echo.
  17917. - echo=echo
  17918. - fi
  17919. + if test "$prev" != 'sed 50q "$0"'; then
  17920. + echo_test_string=`eval $prev`
  17921. + export echo_test_string
  17922. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  17923. + else
  17924. + # Oops. We lost completely, so just stick with echo.
  17925. + ECHO=echo
  17926. + fi
  17927. + fi
  17928. fi
  17929. fi
  17930. fi
  17931. fi
  17932. -fi
  17933. # Copy echo and quote the copy suitably for passing to libtool from
  17934. # the Makefile, instead of quoting the original, which is used later.
  17935. -ECHO=$echo
  17936. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  17937. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  17938. +lt_ECHO=$ECHO
  17939. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  17940. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  17941. fi
  17942. -tagnames=${tagnames+${tagnames},}CXX
  17943. -
  17944. -tagnames=${tagnames+${tagnames},}F77
  17945. -
  17946. -exec 7<&0 </dev/null 6>&1
  17947. +test -n "$DJDIR" || exec 7<&0 </dev/null
  17948. +exec 6>&1
  17949. # Name of the host.
  17950. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  17951. @@ -745,7 +698,6 @@
  17952. subdirs=
  17953. MFLAGS=
  17954. MAKEFLAGS=
  17955. -SHELL=${CONFIG_SHELL-/bin/sh}
  17956. # Identity of this package.
  17957. PACKAGE_NAME='libxkbfile'
  17958. @@ -753,6 +705,7 @@
  17959. PACKAGE_VERSION='1.0.6'
  17960. PACKAGE_STRING='libxkbfile 1.0.6'
  17961. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  17962. +PACKAGE_URL=''
  17963. # Factoring default headers for most tests.
  17964. ac_includes_default="\
  17965. @@ -796,7 +749,6 @@
  17966. LIBOBJS
  17967. XKBFILE_LIBS
  17968. XKBFILE_CFLAGS
  17969. -PKG_CONFIG
  17970. ADMIN_MAN_DIR
  17971. DRIVER_MAN_DIR
  17972. MISC_MAN_DIR
  17973. @@ -809,29 +761,28 @@
  17974. FILE_MAN_SUFFIX
  17975. LIB_MAN_SUFFIX
  17976. APP_MAN_SUFFIX
  17977. -distcleancheck_listfiles
  17978. +INSTALL_CMD
  17979. +PKG_CONFIG
  17980. CHANGELOG_CMD
  17981. AM_BACKSLASH
  17982. AM_DEFAULT_VERBOSITY
  17983. CWARNFLAGS
  17984. -LIBTOOL
  17985. -ac_ct_F77
  17986. -FFLAGS
  17987. -F77
  17988. -CXXCPP
  17989. -am__fastdepCXX_FALSE
  17990. -am__fastdepCXX_TRUE
  17991. -CXXDEPMODE
  17992. -ac_ct_CXX
  17993. -CXXFLAGS
  17994. -CXX
  17995. CPP
  17996. +OTOOL64
  17997. +OTOOL
  17998. +LIPO
  17999. NMEDIT
  18000. DSYMUTIL
  18001. +lt_ECHO
  18002. RANLIB
  18003. AR
  18004. -ECHO
  18005. +OBJDUMP
  18006. LN_S
  18007. +NM
  18008. +ac_ct_DUMPBIN
  18009. +DUMPBIN
  18010. +LD
  18011. +FGREP
  18012. EGREP
  18013. GREP
  18014. SED
  18015. @@ -843,6 +794,7 @@
  18016. build_vendor
  18017. build_cpu
  18018. build
  18019. +LIBTOOL
  18020. am__fastdepCC_FALSE
  18021. am__fastdepCC_TRUE
  18022. CCDEPMODE
  18023. @@ -915,6 +867,7 @@
  18024. program_transform_name
  18025. prefix
  18026. exec_prefix
  18027. +PACKAGE_URL
  18028. PACKAGE_BUGREPORT
  18029. PACKAGE_STRING
  18030. PACKAGE_VERSION
  18031. @@ -929,11 +882,10 @@
  18032. enable_dependency_tracking
  18033. enable_shared
  18034. enable_static
  18035. +with_pic
  18036. enable_fast_install
  18037. with_gnu_ld
  18038. enable_libtool_lock
  18039. -with_pic
  18040. -with_tags
  18041. enable_silent_rules
  18042. enable_strict_compilation
  18043. with_release_version
  18044. @@ -947,12 +899,6 @@
  18045. LIBS
  18046. CPPFLAGS
  18047. CPP
  18048. -CXX
  18049. -CXXFLAGS
  18050. -CCC
  18051. -CXXCPP
  18052. -F77
  18053. -FFLAGS
  18054. PKG_CONFIG
  18055. XKBFILE_CFLAGS
  18056. XKBFILE_LIBS'
  18057. @@ -1064,8 +1010,7 @@
  18058. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  18059. # Reject names that are not valid shell variable names.
  18060. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18061. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  18062. - { (exit 1); exit 1; }; }
  18063. + as_fn_error "invalid feature name: $ac_useropt"
  18064. ac_useropt_orig=$ac_useropt
  18065. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18066. case $ac_user_opts in
  18067. @@ -1091,8 +1036,7 @@
  18068. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  18069. # Reject names that are not valid shell variable names.
  18070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18071. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  18072. - { (exit 1); exit 1; }; }
  18073. + as_fn_error "invalid feature name: $ac_useropt"
  18074. ac_useropt_orig=$ac_useropt
  18075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18076. case $ac_user_opts in
  18077. @@ -1296,8 +1240,7 @@
  18078. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  18079. # Reject names that are not valid shell variable names.
  18080. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18081. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  18082. - { (exit 1); exit 1; }; }
  18083. + as_fn_error "invalid package name: $ac_useropt"
  18084. ac_useropt_orig=$ac_useropt
  18085. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18086. case $ac_user_opts in
  18087. @@ -1313,8 +1256,7 @@
  18088. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  18089. # Reject names that are not valid shell variable names.
  18090. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  18091. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  18092. - { (exit 1); exit 1; }; }
  18093. + as_fn_error "invalid package name: $ac_useropt"
  18094. ac_useropt_orig=$ac_useropt
  18095. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  18096. case $ac_user_opts in
  18097. @@ -1344,17 +1286,17 @@
  18098. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  18099. x_libraries=$ac_optarg ;;
  18100. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  18101. -Try \`$0 --help' for more information." >&2
  18102. - { (exit 1); exit 1; }; }
  18103. + -*) as_fn_error "unrecognized option: \`$ac_option'
  18104. +Try \`$0 --help' for more information."
  18105. ;;
  18106. *=*)
  18107. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  18108. # Reject names that are not valid shell variable names.
  18109. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  18110. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  18111. - { (exit 1); exit 1; }; }
  18112. + case $ac_envvar in #(
  18113. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  18114. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  18115. + esac
  18116. eval $ac_envvar=\$ac_optarg
  18117. export $ac_envvar ;;
  18118. @@ -1371,15 +1313,13 @@
  18119. if test -n "$ac_prev"; then
  18120. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  18121. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  18122. - { (exit 1); exit 1; }; }
  18123. + as_fn_error "missing argument to $ac_option"
  18124. fi
  18125. if test -n "$ac_unrecognized_opts"; then
  18126. case $enable_option_checking in
  18127. no) ;;
  18128. - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  18129. - { (exit 1); exit 1; }; } ;;
  18130. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  18131. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  18132. esac
  18133. fi
  18134. @@ -1402,8 +1342,7 @@
  18135. [\\/$]* | ?:[\\/]* ) continue;;
  18136. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  18137. esac
  18138. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  18139. - { (exit 1); exit 1; }; }
  18140. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  18141. done
  18142. # There might be people who depend on the old broken behavior: `$host'
  18143. @@ -1433,11 +1372,9 @@
  18144. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  18145. ac_ls_di=`ls -di .` &&
  18146. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  18147. - { $as_echo "$as_me: error: working directory cannot be determined" >&2
  18148. - { (exit 1); exit 1; }; }
  18149. + as_fn_error "working directory cannot be determined"
  18150. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  18151. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  18152. - { (exit 1); exit 1; }; }
  18153. + as_fn_error "pwd does not report name of working directory"
  18154. # Find the source files, if location was not specified.
  18155. @@ -1476,13 +1413,11 @@
  18156. fi
  18157. if test ! -r "$srcdir/$ac_unique_file"; then
  18158. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  18159. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  18160. - { (exit 1); exit 1; }; }
  18161. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  18162. fi
  18163. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  18164. ac_abs_confdir=`(
  18165. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  18166. - { (exit 1); exit 1; }; }
  18167. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  18168. pwd)`
  18169. # When building in place, set srcdir=.
  18170. if test "$ac_abs_confdir" = "$ac_pwd"; then
  18171. @@ -1604,10 +1539,9 @@
  18172. Optional Packages:
  18173. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  18174. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  18175. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  18176. --with-pic try to use only PIC/non-PIC objects [default=use
  18177. both]
  18178. - --with-tags[=TAGS] include additional configurations [automatic]
  18179. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  18180. --with-release-version=STRING
  18181. Use release version string in package name
  18182. @@ -1617,14 +1551,9 @@
  18183. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  18184. nonstandard directory <lib dir>
  18185. LIBS libraries to pass to the linker, e.g. -l<library>
  18186. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  18187. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  18188. you have headers in a nonstandard directory <include dir>
  18189. CPP C preprocessor
  18190. - CXX C++ compiler command
  18191. - CXXFLAGS C++ compiler flags
  18192. - CXXCPP C++ preprocessor
  18193. - F77 Fortran 77 compiler command
  18194. - FFLAGS Fortran 77 compiler flags
  18195. PKG_CONFIG path to pkg-config utility
  18196. XKBFILE_CFLAGS
  18197. C compiler flags for XKBFILE, overriding pkg-config
  18198. @@ -1698,21 +1627,324 @@
  18199. if $ac_init_version; then
  18200. cat <<\_ACEOF
  18201. libxkbfile configure 1.0.6
  18202. -generated by GNU Autoconf 2.63
  18203. +generated by GNU Autoconf 2.65
  18204. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  18205. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  18206. +Copyright (C) 2009 Free Software Foundation, Inc.
  18207. This configure script is free software; the Free Software Foundation
  18208. gives unlimited permission to copy, distribute and modify it.
  18209. _ACEOF
  18210. exit
  18211. fi
  18212. +
  18213. +## ------------------------ ##
  18214. +## Autoconf initialization. ##
  18215. +## ------------------------ ##
  18216. +
  18217. +# ac_fn_c_try_compile LINENO
  18218. +# --------------------------
  18219. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  18220. +ac_fn_c_try_compile ()
  18221. +{
  18222. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18223. + rm -f conftest.$ac_objext
  18224. + if { { ac_try="$ac_compile"
  18225. +case "(($ac_try" in
  18226. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18227. + *) ac_try_echo=$ac_try;;
  18228. +esac
  18229. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18230. +$as_echo "$ac_try_echo"; } >&5
  18231. + (eval "$ac_compile") 2>conftest.err
  18232. + ac_status=$?
  18233. + if test -s conftest.err; then
  18234. + grep -v '^ *+' conftest.err >conftest.er1
  18235. + cat conftest.er1 >&5
  18236. + mv -f conftest.er1 conftest.err
  18237. + fi
  18238. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18239. + test $ac_status = 0; } && {
  18240. + test -z "$ac_c_werror_flag" ||
  18241. + test ! -s conftest.err
  18242. + } && test -s conftest.$ac_objext; then :
  18243. + ac_retval=0
  18244. +else
  18245. + $as_echo "$as_me: failed program was:" >&5
  18246. +sed 's/^/| /' conftest.$ac_ext >&5
  18247. +
  18248. + ac_retval=1
  18249. +fi
  18250. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18251. + as_fn_set_status $ac_retval
  18252. +
  18253. +} # ac_fn_c_try_compile
  18254. +
  18255. +# ac_fn_c_try_link LINENO
  18256. +# -----------------------
  18257. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  18258. +ac_fn_c_try_link ()
  18259. +{
  18260. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18261. + rm -f conftest.$ac_objext conftest$ac_exeext
  18262. + if { { ac_try="$ac_link"
  18263. +case "(($ac_try" in
  18264. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18265. + *) ac_try_echo=$ac_try;;
  18266. +esac
  18267. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18268. +$as_echo "$ac_try_echo"; } >&5
  18269. + (eval "$ac_link") 2>conftest.err
  18270. + ac_status=$?
  18271. + if test -s conftest.err; then
  18272. + grep -v '^ *+' conftest.err >conftest.er1
  18273. + cat conftest.er1 >&5
  18274. + mv -f conftest.er1 conftest.err
  18275. + fi
  18276. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18277. + test $ac_status = 0; } && {
  18278. + test -z "$ac_c_werror_flag" ||
  18279. + test ! -s conftest.err
  18280. + } && test -s conftest$ac_exeext && {
  18281. + test "$cross_compiling" = yes ||
  18282. + $as_test_x conftest$ac_exeext
  18283. + }; then :
  18284. + ac_retval=0
  18285. +else
  18286. + $as_echo "$as_me: failed program was:" >&5
  18287. +sed 's/^/| /' conftest.$ac_ext >&5
  18288. +
  18289. + ac_retval=1
  18290. +fi
  18291. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  18292. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  18293. + # interfere with the next link command; also delete a directory that is
  18294. + # left behind by Apple's compiler. We do this before executing the actions.
  18295. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  18296. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18297. + as_fn_set_status $ac_retval
  18298. +
  18299. +} # ac_fn_c_try_link
  18300. +
  18301. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  18302. +# -------------------------------------------------------
  18303. +# Tests whether HEADER exists and can be compiled using the include files in
  18304. +# INCLUDES, setting the cache variable VAR accordingly.
  18305. +ac_fn_c_check_header_compile ()
  18306. +{
  18307. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18308. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18309. +$as_echo_n "checking for $2... " >&6; }
  18310. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18311. + $as_echo_n "(cached) " >&6
  18312. +else
  18313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18314. +/* end confdefs.h. */
  18315. +$4
  18316. +#include <$2>
  18317. +_ACEOF
  18318. +if ac_fn_c_try_compile "$LINENO"; then :
  18319. + eval "$3=yes"
  18320. +else
  18321. + eval "$3=no"
  18322. +fi
  18323. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18324. +fi
  18325. +eval ac_res=\$$3
  18326. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18327. +$as_echo "$ac_res" >&6; }
  18328. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18329. +
  18330. +} # ac_fn_c_check_header_compile
  18331. +
  18332. +# ac_fn_c_try_cpp LINENO
  18333. +# ----------------------
  18334. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  18335. +ac_fn_c_try_cpp ()
  18336. +{
  18337. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18338. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  18339. +case "(($ac_try" in
  18340. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18341. + *) ac_try_echo=$ac_try;;
  18342. +esac
  18343. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18344. +$as_echo "$ac_try_echo"; } >&5
  18345. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  18346. + ac_status=$?
  18347. + if test -s conftest.err; then
  18348. + grep -v '^ *+' conftest.err >conftest.er1
  18349. + cat conftest.er1 >&5
  18350. + mv -f conftest.er1 conftest.err
  18351. + fi
  18352. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18353. + test $ac_status = 0; } >/dev/null && {
  18354. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18355. + test ! -s conftest.err
  18356. + }; then :
  18357. + ac_retval=0
  18358. +else
  18359. + $as_echo "$as_me: failed program was:" >&5
  18360. +sed 's/^/| /' conftest.$ac_ext >&5
  18361. +
  18362. + ac_retval=1
  18363. +fi
  18364. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18365. + as_fn_set_status $ac_retval
  18366. +
  18367. +} # ac_fn_c_try_cpp
  18368. +
  18369. +# ac_fn_c_try_run LINENO
  18370. +# ----------------------
  18371. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  18372. +# that executables *can* be run.
  18373. +ac_fn_c_try_run ()
  18374. +{
  18375. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18376. + if { { ac_try="$ac_link"
  18377. +case "(($ac_try" in
  18378. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18379. + *) ac_try_echo=$ac_try;;
  18380. +esac
  18381. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18382. +$as_echo "$ac_try_echo"; } >&5
  18383. + (eval "$ac_link") 2>&5
  18384. + ac_status=$?
  18385. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18386. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  18387. + { { case "(($ac_try" in
  18388. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18389. + *) ac_try_echo=$ac_try;;
  18390. +esac
  18391. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18392. +$as_echo "$ac_try_echo"; } >&5
  18393. + (eval "$ac_try") 2>&5
  18394. + ac_status=$?
  18395. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18396. + test $ac_status = 0; }; }; then :
  18397. + ac_retval=0
  18398. +else
  18399. + $as_echo "$as_me: program exited with status $ac_status" >&5
  18400. + $as_echo "$as_me: failed program was:" >&5
  18401. +sed 's/^/| /' conftest.$ac_ext >&5
  18402. +
  18403. + ac_retval=$ac_status
  18404. +fi
  18405. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  18406. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18407. + as_fn_set_status $ac_retval
  18408. +
  18409. +} # ac_fn_c_try_run
  18410. +
  18411. +# ac_fn_c_check_func LINENO FUNC VAR
  18412. +# ----------------------------------
  18413. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  18414. +ac_fn_c_check_func ()
  18415. +{
  18416. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18417. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18418. +$as_echo_n "checking for $2... " >&6; }
  18419. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18420. + $as_echo_n "(cached) " >&6
  18421. +else
  18422. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18423. +/* end confdefs.h. */
  18424. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  18425. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18426. +#define $2 innocuous_$2
  18427. +
  18428. +/* System header to define __stub macros and hopefully few prototypes,
  18429. + which can conflict with char $2 (); below.
  18430. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18431. + <limits.h> exists even on freestanding compilers. */
  18432. +
  18433. +#ifdef __STDC__
  18434. +# include <limits.h>
  18435. +#else
  18436. +# include <assert.h>
  18437. +#endif
  18438. +
  18439. +#undef $2
  18440. +
  18441. +/* Override any GCC internal prototype to avoid an error.
  18442. + Use char because int might match the return type of a GCC
  18443. + builtin and then its argument prototype would still apply. */
  18444. +#ifdef __cplusplus
  18445. +extern "C"
  18446. +#endif
  18447. +char $2 ();
  18448. +/* The GNU C library defines this for functions which it implements
  18449. + to always fail with ENOSYS. Some functions are actually named
  18450. + something starting with __ and the normal name is an alias. */
  18451. +#if defined __stub_$2 || defined __stub___$2
  18452. +choke me
  18453. +#endif
  18454. +
  18455. +int
  18456. +main ()
  18457. +{
  18458. +return $2 ();
  18459. + ;
  18460. + return 0;
  18461. +}
  18462. +_ACEOF
  18463. +if ac_fn_c_try_link "$LINENO"; then :
  18464. + eval "$3=yes"
  18465. +else
  18466. + eval "$3=no"
  18467. +fi
  18468. +rm -f core conftest.err conftest.$ac_objext \
  18469. + conftest$ac_exeext conftest.$ac_ext
  18470. +fi
  18471. +eval ac_res=\$$3
  18472. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18473. +$as_echo "$ac_res" >&6; }
  18474. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18475. +
  18476. +} # ac_fn_c_check_func
  18477. +
  18478. +# ac_fn_c_check_decl LINENO SYMBOL VAR
  18479. +# ------------------------------------
  18480. +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  18481. +ac_fn_c_check_decl ()
  18482. +{
  18483. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18484. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  18485. +$as_echo_n "checking whether $2 is declared... " >&6; }
  18486. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18487. + $as_echo_n "(cached) " >&6
  18488. +else
  18489. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18490. +/* end confdefs.h. */
  18491. +$4
  18492. +int
  18493. +main ()
  18494. +{
  18495. +#ifndef $2
  18496. + (void) $2;
  18497. +#endif
  18498. +
  18499. + ;
  18500. + return 0;
  18501. +}
  18502. +_ACEOF
  18503. +if ac_fn_c_try_compile "$LINENO"; then :
  18504. + eval "$3=yes"
  18505. +else
  18506. + eval "$3=no"
  18507. +fi
  18508. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18509. +fi
  18510. +eval ac_res=\$$3
  18511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18512. +$as_echo "$ac_res" >&6; }
  18513. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18514. +
  18515. +} # ac_fn_c_check_decl
  18516. cat >config.log <<_ACEOF
  18517. This file contains any messages produced by compilers while
  18518. running configure, to aid debugging if configure makes a mistake.
  18519. It was created by libxkbfile $as_me 1.0.6, which was
  18520. -generated by GNU Autoconf 2.63. Invocation command line was
  18521. +generated by GNU Autoconf 2.65. Invocation command line was
  18522. $ $0 $@
  18523. @@ -1748,8 +1980,8 @@
  18524. do
  18525. IFS=$as_save_IFS
  18526. test -z "$as_dir" && as_dir=.
  18527. - $as_echo "PATH: $as_dir"
  18528. -done
  18529. + $as_echo "PATH: $as_dir"
  18530. + done
  18531. IFS=$as_save_IFS
  18532. } >&5
  18533. @@ -1786,9 +2018,9 @@
  18534. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18535. esac
  18536. case $ac_pass in
  18537. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  18538. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18539. 2)
  18540. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  18541. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18542. if test $ac_must_keep_next = true; then
  18543. ac_must_keep_next=false # Got value, back to normal.
  18544. else
  18545. @@ -1804,13 +2036,13 @@
  18546. -* ) ac_must_keep_next=true ;;
  18547. esac
  18548. fi
  18549. - ac_configure_args="$ac_configure_args '$ac_arg'"
  18550. + as_fn_append ac_configure_args " '$ac_arg'"
  18551. ;;
  18552. esac
  18553. done
  18554. done
  18555. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  18556. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  18557. +{ ac_configure_args0=; unset ac_configure_args0;}
  18558. +{ ac_configure_args1=; unset ac_configure_args1;}
  18559. # When interrupted or exit'd, cleanup temporary files, and complete
  18560. # config.log. We remove comments because anyway the quotes in there
  18561. @@ -1835,13 +2067,13 @@
  18562. case $ac_val in #(
  18563. *${as_nl}*)
  18564. case $ac_var in #(
  18565. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  18566. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18567. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18568. esac
  18569. case $ac_var in #(
  18570. _ | IFS | as_nl) ;; #(
  18571. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18572. - *) $as_unset $ac_var ;;
  18573. + *) { eval $ac_var=; unset $ac_var;} ;;
  18574. esac ;;
  18575. esac
  18576. done
  18577. @@ -1913,39 +2145,41 @@
  18578. exit $exit_status
  18579. ' 0
  18580. for ac_signal in 1 2 13 15; do
  18581. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  18582. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18583. done
  18584. ac_signal=0
  18585. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  18586. rm -f -r conftest* confdefs.h
  18587. +$as_echo "/* confdefs.h */" > confdefs.h
  18588. +
  18589. # Predefined preprocessor variables.
  18590. cat >>confdefs.h <<_ACEOF
  18591. #define PACKAGE_NAME "$PACKAGE_NAME"
  18592. _ACEOF
  18593. -
  18594. cat >>confdefs.h <<_ACEOF
  18595. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18596. _ACEOF
  18597. -
  18598. cat >>confdefs.h <<_ACEOF
  18599. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  18600. _ACEOF
  18601. -
  18602. cat >>confdefs.h <<_ACEOF
  18603. #define PACKAGE_STRING "$PACKAGE_STRING"
  18604. _ACEOF
  18605. -
  18606. cat >>confdefs.h <<_ACEOF
  18607. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18608. _ACEOF
  18609. +cat >>confdefs.h <<_ACEOF
  18610. +#define PACKAGE_URL "$PACKAGE_URL"
  18611. +_ACEOF
  18612. +
  18613. # Let the site file select an alternate cache file if it wants to.
  18614. # Prefer an explicitly selected file to automatically selected ones.
  18615. @@ -1963,8 +2197,8 @@
  18616. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18617. do
  18618. test "x$ac_site_file" = xNONE && continue
  18619. - if test -r "$ac_site_file"; then
  18620. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18621. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18622. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18623. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18624. sed 's/^/| /' "$ac_site_file" >&5
  18625. . "$ac_site_file"
  18626. @@ -1972,10 +2206,10 @@
  18627. done
  18628. if test -r "$cache_file"; then
  18629. - # Some versions of bash will fail to source /dev/null (special
  18630. - # files actually), so we avoid doing that.
  18631. - if test -f "$cache_file"; then
  18632. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18633. + # Some versions of bash will fail to source /dev/null (special files
  18634. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18635. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18636. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18637. $as_echo "$as_me: loading cache $cache_file" >&6;}
  18638. case $cache_file in
  18639. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18640. @@ -1983,7 +2217,7 @@
  18641. esac
  18642. fi
  18643. else
  18644. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18645. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18646. $as_echo "$as_me: creating cache $cache_file" >&6;}
  18647. >$cache_file
  18648. fi
  18649. @@ -1998,11 +2232,11 @@
  18650. eval ac_new_val=\$ac_env_${ac_var}_value
  18651. case $ac_old_set,$ac_new_set in
  18652. set,)
  18653. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18654. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18655. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18656. ac_cache_corrupted=: ;;
  18657. ,set)
  18658. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18659. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18660. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18661. ac_cache_corrupted=: ;;
  18662. ,);;
  18663. @@ -2012,17 +2246,17 @@
  18664. ac_old_val_w=`echo x $ac_old_val`
  18665. ac_new_val_w=`echo x $ac_new_val`
  18666. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18667. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18668. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18669. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18670. ac_cache_corrupted=:
  18671. else
  18672. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18673. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18674. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18675. eval $ac_var=\$ac_old_val
  18676. fi
  18677. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  18678. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18679. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18680. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  18681. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18682. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18683. fi;;
  18684. esac
  18685. @@ -2034,43 +2268,20 @@
  18686. esac
  18687. case " $ac_configure_args " in
  18688. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18689. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18690. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18691. esac
  18692. fi
  18693. done
  18694. if $ac_cache_corrupted; then
  18695. - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18696. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18698. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18699. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18700. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18701. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18702. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18703. - { (exit 1); exit 1; }; }
  18704. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18705. fi
  18706. -
  18707. -
  18708. -
  18709. -
  18710. -
  18711. -
  18712. -
  18713. -
  18714. -
  18715. -
  18716. -
  18717. -
  18718. -
  18719. -
  18720. -
  18721. -
  18722. -
  18723. -
  18724. -
  18725. -
  18726. -
  18727. -
  18728. -
  18729. -
  18730. +## -------------------- ##
  18731. +## Main body of script. ##
  18732. +## -------------------- ##
  18733. ac_ext=c
  18734. ac_cpp='$CPP $CPPFLAGS'
  18735. @@ -2083,24 +2294,16 @@
  18736. ac_aux_dir=
  18737. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  18738. - if test -f "$ac_dir/install-sh"; then
  18739. - ac_aux_dir=$ac_dir
  18740. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18741. - break
  18742. - elif test -f "$ac_dir/install.sh"; then
  18743. - ac_aux_dir=$ac_dir
  18744. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18745. - break
  18746. - elif test -f "$ac_dir/shtool"; then
  18747. - ac_aux_dir=$ac_dir
  18748. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18749. - break
  18750. - fi
  18751. + for ac_t in install-sh install.sh shtool; do
  18752. + if test -f "$ac_dir/$ac_t"; then
  18753. + ac_aux_dir=$ac_dir
  18754. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18755. + break 2
  18756. + fi
  18757. + done
  18758. done
  18759. if test -z "$ac_aux_dir"; then
  18760. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  18761. -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  18762. - { (exit 1); exit 1; }; }
  18763. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  18764. fi
  18765. # These three variables are undocumented and unsupported,
  18766. @@ -2126,10 +2329,10 @@
  18767. # OS/2's system install, which has a completely different semantic
  18768. # ./install, which can be erroneously created by make from ./install.sh.
  18769. # Reject install programs that cannot install multiple files.
  18770. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18772. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  18773. if test -z "$INSTALL"; then
  18774. -if test "${ac_cv_path_install+set}" = set; then
  18775. +if test "${ac_cv_path_install+set}" = set; then :
  18776. $as_echo_n "(cached) " >&6
  18777. else
  18778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18779. @@ -2137,11 +2340,11 @@
  18780. do
  18781. IFS=$as_save_IFS
  18782. test -z "$as_dir" && as_dir=.
  18783. - # Account for people who put trailing slashes in PATH elements.
  18784. -case $as_dir/ in
  18785. - ./ | .// | /cC/* | \
  18786. + # Account for people who put trailing slashes in PATH elements.
  18787. +case $as_dir/ in #((
  18788. + ./ | .// | /[cC]/* | \
  18789. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18790. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18791. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18792. /usr/ucb/* ) ;;
  18793. *)
  18794. # OSF1 and SCO ODT 3.0 have their own names for install.
  18795. @@ -2178,7 +2381,7 @@
  18796. ;;
  18797. esac
  18798. -done
  18799. + done
  18800. IFS=$as_save_IFS
  18801. rm -rf conftest.one conftest.two conftest.dir
  18802. @@ -2194,7 +2397,7 @@
  18803. INSTALL=$ac_install_sh
  18804. fi
  18805. fi
  18806. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  18807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18808. $as_echo "$INSTALL" >&6; }
  18809. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18810. @@ -2205,7 +2408,7 @@
  18811. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18812. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  18813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  18814. $as_echo_n "checking whether build environment is sane... " >&6; }
  18815. # Just in case
  18816. sleep 1
  18817. @@ -2216,15 +2419,11 @@
  18818. '
  18819. case `pwd` in
  18820. *[\\\"\#\$\&\'\`$am_lf]*)
  18821. - { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  18822. -$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  18823. - { (exit 1); exit 1; }; };;
  18824. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  18825. esac
  18826. case $srcdir in
  18827. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  18828. - { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  18829. -$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  18830. - { (exit 1); exit 1; }; };;
  18831. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  18832. esac
  18833. # Do `set' in a subshell so we don't clobber the current shell's
  18834. @@ -2246,11 +2445,8 @@
  18835. # if, for instance, CONFIG_SHELL is bash and it inherits a
  18836. # broken ls alias from the environment. This has actually
  18837. # happened. Such a system could not be considered "sane".
  18838. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  18839. -alias in your environment" >&5
  18840. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  18841. -alias in your environment" >&2;}
  18842. - { (exit 1); exit 1; }; }
  18843. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  18844. +alias in your environment" "$LINENO" 5
  18845. fi
  18846. test "$2" = conftest.file
  18847. @@ -2259,13 +2455,10 @@
  18848. # Ok.
  18849. :
  18850. else
  18851. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  18852. -Check your system clock" >&5
  18853. -$as_echo "$as_me: error: newly created file is older than distributed files!
  18854. -Check your system clock" >&2;}
  18855. - { (exit 1); exit 1; }; }
  18856. + as_fn_error "newly created file is older than distributed files!
  18857. +Check your system clock" "$LINENO" 5
  18858. fi
  18859. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  18860. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18861. $as_echo "yes" >&6; }
  18862. test "$program_prefix" != NONE &&
  18863. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  18864. @@ -2293,7 +2486,7 @@
  18865. am_missing_run="$MISSING --run "
  18866. else
  18867. am_missing_run=
  18868. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  18869. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  18870. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18871. fi
  18872. @@ -2314,9 +2507,9 @@
  18873. if test -n "$ac_tool_prefix"; then
  18874. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18875. set dummy ${ac_tool_prefix}strip; ac_word=$2
  18876. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18877. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18878. $as_echo_n "checking for $ac_word... " >&6; }
  18879. -if test "${ac_cv_prog_STRIP+set}" = set; then
  18880. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18881. $as_echo_n "(cached) " >&6
  18882. else
  18883. if test -n "$STRIP"; then
  18884. @@ -2327,24 +2520,24 @@
  18885. do
  18886. IFS=$as_save_IFS
  18887. test -z "$as_dir" && as_dir=.
  18888. - for ac_exec_ext in '' $ac_executable_extensions; do
  18889. + for ac_exec_ext in '' $ac_executable_extensions; do
  18890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18891. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18892. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18893. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18894. break 2
  18895. fi
  18896. done
  18897. -done
  18898. + done
  18899. IFS=$as_save_IFS
  18900. fi
  18901. fi
  18902. STRIP=$ac_cv_prog_STRIP
  18903. if test -n "$STRIP"; then
  18904. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  18905. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18906. $as_echo "$STRIP" >&6; }
  18907. else
  18908. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18910. $as_echo "no" >&6; }
  18911. fi
  18912. @@ -2354,9 +2547,9 @@
  18913. ac_ct_STRIP=$STRIP
  18914. # Extract the first word of "strip", so it can be a program name with args.
  18915. set dummy strip; ac_word=$2
  18916. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18917. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18918. $as_echo_n "checking for $ac_word... " >&6; }
  18919. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  18920. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18921. $as_echo_n "(cached) " >&6
  18922. else
  18923. if test -n "$ac_ct_STRIP"; then
  18924. @@ -2367,24 +2560,24 @@
  18925. do
  18926. IFS=$as_save_IFS
  18927. test -z "$as_dir" && as_dir=.
  18928. - for ac_exec_ext in '' $ac_executable_extensions; do
  18929. + for ac_exec_ext in '' $ac_executable_extensions; do
  18930. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18931. ac_cv_prog_ac_ct_STRIP="strip"
  18932. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18933. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18934. break 2
  18935. fi
  18936. done
  18937. -done
  18938. + done
  18939. IFS=$as_save_IFS
  18940. fi
  18941. fi
  18942. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18943. if test -n "$ac_ct_STRIP"; then
  18944. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  18945. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18946. $as_echo "$ac_ct_STRIP" >&6; }
  18947. else
  18948. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18949. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18950. $as_echo "no" >&6; }
  18951. fi
  18952. @@ -2393,7 +2586,7 @@
  18953. else
  18954. case $cross_compiling:$ac_tool_warned in
  18955. yes:)
  18956. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18957. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18959. ac_tool_warned=yes ;;
  18960. esac
  18961. @@ -2406,10 +2599,10 @@
  18962. fi
  18963. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  18964. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  18965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  18966. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  18967. if test -z "$MKDIR_P"; then
  18968. - if test "${ac_cv_path_mkdir+set}" = set; then
  18969. + if test "${ac_cv_path_mkdir+set}" = set; then :
  18970. $as_echo_n "(cached) " >&6
  18971. else
  18972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18973. @@ -2417,7 +2610,7 @@
  18974. do
  18975. IFS=$as_save_IFS
  18976. test -z "$as_dir" && as_dir=.
  18977. - for ac_prog in mkdir gmkdir; do
  18978. + for ac_prog in mkdir gmkdir; do
  18979. for ac_exec_ext in '' $ac_executable_extensions; do
  18980. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  18981. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  18982. @@ -2429,11 +2622,12 @@
  18983. esac
  18984. done
  18985. done
  18986. -done
  18987. + done
  18988. IFS=$as_save_IFS
  18989. fi
  18990. + test -d ./--version && rmdir ./--version
  18991. if test "${ac_cv_path_mkdir+set}" = set; then
  18992. MKDIR_P="$ac_cv_path_mkdir -p"
  18993. else
  18994. @@ -2441,11 +2635,10 @@
  18995. # value for MKDIR_P within a source directory, because that will
  18996. # break other packages using the cache if that directory is
  18997. # removed, or if the value is a relative name.
  18998. - test -d ./--version && rmdir ./--version
  18999. MKDIR_P="$ac_install_sh -d"
  19000. fi
  19001. fi
  19002. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  19003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  19004. $as_echo "$MKDIR_P" >&6; }
  19005. mkdir_p="$MKDIR_P"
  19006. @@ -2458,9 +2651,9 @@
  19007. do
  19008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19009. set dummy $ac_prog; ac_word=$2
  19010. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19012. $as_echo_n "checking for $ac_word... " >&6; }
  19013. -if test "${ac_cv_prog_AWK+set}" = set; then
  19014. +if test "${ac_cv_prog_AWK+set}" = set; then :
  19015. $as_echo_n "(cached) " >&6
  19016. else
  19017. if test -n "$AWK"; then
  19018. @@ -2471,24 +2664,24 @@
  19019. do
  19020. IFS=$as_save_IFS
  19021. test -z "$as_dir" && as_dir=.
  19022. - for ac_exec_ext in '' $ac_executable_extensions; do
  19023. + for ac_exec_ext in '' $ac_executable_extensions; do
  19024. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19025. ac_cv_prog_AWK="$ac_prog"
  19026. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19027. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19028. break 2
  19029. fi
  19030. done
  19031. -done
  19032. + done
  19033. IFS=$as_save_IFS
  19034. fi
  19035. fi
  19036. AWK=$ac_cv_prog_AWK
  19037. if test -n "$AWK"; then
  19038. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  19039. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  19040. $as_echo "$AWK" >&6; }
  19041. else
  19042. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19044. $as_echo "no" >&6; }
  19045. fi
  19046. @@ -2496,11 +2689,11 @@
  19047. test -n "$AWK" && break
  19048. done
  19049. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19051. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19052. set x ${MAKE-make}
  19053. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19054. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19055. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  19056. $as_echo_n "(cached) " >&6
  19057. else
  19058. cat >conftest.make <<\_ACEOF
  19059. @@ -2518,11 +2711,11 @@
  19060. rm -f conftest.make
  19061. fi
  19062. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19063. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  19064. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19065. $as_echo "yes" >&6; }
  19066. SET_MAKE=
  19067. else
  19068. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19069. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19070. $as_echo "no" >&6; }
  19071. SET_MAKE="MAKE=${MAKE-make}"
  19072. fi
  19073. @@ -2542,9 +2735,7 @@
  19074. am__isrc=' -I$(srcdir)'
  19075. # test to see if srcdir already configured
  19076. if test -f $srcdir/config.status; then
  19077. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  19078. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  19079. - { (exit 1); exit 1; }; }
  19080. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  19081. fi
  19082. fi
  19083. @@ -2601,16 +2792,16 @@
  19084. -{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  19085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  19086. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  19087. # Check whether --enable-maintainer-mode was given.
  19088. -if test "${enable_maintainer_mode+set}" = set; then
  19089. +if test "${enable_maintainer_mode+set}" = set; then :
  19090. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  19091. else
  19092. USE_MAINTAINER_MODE=no
  19093. fi
  19094. - { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  19095. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  19096. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  19097. if test $USE_MAINTAINER_MODE = yes; then
  19098. MAINTAINER_MODE_TRUE=
  19099. @@ -2648,9 +2839,9 @@
  19100. if test -n "$ac_tool_prefix"; then
  19101. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19102. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19103. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19105. $as_echo_n "checking for $ac_word... " >&6; }
  19106. -if test "${ac_cv_prog_CC+set}" = set; then
  19107. +if test "${ac_cv_prog_CC+set}" = set; then :
  19108. $as_echo_n "(cached) " >&6
  19109. else
  19110. if test -n "$CC"; then
  19111. @@ -2661,24 +2852,24 @@
  19112. do
  19113. IFS=$as_save_IFS
  19114. test -z "$as_dir" && as_dir=.
  19115. - for ac_exec_ext in '' $ac_executable_extensions; do
  19116. + for ac_exec_ext in '' $ac_executable_extensions; do
  19117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19118. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19119. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19120. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19121. break 2
  19122. fi
  19123. done
  19124. -done
  19125. + done
  19126. IFS=$as_save_IFS
  19127. fi
  19128. fi
  19129. CC=$ac_cv_prog_CC
  19130. if test -n "$CC"; then
  19131. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  19132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19133. $as_echo "$CC" >&6; }
  19134. else
  19135. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19137. $as_echo "no" >&6; }
  19138. fi
  19139. @@ -2688,9 +2879,9 @@
  19140. ac_ct_CC=$CC
  19141. # Extract the first word of "gcc", so it can be a program name with args.
  19142. set dummy gcc; ac_word=$2
  19143. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19145. $as_echo_n "checking for $ac_word... " >&6; }
  19146. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19147. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19148. $as_echo_n "(cached) " >&6
  19149. else
  19150. if test -n "$ac_ct_CC"; then
  19151. @@ -2701,24 +2892,24 @@
  19152. do
  19153. IFS=$as_save_IFS
  19154. test -z "$as_dir" && as_dir=.
  19155. - for ac_exec_ext in '' $ac_executable_extensions; do
  19156. + for ac_exec_ext in '' $ac_executable_extensions; do
  19157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19158. ac_cv_prog_ac_ct_CC="gcc"
  19159. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19160. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19161. break 2
  19162. fi
  19163. done
  19164. -done
  19165. + done
  19166. IFS=$as_save_IFS
  19167. fi
  19168. fi
  19169. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19170. if test -n "$ac_ct_CC"; then
  19171. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19172. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19173. $as_echo "$ac_ct_CC" >&6; }
  19174. else
  19175. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19176. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19177. $as_echo "no" >&6; }
  19178. fi
  19179. @@ -2727,7 +2918,7 @@
  19180. else
  19181. case $cross_compiling:$ac_tool_warned in
  19182. yes:)
  19183. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19186. ac_tool_warned=yes ;;
  19187. esac
  19188. @@ -2741,9 +2932,9 @@
  19189. if test -n "$ac_tool_prefix"; then
  19190. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19191. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19192. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19193. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19194. $as_echo_n "checking for $ac_word... " >&6; }
  19195. -if test "${ac_cv_prog_CC+set}" = set; then
  19196. +if test "${ac_cv_prog_CC+set}" = set; then :
  19197. $as_echo_n "(cached) " >&6
  19198. else
  19199. if test -n "$CC"; then
  19200. @@ -2754,24 +2945,24 @@
  19201. do
  19202. IFS=$as_save_IFS
  19203. test -z "$as_dir" && as_dir=.
  19204. - for ac_exec_ext in '' $ac_executable_extensions; do
  19205. + for ac_exec_ext in '' $ac_executable_extensions; do
  19206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19207. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19208. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19209. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19210. break 2
  19211. fi
  19212. done
  19213. -done
  19214. + done
  19215. IFS=$as_save_IFS
  19216. fi
  19217. fi
  19218. CC=$ac_cv_prog_CC
  19219. if test -n "$CC"; then
  19220. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  19221. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19222. $as_echo "$CC" >&6; }
  19223. else
  19224. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19225. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19226. $as_echo "no" >&6; }
  19227. fi
  19228. @@ -2781,9 +2972,9 @@
  19229. if test -z "$CC"; then
  19230. # Extract the first word of "cc", so it can be a program name with args.
  19231. set dummy cc; ac_word=$2
  19232. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19233. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19234. $as_echo_n "checking for $ac_word... " >&6; }
  19235. -if test "${ac_cv_prog_CC+set}" = set; then
  19236. +if test "${ac_cv_prog_CC+set}" = set; then :
  19237. $as_echo_n "(cached) " >&6
  19238. else
  19239. if test -n "$CC"; then
  19240. @@ -2795,18 +2986,18 @@
  19241. do
  19242. IFS=$as_save_IFS
  19243. test -z "$as_dir" && as_dir=.
  19244. - for ac_exec_ext in '' $ac_executable_extensions; do
  19245. + for ac_exec_ext in '' $ac_executable_extensions; do
  19246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19247. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19248. ac_prog_rejected=yes
  19249. continue
  19250. fi
  19251. ac_cv_prog_CC="cc"
  19252. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19253. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19254. break 2
  19255. fi
  19256. done
  19257. -done
  19258. + done
  19259. IFS=$as_save_IFS
  19260. if test $ac_prog_rejected = yes; then
  19261. @@ -2825,10 +3016,10 @@
  19262. fi
  19263. CC=$ac_cv_prog_CC
  19264. if test -n "$CC"; then
  19265. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  19266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19267. $as_echo "$CC" >&6; }
  19268. else
  19269. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19271. $as_echo "no" >&6; }
  19272. fi
  19273. @@ -2840,9 +3031,9 @@
  19274. do
  19275. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19276. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19277. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19279. $as_echo_n "checking for $ac_word... " >&6; }
  19280. -if test "${ac_cv_prog_CC+set}" = set; then
  19281. +if test "${ac_cv_prog_CC+set}" = set; then :
  19282. $as_echo_n "(cached) " >&6
  19283. else
  19284. if test -n "$CC"; then
  19285. @@ -2853,24 +3044,24 @@
  19286. do
  19287. IFS=$as_save_IFS
  19288. test -z "$as_dir" && as_dir=.
  19289. - for ac_exec_ext in '' $ac_executable_extensions; do
  19290. + for ac_exec_ext in '' $ac_executable_extensions; do
  19291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19292. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19293. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19294. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19295. break 2
  19296. fi
  19297. done
  19298. -done
  19299. + done
  19300. IFS=$as_save_IFS
  19301. fi
  19302. fi
  19303. CC=$ac_cv_prog_CC
  19304. if test -n "$CC"; then
  19305. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  19306. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19307. $as_echo "$CC" >&6; }
  19308. else
  19309. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19310. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19311. $as_echo "no" >&6; }
  19312. fi
  19313. @@ -2884,9 +3075,9 @@
  19314. do
  19315. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19316. set dummy $ac_prog; ac_word=$2
  19317. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19319. $as_echo_n "checking for $ac_word... " >&6; }
  19320. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19321. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19322. $as_echo_n "(cached) " >&6
  19323. else
  19324. if test -n "$ac_ct_CC"; then
  19325. @@ -2897,24 +3088,24 @@
  19326. do
  19327. IFS=$as_save_IFS
  19328. test -z "$as_dir" && as_dir=.
  19329. - for ac_exec_ext in '' $ac_executable_extensions; do
  19330. + for ac_exec_ext in '' $ac_executable_extensions; do
  19331. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19332. ac_cv_prog_ac_ct_CC="$ac_prog"
  19333. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19334. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19335. break 2
  19336. fi
  19337. done
  19338. -done
  19339. + done
  19340. IFS=$as_save_IFS
  19341. fi
  19342. fi
  19343. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19344. if test -n "$ac_ct_CC"; then
  19345. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19346. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19347. $as_echo "$ac_ct_CC" >&6; }
  19348. else
  19349. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19350. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19351. $as_echo "no" >&6; }
  19352. fi
  19353. @@ -2927,7 +3118,7 @@
  19354. else
  19355. case $cross_compiling:$ac_tool_warned in
  19356. yes:)
  19357. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19360. ac_tool_warned=yes ;;
  19361. esac
  19362. @@ -2938,57 +3129,37 @@
  19363. fi
  19364. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19365. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19367. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  19368. -See \`config.log' for more details." >&5
  19369. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  19370. -See \`config.log' for more details." >&2;}
  19371. - { (exit 1); exit 1; }; }; }
  19372. +as_fn_error "no acceptable C compiler found in \$PATH
  19373. +See \`config.log' for more details." "$LINENO" 5; }
  19374. # Provide some information about the compiler.
  19375. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  19376. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19377. set X $ac_compile
  19378. ac_compiler=$2
  19379. -{ (ac_try="$ac_compiler --version >&5"
  19380. -case "(($ac_try" in
  19381. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19382. - *) ac_try_echo=$ac_try;;
  19383. -esac
  19384. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19385. -$as_echo "$ac_try_echo") >&5
  19386. - (eval "$ac_compiler --version >&5") 2>&5
  19387. - ac_status=$?
  19388. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19389. - (exit $ac_status); }
  19390. -{ (ac_try="$ac_compiler -v >&5"
  19391. -case "(($ac_try" in
  19392. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19393. - *) ac_try_echo=$ac_try;;
  19394. -esac
  19395. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19396. -$as_echo "$ac_try_echo") >&5
  19397. - (eval "$ac_compiler -v >&5") 2>&5
  19398. - ac_status=$?
  19399. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19400. - (exit $ac_status); }
  19401. -{ (ac_try="$ac_compiler -V >&5"
  19402. +for ac_option in --version -v -V -qversion; do
  19403. + { { ac_try="$ac_compiler $ac_option >&5"
  19404. case "(($ac_try" in
  19405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19406. *) ac_try_echo=$ac_try;;
  19407. esac
  19408. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19409. -$as_echo "$ac_try_echo") >&5
  19410. - (eval "$ac_compiler -V >&5") 2>&5
  19411. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19412. +$as_echo "$ac_try_echo"; } >&5
  19413. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19414. ac_status=$?
  19415. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19416. - (exit $ac_status); }
  19417. + if test -s conftest.err; then
  19418. + sed '10a\
  19419. +... rest of stderr output deleted ...
  19420. + 10q' conftest.err >conftest.er1
  19421. + cat conftest.er1 >&5
  19422. + fi
  19423. + rm -f conftest.er1 conftest.err
  19424. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19425. + test $ac_status = 0; }
  19426. +done
  19427. -cat >conftest.$ac_ext <<_ACEOF
  19428. -/* confdefs.h. */
  19429. -_ACEOF
  19430. -cat confdefs.h >>conftest.$ac_ext
  19431. -cat >>conftest.$ac_ext <<_ACEOF
  19432. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19433. /* end confdefs.h. */
  19434. int
  19435. @@ -3004,8 +3175,8 @@
  19436. # Try to create an executable without -o first, disregard a.out.
  19437. # It will help us diagnose broken compilers, and finding out an intuition
  19438. # of exeext.
  19439. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19440. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  19441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  19442. +$as_echo_n "checking whether the C compiler works... " >&6; }
  19443. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19444. # The possible output files:
  19445. @@ -3021,17 +3192,17 @@
  19446. done
  19447. rm -f $ac_rmfiles
  19448. -if { (ac_try="$ac_link_default"
  19449. +if { { ac_try="$ac_link_default"
  19450. case "(($ac_try" in
  19451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19452. *) ac_try_echo=$ac_try;;
  19453. esac
  19454. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19455. -$as_echo "$ac_try_echo") >&5
  19456. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19457. +$as_echo "$ac_try_echo"; } >&5
  19458. (eval "$ac_link_default") 2>&5
  19459. ac_status=$?
  19460. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19461. - (exit $ac_status); }; then
  19462. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19463. + test $ac_status = 0; }; then :
  19464. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  19465. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  19466. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  19467. @@ -3048,7 +3219,7 @@
  19468. # certainly right.
  19469. break;;
  19470. *.* )
  19471. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19472. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19473. then :; else
  19474. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19475. fi
  19476. @@ -3067,84 +3238,42 @@
  19477. else
  19478. ac_file=''
  19479. fi
  19480. -
  19481. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  19482. -$as_echo "$ac_file" >&6; }
  19483. -if test -z "$ac_file"; then
  19484. - $as_echo "$as_me: failed program was:" >&5
  19485. +if test -z "$ac_file"; then :
  19486. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19487. +$as_echo "no" >&6; }
  19488. +$as_echo "$as_me: failed program was:" >&5
  19489. sed 's/^/| /' conftest.$ac_ext >&5
  19490. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19491. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19493. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  19494. -See \`config.log' for more details." >&5
  19495. -$as_echo "$as_me: error: C compiler cannot create executables
  19496. -See \`config.log' for more details." >&2;}
  19497. - { (exit 77); exit 77; }; }; }
  19498. +{ as_fn_set_status 77
  19499. +as_fn_error "C compiler cannot create executables
  19500. +See \`config.log' for more details." "$LINENO" 5; }; }
  19501. +else
  19502. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19503. +$as_echo "yes" >&6; }
  19504. fi
  19505. -
  19506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  19507. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  19508. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  19509. +$as_echo "$ac_file" >&6; }
  19510. ac_exeext=$ac_cv_exeext
  19511. -# Check that the compiler produces executables we can run. If not, either
  19512. -# the compiler is broken, or we cross compile.
  19513. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  19514. -$as_echo_n "checking whether the C compiler works... " >&6; }
  19515. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  19516. -# If not cross compiling, check that we can run a simple program.
  19517. -if test "$cross_compiling" != yes; then
  19518. - if { ac_try='./$ac_file'
  19519. - { (case "(($ac_try" in
  19520. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19521. - *) ac_try_echo=$ac_try;;
  19522. -esac
  19523. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19524. -$as_echo "$ac_try_echo") >&5
  19525. - (eval "$ac_try") 2>&5
  19526. - ac_status=$?
  19527. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19528. - (exit $ac_status); }; }; then
  19529. - cross_compiling=no
  19530. - else
  19531. - if test "$cross_compiling" = maybe; then
  19532. - cross_compiling=yes
  19533. - else
  19534. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19535. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19536. -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  19537. -If you meant to cross compile, use \`--host'.
  19538. -See \`config.log' for more details." >&5
  19539. -$as_echo "$as_me: error: cannot run C compiled programs.
  19540. -If you meant to cross compile, use \`--host'.
  19541. -See \`config.log' for more details." >&2;}
  19542. - { (exit 1); exit 1; }; }; }
  19543. - fi
  19544. - fi
  19545. -fi
  19546. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  19547. -$as_echo "yes" >&6; }
  19548. -
  19549. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  19550. ac_clean_files=$ac_clean_files_save
  19551. -# Check that the compiler produces executables we can run. If not, either
  19552. -# the compiler is broken, or we cross compile.
  19553. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  19554. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  19555. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  19556. -$as_echo "$cross_compiling" >&6; }
  19557. -
  19558. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  19559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  19560. $as_echo_n "checking for suffix of executables... " >&6; }
  19561. -if { (ac_try="$ac_link"
  19562. +if { { ac_try="$ac_link"
  19563. case "(($ac_try" in
  19564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19565. *) ac_try_echo=$ac_try;;
  19566. esac
  19567. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19568. -$as_echo "$ac_try_echo") >&5
  19569. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19570. +$as_echo "$ac_try_echo"; } >&5
  19571. (eval "$ac_link") 2>&5
  19572. ac_status=$?
  19573. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19574. - (exit $ac_status); }; then
  19575. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19576. + test $ac_status = 0; }; then :
  19577. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  19578. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  19579. # work properly (i.e., refer to `conftest.exe'), while it won't with
  19580. @@ -3159,32 +3288,83 @@
  19581. esac
  19582. done
  19583. else
  19584. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19585. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19587. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  19588. -See \`config.log' for more details." >&5
  19589. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  19590. -See \`config.log' for more details." >&2;}
  19591. - { (exit 1); exit 1; }; }; }
  19592. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  19593. +See \`config.log' for more details." "$LINENO" 5; }
  19594. fi
  19595. -
  19596. -rm -f conftest$ac_cv_exeext
  19597. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  19598. +rm -f conftest conftest$ac_cv_exeext
  19599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  19600. $as_echo "$ac_cv_exeext" >&6; }
  19601. rm -f conftest.$ac_ext
  19602. EXEEXT=$ac_cv_exeext
  19603. ac_exeext=$EXEEXT
  19604. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  19605. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. +/* end confdefs.h. */
  19607. +#include <stdio.h>
  19608. +int
  19609. +main ()
  19610. +{
  19611. +FILE *f = fopen ("conftest.out", "w");
  19612. + return ferror (f) || fclose (f) != 0;
  19613. +
  19614. + ;
  19615. + return 0;
  19616. +}
  19617. +_ACEOF
  19618. +ac_clean_files="$ac_clean_files conftest.out"
  19619. +# Check that the compiler produces executables we can run. If not, either
  19620. +# the compiler is broken, or we cross compile.
  19621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  19622. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  19623. +if test "$cross_compiling" != yes; then
  19624. + { { ac_try="$ac_link"
  19625. +case "(($ac_try" in
  19626. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19627. + *) ac_try_echo=$ac_try;;
  19628. +esac
  19629. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19630. +$as_echo "$ac_try_echo"; } >&5
  19631. + (eval "$ac_link") 2>&5
  19632. + ac_status=$?
  19633. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19634. + test $ac_status = 0; }
  19635. + if { ac_try='./conftest$ac_cv_exeext'
  19636. + { { case "(($ac_try" in
  19637. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19638. + *) ac_try_echo=$ac_try;;
  19639. +esac
  19640. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19641. +$as_echo "$ac_try_echo"; } >&5
  19642. + (eval "$ac_try") 2>&5
  19643. + ac_status=$?
  19644. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19645. + test $ac_status = 0; }; }; then
  19646. + cross_compiling=no
  19647. + else
  19648. + if test "$cross_compiling" = maybe; then
  19649. + cross_compiling=yes
  19650. + else
  19651. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19652. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19653. +as_fn_error "cannot run C compiled programs.
  19654. +If you meant to cross compile, use \`--host'.
  19655. +See \`config.log' for more details." "$LINENO" 5; }
  19656. + fi
  19657. + fi
  19658. +fi
  19659. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  19660. +$as_echo "$cross_compiling" >&6; }
  19661. +
  19662. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  19663. +ac_clean_files=$ac_clean_files_save
  19664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  19665. $as_echo_n "checking for suffix of object files... " >&6; }
  19666. -if test "${ac_cv_objext+set}" = set; then
  19667. +if test "${ac_cv_objext+set}" = set; then :
  19668. $as_echo_n "(cached) " >&6
  19669. else
  19670. - cat >conftest.$ac_ext <<_ACEOF
  19671. -/* confdefs.h. */
  19672. -_ACEOF
  19673. -cat confdefs.h >>conftest.$ac_ext
  19674. -cat >>conftest.$ac_ext <<_ACEOF
  19675. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19676. /* end confdefs.h. */
  19677. int
  19678. @@ -3196,17 +3376,17 @@
  19679. }
  19680. _ACEOF
  19681. rm -f conftest.o conftest.obj
  19682. -if { (ac_try="$ac_compile"
  19683. +if { { ac_try="$ac_compile"
  19684. case "(($ac_try" in
  19685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19686. *) ac_try_echo=$ac_try;;
  19687. esac
  19688. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19689. -$as_echo "$ac_try_echo") >&5
  19690. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19691. +$as_echo "$ac_try_echo"; } >&5
  19692. (eval "$ac_compile") 2>&5
  19693. ac_status=$?
  19694. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19695. - (exit $ac_status); }; then
  19696. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19697. + test $ac_status = 0; }; then :
  19698. for ac_file in conftest.o conftest.obj conftest.*; do
  19699. test -f "$ac_file" || continue;
  19700. case $ac_file in
  19701. @@ -3219,31 +3399,23 @@
  19702. $as_echo "$as_me: failed program was:" >&5
  19703. sed 's/^/| /' conftest.$ac_ext >&5
  19704. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19705. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19707. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  19708. -See \`config.log' for more details." >&5
  19709. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  19710. -See \`config.log' for more details." >&2;}
  19711. - { (exit 1); exit 1; }; }; }
  19712. +as_fn_error "cannot compute suffix of object files: cannot compile
  19713. +See \`config.log' for more details." "$LINENO" 5; }
  19714. fi
  19715. -
  19716. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  19717. fi
  19718. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  19719. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  19720. $as_echo "$ac_cv_objext" >&6; }
  19721. OBJEXT=$ac_cv_objext
  19722. ac_objext=$OBJEXT
  19723. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  19724. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  19725. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  19726. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  19727. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  19728. $as_echo_n "(cached) " >&6
  19729. else
  19730. - cat >conftest.$ac_ext <<_ACEOF
  19731. -/* confdefs.h. */
  19732. -_ACEOF
  19733. -cat confdefs.h >>conftest.$ac_ext
  19734. -cat >>conftest.$ac_ext <<_ACEOF
  19735. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19736. /* end confdefs.h. */
  19737. int
  19738. @@ -3257,37 +3429,16 @@
  19739. return 0;
  19740. }
  19741. _ACEOF
  19742. -rm -f conftest.$ac_objext
  19743. -if { (ac_try="$ac_compile"
  19744. -case "(($ac_try" in
  19745. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19746. - *) ac_try_echo=$ac_try;;
  19747. -esac
  19748. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19749. -$as_echo "$ac_try_echo") >&5
  19750. - (eval "$ac_compile") 2>conftest.er1
  19751. - ac_status=$?
  19752. - grep -v '^ *+' conftest.er1 >conftest.err
  19753. - rm -f conftest.er1
  19754. - cat conftest.err >&5
  19755. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19756. - (exit $ac_status); } && {
  19757. - test -z "$ac_c_werror_flag" ||
  19758. - test ! -s conftest.err
  19759. - } && test -s conftest.$ac_objext; then
  19760. +if ac_fn_c_try_compile "$LINENO"; then :
  19761. ac_compiler_gnu=yes
  19762. else
  19763. - $as_echo "$as_me: failed program was:" >&5
  19764. -sed 's/^/| /' conftest.$ac_ext >&5
  19765. -
  19766. - ac_compiler_gnu=no
  19767. + ac_compiler_gnu=no
  19768. fi
  19769. -
  19770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19771. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  19772. fi
  19773. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  19774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  19775. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  19776. if test $ac_compiler_gnu = yes; then
  19777. GCC=yes
  19778. @@ -3296,20 +3447,16 @@
  19779. fi
  19780. ac_test_CFLAGS=${CFLAGS+set}
  19781. ac_save_CFLAGS=$CFLAGS
  19782. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  19783. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  19784. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  19785. -if test "${ac_cv_prog_cc_g+set}" = set; then
  19786. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  19787. $as_echo_n "(cached) " >&6
  19788. else
  19789. ac_save_c_werror_flag=$ac_c_werror_flag
  19790. ac_c_werror_flag=yes
  19791. ac_cv_prog_cc_g=no
  19792. CFLAGS="-g"
  19793. - cat >conftest.$ac_ext <<_ACEOF
  19794. -/* confdefs.h. */
  19795. -_ACEOF
  19796. -cat confdefs.h >>conftest.$ac_ext
  19797. -cat >>conftest.$ac_ext <<_ACEOF
  19798. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19799. /* end confdefs.h. */
  19800. int
  19801. @@ -3320,35 +3467,11 @@
  19802. return 0;
  19803. }
  19804. _ACEOF
  19805. -rm -f conftest.$ac_objext
  19806. -if { (ac_try="$ac_compile"
  19807. -case "(($ac_try" in
  19808. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19809. - *) ac_try_echo=$ac_try;;
  19810. -esac
  19811. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19812. -$as_echo "$ac_try_echo") >&5
  19813. - (eval "$ac_compile") 2>conftest.er1
  19814. - ac_status=$?
  19815. - grep -v '^ *+' conftest.er1 >conftest.err
  19816. - rm -f conftest.er1
  19817. - cat conftest.err >&5
  19818. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19819. - (exit $ac_status); } && {
  19820. - test -z "$ac_c_werror_flag" ||
  19821. - test ! -s conftest.err
  19822. - } && test -s conftest.$ac_objext; then
  19823. +if ac_fn_c_try_compile "$LINENO"; then :
  19824. ac_cv_prog_cc_g=yes
  19825. else
  19826. - $as_echo "$as_me: failed program was:" >&5
  19827. -sed 's/^/| /' conftest.$ac_ext >&5
  19828. -
  19829. - CFLAGS=""
  19830. - cat >conftest.$ac_ext <<_ACEOF
  19831. -/* confdefs.h. */
  19832. -_ACEOF
  19833. -cat confdefs.h >>conftest.$ac_ext
  19834. -cat >>conftest.$ac_ext <<_ACEOF
  19835. + CFLAGS=""
  19836. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19837. /* end confdefs.h. */
  19838. int
  19839. @@ -3359,36 +3482,12 @@
  19840. return 0;
  19841. }
  19842. _ACEOF
  19843. -rm -f conftest.$ac_objext
  19844. -if { (ac_try="$ac_compile"
  19845. -case "(($ac_try" in
  19846. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19847. - *) ac_try_echo=$ac_try;;
  19848. -esac
  19849. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19850. -$as_echo "$ac_try_echo") >&5
  19851. - (eval "$ac_compile") 2>conftest.er1
  19852. - ac_status=$?
  19853. - grep -v '^ *+' conftest.er1 >conftest.err
  19854. - rm -f conftest.er1
  19855. - cat conftest.err >&5
  19856. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19857. - (exit $ac_status); } && {
  19858. - test -z "$ac_c_werror_flag" ||
  19859. - test ! -s conftest.err
  19860. - } && test -s conftest.$ac_objext; then
  19861. - :
  19862. -else
  19863. - $as_echo "$as_me: failed program was:" >&5
  19864. -sed 's/^/| /' conftest.$ac_ext >&5
  19865. +if ac_fn_c_try_compile "$LINENO"; then :
  19866. - ac_c_werror_flag=$ac_save_c_werror_flag
  19867. +else
  19868. + ac_c_werror_flag=$ac_save_c_werror_flag
  19869. CFLAGS="-g"
  19870. - cat >conftest.$ac_ext <<_ACEOF
  19871. -/* confdefs.h. */
  19872. -_ACEOF
  19873. -cat confdefs.h >>conftest.$ac_ext
  19874. -cat >>conftest.$ac_ext <<_ACEOF
  19875. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19876. /* end confdefs.h. */
  19877. int
  19878. @@ -3399,42 +3498,17 @@
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. -rm -f conftest.$ac_objext
  19883. -if { (ac_try="$ac_compile"
  19884. -case "(($ac_try" in
  19885. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19886. - *) ac_try_echo=$ac_try;;
  19887. -esac
  19888. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19889. -$as_echo "$ac_try_echo") >&5
  19890. - (eval "$ac_compile") 2>conftest.er1
  19891. - ac_status=$?
  19892. - grep -v '^ *+' conftest.er1 >conftest.err
  19893. - rm -f conftest.er1
  19894. - cat conftest.err >&5
  19895. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19896. - (exit $ac_status); } && {
  19897. - test -z "$ac_c_werror_flag" ||
  19898. - test ! -s conftest.err
  19899. - } && test -s conftest.$ac_objext; then
  19900. +if ac_fn_c_try_compile "$LINENO"; then :
  19901. ac_cv_prog_cc_g=yes
  19902. -else
  19903. - $as_echo "$as_me: failed program was:" >&5
  19904. -sed 's/^/| /' conftest.$ac_ext >&5
  19905. -
  19906. -
  19907. fi
  19908. -
  19909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19910. fi
  19911. -
  19912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19913. fi
  19914. -
  19915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19916. ac_c_werror_flag=$ac_save_c_werror_flag
  19917. fi
  19918. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  19919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  19920. $as_echo "$ac_cv_prog_cc_g" >&6; }
  19921. if test "$ac_test_CFLAGS" = set; then
  19922. CFLAGS=$ac_save_CFLAGS
  19923. @@ -3451,18 +3525,14 @@
  19924. CFLAGS=
  19925. fi
  19926. fi
  19927. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  19928. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  19929. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  19930. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  19931. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  19932. $as_echo_n "(cached) " >&6
  19933. else
  19934. ac_cv_prog_cc_c89=no
  19935. ac_save_CC=$CC
  19936. -cat >conftest.$ac_ext <<_ACEOF
  19937. -/* confdefs.h. */
  19938. -_ACEOF
  19939. -cat confdefs.h >>conftest.$ac_ext
  19940. -cat >>conftest.$ac_ext <<_ACEOF
  19941. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19942. /* end confdefs.h. */
  19943. #include <stdarg.h>
  19944. #include <stdio.h>
  19945. @@ -3519,32 +3589,9 @@
  19946. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  19947. do
  19948. CC="$ac_save_CC $ac_arg"
  19949. - rm -f conftest.$ac_objext
  19950. -if { (ac_try="$ac_compile"
  19951. -case "(($ac_try" in
  19952. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19953. - *) ac_try_echo=$ac_try;;
  19954. -esac
  19955. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19956. -$as_echo "$ac_try_echo") >&5
  19957. - (eval "$ac_compile") 2>conftest.er1
  19958. - ac_status=$?
  19959. - grep -v '^ *+' conftest.er1 >conftest.err
  19960. - rm -f conftest.er1
  19961. - cat conftest.err >&5
  19962. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19963. - (exit $ac_status); } && {
  19964. - test -z "$ac_c_werror_flag" ||
  19965. - test ! -s conftest.err
  19966. - } && test -s conftest.$ac_objext; then
  19967. + if ac_fn_c_try_compile "$LINENO"; then :
  19968. ac_cv_prog_cc_c89=$ac_arg
  19969. -else
  19970. - $as_echo "$as_me: failed program was:" >&5
  19971. -sed 's/^/| /' conftest.$ac_ext >&5
  19972. -
  19973. -
  19974. fi
  19975. -
  19976. rm -f core conftest.err conftest.$ac_objext
  19977. test "x$ac_cv_prog_cc_c89" != "xno" && break
  19978. done
  19979. @@ -3555,17 +3602,19 @@
  19980. # AC_CACHE_VAL
  19981. case "x$ac_cv_prog_cc_c89" in
  19982. x)
  19983. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  19984. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  19985. $as_echo "none needed" >&6; } ;;
  19986. xno)
  19987. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  19988. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  19989. $as_echo "unsupported" >&6; } ;;
  19990. *)
  19991. CC="$CC $ac_cv_prog_cc_c89"
  19992. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  19993. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  19994. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  19995. esac
  19996. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  19997. +fi
  19998. ac_ext=c
  19999. ac_cpp='$CPP $CPPFLAGS'
  20000. @@ -3584,7 +3633,7 @@
  20001. .PHONY: am__doit
  20002. END
  20003. # If we don't find an include directive, just comment out the code.
  20004. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  20005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  20006. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  20007. am__include="#"
  20008. am__quote=
  20009. @@ -3612,12 +3661,12 @@
  20010. fi
  20011. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  20012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  20013. $as_echo "$_am_result" >&6; }
  20014. rm -f confinc confmf
  20015. # Check whether --enable-dependency-tracking was given.
  20016. -if test "${enable_dependency_tracking+set}" = set; then
  20017. +if test "${enable_dependency_tracking+set}" = set; then :
  20018. enableval=$enable_dependency_tracking;
  20019. fi
  20020. @@ -3637,9 +3686,9 @@
  20021. depcc="$CC" am_compiler_list=
  20022. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20024. $as_echo_n "checking dependency style of $depcc... " >&6; }
  20025. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20026. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20027. $as_echo_n "(cached) " >&6
  20028. else
  20029. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20030. @@ -3747,7 +3796,7 @@
  20031. fi
  20032. fi
  20033. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  20034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20035. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20036. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20037. @@ -3762,109 +3811,54 @@
  20038. fi
  20039. -# Check whether --enable-shared was given.
  20040. -if test "${enable_shared+set}" = set; then
  20041. - enableval=$enable_shared; p=${PACKAGE-default}
  20042. - case $enableval in
  20043. - yes) enable_shared=yes ;;
  20044. - no) enable_shared=no ;;
  20045. - *)
  20046. - enable_shared=no
  20047. - # Look at the argument we got. We use all the common list separators.
  20048. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20049. - for pkg in $enableval; do
  20050. - IFS="$lt_save_ifs"
  20051. - if test "X$pkg" = "X$p"; then
  20052. - enable_shared=yes
  20053. - fi
  20054. - done
  20055. - IFS="$lt_save_ifs"
  20056. - ;;
  20057. - esac
  20058. -else
  20059. - enable_shared=yes
  20060. -fi
  20061. +case `pwd` in
  20062. + *\ * | *\ *)
  20063. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  20064. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  20065. +esac
  20066. +
  20067. +
  20068. +
  20069. +macro_version='2.2.6b'
  20070. +macro_revision='1.3017'
  20071. +
  20072. +
  20073. -# Check whether --enable-static was given.
  20074. -if test "${enable_static+set}" = set; then
  20075. - enableval=$enable_static; p=${PACKAGE-default}
  20076. - case $enableval in
  20077. - yes) enable_static=yes ;;
  20078. - no) enable_static=no ;;
  20079. - *)
  20080. - enable_static=no
  20081. - # Look at the argument we got. We use all the common list separators.
  20082. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20083. - for pkg in $enableval; do
  20084. - IFS="$lt_save_ifs"
  20085. - if test "X$pkg" = "X$p"; then
  20086. - enable_static=yes
  20087. - fi
  20088. - done
  20089. - IFS="$lt_save_ifs"
  20090. - ;;
  20091. - esac
  20092. -else
  20093. - enable_static=yes
  20094. -fi
  20095. -# Check whether --enable-fast-install was given.
  20096. -if test "${enable_fast_install+set}" = set; then
  20097. - enableval=$enable_fast_install; p=${PACKAGE-default}
  20098. - case $enableval in
  20099. - yes) enable_fast_install=yes ;;
  20100. - no) enable_fast_install=no ;;
  20101. - *)
  20102. - enable_fast_install=no
  20103. - # Look at the argument we got. We use all the common list separators.
  20104. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20105. - for pkg in $enableval; do
  20106. - IFS="$lt_save_ifs"
  20107. - if test "X$pkg" = "X$p"; then
  20108. - enable_fast_install=yes
  20109. - fi
  20110. - done
  20111. - IFS="$lt_save_ifs"
  20112. - ;;
  20113. - esac
  20114. -else
  20115. - enable_fast_install=yes
  20116. -fi
  20117. +
  20118. +
  20119. +
  20120. +
  20121. +
  20122. +ltmain="$ac_aux_dir/ltmain.sh"
  20123. +
  20124. # Make sure we can run config.sub.
  20125. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  20126. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  20127. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  20128. - { (exit 1); exit 1; }; }
  20129. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  20130. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  20131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  20132. $as_echo_n "checking build system type... " >&6; }
  20133. -if test "${ac_cv_build+set}" = set; then
  20134. +if test "${ac_cv_build+set}" = set; then :
  20135. $as_echo_n "(cached) " >&6
  20136. else
  20137. ac_build_alias=$build_alias
  20138. test "x$ac_build_alias" = x &&
  20139. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  20140. test "x$ac_build_alias" = x &&
  20141. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  20142. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  20143. - { (exit 1); exit 1; }; }
  20144. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  20145. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  20146. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  20147. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  20148. - { (exit 1); exit 1; }; }
  20149. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  20150. fi
  20151. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  20152. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  20153. $as_echo "$ac_cv_build" >&6; }
  20154. case $ac_cv_build in
  20155. *-*-*) ;;
  20156. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  20157. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  20158. - { (exit 1); exit 1; }; };;
  20159. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  20160. esac
  20161. build=$ac_cv_build
  20162. ac_save_IFS=$IFS; IFS='-'
  20163. @@ -3880,28 +3874,24 @@
  20164. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  20165. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  20166. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  20167. $as_echo_n "checking host system type... " >&6; }
  20168. -if test "${ac_cv_host+set}" = set; then
  20169. +if test "${ac_cv_host+set}" = set; then :
  20170. $as_echo_n "(cached) " >&6
  20171. else
  20172. if test "x$host_alias" = x; then
  20173. ac_cv_host=$ac_cv_build
  20174. else
  20175. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  20176. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  20177. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  20178. - { (exit 1); exit 1; }; }
  20179. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  20180. fi
  20181. fi
  20182. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  20183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  20184. $as_echo "$ac_cv_host" >&6; }
  20185. case $ac_cv_host in
  20186. *-*-*) ;;
  20187. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  20188. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  20189. - { (exit 1); exit 1; }; };;
  20190. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  20191. esac
  20192. host=$ac_cv_host
  20193. ac_save_IFS=$IFS; IFS='-'
  20194. @@ -3917,68 +3907,91 @@
  20195. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  20196. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  20197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20198. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20199. -if test "${lt_cv_path_SED+set}" = set; then
  20200. +if test "${ac_cv_path_SED+set}" = set; then :
  20201. $as_echo_n "(cached) " >&6
  20202. else
  20203. - # Loop through the user's path and test for sed and gsed.
  20204. -# Then use that list of sed's as ones to test for truncation.
  20205. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20206. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20207. + for ac_i in 1 2 3 4 5 6 7; do
  20208. + ac_script="$ac_script$as_nl$ac_script"
  20209. + done
  20210. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20211. + { ac_script=; unset ac_script;}
  20212. + if test -z "$SED"; then
  20213. + ac_path_SED_found=false
  20214. + # Loop through the user's path and test for each of PROGNAME-LIST
  20215. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20216. for as_dir in $PATH
  20217. do
  20218. IFS=$as_save_IFS
  20219. test -z "$as_dir" && as_dir=.
  20220. - for lt_ac_prog in sed gsed; do
  20221. + for ac_prog in sed gsed; do
  20222. for ac_exec_ext in '' $ac_executable_extensions; do
  20223. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  20224. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  20225. - fi
  20226. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20227. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20228. +# Check for GNU ac_path_SED and select it if it is found.
  20229. + # Check for GNU $ac_path_SED
  20230. +case `"$ac_path_SED" --version 2>&1` in
  20231. +*GNU*)
  20232. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20233. +*)
  20234. + ac_count=0
  20235. + $as_echo_n 0123456789 >"conftest.in"
  20236. + while :
  20237. + do
  20238. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20239. + mv "conftest.tmp" "conftest.in"
  20240. + cp "conftest.in" "conftest.nl"
  20241. + $as_echo '' >> "conftest.nl"
  20242. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20243. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20244. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20245. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20246. + # Best one so far, save it but keep looking for a better one
  20247. + ac_cv_path_SED="$ac_path_SED"
  20248. + ac_path_SED_max=$ac_count
  20249. + fi
  20250. + # 10*(2^10) chars as input seems more than enough
  20251. + test $ac_count -gt 10 && break
  20252. + done
  20253. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20254. +esac
  20255. +
  20256. + $ac_path_SED_found && break 3
  20257. done
  20258. done
  20259. -done
  20260. + done
  20261. IFS=$as_save_IFS
  20262. -lt_ac_max=0
  20263. -lt_ac_count=0
  20264. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  20265. -# along with /bin/sed that truncates output.
  20266. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  20267. - test ! -f $lt_ac_sed && continue
  20268. - cat /dev/null > conftest.in
  20269. - lt_ac_count=0
  20270. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  20271. - # Check for GNU sed and select it if it is found.
  20272. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  20273. - lt_cv_path_SED=$lt_ac_sed
  20274. - break
  20275. + if test -z "$ac_cv_path_SED"; then
  20276. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20277. fi
  20278. - while true; do
  20279. - cat conftest.in conftest.in >conftest.tmp
  20280. - mv conftest.tmp conftest.in
  20281. - cp conftest.in conftest.nl
  20282. - echo >>conftest.nl
  20283. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  20284. - cmp -s conftest.out conftest.nl || break
  20285. - # 10000 chars as input seems more than enough
  20286. - test $lt_ac_count -gt 10 && break
  20287. - lt_ac_count=`expr $lt_ac_count + 1`
  20288. - if test $lt_ac_count -gt $lt_ac_max; then
  20289. - lt_ac_max=$lt_ac_count
  20290. - lt_cv_path_SED=$lt_ac_sed
  20291. - fi
  20292. - done
  20293. -done
  20294. +else
  20295. + ac_cv_path_SED=$SED
  20296. +fi
  20297. fi
  20298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20299. +$as_echo "$ac_cv_path_SED" >&6; }
  20300. + SED="$ac_cv_path_SED"
  20301. + rm -f conftest.sed
  20302. +
  20303. +test -z "$SED" && SED=sed
  20304. +Xsed="$SED -e 1s/^X//"
  20305. -SED=$lt_cv_path_SED
  20306. -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
  20307. -$as_echo "$SED" >&6; }
  20308. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  20309. +
  20310. +
  20311. +
  20312. +
  20313. +
  20314. +
  20315. +
  20316. +
  20317. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  20318. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  20319. -if test "${ac_cv_path_GREP+set}" = set; then
  20320. +if test "${ac_cv_path_GREP+set}" = set; then :
  20321. $as_echo_n "(cached) " >&6
  20322. else
  20323. if test -z "$GREP"; then
  20324. @@ -3989,7 +4002,7 @@
  20325. do
  20326. IFS=$as_save_IFS
  20327. test -z "$as_dir" && as_dir=.
  20328. - for ac_prog in grep ggrep; do
  20329. + for ac_prog in grep ggrep; do
  20330. for ac_exec_ext in '' $ac_executable_extensions; do
  20331. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20332. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20333. @@ -4009,7 +4022,7 @@
  20334. $as_echo 'GREP' >> "conftest.nl"
  20335. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20336. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20337. - ac_count=`expr $ac_count + 1`
  20338. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20339. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20340. # Best one so far, save it but keep looking for a better one
  20341. ac_cv_path_GREP="$ac_path_GREP"
  20342. @@ -4024,26 +4037,24 @@
  20343. $ac_path_GREP_found && break 3
  20344. done
  20345. done
  20346. -done
  20347. + done
  20348. IFS=$as_save_IFS
  20349. if test -z "$ac_cv_path_GREP"; then
  20350. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  20351. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  20352. - { (exit 1); exit 1; }; }
  20353. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20354. fi
  20355. else
  20356. ac_cv_path_GREP=$GREP
  20357. fi
  20358. fi
  20359. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  20360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  20361. $as_echo "$ac_cv_path_GREP" >&6; }
  20362. GREP="$ac_cv_path_GREP"
  20363. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  20364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20365. $as_echo_n "checking for egrep... " >&6; }
  20366. -if test "${ac_cv_path_EGREP+set}" = set; then
  20367. +if test "${ac_cv_path_EGREP+set}" = set; then :
  20368. $as_echo_n "(cached) " >&6
  20369. else
  20370. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20371. @@ -4057,7 +4068,7 @@
  20372. do
  20373. IFS=$as_save_IFS
  20374. test -z "$as_dir" && as_dir=.
  20375. - for ac_prog in egrep; do
  20376. + for ac_prog in egrep; do
  20377. for ac_exec_ext in '' $ac_executable_extensions; do
  20378. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20379. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20380. @@ -4077,7 +4088,7 @@
  20381. $as_echo 'EGREP' >> "conftest.nl"
  20382. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20384. - ac_count=`expr $ac_count + 1`
  20385. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20386. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  20387. # Best one so far, save it but keep looking for a better one
  20388. ac_cv_path_EGREP="$ac_path_EGREP"
  20389. @@ -4092,12 +4103,10 @@
  20390. $ac_path_EGREP_found && break 3
  20391. done
  20392. done
  20393. -done
  20394. + done
  20395. IFS=$as_save_IFS
  20396. if test -z "$ac_cv_path_EGREP"; then
  20397. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  20398. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  20399. - { (exit 1); exit 1; }; }
  20400. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20401. fi
  20402. else
  20403. ac_cv_path_EGREP=$EGREP
  20404. @@ -4105,14 +4114,100 @@
  20405. fi
  20406. fi
  20407. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  20408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  20409. $as_echo "$ac_cv_path_EGREP" >&6; }
  20410. EGREP="$ac_cv_path_EGREP"
  20411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  20412. +$as_echo_n "checking for fgrep... " >&6; }
  20413. +if test "${ac_cv_path_FGREP+set}" = set; then :
  20414. + $as_echo_n "(cached) " >&6
  20415. +else
  20416. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  20417. + then ac_cv_path_FGREP="$GREP -F"
  20418. + else
  20419. + if test -z "$FGREP"; then
  20420. + ac_path_FGREP_found=false
  20421. + # Loop through the user's path and test for each of PROGNAME-LIST
  20422. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20423. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20424. +do
  20425. + IFS=$as_save_IFS
  20426. + test -z "$as_dir" && as_dir=.
  20427. + for ac_prog in fgrep; do
  20428. + for ac_exec_ext in '' $ac_executable_extensions; do
  20429. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  20430. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  20431. +# Check for GNU ac_path_FGREP and select it if it is found.
  20432. + # Check for GNU $ac_path_FGREP
  20433. +case `"$ac_path_FGREP" --version 2>&1` in
  20434. +*GNU*)
  20435. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  20436. +*)
  20437. + ac_count=0
  20438. + $as_echo_n 0123456789 >"conftest.in"
  20439. + while :
  20440. + do
  20441. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20442. + mv "conftest.tmp" "conftest.in"
  20443. + cp "conftest.in" "conftest.nl"
  20444. + $as_echo 'FGREP' >> "conftest.nl"
  20445. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20446. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20447. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20448. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  20449. + # Best one so far, save it but keep looking for a better one
  20450. + ac_cv_path_FGREP="$ac_path_FGREP"
  20451. + ac_path_FGREP_max=$ac_count
  20452. + fi
  20453. + # 10*(2^10) chars as input seems more than enough
  20454. + test $ac_count -gt 10 && break
  20455. + done
  20456. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20457. +esac
  20458. +
  20459. + $ac_path_FGREP_found && break 3
  20460. + done
  20461. + done
  20462. + done
  20463. +IFS=$as_save_IFS
  20464. + if test -z "$ac_cv_path_FGREP"; then
  20465. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20466. + fi
  20467. +else
  20468. + ac_cv_path_FGREP=$FGREP
  20469. +fi
  20470. +
  20471. + fi
  20472. +fi
  20473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  20474. +$as_echo "$ac_cv_path_FGREP" >&6; }
  20475. + FGREP="$ac_cv_path_FGREP"
  20476. +
  20477. +
  20478. +test -z "$GREP" && GREP=grep
  20479. +
  20480. +
  20481. +
  20482. +
  20483. +
  20484. +
  20485. +
  20486. +
  20487. +
  20488. +
  20489. +
  20490. +
  20491. +
  20492. +
  20493. +
  20494. +
  20495. +
  20496. +
  20497. # Check whether --with-gnu-ld was given.
  20498. -if test "${with_gnu_ld+set}" = set; then
  20499. +if test "${with_gnu_ld+set}" = set; then :
  20500. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  20501. else
  20502. with_gnu_ld=no
  20503. @@ -4121,7 +4216,7 @@
  20504. ac_prog=ld
  20505. if test "$GCC" = yes; then
  20506. # Check if gcc -print-prog-name=ld gives a path.
  20507. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  20508. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  20509. $as_echo_n "checking for ld used by $CC... " >&6; }
  20510. case $host in
  20511. *-*-mingw*)
  20512. @@ -4135,9 +4230,9 @@
  20513. [\\/]* | ?:[\\/]*)
  20514. re_direlt='/[^/][^/]*/\.\./'
  20515. # Canonicalize the pathname of ld
  20516. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  20517. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20518. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  20519. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  20520. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  20521. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  20522. done
  20523. test -z "$LD" && LD="$ac_prog"
  20524. ;;
  20525. @@ -4151,13 +4246,13 @@
  20526. ;;
  20527. esac
  20528. elif test "$with_gnu_ld" = yes; then
  20529. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  20530. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20531. $as_echo_n "checking for GNU ld... " >&6; }
  20532. else
  20533. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  20534. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20535. $as_echo_n "checking for non-GNU ld... " >&6; }
  20536. fi
  20537. -if test "${lt_cv_path_LD+set}" = set; then
  20538. +if test "${lt_cv_path_LD+set}" = set; then :
  20539. $as_echo_n "(cached) " >&6
  20540. else
  20541. if test -z "$LD"; then
  20542. @@ -4188,18 +4283,16 @@
  20543. LD="$lt_cv_path_LD"
  20544. if test -n "$LD"; then
  20545. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  20546. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20547. $as_echo "$LD" >&6; }
  20548. else
  20549. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20550. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20551. $as_echo "no" >&6; }
  20552. fi
  20553. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  20554. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  20555. - { (exit 1); exit 1; }; }
  20556. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  20557. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20559. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20560. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  20561. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  20562. $as_echo_n "(cached) " >&6
  20563. else
  20564. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  20565. @@ -4212,39 +4305,21 @@
  20566. ;;
  20567. esac
  20568. fi
  20569. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  20570. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  20571. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  20572. with_gnu_ld=$lt_cv_prog_gnu_ld
  20573. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  20574. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  20575. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  20576. - $as_echo_n "(cached) " >&6
  20577. -else
  20578. - lt_cv_ld_reload_flag='-r'
  20579. -fi
  20580. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  20581. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  20582. -reload_flag=$lt_cv_ld_reload_flag
  20583. -case $reload_flag in
  20584. -"" | " "*) ;;
  20585. -*) reload_flag=" $reload_flag" ;;
  20586. -esac
  20587. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20588. -case $host_os in
  20589. - darwin*)
  20590. - if test "$GCC" = yes; then
  20591. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20592. - else
  20593. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20594. - fi
  20595. - ;;
  20596. -esac
  20597. -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  20598. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  20599. -if test "${lt_cv_path_NM+set}" = set; then
  20600. +
  20601. +
  20602. +
  20603. +
  20604. +
  20605. +
  20606. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  20607. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  20608. +if test "${lt_cv_path_NM+set}" = set; then :
  20609. $as_echo_n "(cached) " >&6
  20610. else
  20611. if test -n "$NM"; then
  20612. @@ -4288,2268 +4363,1093 @@
  20613. done
  20614. IFS="$lt_save_ifs"
  20615. done
  20616. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  20617. + : ${lt_cv_path_NM=no}
  20618. fi
  20619. fi
  20620. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  20621. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  20622. $as_echo "$lt_cv_path_NM" >&6; }
  20623. -NM="$lt_cv_path_NM"
  20624. +if test "$lt_cv_path_NM" != "no"; then
  20625. + NM="$lt_cv_path_NM"
  20626. +else
  20627. + # Didn't find any BSD compatible name lister, look for dumpbin.
  20628. + if test -n "$ac_tool_prefix"; then
  20629. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20630. + do
  20631. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20632. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20634. +$as_echo_n "checking for $ac_word... " >&6; }
  20635. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  20636. + $as_echo_n "(cached) " >&6
  20637. +else
  20638. + if test -n "$DUMPBIN"; then
  20639. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  20640. +else
  20641. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20642. +for as_dir in $PATH
  20643. +do
  20644. + IFS=$as_save_IFS
  20645. + test -z "$as_dir" && as_dir=.
  20646. + for ac_exec_ext in '' $ac_executable_extensions; do
  20647. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20648. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  20649. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20650. + break 2
  20651. + fi
  20652. +done
  20653. + done
  20654. +IFS=$as_save_IFS
  20655. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  20656. -$as_echo_n "checking whether ln -s works... " >&6; }
  20657. -LN_S=$as_ln_s
  20658. -if test "$LN_S" = "ln -s"; then
  20659. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  20660. -$as_echo "yes" >&6; }
  20661. +fi
  20662. +fi
  20663. +DUMPBIN=$ac_cv_prog_DUMPBIN
  20664. +if test -n "$DUMPBIN"; then
  20665. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  20666. +$as_echo "$DUMPBIN" >&6; }
  20667. else
  20668. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  20669. -$as_echo "no, using $LN_S" >&6; }
  20670. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20671. +$as_echo "no" >&6; }
  20672. fi
  20673. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  20674. -$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  20675. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  20676. +
  20677. + test -n "$DUMPBIN" && break
  20678. + done
  20679. +fi
  20680. +if test -z "$DUMPBIN"; then
  20681. + ac_ct_DUMPBIN=$DUMPBIN
  20682. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  20683. +do
  20684. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  20685. +set dummy $ac_prog; ac_word=$2
  20686. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20687. +$as_echo_n "checking for $ac_word... " >&6; }
  20688. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  20689. $as_echo_n "(cached) " >&6
  20690. else
  20691. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  20692. -lt_cv_file_magic_test_file=
  20693. -lt_cv_deplibs_check_method='unknown'
  20694. -# Need to set the preceding variable on all platforms that support
  20695. -# interlibrary dependencies.
  20696. -# 'none' -- dependencies not supported.
  20697. -# `unknown' -- same as none, but documents that we really don't know.
  20698. -# 'pass_all' -- all dependencies passed with no checks.
  20699. -# 'test_compile' -- check by making test program.
  20700. -# 'file_magic [[regex]]' -- check by looking for files in library path
  20701. -# which responds to the $file_magic_cmd with a given extended regex.
  20702. -# If you have `file' or equivalent on your system and you're not sure
  20703. -# whether `pass_all' will *always* work, you probably want this one.
  20704. -
  20705. -case $host_os in
  20706. -aix[4-9]*)
  20707. - lt_cv_deplibs_check_method=pass_all
  20708. - ;;
  20709. + if test -n "$ac_ct_DUMPBIN"; then
  20710. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  20711. +else
  20712. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20713. +for as_dir in $PATH
  20714. +do
  20715. + IFS=$as_save_IFS
  20716. + test -z "$as_dir" && as_dir=.
  20717. + for ac_exec_ext in '' $ac_executable_extensions; do
  20718. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20719. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  20720. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20721. + break 2
  20722. + fi
  20723. +done
  20724. + done
  20725. +IFS=$as_save_IFS
  20726. -beos*)
  20727. - lt_cv_deplibs_check_method=pass_all
  20728. - ;;
  20729. +fi
  20730. +fi
  20731. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  20732. +if test -n "$ac_ct_DUMPBIN"; then
  20733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  20734. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  20735. +else
  20736. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20737. +$as_echo "no" >&6; }
  20738. +fi
  20739. -bsdi[45]*)
  20740. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20741. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  20742. - lt_cv_file_magic_test_file=/shlib/libc.so
  20743. - ;;
  20744. -cygwin*)
  20745. - # func_win32_libid is a shell function defined in ltmain.sh
  20746. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20747. - lt_cv_file_magic_cmd='func_win32_libid'
  20748. - ;;
  20749. + test -n "$ac_ct_DUMPBIN" && break
  20750. +done
  20751. -mingw* | pw32*)
  20752. - # Base MSYS/MinGW do not provide the 'file' command needed by
  20753. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  20754. - # unless we find 'file', for example because we are cross-compiling.
  20755. - if ( file / ) >/dev/null 2>&1; then
  20756. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20757. - lt_cv_file_magic_cmd='func_win32_libid'
  20758. + if test "x$ac_ct_DUMPBIN" = x; then
  20759. + DUMPBIN=":"
  20760. else
  20761. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20762. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  20763. + case $cross_compiling:$ac_tool_warned in
  20764. +yes:)
  20765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20766. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20767. +ac_tool_warned=yes ;;
  20768. +esac
  20769. + DUMPBIN=$ac_ct_DUMPBIN
  20770. fi
  20771. - ;;
  20772. +fi
  20773. -darwin* | rhapsody*)
  20774. - lt_cv_deplibs_check_method=pass_all
  20775. - ;;
  20776. -freebsd* | dragonfly*)
  20777. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20778. - case $host_cpu in
  20779. - i*86 )
  20780. - # Not sure whether the presence of OpenBSD here was a mistake.
  20781. - # Let's accept both of them until this is cleared up.
  20782. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20783. - lt_cv_file_magic_cmd=/usr/bin/file
  20784. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20785. - ;;
  20786. - esac
  20787. - else
  20788. - lt_cv_deplibs_check_method=pass_all
  20789. + if test "$DUMPBIN" != ":"; then
  20790. + NM="$DUMPBIN"
  20791. fi
  20792. - ;;
  20793. +fi
  20794. +test -z "$NM" && NM=nm
  20795. -gnu*)
  20796. - lt_cv_deplibs_check_method=pass_all
  20797. - ;;
  20798. -hpux10.20* | hpux11*)
  20799. - lt_cv_file_magic_cmd=/usr/bin/file
  20800. - case $host_cpu in
  20801. - ia64*)
  20802. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20803. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20804. - ;;
  20805. - hppa*64*)
  20806. - 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]'
  20807. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20808. - ;;
  20809. - *)
  20810. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20811. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20812. - ;;
  20813. - esac
  20814. - ;;
  20815. -interix[3-9]*)
  20816. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20817. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20818. - ;;
  20819. -irix5* | irix6* | nonstopux*)
  20820. - case $LD in
  20821. - *-32|*"-32 ") libmagic=32-bit;;
  20822. - *-n32|*"-n32 ") libmagic=N32;;
  20823. - *-64|*"-64 ") libmagic=64-bit;;
  20824. - *) libmagic=never-match;;
  20825. - esac
  20826. - lt_cv_deplibs_check_method=pass_all
  20827. - ;;
  20828. -# This must be Linux ELF.
  20829. -linux* | k*bsd*-gnu)
  20830. - lt_cv_deplibs_check_method=pass_all
  20831. - ;;
  20832. -netbsd*)
  20833. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  20834. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20835. - else
  20836. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20837. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  20838. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  20839. +if test "${lt_cv_nm_interface+set}" = set; then :
  20840. + $as_echo_n "(cached) " >&6
  20841. +else
  20842. + lt_cv_nm_interface="BSD nm"
  20843. + echo "int some_variable = 0;" > conftest.$ac_ext
  20844. + (eval echo "\"\$as_me:4494: $ac_compile\"" >&5)
  20845. + (eval "$ac_compile" 2>conftest.err)
  20846. + cat conftest.err >&5
  20847. + (eval echo "\"\$as_me:4497: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  20848. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  20849. + cat conftest.err >&5
  20850. + (eval echo "\"\$as_me:4500: output\"" >&5)
  20851. + cat conftest.out >&5
  20852. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  20853. + lt_cv_nm_interface="MS dumpbin"
  20854. fi
  20855. - ;;
  20856. + rm -f conftest*
  20857. +fi
  20858. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  20859. +$as_echo "$lt_cv_nm_interface" >&6; }
  20860. -newos6*)
  20861. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20862. - lt_cv_file_magic_cmd=/usr/bin/file
  20863. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20864. - ;;
  20865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  20866. +$as_echo_n "checking whether ln -s works... " >&6; }
  20867. +LN_S=$as_ln_s
  20868. +if test "$LN_S" = "ln -s"; then
  20869. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20870. +$as_echo "yes" >&6; }
  20871. +else
  20872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  20873. +$as_echo "no, using $LN_S" >&6; }
  20874. +fi
  20875. -nto-qnx*)
  20876. - lt_cv_deplibs_check_method=unknown
  20877. - ;;
  20878. +# find the maximum length of command line arguments
  20879. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  20880. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  20881. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  20882. + $as_echo_n "(cached) " >&6
  20883. +else
  20884. + i=0
  20885. + teststring="ABCD"
  20886. -openbsd*)
  20887. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20888. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20889. - else
  20890. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20891. - fi
  20892. - ;;
  20893. + case $build_os in
  20894. + msdosdjgpp*)
  20895. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  20896. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  20897. + # during glob expansion). Even if it were fixed, the result of this
  20898. + # check would be larger than it should be.
  20899. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  20900. + ;;
  20901. -osf3* | osf4* | osf5*)
  20902. - lt_cv_deplibs_check_method=pass_all
  20903. - ;;
  20904. + gnu*)
  20905. + # Under GNU Hurd, this test is not required because there is
  20906. + # no limit to the length of command line arguments.
  20907. + # Libtool will interpret -1 as no limit whatsoever
  20908. + lt_cv_sys_max_cmd_len=-1;
  20909. + ;;
  20910. -rdos*)
  20911. - lt_cv_deplibs_check_method=pass_all
  20912. - ;;
  20913. + cygwin* | mingw* | cegcc*)
  20914. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  20915. + # about 5 minutes as the teststring grows exponentially.
  20916. + # Worse, since 9x/ME are not pre-emptively multitasking,
  20917. + # you end up with a "frozen" computer, even though with patience
  20918. + # the test eventually succeeds (with a max line length of 256k).
  20919. + # Instead, let's just punt: use the minimum linelength reported by
  20920. + # all of the supported platforms: 8192 (on NT/2K/XP).
  20921. + lt_cv_sys_max_cmd_len=8192;
  20922. + ;;
  20923. -solaris*)
  20924. - lt_cv_deplibs_check_method=pass_all
  20925. - ;;
  20926. + amigaos*)
  20927. + # On AmigaOS with pdksh, this test takes hours, literally.
  20928. + # So we just punt and use a minimum line length of 8192.
  20929. + lt_cv_sys_max_cmd_len=8192;
  20930. + ;;
  20931. -sysv4 | sysv4.3*)
  20932. - case $host_vendor in
  20933. - motorola)
  20934. - 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]'
  20935. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20936. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  20937. + # This has been around since 386BSD, at least. Likely further.
  20938. + if test -x /sbin/sysctl; then
  20939. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  20940. + elif test -x /usr/sbin/sysctl; then
  20941. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  20942. + else
  20943. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  20944. + fi
  20945. + # And add a safety zone
  20946. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20947. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20948. ;;
  20949. - ncr)
  20950. - lt_cv_deplibs_check_method=pass_all
  20951. +
  20952. + interix*)
  20953. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  20954. + lt_cv_sys_max_cmd_len=196608
  20955. ;;
  20956. - sequent)
  20957. - lt_cv_file_magic_cmd='/bin/file'
  20958. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20959. +
  20960. + osf*)
  20961. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  20962. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  20963. + # nice to cause kernel panics so lets avoid the loop below.
  20964. + # First set a reasonable default.
  20965. + lt_cv_sys_max_cmd_len=16384
  20966. + #
  20967. + if test -x /sbin/sysconfig; then
  20968. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  20969. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  20970. + esac
  20971. + fi
  20972. ;;
  20973. - sni)
  20974. - lt_cv_file_magic_cmd='/bin/file'
  20975. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20976. - lt_cv_file_magic_test_file=/lib/libc.so
  20977. + sco3.2v5*)
  20978. + lt_cv_sys_max_cmd_len=102400
  20979. ;;
  20980. - siemens)
  20981. - lt_cv_deplibs_check_method=pass_all
  20982. + sysv5* | sco5v6* | sysv4.2uw2*)
  20983. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  20984. + if test -n "$kargmax"; then
  20985. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  20986. + else
  20987. + lt_cv_sys_max_cmd_len=32768
  20988. + fi
  20989. ;;
  20990. - pc)
  20991. - lt_cv_deplibs_check_method=pass_all
  20992. + *)
  20993. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  20994. + if test -n "$lt_cv_sys_max_cmd_len"; then
  20995. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20996. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20997. + else
  20998. + # Make teststring a little bigger before we do anything with it.
  20999. + # a 1K string should be a reasonable start.
  21000. + for i in 1 2 3 4 5 6 7 8 ; do
  21001. + teststring=$teststring$teststring
  21002. + done
  21003. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  21004. + # If test is not a shell built-in, we'll probably end up computing a
  21005. + # maximum length that is only half of the actual maximum length, but
  21006. + # we can't tell.
  21007. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  21008. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  21009. + test $i != 17 # 1/2 MB should be enough
  21010. + do
  21011. + i=`expr $i + 1`
  21012. + teststring=$teststring$teststring
  21013. + done
  21014. + # Only check the string length outside the loop.
  21015. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  21016. + teststring=
  21017. + # Add a significant safety factor because C++ compilers can tack on
  21018. + # massive amounts of additional arguments before passing them to the
  21019. + # linker. It appears as though 1/2 is a usable value.
  21020. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  21021. + fi
  21022. ;;
  21023. esac
  21024. - ;;
  21025. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21026. - lt_cv_deplibs_check_method=pass_all
  21027. - ;;
  21028. -esac
  21029. +fi
  21030. +if test -n $lt_cv_sys_max_cmd_len ; then
  21031. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  21032. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  21033. +else
  21034. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  21035. +$as_echo "none" >&6; }
  21036. fi
  21037. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  21038. -$as_echo "$lt_cv_deplibs_check_method" >&6; }
  21039. -file_magic_cmd=$lt_cv_file_magic_cmd
  21040. -deplibs_check_method=$lt_cv_deplibs_check_method
  21041. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21042. +max_cmd_len=$lt_cv_sys_max_cmd_len
  21043. -# If no C compiler was specified, use CC.
  21044. -LTCC=${LTCC-"$CC"}
  21045. -# If no C compiler flags were specified, use CFLAGS.
  21046. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21047. -# Allow CC to be a program name with arguments.
  21048. -compiler=$CC
  21049. +: ${CP="cp -f"}
  21050. +: ${MV="mv -f"}
  21051. +: ${RM="rm -f"}
  21052. +
  21053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  21054. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  21055. +# Try some XSI features
  21056. +xsi_shell=no
  21057. +( _lt_dummy="a/b/c"
  21058. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  21059. + = c,a/b,, \
  21060. + && eval 'test $(( 1 + 1 )) -eq 2 \
  21061. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  21062. + && xsi_shell=yes
  21063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  21064. +$as_echo "$xsi_shell" >&6; }
  21065. +
  21066. +
  21067. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  21068. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  21069. +lt_shell_append=no
  21070. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  21071. + >/dev/null 2>&1 \
  21072. + && lt_shell_append=yes
  21073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  21074. +$as_echo "$lt_shell_append" >&6; }
  21075. -# Check whether --enable-libtool-lock was given.
  21076. -if test "${enable_libtool_lock+set}" = set; then
  21077. - enableval=$enable_libtool_lock;
  21078. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21079. + lt_unset=unset
  21080. +else
  21081. + lt_unset=false
  21082. fi
  21083. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21084. -# Some flags need to be propagated to the compiler or linker for good
  21085. -# libtool support.
  21086. -case $host in
  21087. -ia64-*-hpux*)
  21088. - # Find out which ABI we are using.
  21089. - echo 'int i;' > conftest.$ac_ext
  21090. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21091. - (eval $ac_compile) 2>&5
  21092. - ac_status=$?
  21093. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21094. - (exit $ac_status); }; then
  21095. - case `/usr/bin/file conftest.$ac_objext` in
  21096. - *ELF-32*)
  21097. - HPUX_IA64_MODE="32"
  21098. - ;;
  21099. - *ELF-64*)
  21100. - HPUX_IA64_MODE="64"
  21101. - ;;
  21102. - esac
  21103. - fi
  21104. - rm -rf conftest*
  21105. +
  21106. +
  21107. +
  21108. +# test EBCDIC or ASCII
  21109. +case `echo X|tr X '\101'` in
  21110. + A) # ASCII based system
  21111. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  21112. + lt_SP2NL='tr \040 \012'
  21113. + lt_NL2SP='tr \015\012 \040\040'
  21114. ;;
  21115. -*-*-irix6*)
  21116. - # Find out which ABI we are using.
  21117. - echo '#line 4545 "configure"' > conftest.$ac_ext
  21118. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21119. - (eval $ac_compile) 2>&5
  21120. - ac_status=$?
  21121. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21122. - (exit $ac_status); }; then
  21123. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21124. - case `/usr/bin/file conftest.$ac_objext` in
  21125. - *32-bit*)
  21126. - LD="${LD-ld} -melf32bsmip"
  21127. - ;;
  21128. - *N32*)
  21129. - LD="${LD-ld} -melf32bmipn32"
  21130. - ;;
  21131. - *64-bit*)
  21132. - LD="${LD-ld} -melf64bmip"
  21133. - ;;
  21134. - esac
  21135. - else
  21136. - case `/usr/bin/file conftest.$ac_objext` in
  21137. - *32-bit*)
  21138. - LD="${LD-ld} -32"
  21139. - ;;
  21140. - *N32*)
  21141. - LD="${LD-ld} -n32"
  21142. - ;;
  21143. - *64-bit*)
  21144. - LD="${LD-ld} -64"
  21145. - ;;
  21146. - esac
  21147. - fi
  21148. - fi
  21149. - rm -rf conftest*
  21150. + *) # EBCDIC based system
  21151. + lt_SP2NL='tr \100 \n'
  21152. + lt_NL2SP='tr \r\n \100\100'
  21153. ;;
  21154. +esac
  21155. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  21156. -s390*-*linux*|sparc*-*linux*)
  21157. - # Find out which ABI we are using.
  21158. - echo 'int i;' > conftest.$ac_ext
  21159. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21160. - (eval $ac_compile) 2>&5
  21161. - ac_status=$?
  21162. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21163. - (exit $ac_status); }; then
  21164. - case `/usr/bin/file conftest.o` in
  21165. - *32-bit*)
  21166. - case $host in
  21167. - x86_64-*kfreebsd*-gnu)
  21168. - LD="${LD-ld} -m elf_i386_fbsd"
  21169. - ;;
  21170. - x86_64-*linux*)
  21171. - LD="${LD-ld} -m elf_i386"
  21172. - ;;
  21173. - ppc64-*linux*|powerpc64-*linux*)
  21174. - LD="${LD-ld} -m elf32ppclinux"
  21175. - ;;
  21176. - s390x-*linux*)
  21177. - LD="${LD-ld} -m elf_s390"
  21178. - ;;
  21179. - sparc64-*linux*)
  21180. - LD="${LD-ld} -m elf32_sparc"
  21181. - ;;
  21182. - esac
  21183. - ;;
  21184. - *64-bit*)
  21185. - case $host in
  21186. - x86_64-*kfreebsd*-gnu)
  21187. - LD="${LD-ld} -m elf_x86_64_fbsd"
  21188. - ;;
  21189. - x86_64-*linux*)
  21190. - LD="${LD-ld} -m elf_x86_64"
  21191. - ;;
  21192. - ppc*-*linux*|powerpc*-*linux*)
  21193. - LD="${LD-ld} -m elf64ppc"
  21194. - ;;
  21195. - s390*-*linux*)
  21196. - LD="${LD-ld} -m elf64_s390"
  21197. - ;;
  21198. - sparc*-*linux*)
  21199. - LD="${LD-ld} -m elf64_sparc"
  21200. - ;;
  21201. - esac
  21202. - ;;
  21203. - esac
  21204. - fi
  21205. - rm -rf conftest*
  21206. - ;;
  21207. -*-*-sco3.2v5*)
  21208. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  21209. - SAVE_CFLAGS="$CFLAGS"
  21210. - CFLAGS="$CFLAGS -belf"
  21211. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  21212. -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  21213. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  21214. - $as_echo_n "(cached) " >&6
  21215. -else
  21216. - ac_ext=c
  21217. -ac_cpp='$CPP $CPPFLAGS'
  21218. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21219. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21220. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21221. - cat >conftest.$ac_ext <<_ACEOF
  21222. -/* confdefs.h. */
  21223. -_ACEOF
  21224. -cat confdefs.h >>conftest.$ac_ext
  21225. -cat >>conftest.$ac_ext <<_ACEOF
  21226. -/* end confdefs.h. */
  21227. -int
  21228. -main ()
  21229. -{
  21230. - ;
  21231. - return 0;
  21232. -}
  21233. -_ACEOF
  21234. -rm -f conftest.$ac_objext conftest$ac_exeext
  21235. -if { (ac_try="$ac_link"
  21236. -case "(($ac_try" in
  21237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21238. - *) ac_try_echo=$ac_try;;
  21239. -esac
  21240. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21241. -$as_echo "$ac_try_echo") >&5
  21242. - (eval "$ac_link") 2>conftest.er1
  21243. - ac_status=$?
  21244. - grep -v '^ *+' conftest.er1 >conftest.err
  21245. - rm -f conftest.er1
  21246. - cat conftest.err >&5
  21247. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21248. - (exit $ac_status); } && {
  21249. - test -z "$ac_c_werror_flag" ||
  21250. - test ! -s conftest.err
  21251. - } && test -s conftest$ac_exeext && {
  21252. - test "$cross_compiling" = yes ||
  21253. - $as_test_x conftest$ac_exeext
  21254. - }; then
  21255. - lt_cv_cc_needs_belf=yes
  21256. -else
  21257. - $as_echo "$as_me: failed program was:" >&5
  21258. -sed 's/^/| /' conftest.$ac_ext >&5
  21259. - lt_cv_cc_needs_belf=no
  21260. -fi
  21261. -rm -rf conftest.dSYM
  21262. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21263. - conftest$ac_exeext conftest.$ac_ext
  21264. - ac_ext=c
  21265. -ac_cpp='$CPP $CPPFLAGS'
  21266. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21267. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21268. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21269. +
  21270. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  21271. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  21272. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  21273. + $as_echo_n "(cached) " >&6
  21274. +else
  21275. + lt_cv_ld_reload_flag='-r'
  21276. fi
  21277. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21278. -$as_echo "$lt_cv_cc_needs_belf" >&6; }
  21279. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21280. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21281. - CFLAGS="$SAVE_CFLAGS"
  21282. - fi
  21283. - ;;
  21284. -sparc*-*solaris*)
  21285. - # Find out which ABI we are using.
  21286. - echo 'int i;' > conftest.$ac_ext
  21287. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21288. - (eval $ac_compile) 2>&5
  21289. - ac_status=$?
  21290. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21291. - (exit $ac_status); }; then
  21292. - case `/usr/bin/file conftest.o` in
  21293. - *64-bit*)
  21294. - case $lt_cv_prog_gnu_ld in
  21295. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  21296. - *)
  21297. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  21298. - LD="${LD-ld} -64"
  21299. - fi
  21300. - ;;
  21301. - esac
  21302. - ;;
  21303. - esac
  21304. - fi
  21305. - rm -rf conftest*
  21306. - ;;
  21307. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  21308. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  21309. +reload_flag=$lt_cv_ld_reload_flag
  21310. +case $reload_flag in
  21311. +"" | " "*) ;;
  21312. +*) reload_flag=" $reload_flag" ;;
  21313. +esac
  21314. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21315. +case $host_os in
  21316. + darwin*)
  21317. + if test "$GCC" = yes; then
  21318. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  21319. + else
  21320. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21321. + fi
  21322. + ;;
  21323. +esac
  21324. -esac
  21325. -need_locks="$enable_libtool_lock"
  21326. -ac_ext=c
  21327. -ac_cpp='$CPP $CPPFLAGS'
  21328. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21329. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21330. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21331. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  21332. -$as_echo_n "checking how to run the C preprocessor... " >&6; }
  21333. -# On Suns, sometimes $CPP names a directory.
  21334. -if test -n "$CPP" && test -d "$CPP"; then
  21335. - CPP=
  21336. -fi
  21337. -if test -z "$CPP"; then
  21338. - if test "${ac_cv_prog_CPP+set}" = set; then
  21339. +
  21340. +
  21341. +
  21342. +
  21343. +if test -n "$ac_tool_prefix"; then
  21344. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  21345. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  21346. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21347. +$as_echo_n "checking for $ac_word... " >&6; }
  21348. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  21349. $as_echo_n "(cached) " >&6
  21350. else
  21351. - # Double quotes because CPP needs to be expanded
  21352. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21353. - do
  21354. - ac_preproc_ok=false
  21355. -for ac_c_preproc_warn_flag in '' yes
  21356. -do
  21357. - # Use a header file that comes with gcc, so configuring glibc
  21358. - # with a fresh cross-compiler works.
  21359. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21360. - # <limits.h> exists even on freestanding compilers.
  21361. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21362. - # not just through cpp. "Syntax error" is here to catch this case.
  21363. - cat >conftest.$ac_ext <<_ACEOF
  21364. -/* confdefs.h. */
  21365. -_ACEOF
  21366. -cat confdefs.h >>conftest.$ac_ext
  21367. -cat >>conftest.$ac_ext <<_ACEOF
  21368. -/* end confdefs.h. */
  21369. -#ifdef __STDC__
  21370. -# include <limits.h>
  21371. -#else
  21372. -# include <assert.h>
  21373. -#endif
  21374. - Syntax error
  21375. -_ACEOF
  21376. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21377. -case "(($ac_try" in
  21378. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21379. - *) ac_try_echo=$ac_try;;
  21380. -esac
  21381. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21382. -$as_echo "$ac_try_echo") >&5
  21383. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21384. - ac_status=$?
  21385. - grep -v '^ *+' conftest.er1 >conftest.err
  21386. - rm -f conftest.er1
  21387. - cat conftest.err >&5
  21388. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21389. - (exit $ac_status); } >/dev/null && {
  21390. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21391. - test ! -s conftest.err
  21392. - }; then
  21393. - :
  21394. + if test -n "$OBJDUMP"; then
  21395. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  21396. else
  21397. - $as_echo "$as_me: failed program was:" >&5
  21398. -sed 's/^/| /' conftest.$ac_ext >&5
  21399. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21400. +for as_dir in $PATH
  21401. +do
  21402. + IFS=$as_save_IFS
  21403. + test -z "$as_dir" && as_dir=.
  21404. + for ac_exec_ext in '' $ac_executable_extensions; do
  21405. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21406. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  21407. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21408. + break 2
  21409. + fi
  21410. +done
  21411. + done
  21412. +IFS=$as_save_IFS
  21413. - # Broken: fails on valid input.
  21414. -continue
  21415. fi
  21416. -
  21417. -rm -f conftest.err conftest.$ac_ext
  21418. -
  21419. - # OK, works on sane cases. Now check whether nonexistent headers
  21420. - # can be detected and how.
  21421. - cat >conftest.$ac_ext <<_ACEOF
  21422. -/* confdefs.h. */
  21423. -_ACEOF
  21424. -cat confdefs.h >>conftest.$ac_ext
  21425. -cat >>conftest.$ac_ext <<_ACEOF
  21426. -/* end confdefs.h. */
  21427. -#include <ac_nonexistent.h>
  21428. -_ACEOF
  21429. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21430. -case "(($ac_try" in
  21431. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21432. - *) ac_try_echo=$ac_try;;
  21433. -esac
  21434. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21435. -$as_echo "$ac_try_echo") >&5
  21436. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21437. - ac_status=$?
  21438. - grep -v '^ *+' conftest.er1 >conftest.err
  21439. - rm -f conftest.er1
  21440. - cat conftest.err >&5
  21441. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21442. - (exit $ac_status); } >/dev/null && {
  21443. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21444. - test ! -s conftest.err
  21445. - }; then
  21446. - # Broken: success on invalid input.
  21447. -continue
  21448. +fi
  21449. +OBJDUMP=$ac_cv_prog_OBJDUMP
  21450. +if test -n "$OBJDUMP"; then
  21451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  21452. +$as_echo "$OBJDUMP" >&6; }
  21453. else
  21454. - $as_echo "$as_me: failed program was:" >&5
  21455. -sed 's/^/| /' conftest.$ac_ext >&5
  21456. -
  21457. - # Passes both tests.
  21458. -ac_preproc_ok=:
  21459. -break
  21460. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21461. +$as_echo "no" >&6; }
  21462. fi
  21463. -rm -f conftest.err conftest.$ac_ext
  21464. -done
  21465. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21466. -rm -f conftest.err conftest.$ac_ext
  21467. -if $ac_preproc_ok; then
  21468. - break
  21469. fi
  21470. -
  21471. - done
  21472. - ac_cv_prog_CPP=$CPP
  21473. +if test -z "$ac_cv_prog_OBJDUMP"; then
  21474. + ac_ct_OBJDUMP=$OBJDUMP
  21475. + # Extract the first word of "objdump", so it can be a program name with args.
  21476. +set dummy objdump; ac_word=$2
  21477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21478. +$as_echo_n "checking for $ac_word... " >&6; }
  21479. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  21480. + $as_echo_n "(cached) " >&6
  21481. +else
  21482. + if test -n "$ac_ct_OBJDUMP"; then
  21483. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  21484. +else
  21485. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21486. +for as_dir in $PATH
  21487. +do
  21488. + IFS=$as_save_IFS
  21489. + test -z "$as_dir" && as_dir=.
  21490. + for ac_exec_ext in '' $ac_executable_extensions; do
  21491. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21492. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  21493. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21494. + break 2
  21495. + fi
  21496. +done
  21497. + done
  21498. +IFS=$as_save_IFS
  21499. fi
  21500. - CPP=$ac_cv_prog_CPP
  21501. -else
  21502. - ac_cv_prog_CPP=$CPP
  21503. fi
  21504. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  21505. -$as_echo "$CPP" >&6; }
  21506. -ac_preproc_ok=false
  21507. -for ac_c_preproc_warn_flag in '' yes
  21508. -do
  21509. - # Use a header file that comes with gcc, so configuring glibc
  21510. - # with a fresh cross-compiler works.
  21511. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21512. - # <limits.h> exists even on freestanding compilers.
  21513. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21514. - # not just through cpp. "Syntax error" is here to catch this case.
  21515. - cat >conftest.$ac_ext <<_ACEOF
  21516. -/* confdefs.h. */
  21517. -_ACEOF
  21518. -cat confdefs.h >>conftest.$ac_ext
  21519. -cat >>conftest.$ac_ext <<_ACEOF
  21520. -/* end confdefs.h. */
  21521. -#ifdef __STDC__
  21522. -# include <limits.h>
  21523. -#else
  21524. -# include <assert.h>
  21525. -#endif
  21526. - Syntax error
  21527. -_ACEOF
  21528. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21529. -case "(($ac_try" in
  21530. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21531. - *) ac_try_echo=$ac_try;;
  21532. -esac
  21533. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21534. -$as_echo "$ac_try_echo") >&5
  21535. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21536. - ac_status=$?
  21537. - grep -v '^ *+' conftest.er1 >conftest.err
  21538. - rm -f conftest.er1
  21539. - cat conftest.err >&5
  21540. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21541. - (exit $ac_status); } >/dev/null && {
  21542. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21543. - test ! -s conftest.err
  21544. - }; then
  21545. - :
  21546. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  21547. +if test -n "$ac_ct_OBJDUMP"; then
  21548. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  21549. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  21550. else
  21551. - $as_echo "$as_me: failed program was:" >&5
  21552. -sed 's/^/| /' conftest.$ac_ext >&5
  21553. -
  21554. - # Broken: fails on valid input.
  21555. -continue
  21556. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21557. +$as_echo "no" >&6; }
  21558. fi
  21559. -rm -f conftest.err conftest.$ac_ext
  21560. -
  21561. - # OK, works on sane cases. Now check whether nonexistent headers
  21562. - # can be detected and how.
  21563. - cat >conftest.$ac_ext <<_ACEOF
  21564. -/* confdefs.h. */
  21565. -_ACEOF
  21566. -cat confdefs.h >>conftest.$ac_ext
  21567. -cat >>conftest.$ac_ext <<_ACEOF
  21568. -/* end confdefs.h. */
  21569. -#include <ac_nonexistent.h>
  21570. -_ACEOF
  21571. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21572. -case "(($ac_try" in
  21573. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21574. - *) ac_try_echo=$ac_try;;
  21575. + if test "x$ac_ct_OBJDUMP" = x; then
  21576. + OBJDUMP="false"
  21577. + else
  21578. + case $cross_compiling:$ac_tool_warned in
  21579. +yes:)
  21580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21581. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21582. +ac_tool_warned=yes ;;
  21583. esac
  21584. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21585. -$as_echo "$ac_try_echo") >&5
  21586. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21587. - ac_status=$?
  21588. - grep -v '^ *+' conftest.er1 >conftest.err
  21589. - rm -f conftest.er1
  21590. - cat conftest.err >&5
  21591. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21592. - (exit $ac_status); } >/dev/null && {
  21593. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21594. - test ! -s conftest.err
  21595. - }; then
  21596. - # Broken: success on invalid input.
  21597. -continue
  21598. + OBJDUMP=$ac_ct_OBJDUMP
  21599. + fi
  21600. else
  21601. - $as_echo "$as_me: failed program was:" >&5
  21602. -sed 's/^/| /' conftest.$ac_ext >&5
  21603. -
  21604. - # Passes both tests.
  21605. -ac_preproc_ok=:
  21606. -break
  21607. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  21608. fi
  21609. -rm -f conftest.err conftest.$ac_ext
  21610. -
  21611. -done
  21612. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21613. -rm -f conftest.err conftest.$ac_ext
  21614. -if $ac_preproc_ok; then
  21615. - :
  21616. -else
  21617. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21618. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21619. -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  21620. -See \`config.log' for more details." >&5
  21621. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  21622. -See \`config.log' for more details." >&2;}
  21623. - { (exit 1); exit 1; }; }; }
  21624. -fi
  21625. +test -z "$OBJDUMP" && OBJDUMP=objdump
  21626. -ac_ext=c
  21627. -ac_cpp='$CPP $CPPFLAGS'
  21628. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21629. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21630. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21631. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  21632. -$as_echo_n "checking for ANSI C header files... " >&6; }
  21633. -if test "${ac_cv_header_stdc+set}" = set; then
  21634. - $as_echo_n "(cached) " >&6
  21635. -else
  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 <stdlib.h>
  21643. -#include <stdarg.h>
  21644. -#include <string.h>
  21645. -#include <float.h>
  21646. -int
  21647. -main ()
  21648. -{
  21649. - ;
  21650. - return 0;
  21651. -}
  21652. -_ACEOF
  21653. -rm -f conftest.$ac_objext
  21654. -if { (ac_try="$ac_compile"
  21655. -case "(($ac_try" in
  21656. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21657. - *) ac_try_echo=$ac_try;;
  21658. -esac
  21659. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21660. -$as_echo "$ac_try_echo") >&5
  21661. - (eval "$ac_compile") 2>conftest.er1
  21662. - ac_status=$?
  21663. - grep -v '^ *+' conftest.er1 >conftest.err
  21664. - rm -f conftest.er1
  21665. - cat conftest.err >&5
  21666. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21667. - (exit $ac_status); } && {
  21668. - test -z "$ac_c_werror_flag" ||
  21669. - test ! -s conftest.err
  21670. - } && test -s conftest.$ac_objext; then
  21671. - ac_cv_header_stdc=yes
  21672. -else
  21673. - $as_echo "$as_me: failed program was:" >&5
  21674. -sed 's/^/| /' conftest.$ac_ext >&5
  21675. - ac_cv_header_stdc=no
  21676. -fi
  21677. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21678. -if test $ac_cv_header_stdc = yes; then
  21679. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21680. - cat >conftest.$ac_ext <<_ACEOF
  21681. -/* confdefs.h. */
  21682. -_ACEOF
  21683. -cat confdefs.h >>conftest.$ac_ext
  21684. -cat >>conftest.$ac_ext <<_ACEOF
  21685. -/* end confdefs.h. */
  21686. -#include <string.h>
  21687. -_ACEOF
  21688. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21689. - $EGREP "memchr" >/dev/null 2>&1; then
  21690. - :
  21691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  21692. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  21693. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  21694. + $as_echo_n "(cached) " >&6
  21695. else
  21696. - ac_cv_header_stdc=no
  21697. -fi
  21698. -rm -f conftest*
  21699. -
  21700. -fi
  21701. -
  21702. -if test $ac_cv_header_stdc = yes; then
  21703. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21704. - cat >conftest.$ac_ext <<_ACEOF
  21705. -/* confdefs.h. */
  21706. -_ACEOF
  21707. -cat confdefs.h >>conftest.$ac_ext
  21708. -cat >>conftest.$ac_ext <<_ACEOF
  21709. -/* end confdefs.h. */
  21710. -#include <stdlib.h>
  21711. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  21712. +lt_cv_file_magic_test_file=
  21713. +lt_cv_deplibs_check_method='unknown'
  21714. +# Need to set the preceding variable on all platforms that support
  21715. +# interlibrary dependencies.
  21716. +# 'none' -- dependencies not supported.
  21717. +# `unknown' -- same as none, but documents that we really don't know.
  21718. +# 'pass_all' -- all dependencies passed with no checks.
  21719. +# 'test_compile' -- check by making test program.
  21720. +# 'file_magic [[regex]]' -- check by looking for files in library path
  21721. +# which responds to the $file_magic_cmd with a given extended regex.
  21722. +# If you have `file' or equivalent on your system and you're not sure
  21723. +# whether `pass_all' will *always* work, you probably want this one.
  21724. -_ACEOF
  21725. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21726. - $EGREP "free" >/dev/null 2>&1; then
  21727. - :
  21728. -else
  21729. - ac_cv_header_stdc=no
  21730. -fi
  21731. -rm -f conftest*
  21732. +case $host_os in
  21733. +aix[4-9]*)
  21734. + lt_cv_deplibs_check_method=pass_all
  21735. + ;;
  21736. -fi
  21737. +beos*)
  21738. + lt_cv_deplibs_check_method=pass_all
  21739. + ;;
  21740. -if test $ac_cv_header_stdc = yes; then
  21741. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21742. - if test "$cross_compiling" = yes; then
  21743. - :
  21744. -else
  21745. - cat >conftest.$ac_ext <<_ACEOF
  21746. -/* confdefs.h. */
  21747. -_ACEOF
  21748. -cat confdefs.h >>conftest.$ac_ext
  21749. -cat >>conftest.$ac_ext <<_ACEOF
  21750. -/* end confdefs.h. */
  21751. -#include <ctype.h>
  21752. -#include <stdlib.h>
  21753. -#if ((' ' & 0x0FF) == 0x020)
  21754. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21755. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21756. -#else
  21757. -# define ISLOWER(c) \
  21758. - (('a' <= (c) && (c) <= 'i') \
  21759. - || ('j' <= (c) && (c) <= 'r') \
  21760. - || ('s' <= (c) && (c) <= 'z'))
  21761. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21762. -#endif
  21763. +bsdi[45]*)
  21764. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21765. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  21766. + lt_cv_file_magic_test_file=/shlib/libc.so
  21767. + ;;
  21768. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21769. -int
  21770. -main ()
  21771. -{
  21772. - int i;
  21773. - for (i = 0; i < 256; i++)
  21774. - if (XOR (islower (i), ISLOWER (i))
  21775. - || toupper (i) != TOUPPER (i))
  21776. - return 2;
  21777. - return 0;
  21778. -}
  21779. -_ACEOF
  21780. -rm -f conftest$ac_exeext
  21781. -if { (ac_try="$ac_link"
  21782. -case "(($ac_try" in
  21783. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21784. - *) ac_try_echo=$ac_try;;
  21785. -esac
  21786. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21787. -$as_echo "$ac_try_echo") >&5
  21788. - (eval "$ac_link") 2>&5
  21789. - ac_status=$?
  21790. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21791. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21792. - { (case "(($ac_try" in
  21793. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21794. - *) ac_try_echo=$ac_try;;
  21795. -esac
  21796. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21797. -$as_echo "$ac_try_echo") >&5
  21798. - (eval "$ac_try") 2>&5
  21799. - ac_status=$?
  21800. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21801. - (exit $ac_status); }; }; then
  21802. - :
  21803. -else
  21804. - $as_echo "$as_me: program exited with status $ac_status" >&5
  21805. -$as_echo "$as_me: failed program was:" >&5
  21806. -sed 's/^/| /' conftest.$ac_ext >&5
  21807. +cygwin*)
  21808. + # func_win32_libid is a shell function defined in ltmain.sh
  21809. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21810. + lt_cv_file_magic_cmd='func_win32_libid'
  21811. + ;;
  21812. -( exit $ac_status )
  21813. -ac_cv_header_stdc=no
  21814. -fi
  21815. -rm -rf conftest.dSYM
  21816. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21817. -fi
  21818. +mingw* | pw32*)
  21819. + # Base MSYS/MinGW do not provide the 'file' command needed by
  21820. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  21821. + # unless we find 'file', for example because we are cross-compiling.
  21822. + if ( file / ) >/dev/null 2>&1; then
  21823. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21824. + lt_cv_file_magic_cmd='func_win32_libid'
  21825. + else
  21826. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21827. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21828. + fi
  21829. + ;;
  21830. +cegcc)
  21831. + # use the weaker test based on 'objdump'. See mingw*.
  21832. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  21833. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  21834. + ;;
  21835. -fi
  21836. -fi
  21837. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  21838. -$as_echo "$ac_cv_header_stdc" >&6; }
  21839. -if test $ac_cv_header_stdc = yes; then
  21840. +darwin* | rhapsody*)
  21841. + lt_cv_deplibs_check_method=pass_all
  21842. + ;;
  21843. -cat >>confdefs.h <<\_ACEOF
  21844. -#define STDC_HEADERS 1
  21845. -_ACEOF
  21846. +freebsd* | dragonfly*)
  21847. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21848. + case $host_cpu in
  21849. + i*86 )
  21850. + # Not sure whether the presence of OpenBSD here was a mistake.
  21851. + # Let's accept both of them until this is cleared up.
  21852. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21853. + lt_cv_file_magic_cmd=/usr/bin/file
  21854. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21855. + ;;
  21856. + esac
  21857. + else
  21858. + lt_cv_deplibs_check_method=pass_all
  21859. + fi
  21860. + ;;
  21861. -fi
  21862. +gnu*)
  21863. + lt_cv_deplibs_check_method=pass_all
  21864. + ;;
  21865. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21866. +hpux10.20* | hpux11*)
  21867. + lt_cv_file_magic_cmd=/usr/bin/file
  21868. + case $host_cpu in
  21869. + ia64*)
  21870. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21871. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21872. + ;;
  21873. + hppa*64*)
  21874. + 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]'
  21875. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21876. + ;;
  21877. + *)
  21878. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21879. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21880. + ;;
  21881. + esac
  21882. + ;;
  21883. +interix[3-9]*)
  21884. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  21885. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  21886. + ;;
  21887. +irix5* | irix6* | nonstopux*)
  21888. + case $LD in
  21889. + *-32|*"-32 ") libmagic=32-bit;;
  21890. + *-n32|*"-n32 ") libmagic=N32;;
  21891. + *-64|*"-64 ") libmagic=64-bit;;
  21892. + *) libmagic=never-match;;
  21893. + esac
  21894. + lt_cv_deplibs_check_method=pass_all
  21895. + ;;
  21896. +# This must be Linux ELF.
  21897. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21898. + lt_cv_deplibs_check_method=pass_all
  21899. + ;;
  21900. +netbsd* | netbsdelf*-gnu)
  21901. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  21902. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21903. + else
  21904. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21905. + fi
  21906. + ;;
  21907. +newos6*)
  21908. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21909. + lt_cv_file_magic_cmd=/usr/bin/file
  21910. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21911. + ;;
  21912. +*nto* | *qnx*)
  21913. + lt_cv_deplibs_check_method=pass_all
  21914. + ;;
  21915. +openbsd*)
  21916. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21917. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21918. + else
  21919. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21920. + fi
  21921. + ;;
  21922. +osf3* | osf4* | osf5*)
  21923. + lt_cv_deplibs_check_method=pass_all
  21924. + ;;
  21925. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21926. - inttypes.h stdint.h unistd.h
  21927. -do
  21928. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21929. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21930. -$as_echo_n "checking for $ac_header... " >&6; }
  21931. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21932. - $as_echo_n "(cached) " >&6
  21933. -else
  21934. - cat >conftest.$ac_ext <<_ACEOF
  21935. -/* confdefs.h. */
  21936. -_ACEOF
  21937. -cat confdefs.h >>conftest.$ac_ext
  21938. -cat >>conftest.$ac_ext <<_ACEOF
  21939. -/* end confdefs.h. */
  21940. -$ac_includes_default
  21941. +rdos*)
  21942. + lt_cv_deplibs_check_method=pass_all
  21943. + ;;
  21944. -#include <$ac_header>
  21945. -_ACEOF
  21946. -rm -f conftest.$ac_objext
  21947. -if { (ac_try="$ac_compile"
  21948. -case "(($ac_try" in
  21949. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21950. - *) ac_try_echo=$ac_try;;
  21951. +solaris*)
  21952. + lt_cv_deplibs_check_method=pass_all
  21953. + ;;
  21954. +
  21955. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21956. + lt_cv_deplibs_check_method=pass_all
  21957. + ;;
  21958. +
  21959. +sysv4 | sysv4.3*)
  21960. + case $host_vendor in
  21961. + motorola)
  21962. + 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]'
  21963. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21964. + ;;
  21965. + ncr)
  21966. + lt_cv_deplibs_check_method=pass_all
  21967. + ;;
  21968. + sequent)
  21969. + lt_cv_file_magic_cmd='/bin/file'
  21970. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21971. + ;;
  21972. + sni)
  21973. + lt_cv_file_magic_cmd='/bin/file'
  21974. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21975. + lt_cv_file_magic_test_file=/lib/libc.so
  21976. + ;;
  21977. + siemens)
  21978. + lt_cv_deplibs_check_method=pass_all
  21979. + ;;
  21980. + pc)
  21981. + lt_cv_deplibs_check_method=pass_all
  21982. + ;;
  21983. + esac
  21984. + ;;
  21985. +
  21986. +tpf*)
  21987. + lt_cv_deplibs_check_method=pass_all
  21988. + ;;
  21989. esac
  21990. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21991. -$as_echo "$ac_try_echo") >&5
  21992. - (eval "$ac_compile") 2>conftest.er1
  21993. - ac_status=$?
  21994. - grep -v '^ *+' conftest.er1 >conftest.err
  21995. - rm -f conftest.er1
  21996. - cat conftest.err >&5
  21997. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21998. - (exit $ac_status); } && {
  21999. - test -z "$ac_c_werror_flag" ||
  22000. - test ! -s conftest.err
  22001. - } && test -s conftest.$ac_objext; then
  22002. - eval "$as_ac_Header=yes"
  22003. -else
  22004. - $as_echo "$as_me: failed program was:" >&5
  22005. -sed 's/^/| /' conftest.$ac_ext >&5
  22006. - eval "$as_ac_Header=no"
  22007. fi
  22008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22009. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22010. +file_magic_cmd=$lt_cv_file_magic_cmd
  22011. +deplibs_check_method=$lt_cv_deplibs_check_method
  22012. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22013. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22014. -fi
  22015. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  22016. - $as_echo "$as_val"'`
  22017. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22018. -$as_echo "$ac_res" >&6; }
  22019. -as_val=`eval 'as_val=${'$as_ac_Header'}
  22020. - $as_echo "$as_val"'`
  22021. - if test "x$as_val" = x""yes; then
  22022. - cat >>confdefs.h <<_ACEOF
  22023. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22024. -_ACEOF
  22025. -fi
  22026. -done
  22027. -for ac_header in dlfcn.h
  22028. -do
  22029. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22030. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22031. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22032. -$as_echo_n "checking for $ac_header... " >&6; }
  22033. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22034. +
  22035. +
  22036. +
  22037. +
  22038. +
  22039. +
  22040. +if test -n "$ac_tool_prefix"; then
  22041. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22042. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22043. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22044. +$as_echo_n "checking for $ac_word... " >&6; }
  22045. +if test "${ac_cv_prog_AR+set}" = set; then :
  22046. $as_echo_n "(cached) " >&6
  22047. -fi
  22048. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  22049. - $as_echo "$as_val"'`
  22050. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22051. -$as_echo "$ac_res" >&6; }
  22052. else
  22053. - # Is the header compilable?
  22054. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22055. -$as_echo_n "checking $ac_header usability... " >&6; }
  22056. -cat >conftest.$ac_ext <<_ACEOF
  22057. -/* confdefs.h. */
  22058. -_ACEOF
  22059. -cat confdefs.h >>conftest.$ac_ext
  22060. -cat >>conftest.$ac_ext <<_ACEOF
  22061. -/* end confdefs.h. */
  22062. -$ac_includes_default
  22063. -#include <$ac_header>
  22064. -_ACEOF
  22065. -rm -f conftest.$ac_objext
  22066. -if { (ac_try="$ac_compile"
  22067. -case "(($ac_try" in
  22068. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22069. - *) ac_try_echo=$ac_try;;
  22070. -esac
  22071. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22072. -$as_echo "$ac_try_echo") >&5
  22073. - (eval "$ac_compile") 2>conftest.er1
  22074. - ac_status=$?
  22075. - grep -v '^ *+' conftest.er1 >conftest.err
  22076. - rm -f conftest.er1
  22077. - cat conftest.err >&5
  22078. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22079. - (exit $ac_status); } && {
  22080. - test -z "$ac_c_werror_flag" ||
  22081. - test ! -s conftest.err
  22082. - } && test -s conftest.$ac_objext; then
  22083. - ac_header_compiler=yes
  22084. + if test -n "$AR"; then
  22085. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22086. else
  22087. - $as_echo "$as_me: failed program was:" >&5
  22088. -sed 's/^/| /' conftest.$ac_ext >&5
  22089. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22090. +for as_dir in $PATH
  22091. +do
  22092. + IFS=$as_save_IFS
  22093. + test -z "$as_dir" && as_dir=.
  22094. + for ac_exec_ext in '' $ac_executable_extensions; do
  22095. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22096. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22097. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22098. + break 2
  22099. + fi
  22100. +done
  22101. + done
  22102. +IFS=$as_save_IFS
  22103. - ac_header_compiler=no
  22104. +fi
  22105. +fi
  22106. +AR=$ac_cv_prog_AR
  22107. +if test -n "$AR"; then
  22108. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22109. +$as_echo "$AR" >&6; }
  22110. +else
  22111. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22112. +$as_echo "no" >&6; }
  22113. fi
  22114. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22115. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22116. -$as_echo "$ac_header_compiler" >&6; }
  22117. -# Is the header present?
  22118. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22119. -$as_echo_n "checking $ac_header presence... " >&6; }
  22120. -cat >conftest.$ac_ext <<_ACEOF
  22121. -/* confdefs.h. */
  22122. -_ACEOF
  22123. -cat confdefs.h >>conftest.$ac_ext
  22124. -cat >>conftest.$ac_ext <<_ACEOF
  22125. -/* end confdefs.h. */
  22126. -#include <$ac_header>
  22127. -_ACEOF
  22128. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22129. -case "(($ac_try" in
  22130. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22131. - *) ac_try_echo=$ac_try;;
  22132. -esac
  22133. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22134. -$as_echo "$ac_try_echo") >&5
  22135. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22136. - ac_status=$?
  22137. - grep -v '^ *+' conftest.er1 >conftest.err
  22138. - rm -f conftest.er1
  22139. - cat conftest.err >&5
  22140. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22141. - (exit $ac_status); } >/dev/null && {
  22142. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22143. - test ! -s conftest.err
  22144. - }; then
  22145. - ac_header_preproc=yes
  22146. +fi
  22147. +if test -z "$ac_cv_prog_AR"; then
  22148. + ac_ct_AR=$AR
  22149. + # Extract the first word of "ar", so it can be a program name with args.
  22150. +set dummy ar; ac_word=$2
  22151. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22152. +$as_echo_n "checking for $ac_word... " >&6; }
  22153. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22154. + $as_echo_n "(cached) " >&6
  22155. else
  22156. - $as_echo "$as_me: failed program was:" >&5
  22157. -sed 's/^/| /' conftest.$ac_ext >&5
  22158. + if test -n "$ac_ct_AR"; then
  22159. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22160. +else
  22161. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22162. +for as_dir in $PATH
  22163. +do
  22164. + IFS=$as_save_IFS
  22165. + test -z "$as_dir" && as_dir=.
  22166. + for ac_exec_ext in '' $ac_executable_extensions; do
  22167. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22168. + ac_cv_prog_ac_ct_AR="ar"
  22169. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22170. + break 2
  22171. + fi
  22172. +done
  22173. + done
  22174. +IFS=$as_save_IFS
  22175. - ac_header_preproc=no
  22176. +fi
  22177. +fi
  22178. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22179. +if test -n "$ac_ct_AR"; then
  22180. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22181. +$as_echo "$ac_ct_AR" >&6; }
  22182. +else
  22183. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22184. +$as_echo "no" >&6; }
  22185. fi
  22186. -rm -f conftest.err conftest.$ac_ext
  22187. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22188. -$as_echo "$ac_header_preproc" >&6; }
  22189. -
  22190. -# So? What about this header?
  22191. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22192. - yes:no: )
  22193. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22194. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22195. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22196. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22197. - ac_header_preproc=yes
  22198. - ;;
  22199. - no:yes:* )
  22200. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22201. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22202. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22203. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22204. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22205. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22206. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22207. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22208. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22209. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22210. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22211. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22212. - ( cat <<\_ASBOX
  22213. -## ---------------------------------------------------------------------- ##
  22214. -## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  22215. -## ---------------------------------------------------------------------- ##
  22216. -_ASBOX
  22217. - ) | sed "s/^/$as_me: WARNING: /" >&2
  22218. - ;;
  22219. + if test "x$ac_ct_AR" = x; then
  22220. + AR="false"
  22221. + else
  22222. + case $cross_compiling:$ac_tool_warned in
  22223. +yes:)
  22224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22225. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22226. +ac_tool_warned=yes ;;
  22227. esac
  22228. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  22229. -$as_echo_n "checking for $ac_header... " >&6; }
  22230. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  22231. - $as_echo_n "(cached) " >&6
  22232. + AR=$ac_ct_AR
  22233. + fi
  22234. else
  22235. - eval "$as_ac_Header=\$ac_header_preproc"
  22236. + AR="$ac_cv_prog_AR"
  22237. fi
  22238. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  22239. - $as_echo "$as_val"'`
  22240. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  22241. -$as_echo "$ac_res" >&6; }
  22242. -fi
  22243. -as_val=`eval 'as_val=${'$as_ac_Header'}
  22244. - $as_echo "$as_val"'`
  22245. - if test "x$as_val" = x""yes; then
  22246. - cat >>confdefs.h <<_ACEOF
  22247. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22248. -_ACEOF
  22249. +test -z "$AR" && AR=ar
  22250. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22251. -fi
  22252. -done
  22253. -ac_ext=cpp
  22254. -ac_cpp='$CXXCPP $CPPFLAGS'
  22255. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22256. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22257. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22258. -if test -z "$CXX"; then
  22259. - if test -n "$CCC"; then
  22260. - CXX=$CCC
  22261. - else
  22262. - if test -n "$ac_tool_prefix"; then
  22263. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  22264. - do
  22265. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22266. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22267. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22268. +
  22269. +
  22270. +
  22271. +
  22272. +
  22273. +
  22274. +
  22275. +
  22276. +if test -n "$ac_tool_prefix"; then
  22277. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22278. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22280. $as_echo_n "checking for $ac_word... " >&6; }
  22281. -if test "${ac_cv_prog_CXX+set}" = set; then
  22282. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22283. $as_echo_n "(cached) " >&6
  22284. else
  22285. - if test -n "$CXX"; then
  22286. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  22287. + if test -n "$STRIP"; then
  22288. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22289. else
  22290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22291. for as_dir in $PATH
  22292. do
  22293. IFS=$as_save_IFS
  22294. test -z "$as_dir" && as_dir=.
  22295. - for ac_exec_ext in '' $ac_executable_extensions; do
  22296. + for ac_exec_ext in '' $ac_executable_extensions; do
  22297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22298. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  22299. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22300. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22301. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22302. break 2
  22303. fi
  22304. done
  22305. -done
  22306. + done
  22307. IFS=$as_save_IFS
  22308. fi
  22309. fi
  22310. -CXX=$ac_cv_prog_CXX
  22311. -if test -n "$CXX"; then
  22312. - { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  22313. -$as_echo "$CXX" >&6; }
  22314. +STRIP=$ac_cv_prog_STRIP
  22315. +if test -n "$STRIP"; then
  22316. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22317. +$as_echo "$STRIP" >&6; }
  22318. else
  22319. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22321. $as_echo "no" >&6; }
  22322. fi
  22323. - test -n "$CXX" && break
  22324. - done
  22325. fi
  22326. -if test -z "$CXX"; then
  22327. - ac_ct_CXX=$CXX
  22328. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  22329. -do
  22330. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22331. -set dummy $ac_prog; ac_word=$2
  22332. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22333. +if test -z "$ac_cv_prog_STRIP"; then
  22334. + ac_ct_STRIP=$STRIP
  22335. + # Extract the first word of "strip", so it can be a program name with args.
  22336. +set dummy strip; ac_word=$2
  22337. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22338. $as_echo_n "checking for $ac_word... " >&6; }
  22339. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  22340. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22341. $as_echo_n "(cached) " >&6
  22342. else
  22343. - if test -n "$ac_ct_CXX"; then
  22344. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  22345. + if test -n "$ac_ct_STRIP"; then
  22346. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22347. else
  22348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22349. for as_dir in $PATH
  22350. do
  22351. IFS=$as_save_IFS
  22352. test -z "$as_dir" && as_dir=.
  22353. - for ac_exec_ext in '' $ac_executable_extensions; do
  22354. + for ac_exec_ext in '' $ac_executable_extensions; do
  22355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22356. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  22357. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22358. + ac_cv_prog_ac_ct_STRIP="strip"
  22359. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22360. break 2
  22361. fi
  22362. done
  22363. -done
  22364. + done
  22365. IFS=$as_save_IFS
  22366. fi
  22367. fi
  22368. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  22369. -if test -n "$ac_ct_CXX"; then
  22370. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  22371. -$as_echo "$ac_ct_CXX" >&6; }
  22372. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  22373. +if test -n "$ac_ct_STRIP"; then
  22374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  22375. +$as_echo "$ac_ct_STRIP" >&6; }
  22376. else
  22377. - { $as_echo "$as_me:$LINENO: result: no" >&5
  22378. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22379. $as_echo "no" >&6; }
  22380. fi
  22381. -
  22382. - test -n "$ac_ct_CXX" && break
  22383. -done
  22384. -
  22385. - if test "x$ac_ct_CXX" = x; then
  22386. - CXX="g++"
  22387. + if test "x$ac_ct_STRIP" = x; then
  22388. + STRIP=":"
  22389. else
  22390. case $cross_compiling:$ac_tool_warned in
  22391. yes:)
  22392. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  22393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22395. ac_tool_warned=yes ;;
  22396. esac
  22397. - CXX=$ac_ct_CXX
  22398. + STRIP=$ac_ct_STRIP
  22399. fi
  22400. +else
  22401. + STRIP="$ac_cv_prog_STRIP"
  22402. fi
  22403. - fi
  22404. -fi
  22405. -# Provide some information about the compiler.
  22406. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  22407. -set X $ac_compile
  22408. -ac_compiler=$2
  22409. -{ (ac_try="$ac_compiler --version >&5"
  22410. -case "(($ac_try" in
  22411. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22412. - *) ac_try_echo=$ac_try;;
  22413. -esac
  22414. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22415. -$as_echo "$ac_try_echo") >&5
  22416. - (eval "$ac_compiler --version >&5") 2>&5
  22417. - ac_status=$?
  22418. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22419. - (exit $ac_status); }
  22420. -{ (ac_try="$ac_compiler -v >&5"
  22421. -case "(($ac_try" in
  22422. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22423. - *) ac_try_echo=$ac_try;;
  22424. -esac
  22425. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22426. -$as_echo "$ac_try_echo") >&5
  22427. - (eval "$ac_compiler -v >&5") 2>&5
  22428. - ac_status=$?
  22429. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22430. - (exit $ac_status); }
  22431. -{ (ac_try="$ac_compiler -V >&5"
  22432. -case "(($ac_try" in
  22433. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22434. - *) ac_try_echo=$ac_try;;
  22435. -esac
  22436. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22437. -$as_echo "$ac_try_echo") >&5
  22438. - (eval "$ac_compiler -V >&5") 2>&5
  22439. - ac_status=$?
  22440. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22441. - (exit $ac_status); }
  22442. +test -z "$STRIP" && STRIP=:
  22443. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  22444. -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  22445. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  22446. - $as_echo_n "(cached) " >&6
  22447. -else
  22448. - cat >conftest.$ac_ext <<_ACEOF
  22449. -/* confdefs.h. */
  22450. -_ACEOF
  22451. -cat confdefs.h >>conftest.$ac_ext
  22452. -cat >>conftest.$ac_ext <<_ACEOF
  22453. -/* end confdefs.h. */
  22454. -int
  22455. -main ()
  22456. -{
  22457. -#ifndef __GNUC__
  22458. - choke me
  22459. -#endif
  22460. - ;
  22461. - return 0;
  22462. -}
  22463. -_ACEOF
  22464. -rm -f conftest.$ac_objext
  22465. -if { (ac_try="$ac_compile"
  22466. -case "(($ac_try" in
  22467. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22468. - *) ac_try_echo=$ac_try;;
  22469. -esac
  22470. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22471. -$as_echo "$ac_try_echo") >&5
  22472. - (eval "$ac_compile") 2>conftest.er1
  22473. - ac_status=$?
  22474. - grep -v '^ *+' conftest.er1 >conftest.err
  22475. - rm -f conftest.er1
  22476. - cat conftest.err >&5
  22477. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22478. - (exit $ac_status); } && {
  22479. - test -z "$ac_cxx_werror_flag" ||
  22480. - test ! -s conftest.err
  22481. - } && test -s conftest.$ac_objext; then
  22482. - ac_compiler_gnu=yes
  22483. -else
  22484. - $as_echo "$as_me: failed program was:" >&5
  22485. -sed 's/^/| /' conftest.$ac_ext >&5
  22486. - ac_compiler_gnu=no
  22487. -fi
  22488. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22489. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  22490. +
  22491. +if test -n "$ac_tool_prefix"; then
  22492. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22493. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22494. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22495. +$as_echo_n "checking for $ac_word... " >&6; }
  22496. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  22497. + $as_echo_n "(cached) " >&6
  22498. +else
  22499. + if test -n "$RANLIB"; then
  22500. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22501. +else
  22502. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22503. +for as_dir in $PATH
  22504. +do
  22505. + IFS=$as_save_IFS
  22506. + test -z "$as_dir" && as_dir=.
  22507. + for ac_exec_ext in '' $ac_executable_extensions; do
  22508. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22509. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22510. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22511. + break 2
  22512. + fi
  22513. +done
  22514. + done
  22515. +IFS=$as_save_IFS
  22516. fi
  22517. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  22518. -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  22519. -if test $ac_compiler_gnu = yes; then
  22520. - GXX=yes
  22521. +fi
  22522. +RANLIB=$ac_cv_prog_RANLIB
  22523. +if test -n "$RANLIB"; then
  22524. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  22525. +$as_echo "$RANLIB" >&6; }
  22526. else
  22527. - GXX=
  22528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22529. +$as_echo "no" >&6; }
  22530. +fi
  22531. +
  22532. +
  22533. fi
  22534. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  22535. -ac_save_CXXFLAGS=$CXXFLAGS
  22536. -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  22537. -$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  22538. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  22539. +if test -z "$ac_cv_prog_RANLIB"; then
  22540. + ac_ct_RANLIB=$RANLIB
  22541. + # Extract the first word of "ranlib", so it can be a program name with args.
  22542. +set dummy ranlib; ac_word=$2
  22543. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22544. +$as_echo_n "checking for $ac_word... " >&6; }
  22545. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  22546. $as_echo_n "(cached) " >&6
  22547. else
  22548. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  22549. - ac_cxx_werror_flag=yes
  22550. - ac_cv_prog_cxx_g=no
  22551. - CXXFLAGS="-g"
  22552. - cat >conftest.$ac_ext <<_ACEOF
  22553. -/* confdefs.h. */
  22554. -_ACEOF
  22555. -cat confdefs.h >>conftest.$ac_ext
  22556. -cat >>conftest.$ac_ext <<_ACEOF
  22557. -/* end confdefs.h. */
  22558. + if test -n "$ac_ct_RANLIB"; then
  22559. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
  22569. + $as_echo "$as_me:${as_lineno-$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. -int
  22576. -main ()
  22577. -{
  22578. +fi
  22579. +fi
  22580. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22581. +if test -n "$ac_ct_RANLIB"; then
  22582. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  22583. +$as_echo "$ac_ct_RANLIB" >&6; }
  22584. +else
  22585. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22586. +$as_echo "no" >&6; }
  22587. +fi
  22588. - ;
  22589. - return 0;
  22590. -}
  22591. -_ACEOF
  22592. -rm -f conftest.$ac_objext
  22593. -if { (ac_try="$ac_compile"
  22594. -case "(($ac_try" in
  22595. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22596. - *) ac_try_echo=$ac_try;;
  22597. + if test "x$ac_ct_RANLIB" = x; then
  22598. + RANLIB=":"
  22599. + else
  22600. + case $cross_compiling:$ac_tool_warned in
  22601. +yes:)
  22602. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22603. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22604. +ac_tool_warned=yes ;;
  22605. esac
  22606. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22607. -$as_echo "$ac_try_echo") >&5
  22608. - (eval "$ac_compile") 2>conftest.er1
  22609. - ac_status=$?
  22610. - grep -v '^ *+' conftest.er1 >conftest.err
  22611. - rm -f conftest.er1
  22612. - cat conftest.err >&5
  22613. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22614. - (exit $ac_status); } && {
  22615. - test -z "$ac_cxx_werror_flag" ||
  22616. - test ! -s conftest.err
  22617. - } && test -s conftest.$ac_objext; then
  22618. - ac_cv_prog_cxx_g=yes
  22619. + RANLIB=$ac_ct_RANLIB
  22620. + fi
  22621. else
  22622. - $as_echo "$as_me: failed program was:" >&5
  22623. -sed 's/^/| /' conftest.$ac_ext >&5
  22624. + RANLIB="$ac_cv_prog_RANLIB"
  22625. +fi
  22626. - CXXFLAGS=""
  22627. - cat >conftest.$ac_ext <<_ACEOF
  22628. -/* confdefs.h. */
  22629. -_ACEOF
  22630. -cat confdefs.h >>conftest.$ac_ext
  22631. -cat >>conftest.$ac_ext <<_ACEOF
  22632. -/* end confdefs.h. */
  22633. +test -z "$RANLIB" && RANLIB=:
  22634. -int
  22635. -main ()
  22636. -{
  22637. - ;
  22638. - return 0;
  22639. -}
  22640. -_ACEOF
  22641. -rm -f conftest.$ac_objext
  22642. -if { (ac_try="$ac_compile"
  22643. -case "(($ac_try" in
  22644. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22645. - *) ac_try_echo=$ac_try;;
  22646. -esac
  22647. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22648. -$as_echo "$ac_try_echo") >&5
  22649. - (eval "$ac_compile") 2>conftest.er1
  22650. - ac_status=$?
  22651. - grep -v '^ *+' conftest.er1 >conftest.err
  22652. - rm -f conftest.er1
  22653. - cat conftest.err >&5
  22654. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22655. - (exit $ac_status); } && {
  22656. - test -z "$ac_cxx_werror_flag" ||
  22657. - test ! -s conftest.err
  22658. - } && test -s conftest.$ac_objext; then
  22659. - :
  22660. -else
  22661. - $as_echo "$as_me: failed program was:" >&5
  22662. -sed 's/^/| /' conftest.$ac_ext >&5
  22663. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  22664. - CXXFLAGS="-g"
  22665. - cat >conftest.$ac_ext <<_ACEOF
  22666. -/* confdefs.h. */
  22667. -_ACEOF
  22668. -cat confdefs.h >>conftest.$ac_ext
  22669. -cat >>conftest.$ac_ext <<_ACEOF
  22670. -/* end confdefs.h. */
  22671. -int
  22672. -main ()
  22673. -{
  22674. - ;
  22675. - return 0;
  22676. -}
  22677. -_ACEOF
  22678. -rm -f conftest.$ac_objext
  22679. -if { (ac_try="$ac_compile"
  22680. -case "(($ac_try" in
  22681. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22682. - *) ac_try_echo=$ac_try;;
  22683. -esac
  22684. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22685. -$as_echo "$ac_try_echo") >&5
  22686. - (eval "$ac_compile") 2>conftest.er1
  22687. - ac_status=$?
  22688. - grep -v '^ *+' conftest.er1 >conftest.err
  22689. - rm -f conftest.er1
  22690. - cat conftest.err >&5
  22691. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22692. - (exit $ac_status); } && {
  22693. - test -z "$ac_cxx_werror_flag" ||
  22694. - test ! -s conftest.err
  22695. - } && test -s conftest.$ac_objext; then
  22696. - ac_cv_prog_cxx_g=yes
  22697. -else
  22698. - $as_echo "$as_me: failed program was:" >&5
  22699. -sed 's/^/| /' conftest.$ac_ext >&5
  22700. +# Determine commands to create old-style static archives.
  22701. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  22702. +old_postinstall_cmds='chmod 644 $oldlib'
  22703. +old_postuninstall_cmds=
  22704. +if test -n "$RANLIB"; then
  22705. + case $host_os in
  22706. + openbsd*)
  22707. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  22708. + ;;
  22709. + *)
  22710. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  22711. + ;;
  22712. + esac
  22713. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  22714. fi
  22715. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22716. -fi
  22717. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22718. -fi
  22719. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22720. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  22721. -fi
  22722. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  22723. -$as_echo "$ac_cv_prog_cxx_g" >&6; }
  22724. -if test "$ac_test_CXXFLAGS" = set; then
  22725. - CXXFLAGS=$ac_save_CXXFLAGS
  22726. -elif test $ac_cv_prog_cxx_g = yes; then
  22727. - if test "$GXX" = yes; then
  22728. - CXXFLAGS="-g -O2"
  22729. - else
  22730. - CXXFLAGS="-g"
  22731. - fi
  22732. -else
  22733. - if test "$GXX" = yes; then
  22734. - CXXFLAGS="-O2"
  22735. - else
  22736. - CXXFLAGS=
  22737. - fi
  22738. -fi
  22739. -ac_ext=cpp
  22740. -ac_cpp='$CXXCPP $CPPFLAGS'
  22741. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22742. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22743. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22744. -depcc="$CXX" am_compiler_list=
  22745. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  22746. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  22747. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  22748. - $as_echo_n "(cached) " >&6
  22749. -else
  22750. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  22751. - # We make a subdir and do the tests there. Otherwise we can end up
  22752. - # making bogus files that we don't know about and never remove. For
  22753. - # instance it was reported that on HP-UX the gcc test will end up
  22754. - # making a dummy file named `D' -- because `-MD' means `put the output
  22755. - # in D'.
  22756. - mkdir conftest.dir
  22757. - # Copy depcomp to subdir because otherwise we won't find it if we're
  22758. - # using a relative directory.
  22759. - cp "$am_depcomp" conftest.dir
  22760. - cd conftest.dir
  22761. - # We will build objects and dependencies in a subdirectory because
  22762. - # it helps to detect inapplicable dependency modes. For instance
  22763. - # both Tru64's cc and ICC support -MD to output dependencies as a
  22764. - # side effect of compilation, but ICC will put the dependencies in
  22765. - # the current directory while Tru64 will put them in the object
  22766. - # directory.
  22767. - mkdir sub
  22768. - am_cv_CXX_dependencies_compiler_type=none
  22769. - if test "$am_compiler_list" = ""; then
  22770. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  22771. - fi
  22772. - am__universal=false
  22773. - case " $depcc " in #(
  22774. - *\ -arch\ *\ -arch\ *) am__universal=true ;;
  22775. - esac
  22776. - for depmode in $am_compiler_list; do
  22777. - # Setup a source with many dependencies, because some compilers
  22778. - # like to wrap large dependency lists on column 80 (with \), and
  22779. - # we should not choose a depcomp mode which is confused by this.
  22780. - #
  22781. - # We need to recreate these files for each test, as the compiler may
  22782. - # overwrite some of them when testing with obscure command lines.
  22783. - # This happens at least with the AIX C compiler.
  22784. - : > sub/conftest.c
  22785. - for i in 1 2 3 4 5 6; do
  22786. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  22787. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  22788. - # Solaris 8's {/usr,}/bin/sh.
  22789. - touch sub/conftst$i.h
  22790. - done
  22791. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  22792. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  22793. - # mode. It turns out that the SunPro C++ compiler does not properly
  22794. - # handle `-M -o', and we need to detect this. Also, some Intel
  22795. - # versions had trouble with output in subdirs
  22796. - am__obj=sub/conftest.${OBJEXT-o}
  22797. - am__minus_obj="-o $am__obj"
  22798. - case $depmode in
  22799. - gcc)
  22800. - # This depmode causes a compiler race in universal mode.
  22801. - test "$am__universal" = false || continue
  22802. - ;;
  22803. - nosideeffect)
  22804. - # after this tag, mechanisms are not by side-effect, so they'll
  22805. - # only be used when explicitly requested
  22806. - if test "x$enable_dependency_tracking" = xyes; then
  22807. - continue
  22808. - else
  22809. - break
  22810. - fi
  22811. - ;;
  22812. - msvisualcpp | msvcmsys)
  22813. - # This compiler won't grok `-c -o', but also, the minuso test has
  22814. - # not run yet. These depmodes are late enough in the game, and
  22815. - # so weak that their functioning should not be impacted.
  22816. - am__obj=conftest.${OBJEXT-o}
  22817. - am__minus_obj=
  22818. - ;;
  22819. - none) break ;;
  22820. - esac
  22821. - if depmode=$depmode \
  22822. - source=sub/conftest.c object=$am__obj \
  22823. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  22824. - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  22825. - >/dev/null 2>conftest.err &&
  22826. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  22827. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  22828. - grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  22829. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  22830. - # icc doesn't choke on unknown options, it will just issue warnings
  22831. - # or remarks (even with -Werror). So we grep stderr for any message
  22832. - # that says an option was ignored or not supported.
  22833. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  22834. - # icc: Command line warning: ignoring option '-M'; no argument required
  22835. - # The diagnosis changed in icc 8.0:
  22836. - # icc: Command line remark: option '-MP' not supported
  22837. - if (grep 'ignoring option' conftest.err ||
  22838. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  22839. - am_cv_CXX_dependencies_compiler_type=$depmode
  22840. - break
  22841. - fi
  22842. - fi
  22843. - done
  22844. - cd ..
  22845. - rm -rf conftest.dir
  22846. -else
  22847. - am_cv_CXX_dependencies_compiler_type=none
  22848. -fi
  22849. -fi
  22850. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  22851. -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  22852. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  22853. - if
  22854. - test "x$enable_dependency_tracking" != xno \
  22855. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  22856. - am__fastdepCXX_TRUE=
  22857. - am__fastdepCXX_FALSE='#'
  22858. -else
  22859. - am__fastdepCXX_TRUE='#'
  22860. - am__fastdepCXX_FALSE=
  22861. -fi
  22862. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  22863. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  22864. - (test "X$CXX" != "Xg++"))) ; then
  22865. - ac_ext=cpp
  22866. -ac_cpp='$CXXCPP $CPPFLAGS'
  22867. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22868. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22869. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22870. -{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  22871. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  22872. -if test -z "$CXXCPP"; then
  22873. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  22874. - $as_echo_n "(cached) " >&6
  22875. -else
  22876. - # Double quotes because CXXCPP needs to be expanded
  22877. - for CXXCPP in "$CXX -E" "/lib/cpp"
  22878. - do
  22879. - ac_preproc_ok=false
  22880. -for ac_cxx_preproc_warn_flag in '' yes
  22881. -do
  22882. - # Use a header file that comes with gcc, so configuring glibc
  22883. - # with a fresh cross-compiler works.
  22884. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22885. - # <limits.h> exists even on freestanding compilers.
  22886. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22887. - # not just through cpp. "Syntax error" is here to catch this case.
  22888. - cat >conftest.$ac_ext <<_ACEOF
  22889. -/* confdefs.h. */
  22890. -_ACEOF
  22891. -cat confdefs.h >>conftest.$ac_ext
  22892. -cat >>conftest.$ac_ext <<_ACEOF
  22893. -/* end confdefs.h. */
  22894. -#ifdef __STDC__
  22895. -# include <limits.h>
  22896. -#else
  22897. -# include <assert.h>
  22898. -#endif
  22899. - Syntax error
  22900. -_ACEOF
  22901. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22902. -case "(($ac_try" in
  22903. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22904. - *) ac_try_echo=$ac_try;;
  22905. -esac
  22906. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22907. -$as_echo "$ac_try_echo") >&5
  22908. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22909. - ac_status=$?
  22910. - grep -v '^ *+' conftest.er1 >conftest.err
  22911. - rm -f conftest.er1
  22912. - cat conftest.err >&5
  22913. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22914. - (exit $ac_status); } >/dev/null && {
  22915. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  22916. - test ! -s conftest.err
  22917. - }; then
  22918. - :
  22919. -else
  22920. - $as_echo "$as_me: failed program was:" >&5
  22921. -sed 's/^/| /' conftest.$ac_ext >&5
  22922. - # Broken: fails on valid input.
  22923. -continue
  22924. -fi
  22925. -rm -f conftest.err conftest.$ac_ext
  22926. - # OK, works on sane cases. Now check whether nonexistent headers
  22927. - # can be detected and how.
  22928. - cat >conftest.$ac_ext <<_ACEOF
  22929. -/* confdefs.h. */
  22930. -_ACEOF
  22931. -cat confdefs.h >>conftest.$ac_ext
  22932. -cat >>conftest.$ac_ext <<_ACEOF
  22933. -/* end confdefs.h. */
  22934. -#include <ac_nonexistent.h>
  22935. -_ACEOF
  22936. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  22937. -case "(($ac_try" in
  22938. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22939. - *) ac_try_echo=$ac_try;;
  22940. -esac
  22941. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22942. -$as_echo "$ac_try_echo") >&5
  22943. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22944. - ac_status=$?
  22945. - grep -v '^ *+' conftest.er1 >conftest.err
  22946. - rm -f conftest.er1
  22947. - cat conftest.err >&5
  22948. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22949. - (exit $ac_status); } >/dev/null && {
  22950. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  22951. - test ! -s conftest.err
  22952. - }; then
  22953. - # Broken: success on invalid input.
  22954. -continue
  22955. -else
  22956. - $as_echo "$as_me: failed program was:" >&5
  22957. -sed 's/^/| /' conftest.$ac_ext >&5
  22958. - # Passes both tests.
  22959. -ac_preproc_ok=:
  22960. -break
  22961. -fi
  22962. -rm -f conftest.err conftest.$ac_ext
  22963. -done
  22964. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22965. -rm -f conftest.err conftest.$ac_ext
  22966. -if $ac_preproc_ok; then
  22967. - break
  22968. -fi
  22969. - done
  22970. - ac_cv_prog_CXXCPP=$CXXCPP
  22971. -fi
  22972. - CXXCPP=$ac_cv_prog_CXXCPP
  22973. -else
  22974. - ac_cv_prog_CXXCPP=$CXXCPP
  22975. -fi
  22976. -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  22977. -$as_echo "$CXXCPP" >&6; }
  22978. -ac_preproc_ok=false
  22979. -for ac_cxx_preproc_warn_flag in '' yes
  22980. -do
  22981. - # Use a header file that comes with gcc, so configuring glibc
  22982. - # with a fresh cross-compiler works.
  22983. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22984. - # <limits.h> exists even on freestanding compilers.
  22985. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22986. - # not just through cpp. "Syntax error" is here to catch this case.
  22987. - cat >conftest.$ac_ext <<_ACEOF
  22988. -/* confdefs.h. */
  22989. -_ACEOF
  22990. -cat confdefs.h >>conftest.$ac_ext
  22991. -cat >>conftest.$ac_ext <<_ACEOF
  22992. -/* end confdefs.h. */
  22993. -#ifdef __STDC__
  22994. -# include <limits.h>
  22995. -#else
  22996. -# include <assert.h>
  22997. -#endif
  22998. - Syntax error
  22999. -_ACEOF
  23000. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23001. -case "(($ac_try" in
  23002. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23003. - *) ac_try_echo=$ac_try;;
  23004. -esac
  23005. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23006. -$as_echo "$ac_try_echo") >&5
  23007. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23008. - ac_status=$?
  23009. - grep -v '^ *+' conftest.er1 >conftest.err
  23010. - rm -f conftest.er1
  23011. - cat conftest.err >&5
  23012. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23013. - (exit $ac_status); } >/dev/null && {
  23014. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23015. - test ! -s conftest.err
  23016. - }; then
  23017. - :
  23018. -else
  23019. - $as_echo "$as_me: failed program was:" >&5
  23020. -sed 's/^/| /' conftest.$ac_ext >&5
  23021. - # Broken: fails on valid input.
  23022. -continue
  23023. -fi
  23024. -rm -f conftest.err conftest.$ac_ext
  23025. - # OK, works on sane cases. Now check whether nonexistent headers
  23026. - # can be detected and how.
  23027. - cat >conftest.$ac_ext <<_ACEOF
  23028. -/* confdefs.h. */
  23029. -_ACEOF
  23030. -cat confdefs.h >>conftest.$ac_ext
  23031. -cat >>conftest.$ac_ext <<_ACEOF
  23032. -/* end confdefs.h. */
  23033. -#include <ac_nonexistent.h>
  23034. -_ACEOF
  23035. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  23036. -case "(($ac_try" in
  23037. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23038. - *) ac_try_echo=$ac_try;;
  23039. -esac
  23040. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23041. -$as_echo "$ac_try_echo") >&5
  23042. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23043. - ac_status=$?
  23044. - grep -v '^ *+' conftest.er1 >conftest.err
  23045. - rm -f conftest.er1
  23046. - cat conftest.err >&5
  23047. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23048. - (exit $ac_status); } >/dev/null && {
  23049. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  23050. - test ! -s conftest.err
  23051. - }; then
  23052. - # Broken: success on invalid input.
  23053. -continue
  23054. -else
  23055. - $as_echo "$as_me: failed program was:" >&5
  23056. -sed 's/^/| /' conftest.$ac_ext >&5
  23057. - # Passes both tests.
  23058. -ac_preproc_ok=:
  23059. -break
  23060. -fi
  23061. -rm -f conftest.err conftest.$ac_ext
  23062. -done
  23063. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23064. -rm -f conftest.err conftest.$ac_ext
  23065. -if $ac_preproc_ok; then
  23066. - :
  23067. -else
  23068. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23069. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23070. -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23071. -See \`config.log' for more details." >&5
  23072. -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23073. -See \`config.log' for more details." >&2;}
  23074. - { (exit 1); exit 1; }; }; }
  23075. -fi
  23076. -ac_ext=cpp
  23077. -ac_cpp='$CXXCPP $CPPFLAGS'
  23078. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23079. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23080. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23081. -fi
  23082. -ac_ext=f
  23083. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  23084. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23085. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  23086. -if test -n "$ac_tool_prefix"; then
  23087. - 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
  23088. - do
  23089. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23090. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23091. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23092. -$as_echo_n "checking for $ac_word... " >&6; }
  23093. -if test "${ac_cv_prog_F77+set}" = set; then
  23094. - $as_echo_n "(cached) " >&6
  23095. -else
  23096. - if test -n "$F77"; then
  23097. - ac_cv_prog_F77="$F77" # Let the user override the test.
  23098. -else
  23099. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23100. -for as_dir in $PATH
  23101. -do
  23102. - IFS=$as_save_IFS
  23103. - test -z "$as_dir" && as_dir=.
  23104. - for ac_exec_ext in '' $ac_executable_extensions; do
  23105. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23106. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  23107. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23108. - break 2
  23109. - fi
  23110. -done
  23111. -done
  23112. -IFS=$as_save_IFS
  23113. -fi
  23114. -fi
  23115. -F77=$ac_cv_prog_F77
  23116. -if test -n "$F77"; then
  23117. - { $as_echo "$as_me:$LINENO: result: $F77" >&5
  23118. -$as_echo "$F77" >&6; }
  23119. -else
  23120. - { $as_echo "$as_me:$LINENO: result: no" >&5
  23121. -$as_echo "no" >&6; }
  23122. -fi
  23123. +# If no C compiler was specified, use CC.
  23124. +LTCC=${LTCC-"$CC"}
  23125. +# If no C compiler flags were specified, use CFLAGS.
  23126. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23127. - test -n "$F77" && break
  23128. - done
  23129. -fi
  23130. -if test -z "$F77"; then
  23131. - ac_ct_F77=$F77
  23132. - 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
  23133. -do
  23134. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23135. -set dummy $ac_prog; ac_word=$2
  23136. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23137. -$as_echo_n "checking for $ac_word... " >&6; }
  23138. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  23139. - $as_echo_n "(cached) " >&6
  23140. -else
  23141. - if test -n "$ac_ct_F77"; then
  23142. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  23143. -else
  23144. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23145. -for as_dir in $PATH
  23146. -do
  23147. - IFS=$as_save_IFS
  23148. - test -z "$as_dir" && as_dir=.
  23149. - for ac_exec_ext in '' $ac_executable_extensions; do
  23150. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23151. - ac_cv_prog_ac_ct_F77="$ac_prog"
  23152. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23153. - break 2
  23154. - fi
  23155. -done
  23156. -done
  23157. -IFS=$as_save_IFS
  23158. +# Allow CC to be a program name with arguments.
  23159. +compiler=$CC
  23160. -fi
  23161. -fi
  23162. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  23163. -if test -n "$ac_ct_F77"; then
  23164. - { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  23165. -$as_echo "$ac_ct_F77" >&6; }
  23166. -else
  23167. - { $as_echo "$as_me:$LINENO: result: no" >&5
  23168. -$as_echo "no" >&6; }
  23169. -fi
  23170. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23172. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23173. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23174. + $as_echo_n "(cached) " >&6
  23175. +else
  23176. - test -n "$ac_ct_F77" && break
  23177. -done
  23178. +# These are sane defaults that work on at least a few old systems.
  23179. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23180. - if test "x$ac_ct_F77" = x; then
  23181. - F77=""
  23182. - else
  23183. - case $cross_compiling:$ac_tool_warned in
  23184. -yes:)
  23185. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  23186. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23187. -ac_tool_warned=yes ;;
  23188. -esac
  23189. - F77=$ac_ct_F77
  23190. - fi
  23191. -fi
  23192. +# Character class describing NM global symbol codes.
  23193. +symcode='[BCDEGRST]'
  23194. -
  23195. -# Provide some information about the compiler.
  23196. -$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  23197. -set X $ac_compile
  23198. -ac_compiler=$2
  23199. -{ (ac_try="$ac_compiler --version >&5"
  23200. -case "(($ac_try" in
  23201. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23202. - *) ac_try_echo=$ac_try;;
  23203. -esac
  23204. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23205. -$as_echo "$ac_try_echo") >&5
  23206. - (eval "$ac_compiler --version >&5") 2>&5
  23207. - ac_status=$?
  23208. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23209. - (exit $ac_status); }
  23210. -{ (ac_try="$ac_compiler -v >&5"
  23211. -case "(($ac_try" in
  23212. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23213. - *) ac_try_echo=$ac_try;;
  23214. -esac
  23215. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23216. -$as_echo "$ac_try_echo") >&5
  23217. - (eval "$ac_compiler -v >&5") 2>&5
  23218. - ac_status=$?
  23219. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23220. - (exit $ac_status); }
  23221. -{ (ac_try="$ac_compiler -V >&5"
  23222. -case "(($ac_try" in
  23223. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23224. - *) ac_try_echo=$ac_try;;
  23225. -esac
  23226. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23227. -$as_echo "$ac_try_echo") >&5
  23228. - (eval "$ac_compiler -V >&5") 2>&5
  23229. - ac_status=$?
  23230. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23231. - (exit $ac_status); }
  23232. -rm -f a.out
  23233. -
  23234. -# If we don't use `.F' as extension, the preprocessor is not run on the
  23235. -# input file. (Note that this only needs to work for GNU compilers.)
  23236. -ac_save_ext=$ac_ext
  23237. -ac_ext=F
  23238. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  23239. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  23240. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  23241. - $as_echo_n "(cached) " >&6
  23242. -else
  23243. - cat >conftest.$ac_ext <<_ACEOF
  23244. - program main
  23245. -#ifndef __GNUC__
  23246. - choke me
  23247. -#endif
  23248. -
  23249. - end
  23250. -_ACEOF
  23251. -rm -f conftest.$ac_objext
  23252. -if { (ac_try="$ac_compile"
  23253. -case "(($ac_try" in
  23254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23255. - *) ac_try_echo=$ac_try;;
  23256. -esac
  23257. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23258. -$as_echo "$ac_try_echo") >&5
  23259. - (eval "$ac_compile") 2>conftest.er1
  23260. - ac_status=$?
  23261. - grep -v '^ *+' conftest.er1 >conftest.err
  23262. - rm -f conftest.er1
  23263. - cat conftest.err >&5
  23264. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23265. - (exit $ac_status); } && {
  23266. - test -z "$ac_f77_werror_flag" ||
  23267. - test ! -s conftest.err
  23268. - } && test -s conftest.$ac_objext; then
  23269. - ac_compiler_gnu=yes
  23270. -else
  23271. - $as_echo "$as_me: failed program was:" >&5
  23272. -sed 's/^/| /' conftest.$ac_ext >&5
  23273. -
  23274. - ac_compiler_gnu=no
  23275. -fi
  23276. -
  23277. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23278. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  23279. -
  23280. -fi
  23281. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  23282. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  23283. -ac_ext=$ac_save_ext
  23284. -ac_test_FFLAGS=${FFLAGS+set}
  23285. -ac_save_FFLAGS=$FFLAGS
  23286. -FFLAGS=
  23287. -{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  23288. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  23289. -if test "${ac_cv_prog_f77_g+set}" = set; then
  23290. - $as_echo_n "(cached) " >&6
  23291. -else
  23292. - FFLAGS=-g
  23293. -cat >conftest.$ac_ext <<_ACEOF
  23294. - program main
  23295. -
  23296. - end
  23297. -_ACEOF
  23298. -rm -f conftest.$ac_objext
  23299. -if { (ac_try="$ac_compile"
  23300. -case "(($ac_try" in
  23301. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23302. - *) ac_try_echo=$ac_try;;
  23303. -esac
  23304. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23305. -$as_echo "$ac_try_echo") >&5
  23306. - (eval "$ac_compile") 2>conftest.er1
  23307. - ac_status=$?
  23308. - grep -v '^ *+' conftest.er1 >conftest.err
  23309. - rm -f conftest.er1
  23310. - cat conftest.err >&5
  23311. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23312. - (exit $ac_status); } && {
  23313. - test -z "$ac_f77_werror_flag" ||
  23314. - test ! -s conftest.err
  23315. - } && test -s conftest.$ac_objext; then
  23316. - ac_cv_prog_f77_g=yes
  23317. -else
  23318. - $as_echo "$as_me: failed program was:" >&5
  23319. -sed 's/^/| /' conftest.$ac_ext >&5
  23320. -
  23321. - ac_cv_prog_f77_g=no
  23322. -fi
  23323. -
  23324. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23325. -
  23326. -fi
  23327. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  23328. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  23329. -if test "$ac_test_FFLAGS" = set; then
  23330. - FFLAGS=$ac_save_FFLAGS
  23331. -elif test $ac_cv_prog_f77_g = yes; then
  23332. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23333. - FFLAGS="-g -O2"
  23334. - else
  23335. - FFLAGS="-g"
  23336. - fi
  23337. -else
  23338. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23339. - FFLAGS="-O2"
  23340. - else
  23341. - FFLAGS=
  23342. - fi
  23343. -fi
  23344. -
  23345. -if test $ac_compiler_gnu = yes; then
  23346. - G77=yes
  23347. -else
  23348. - G77=
  23349. -fi
  23350. -ac_ext=c
  23351. -ac_cpp='$CPP $CPPFLAGS'
  23352. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23353. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23354. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23355. -
  23356. -
  23357. -
  23358. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  23359. -# find the maximum length of command line arguments
  23360. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  23361. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  23362. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  23363. - $as_echo_n "(cached) " >&6
  23364. -else
  23365. - i=0
  23366. - teststring="ABCD"
  23367. -
  23368. - case $build_os in
  23369. - msdosdjgpp*)
  23370. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  23371. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  23372. - # during glob expansion). Even if it were fixed, the result of this
  23373. - # check would be larger than it should be.
  23374. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23375. - ;;
  23376. -
  23377. - gnu*)
  23378. - # Under GNU Hurd, this test is not required because there is
  23379. - # no limit to the length of command line arguments.
  23380. - # Libtool will interpret -1 as no limit whatsoever
  23381. - lt_cv_sys_max_cmd_len=-1;
  23382. - ;;
  23383. -
  23384. - cygwin* | mingw*)
  23385. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  23386. - # about 5 minutes as the teststring grows exponentially.
  23387. - # Worse, since 9x/ME are not pre-emptively multitasking,
  23388. - # you end up with a "frozen" computer, even though with patience
  23389. - # the test eventually succeeds (with a max line length of 256k).
  23390. - # Instead, let's just punt: use the minimum linelength reported by
  23391. - # all of the supported platforms: 8192 (on NT/2K/XP).
  23392. - lt_cv_sys_max_cmd_len=8192;
  23393. - ;;
  23394. -
  23395. - amigaos*)
  23396. - # On AmigaOS with pdksh, this test takes hours, literally.
  23397. - # So we just punt and use a minimum line length of 8192.
  23398. - lt_cv_sys_max_cmd_len=8192;
  23399. - ;;
  23400. -
  23401. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23402. - # This has been around since 386BSD, at least. Likely further.
  23403. - if test -x /sbin/sysctl; then
  23404. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23405. - elif test -x /usr/sbin/sysctl; then
  23406. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23407. - else
  23408. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  23409. - fi
  23410. - # And add a safety zone
  23411. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23412. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23413. - ;;
  23414. -
  23415. - interix*)
  23416. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  23417. - lt_cv_sys_max_cmd_len=196608
  23418. - ;;
  23419. -
  23420. - osf*)
  23421. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23422. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23423. - # nice to cause kernel panics so lets avoid the loop below.
  23424. - # First set a reasonable default.
  23425. - lt_cv_sys_max_cmd_len=16384
  23426. - #
  23427. - if test -x /sbin/sysconfig; then
  23428. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23429. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23430. - esac
  23431. - fi
  23432. - ;;
  23433. - sco3.2v5*)
  23434. - lt_cv_sys_max_cmd_len=102400
  23435. - ;;
  23436. - sysv5* | sco5v6* | sysv4.2uw2*)
  23437. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  23438. - if test -n "$kargmax"; then
  23439. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  23440. - else
  23441. - lt_cv_sys_max_cmd_len=32768
  23442. - fi
  23443. - ;;
  23444. - *)
  23445. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  23446. - if test -n "$lt_cv_sys_max_cmd_len"; then
  23447. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23448. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23449. - else
  23450. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  23451. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  23452. - = "XX$teststring") >/dev/null 2>&1 &&
  23453. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  23454. - lt_cv_sys_max_cmd_len=$new_result &&
  23455. - test $i != 17 # 1/2 MB should be enough
  23456. - do
  23457. - i=`expr $i + 1`
  23458. - teststring=$teststring$teststring
  23459. - done
  23460. - teststring=
  23461. - # Add a significant safety factor because C++ compilers can tack on massive
  23462. - # amounts of additional arguments before passing them to the linker.
  23463. - # It appears as though 1/2 is a usable value.
  23464. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23465. - fi
  23466. - ;;
  23467. - esac
  23468. -
  23469. -fi
  23470. -
  23471. -if test -n $lt_cv_sys_max_cmd_len ; then
  23472. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  23473. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  23474. -else
  23475. - { $as_echo "$as_me:$LINENO: result: none" >&5
  23476. -$as_echo "none" >&6; }
  23477. -fi
  23478. -
  23479. -
  23480. -
  23481. -
  23482. -
  23483. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  23484. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  23485. -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23486. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  23487. - $as_echo_n "(cached) " >&6
  23488. -else
  23489. -
  23490. -# These are sane defaults that work on at least a few old systems.
  23491. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23492. -
  23493. -# Character class describing NM global symbol codes.
  23494. -symcode='[BCDEGRST]'
  23495. -
  23496. -# Regexp to match symbols that can be accessed directly from C.
  23497. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23498. -
  23499. -# Transform an extracted symbol line into a proper C declaration
  23500. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  23501. -
  23502. -# Transform an extracted symbol line into symbol name and symbol address
  23503. -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'"
  23504. +# Regexp to match symbols that can be accessed directly from C.
  23505. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23506. # Define system-specific variables.
  23507. case $host_os in
  23508. aix*)
  23509. symcode='[BCDT]'
  23510. ;;
  23511. -cygwin* | mingw* | pw32*)
  23512. +cygwin* | mingw* | pw32* | cegcc*)
  23513. symcode='[ABCDGISTW]'
  23514. ;;
  23515. -hpux*) # Its linker distinguishes data from code symbols
  23516. +hpux*)
  23517. if test "$host_cpu" = ia64; then
  23518. symcode='[ABCDEGRST]'
  23519. fi
  23520. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23521. - 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'"
  23522. - ;;
  23523. -linux* | k*bsd*-gnu)
  23524. - if test "$host_cpu" = ia64; then
  23525. - symcode='[ABCDGIRSTW]'
  23526. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23527. - 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'"
  23528. - fi
  23529. ;;
  23530. irix* | nonstopux*)
  23531. symcode='[BCDEGRST]'
  23532. @@ -6574,57 +5474,85 @@
  23533. ;;
  23534. esac
  23535. +# If we're using GNU nm, then use its standard symbol codes.
  23536. +case `$NM -V 2>&1` in
  23537. +*GNU* | *'with BFD'*)
  23538. + symcode='[ABCDGIRSTW]' ;;
  23539. +esac
  23540. +
  23541. +# Transform an extracted symbol line into a proper C declaration.
  23542. +# Some systems (esp. on ia64) link data and code symbols differently,
  23543. +# so use this general approach.
  23544. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23545. +
  23546. +# Transform an extracted symbol line into symbol name and symbol address
  23547. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23548. +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'"
  23549. +
  23550. # Handle CRLF in mingw tool chain
  23551. opt_cr=
  23552. case $build_os in
  23553. mingw*)
  23554. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23555. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23556. ;;
  23557. esac
  23558. -# If we're using GNU nm, then use its standard symbol codes.
  23559. -case `$NM -V 2>&1` in
  23560. -*GNU* | *'with BFD'*)
  23561. - symcode='[ABCDGIRSTW]' ;;
  23562. -esac
  23563. -
  23564. -# Try without a prefix undercore, then with it.
  23565. +# Try without a prefix underscore, then with it.
  23566. for ac_symprfx in "" "_"; do
  23567. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23568. symxfrm="\\1 $ac_symprfx\\2 \\2"
  23569. # Write the raw and C identifiers.
  23570. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23571. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23572. + # Fake it for dumpbin and say T for any non-static function
  23573. + # and D for any global variable.
  23574. + # Also find C++ and __fastcall symbols from MSVC++,
  23575. + # which start with @ or ?.
  23576. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23577. +" {last_section=section; section=\$ 3};"\
  23578. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23579. +" \$ 0!~/External *\|/{next};"\
  23580. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23581. +" {if(hide[section]) next};"\
  23582. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23583. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23584. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23585. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23586. +" ' prfx=^$ac_symprfx"
  23587. + else
  23588. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23589. + fi
  23590. # Check to see that the pipe works correctly.
  23591. pipe_works=no
  23592. rm -f conftest*
  23593. - cat > conftest.$ac_ext <<EOF
  23594. + cat > conftest.$ac_ext <<_LT_EOF
  23595. #ifdef __cplusplus
  23596. extern "C" {
  23597. #endif
  23598. char nm_test_var;
  23599. -void nm_test_func(){}
  23600. +void nm_test_func(void);
  23601. +void nm_test_func(void){}
  23602. #ifdef __cplusplus
  23603. }
  23604. #endif
  23605. int main(){nm_test_var='a';nm_test_func();return(0);}
  23606. -EOF
  23607. +_LT_EOF
  23608. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23609. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23610. (eval $ac_compile) 2>&5
  23611. ac_status=$?
  23612. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23613. - (exit $ac_status); }; then
  23614. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23615. + test $ac_status = 0; }; then
  23616. # Now try to grab the symbols.
  23617. nlist=conftest.nm
  23618. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  23619. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23620. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23621. ac_status=$?
  23622. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23623. - (exit $ac_status); } && test -s "$nlist"; then
  23624. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23625. + test $ac_status = 0; } && test -s "$nlist"; then
  23626. # Try sorting and uniquifying the output.
  23627. if sort "$nlist" | uniq > "$nlist"T; then
  23628. mv -f "$nlist"T "$nlist"
  23629. @@ -6633,53 +5561,55 @@
  23630. fi
  23631. # Make sure that we snagged all the symbols we need.
  23632. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  23633. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  23634. - cat <<EOF > conftest.$ac_ext
  23635. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23636. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23637. + cat <<_LT_EOF > conftest.$ac_ext
  23638. #ifdef __cplusplus
  23639. extern "C" {
  23640. #endif
  23641. -EOF
  23642. +_LT_EOF
  23643. # Now generate the symbol file.
  23644. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  23645. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23646. - cat <<EOF >> conftest.$ac_ext
  23647. -#if defined (__STDC__) && __STDC__
  23648. -# define lt_ptr_t void *
  23649. -#else
  23650. -# define lt_ptr_t char *
  23651. -# define const
  23652. -#endif
  23653. + cat <<_LT_EOF >> conftest.$ac_ext
  23654. -/* The mapping between symbol names and symbols. */
  23655. +/* The mapping between symbol names and symbols. */
  23656. const struct {
  23657. const char *name;
  23658. - lt_ptr_t address;
  23659. + void *address;
  23660. }
  23661. -lt_preloaded_symbols[] =
  23662. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23663. {
  23664. -EOF
  23665. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  23666. - cat <<\EOF >> conftest.$ac_ext
  23667. - {0, (lt_ptr_t) 0}
  23668. + { "@PROGRAM@", (void *) 0 },
  23669. +_LT_EOF
  23670. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23671. + cat <<\_LT_EOF >> conftest.$ac_ext
  23672. + {0, (void *) 0}
  23673. };
  23674. +/* This works around a problem in FreeBSD linker */
  23675. +#ifdef FREEBSD_WORKAROUND
  23676. +static const void *lt_preloaded_setup() {
  23677. + return lt__PROGRAM__LTX_preloaded_symbols;
  23678. +}
  23679. +#endif
  23680. +
  23681. #ifdef __cplusplus
  23682. }
  23683. #endif
  23684. -EOF
  23685. +_LT_EOF
  23686. # Now try linking the two files.
  23687. mv conftest.$ac_objext conftstm.$ac_objext
  23688. lt_save_LIBS="$LIBS"
  23689. lt_save_CFLAGS="$CFLAGS"
  23690. LIBS="conftstm.$ac_objext"
  23691. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23692. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23693. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23694. (eval $ac_link) 2>&5
  23695. ac_status=$?
  23696. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23697. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  23698. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23699. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23700. pipe_works=yes
  23701. fi
  23702. LIBS="$lt_save_LIBS"
  23703. @@ -6713,763 +5643,756 @@
  23704. lt_cv_sys_global_symbol_to_cdecl=
  23705. fi
  23706. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23707. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  23708. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23709. $as_echo "failed" >&6; }
  23710. else
  23711. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  23712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  23713. $as_echo "ok" >&6; }
  23714. fi
  23715. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  23716. -$as_echo_n "checking for objdir... " >&6; }
  23717. -if test "${lt_cv_objdir+set}" = set; then
  23718. - $as_echo_n "(cached) " >&6
  23719. -else
  23720. - rm -f .libs 2>/dev/null
  23721. -mkdir .libs 2>/dev/null
  23722. -if test -d .libs; then
  23723. - lt_cv_objdir=.libs
  23724. -else
  23725. - # MS-DOS does not allow filenames that begin with a dot.
  23726. - lt_cv_objdir=_libs
  23727. -fi
  23728. -rmdir .libs 2>/dev/null
  23729. -fi
  23730. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  23731. -$as_echo "$lt_cv_objdir" >&6; }
  23732. -objdir=$lt_cv_objdir
  23733. -case $host_os in
  23734. -aix3*)
  23735. - # AIX sometimes has problems with the GCC collect2 program. For some
  23736. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  23737. - # vanish in a puff of smoke.
  23738. - if test "X${COLLECT_NAMES+set}" != Xset; then
  23739. - COLLECT_NAMES=
  23740. - export COLLECT_NAMES
  23741. +
  23742. +
  23743. +
  23744. +
  23745. +
  23746. +
  23747. +
  23748. +
  23749. +
  23750. +
  23751. +
  23752. +
  23753. +
  23754. +
  23755. +
  23756. +
  23757. +
  23758. +# Check whether --enable-libtool-lock was given.
  23759. +if test "${enable_libtool_lock+set}" = set; then :
  23760. + enableval=$enable_libtool_lock;
  23761. +fi
  23762. +
  23763. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23764. +
  23765. +# Some flags need to be propagated to the compiler or linker for good
  23766. +# libtool support.
  23767. +case $host in
  23768. +ia64-*-hpux*)
  23769. + # Find out which ABI we are using.
  23770. + echo 'int i;' > conftest.$ac_ext
  23771. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23772. + (eval $ac_compile) 2>&5
  23773. + ac_status=$?
  23774. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23775. + test $ac_status = 0; }; then
  23776. + case `/usr/bin/file conftest.$ac_objext` in
  23777. + *ELF-32*)
  23778. + HPUX_IA64_MODE="32"
  23779. + ;;
  23780. + *ELF-64*)
  23781. + HPUX_IA64_MODE="64"
  23782. + ;;
  23783. + esac
  23784. fi
  23785. + rm -rf conftest*
  23786. + ;;
  23787. +*-*-irix6*)
  23788. + # Find out which ABI we are using.
  23789. + echo '#line 5706 "configure"' > conftest.$ac_ext
  23790. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23791. + (eval $ac_compile) 2>&5
  23792. + ac_status=$?
  23793. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23794. + test $ac_status = 0; }; then
  23795. + if test "$lt_cv_prog_gnu_ld" = yes; then
  23796. + case `/usr/bin/file conftest.$ac_objext` in
  23797. + *32-bit*)
  23798. + LD="${LD-ld} -melf32bsmip"
  23799. + ;;
  23800. + *N32*)
  23801. + LD="${LD-ld} -melf32bmipn32"
  23802. + ;;
  23803. + *64-bit*)
  23804. + LD="${LD-ld} -melf64bmip"
  23805. + ;;
  23806. + esac
  23807. + else
  23808. + case `/usr/bin/file conftest.$ac_objext` in
  23809. + *32-bit*)
  23810. + LD="${LD-ld} -32"
  23811. + ;;
  23812. + *N32*)
  23813. + LD="${LD-ld} -n32"
  23814. + ;;
  23815. + *64-bit*)
  23816. + LD="${LD-ld} -64"
  23817. + ;;
  23818. + esac
  23819. + fi
  23820. + fi
  23821. + rm -rf conftest*
  23822. ;;
  23823. -esac
  23824. -# Sed substitution that helps us do robust quoting. It backslashifies
  23825. -# metacharacters that are still active within double-quoted strings.
  23826. -Xsed='sed -e 1s/^X//'
  23827. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  23828. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  23829. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  23830. + # Find out which ABI we are using.
  23831. + echo 'int i;' > conftest.$ac_ext
  23832. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23833. + (eval $ac_compile) 2>&5
  23834. + ac_status=$?
  23835. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23836. + test $ac_status = 0; }; then
  23837. + case `/usr/bin/file conftest.o` in
  23838. + *32-bit*)
  23839. + case $host in
  23840. + x86_64-*kfreebsd*-gnu)
  23841. + LD="${LD-ld} -m elf_i386_fbsd"
  23842. + ;;
  23843. + x86_64-*linux*)
  23844. + LD="${LD-ld} -m elf_i386"
  23845. + ;;
  23846. + ppc64-*linux*|powerpc64-*linux*)
  23847. + LD="${LD-ld} -m elf32ppclinux"
  23848. + ;;
  23849. + s390x-*linux*)
  23850. + LD="${LD-ld} -m elf_s390"
  23851. + ;;
  23852. + sparc64-*linux*)
  23853. + LD="${LD-ld} -m elf32_sparc"
  23854. + ;;
  23855. + esac
  23856. + ;;
  23857. + *64-bit*)
  23858. + case $host in
  23859. + x86_64-*kfreebsd*-gnu)
  23860. + LD="${LD-ld} -m elf_x86_64_fbsd"
  23861. + ;;
  23862. + x86_64-*linux*)
  23863. + LD="${LD-ld} -m elf_x86_64"
  23864. + ;;
  23865. + ppc*-*linux*|powerpc*-*linux*)
  23866. + LD="${LD-ld} -m elf64ppc"
  23867. + ;;
  23868. + s390*-*linux*|s390*-*tpf*)
  23869. + LD="${LD-ld} -m elf64_s390"
  23870. + ;;
  23871. + sparc*-*linux*)
  23872. + LD="${LD-ld} -m elf64_sparc"
  23873. + ;;
  23874. + esac
  23875. + ;;
  23876. + esac
  23877. + fi
  23878. + rm -rf conftest*
  23879. + ;;
  23880. -# Same as above, but do not quote variable references.
  23881. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  23882. +*-*-sco3.2v5*)
  23883. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  23884. + SAVE_CFLAGS="$CFLAGS"
  23885. + CFLAGS="$CFLAGS -belf"
  23886. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  23887. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  23888. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  23889. + $as_echo_n "(cached) " >&6
  23890. +else
  23891. + ac_ext=c
  23892. +ac_cpp='$CPP $CPPFLAGS'
  23893. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23894. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23895. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23896. -# Sed substitution to delay expansion of an escaped shell variable in a
  23897. -# double_quote_subst'ed string.
  23898. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23899. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23900. +/* end confdefs.h. */
  23901. -# Sed substitution to avoid accidental globbing in evaled expressions
  23902. -no_glob_subst='s/\*/\\\*/g'
  23903. +int
  23904. +main ()
  23905. +{
  23906. -# Constants:
  23907. -rm="rm -f"
  23908. + ;
  23909. + return 0;
  23910. +}
  23911. +_ACEOF
  23912. +if ac_fn_c_try_link "$LINENO"; then :
  23913. + lt_cv_cc_needs_belf=yes
  23914. +else
  23915. + lt_cv_cc_needs_belf=no
  23916. +fi
  23917. +rm -f core conftest.err conftest.$ac_objext \
  23918. + conftest$ac_exeext conftest.$ac_ext
  23919. + ac_ext=c
  23920. +ac_cpp='$CPP $CPPFLAGS'
  23921. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23922. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23923. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23924. -# Global variables:
  23925. -default_ofile=libtool
  23926. -can_build_shared=yes
  23927. +fi
  23928. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  23929. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  23930. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  23931. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  23932. + CFLAGS="$SAVE_CFLAGS"
  23933. + fi
  23934. + ;;
  23935. +sparc*-*solaris*)
  23936. + # Find out which ABI we are using.
  23937. + echo 'int i;' > conftest.$ac_ext
  23938. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23939. + (eval $ac_compile) 2>&5
  23940. + ac_status=$?
  23941. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23942. + test $ac_status = 0; }; then
  23943. + case `/usr/bin/file conftest.o` in
  23944. + *64-bit*)
  23945. + case $lt_cv_prog_gnu_ld in
  23946. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  23947. + *)
  23948. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  23949. + LD="${LD-ld} -64"
  23950. + fi
  23951. + ;;
  23952. + esac
  23953. + ;;
  23954. + esac
  23955. + fi
  23956. + rm -rf conftest*
  23957. + ;;
  23958. +esac
  23959. -# All known linkers require a `.a' archive for static linking (except MSVC,
  23960. -# which needs '.lib').
  23961. -libext=a
  23962. -ltmain="$ac_aux_dir/ltmain.sh"
  23963. -ofile="$default_ofile"
  23964. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  23965. +need_locks="$enable_libtool_lock"
  23966. -if test -n "$ac_tool_prefix"; then
  23967. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  23968. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  23969. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23970. +
  23971. + case $host_os in
  23972. + rhapsody* | darwin*)
  23973. + if test -n "$ac_tool_prefix"; then
  23974. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  23975. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  23976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23977. $as_echo_n "checking for $ac_word... " >&6; }
  23978. -if test "${ac_cv_prog_AR+set}" = set; then
  23979. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  23980. $as_echo_n "(cached) " >&6
  23981. else
  23982. - if test -n "$AR"; then
  23983. - ac_cv_prog_AR="$AR" # Let the user override the test.
  23984. + if test -n "$DSYMUTIL"; then
  23985. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  23986. else
  23987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23988. for as_dir in $PATH
  23989. do
  23990. IFS=$as_save_IFS
  23991. test -z "$as_dir" && as_dir=.
  23992. - for ac_exec_ext in '' $ac_executable_extensions; do
  23993. + for ac_exec_ext in '' $ac_executable_extensions; do
  23994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23995. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  23996. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23997. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  23998. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23999. break 2
  24000. fi
  24001. done
  24002. -done
  24003. + done
  24004. IFS=$as_save_IFS
  24005. fi
  24006. fi
  24007. -AR=$ac_cv_prog_AR
  24008. -if test -n "$AR"; then
  24009. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  24010. -$as_echo "$AR" >&6; }
  24011. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24012. +if test -n "$DSYMUTIL"; then
  24013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24014. +$as_echo "$DSYMUTIL" >&6; }
  24015. else
  24016. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24018. $as_echo "no" >&6; }
  24019. fi
  24020. fi
  24021. -if test -z "$ac_cv_prog_AR"; then
  24022. - ac_ct_AR=$AR
  24023. - # Extract the first word of "ar", so it can be a program name with args.
  24024. -set dummy ar; ac_word=$2
  24025. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24026. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24027. + ac_ct_DSYMUTIL=$DSYMUTIL
  24028. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24029. +set dummy dsymutil; ac_word=$2
  24030. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24031. $as_echo_n "checking for $ac_word... " >&6; }
  24032. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  24033. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24034. $as_echo_n "(cached) " >&6
  24035. else
  24036. - if test -n "$ac_ct_AR"; then
  24037. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  24038. + if test -n "$ac_ct_DSYMUTIL"; then
  24039. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24040. else
  24041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24042. for as_dir in $PATH
  24043. do
  24044. IFS=$as_save_IFS
  24045. test -z "$as_dir" && as_dir=.
  24046. - for ac_exec_ext in '' $ac_executable_extensions; do
  24047. + for ac_exec_ext in '' $ac_executable_extensions; do
  24048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24049. - ac_cv_prog_ac_ct_AR="ar"
  24050. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24051. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24052. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24053. break 2
  24054. fi
  24055. done
  24056. -done
  24057. + done
  24058. IFS=$as_save_IFS
  24059. fi
  24060. fi
  24061. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  24062. -if test -n "$ac_ct_AR"; then
  24063. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  24064. -$as_echo "$ac_ct_AR" >&6; }
  24065. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24066. +if test -n "$ac_ct_DSYMUTIL"; then
  24067. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24068. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24069. else
  24070. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24071. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24072. $as_echo "no" >&6; }
  24073. fi
  24074. - if test "x$ac_ct_AR" = x; then
  24075. - AR="false"
  24076. + if test "x$ac_ct_DSYMUTIL" = x; then
  24077. + DSYMUTIL=":"
  24078. else
  24079. case $cross_compiling:$ac_tool_warned in
  24080. yes:)
  24081. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24083. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24084. ac_tool_warned=yes ;;
  24085. esac
  24086. - AR=$ac_ct_AR
  24087. + DSYMUTIL=$ac_ct_DSYMUTIL
  24088. fi
  24089. else
  24090. - AR="$ac_cv_prog_AR"
  24091. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24092. fi
  24093. -if test -n "$ac_tool_prefix"; then
  24094. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  24095. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  24096. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24097. + if test -n "$ac_tool_prefix"; then
  24098. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24099. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24101. $as_echo_n "checking for $ac_word... " >&6; }
  24102. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  24103. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24104. $as_echo_n "(cached) " >&6
  24105. else
  24106. - if test -n "$RANLIB"; then
  24107. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  24108. + if test -n "$NMEDIT"; then
  24109. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24110. else
  24111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24112. for as_dir in $PATH
  24113. do
  24114. IFS=$as_save_IFS
  24115. test -z "$as_dir" && as_dir=.
  24116. - for ac_exec_ext in '' $ac_executable_extensions; do
  24117. + for ac_exec_ext in '' $ac_executable_extensions; do
  24118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24119. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  24120. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24121. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24122. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24123. break 2
  24124. fi
  24125. done
  24126. -done
  24127. + done
  24128. IFS=$as_save_IFS
  24129. fi
  24130. fi
  24131. -RANLIB=$ac_cv_prog_RANLIB
  24132. -if test -n "$RANLIB"; then
  24133. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  24134. -$as_echo "$RANLIB" >&6; }
  24135. +NMEDIT=$ac_cv_prog_NMEDIT
  24136. +if test -n "$NMEDIT"; then
  24137. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24138. +$as_echo "$NMEDIT" >&6; }
  24139. else
  24140. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24141. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24142. $as_echo "no" >&6; }
  24143. fi
  24144. fi
  24145. -if test -z "$ac_cv_prog_RANLIB"; then
  24146. - ac_ct_RANLIB=$RANLIB
  24147. - # Extract the first word of "ranlib", so it can be a program name with args.
  24148. -set dummy ranlib; ac_word=$2
  24149. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24150. +if test -z "$ac_cv_prog_NMEDIT"; then
  24151. + ac_ct_NMEDIT=$NMEDIT
  24152. + # Extract the first word of "nmedit", so it can be a program name with args.
  24153. +set dummy nmedit; ac_word=$2
  24154. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24155. $as_echo_n "checking for $ac_word... " >&6; }
  24156. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  24157. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  24158. $as_echo_n "(cached) " >&6
  24159. else
  24160. - if test -n "$ac_ct_RANLIB"; then
  24161. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  24162. + if test -n "$ac_ct_NMEDIT"; then
  24163. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24164. else
  24165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24166. for as_dir in $PATH
  24167. do
  24168. IFS=$as_save_IFS
  24169. test -z "$as_dir" && as_dir=.
  24170. - for ac_exec_ext in '' $ac_executable_extensions; do
  24171. + for ac_exec_ext in '' $ac_executable_extensions; do
  24172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24173. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  24174. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24175. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24176. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24177. break 2
  24178. fi
  24179. done
  24180. -done
  24181. + done
  24182. IFS=$as_save_IFS
  24183. fi
  24184. fi
  24185. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  24186. -if test -n "$ac_ct_RANLIB"; then
  24187. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  24188. -$as_echo "$ac_ct_RANLIB" >&6; }
  24189. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24190. +if test -n "$ac_ct_NMEDIT"; then
  24191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  24192. +$as_echo "$ac_ct_NMEDIT" >&6; }
  24193. else
  24194. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24195. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24196. $as_echo "no" >&6; }
  24197. fi
  24198. - if test "x$ac_ct_RANLIB" = x; then
  24199. - RANLIB=":"
  24200. + if test "x$ac_ct_NMEDIT" = x; then
  24201. + NMEDIT=":"
  24202. else
  24203. case $cross_compiling:$ac_tool_warned in
  24204. yes:)
  24205. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24207. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24208. ac_tool_warned=yes ;;
  24209. esac
  24210. - RANLIB=$ac_ct_RANLIB
  24211. + NMEDIT=$ac_ct_NMEDIT
  24212. fi
  24213. else
  24214. - RANLIB="$ac_cv_prog_RANLIB"
  24215. + NMEDIT="$ac_cv_prog_NMEDIT"
  24216. fi
  24217. -if test -n "$ac_tool_prefix"; then
  24218. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  24219. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  24220. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24221. + if test -n "$ac_tool_prefix"; then
  24222. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  24223. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  24224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24225. $as_echo_n "checking for $ac_word... " >&6; }
  24226. -if test "${ac_cv_prog_STRIP+set}" = set; then
  24227. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  24228. $as_echo_n "(cached) " >&6
  24229. else
  24230. - if test -n "$STRIP"; then
  24231. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  24232. + if test -n "$LIPO"; then
  24233. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  24234. else
  24235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24236. for as_dir in $PATH
  24237. do
  24238. IFS=$as_save_IFS
  24239. test -z "$as_dir" && as_dir=.
  24240. - for ac_exec_ext in '' $ac_executable_extensions; do
  24241. + for ac_exec_ext in '' $ac_executable_extensions; do
  24242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24243. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  24244. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24245. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  24246. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24247. break 2
  24248. fi
  24249. done
  24250. -done
  24251. + done
  24252. IFS=$as_save_IFS
  24253. fi
  24254. fi
  24255. -STRIP=$ac_cv_prog_STRIP
  24256. -if test -n "$STRIP"; then
  24257. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  24258. -$as_echo "$STRIP" >&6; }
  24259. +LIPO=$ac_cv_prog_LIPO
  24260. +if test -n "$LIPO"; then
  24261. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  24262. +$as_echo "$LIPO" >&6; }
  24263. else
  24264. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24265. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24266. $as_echo "no" >&6; }
  24267. fi
  24268. fi
  24269. -if test -z "$ac_cv_prog_STRIP"; then
  24270. - ac_ct_STRIP=$STRIP
  24271. - # Extract the first word of "strip", so it can be a program name with args.
  24272. -set dummy strip; ac_word=$2
  24273. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24274. +if test -z "$ac_cv_prog_LIPO"; then
  24275. + ac_ct_LIPO=$LIPO
  24276. + # Extract the first word of "lipo", so it can be a program name with args.
  24277. +set dummy lipo; ac_word=$2
  24278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24279. $as_echo_n "checking for $ac_word... " >&6; }
  24280. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  24281. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  24282. $as_echo_n "(cached) " >&6
  24283. else
  24284. - if test -n "$ac_ct_STRIP"; then
  24285. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  24286. + if test -n "$ac_ct_LIPO"; then
  24287. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  24288. else
  24289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24290. for as_dir in $PATH
  24291. do
  24292. IFS=$as_save_IFS
  24293. test -z "$as_dir" && as_dir=.
  24294. - for ac_exec_ext in '' $ac_executable_extensions; do
  24295. + for ac_exec_ext in '' $ac_executable_extensions; do
  24296. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24297. - ac_cv_prog_ac_ct_STRIP="strip"
  24298. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24299. + ac_cv_prog_ac_ct_LIPO="lipo"
  24300. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24301. break 2
  24302. fi
  24303. done
  24304. -done
  24305. + done
  24306. IFS=$as_save_IFS
  24307. fi
  24308. fi
  24309. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24310. -if test -n "$ac_ct_STRIP"; then
  24311. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  24312. -$as_echo "$ac_ct_STRIP" >&6; }
  24313. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24314. +if test -n "$ac_ct_LIPO"; then
  24315. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24316. +$as_echo "$ac_ct_LIPO" >&6; }
  24317. else
  24318. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24319. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24320. $as_echo "no" >&6; }
  24321. fi
  24322. - if test "x$ac_ct_STRIP" = x; then
  24323. - STRIP=":"
  24324. + if test "x$ac_ct_LIPO" = x; then
  24325. + LIPO=":"
  24326. else
  24327. case $cross_compiling:$ac_tool_warned in
  24328. yes:)
  24329. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24332. ac_tool_warned=yes ;;
  24333. esac
  24334. - STRIP=$ac_ct_STRIP
  24335. + LIPO=$ac_ct_LIPO
  24336. fi
  24337. else
  24338. - STRIP="$ac_cv_prog_STRIP"
  24339. -fi
  24340. -
  24341. -
  24342. -old_CC="$CC"
  24343. -old_CFLAGS="$CFLAGS"
  24344. -
  24345. -# Set sane defaults for various variables
  24346. -test -z "$AR" && AR=ar
  24347. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  24348. -test -z "$AS" && AS=as
  24349. -test -z "$CC" && CC=cc
  24350. -test -z "$LTCC" && LTCC=$CC
  24351. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  24352. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  24353. -test -z "$LD" && LD=ld
  24354. -test -z "$LN_S" && LN_S="ln -s"
  24355. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  24356. -test -z "$NM" && NM=nm
  24357. -test -z "$SED" && SED=sed
  24358. -test -z "$OBJDUMP" && OBJDUMP=objdump
  24359. -test -z "$RANLIB" && RANLIB=:
  24360. -test -z "$STRIP" && STRIP=:
  24361. -test -z "$ac_objext" && ac_objext=o
  24362. -
  24363. -# Determine commands to create old-style static archives.
  24364. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  24365. -old_postinstall_cmds='chmod 644 $oldlib'
  24366. -old_postuninstall_cmds=
  24367. -
  24368. -if test -n "$RANLIB"; then
  24369. - case $host_os in
  24370. - openbsd*)
  24371. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  24372. - ;;
  24373. - *)
  24374. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  24375. - ;;
  24376. - esac
  24377. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  24378. -fi
  24379. -
  24380. -for cc_temp in $compiler""; do
  24381. - case $cc_temp in
  24382. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24383. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24384. - \-*) ;;
  24385. - *) break;;
  24386. - esac
  24387. -done
  24388. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24389. -
  24390. -
  24391. -# Only perform the check for file, if the check method requires it
  24392. -case $deplibs_check_method in
  24393. -file_magic*)
  24394. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  24395. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  24396. -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  24397. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24398. - $as_echo_n "(cached) " >&6
  24399. -else
  24400. - case $MAGIC_CMD in
  24401. -[\\/*] | ?:[\\/]*)
  24402. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24403. - ;;
  24404. -*)
  24405. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24406. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24407. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24408. - for ac_dir in $ac_dummy; do
  24409. - IFS="$lt_save_ifs"
  24410. - test -z "$ac_dir" && ac_dir=.
  24411. - if test -f $ac_dir/${ac_tool_prefix}file; then
  24412. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  24413. - if test -n "$file_magic_test_file"; then
  24414. - case $deplibs_check_method in
  24415. - "file_magic "*)
  24416. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24417. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24418. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24419. - $EGREP "$file_magic_regex" > /dev/null; then
  24420. - :
  24421. - else
  24422. - cat <<EOF 1>&2
  24423. -
  24424. -*** Warning: the command libtool uses to detect shared libraries,
  24425. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24426. -*** The result is that libtool may fail to recognize shared libraries
  24427. -*** as such. This will affect the creation of libtool libraries that
  24428. -*** depend on shared libraries, but programs linked with such libtool
  24429. -*** libraries will work regardless of this problem. Nevertheless, you
  24430. -*** may want to report the problem to your system manager and/or to
  24431. -*** bug-libtool@gnu.org
  24432. -
  24433. -EOF
  24434. - fi ;;
  24435. - esac
  24436. - fi
  24437. - break
  24438. - fi
  24439. - done
  24440. - IFS="$lt_save_ifs"
  24441. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24442. - ;;
  24443. -esac
  24444. -fi
  24445. -
  24446. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24447. -if test -n "$MAGIC_CMD"; then
  24448. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24449. -$as_echo "$MAGIC_CMD" >&6; }
  24450. -else
  24451. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24452. -$as_echo "no" >&6; }
  24453. -fi
  24454. -
  24455. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  24456. - if test -n "$ac_tool_prefix"; then
  24457. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  24458. -$as_echo_n "checking for file... " >&6; }
  24459. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  24460. - $as_echo_n "(cached) " >&6
  24461. -else
  24462. - case $MAGIC_CMD in
  24463. -[\\/*] | ?:[\\/]*)
  24464. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  24465. - ;;
  24466. -*)
  24467. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  24468. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24469. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  24470. - for ac_dir in $ac_dummy; do
  24471. - IFS="$lt_save_ifs"
  24472. - test -z "$ac_dir" && ac_dir=.
  24473. - if test -f $ac_dir/file; then
  24474. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  24475. - if test -n "$file_magic_test_file"; then
  24476. - case $deplibs_check_method in
  24477. - "file_magic "*)
  24478. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  24479. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24480. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  24481. - $EGREP "$file_magic_regex" > /dev/null; then
  24482. - :
  24483. - else
  24484. - cat <<EOF 1>&2
  24485. -
  24486. -*** Warning: the command libtool uses to detect shared libraries,
  24487. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  24488. -*** The result is that libtool may fail to recognize shared libraries
  24489. -*** as such. This will affect the creation of libtool libraries that
  24490. -*** depend on shared libraries, but programs linked with such libtool
  24491. -*** libraries will work regardless of this problem. Nevertheless, you
  24492. -*** may want to report the problem to your system manager and/or to
  24493. -*** bug-libtool@gnu.org
  24494. -
  24495. -EOF
  24496. - fi ;;
  24497. - esac
  24498. - fi
  24499. - break
  24500. - fi
  24501. - done
  24502. - IFS="$lt_save_ifs"
  24503. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  24504. - ;;
  24505. -esac
  24506. -fi
  24507. -
  24508. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  24509. -if test -n "$MAGIC_CMD"; then
  24510. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  24511. -$as_echo "$MAGIC_CMD" >&6; }
  24512. -else
  24513. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24514. -$as_echo "no" >&6; }
  24515. -fi
  24516. -
  24517. - else
  24518. - MAGIC_CMD=:
  24519. - fi
  24520. + LIPO="$ac_cv_prog_LIPO"
  24521. fi
  24522. - fi
  24523. - ;;
  24524. -esac
  24525. -
  24526. -
  24527. - case $host_os in
  24528. - rhapsody* | darwin*)
  24529. if test -n "$ac_tool_prefix"; then
  24530. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24531. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24532. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24533. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24534. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24535. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24536. $as_echo_n "checking for $ac_word... " >&6; }
  24537. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  24538. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24539. $as_echo_n "(cached) " >&6
  24540. else
  24541. - if test -n "$DSYMUTIL"; then
  24542. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24543. + if test -n "$OTOOL"; then
  24544. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24545. else
  24546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24547. for as_dir in $PATH
  24548. do
  24549. IFS=$as_save_IFS
  24550. test -z "$as_dir" && as_dir=.
  24551. - for ac_exec_ext in '' $ac_executable_extensions; do
  24552. + for ac_exec_ext in '' $ac_executable_extensions; do
  24553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24554. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24555. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24556. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24557. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24558. break 2
  24559. fi
  24560. done
  24561. -done
  24562. + done
  24563. IFS=$as_save_IFS
  24564. fi
  24565. fi
  24566. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24567. -if test -n "$DSYMUTIL"; then
  24568. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  24569. -$as_echo "$DSYMUTIL" >&6; }
  24570. +OTOOL=$ac_cv_prog_OTOOL
  24571. +if test -n "$OTOOL"; then
  24572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24573. +$as_echo "$OTOOL" >&6; }
  24574. else
  24575. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24577. $as_echo "no" >&6; }
  24578. fi
  24579. fi
  24580. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  24581. - ac_ct_DSYMUTIL=$DSYMUTIL
  24582. - # Extract the first word of "dsymutil", so it can be a program name with args.
  24583. -set dummy dsymutil; ac_word=$2
  24584. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24585. +if test -z "$ac_cv_prog_OTOOL"; then
  24586. + ac_ct_OTOOL=$OTOOL
  24587. + # Extract the first word of "otool", so it can be a program name with args.
  24588. +set dummy otool; ac_word=$2
  24589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24590. $as_echo_n "checking for $ac_word... " >&6; }
  24591. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  24592. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24593. $as_echo_n "(cached) " >&6
  24594. else
  24595. - if test -n "$ac_ct_DSYMUTIL"; then
  24596. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24597. + if test -n "$ac_ct_OTOOL"; then
  24598. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24599. else
  24600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24601. for as_dir in $PATH
  24602. do
  24603. IFS=$as_save_IFS
  24604. test -z "$as_dir" && as_dir=.
  24605. - for ac_exec_ext in '' $ac_executable_extensions; do
  24606. + for ac_exec_ext in '' $ac_executable_extensions; do
  24607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24608. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24609. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24610. + ac_cv_prog_ac_ct_OTOOL="otool"
  24611. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24612. break 2
  24613. fi
  24614. done
  24615. -done
  24616. + done
  24617. IFS=$as_save_IFS
  24618. fi
  24619. fi
  24620. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24621. -if test -n "$ac_ct_DSYMUTIL"; then
  24622. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  24623. -$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24624. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24625. +if test -n "$ac_ct_OTOOL"; then
  24626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24627. +$as_echo "$ac_ct_OTOOL" >&6; }
  24628. else
  24629. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24630. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24631. $as_echo "no" >&6; }
  24632. fi
  24633. - if test "x$ac_ct_DSYMUTIL" = x; then
  24634. - DSYMUTIL=":"
  24635. + if test "x$ac_ct_OTOOL" = x; then
  24636. + OTOOL=":"
  24637. else
  24638. case $cross_compiling:$ac_tool_warned in
  24639. yes:)
  24640. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24641. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24643. ac_tool_warned=yes ;;
  24644. esac
  24645. - DSYMUTIL=$ac_ct_DSYMUTIL
  24646. + OTOOL=$ac_ct_OTOOL
  24647. fi
  24648. else
  24649. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24650. + OTOOL="$ac_cv_prog_OTOOL"
  24651. fi
  24652. if test -n "$ac_tool_prefix"; then
  24653. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24654. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24655. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24656. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  24657. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  24658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24659. $as_echo_n "checking for $ac_word... " >&6; }
  24660. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  24661. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  24662. $as_echo_n "(cached) " >&6
  24663. else
  24664. - if test -n "$NMEDIT"; then
  24665. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24666. + if test -n "$OTOOL64"; then
  24667. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  24668. else
  24669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24670. for as_dir in $PATH
  24671. do
  24672. IFS=$as_save_IFS
  24673. test -z "$as_dir" && as_dir=.
  24674. - for ac_exec_ext in '' $ac_executable_extensions; do
  24675. + for ac_exec_ext in '' $ac_executable_extensions; do
  24676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24677. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24678. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24679. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  24680. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24681. break 2
  24682. fi
  24683. done
  24684. -done
  24685. + done
  24686. IFS=$as_save_IFS
  24687. fi
  24688. fi
  24689. -NMEDIT=$ac_cv_prog_NMEDIT
  24690. -if test -n "$NMEDIT"; then
  24691. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  24692. -$as_echo "$NMEDIT" >&6; }
  24693. +OTOOL64=$ac_cv_prog_OTOOL64
  24694. +if test -n "$OTOOL64"; then
  24695. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  24696. +$as_echo "$OTOOL64" >&6; }
  24697. else
  24698. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24699. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24700. $as_echo "no" >&6; }
  24701. fi
  24702. fi
  24703. -if test -z "$ac_cv_prog_NMEDIT"; then
  24704. - ac_ct_NMEDIT=$NMEDIT
  24705. - # Extract the first word of "nmedit", so it can be a program name with args.
  24706. -set dummy nmedit; ac_word=$2
  24707. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24708. +if test -z "$ac_cv_prog_OTOOL64"; then
  24709. + ac_ct_OTOOL64=$OTOOL64
  24710. + # Extract the first word of "otool64", so it can be a program name with args.
  24711. +set dummy otool64; ac_word=$2
  24712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24713. $as_echo_n "checking for $ac_word... " >&6; }
  24714. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  24715. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24716. $as_echo_n "(cached) " >&6
  24717. else
  24718. - if test -n "$ac_ct_NMEDIT"; then
  24719. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24720. + if test -n "$ac_ct_OTOOL64"; then
  24721. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24722. else
  24723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24724. for as_dir in $PATH
  24725. do
  24726. IFS=$as_save_IFS
  24727. test -z "$as_dir" && as_dir=.
  24728. - for ac_exec_ext in '' $ac_executable_extensions; do
  24729. + for ac_exec_ext in '' $ac_executable_extensions; do
  24730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24731. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24732. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24733. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24734. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24735. break 2
  24736. fi
  24737. done
  24738. -done
  24739. + done
  24740. IFS=$as_save_IFS
  24741. fi
  24742. fi
  24743. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24744. -if test -n "$ac_ct_NMEDIT"; then
  24745. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  24746. -$as_echo "$ac_ct_NMEDIT" >&6; }
  24747. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24748. +if test -n "$ac_ct_OTOOL64"; then
  24749. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24750. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24751. else
  24752. - { $as_echo "$as_me:$LINENO: result: no" >&5
  24753. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24754. $as_echo "no" >&6; }
  24755. fi
  24756. - if test "x$ac_ct_NMEDIT" = x; then
  24757. - NMEDIT=":"
  24758. + if test "x$ac_ct_OTOOL64" = x; then
  24759. + OTOOL64=":"
  24760. else
  24761. case $cross_compiling:$ac_tool_warned in
  24762. yes:)
  24763. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  24764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24766. ac_tool_warned=yes ;;
  24767. esac
  24768. - NMEDIT=$ac_ct_NMEDIT
  24769. + OTOOL64=$ac_ct_OTOOL64
  24770. fi
  24771. else
  24772. - NMEDIT="$ac_cv_prog_NMEDIT"
  24773. + OTOOL64="$ac_cv_prog_OTOOL64"
  24774. fi
  24775. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  24776. +
  24777. +
  24778. +
  24779. +
  24780. +
  24781. +
  24782. +
  24783. +
  24784. +
  24785. +
  24786. +
  24787. +
  24788. +
  24789. +
  24790. +
  24791. +
  24792. +
  24793. +
  24794. +
  24795. +
  24796. +
  24797. +
  24798. +
  24799. +
  24800. +
  24801. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  24802. $as_echo_n "checking for -single_module linker flag... " >&6; }
  24803. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  24804. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  24805. $as_echo_n "(cached) " >&6
  24806. else
  24807. lt_cv_apple_cc_single_mod=no
  24808. if test -z "${LT_MULTI_MODULE}"; then
  24809. - # By default we will add the -single_module flag. You can override
  24810. - # by either setting the environment variable LT_MULTI_MODULE
  24811. - # non-empty at configure time, or by adding -multi_module to the
  24812. - # link flags.
  24813. - echo "int foo(void){return 1;}" > conftest.c
  24814. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24815. - -dynamiclib ${wl}-single_module conftest.c
  24816. - if test -f libconftest.dylib; then
  24817. - lt_cv_apple_cc_single_mod=yes
  24818. - rm -rf libconftest.dylib*
  24819. - fi
  24820. - rm conftest.c
  24821. + # By default we will add the -single_module flag. You can override
  24822. + # by either setting the environment variable LT_MULTI_MODULE
  24823. + # non-empty at configure time, or by adding -multi_module to the
  24824. + # link flags.
  24825. + rm -rf libconftest.dylib*
  24826. + echo "int foo(void){return 1;}" > conftest.c
  24827. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24828. +-dynamiclib -Wl,-single_module conftest.c" >&5
  24829. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24830. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  24831. + _lt_result=$?
  24832. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  24833. + lt_cv_apple_cc_single_mod=yes
  24834. + else
  24835. + cat conftest.err >&5
  24836. + fi
  24837. + rm -rf libconftest.dylib*
  24838. + rm -f conftest.*
  24839. fi
  24840. fi
  24841. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  24842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  24843. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  24844. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  24845. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  24846. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  24847. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  24848. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  24849. $as_echo_n "(cached) " >&6
  24850. else
  24851. lt_cv_ld_exported_symbols_list=no
  24852. save_LDFLAGS=$LDFLAGS
  24853. echo "_main" > conftest.sym
  24854. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  24855. - cat >conftest.$ac_ext <<_ACEOF
  24856. -/* confdefs.h. */
  24857. -_ACEOF
  24858. -cat confdefs.h >>conftest.$ac_ext
  24859. -cat >>conftest.$ac_ext <<_ACEOF
  24860. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24861. /* end confdefs.h. */
  24862. int
  24863. @@ -7480,59 +6403,34 @@
  24864. return 0;
  24865. }
  24866. _ACEOF
  24867. -rm -f conftest.$ac_objext conftest$ac_exeext
  24868. -if { (ac_try="$ac_link"
  24869. -case "(($ac_try" in
  24870. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24871. - *) ac_try_echo=$ac_try;;
  24872. -esac
  24873. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24874. -$as_echo "$ac_try_echo") >&5
  24875. - (eval "$ac_link") 2>conftest.er1
  24876. - ac_status=$?
  24877. - grep -v '^ *+' conftest.er1 >conftest.err
  24878. - rm -f conftest.er1
  24879. - cat conftest.err >&5
  24880. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24881. - (exit $ac_status); } && {
  24882. - test -z "$ac_c_werror_flag" ||
  24883. - test ! -s conftest.err
  24884. - } && test -s conftest$ac_exeext && {
  24885. - test "$cross_compiling" = yes ||
  24886. - $as_test_x conftest$ac_exeext
  24887. - }; then
  24888. +if ac_fn_c_try_link "$LINENO"; then :
  24889. lt_cv_ld_exported_symbols_list=yes
  24890. else
  24891. - $as_echo "$as_me: failed program was:" >&5
  24892. -sed 's/^/| /' conftest.$ac_ext >&5
  24893. -
  24894. - lt_cv_ld_exported_symbols_list=no
  24895. + lt_cv_ld_exported_symbols_list=no
  24896. fi
  24897. -
  24898. -rm -rf conftest.dSYM
  24899. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24900. - conftest$ac_exeext conftest.$ac_ext
  24901. - LDFLAGS="$save_LDFLAGS"
  24902. +rm -f core conftest.err conftest.$ac_objext \
  24903. + conftest$ac_exeext conftest.$ac_ext
  24904. + LDFLAGS="$save_LDFLAGS"
  24905. fi
  24906. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  24907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  24908. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  24909. case $host_os in
  24910. - rhapsody* | darwin1.[0123])
  24911. + rhapsody* | darwin1.[012])
  24912. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  24913. darwin1.*)
  24914. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24915. - darwin*)
  24916. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24917. + darwin*) # darwin 5.x on
  24918. # if running on 10.5 or later, the deployment target defaults
  24919. # to the OS version, if on x86, and 10.4, the deployment
  24920. # target defaults to 10.4. Don't you love it?
  24921. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  24922. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24923. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24924. - 10.[012]*)
  24925. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24926. - 10.*)
  24927. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24928. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24929. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24930. + 10.[012]*)
  24931. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24932. + 10.*)
  24933. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24934. esac
  24935. ;;
  24936. esac
  24937. @@ -7542,40 +6440,147 @@
  24938. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  24939. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  24940. else
  24941. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  24942. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24943. fi
  24944. if test "$DSYMUTIL" != ":"; then
  24945. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  24946. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  24947. else
  24948. _lt_dsymutil=
  24949. fi
  24950. ;;
  24951. esac
  24952. +ac_ext=c
  24953. +ac_cpp='$CPP $CPPFLAGS'
  24954. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24955. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24956. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24957. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  24958. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  24959. +# On Suns, sometimes $CPP names a directory.
  24960. +if test -n "$CPP" && test -d "$CPP"; then
  24961. + CPP=
  24962. +fi
  24963. +if test -z "$CPP"; then
  24964. + if test "${ac_cv_prog_CPP+set}" = set; then :
  24965. + $as_echo_n "(cached) " >&6
  24966. +else
  24967. + # Double quotes because CPP needs to be expanded
  24968. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  24969. + do
  24970. + ac_preproc_ok=false
  24971. +for ac_c_preproc_warn_flag in '' yes
  24972. +do
  24973. + # Use a header file that comes with gcc, so configuring glibc
  24974. + # with a fresh cross-compiler works.
  24975. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24976. + # <limits.h> exists even on freestanding compilers.
  24977. + # On the NeXT, cc -E runs the code through the compiler's parser,
  24978. + # not just through cpp. "Syntax error" is here to catch this case.
  24979. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24980. +/* end confdefs.h. */
  24981. +#ifdef __STDC__
  24982. +# include <limits.h>
  24983. +#else
  24984. +# include <assert.h>
  24985. +#endif
  24986. + Syntax error
  24987. +_ACEOF
  24988. +if ac_fn_c_try_cpp "$LINENO"; then :
  24989. -enable_dlopen=no
  24990. -enable_win32_dll=no
  24991. +else
  24992. + # Broken: fails on valid input.
  24993. +continue
  24994. +fi
  24995. +rm -f conftest.err conftest.$ac_ext
  24996. -# Check whether --enable-libtool-lock was given.
  24997. -if test "${enable_libtool_lock+set}" = set; then
  24998. - enableval=$enable_libtool_lock;
  24999. + # OK, works on sane cases. Now check whether nonexistent headers
  25000. + # can be detected and how.
  25001. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25002. +/* end confdefs.h. */
  25003. +#include <ac_nonexistent.h>
  25004. +_ACEOF
  25005. +if ac_fn_c_try_cpp "$LINENO"; then :
  25006. + # Broken: success on invalid input.
  25007. +continue
  25008. +else
  25009. + # Passes both tests.
  25010. +ac_preproc_ok=:
  25011. +break
  25012. fi
  25013. +rm -f conftest.err conftest.$ac_ext
  25014. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  25015. +done
  25016. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25017. +rm -f conftest.err conftest.$ac_ext
  25018. +if $ac_preproc_ok; then :
  25019. + break
  25020. +fi
  25021. + done
  25022. + ac_cv_prog_CPP=$CPP
  25023. -# Check whether --with-pic was given.
  25024. -if test "${with_pic+set}" = set; then
  25025. - withval=$with_pic; pic_mode="$withval"
  25026. +fi
  25027. + CPP=$ac_cv_prog_CPP
  25028. else
  25029. - pic_mode=default
  25030. + ac_cv_prog_CPP=$CPP
  25031. +fi
  25032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  25033. +$as_echo "$CPP" >&6; }
  25034. +ac_preproc_ok=false
  25035. +for ac_c_preproc_warn_flag in '' yes
  25036. +do
  25037. + # Use a header file that comes with gcc, so configuring glibc
  25038. + # with a fresh cross-compiler works.
  25039. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25040. + # <limits.h> exists even on freestanding compilers.
  25041. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25042. + # not just through cpp. "Syntax error" is here to catch this case.
  25043. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25044. +/* end confdefs.h. */
  25045. +#ifdef __STDC__
  25046. +# include <limits.h>
  25047. +#else
  25048. +# include <assert.h>
  25049. +#endif
  25050. + Syntax error
  25051. +_ACEOF
  25052. +if ac_fn_c_try_cpp "$LINENO"; then :
  25053. +
  25054. +else
  25055. + # Broken: fails on valid input.
  25056. +continue
  25057. fi
  25058. +rm -f conftest.err conftest.$ac_ext
  25059. -test -z "$pic_mode" && pic_mode=default
  25060. + # OK, works on sane cases. Now check whether nonexistent headers
  25061. + # can be detected and how.
  25062. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25063. +/* end confdefs.h. */
  25064. +#include <ac_nonexistent.h>
  25065. +_ACEOF
  25066. +if ac_fn_c_try_cpp "$LINENO"; then :
  25067. + # Broken: success on invalid input.
  25068. +continue
  25069. +else
  25070. + # Passes both tests.
  25071. +ac_preproc_ok=:
  25072. +break
  25073. +fi
  25074. +rm -f conftest.err conftest.$ac_ext
  25075. +
  25076. +done
  25077. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25078. +rm -f conftest.err conftest.$ac_ext
  25079. +if $ac_preproc_ok; then :
  25080. +
  25081. +else
  25082. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25083. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25084. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  25085. +See \`config.log' for more details." "$LINENO" 5; }
  25086. +fi
  25087. -# Use C for the default configuration in the libtool script
  25088. -tagname=
  25089. -lt_save_CC="$CC"
  25090. ac_ext=c
  25091. ac_cpp='$CPP $CPPFLAGS'
  25092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25093. @@ -7583,6084 +6588,3002 @@
  25094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25095. -# Source file extension for C test sources.
  25096. -ac_ext=c
  25097. -
  25098. -# Object file extension for compiled C test sources.
  25099. -objext=o
  25100. -objext=$objext
  25101. -
  25102. -# Code to be used in simple compile tests
  25103. -lt_simple_compile_test_code="int some_variable = 0;"
  25104. -
  25105. -# Code to be used in simple link tests
  25106. -lt_simple_link_test_code='int main(){return(0);}'
  25107. -
  25108. -
  25109. -# If no C compiler was specified, use CC.
  25110. -LTCC=${LTCC-"$CC"}
  25111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25112. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25113. +if test "${ac_cv_header_stdc+set}" = set; then :
  25114. + $as_echo_n "(cached) " >&6
  25115. +else
  25116. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25117. +/* end confdefs.h. */
  25118. +#include <stdlib.h>
  25119. +#include <stdarg.h>
  25120. +#include <string.h>
  25121. +#include <float.h>
  25122. -# If no C compiler flags were specified, use CFLAGS.
  25123. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25124. +int
  25125. +main ()
  25126. +{
  25127. -# Allow CC to be a program name with arguments.
  25128. -compiler=$CC
  25129. + ;
  25130. + return 0;
  25131. +}
  25132. +_ACEOF
  25133. +if ac_fn_c_try_compile "$LINENO"; then :
  25134. + ac_cv_header_stdc=yes
  25135. +else
  25136. + ac_cv_header_stdc=no
  25137. +fi
  25138. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25139. +if test $ac_cv_header_stdc = yes; then
  25140. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25141. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25142. +/* end confdefs.h. */
  25143. +#include <string.h>
  25144. -# save warnings/boilerplate of simple test code
  25145. -ac_outfile=conftest.$ac_objext
  25146. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  25147. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25148. -_lt_compiler_boilerplate=`cat conftest.err`
  25149. -$rm conftest*
  25150. +_ACEOF
  25151. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25152. + $EGREP "memchr" >/dev/null 2>&1; then :
  25153. -ac_outfile=conftest.$ac_objext
  25154. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  25155. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25156. -_lt_linker_boilerplate=`cat conftest.err`
  25157. -$rm -r conftest*
  25158. +else
  25159. + ac_cv_header_stdc=no
  25160. +fi
  25161. +rm -f conftest*
  25162. +fi
  25163. +if test $ac_cv_header_stdc = yes; then
  25164. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25165. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25166. +/* end confdefs.h. */
  25167. +#include <stdlib.h>
  25168. -lt_prog_compiler_no_builtin_flag=
  25169. +_ACEOF
  25170. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25171. + $EGREP "free" >/dev/null 2>&1; then :
  25172. -if test "$GCC" = yes; then
  25173. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  25174. +else
  25175. + ac_cv_header_stdc=no
  25176. +fi
  25177. +rm -f conftest*
  25178. +fi
  25179. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  25180. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  25181. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  25182. - $as_echo_n "(cached) " >&6
  25183. +if test $ac_cv_header_stdc = yes; then
  25184. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25185. + if test "$cross_compiling" = yes; then :
  25186. + :
  25187. else
  25188. - lt_cv_prog_compiler_rtti_exceptions=no
  25189. - ac_outfile=conftest.$ac_objext
  25190. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25191. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  25192. - # Insert the option either (1) after the last *FLAGS variable, or
  25193. - # (2) before a word containing "conftest.", or (3) at the end.
  25194. - # Note that $ac_compile itself does not contain backslashes and begins
  25195. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25196. - # The option is referenced via a variable to avoid confusing sed.
  25197. - lt_compile=`echo "$ac_compile" | $SED \
  25198. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25199. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25200. - -e 's:$: $lt_compiler_flag:'`
  25201. - (eval echo "\"\$as_me:7649: $lt_compile\"" >&5)
  25202. - (eval "$lt_compile" 2>conftest.err)
  25203. - ac_status=$?
  25204. - cat conftest.err >&5
  25205. - echo "$as_me:7653: \$? = $ac_status" >&5
  25206. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25207. - # The compiler can only warn and ignore the option if not recognized
  25208. - # So say no if there are warnings other than the usual output.
  25209. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25210. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25211. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25212. - lt_cv_prog_compiler_rtti_exceptions=yes
  25213. - fi
  25214. - fi
  25215. - $rm conftest*
  25216. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25217. +/* end confdefs.h. */
  25218. +#include <ctype.h>
  25219. +#include <stdlib.h>
  25220. +#if ((' ' & 0x0FF) == 0x020)
  25221. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25222. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25223. +#else
  25224. +# define ISLOWER(c) \
  25225. + (('a' <= (c) && (c) <= 'i') \
  25226. + || ('j' <= (c) && (c) <= 'r') \
  25227. + || ('s' <= (c) && (c) <= 'z'))
  25228. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25229. +#endif
  25230. -fi
  25231. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  25232. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  25233. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25234. +int
  25235. +main ()
  25236. +{
  25237. + int i;
  25238. + for (i = 0; i < 256; i++)
  25239. + if (XOR (islower (i), ISLOWER (i))
  25240. + || toupper (i) != TOUPPER (i))
  25241. + return 2;
  25242. + return 0;
  25243. +}
  25244. +_ACEOF
  25245. +if ac_fn_c_try_run "$LINENO"; then :
  25246. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  25247. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  25248. else
  25249. - :
  25250. + ac_cv_header_stdc=no
  25251. +fi
  25252. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25253. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25254. fi
  25255. fi
  25256. +fi
  25257. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25258. +$as_echo "$ac_cv_header_stdc" >&6; }
  25259. +if test $ac_cv_header_stdc = yes; then
  25260. -lt_prog_compiler_wl=
  25261. -lt_prog_compiler_pic=
  25262. -lt_prog_compiler_static=
  25263. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25264. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  25265. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  25266. +fi
  25267. - if test "$GCC" = yes; then
  25268. - lt_prog_compiler_wl='-Wl,'
  25269. - lt_prog_compiler_static='-static'
  25270. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25271. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25272. + inttypes.h stdint.h unistd.h
  25273. +do :
  25274. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25275. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25276. +"
  25277. +eval as_val=\$$as_ac_Header
  25278. + if test "x$as_val" = x""yes; then :
  25279. + cat >>confdefs.h <<_ACEOF
  25280. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25281. +_ACEOF
  25282. - case $host_os in
  25283. - aix*)
  25284. - # All AIX code is PIC.
  25285. - if test "$host_cpu" = ia64; then
  25286. - # AIX 5 now supports IA64 processor
  25287. - lt_prog_compiler_static='-Bstatic'
  25288. - fi
  25289. - ;;
  25290. +fi
  25291. - amigaos*)
  25292. - # FIXME: we need at least 68020 code to build shared libraries, but
  25293. - # adding the `-m68020' flag to GCC prevents building anything better,
  25294. - # like `-m68040'.
  25295. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  25296. - ;;
  25297. +done
  25298. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25299. - # PIC is the default for these OSes.
  25300. - ;;
  25301. - mingw* | cygwin* | pw32* | os2*)
  25302. - # This hack is so that the source file can tell whether it is being
  25303. - # built for inclusion in a dll (and should export symbols for example).
  25304. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  25305. - # (--disable-auto-import) libraries
  25306. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25307. - ;;
  25308. +for ac_header in dlfcn.h
  25309. +do :
  25310. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  25311. +"
  25312. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  25313. + cat >>confdefs.h <<_ACEOF
  25314. +#define HAVE_DLFCN_H 1
  25315. +_ACEOF
  25316. - darwin* | rhapsody*)
  25317. - # PIC is the default on this platform
  25318. - # Common symbols not allowed in MH_DYLIB files
  25319. - lt_prog_compiler_pic='-fno-common'
  25320. - ;;
  25321. +fi
  25322. - interix[3-9]*)
  25323. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  25324. - # Instead, we relocate shared libraries at runtime.
  25325. - ;;
  25326. +done
  25327. - msdosdjgpp*)
  25328. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  25329. - # on systems that don't support them.
  25330. - lt_prog_compiler_can_build_shared=no
  25331. - enable_shared=no
  25332. - ;;
  25333. - sysv4*MP*)
  25334. - if test -d /usr/nec; then
  25335. - lt_prog_compiler_pic=-Kconform_pic
  25336. - fi
  25337. - ;;
  25338. - hpux*)
  25339. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25340. - # not for PA HP-UX.
  25341. - case $host_cpu in
  25342. - hppa*64*|ia64*)
  25343. - # +Z the default
  25344. - ;;
  25345. - *)
  25346. - lt_prog_compiler_pic='-fPIC'
  25347. - ;;
  25348. - esac
  25349. - ;;
  25350. +# Set options
  25351. - *)
  25352. - lt_prog_compiler_pic='-fPIC'
  25353. - ;;
  25354. - esac
  25355. - else
  25356. - # PORTME Check for flag to pass linker flags through the system compiler.
  25357. - case $host_os in
  25358. - aix*)
  25359. - lt_prog_compiler_wl='-Wl,'
  25360. - if test "$host_cpu" = ia64; then
  25361. - # AIX 5 now supports IA64 processor
  25362. - lt_prog_compiler_static='-Bstatic'
  25363. - else
  25364. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  25365. - fi
  25366. - ;;
  25367. - darwin*)
  25368. - # PIC is the default on this platform
  25369. - # Common symbols not allowed in MH_DYLIB files
  25370. - case $cc_basename in
  25371. - xlc*)
  25372. - lt_prog_compiler_pic='-qnocommon'
  25373. - lt_prog_compiler_wl='-Wl,'
  25374. - ;;
  25375. - esac
  25376. - ;;
  25377. - mingw* | cygwin* | pw32* | os2*)
  25378. - # This hack is so that the source file can tell whether it is being
  25379. - # built for inclusion in a dll (and should export symbols for example).
  25380. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25381. - ;;
  25382. - hpux9* | hpux10* | hpux11*)
  25383. - lt_prog_compiler_wl='-Wl,'
  25384. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25385. - # not for PA HP-UX.
  25386. - case $host_cpu in
  25387. - hppa*64*|ia64*)
  25388. - # +Z the default
  25389. - ;;
  25390. - *)
  25391. - lt_prog_compiler_pic='+Z'
  25392. - ;;
  25393. - esac
  25394. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  25395. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  25396. - ;;
  25397. + enable_dlopen=no
  25398. - irix5* | irix6* | nonstopux*)
  25399. - lt_prog_compiler_wl='-Wl,'
  25400. - # PIC (with -KPIC) is the default.
  25401. - lt_prog_compiler_static='-non_shared'
  25402. - ;;
  25403. - newsos6)
  25404. - lt_prog_compiler_pic='-KPIC'
  25405. - lt_prog_compiler_static='-Bstatic'
  25406. - ;;
  25407. + enable_win32_dll=no
  25408. - linux* | k*bsd*-gnu)
  25409. - case $cc_basename in
  25410. - icc* | ecc*)
  25411. - lt_prog_compiler_wl='-Wl,'
  25412. - lt_prog_compiler_pic='-KPIC'
  25413. - lt_prog_compiler_static='-static'
  25414. - ;;
  25415. - pgcc* | pgf77* | pgf90* | pgf95*)
  25416. - # Portland Group compilers (*not* the Pentium gcc compiler,
  25417. - # which looks to be a dead project)
  25418. - lt_prog_compiler_wl='-Wl,'
  25419. - lt_prog_compiler_pic='-fpic'
  25420. - lt_prog_compiler_static='-Bstatic'
  25421. - ;;
  25422. - ccc*)
  25423. - lt_prog_compiler_wl='-Wl,'
  25424. - # All Alpha code is PIC.
  25425. - lt_prog_compiler_static='-non_shared'
  25426. - ;;
  25427. - *)
  25428. - case `$CC -V 2>&1 | sed 5q` in
  25429. - *Sun\ C*)
  25430. - # Sun C 5.9
  25431. - lt_prog_compiler_pic='-KPIC'
  25432. - lt_prog_compiler_static='-Bstatic'
  25433. - lt_prog_compiler_wl='-Wl,'
  25434. - ;;
  25435. - *Sun\ F*)
  25436. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  25437. - lt_prog_compiler_pic='-KPIC'
  25438. - lt_prog_compiler_static='-Bstatic'
  25439. - lt_prog_compiler_wl=''
  25440. - ;;
  25441. - esac
  25442. - ;;
  25443. - esac
  25444. - ;;
  25445. - osf3* | osf4* | osf5*)
  25446. - lt_prog_compiler_wl='-Wl,'
  25447. - # All OSF/1 code is PIC.
  25448. - lt_prog_compiler_static='-non_shared'
  25449. + # Check whether --enable-shared was given.
  25450. +if test "${enable_shared+set}" = set; then :
  25451. + enableval=$enable_shared; p=${PACKAGE-default}
  25452. + case $enableval in
  25453. + yes) enable_shared=yes ;;
  25454. + no) enable_shared=no ;;
  25455. + *)
  25456. + enable_shared=no
  25457. + # Look at the argument we got. We use all the common list separators.
  25458. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25459. + for pkg in $enableval; do
  25460. + IFS="$lt_save_ifs"
  25461. + if test "X$pkg" = "X$p"; then
  25462. + enable_shared=yes
  25463. + fi
  25464. + done
  25465. + IFS="$lt_save_ifs"
  25466. ;;
  25467. + esac
  25468. +else
  25469. + enable_shared=yes
  25470. +fi
  25471. - rdos*)
  25472. - lt_prog_compiler_static='-non_shared'
  25473. - ;;
  25474. - solaris*)
  25475. - lt_prog_compiler_pic='-KPIC'
  25476. - lt_prog_compiler_static='-Bstatic'
  25477. - case $cc_basename in
  25478. - f77* | f90* | f95*)
  25479. - lt_prog_compiler_wl='-Qoption ld ';;
  25480. - *)
  25481. - lt_prog_compiler_wl='-Wl,';;
  25482. - esac
  25483. - ;;
  25484. - sunos4*)
  25485. - lt_prog_compiler_wl='-Qoption ld '
  25486. - lt_prog_compiler_pic='-PIC'
  25487. - lt_prog_compiler_static='-Bstatic'
  25488. - ;;
  25489. - sysv4 | sysv4.2uw2* | sysv4.3*)
  25490. - lt_prog_compiler_wl='-Wl,'
  25491. - lt_prog_compiler_pic='-KPIC'
  25492. - lt_prog_compiler_static='-Bstatic'
  25493. - ;;
  25494. - sysv4*MP*)
  25495. - if test -d /usr/nec ;then
  25496. - lt_prog_compiler_pic='-Kconform_pic'
  25497. - lt_prog_compiler_static='-Bstatic'
  25498. - fi
  25499. - ;;
  25500. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  25501. - lt_prog_compiler_wl='-Wl,'
  25502. - lt_prog_compiler_pic='-KPIC'
  25503. - lt_prog_compiler_static='-Bstatic'
  25504. - ;;
  25505. - unicos*)
  25506. - lt_prog_compiler_wl='-Wl,'
  25507. - lt_prog_compiler_can_build_shared=no
  25508. - ;;
  25509. - uts4*)
  25510. - lt_prog_compiler_pic='-pic'
  25511. - lt_prog_compiler_static='-Bstatic'
  25512. - ;;
  25513. + # Check whether --enable-static was given.
  25514. +if test "${enable_static+set}" = set; then :
  25515. + enableval=$enable_static; p=${PACKAGE-default}
  25516. + case $enableval in
  25517. + yes) enable_static=yes ;;
  25518. + no) enable_static=no ;;
  25519. *)
  25520. - lt_prog_compiler_can_build_shared=no
  25521. + enable_static=no
  25522. + # Look at the argument we got. We use all the common list separators.
  25523. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25524. + for pkg in $enableval; do
  25525. + IFS="$lt_save_ifs"
  25526. + if test "X$pkg" = "X$p"; then
  25527. + enable_static=yes
  25528. + fi
  25529. + done
  25530. + IFS="$lt_save_ifs"
  25531. ;;
  25532. esac
  25533. - fi
  25534. +else
  25535. + enable_static=yes
  25536. +fi
  25537. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  25538. -$as_echo "$lt_prog_compiler_pic" >&6; }
  25539. -#
  25540. -# Check to make sure the PIC flag actually works.
  25541. -#
  25542. -if test -n "$lt_prog_compiler_pic"; then
  25543. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  25544. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  25545. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  25546. - $as_echo_n "(cached) " >&6
  25547. -else
  25548. - lt_cv_prog_compiler_pic_works=no
  25549. - ac_outfile=conftest.$ac_objext
  25550. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25551. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  25552. - # Insert the option either (1) after the last *FLAGS variable, or
  25553. - # (2) before a word containing "conftest.", or (3) at the end.
  25554. - # Note that $ac_compile itself does not contain backslashes and begins
  25555. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25556. - # The option is referenced via a variable to avoid confusing sed.
  25557. - lt_compile=`echo "$ac_compile" | $SED \
  25558. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25559. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25560. - -e 's:$: $lt_compiler_flag:'`
  25561. - (eval echo "\"\$as_me:7939: $lt_compile\"" >&5)
  25562. - (eval "$lt_compile" 2>conftest.err)
  25563. - ac_status=$?
  25564. - cat conftest.err >&5
  25565. - echo "$as_me:7943: \$? = $ac_status" >&5
  25566. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25567. - # The compiler can only warn and ignore the option if not recognized
  25568. - # So say no if there are warnings other than the usual output.
  25569. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25570. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25571. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25572. - lt_cv_prog_compiler_pic_works=yes
  25573. - fi
  25574. - fi
  25575. - $rm conftest*
  25576. -fi
  25577. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  25578. -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  25579. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  25580. - case $lt_prog_compiler_pic in
  25581. - "" | " "*) ;;
  25582. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  25583. - esac
  25584. -else
  25585. - lt_prog_compiler_pic=
  25586. - lt_prog_compiler_can_build_shared=no
  25587. -fi
  25588. -fi
  25589. -case $host_os in
  25590. - # For platforms which do not support PIC, -DPIC is meaningless:
  25591. - *djgpp*)
  25592. - lt_prog_compiler_pic=
  25593. - ;;
  25594. - *)
  25595. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  25596. - ;;
  25597. -esac
  25598. -#
  25599. -# Check to make sure the static flag actually works.
  25600. -#
  25601. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  25602. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25603. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  25604. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  25605. - $as_echo_n "(cached) " >&6
  25606. -else
  25607. - lt_cv_prog_compiler_static_works=no
  25608. - save_LDFLAGS="$LDFLAGS"
  25609. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25610. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  25611. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25612. - # The linker can only warn and ignore the option if not recognized
  25613. - # So say no if there are warnings
  25614. - if test -s conftest.err; then
  25615. - # Append any errors to the config.log.
  25616. - cat conftest.err 1>&5
  25617. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25618. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25619. - if diff conftest.exp conftest.er2 >/dev/null; then
  25620. - lt_cv_prog_compiler_static_works=yes
  25621. - fi
  25622. - else
  25623. - lt_cv_prog_compiler_static_works=yes
  25624. - fi
  25625. - fi
  25626. - $rm -r conftest*
  25627. - LDFLAGS="$save_LDFLAGS"
  25628. -fi
  25629. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  25630. -$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  25631. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  25632. - :
  25633. +
  25634. +# Check whether --with-pic was given.
  25635. +if test "${with_pic+set}" = set; then :
  25636. + withval=$with_pic; pic_mode="$withval"
  25637. else
  25638. - lt_prog_compiler_static=
  25639. + pic_mode=default
  25640. fi
  25641. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  25642. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25643. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  25644. - $as_echo_n "(cached) " >&6
  25645. -else
  25646. - lt_cv_prog_compiler_c_o=no
  25647. - $rm -r conftest 2>/dev/null
  25648. - mkdir conftest
  25649. - cd conftest
  25650. - mkdir out
  25651. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25652. +test -z "$pic_mode" && pic_mode=default
  25653. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  25654. - # Insert the option either (1) after the last *FLAGS variable, or
  25655. - # (2) before a word containing "conftest.", or (3) at the end.
  25656. - # Note that $ac_compile itself does not contain backslashes and begins
  25657. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25658. - lt_compile=`echo "$ac_compile" | $SED \
  25659. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25660. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25661. - -e 's:$: $lt_compiler_flag:'`
  25662. - (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
  25663. - (eval "$lt_compile" 2>out/conftest.err)
  25664. - ac_status=$?
  25665. - cat out/conftest.err >&5
  25666. - echo "$as_me:8047: \$? = $ac_status" >&5
  25667. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25668. - then
  25669. - # The compiler can only warn and ignore the option if not recognized
  25670. - # So say no if there are warnings
  25671. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25672. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25673. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25674. - lt_cv_prog_compiler_c_o=yes
  25675. - fi
  25676. - fi
  25677. - chmod u+w . 2>&5
  25678. - $rm conftest*
  25679. - # SGI C++ compiler will create directory out/ii_files/ for
  25680. - # template instantiation
  25681. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  25682. - $rm out/* && rmdir out
  25683. - cd ..
  25684. - rmdir conftest
  25685. - $rm conftest*
  25686. -fi
  25687. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  25688. -$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25689. -hard_links="nottested"
  25690. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25691. - # do not overwrite the value of need_locks provided by the user
  25692. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  25693. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  25694. - hard_links=yes
  25695. - $rm conftest*
  25696. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25697. - touch conftest.a
  25698. - ln conftest.a conftest.b 2>&5 || hard_links=no
  25699. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25700. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  25701. -$as_echo "$hard_links" >&6; }
  25702. - if test "$hard_links" = no; then
  25703. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25704. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25705. - need_locks=warn
  25706. - fi
  25707. +
  25708. +
  25709. +
  25710. + # Check whether --enable-fast-install was given.
  25711. +if test "${enable_fast_install+set}" = set; then :
  25712. + enableval=$enable_fast_install; p=${PACKAGE-default}
  25713. + case $enableval in
  25714. + yes) enable_fast_install=yes ;;
  25715. + no) enable_fast_install=no ;;
  25716. + *)
  25717. + enable_fast_install=no
  25718. + # Look at the argument we got. We use all the common list separators.
  25719. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25720. + for pkg in $enableval; do
  25721. + IFS="$lt_save_ifs"
  25722. + if test "X$pkg" = "X$p"; then
  25723. + enable_fast_install=yes
  25724. + fi
  25725. + done
  25726. + IFS="$lt_save_ifs"
  25727. + ;;
  25728. + esac
  25729. else
  25730. - need_locks=no
  25731. + enable_fast_install=yes
  25732. fi
  25733. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25734. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  25735. - runpath_var=
  25736. - allow_undefined_flag=
  25737. - enable_shared_with_static_runtimes=no
  25738. - archive_cmds=
  25739. - archive_expsym_cmds=
  25740. - old_archive_From_new_cmds=
  25741. - old_archive_from_expsyms_cmds=
  25742. - export_dynamic_flag_spec=
  25743. - whole_archive_flag_spec=
  25744. - thread_safe_flag_spec=
  25745. - hardcode_libdir_flag_spec=
  25746. - hardcode_libdir_flag_spec_ld=
  25747. - hardcode_libdir_separator=
  25748. - hardcode_direct=no
  25749. - hardcode_minus_L=no
  25750. - hardcode_shlibpath_var=unsupported
  25751. - link_all_deplibs=unknown
  25752. - hardcode_automatic=no
  25753. - module_cmds=
  25754. - module_expsym_cmds=
  25755. - always_export_symbols=no
  25756. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25757. - # include_expsyms should be a list of space-separated symbols to be *always*
  25758. - # included in the symbol list
  25759. - include_expsyms=
  25760. - # exclude_expsyms can be an extended regexp of symbols to exclude
  25761. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25762. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25763. - # as well as any symbol that contains `d'.
  25764. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  25765. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25766. - # platforms (ab)use it in PIC code, but their linkers get confused if
  25767. - # the symbol is explicitly referenced. Since portable code cannot
  25768. - # rely on this symbol name, it's probably fine to never include it in
  25769. - # preloaded symbol tables.
  25770. - # Exclude shared library initialization/finalization symbols.
  25771. - extract_expsyms_cmds=
  25772. - # Just being paranoid about ensuring that cc_basename is set.
  25773. - for cc_temp in $compiler""; do
  25774. - case $cc_temp in
  25775. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25776. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25777. - \-*) ;;
  25778. - *) break;;
  25779. - esac
  25780. -done
  25781. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25782. - case $host_os in
  25783. - cygwin* | mingw* | pw32*)
  25784. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25785. - # When not using gcc, we currently assume that we are using
  25786. - # Microsoft Visual C++.
  25787. - if test "$GCC" != yes; then
  25788. - with_gnu_ld=no
  25789. - fi
  25790. - ;;
  25791. - interix*)
  25792. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  25793. - with_gnu_ld=yes
  25794. - ;;
  25795. - openbsd*)
  25796. - with_gnu_ld=no
  25797. - ;;
  25798. - esac
  25799. - ld_shlibs=yes
  25800. - if test "$with_gnu_ld" = yes; then
  25801. - # If archive_cmds runs LD, not CC, wlarc should be empty
  25802. - wlarc='${wl}'
  25803. - # Set some defaults for GNU ld with shared library support. These
  25804. - # are reset later if shared libraries are not supported. Putting them
  25805. - # here allows them to be overridden if necessary.
  25806. - runpath_var=LD_RUN_PATH
  25807. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  25808. - export_dynamic_flag_spec='${wl}--export-dynamic'
  25809. - # ancient GNU ld didn't support --whole-archive et. al.
  25810. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  25811. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  25812. - else
  25813. - whole_archive_flag_spec=
  25814. - fi
  25815. - supports_anon_versioning=no
  25816. - case `$LD -v 2>/dev/null` in
  25817. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  25818. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  25819. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  25820. - *\ 2.11.*) ;; # other 2.11 versions
  25821. - *) supports_anon_versioning=yes ;;
  25822. - esac
  25823. - # See if GNU ld supports shared libraries.
  25824. - case $host_os in
  25825. - aix[3-9]*)
  25826. - # On AIX/PPC, the GNU linker is very broken
  25827. - if test "$host_cpu" != ia64; then
  25828. - ld_shlibs=no
  25829. - cat <<EOF 1>&2
  25830. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  25831. -*** to be unable to reliably create shared libraries on AIX.
  25832. -*** Therefore, libtool is disabling shared libraries support. If you
  25833. -*** really care for shared libraries, you may want to modify your PATH
  25834. -*** so that a non-GNU linker is found, and then restart.
  25835. -EOF
  25836. - fi
  25837. - ;;
  25838. - amigaos*)
  25839. - 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)'
  25840. - hardcode_libdir_flag_spec='-L$libdir'
  25841. - hardcode_minus_L=yes
  25842. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  25843. - # that the semantics of dynamic libraries on AmigaOS, at least up
  25844. - # to version 4, is to share data among multiple programs linked
  25845. - # with the same dynamic library. Since this doesn't match the
  25846. - # behavior of shared libraries on other platforms, we can't use
  25847. - # them.
  25848. - ld_shlibs=no
  25849. - ;;
  25850. - beos*)
  25851. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25852. - allow_undefined_flag=unsupported
  25853. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  25854. - # support --undefined. This deserves some investigation. FIXME
  25855. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25856. - else
  25857. - ld_shlibs=no
  25858. - fi
  25859. - ;;
  25860. +# This can be used to rebuild libtool when needed
  25861. +LIBTOOL_DEPS="$ltmain"
  25862. - cygwin* | mingw* | pw32*)
  25863. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  25864. - # as there is no search path for DLLs.
  25865. - hardcode_libdir_flag_spec='-L$libdir'
  25866. - allow_undefined_flag=unsupported
  25867. - always_export_symbols=no
  25868. - enable_shared_with_static_runtimes=yes
  25869. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  25870. +# Always use our own libtool.
  25871. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  25872. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  25873. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25874. - # If the export-symbols file already is a .def file (1st line
  25875. - # is EXPORTS), use it as is; otherwise, prepend...
  25876. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  25877. - cp $export_symbols $output_objdir/$soname.def;
  25878. - else
  25879. - echo EXPORTS > $output_objdir/$soname.def;
  25880. - cat $export_symbols >> $output_objdir/$soname.def;
  25881. - fi~
  25882. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  25883. - else
  25884. - ld_shlibs=no
  25885. - fi
  25886. - ;;
  25887. - interix[3-9]*)
  25888. - hardcode_direct=no
  25889. - hardcode_shlibpath_var=no
  25890. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25891. - export_dynamic_flag_spec='${wl}-E'
  25892. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  25893. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  25894. - # default) and relocated if they conflict, which is a slow very memory
  25895. - # consuming and fragmenting process. To avoid this, we pick a random,
  25896. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  25897. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  25898. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  25899. - 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'
  25900. - ;;
  25901. - gnu* | linux* | k*bsd*-gnu)
  25902. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25903. - tmp_addflag=
  25904. - case $cc_basename,$host_cpu in
  25905. - pgcc*) # Portland Group C compiler
  25906. - 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'
  25907. - tmp_addflag=' $pic_flag'
  25908. - ;;
  25909. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  25910. - 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'
  25911. - tmp_addflag=' $pic_flag -Mnomain' ;;
  25912. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  25913. - tmp_addflag=' -i_dynamic' ;;
  25914. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  25915. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  25916. - ifc* | ifort*) # Intel Fortran compiler
  25917. - tmp_addflag=' -nofor_main' ;;
  25918. - esac
  25919. - case `$CC -V 2>&1 | sed 5q` in
  25920. - *Sun\ C*) # Sun C 5.9
  25921. - 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'
  25922. - tmp_sharedflag='-G' ;;
  25923. - *Sun\ F*) # Sun Fortran 8.3
  25924. - tmp_sharedflag='-G' ;;
  25925. - *)
  25926. - tmp_sharedflag='-shared' ;;
  25927. - esac
  25928. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25929. - if test $supports_anon_versioning = yes; then
  25930. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  25931. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25932. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  25933. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25934. - fi
  25935. - else
  25936. - ld_shlibs=no
  25937. - fi
  25938. - ;;
  25939. - netbsd*)
  25940. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25941. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25942. - wlarc=
  25943. - else
  25944. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25945. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25946. - fi
  25947. - ;;
  25948. - solaris*)
  25949. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  25950. - ld_shlibs=no
  25951. - cat <<EOF 1>&2
  25952. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25953. -*** create shared libraries on Solaris systems. Therefore, libtool
  25954. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25955. -*** binutils to release 2.9.1 or newer. Another option is to modify
  25956. -*** your PATH or compiler configuration so that the native linker is
  25957. -*** used, and then restart.
  25958. -EOF
  25959. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25960. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25961. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25962. - else
  25963. - ld_shlibs=no
  25964. - fi
  25965. - ;;
  25966. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25967. - case `$LD -v 2>&1` in
  25968. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25969. - ld_shlibs=no
  25970. - cat <<_LT_EOF 1>&2
  25971. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25972. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  25973. -*** is disabling shared libraries support. We urge you to upgrade GNU
  25974. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25975. -*** your PATH or compiler configuration so that the native linker is
  25976. -*** used, and then restart.
  25977. -_LT_EOF
  25978. - ;;
  25979. - *)
  25980. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25981. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  25982. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  25983. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  25984. - else
  25985. - ld_shlibs=no
  25986. - fi
  25987. - ;;
  25988. - esac
  25989. - ;;
  25990. - sunos4*)
  25991. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25992. - wlarc=
  25993. - hardcode_direct=yes
  25994. - hardcode_shlibpath_var=no
  25995. - ;;
  25996. - *)
  25997. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  25998. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25999. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26000. - else
  26001. - ld_shlibs=no
  26002. - fi
  26003. - ;;
  26004. - esac
  26005. - if test "$ld_shlibs" = no; then
  26006. - runpath_var=
  26007. - hardcode_libdir_flag_spec=
  26008. - export_dynamic_flag_spec=
  26009. - whole_archive_flag_spec=
  26010. - fi
  26011. - else
  26012. - # PORTME fill in a description of your system's linker (not GNU ld)
  26013. - case $host_os in
  26014. - aix3*)
  26015. - allow_undefined_flag=unsupported
  26016. - always_export_symbols=yes
  26017. - 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'
  26018. - # Note: this linker hardcodes the directories in LIBPATH if there
  26019. - # are no directories specified by -L.
  26020. - hardcode_minus_L=yes
  26021. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26022. - # Neither direct hardcoding nor static linking is supported with a
  26023. - # broken collect2.
  26024. - hardcode_direct=unsupported
  26025. - fi
  26026. - ;;
  26027. - aix[4-9]*)
  26028. - if test "$host_cpu" = ia64; then
  26029. - # On IA64, the linker does run time linking by default, so we don't
  26030. - # have to do anything special.
  26031. - aix_use_runtimelinking=no
  26032. - exp_sym_flag='-Bexport'
  26033. - no_entry_flag=""
  26034. - else
  26035. - # If we're using GNU nm, then we don't want the "-C" option.
  26036. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26037. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26038. - 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'
  26039. - else
  26040. - 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'
  26041. - fi
  26042. - aix_use_runtimelinking=no
  26043. - # Test if we are trying to use run time linking or normal
  26044. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26045. - # need to do runtime linking.
  26046. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  26047. - for ld_flag in $LDFLAGS; do
  26048. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26049. - aix_use_runtimelinking=yes
  26050. - break
  26051. - fi
  26052. - done
  26053. - ;;
  26054. - esac
  26055. - exp_sym_flag='-bexport'
  26056. - no_entry_flag='-bnoentry'
  26057. - fi
  26058. - # When large executables or shared objects are built, AIX ld can
  26059. - # have problems creating the table of contents. If linking a library
  26060. - # or program results in "error TOC overflow" add -mminimal-toc to
  26061. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26062. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26063. - archive_cmds=''
  26064. - hardcode_direct=yes
  26065. - hardcode_libdir_separator=':'
  26066. - link_all_deplibs=yes
  26067. - if test "$GCC" = yes; then
  26068. - case $host_os in aix4.[012]|aix4.[012].*)
  26069. - # We only want to do this on AIX 4.2 and lower, the check
  26070. - # below for broken collect2 doesn't work under 4.3+
  26071. - collect2name=`${CC} -print-prog-name=collect2`
  26072. - if test -f "$collect2name" && \
  26073. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26074. - then
  26075. - # We have reworked collect2
  26076. - :
  26077. - else
  26078. - # We have old collect2
  26079. - hardcode_direct=unsupported
  26080. - # It fails to find uninstalled libraries when the uninstalled
  26081. - # path is not listed in the libpath. Setting hardcode_minus_L
  26082. - # to unsupported forces relinking
  26083. - hardcode_minus_L=yes
  26084. - hardcode_libdir_flag_spec='-L$libdir'
  26085. - hardcode_libdir_separator=
  26086. - fi
  26087. - ;;
  26088. - esac
  26089. - shared_flag='-shared'
  26090. - if test "$aix_use_runtimelinking" = yes; then
  26091. - shared_flag="$shared_flag "'${wl}-G'
  26092. - fi
  26093. - else
  26094. - # not using gcc
  26095. - if test "$host_cpu" = ia64; then
  26096. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26097. - # chokes on -Wl,-G. The following line is correct:
  26098. - shared_flag='-G'
  26099. - else
  26100. - if test "$aix_use_runtimelinking" = yes; then
  26101. - shared_flag='${wl}-G'
  26102. - else
  26103. - shared_flag='${wl}-bM:SRE'
  26104. - fi
  26105. - fi
  26106. - fi
  26107. - # It seems that -bexpall does not export symbols beginning with
  26108. - # underscore (_), so it is better to generate a list of symbols to export.
  26109. - always_export_symbols=yes
  26110. - if test "$aix_use_runtimelinking" = yes; then
  26111. - # Warning - without using the other runtime loading flags (-brtl),
  26112. - # -berok will link without error, but may produce a broken library.
  26113. - allow_undefined_flag='-berok'
  26114. - # Determine the default libpath from the value encoded in an empty executable.
  26115. - cat >conftest.$ac_ext <<_ACEOF
  26116. -/* confdefs.h. */
  26117. -_ACEOF
  26118. -cat confdefs.h >>conftest.$ac_ext
  26119. -cat >>conftest.$ac_ext <<_ACEOF
  26120. -/* end confdefs.h. */
  26121. -int
  26122. -main ()
  26123. -{
  26124. - ;
  26125. - return 0;
  26126. -}
  26127. -_ACEOF
  26128. -rm -f conftest.$ac_objext conftest$ac_exeext
  26129. -if { (ac_try="$ac_link"
  26130. -case "(($ac_try" in
  26131. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26132. - *) ac_try_echo=$ac_try;;
  26133. -esac
  26134. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26135. -$as_echo "$ac_try_echo") >&5
  26136. - (eval "$ac_link") 2>conftest.er1
  26137. - ac_status=$?
  26138. - grep -v '^ *+' conftest.er1 >conftest.err
  26139. - rm -f conftest.er1
  26140. - cat conftest.err >&5
  26141. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26142. - (exit $ac_status); } && {
  26143. - test -z "$ac_c_werror_flag" ||
  26144. - test ! -s conftest.err
  26145. - } && test -s conftest$ac_exeext && {
  26146. - test "$cross_compiling" = yes ||
  26147. - $as_test_x conftest$ac_exeext
  26148. - }; then
  26149. -lt_aix_libpath_sed='
  26150. - /Import File Strings/,/^$/ {
  26151. - /^0/ {
  26152. - s/^0 *\(.*\)$/\1/
  26153. - p
  26154. - }
  26155. - }'
  26156. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26157. -# Check for a 64-bit object if we didn't find anything.
  26158. -if test -z "$aix_libpath"; then
  26159. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26160. -fi
  26161. -else
  26162. - $as_echo "$as_me: failed program was:" >&5
  26163. -sed 's/^/| /' conftest.$ac_ext >&5
  26164. +test -z "$LN_S" && LN_S="ln -s"
  26165. -fi
  26166. -rm -rf conftest.dSYM
  26167. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26168. - conftest$ac_exeext conftest.$ac_ext
  26169. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26170. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26171. - 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"
  26172. - else
  26173. - if test "$host_cpu" = ia64; then
  26174. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26175. - allow_undefined_flag="-z nodefs"
  26176. - 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"
  26177. - else
  26178. - # Determine the default libpath from the value encoded in an empty executable.
  26179. - cat >conftest.$ac_ext <<_ACEOF
  26180. -/* confdefs.h. */
  26181. -_ACEOF
  26182. -cat confdefs.h >>conftest.$ac_ext
  26183. -cat >>conftest.$ac_ext <<_ACEOF
  26184. -/* end confdefs.h. */
  26185. -int
  26186. -main ()
  26187. -{
  26188. - ;
  26189. - return 0;
  26190. -}
  26191. -_ACEOF
  26192. -rm -f conftest.$ac_objext conftest$ac_exeext
  26193. -if { (ac_try="$ac_link"
  26194. -case "(($ac_try" in
  26195. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26196. - *) ac_try_echo=$ac_try;;
  26197. -esac
  26198. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26199. -$as_echo "$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. - $as_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. - test "$cross_compiling" = yes ||
  26211. - $as_test_x conftest$ac_exeext
  26212. - }; then
  26213. -lt_aix_libpath_sed='
  26214. - /Import File Strings/,/^$/ {
  26215. - /^0/ {
  26216. - s/^0 *\(.*\)$/\1/
  26217. - p
  26218. - }
  26219. - }'
  26220. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26221. -# Check for a 64-bit object if we didn't find anything.
  26222. -if test -z "$aix_libpath"; then
  26223. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26224. -fi
  26225. -else
  26226. - $as_echo "$as_me: failed program was:" >&5
  26227. -sed 's/^/| /' conftest.$ac_ext >&5
  26228. -fi
  26229. -rm -rf conftest.dSYM
  26230. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26231. - conftest$ac_exeext conftest.$ac_ext
  26232. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26233. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26234. - # Warning - without using the other run time loading flags,
  26235. - # -berok will link without error, but may produce a broken library.
  26236. - no_undefined_flag=' ${wl}-bernotok'
  26237. - allow_undefined_flag=' ${wl}-berok'
  26238. - # Exported symbols can be pulled into shared objects from archives
  26239. - whole_archive_flag_spec='$convenience'
  26240. - archive_cmds_need_lc=yes
  26241. - # This is similar to how AIX traditionally builds its shared libraries.
  26242. - 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'
  26243. - fi
  26244. - fi
  26245. - ;;
  26246. - amigaos*)
  26247. - 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)'
  26248. - hardcode_libdir_flag_spec='-L$libdir'
  26249. - hardcode_minus_L=yes
  26250. - # see comment about different semantics on the GNU ld section
  26251. - ld_shlibs=no
  26252. - ;;
  26253. - bsdi[45]*)
  26254. - export_dynamic_flag_spec=-rdynamic
  26255. - ;;
  26256. - cygwin* | mingw* | pw32*)
  26257. - # When not using gcc, we currently assume that we are using
  26258. - # Microsoft Visual C++.
  26259. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  26260. - # no search path for DLLs.
  26261. - hardcode_libdir_flag_spec=' '
  26262. - allow_undefined_flag=unsupported
  26263. - # Tell ltmain to make .lib files, not .a files.
  26264. - libext=lib
  26265. - # Tell ltmain to make .dll files, not .so files.
  26266. - shrext_cmds=".dll"
  26267. - # FIXME: Setting linknames here is a bad hack.
  26268. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26269. - # The linker will automatically build a .lib file if we build a DLL.
  26270. - old_archive_From_new_cmds='true'
  26271. - # FIXME: Should let the user specify the lib program.
  26272. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  26273. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  26274. - enable_shared_with_static_runtimes=yes
  26275. - ;;
  26276. - darwin* | rhapsody*)
  26277. - case $host_os in
  26278. - rhapsody* | darwin1.[012])
  26279. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  26280. - ;;
  26281. - *) # Darwin 1.3 on
  26282. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  26283. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26284. - else
  26285. - case ${MACOSX_DEPLOYMENT_TARGET} in
  26286. - 10.[012])
  26287. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26288. - ;;
  26289. - 10.*)
  26290. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  26291. - ;;
  26292. - esac
  26293. - fi
  26294. - ;;
  26295. - esac
  26296. - archive_cmds_need_lc=no
  26297. - hardcode_direct=no
  26298. - hardcode_automatic=yes
  26299. - hardcode_shlibpath_var=unsupported
  26300. - whole_archive_flag_spec=''
  26301. - link_all_deplibs=yes
  26302. - if test "$GCC" = yes ; then
  26303. - output_verbose_link_cmd='echo'
  26304. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  26305. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  26306. - 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}"
  26307. - 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}"
  26308. - else
  26309. - case $cc_basename in
  26310. - xlc*)
  26311. - output_verbose_link_cmd='echo'
  26312. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  26313. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26314. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26315. - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26316. - 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}'
  26317. - ;;
  26318. - *)
  26319. - ld_shlibs=no
  26320. - ;;
  26321. - esac
  26322. - fi
  26323. - ;;
  26324. +if test -n "${ZSH_VERSION+set}" ; then
  26325. + setopt NO_GLOB_SUBST
  26326. +fi
  26327. - dgux*)
  26328. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26329. - hardcode_libdir_flag_spec='-L$libdir'
  26330. - hardcode_shlibpath_var=no
  26331. - ;;
  26332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  26333. +$as_echo_n "checking for objdir... " >&6; }
  26334. +if test "${lt_cv_objdir+set}" = set; then :
  26335. + $as_echo_n "(cached) " >&6
  26336. +else
  26337. + rm -f .libs 2>/dev/null
  26338. +mkdir .libs 2>/dev/null
  26339. +if test -d .libs; then
  26340. + lt_cv_objdir=.libs
  26341. +else
  26342. + # MS-DOS does not allow filenames that begin with a dot.
  26343. + lt_cv_objdir=_libs
  26344. +fi
  26345. +rmdir .libs 2>/dev/null
  26346. +fi
  26347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  26348. +$as_echo "$lt_cv_objdir" >&6; }
  26349. +objdir=$lt_cv_objdir
  26350. - freebsd1*)
  26351. - ld_shlibs=no
  26352. - ;;
  26353. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26354. - # support. Future versions do this automatically, but an explicit c++rt0.o
  26355. - # does not break anything, and helps significantly (at the cost of a little
  26356. - # extra space).
  26357. - freebsd2.2*)
  26358. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26359. - hardcode_libdir_flag_spec='-R$libdir'
  26360. - hardcode_direct=yes
  26361. - hardcode_shlibpath_var=no
  26362. - ;;
  26363. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26364. - freebsd2*)
  26365. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26366. - hardcode_direct=yes
  26367. - hardcode_minus_L=yes
  26368. - hardcode_shlibpath_var=no
  26369. - ;;
  26370. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26371. - freebsd* | dragonfly*)
  26372. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26373. - hardcode_libdir_flag_spec='-R$libdir'
  26374. - hardcode_direct=yes
  26375. - hardcode_shlibpath_var=no
  26376. - ;;
  26377. - hpux9*)
  26378. - if test "$GCC" = yes; then
  26379. - 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'
  26380. - else
  26381. - 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'
  26382. - fi
  26383. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26384. - hardcode_libdir_separator=:
  26385. - hardcode_direct=yes
  26386. +cat >>confdefs.h <<_ACEOF
  26387. +#define LT_OBJDIR "$lt_cv_objdir/"
  26388. +_ACEOF
  26389. - # hardcode_minus_L: Not really in the search PATH,
  26390. - # but as the default location of the library.
  26391. - hardcode_minus_L=yes
  26392. - export_dynamic_flag_spec='${wl}-E'
  26393. - ;;
  26394. - hpux10*)
  26395. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26396. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26397. - else
  26398. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26399. - fi
  26400. - if test "$with_gnu_ld" = no; then
  26401. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26402. - hardcode_libdir_separator=:
  26403. - hardcode_direct=yes
  26404. - export_dynamic_flag_spec='${wl}-E'
  26405. - # hardcode_minus_L: Not really in the search PATH,
  26406. - # but as the default location of the library.
  26407. - hardcode_minus_L=yes
  26408. - fi
  26409. - ;;
  26410. - hpux11*)
  26411. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26412. - case $host_cpu in
  26413. - hppa*64*)
  26414. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26415. - ;;
  26416. - ia64*)
  26417. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26418. - ;;
  26419. - *)
  26420. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26421. - ;;
  26422. - esac
  26423. - else
  26424. - case $host_cpu in
  26425. - hppa*64*)
  26426. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26427. - ;;
  26428. - ia64*)
  26429. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26430. - ;;
  26431. - *)
  26432. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26433. - ;;
  26434. - esac
  26435. - fi
  26436. - if test "$with_gnu_ld" = no; then
  26437. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26438. - hardcode_libdir_separator=:
  26439. - case $host_cpu in
  26440. - hppa*64*|ia64*)
  26441. - hardcode_libdir_flag_spec_ld='+b $libdir'
  26442. - hardcode_direct=no
  26443. - hardcode_shlibpath_var=no
  26444. - ;;
  26445. - *)
  26446. - hardcode_direct=yes
  26447. - export_dynamic_flag_spec='${wl}-E'
  26448. - # hardcode_minus_L: Not really in the search PATH,
  26449. - # but as the default location of the library.
  26450. - hardcode_minus_L=yes
  26451. - ;;
  26452. - esac
  26453. - fi
  26454. - ;;
  26455. - irix5* | irix6* | nonstopux*)
  26456. - if test "$GCC" = yes; then
  26457. - 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'
  26458. - else
  26459. - 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'
  26460. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26461. - fi
  26462. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26463. - hardcode_libdir_separator=:
  26464. - link_all_deplibs=yes
  26465. - ;;
  26466. - netbsd*)
  26467. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26468. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26469. - else
  26470. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26471. - fi
  26472. - hardcode_libdir_flag_spec='-R$libdir'
  26473. - hardcode_direct=yes
  26474. - hardcode_shlibpath_var=no
  26475. - ;;
  26476. - newsos6)
  26477. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26478. - hardcode_direct=yes
  26479. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26480. - hardcode_libdir_separator=:
  26481. - hardcode_shlibpath_var=no
  26482. - ;;
  26483. - openbsd*)
  26484. - if test -f /usr/libexec/ld.so; then
  26485. - hardcode_direct=yes
  26486. - hardcode_shlibpath_var=no
  26487. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26488. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26489. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26490. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26491. - export_dynamic_flag_spec='${wl}-E'
  26492. - else
  26493. - case $host_os in
  26494. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26495. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26496. - hardcode_libdir_flag_spec='-R$libdir'
  26497. - ;;
  26498. - *)
  26499. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26500. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26501. - ;;
  26502. - esac
  26503. - fi
  26504. - else
  26505. - ld_shlibs=no
  26506. - fi
  26507. - ;;
  26508. - os2*)
  26509. - hardcode_libdir_flag_spec='-L$libdir'
  26510. - hardcode_minus_L=yes
  26511. - allow_undefined_flag=unsupported
  26512. - 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'
  26513. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26514. - ;;
  26515. -
  26516. - osf3*)
  26517. - if test "$GCC" = yes; then
  26518. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26519. - 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'
  26520. - else
  26521. - allow_undefined_flag=' -expect_unresolved \*'
  26522. - 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'
  26523. - fi
  26524. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26525. - hardcode_libdir_separator=:
  26526. - ;;
  26527. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  26528. - if test "$GCC" = yes; then
  26529. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26530. - 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'
  26531. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26532. - else
  26533. - allow_undefined_flag=' -expect_unresolved \*'
  26534. - 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'
  26535. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  26536. - $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'
  26537. - # Both c and cxx compiler support -rpath directly
  26538. - hardcode_libdir_flag_spec='-rpath $libdir'
  26539. - fi
  26540. - hardcode_libdir_separator=:
  26541. - ;;
  26542. - solaris*)
  26543. - no_undefined_flag=' -z text'
  26544. - if test "$GCC" = yes; then
  26545. - wlarc='${wl}'
  26546. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26547. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26548. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  26549. - else
  26550. - wlarc=''
  26551. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26552. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26553. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  26554. - fi
  26555. - hardcode_libdir_flag_spec='-R$libdir'
  26556. - hardcode_shlibpath_var=no
  26557. - case $host_os in
  26558. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26559. - *)
  26560. - # The compiler driver will combine and reorder linker options,
  26561. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  26562. - # but is careful enough not to reorder.
  26563. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  26564. - if test "$GCC" = yes; then
  26565. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  26566. - else
  26567. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  26568. - fi
  26569. - ;;
  26570. - esac
  26571. - link_all_deplibs=yes
  26572. - ;;
  26573. - sunos4*)
  26574. - if test "x$host_vendor" = xsequent; then
  26575. - # Use $CC to link under sequent, because it throws in some extra .o
  26576. - # files that make .init and .fini sections work.
  26577. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26578. - else
  26579. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26580. - fi
  26581. - hardcode_libdir_flag_spec='-L$libdir'
  26582. - hardcode_direct=yes
  26583. - hardcode_minus_L=yes
  26584. - hardcode_shlibpath_var=no
  26585. - ;;
  26586. - sysv4)
  26587. - case $host_vendor in
  26588. - sni)
  26589. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26590. - hardcode_direct=yes # is this really true???
  26591. - ;;
  26592. - siemens)
  26593. - ## LD is ld it makes a PLAMLIB
  26594. - ## CC just makes a GrossModule.
  26595. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26596. - reload_cmds='$CC -r -o $output$reload_objs'
  26597. - hardcode_direct=no
  26598. - ;;
  26599. - motorola)
  26600. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26601. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26602. - ;;
  26603. - esac
  26604. - runpath_var='LD_RUN_PATH'
  26605. - hardcode_shlibpath_var=no
  26606. - ;;
  26607. +case $host_os in
  26608. +aix3*)
  26609. + # AIX sometimes has problems with the GCC collect2 program. For some
  26610. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  26611. + # vanish in a puff of smoke.
  26612. + if test "X${COLLECT_NAMES+set}" != Xset; then
  26613. + COLLECT_NAMES=
  26614. + export COLLECT_NAMES
  26615. + fi
  26616. + ;;
  26617. +esac
  26618. - sysv4.3*)
  26619. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26620. - hardcode_shlibpath_var=no
  26621. - export_dynamic_flag_spec='-Bexport'
  26622. - ;;
  26623. +# Sed substitution that helps us do robust quoting. It backslashifies
  26624. +# metacharacters that are still active within double-quoted strings.
  26625. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  26626. - sysv4*MP*)
  26627. - if test -d /usr/nec; then
  26628. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26629. - hardcode_shlibpath_var=no
  26630. - runpath_var=LD_RUN_PATH
  26631. - hardcode_runpath_var=yes
  26632. - ld_shlibs=yes
  26633. - fi
  26634. - ;;
  26635. +# Same as above, but do not quote variable references.
  26636. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  26637. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  26638. - no_undefined_flag='${wl}-z,text'
  26639. - archive_cmds_need_lc=no
  26640. - hardcode_shlibpath_var=no
  26641. - runpath_var='LD_RUN_PATH'
  26642. +# Sed substitution to delay expansion of an escaped shell variable in a
  26643. +# double_quote_subst'ed string.
  26644. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  26645. - if test "$GCC" = yes; then
  26646. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26647. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26648. - else
  26649. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26650. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26651. - fi
  26652. - ;;
  26653. +# Sed substitution to delay expansion of an escaped single quote.
  26654. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  26655. - sysv5* | sco3.2v5* | sco5v6*)
  26656. - # Note: We can NOT use -z defs as we might desire, because we do not
  26657. - # link with -lc, and that would cause any symbols used from libc to
  26658. - # always be unresolved, which means just about no library would
  26659. - # ever link correctly. If we're not using GNU ld we use -z text
  26660. - # though, which does catch some bad symbols but isn't as heavy-handed
  26661. - # as -z defs.
  26662. - no_undefined_flag='${wl}-z,text'
  26663. - allow_undefined_flag='${wl}-z,nodefs'
  26664. - archive_cmds_need_lc=no
  26665. - hardcode_shlibpath_var=no
  26666. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  26667. - hardcode_libdir_separator=':'
  26668. - link_all_deplibs=yes
  26669. - export_dynamic_flag_spec='${wl}-Bexport'
  26670. - runpath_var='LD_RUN_PATH'
  26671. +# Sed substitution to avoid accidental globbing in evaled expressions
  26672. +no_glob_subst='s/\*/\\\*/g'
  26673. - if test "$GCC" = yes; then
  26674. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26675. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26676. - else
  26677. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26678. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26679. - fi
  26680. - ;;
  26681. +# Global variables:
  26682. +ofile=libtool
  26683. +can_build_shared=yes
  26684. - uts4*)
  26685. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26686. - hardcode_libdir_flag_spec='-L$libdir'
  26687. - hardcode_shlibpath_var=no
  26688. - ;;
  26689. +# All known linkers require a `.a' archive for static linking (except MSVC,
  26690. +# which needs '.lib').
  26691. +libext=a
  26692. - *)
  26693. - ld_shlibs=no
  26694. - ;;
  26695. - esac
  26696. - fi
  26697. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  26698. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  26699. -$as_echo "$ld_shlibs" >&6; }
  26700. -test "$ld_shlibs" = no && can_build_shared=no
  26701. +old_CC="$CC"
  26702. +old_CFLAGS="$CFLAGS"
  26703. -#
  26704. -# Do we need to explicitly link libc?
  26705. -#
  26706. -case "x$archive_cmds_need_lc" in
  26707. -x|xyes)
  26708. - # Assume -lc should be added
  26709. - archive_cmds_need_lc=yes
  26710. +# Set sane defaults for various variables
  26711. +test -z "$CC" && CC=cc
  26712. +test -z "$LTCC" && LTCC=$CC
  26713. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  26714. +test -z "$LD" && LD=ld
  26715. +test -z "$ac_objext" && ac_objext=o
  26716. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  26717. - case $archive_cmds in
  26718. - *'~'*)
  26719. - # FIXME: we may have to deal with multi-command sequences.
  26720. - ;;
  26721. - '$CC '*)
  26722. - # Test whether the compiler implicitly links with -lc since on some
  26723. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26724. - # to ld, don't add -lc before -lgcc.
  26725. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  26726. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  26727. - $rm conftest*
  26728. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26729. +for cc_temp in $compiler""; do
  26730. + case $cc_temp in
  26731. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26732. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26733. + \-*) ;;
  26734. + *) break;;
  26735. + esac
  26736. +done
  26737. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26738. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26739. - (eval $ac_compile) 2>&5
  26740. - ac_status=$?
  26741. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26742. - (exit $ac_status); } 2>conftest.err; then
  26743. - soname=conftest
  26744. - lib=conftest
  26745. - libobjs=conftest.$ac_objext
  26746. - deplibs=
  26747. - wl=$lt_prog_compiler_wl
  26748. - pic_flag=$lt_prog_compiler_pic
  26749. - compiler_flags=-v
  26750. - linker_flags=-v
  26751. - verstring=
  26752. - output_objdir=.
  26753. - libname=conftest
  26754. - lt_save_allow_undefined_flag=$allow_undefined_flag
  26755. - allow_undefined_flag=
  26756. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  26757. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26758. - ac_status=$?
  26759. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26760. - (exit $ac_status); }
  26761. - then
  26762. - archive_cmds_need_lc=no
  26763. - else
  26764. - archive_cmds_need_lc=yes
  26765. - fi
  26766. - allow_undefined_flag=$lt_save_allow_undefined_flag
  26767. - else
  26768. - cat conftest.err 1>&5
  26769. - fi
  26770. - $rm conftest*
  26771. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  26772. -$as_echo "$archive_cmds_need_lc" >&6; }
  26773. - ;;
  26774. - esac
  26775. - fi
  26776. - ;;
  26777. -esac
  26778. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  26779. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  26780. -library_names_spec=
  26781. -libname_spec='lib$name'
  26782. -soname_spec=
  26783. -shrext_cmds=".so"
  26784. -postinstall_cmds=
  26785. -postuninstall_cmds=
  26786. -finish_cmds=
  26787. -finish_eval=
  26788. -shlibpath_var=
  26789. -shlibpath_overrides_runpath=unknown
  26790. -version_type=none
  26791. -dynamic_linker="$host_os ld.so"
  26792. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  26793. +# Only perform the check for file, if the check method requires it
  26794. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  26795. +case $deplibs_check_method in
  26796. +file_magic*)
  26797. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  26798. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  26799. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  26800. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26801. + $as_echo_n "(cached) " >&6
  26802. +else
  26803. + case $MAGIC_CMD in
  26804. +[\\/*] | ?:[\\/]*)
  26805. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26806. + ;;
  26807. +*)
  26808. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  26809. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26810. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26811. + for ac_dir in $ac_dummy; do
  26812. + IFS="$lt_save_ifs"
  26813. + test -z "$ac_dir" && ac_dir=.
  26814. + if test -f $ac_dir/${ac_tool_prefix}file; then
  26815. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  26816. + if test -n "$file_magic_test_file"; then
  26817. + case $deplibs_check_method in
  26818. + "file_magic "*)
  26819. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26820. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26821. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26822. + $EGREP "$file_magic_regex" > /dev/null; then
  26823. + :
  26824. + else
  26825. + cat <<_LT_EOF 1>&2
  26826. -if test "$GCC" = yes; then
  26827. - case $host_os in
  26828. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  26829. - *) lt_awk_arg="/^libraries:/" ;;
  26830. - esac
  26831. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26832. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  26833. - # if the path contains ";" then we assume it to be the separator
  26834. - # otherwise default to the standard path separator (i.e. ":") - it is
  26835. - # assumed that no part of a normal pathname contains ";" but that should
  26836. - # okay in the real world where ";" in dirpaths is itself problematic.
  26837. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  26838. - else
  26839. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26840. - fi
  26841. - # Ok, now we have the path, separated by spaces, we can step through it
  26842. - # and add multilib dir if necessary.
  26843. - lt_tmp_lt_search_path_spec=
  26844. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  26845. - for lt_sys_path in $lt_search_path_spec; do
  26846. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  26847. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  26848. - else
  26849. - test -d "$lt_sys_path" && \
  26850. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  26851. +*** Warning: the command libtool uses to detect shared libraries,
  26852. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  26853. +*** The result is that libtool may fail to recognize shared libraries
  26854. +*** as such. This will affect the creation of libtool libraries that
  26855. +*** depend on shared libraries, but programs linked with such libtool
  26856. +*** libraries will work regardless of this problem. Nevertheless, you
  26857. +*** may want to report the problem to your system manager and/or to
  26858. +*** bug-libtool@gnu.org
  26859. +
  26860. +_LT_EOF
  26861. + fi ;;
  26862. + esac
  26863. + fi
  26864. + break
  26865. fi
  26866. done
  26867. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  26868. -BEGIN {RS=" "; FS="/|\n";} {
  26869. - lt_foo="";
  26870. - lt_count=0;
  26871. - for (lt_i = NF; lt_i > 0; lt_i--) {
  26872. - if ($lt_i != "" && $lt_i != ".") {
  26873. - if ($lt_i == "..") {
  26874. - lt_count++;
  26875. - } else {
  26876. - if (lt_count == 0) {
  26877. - lt_foo="/" $lt_i lt_foo;
  26878. - } else {
  26879. - lt_count--;
  26880. - }
  26881. - }
  26882. - }
  26883. - }
  26884. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  26885. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  26886. -}'`
  26887. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  26888. + IFS="$lt_save_ifs"
  26889. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  26890. + ;;
  26891. +esac
  26892. +fi
  26893. +
  26894. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26895. +if test -n "$MAGIC_CMD"; then
  26896. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  26897. +$as_echo "$MAGIC_CMD" >&6; }
  26898. else
  26899. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  26900. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26901. +$as_echo "no" >&6; }
  26902. fi
  26903. -need_lib_prefix=unknown
  26904. -hardcode_into_libs=no
  26905. -# when you set need_version to no, make sure it does not cause -set_version
  26906. -# flags to be left without arguments
  26907. -need_version=unknown
  26908. -case $host_os in
  26909. -aix3*)
  26910. - version_type=linux
  26911. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  26912. - shlibpath_var=LIBPATH
  26913. - # AIX 3 has no versioning support, so we append a major version to the name.
  26914. - soname_spec='${libname}${release}${shared_ext}$major'
  26915. +
  26916. +
  26917. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  26918. + if test -n "$ac_tool_prefix"; then
  26919. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  26920. +$as_echo_n "checking for file... " >&6; }
  26921. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26922. + $as_echo_n "(cached) " >&6
  26923. +else
  26924. + case $MAGIC_CMD in
  26925. +[\\/*] | ?:[\\/]*)
  26926. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  26927. ;;
  26928. +*)
  26929. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  26930. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26931. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  26932. + for ac_dir in $ac_dummy; do
  26933. + IFS="$lt_save_ifs"
  26934. + test -z "$ac_dir" && ac_dir=.
  26935. + if test -f $ac_dir/file; then
  26936. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  26937. + if test -n "$file_magic_test_file"; then
  26938. + case $deplibs_check_method in
  26939. + "file_magic "*)
  26940. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26941. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26942. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26943. + $EGREP "$file_magic_regex" > /dev/null; then
  26944. + :
  26945. + else
  26946. + cat <<_LT_EOF 1>&2
  26947. -aix[4-9]*)
  26948. - version_type=linux
  26949. - need_lib_prefix=no
  26950. - need_version=no
  26951. - hardcode_into_libs=yes
  26952. - if test "$host_cpu" = ia64; then
  26953. - # AIX 5 supports IA64
  26954. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  26955. - shlibpath_var=LD_LIBRARY_PATH
  26956. - else
  26957. - # With GCC up to 2.95.x, collect2 would create an import file
  26958. - # for dependence libraries. The import file would start with
  26959. - # the line `#! .'. This would cause the generated library to
  26960. - # depend on `.', always an invalid library. This was fixed in
  26961. - # development snapshots of GCC prior to 3.0.
  26962. - case $host_os in
  26963. - aix4 | aix4.[01] | aix4.[01].*)
  26964. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  26965. - echo ' yes '
  26966. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  26967. - :
  26968. - else
  26969. - can_build_shared=no
  26970. +*** Warning: the command libtool uses to detect shared libraries,
  26971. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  26972. +*** The result is that libtool may fail to recognize shared libraries
  26973. +*** as such. This will affect the creation of libtool libraries that
  26974. +*** depend on shared libraries, but programs linked with such libtool
  26975. +*** libraries will work regardless of this problem. Nevertheless, you
  26976. +*** may want to report the problem to your system manager and/or to
  26977. +*** bug-libtool@gnu.org
  26978. +
  26979. +_LT_EOF
  26980. + fi ;;
  26981. + esac
  26982. fi
  26983. - ;;
  26984. - esac
  26985. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26986. - # soname into executable. Probably we can add versioning support to
  26987. - # collect2, so additional links can be useful in future.
  26988. - if test "$aix_use_runtimelinking" = yes; then
  26989. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26990. - # instead of lib<name>.a to let people know that these are not
  26991. - # typical AIX shared libraries.
  26992. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26993. - else
  26994. - # We preserve .a as extension for shared libraries through AIX4.2
  26995. - # and later when we are not doing run time linking.
  26996. - library_names_spec='${libname}${release}.a $libname.a'
  26997. - soname_spec='${libname}${release}${shared_ext}$major'
  26998. + break
  26999. fi
  27000. - shlibpath_var=LIBPATH
  27001. - fi
  27002. + done
  27003. + IFS="$lt_save_ifs"
  27004. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27005. ;;
  27006. +esac
  27007. +fi
  27008. -amigaos*)
  27009. - library_names_spec='$libname.ixlibrary $libname.a'
  27010. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27011. - 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'
  27012. - ;;
  27013. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27014. +if test -n "$MAGIC_CMD"; then
  27015. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27016. +$as_echo "$MAGIC_CMD" >&6; }
  27017. +else
  27018. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27019. +$as_echo "no" >&6; }
  27020. +fi
  27021. -beos*)
  27022. - library_names_spec='${libname}${shared_ext}'
  27023. - dynamic_linker="$host_os ld.so"
  27024. - shlibpath_var=LIBRARY_PATH
  27025. - ;;
  27026. -bsdi[45]*)
  27027. - version_type=linux
  27028. - need_version=no
  27029. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27030. - soname_spec='${libname}${release}${shared_ext}$major'
  27031. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27032. - shlibpath_var=LD_LIBRARY_PATH
  27033. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27034. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27035. - # the default ld.so.conf also contains /usr/contrib/lib and
  27036. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27037. - # libtool to hard-code these into programs
  27038. - ;;
  27039. + else
  27040. + MAGIC_CMD=:
  27041. + fi
  27042. +fi
  27043. -cygwin* | mingw* | pw32*)
  27044. - version_type=windows
  27045. - shrext_cmds=".dll"
  27046. - need_version=no
  27047. - need_lib_prefix=no
  27048. + fi
  27049. + ;;
  27050. +esac
  27051. - case $GCC,$host_os in
  27052. - yes,cygwin* | yes,mingw* | yes,pw32*)
  27053. - library_names_spec='$libname.dll.a'
  27054. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27055. - postinstall_cmds='base_file=`basename \${file}`~
  27056. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  27057. - dldir=$destdir/`dirname \$dlpath`~
  27058. - test -d \$dldir || mkdir -p \$dldir~
  27059. - $install_prog $dir/$dlname \$dldir/$dlname~
  27060. - chmod a+x \$dldir/$dlname'
  27061. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27062. - dlpath=$dir/\$dldll~
  27063. - $rm \$dlpath'
  27064. - shlibpath_overrides_runpath=yes
  27065. +# Use C for the default configuration in the libtool script
  27066. - case $host_os in
  27067. - cygwin*)
  27068. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27069. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27070. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27071. - ;;
  27072. - mingw*)
  27073. - # MinGW DLLs use traditional 'lib' prefix
  27074. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27075. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27076. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  27077. - # It is most probably a Windows format PATH printed by
  27078. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27079. - # path with ; separators, and with drive letters. We can handle the
  27080. - # drive letters (cygwin fileutils understands them), so leave them,
  27081. - # especially as we might pass files found there to a mingw objdump,
  27082. - # which wouldn't understand a cygwinified path. Ahh.
  27083. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27084. - else
  27085. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27086. - fi
  27087. - ;;
  27088. - pw32*)
  27089. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27090. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27091. - ;;
  27092. - esac
  27093. - ;;
  27094. +lt_save_CC="$CC"
  27095. +ac_ext=c
  27096. +ac_cpp='$CPP $CPPFLAGS'
  27097. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27098. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27099. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27100. - *)
  27101. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27102. - ;;
  27103. - esac
  27104. - dynamic_linker='Win32 ld.exe'
  27105. - # FIXME: first we should search . and the directory the executable is in
  27106. - shlibpath_var=PATH
  27107. - ;;
  27108. -darwin* | rhapsody*)
  27109. - dynamic_linker="$host_os dyld"
  27110. - version_type=darwin
  27111. - need_lib_prefix=no
  27112. - need_version=no
  27113. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27114. - soname_spec='${libname}${release}${major}$shared_ext'
  27115. - shlibpath_overrides_runpath=yes
  27116. - shlibpath_var=DYLD_LIBRARY_PATH
  27117. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27118. +# Source file extension for C test sources.
  27119. +ac_ext=c
  27120. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  27121. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27122. - ;;
  27123. +# Object file extension for compiled C test sources.
  27124. +objext=o
  27125. +objext=$objext
  27126. -dgux*)
  27127. - version_type=linux
  27128. - need_lib_prefix=no
  27129. - need_version=no
  27130. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27131. - soname_spec='${libname}${release}${shared_ext}$major'
  27132. - shlibpath_var=LD_LIBRARY_PATH
  27133. - ;;
  27134. +# Code to be used in simple compile tests
  27135. +lt_simple_compile_test_code="int some_variable = 0;"
  27136. -freebsd1*)
  27137. - dynamic_linker=no
  27138. - ;;
  27139. +# Code to be used in simple link tests
  27140. +lt_simple_link_test_code='int main(){return(0);}'
  27141. -freebsd* | dragonfly*)
  27142. - # DragonFly does not have aout. When/if they implement a new
  27143. - # versioning mechanism, adjust this.
  27144. - if test -x /usr/bin/objformat; then
  27145. - objformat=`/usr/bin/objformat`
  27146. - else
  27147. - case $host_os in
  27148. - freebsd[123]*) objformat=aout ;;
  27149. - *) objformat=elf ;;
  27150. - esac
  27151. - fi
  27152. - version_type=freebsd-$objformat
  27153. - case $version_type in
  27154. - freebsd-elf*)
  27155. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27156. - need_version=no
  27157. - need_lib_prefix=no
  27158. - ;;
  27159. - freebsd-*)
  27160. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27161. - need_version=yes
  27162. - ;;
  27163. - esac
  27164. - shlibpath_var=LD_LIBRARY_PATH
  27165. - case $host_os in
  27166. - freebsd2*)
  27167. - shlibpath_overrides_runpath=yes
  27168. - ;;
  27169. - freebsd3.[01]* | freebsdelf3.[01]*)
  27170. - shlibpath_overrides_runpath=yes
  27171. - hardcode_into_libs=yes
  27172. - ;;
  27173. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27174. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27175. - shlibpath_overrides_runpath=no
  27176. - hardcode_into_libs=yes
  27177. - ;;
  27178. - *) # from 4.6 on, and DragonFly
  27179. - shlibpath_overrides_runpath=yes
  27180. - hardcode_into_libs=yes
  27181. - ;;
  27182. - esac
  27183. - ;;
  27184. -gnu*)
  27185. - version_type=linux
  27186. - need_lib_prefix=no
  27187. - need_version=no
  27188. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27189. - soname_spec='${libname}${release}${shared_ext}$major'
  27190. - shlibpath_var=LD_LIBRARY_PATH
  27191. - hardcode_into_libs=yes
  27192. - ;;
  27193. -hpux9* | hpux10* | hpux11*)
  27194. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27195. - # link against other versions.
  27196. - version_type=sunos
  27197. - need_lib_prefix=no
  27198. - need_version=no
  27199. - case $host_cpu in
  27200. - ia64*)
  27201. - shrext_cmds='.so'
  27202. - hardcode_into_libs=yes
  27203. - dynamic_linker="$host_os dld.so"
  27204. - shlibpath_var=LD_LIBRARY_PATH
  27205. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27206. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27207. - soname_spec='${libname}${release}${shared_ext}$major'
  27208. - if test "X$HPUX_IA64_MODE" = X32; then
  27209. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27210. - else
  27211. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27212. - fi
  27213. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27214. - ;;
  27215. - hppa*64*)
  27216. - shrext_cmds='.sl'
  27217. - hardcode_into_libs=yes
  27218. - dynamic_linker="$host_os dld.sl"
  27219. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27220. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27221. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27222. - soname_spec='${libname}${release}${shared_ext}$major'
  27223. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27224. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27225. - ;;
  27226. - *)
  27227. - shrext_cmds='.sl'
  27228. - dynamic_linker="$host_os dld.sl"
  27229. - shlibpath_var=SHLIB_PATH
  27230. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27231. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27232. - soname_spec='${libname}${release}${shared_ext}$major'
  27233. - ;;
  27234. - esac
  27235. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27236. - postinstall_cmds='chmod 555 $lib'
  27237. - ;;
  27238. -interix[3-9]*)
  27239. - version_type=linux
  27240. - need_lib_prefix=no
  27241. - need_version=no
  27242. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27243. - soname_spec='${libname}${release}${shared_ext}$major'
  27244. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27245. - shlibpath_var=LD_LIBRARY_PATH
  27246. - shlibpath_overrides_runpath=no
  27247. - hardcode_into_libs=yes
  27248. - ;;
  27249. -irix5* | irix6* | nonstopux*)
  27250. - case $host_os in
  27251. - nonstopux*) version_type=nonstopux ;;
  27252. - *)
  27253. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27254. - version_type=linux
  27255. - else
  27256. - version_type=irix
  27257. - fi ;;
  27258. - esac
  27259. - need_lib_prefix=no
  27260. - need_version=no
  27261. - soname_spec='${libname}${release}${shared_ext}$major'
  27262. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27263. - case $host_os in
  27264. - irix5* | nonstopux*)
  27265. - libsuff= shlibsuff=
  27266. - ;;
  27267. - *)
  27268. - case $LD in # libtool.m4 will add one of these switches to LD
  27269. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27270. - libsuff= shlibsuff= libmagic=32-bit;;
  27271. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27272. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  27273. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27274. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27275. - *) libsuff= shlibsuff= libmagic=never-match;;
  27276. - esac
  27277. - ;;
  27278. - esac
  27279. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27280. - shlibpath_overrides_runpath=no
  27281. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27282. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27283. - hardcode_into_libs=yes
  27284. - ;;
  27285. -# No shared lib support for Linux oldld, aout, or coff.
  27286. -linux*oldld* | linux*aout* | linux*coff*)
  27287. - dynamic_linker=no
  27288. - ;;
  27289. -# This must be Linux ELF.
  27290. -linux* | k*bsd*-gnu)
  27291. - version_type=linux
  27292. - need_lib_prefix=no
  27293. - need_version=no
  27294. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27295. - soname_spec='${libname}${release}${shared_ext}$major'
  27296. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27297. - shlibpath_var=LD_LIBRARY_PATH
  27298. - shlibpath_overrides_runpath=no
  27299. - # This implies no fast_install, which is unacceptable.
  27300. - # Some rework will be needed to allow for fast_install
  27301. - # before this can be enabled.
  27302. - hardcode_into_libs=yes
  27303. +# If no C compiler was specified, use CC.
  27304. +LTCC=${LTCC-"$CC"}
  27305. - # Append ld.so.conf contents to the search path
  27306. - if test -f /etc/ld.so.conf; then
  27307. - 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' ' '`
  27308. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  27309. - fi
  27310. +# If no C compiler flags were specified, use CFLAGS.
  27311. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27312. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  27313. - # powerpc, because MkLinux only supported shared libraries with the
  27314. - # GNU dynamic linker. Since this was broken with cross compilers,
  27315. - # most powerpc-linux boxes support dynamic linking these days and
  27316. - # people can always --disable-shared, the test was removed, and we
  27317. - # assume the GNU/Linux dynamic linker is in use.
  27318. - dynamic_linker='GNU/Linux ld.so'
  27319. - ;;
  27320. +# Allow CC to be a program name with arguments.
  27321. +compiler=$CC
  27322. -netbsd*)
  27323. - version_type=sunos
  27324. - need_lib_prefix=no
  27325. - need_version=no
  27326. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27328. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27329. - dynamic_linker='NetBSD (a.out) ld.so'
  27330. - else
  27331. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27332. - soname_spec='${libname}${release}${shared_ext}$major'
  27333. - dynamic_linker='NetBSD ld.elf_so'
  27334. - fi
  27335. - shlibpath_var=LD_LIBRARY_PATH
  27336. - shlibpath_overrides_runpath=yes
  27337. - hardcode_into_libs=yes
  27338. - ;;
  27339. +# Save the default compiler, since it gets overwritten when the other
  27340. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  27341. +compiler_DEFAULT=$CC
  27342. -newsos6)
  27343. - version_type=linux
  27344. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27345. - shlibpath_var=LD_LIBRARY_PATH
  27346. - shlibpath_overrides_runpath=yes
  27347. - ;;
  27348. -
  27349. -nto-qnx*)
  27350. - version_type=linux
  27351. - need_lib_prefix=no
  27352. - need_version=no
  27353. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27354. - soname_spec='${libname}${release}${shared_ext}$major'
  27355. - shlibpath_var=LD_LIBRARY_PATH
  27356. - shlibpath_overrides_runpath=yes
  27357. - ;;
  27358. -
  27359. -openbsd*)
  27360. - version_type=sunos
  27361. - sys_lib_dlsearch_path_spec="/usr/lib"
  27362. - need_lib_prefix=no
  27363. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  27364. - case $host_os in
  27365. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  27366. - *) need_version=no ;;
  27367. - esac
  27368. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27369. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27370. - shlibpath_var=LD_LIBRARY_PATH
  27371. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27372. - case $host_os in
  27373. - openbsd2.[89] | openbsd2.[89].*)
  27374. - shlibpath_overrides_runpath=no
  27375. - ;;
  27376. - *)
  27377. - shlibpath_overrides_runpath=yes
  27378. - ;;
  27379. - esac
  27380. - else
  27381. - shlibpath_overrides_runpath=yes
  27382. - fi
  27383. - ;;
  27384. -
  27385. -os2*)
  27386. - libname_spec='$name'
  27387. - shrext_cmds=".dll"
  27388. - need_lib_prefix=no
  27389. - library_names_spec='$libname${shared_ext} $libname.a'
  27390. - dynamic_linker='OS/2 ld.exe'
  27391. - shlibpath_var=LIBPATH
  27392. - ;;
  27393. -
  27394. -osf3* | osf4* | osf5*)
  27395. - version_type=osf
  27396. - need_lib_prefix=no
  27397. - need_version=no
  27398. - soname_spec='${libname}${release}${shared_ext}$major'
  27399. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27400. - shlibpath_var=LD_LIBRARY_PATH
  27401. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27402. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27403. - ;;
  27404. -
  27405. -rdos*)
  27406. - dynamic_linker=no
  27407. - ;;
  27408. -
  27409. -solaris*)
  27410. - version_type=linux
  27411. - need_lib_prefix=no
  27412. - need_version=no
  27413. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27414. - soname_spec='${libname}${release}${shared_ext}$major'
  27415. - shlibpath_var=LD_LIBRARY_PATH
  27416. - shlibpath_overrides_runpath=yes
  27417. - hardcode_into_libs=yes
  27418. - # ldd complains unless libraries are executable
  27419. - postinstall_cmds='chmod +x $lib'
  27420. - ;;
  27421. -
  27422. -sunos4*)
  27423. - version_type=sunos
  27424. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27425. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27426. - shlibpath_var=LD_LIBRARY_PATH
  27427. - shlibpath_overrides_runpath=yes
  27428. - if test "$with_gnu_ld" = yes; then
  27429. - need_lib_prefix=no
  27430. - fi
  27431. - need_version=yes
  27432. - ;;
  27433. +# save warnings/boilerplate of simple test code
  27434. +ac_outfile=conftest.$ac_objext
  27435. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27436. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27437. +_lt_compiler_boilerplate=`cat conftest.err`
  27438. +$RM conftest*
  27439. -sysv4 | sysv4.3*)
  27440. - version_type=linux
  27441. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27442. - soname_spec='${libname}${release}${shared_ext}$major'
  27443. - shlibpath_var=LD_LIBRARY_PATH
  27444. - case $host_vendor in
  27445. - sni)
  27446. - shlibpath_overrides_runpath=no
  27447. - need_lib_prefix=no
  27448. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  27449. - runpath_var=LD_RUN_PATH
  27450. - ;;
  27451. - siemens)
  27452. - need_lib_prefix=no
  27453. - ;;
  27454. - motorola)
  27455. - need_lib_prefix=no
  27456. - need_version=no
  27457. - shlibpath_overrides_runpath=no
  27458. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  27459. - ;;
  27460. - esac
  27461. - ;;
  27462. +ac_outfile=conftest.$ac_objext
  27463. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27464. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27465. +_lt_linker_boilerplate=`cat conftest.err`
  27466. +$RM -r conftest*
  27467. -sysv4*MP*)
  27468. - if test -d /usr/nec ;then
  27469. - version_type=linux
  27470. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  27471. - soname_spec='$libname${shared_ext}.$major'
  27472. - shlibpath_var=LD_LIBRARY_PATH
  27473. - fi
  27474. - ;;
  27475. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27476. - version_type=freebsd-elf
  27477. - need_lib_prefix=no
  27478. - need_version=no
  27479. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27480. - soname_spec='${libname}${release}${shared_ext}$major'
  27481. - shlibpath_var=LD_LIBRARY_PATH
  27482. - hardcode_into_libs=yes
  27483. - if test "$with_gnu_ld" = yes; then
  27484. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  27485. - shlibpath_overrides_runpath=no
  27486. - else
  27487. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  27488. - shlibpath_overrides_runpath=yes
  27489. - case $host_os in
  27490. - sco3.2v5*)
  27491. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  27492. - ;;
  27493. - esac
  27494. - fi
  27495. - sys_lib_dlsearch_path_spec='/usr/lib'
  27496. - ;;
  27497. +if test -n "$compiler"; then
  27498. -uts4*)
  27499. - version_type=linux
  27500. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27501. - soname_spec='${libname}${release}${shared_ext}$major'
  27502. - shlibpath_var=LD_LIBRARY_PATH
  27503. - ;;
  27504. +lt_prog_compiler_no_builtin_flag=
  27505. -*)
  27506. - dynamic_linker=no
  27507. - ;;
  27508. -esac
  27509. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  27510. -$as_echo "$dynamic_linker" >&6; }
  27511. -test "$dynamic_linker" = no && can_build_shared=no
  27512. +if test "$GCC" = yes; then
  27513. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  27514. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  27515. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  27516. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  27517. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  27518. $as_echo_n "(cached) " >&6
  27519. else
  27520. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  27521. + lt_cv_prog_compiler_rtti_exceptions=no
  27522. + ac_outfile=conftest.$ac_objext
  27523. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27524. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  27525. + # Insert the option either (1) after the last *FLAGS variable, or
  27526. + # (2) before a word containing "conftest.", or (3) at the end.
  27527. + # Note that $ac_compile itself does not contain backslashes and begins
  27528. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27529. + # The option is referenced via a variable to avoid confusing sed.
  27530. + lt_compile=`echo "$ac_compile" | $SED \
  27531. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27532. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27533. + -e 's:$: $lt_compiler_flag:'`
  27534. + (eval echo "\"\$as_me:7232: $lt_compile\"" >&5)
  27535. + (eval "$lt_compile" 2>conftest.err)
  27536. + ac_status=$?
  27537. + cat conftest.err >&5
  27538. + echo "$as_me:7236: \$? = $ac_status" >&5
  27539. + if (exit $ac_status) && test -s "$ac_outfile"; then
  27540. + # The compiler can only warn and ignore the option if not recognized
  27541. + # So say no if there are warnings other than the usual output.
  27542. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27543. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27544. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27545. + lt_cv_prog_compiler_rtti_exceptions=yes
  27546. + fi
  27547. + fi
  27548. + $RM conftest*
  27549. +
  27550. fi
  27551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  27552. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  27553. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  27554. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  27555. - $as_echo_n "(cached) " >&6
  27556. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  27557. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  27558. else
  27559. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  27560. + :
  27561. fi
  27562. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  27563. -
  27564. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  27565. -if test "$GCC" = yes; then
  27566. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  27567. fi
  27568. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  27569. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  27570. -hardcode_action=
  27571. -if test -n "$hardcode_libdir_flag_spec" || \
  27572. - test -n "$runpath_var" || \
  27573. - test "X$hardcode_automatic" = "Xyes" ; then
  27574. - # We can hardcode non-existant directories.
  27575. - if test "$hardcode_direct" != no &&
  27576. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  27577. - # have to relink, otherwise we might link with an installed library
  27578. - # when we should be linking with a yet-to-be-installed one
  27579. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  27580. - test "$hardcode_minus_L" != no; then
  27581. - # Linking always hardcodes the temporary library directory.
  27582. - hardcode_action=relink
  27583. - else
  27584. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  27585. - hardcode_action=immediate
  27586. - fi
  27587. -else
  27588. - # We cannot hardcode anything, or else we can only hardcode existing
  27589. - # directories.
  27590. - hardcode_action=unsupported
  27591. -fi
  27592. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  27593. -$as_echo "$hardcode_action" >&6; }
  27594. -if test "$hardcode_action" = relink; then
  27595. - # Fast installation is not supported
  27596. - enable_fast_install=no
  27597. -elif test "$shlibpath_overrides_runpath" = yes ||
  27598. - test "$enable_shared" = no; then
  27599. - # Fast installation is not necessary
  27600. - enable_fast_install=needless
  27601. -fi
  27602. -striplib=
  27603. -old_striplib=
  27604. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  27605. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  27606. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  27607. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  27608. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  27609. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  27610. -$as_echo "yes" >&6; }
  27611. -else
  27612. -# FIXME - insert some real tests, host_os isn't really good enough
  27613. - case $host_os in
  27614. - darwin*)
  27615. - if test -n "$STRIP" ; then
  27616. - striplib="$STRIP -x"
  27617. - old_striplib="$STRIP -S"
  27618. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  27619. -$as_echo "yes" >&6; }
  27620. - else
  27621. - { $as_echo "$as_me:$LINENO: result: no" >&5
  27622. -$as_echo "no" >&6; }
  27623. -fi
  27624. - ;;
  27625. - *)
  27626. - { $as_echo "$as_me:$LINENO: result: no" >&5
  27627. -$as_echo "no" >&6; }
  27628. - ;;
  27629. - esac
  27630. -fi
  27631. -if test "x$enable_dlopen" != xyes; then
  27632. - enable_dlopen=unknown
  27633. - enable_dlopen_self=unknown
  27634. - enable_dlopen_self_static=unknown
  27635. -else
  27636. - lt_cv_dlopen=no
  27637. - lt_cv_dlopen_libs=
  27638. - case $host_os in
  27639. - beos*)
  27640. - lt_cv_dlopen="load_add_on"
  27641. - lt_cv_dlopen_libs=
  27642. - lt_cv_dlopen_self=yes
  27643. - ;;
  27644. + lt_prog_compiler_wl=
  27645. +lt_prog_compiler_pic=
  27646. +lt_prog_compiler_static=
  27647. - mingw* | pw32*)
  27648. - lt_cv_dlopen="LoadLibrary"
  27649. - lt_cv_dlopen_libs=
  27650. - ;;
  27651. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  27652. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  27653. - cygwin*)
  27654. - lt_cv_dlopen="dlopen"
  27655. - lt_cv_dlopen_libs=
  27656. - ;;
  27657. + if test "$GCC" = yes; then
  27658. + lt_prog_compiler_wl='-Wl,'
  27659. + lt_prog_compiler_static='-static'
  27660. - darwin*)
  27661. - # if libdl is installed we need to link against it
  27662. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27663. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  27664. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27665. - $as_echo_n "(cached) " >&6
  27666. -else
  27667. - ac_check_lib_save_LIBS=$LIBS
  27668. -LIBS="-ldl $LIBS"
  27669. -cat >conftest.$ac_ext <<_ACEOF
  27670. -/* confdefs.h. */
  27671. -_ACEOF
  27672. -cat confdefs.h >>conftest.$ac_ext
  27673. -cat >>conftest.$ac_ext <<_ACEOF
  27674. -/* end confdefs.h. */
  27675. + case $host_os in
  27676. + aix*)
  27677. + # All AIX code is PIC.
  27678. + if test "$host_cpu" = ia64; then
  27679. + # AIX 5 now supports IA64 processor
  27680. + lt_prog_compiler_static='-Bstatic'
  27681. + fi
  27682. + ;;
  27683. -/* Override any GCC internal prototype to avoid an error.
  27684. - Use char because int might match the return type of a GCC
  27685. - builtin and then its argument prototype would still apply. */
  27686. -#ifdef __cplusplus
  27687. -extern "C"
  27688. -#endif
  27689. -char dlopen ();
  27690. -int
  27691. -main ()
  27692. -{
  27693. -return dlopen ();
  27694. - ;
  27695. - return 0;
  27696. -}
  27697. -_ACEOF
  27698. -rm -f conftest.$ac_objext conftest$ac_exeext
  27699. -if { (ac_try="$ac_link"
  27700. -case "(($ac_try" in
  27701. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27702. - *) ac_try_echo=$ac_try;;
  27703. -esac
  27704. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27705. -$as_echo "$ac_try_echo") >&5
  27706. - (eval "$ac_link") 2>conftest.er1
  27707. - ac_status=$?
  27708. - grep -v '^ *+' conftest.er1 >conftest.err
  27709. - rm -f conftest.er1
  27710. - cat conftest.err >&5
  27711. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27712. - (exit $ac_status); } && {
  27713. - test -z "$ac_c_werror_flag" ||
  27714. - test ! -s conftest.err
  27715. - } && test -s conftest$ac_exeext && {
  27716. - test "$cross_compiling" = yes ||
  27717. - $as_test_x conftest$ac_exeext
  27718. - }; then
  27719. - ac_cv_lib_dl_dlopen=yes
  27720. -else
  27721. - $as_echo "$as_me: failed program was:" >&5
  27722. -sed 's/^/| /' conftest.$ac_ext >&5
  27723. + amigaos*)
  27724. + case $host_cpu in
  27725. + powerpc)
  27726. + # see comment about AmigaOS4 .so support
  27727. + lt_prog_compiler_pic='-fPIC'
  27728. + ;;
  27729. + m68k)
  27730. + # FIXME: we need at least 68020 code to build shared libraries, but
  27731. + # adding the `-m68020' flag to GCC prevents building anything better,
  27732. + # like `-m68040'.
  27733. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  27734. + ;;
  27735. + esac
  27736. + ;;
  27737. - ac_cv_lib_dl_dlopen=no
  27738. -fi
  27739. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27740. + # PIC is the default for these OSes.
  27741. + ;;
  27742. -rm -rf conftest.dSYM
  27743. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27744. - conftest$ac_exeext conftest.$ac_ext
  27745. -LIBS=$ac_check_lib_save_LIBS
  27746. -fi
  27747. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  27748. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  27749. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  27750. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  27751. -else
  27752. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  27753. + # This hack is so that the source file can tell whether it is being
  27754. + # built for inclusion in a dll (and should export symbols for example).
  27755. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27756. + # (--disable-auto-import) libraries
  27757. + lt_prog_compiler_pic='-DDLL_EXPORT'
  27758. + ;;
  27759. - lt_cv_dlopen="dyld"
  27760. - lt_cv_dlopen_libs=
  27761. - lt_cv_dlopen_self=yes
  27762. + darwin* | rhapsody*)
  27763. + # PIC is the default on this platform
  27764. + # Common symbols not allowed in MH_DYLIB files
  27765. + lt_prog_compiler_pic='-fno-common'
  27766. + ;;
  27767. -fi
  27768. + hpux*)
  27769. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  27770. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  27771. + # sets the default TLS model and affects inlining.
  27772. + case $host_cpu in
  27773. + hppa*64*)
  27774. + # +Z the default
  27775. + ;;
  27776. + *)
  27777. + lt_prog_compiler_pic='-fPIC'
  27778. + ;;
  27779. + esac
  27780. + ;;
  27781. - ;;
  27782. + interix[3-9]*)
  27783. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27784. + # Instead, we relocate shared libraries at runtime.
  27785. + ;;
  27786. - *)
  27787. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  27788. -$as_echo_n "checking for shl_load... " >&6; }
  27789. -if test "${ac_cv_func_shl_load+set}" = set; then
  27790. - $as_echo_n "(cached) " >&6
  27791. -else
  27792. - cat >conftest.$ac_ext <<_ACEOF
  27793. -/* confdefs.h. */
  27794. -_ACEOF
  27795. -cat confdefs.h >>conftest.$ac_ext
  27796. -cat >>conftest.$ac_ext <<_ACEOF
  27797. -/* end confdefs.h. */
  27798. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  27799. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27800. -#define shl_load innocuous_shl_load
  27801. + msdosdjgpp*)
  27802. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  27803. + # on systems that don't support them.
  27804. + lt_prog_compiler_can_build_shared=no
  27805. + enable_shared=no
  27806. + ;;
  27807. -/* System header to define __stub macros and hopefully few prototypes,
  27808. - which can conflict with char shl_load (); below.
  27809. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27810. - <limits.h> exists even on freestanding compilers. */
  27811. + *nto* | *qnx*)
  27812. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  27813. + # it will coredump.
  27814. + lt_prog_compiler_pic='-fPIC -shared'
  27815. + ;;
  27816. -#ifdef __STDC__
  27817. -# include <limits.h>
  27818. -#else
  27819. -# include <assert.h>
  27820. -#endif
  27821. + sysv4*MP*)
  27822. + if test -d /usr/nec; then
  27823. + lt_prog_compiler_pic=-Kconform_pic
  27824. + fi
  27825. + ;;
  27826. -#undef shl_load
  27827. + *)
  27828. + lt_prog_compiler_pic='-fPIC'
  27829. + ;;
  27830. + esac
  27831. + else
  27832. + # PORTME Check for flag to pass linker flags through the system compiler.
  27833. + case $host_os in
  27834. + aix*)
  27835. + lt_prog_compiler_wl='-Wl,'
  27836. + if test "$host_cpu" = ia64; then
  27837. + # AIX 5 now supports IA64 processor
  27838. + lt_prog_compiler_static='-Bstatic'
  27839. + else
  27840. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  27841. + fi
  27842. + ;;
  27843. -/* Override any GCC internal prototype to avoid an error.
  27844. - Use char because int might match the return type of a GCC
  27845. - builtin and then its argument prototype would still apply. */
  27846. -#ifdef __cplusplus
  27847. -extern "C"
  27848. -#endif
  27849. -char shl_load ();
  27850. -/* The GNU C library defines this for functions which it implements
  27851. - to always fail with ENOSYS. Some functions are actually named
  27852. - something starting with __ and the normal name is an alias. */
  27853. -#if defined __stub_shl_load || defined __stub___shl_load
  27854. -choke me
  27855. -#endif
  27856. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  27857. + # This hack is so that the source file can tell whether it is being
  27858. + # built for inclusion in a dll (and should export symbols for example).
  27859. + lt_prog_compiler_pic='-DDLL_EXPORT'
  27860. + ;;
  27861. -int
  27862. -main ()
  27863. -{
  27864. -return shl_load ();
  27865. - ;
  27866. - return 0;
  27867. -}
  27868. -_ACEOF
  27869. -rm -f conftest.$ac_objext conftest$ac_exeext
  27870. -if { (ac_try="$ac_link"
  27871. -case "(($ac_try" in
  27872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27873. - *) ac_try_echo=$ac_try;;
  27874. -esac
  27875. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27876. -$as_echo "$ac_try_echo") >&5
  27877. - (eval "$ac_link") 2>conftest.er1
  27878. - ac_status=$?
  27879. - grep -v '^ *+' conftest.er1 >conftest.err
  27880. - rm -f conftest.er1
  27881. - cat conftest.err >&5
  27882. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27883. - (exit $ac_status); } && {
  27884. - test -z "$ac_c_werror_flag" ||
  27885. - test ! -s conftest.err
  27886. - } && test -s conftest$ac_exeext && {
  27887. - test "$cross_compiling" = yes ||
  27888. - $as_test_x conftest$ac_exeext
  27889. - }; then
  27890. - ac_cv_func_shl_load=yes
  27891. -else
  27892. - $as_echo "$as_me: failed program was:" >&5
  27893. -sed 's/^/| /' conftest.$ac_ext >&5
  27894. + hpux9* | hpux10* | hpux11*)
  27895. + lt_prog_compiler_wl='-Wl,'
  27896. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27897. + # not for PA HP-UX.
  27898. + case $host_cpu in
  27899. + hppa*64*|ia64*)
  27900. + # +Z the default
  27901. + ;;
  27902. + *)
  27903. + lt_prog_compiler_pic='+Z'
  27904. + ;;
  27905. + esac
  27906. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  27907. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  27908. + ;;
  27909. - ac_cv_func_shl_load=no
  27910. -fi
  27911. + irix5* | irix6* | nonstopux*)
  27912. + lt_prog_compiler_wl='-Wl,'
  27913. + # PIC (with -KPIC) is the default.
  27914. + lt_prog_compiler_static='-non_shared'
  27915. + ;;
  27916. -rm -rf conftest.dSYM
  27917. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27918. - conftest$ac_exeext conftest.$ac_ext
  27919. -fi
  27920. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  27921. -$as_echo "$ac_cv_func_shl_load" >&6; }
  27922. -if test "x$ac_cv_func_shl_load" = x""yes; then
  27923. - lt_cv_dlopen="shl_load"
  27924. -else
  27925. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  27926. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  27927. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  27928. - $as_echo_n "(cached) " >&6
  27929. -else
  27930. - ac_check_lib_save_LIBS=$LIBS
  27931. -LIBS="-ldld $LIBS"
  27932. -cat >conftest.$ac_ext <<_ACEOF
  27933. -/* confdefs.h. */
  27934. -_ACEOF
  27935. -cat confdefs.h >>conftest.$ac_ext
  27936. -cat >>conftest.$ac_ext <<_ACEOF
  27937. -/* end confdefs.h. */
  27938. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  27939. + case $cc_basename in
  27940. + # old Intel for x86_64 which still supported -KPIC.
  27941. + ecc*)
  27942. + lt_prog_compiler_wl='-Wl,'
  27943. + lt_prog_compiler_pic='-KPIC'
  27944. + lt_prog_compiler_static='-static'
  27945. + ;;
  27946. + # icc used to be incompatible with GCC.
  27947. + # ICC 10 doesn't accept -KPIC any more.
  27948. + icc* | ifort*)
  27949. + lt_prog_compiler_wl='-Wl,'
  27950. + lt_prog_compiler_pic='-fPIC'
  27951. + lt_prog_compiler_static='-static'
  27952. + ;;
  27953. + # Lahey Fortran 8.1.
  27954. + lf95*)
  27955. + lt_prog_compiler_wl='-Wl,'
  27956. + lt_prog_compiler_pic='--shared'
  27957. + lt_prog_compiler_static='--static'
  27958. + ;;
  27959. + pgcc* | pgf77* | pgf90* | pgf95*)
  27960. + # Portland Group compilers (*not* the Pentium gcc compiler,
  27961. + # which looks to be a dead project)
  27962. + lt_prog_compiler_wl='-Wl,'
  27963. + lt_prog_compiler_pic='-fpic'
  27964. + lt_prog_compiler_static='-Bstatic'
  27965. + ;;
  27966. + ccc*)
  27967. + lt_prog_compiler_wl='-Wl,'
  27968. + # All Alpha code is PIC.
  27969. + lt_prog_compiler_static='-non_shared'
  27970. + ;;
  27971. + xl*)
  27972. + # IBM XL C 8.0/Fortran 10.1 on PPC
  27973. + lt_prog_compiler_wl='-Wl,'
  27974. + lt_prog_compiler_pic='-qpic'
  27975. + lt_prog_compiler_static='-qstaticlink'
  27976. + ;;
  27977. + *)
  27978. + case `$CC -V 2>&1 | sed 5q` in
  27979. + *Sun\ C*)
  27980. + # Sun C 5.9
  27981. + lt_prog_compiler_pic='-KPIC'
  27982. + lt_prog_compiler_static='-Bstatic'
  27983. + lt_prog_compiler_wl='-Wl,'
  27984. + ;;
  27985. + *Sun\ F*)
  27986. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  27987. + lt_prog_compiler_pic='-KPIC'
  27988. + lt_prog_compiler_static='-Bstatic'
  27989. + lt_prog_compiler_wl=''
  27990. + ;;
  27991. + esac
  27992. + ;;
  27993. + esac
  27994. + ;;
  27995. -/* Override any GCC internal prototype to avoid an error.
  27996. - Use char because int might match the return type of a GCC
  27997. - builtin and then its argument prototype would still apply. */
  27998. -#ifdef __cplusplus
  27999. -extern "C"
  28000. -#endif
  28001. -char shl_load ();
  28002. -int
  28003. -main ()
  28004. -{
  28005. -return shl_load ();
  28006. - ;
  28007. - return 0;
  28008. -}
  28009. -_ACEOF
  28010. -rm -f conftest.$ac_objext conftest$ac_exeext
  28011. -if { (ac_try="$ac_link"
  28012. -case "(($ac_try" in
  28013. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28014. - *) ac_try_echo=$ac_try;;
  28015. -esac
  28016. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28017. -$as_echo "$ac_try_echo") >&5
  28018. - (eval "$ac_link") 2>conftest.er1
  28019. - ac_status=$?
  28020. - grep -v '^ *+' conftest.er1 >conftest.err
  28021. - rm -f conftest.er1
  28022. - cat conftest.err >&5
  28023. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28024. - (exit $ac_status); } && {
  28025. - test -z "$ac_c_werror_flag" ||
  28026. - test ! -s conftest.err
  28027. - } && test -s conftest$ac_exeext && {
  28028. - test "$cross_compiling" = yes ||
  28029. - $as_test_x conftest$ac_exeext
  28030. - }; then
  28031. - ac_cv_lib_dld_shl_load=yes
  28032. -else
  28033. - $as_echo "$as_me: failed program was:" >&5
  28034. -sed 's/^/| /' conftest.$ac_ext >&5
  28035. + newsos6)
  28036. + lt_prog_compiler_pic='-KPIC'
  28037. + lt_prog_compiler_static='-Bstatic'
  28038. + ;;
  28039. - ac_cv_lib_dld_shl_load=no
  28040. -fi
  28041. + *nto* | *qnx*)
  28042. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  28043. + # it will coredump.
  28044. + lt_prog_compiler_pic='-fPIC -shared'
  28045. + ;;
  28046. -rm -rf conftest.dSYM
  28047. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28048. - conftest$ac_exeext conftest.$ac_ext
  28049. -LIBS=$ac_check_lib_save_LIBS
  28050. -fi
  28051. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  28052. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  28053. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  28054. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  28055. -else
  28056. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  28057. -$as_echo_n "checking for dlopen... " >&6; }
  28058. -if test "${ac_cv_func_dlopen+set}" = set; then
  28059. - $as_echo_n "(cached) " >&6
  28060. -else
  28061. - cat >conftest.$ac_ext <<_ACEOF
  28062. -/* confdefs.h. */
  28063. -_ACEOF
  28064. -cat confdefs.h >>conftest.$ac_ext
  28065. -cat >>conftest.$ac_ext <<_ACEOF
  28066. -/* end confdefs.h. */
  28067. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  28068. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28069. -#define dlopen innocuous_dlopen
  28070. + osf3* | osf4* | osf5*)
  28071. + lt_prog_compiler_wl='-Wl,'
  28072. + # All OSF/1 code is PIC.
  28073. + lt_prog_compiler_static='-non_shared'
  28074. + ;;
  28075. -/* System header to define __stub macros and hopefully few prototypes,
  28076. - which can conflict with char dlopen (); below.
  28077. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28078. - <limits.h> exists even on freestanding compilers. */
  28079. + rdos*)
  28080. + lt_prog_compiler_static='-non_shared'
  28081. + ;;
  28082. -#ifdef __STDC__
  28083. -# include <limits.h>
  28084. -#else
  28085. -# include <assert.h>
  28086. -#endif
  28087. + solaris*)
  28088. + lt_prog_compiler_pic='-KPIC'
  28089. + lt_prog_compiler_static='-Bstatic'
  28090. + case $cc_basename in
  28091. + f77* | f90* | f95*)
  28092. + lt_prog_compiler_wl='-Qoption ld ';;
  28093. + *)
  28094. + lt_prog_compiler_wl='-Wl,';;
  28095. + esac
  28096. + ;;
  28097. +
  28098. + sunos4*)
  28099. + lt_prog_compiler_wl='-Qoption ld '
  28100. + lt_prog_compiler_pic='-PIC'
  28101. + lt_prog_compiler_static='-Bstatic'
  28102. + ;;
  28103. -#undef dlopen
  28104. + sysv4 | sysv4.2uw2* | sysv4.3*)
  28105. + lt_prog_compiler_wl='-Wl,'
  28106. + lt_prog_compiler_pic='-KPIC'
  28107. + lt_prog_compiler_static='-Bstatic'
  28108. + ;;
  28109. -/* Override any GCC internal prototype to avoid an error.
  28110. - Use char because int might match the return type of a GCC
  28111. - builtin and then its argument prototype would still apply. */
  28112. -#ifdef __cplusplus
  28113. -extern "C"
  28114. -#endif
  28115. -char dlopen ();
  28116. -/* The GNU C library defines this for functions which it implements
  28117. - to always fail with ENOSYS. Some functions are actually named
  28118. - something starting with __ and the normal name is an alias. */
  28119. -#if defined __stub_dlopen || defined __stub___dlopen
  28120. -choke me
  28121. -#endif
  28122. + sysv4*MP*)
  28123. + if test -d /usr/nec ;then
  28124. + lt_prog_compiler_pic='-Kconform_pic'
  28125. + lt_prog_compiler_static='-Bstatic'
  28126. + fi
  28127. + ;;
  28128. -int
  28129. -main ()
  28130. -{
  28131. -return dlopen ();
  28132. - ;
  28133. - return 0;
  28134. -}
  28135. -_ACEOF
  28136. -rm -f conftest.$ac_objext conftest$ac_exeext
  28137. -if { (ac_try="$ac_link"
  28138. -case "(($ac_try" in
  28139. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28140. - *) ac_try_echo=$ac_try;;
  28141. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28142. + lt_prog_compiler_wl='-Wl,'
  28143. + lt_prog_compiler_pic='-KPIC'
  28144. + lt_prog_compiler_static='-Bstatic'
  28145. + ;;
  28146. +
  28147. + unicos*)
  28148. + lt_prog_compiler_wl='-Wl,'
  28149. + lt_prog_compiler_can_build_shared=no
  28150. + ;;
  28151. +
  28152. + uts4*)
  28153. + lt_prog_compiler_pic='-pic'
  28154. + lt_prog_compiler_static='-Bstatic'
  28155. + ;;
  28156. +
  28157. + *)
  28158. + lt_prog_compiler_can_build_shared=no
  28159. + ;;
  28160. + esac
  28161. + fi
  28162. +
  28163. +case $host_os in
  28164. + # For platforms which do not support PIC, -DPIC is meaningless:
  28165. + *djgpp*)
  28166. + lt_prog_compiler_pic=
  28167. + ;;
  28168. + *)
  28169. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  28170. + ;;
  28171. esac
  28172. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28173. -$as_echo "$ac_try_echo") >&5
  28174. - (eval "$ac_link") 2>conftest.er1
  28175. - ac_status=$?
  28176. - grep -v '^ *+' conftest.er1 >conftest.err
  28177. - rm -f conftest.er1
  28178. - cat conftest.err >&5
  28179. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28180. - (exit $ac_status); } && {
  28181. - test -z "$ac_c_werror_flag" ||
  28182. - test ! -s conftest.err
  28183. - } && test -s conftest$ac_exeext && {
  28184. - test "$cross_compiling" = yes ||
  28185. - $as_test_x conftest$ac_exeext
  28186. - }; then
  28187. - ac_cv_func_dlopen=yes
  28188. -else
  28189. - $as_echo "$as_me: failed program was:" >&5
  28190. -sed 's/^/| /' conftest.$ac_ext >&5
  28191. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  28192. +$as_echo "$lt_prog_compiler_pic" >&6; }
  28193. - ac_cv_func_dlopen=no
  28194. -fi
  28195. -rm -rf conftest.dSYM
  28196. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28197. - conftest$ac_exeext conftest.$ac_ext
  28198. -fi
  28199. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  28200. -$as_echo "$ac_cv_func_dlopen" >&6; }
  28201. -if test "x$ac_cv_func_dlopen" = x""yes; then
  28202. - lt_cv_dlopen="dlopen"
  28203. -else
  28204. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  28205. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  28206. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  28207. +
  28208. +
  28209. +
  28210. +
  28211. +#
  28212. +# Check to make sure the PIC flag actually works.
  28213. +#
  28214. +if test -n "$lt_prog_compiler_pic"; then
  28215. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  28216. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  28217. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  28218. $as_echo_n "(cached) " >&6
  28219. else
  28220. - ac_check_lib_save_LIBS=$LIBS
  28221. -LIBS="-ldl $LIBS"
  28222. -cat >conftest.$ac_ext <<_ACEOF
  28223. -/* confdefs.h. */
  28224. -_ACEOF
  28225. -cat confdefs.h >>conftest.$ac_ext
  28226. -cat >>conftest.$ac_ext <<_ACEOF
  28227. -/* end confdefs.h. */
  28228. + lt_cv_prog_compiler_pic_works=no
  28229. + ac_outfile=conftest.$ac_objext
  28230. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28231. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  28232. + # Insert the option either (1) after the last *FLAGS variable, or
  28233. + # (2) before a word containing "conftest.", or (3) at the end.
  28234. + # Note that $ac_compile itself does not contain backslashes and begins
  28235. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28236. + # The option is referenced via a variable to avoid confusing sed.
  28237. + lt_compile=`echo "$ac_compile" | $SED \
  28238. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28239. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28240. + -e 's:$: $lt_compiler_flag:'`
  28241. + (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
  28242. + (eval "$lt_compile" 2>conftest.err)
  28243. + ac_status=$?
  28244. + cat conftest.err >&5
  28245. + echo "$as_me:7575: \$? = $ac_status" >&5
  28246. + if (exit $ac_status) && test -s "$ac_outfile"; then
  28247. + # The compiler can only warn and ignore the option if not recognized
  28248. + # So say no if there are warnings other than the usual output.
  28249. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28250. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28251. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28252. + lt_cv_prog_compiler_pic_works=yes
  28253. + fi
  28254. + fi
  28255. + $RM conftest*
  28256. -/* Override any GCC internal prototype to avoid an error.
  28257. - Use char because int might match the return type of a GCC
  28258. - builtin and then its argument prototype would still apply. */
  28259. -#ifdef __cplusplus
  28260. -extern "C"
  28261. -#endif
  28262. -char dlopen ();
  28263. -int
  28264. -main ()
  28265. -{
  28266. -return dlopen ();
  28267. - ;
  28268. - return 0;
  28269. -}
  28270. -_ACEOF
  28271. -rm -f conftest.$ac_objext conftest$ac_exeext
  28272. -if { (ac_try="$ac_link"
  28273. -case "(($ac_try" in
  28274. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28275. - *) ac_try_echo=$ac_try;;
  28276. -esac
  28277. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28278. -$as_echo "$ac_try_echo") >&5
  28279. - (eval "$ac_link") 2>conftest.er1
  28280. - ac_status=$?
  28281. - grep -v '^ *+' conftest.er1 >conftest.err
  28282. - rm -f conftest.er1
  28283. - cat conftest.err >&5
  28284. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28285. - (exit $ac_status); } && {
  28286. - test -z "$ac_c_werror_flag" ||
  28287. - test ! -s conftest.err
  28288. - } && test -s conftest$ac_exeext && {
  28289. - test "$cross_compiling" = yes ||
  28290. - $as_test_x conftest$ac_exeext
  28291. - }; then
  28292. - ac_cv_lib_dl_dlopen=yes
  28293. -else
  28294. - $as_echo "$as_me: failed program was:" >&5
  28295. -sed 's/^/| /' conftest.$ac_ext >&5
  28296. +fi
  28297. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  28298. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  28299. - ac_cv_lib_dl_dlopen=no
  28300. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  28301. + case $lt_prog_compiler_pic in
  28302. + "" | " "*) ;;
  28303. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  28304. + esac
  28305. +else
  28306. + lt_prog_compiler_pic=
  28307. + lt_prog_compiler_can_build_shared=no
  28308. fi
  28309. -rm -rf conftest.dSYM
  28310. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28311. - conftest$ac_exeext conftest.$ac_ext
  28312. -LIBS=$ac_check_lib_save_LIBS
  28313. fi
  28314. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  28315. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  28316. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  28317. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28318. -else
  28319. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  28320. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  28321. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  28322. +
  28323. +
  28324. +
  28325. +
  28326. +
  28327. +
  28328. +#
  28329. +# Check to make sure the static flag actually works.
  28330. +#
  28331. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  28332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28333. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28334. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  28335. $as_echo_n "(cached) " >&6
  28336. else
  28337. - ac_check_lib_save_LIBS=$LIBS
  28338. -LIBS="-lsvld $LIBS"
  28339. -cat >conftest.$ac_ext <<_ACEOF
  28340. -/* confdefs.h. */
  28341. -_ACEOF
  28342. -cat confdefs.h >>conftest.$ac_ext
  28343. -cat >>conftest.$ac_ext <<_ACEOF
  28344. -/* end confdefs.h. */
  28345. -
  28346. -/* Override any GCC internal prototype to avoid an error.
  28347. - Use char because int might match the return type of a GCC
  28348. - builtin and then its argument prototype would still apply. */
  28349. -#ifdef __cplusplus
  28350. -extern "C"
  28351. -#endif
  28352. -char dlopen ();
  28353. -int
  28354. -main ()
  28355. -{
  28356. -return dlopen ();
  28357. - ;
  28358. - return 0;
  28359. -}
  28360. -_ACEOF
  28361. -rm -f conftest.$ac_objext conftest$ac_exeext
  28362. -if { (ac_try="$ac_link"
  28363. -case "(($ac_try" in
  28364. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28365. - *) ac_try_echo=$ac_try;;
  28366. -esac
  28367. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28368. -$as_echo "$ac_try_echo") >&5
  28369. - (eval "$ac_link") 2>conftest.er1
  28370. - ac_status=$?
  28371. - grep -v '^ *+' conftest.er1 >conftest.err
  28372. - rm -f conftest.er1
  28373. - cat conftest.err >&5
  28374. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28375. - (exit $ac_status); } && {
  28376. - test -z "$ac_c_werror_flag" ||
  28377. - test ! -s conftest.err
  28378. - } && test -s conftest$ac_exeext && {
  28379. - test "$cross_compiling" = yes ||
  28380. - $as_test_x conftest$ac_exeext
  28381. - }; then
  28382. - ac_cv_lib_svld_dlopen=yes
  28383. -else
  28384. - $as_echo "$as_me: failed program was:" >&5
  28385. -sed 's/^/| /' conftest.$ac_ext >&5
  28386. + lt_cv_prog_compiler_static_works=no
  28387. + save_LDFLAGS="$LDFLAGS"
  28388. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28389. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28390. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28391. + # The linker can only warn and ignore the option if not recognized
  28392. + # So say no if there are warnings
  28393. + if test -s conftest.err; then
  28394. + # Append any errors to the config.log.
  28395. + cat conftest.err 1>&5
  28396. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28397. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28398. + if diff conftest.exp conftest.er2 >/dev/null; then
  28399. + lt_cv_prog_compiler_static_works=yes
  28400. + fi
  28401. + else
  28402. + lt_cv_prog_compiler_static_works=yes
  28403. + fi
  28404. + fi
  28405. + $RM -r conftest*
  28406. + LDFLAGS="$save_LDFLAGS"
  28407. - ac_cv_lib_svld_dlopen=no
  28408. fi
  28409. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  28410. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  28411. -rm -rf conftest.dSYM
  28412. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28413. - conftest$ac_exeext conftest.$ac_ext
  28414. -LIBS=$ac_check_lib_save_LIBS
  28415. -fi
  28416. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  28417. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  28418. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  28419. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  28420. -else
  28421. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  28422. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  28423. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  28424. - $as_echo_n "(cached) " >&6
  28425. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  28426. + :
  28427. else
  28428. - ac_check_lib_save_LIBS=$LIBS
  28429. -LIBS="-ldld $LIBS"
  28430. -cat >conftest.$ac_ext <<_ACEOF
  28431. -/* confdefs.h. */
  28432. -_ACEOF
  28433. -cat confdefs.h >>conftest.$ac_ext
  28434. -cat >>conftest.$ac_ext <<_ACEOF
  28435. -/* end confdefs.h. */
  28436. + lt_prog_compiler_static=
  28437. +fi
  28438. -/* Override any GCC internal prototype to avoid an error.
  28439. - Use char because int might match the return type of a GCC
  28440. - builtin and then its argument prototype would still apply. */
  28441. -#ifdef __cplusplus
  28442. -extern "C"
  28443. -#endif
  28444. -char dld_link ();
  28445. -int
  28446. -main ()
  28447. -{
  28448. -return dld_link ();
  28449. - ;
  28450. - return 0;
  28451. -}
  28452. -_ACEOF
  28453. -rm -f conftest.$ac_objext conftest$ac_exeext
  28454. -if { (ac_try="$ac_link"
  28455. -case "(($ac_try" in
  28456. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28457. - *) ac_try_echo=$ac_try;;
  28458. -esac
  28459. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28460. -$as_echo "$ac_try_echo") >&5
  28461. - (eval "$ac_link") 2>conftest.er1
  28462. - ac_status=$?
  28463. - grep -v '^ *+' conftest.er1 >conftest.err
  28464. - rm -f conftest.er1
  28465. - cat conftest.err >&5
  28466. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28467. - (exit $ac_status); } && {
  28468. - test -z "$ac_c_werror_flag" ||
  28469. - test ! -s conftest.err
  28470. - } && test -s conftest$ac_exeext && {
  28471. - test "$cross_compiling" = yes ||
  28472. - $as_test_x conftest$ac_exeext
  28473. - }; then
  28474. - ac_cv_lib_dld_dld_link=yes
  28475. -else
  28476. - $as_echo "$as_me: failed program was:" >&5
  28477. -sed 's/^/| /' conftest.$ac_ext >&5
  28478. - ac_cv_lib_dld_dld_link=no
  28479. -fi
  28480. -rm -rf conftest.dSYM
  28481. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28482. - conftest$ac_exeext conftest.$ac_ext
  28483. -LIBS=$ac_check_lib_save_LIBS
  28484. -fi
  28485. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  28486. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  28487. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  28488. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  28489. -fi
  28490. -fi
  28491. -fi
  28492. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  28493. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28494. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  28495. + $as_echo_n "(cached) " >&6
  28496. +else
  28497. + lt_cv_prog_compiler_c_o=no
  28498. + $RM -r conftest 2>/dev/null
  28499. + mkdir conftest
  28500. + cd conftest
  28501. + mkdir out
  28502. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28503. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  28504. + # Insert the option either (1) after the last *FLAGS variable, or
  28505. + # (2) before a word containing "conftest.", or (3) at the end.
  28506. + # Note that $ac_compile itself does not contain backslashes and begins
  28507. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28508. + lt_compile=`echo "$ac_compile" | $SED \
  28509. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28510. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28511. + -e 's:$: $lt_compiler_flag:'`
  28512. + (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
  28513. + (eval "$lt_compile" 2>out/conftest.err)
  28514. + ac_status=$?
  28515. + cat out/conftest.err >&5
  28516. + echo "$as_me:7680: \$? = $ac_status" >&5
  28517. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28518. + then
  28519. + # The compiler can only warn and ignore the option if not recognized
  28520. + # So say no if there are warnings
  28521. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28522. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28523. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28524. + lt_cv_prog_compiler_c_o=yes
  28525. + fi
  28526. + fi
  28527. + chmod u+w . 2>&5
  28528. + $RM conftest*
  28529. + # SGI C++ compiler will create directory out/ii_files/ for
  28530. + # template instantiation
  28531. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  28532. + $RM out/* && rmdir out
  28533. + cd ..
  28534. + $RM -r conftest
  28535. + $RM conftest*
  28536. fi
  28537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  28538. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  28539. -fi
  28540. -fi
  28541. - ;;
  28542. - esac
  28543. - if test "x$lt_cv_dlopen" != xno; then
  28544. - enable_dlopen=yes
  28545. - else
  28546. - enable_dlopen=no
  28547. - fi
  28548. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  28549. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28550. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  28551. + $as_echo_n "(cached) " >&6
  28552. +else
  28553. + lt_cv_prog_compiler_c_o=no
  28554. + $RM -r conftest 2>/dev/null
  28555. + mkdir conftest
  28556. + cd conftest
  28557. + mkdir out
  28558. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28559. - case $lt_cv_dlopen in
  28560. - dlopen)
  28561. - save_CPPFLAGS="$CPPFLAGS"
  28562. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  28563. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  28564. + # Insert the option either (1) after the last *FLAGS variable, or
  28565. + # (2) before a word containing "conftest.", or (3) at the end.
  28566. + # Note that $ac_compile itself does not contain backslashes and begins
  28567. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  28568. + lt_compile=`echo "$ac_compile" | $SED \
  28569. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28570. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28571. + -e 's:$: $lt_compiler_flag:'`
  28572. + (eval echo "\"\$as_me:7731: $lt_compile\"" >&5)
  28573. + (eval "$lt_compile" 2>out/conftest.err)
  28574. + ac_status=$?
  28575. + cat out/conftest.err >&5
  28576. + echo "$as_me:7735: \$? = $ac_status" >&5
  28577. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28578. + then
  28579. + # The compiler can only warn and ignore the option if not recognized
  28580. + # So say no if there are warnings
  28581. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28582. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28583. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28584. + lt_cv_prog_compiler_c_o=yes
  28585. + fi
  28586. + fi
  28587. + chmod u+w . 2>&5
  28588. + $RM conftest*
  28589. + # SGI C++ compiler will create directory out/ii_files/ for
  28590. + # template instantiation
  28591. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  28592. + $RM out/* && rmdir out
  28593. + cd ..
  28594. + $RM -r conftest
  28595. + $RM conftest*
  28596. - save_LDFLAGS="$LDFLAGS"
  28597. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  28598. +fi
  28599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  28600. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  28601. - save_LIBS="$LIBS"
  28602. - LIBS="$lt_cv_dlopen_libs $LIBS"
  28603. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  28604. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  28605. -if test "${lt_cv_dlopen_self+set}" = set; then
  28606. - $as_echo_n "(cached) " >&6
  28607. -else
  28608. - if test "$cross_compiling" = yes; then :
  28609. - lt_cv_dlopen_self=cross
  28610. -else
  28611. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28612. - lt_status=$lt_dlunknown
  28613. - cat > conftest.$ac_ext <<EOF
  28614. -#line 10443 "configure"
  28615. -#include "confdefs.h"
  28616. -#if HAVE_DLFCN_H
  28617. -#include <dlfcn.h>
  28618. -#endif
  28619. -#include <stdio.h>
  28620. +hard_links="nottested"
  28621. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  28622. + # do not overwrite the value of need_locks provided by the user
  28623. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  28624. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  28625. + hard_links=yes
  28626. + $RM conftest*
  28627. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28628. + touch conftest.a
  28629. + ln conftest.a conftest.b 2>&5 || hard_links=no
  28630. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28631. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  28632. +$as_echo "$hard_links" >&6; }
  28633. + if test "$hard_links" = no; then
  28634. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28635. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28636. + need_locks=warn
  28637. + fi
  28638. +else
  28639. + need_locks=no
  28640. +fi
  28641. -#ifdef RTLD_GLOBAL
  28642. -# define LT_DLGLOBAL RTLD_GLOBAL
  28643. -#else
  28644. -# ifdef DL_GLOBAL
  28645. -# define LT_DLGLOBAL DL_GLOBAL
  28646. -# else
  28647. -# define LT_DLGLOBAL 0
  28648. -# endif
  28649. -#endif
  28650. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28651. - find out it does not work in some platform. */
  28652. -#ifndef LT_DLLAZY_OR_NOW
  28653. -# ifdef RTLD_LAZY
  28654. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28655. -# else
  28656. -# ifdef DL_LAZY
  28657. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28658. -# else
  28659. -# ifdef RTLD_NOW
  28660. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28661. -# else
  28662. -# ifdef DL_NOW
  28663. -# define LT_DLLAZY_OR_NOW DL_NOW
  28664. -# else
  28665. -# define LT_DLLAZY_OR_NOW 0
  28666. -# endif
  28667. -# endif
  28668. -# endif
  28669. -# endif
  28670. -#endif
  28671. -#ifdef __cplusplus
  28672. -extern "C" void exit (int);
  28673. -#endif
  28674. -void fnord() { int i=42;}
  28675. -int main ()
  28676. -{
  28677. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28678. - int status = $lt_dlunknown;
  28679. - if (self)
  28680. - {
  28681. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28682. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28683. - /* dlclose (self); */
  28684. - }
  28685. - else
  28686. - puts (dlerror ());
  28687. - exit (status);
  28688. -}
  28689. -EOF
  28690. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28691. - (eval $ac_link) 2>&5
  28692. - ac_status=$?
  28693. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28694. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28695. - (./conftest; exit; ) >&5 2>/dev/null
  28696. - lt_status=$?
  28697. - case x$lt_status in
  28698. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  28699. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  28700. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  28701. - esac
  28702. - else :
  28703. - # compilation failed
  28704. - lt_cv_dlopen_self=no
  28705. - fi
  28706. -fi
  28707. -rm -fr conftest*
  28708. -
  28709. -
  28710. -fi
  28711. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  28712. -$as_echo "$lt_cv_dlopen_self" >&6; }
  28713. -
  28714. - if test "x$lt_cv_dlopen_self" = xyes; then
  28715. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  28716. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  28717. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  28718. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  28719. - $as_echo_n "(cached) " >&6
  28720. -else
  28721. - if test "$cross_compiling" = yes; then :
  28722. - lt_cv_dlopen_self_static=cross
  28723. -else
  28724. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28725. - lt_status=$lt_dlunknown
  28726. - cat > conftest.$ac_ext <<EOF
  28727. -#line 10543 "configure"
  28728. -#include "confdefs.h"
  28729. -
  28730. -#if HAVE_DLFCN_H
  28731. -#include <dlfcn.h>
  28732. -#endif
  28733. -
  28734. -#include <stdio.h>
  28735. -
  28736. -#ifdef RTLD_GLOBAL
  28737. -# define LT_DLGLOBAL RTLD_GLOBAL
  28738. -#else
  28739. -# ifdef DL_GLOBAL
  28740. -# define LT_DLGLOBAL DL_GLOBAL
  28741. -# else
  28742. -# define LT_DLGLOBAL 0
  28743. -# endif
  28744. -#endif
  28745. -
  28746. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28747. - find out it does not work in some platform. */
  28748. -#ifndef LT_DLLAZY_OR_NOW
  28749. -# ifdef RTLD_LAZY
  28750. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28751. -# else
  28752. -# ifdef DL_LAZY
  28753. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28754. -# else
  28755. -# ifdef RTLD_NOW
  28756. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28757. -# else
  28758. -# ifdef DL_NOW
  28759. -# define LT_DLLAZY_OR_NOW DL_NOW
  28760. -# else
  28761. -# define LT_DLLAZY_OR_NOW 0
  28762. -# endif
  28763. -# endif
  28764. -# endif
  28765. -# endif
  28766. -#endif
  28767. -
  28768. -#ifdef __cplusplus
  28769. -extern "C" void exit (int);
  28770. -#endif
  28771. -
  28772. -void fnord() { int i=42;}
  28773. -int main ()
  28774. -{
  28775. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28776. - int status = $lt_dlunknown;
  28777. -
  28778. - if (self)
  28779. - {
  28780. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28781. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28782. - /* dlclose (self); */
  28783. - }
  28784. - else
  28785. - puts (dlerror ());
  28786. -
  28787. - exit (status);
  28788. -}
  28789. -EOF
  28790. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28791. - (eval $ac_link) 2>&5
  28792. - ac_status=$?
  28793. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28794. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28795. - (./conftest; exit; ) >&5 2>/dev/null
  28796. - lt_status=$?
  28797. - case x$lt_status in
  28798. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  28799. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  28800. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  28801. - esac
  28802. - else :
  28803. - # compilation failed
  28804. - lt_cv_dlopen_self_static=no
  28805. - fi
  28806. -fi
  28807. -rm -fr conftest*
  28808. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28809. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  28810. + runpath_var=
  28811. + allow_undefined_flag=
  28812. + always_export_symbols=no
  28813. + archive_cmds=
  28814. + archive_expsym_cmds=
  28815. + compiler_needs_object=no
  28816. + enable_shared_with_static_runtimes=no
  28817. + export_dynamic_flag_spec=
  28818. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28819. + hardcode_automatic=no
  28820. + hardcode_direct=no
  28821. + hardcode_direct_absolute=no
  28822. + hardcode_libdir_flag_spec=
  28823. + hardcode_libdir_flag_spec_ld=
  28824. + hardcode_libdir_separator=
  28825. + hardcode_minus_L=no
  28826. + hardcode_shlibpath_var=unsupported
  28827. + inherit_rpath=no
  28828. + link_all_deplibs=unknown
  28829. + module_cmds=
  28830. + module_expsym_cmds=
  28831. + old_archive_from_new_cmds=
  28832. + old_archive_from_expsyms_cmds=
  28833. + thread_safe_flag_spec=
  28834. + whole_archive_flag_spec=
  28835. + # include_expsyms should be a list of space-separated symbols to be *always*
  28836. + # included in the symbol list
  28837. + include_expsyms=
  28838. + # exclude_expsyms can be an extended regexp of symbols to exclude
  28839. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  28840. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  28841. + # as well as any symbol that contains `d'.
  28842. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  28843. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  28844. + # platforms (ab)use it in PIC code, but their linkers get confused if
  28845. + # the symbol is explicitly referenced. Since portable code cannot
  28846. + # rely on this symbol name, it's probably fine to never include it in
  28847. + # preloaded symbol tables.
  28848. + # Exclude shared library initialization/finalization symbols.
  28849. + extract_expsyms_cmds=
  28850. -fi
  28851. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  28852. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  28853. + case $host_os in
  28854. + cygwin* | mingw* | pw32* | cegcc*)
  28855. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  28856. + # When not using gcc, we currently assume that we are using
  28857. + # Microsoft Visual C++.
  28858. + if test "$GCC" != yes; then
  28859. + with_gnu_ld=no
  28860. fi
  28861. -
  28862. - CPPFLAGS="$save_CPPFLAGS"
  28863. - LDFLAGS="$save_LDFLAGS"
  28864. - LIBS="$save_LIBS"
  28865. + ;;
  28866. + interix*)
  28867. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  28868. + with_gnu_ld=yes
  28869. + ;;
  28870. + openbsd*)
  28871. + with_gnu_ld=no
  28872. + ;;
  28873. + linux* | k*bsd*-gnu)
  28874. + link_all_deplibs=no
  28875. ;;
  28876. esac
  28877. - case $lt_cv_dlopen_self in
  28878. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  28879. - *) enable_dlopen_self=unknown ;;
  28880. - esac
  28881. -
  28882. - case $lt_cv_dlopen_self_static in
  28883. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  28884. - *) enable_dlopen_self_static=unknown ;;
  28885. - esac
  28886. -fi
  28887. -
  28888. -
  28889. -# Report which library types will actually be built
  28890. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  28891. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  28892. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  28893. -$as_echo "$can_build_shared" >&6; }
  28894. -
  28895. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  28896. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  28897. -test "$can_build_shared" = "no" && enable_shared=no
  28898. + ld_shlibs=yes
  28899. + if test "$with_gnu_ld" = yes; then
  28900. + # If archive_cmds runs LD, not CC, wlarc should be empty
  28901. + wlarc='${wl}'
  28902. -# On AIX, shared libraries and static libraries use the same namespace, and
  28903. -# are all built from PIC.
  28904. -case $host_os in
  28905. -aix3*)
  28906. - test "$enable_shared" = yes && enable_static=no
  28907. - if test -n "$RANLIB"; then
  28908. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  28909. - postinstall_cmds='$RANLIB $lib'
  28910. - fi
  28911. - ;;
  28912. + # Set some defaults for GNU ld with shared library support. These
  28913. + # are reset later if shared libraries are not supported. Putting them
  28914. + # here allows them to be overridden if necessary.
  28915. + runpath_var=LD_RUN_PATH
  28916. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28917. + export_dynamic_flag_spec='${wl}--export-dynamic'
  28918. + # ancient GNU ld didn't support --whole-archive et. al.
  28919. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  28920. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28921. + else
  28922. + whole_archive_flag_spec=
  28923. + fi
  28924. + supports_anon_versioning=no
  28925. + case `$LD -v 2>&1` in
  28926. + *GNU\ gold*) supports_anon_versioning=yes ;;
  28927. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  28928. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  28929. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  28930. + *\ 2.11.*) ;; # other 2.11 versions
  28931. + *) supports_anon_versioning=yes ;;
  28932. + esac
  28933. -aix[4-9]*)
  28934. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  28935. - test "$enable_shared" = yes && enable_static=no
  28936. - fi
  28937. - ;;
  28938. -esac
  28939. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  28940. -$as_echo "$enable_shared" >&6; }
  28941. + # See if GNU ld supports shared libraries.
  28942. + case $host_os in
  28943. + aix[3-9]*)
  28944. + # On AIX/PPC, the GNU linker is very broken
  28945. + if test "$host_cpu" != ia64; then
  28946. + ld_shlibs=no
  28947. + cat <<_LT_EOF 1>&2
  28948. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  28949. -$as_echo_n "checking whether to build static libraries... " >&6; }
  28950. -# Make sure either enable_shared or enable_static is yes.
  28951. -test "$enable_shared" = yes || enable_static=yes
  28952. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  28953. -$as_echo "$enable_static" >&6; }
  28954. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  28955. +*** to be unable to reliably create shared libraries on AIX.
  28956. +*** Therefore, libtool is disabling shared libraries support. If you
  28957. +*** really care for shared libraries, you may want to modify your PATH
  28958. +*** so that a non-GNU linker is found, and then restart.
  28959. -# The else clause should only fire when bootstrapping the
  28960. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28961. -# with your package, and you will get complaints that there are
  28962. -# no rules to generate ltmain.sh.
  28963. -if test -f "$ltmain"; then
  28964. - # See if we are running on zsh, and set the options which allow our commands through
  28965. - # without removal of \ escapes.
  28966. - if test -n "${ZSH_VERSION+set}" ; then
  28967. - setopt NO_GLOB_SUBST
  28968. - fi
  28969. - # Now quote all the things that may contain metacharacters while being
  28970. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28971. - # variables and quote the copies for generation of the libtool script.
  28972. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  28973. - SED SHELL STRIP \
  28974. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28975. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28976. - deplibs_check_method reload_flag reload_cmds need_locks \
  28977. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28978. - lt_cv_sys_global_symbol_to_c_name_address \
  28979. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28980. - old_postinstall_cmds old_postuninstall_cmds \
  28981. - compiler \
  28982. - CC \
  28983. - LD \
  28984. - lt_prog_compiler_wl \
  28985. - lt_prog_compiler_pic \
  28986. - lt_prog_compiler_static \
  28987. - lt_prog_compiler_no_builtin_flag \
  28988. - export_dynamic_flag_spec \
  28989. - thread_safe_flag_spec \
  28990. - whole_archive_flag_spec \
  28991. - enable_shared_with_static_runtimes \
  28992. - old_archive_cmds \
  28993. - old_archive_from_new_cmds \
  28994. - predep_objects \
  28995. - postdep_objects \
  28996. - predeps \
  28997. - postdeps \
  28998. - compiler_lib_search_path \
  28999. - compiler_lib_search_dirs \
  29000. - archive_cmds \
  29001. - archive_expsym_cmds \
  29002. - postinstall_cmds \
  29003. - postuninstall_cmds \
  29004. - old_archive_from_expsyms_cmds \
  29005. - allow_undefined_flag \
  29006. - no_undefined_flag \
  29007. - export_symbols_cmds \
  29008. - hardcode_libdir_flag_spec \
  29009. - hardcode_libdir_flag_spec_ld \
  29010. - hardcode_libdir_separator \
  29011. - hardcode_automatic \
  29012. - module_cmds \
  29013. - module_expsym_cmds \
  29014. - lt_cv_prog_compiler_c_o \
  29015. - fix_srcfile_path \
  29016. - exclude_expsyms \
  29017. - include_expsyms; do
  29018. -
  29019. - case $var in
  29020. - old_archive_cmds | \
  29021. - old_archive_from_new_cmds | \
  29022. - archive_cmds | \
  29023. - archive_expsym_cmds | \
  29024. - module_cmds | \
  29025. - module_expsym_cmds | \
  29026. - old_archive_from_expsyms_cmds | \
  29027. - export_symbols_cmds | \
  29028. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29029. - postinstall_cmds | postuninstall_cmds | \
  29030. - old_postinstall_cmds | old_postuninstall_cmds | \
  29031. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29032. - # Double-quote double-evaled strings.
  29033. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  29034. - ;;
  29035. - *)
  29036. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  29037. +_LT_EOF
  29038. + fi
  29039. ;;
  29040. - esac
  29041. - done
  29042. - case $lt_echo in
  29043. - *'\$0 --fallback-echo"')
  29044. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  29045. - ;;
  29046. - esac
  29047. + amigaos*)
  29048. + case $host_cpu in
  29049. + powerpc)
  29050. + # see comment about AmigaOS4 .so support
  29051. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29052. + archive_expsym_cmds=''
  29053. + ;;
  29054. + m68k)
  29055. + 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)'
  29056. + hardcode_libdir_flag_spec='-L$libdir'
  29057. + hardcode_minus_L=yes
  29058. + ;;
  29059. + esac
  29060. + ;;
  29061. -cfgfile="${ofile}T"
  29062. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  29063. - $rm -f "$cfgfile"
  29064. - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  29065. -$as_echo "$as_me: creating $ofile" >&6;}
  29066. + beos*)
  29067. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29068. + allow_undefined_flag=unsupported
  29069. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29070. + # support --undefined. This deserves some investigation. FIXME
  29071. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29072. + else
  29073. + ld_shlibs=no
  29074. + fi
  29075. + ;;
  29076. - cat <<__EOF__ >> "$cfgfile"
  29077. -#! $SHELL
  29078. + cygwin* | mingw* | pw32* | cegcc*)
  29079. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  29080. + # as there is no search path for DLLs.
  29081. + hardcode_libdir_flag_spec='-L$libdir'
  29082. + allow_undefined_flag=unsupported
  29083. + always_export_symbols=no
  29084. + enable_shared_with_static_runtimes=yes
  29085. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29086. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  29087. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  29088. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  29089. -#
  29090. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  29091. -# Free Software Foundation, Inc.
  29092. -#
  29093. -# This file is part of GNU Libtool:
  29094. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  29095. -#
  29096. -# This program is free software; you can redistribute it and/or modify
  29097. -# it under the terms of the GNU General Public License as published by
  29098. -# the Free Software Foundation; either version 2 of the License, or
  29099. -# (at your option) any later version.
  29100. -#
  29101. -# This program is distributed in the hope that it will be useful, but
  29102. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  29103. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  29104. -# General Public License for more details.
  29105. -#
  29106. -# You should have received a copy of the GNU General Public License
  29107. -# along with this program; if not, write to the Free Software
  29108. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  29109. -#
  29110. -# As a special exception to the GNU General Public License, if you
  29111. -# distribute this file as part of a program that contains a
  29112. -# configuration script generated by Autoconf, you may include it under
  29113. -# the same distribution terms that you use for the rest of that program.
  29114. -
  29115. -# A sed program that does not truncate output.
  29116. -SED=$lt_SED
  29117. -
  29118. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  29119. -Xsed="$SED -e 1s/^X//"
  29120. -
  29121. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  29122. -# if CDPATH is set.
  29123. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29124. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  29125. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29126. + # If the export-symbols file already is a .def file (1st line
  29127. + # is EXPORTS), use it as is; otherwise, prepend...
  29128. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29129. + cp $export_symbols $output_objdir/$soname.def;
  29130. + else
  29131. + echo EXPORTS > $output_objdir/$soname.def;
  29132. + cat $export_symbols >> $output_objdir/$soname.def;
  29133. + fi~
  29134. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29135. + else
  29136. + ld_shlibs=no
  29137. + fi
  29138. + ;;
  29139. -# The names of the tagged configurations supported by this script.
  29140. -available_tags=
  29141. + interix[3-9]*)
  29142. + hardcode_direct=no
  29143. + hardcode_shlibpath_var=no
  29144. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29145. + export_dynamic_flag_spec='${wl}-E'
  29146. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29147. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  29148. + # default) and relocated if they conflict, which is a slow very memory
  29149. + # consuming and fragmenting process. To avoid this, we pick a random,
  29150. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29151. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29152. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29153. + 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'
  29154. + ;;
  29155. -# ### BEGIN LIBTOOL CONFIG
  29156. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  29157. + tmp_diet=no
  29158. + if test "$host_os" = linux-dietlibc; then
  29159. + case $cc_basename in
  29160. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  29161. + esac
  29162. + fi
  29163. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  29164. + && test "$tmp_diet" = no
  29165. + then
  29166. + tmp_addflag=
  29167. + tmp_sharedflag='-shared'
  29168. + case $cc_basename,$host_cpu in
  29169. + pgcc*) # Portland Group C compiler
  29170. + 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'
  29171. + tmp_addflag=' $pic_flag'
  29172. + ;;
  29173. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29174. + 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'
  29175. + tmp_addflag=' $pic_flag -Mnomain' ;;
  29176. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29177. + tmp_addflag=' -i_dynamic' ;;
  29178. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29179. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  29180. + ifc* | ifort*) # Intel Fortran compiler
  29181. + tmp_addflag=' -nofor_main' ;;
  29182. + lf95*) # Lahey Fortran 8.1
  29183. + whole_archive_flag_spec=
  29184. + tmp_sharedflag='--shared' ;;
  29185. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  29186. + tmp_sharedflag='-qmkshrobj'
  29187. + tmp_addflag= ;;
  29188. + esac
  29189. + case `$CC -V 2>&1 | sed 5q` in
  29190. + *Sun\ C*) # Sun C 5.9
  29191. + 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'
  29192. + compiler_needs_object=yes
  29193. + tmp_sharedflag='-G' ;;
  29194. + *Sun\ F*) # Sun Fortran 8.3
  29195. + tmp_sharedflag='-G' ;;
  29196. + esac
  29197. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29198. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29199. + if test "x$supports_anon_versioning" = xyes; then
  29200. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29201. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29202. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29203. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29204. + fi
  29205. -# Shell to use when invoking shell scripts.
  29206. -SHELL=$lt_SHELL
  29207. + case $cc_basename in
  29208. + xlf*)
  29209. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  29210. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  29211. + hardcode_libdir_flag_spec=
  29212. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  29213. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  29214. + if test "x$supports_anon_versioning" = xyes; then
  29215. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  29216. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29217. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29218. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  29219. + fi
  29220. + ;;
  29221. + esac
  29222. + else
  29223. + ld_shlibs=no
  29224. + fi
  29225. + ;;
  29226. -# Whether or not to build shared libraries.
  29227. -build_libtool_libs=$enable_shared
  29228. + netbsd* | netbsdelf*-gnu)
  29229. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29230. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  29231. + wlarc=
  29232. + else
  29233. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29234. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29235. + fi
  29236. + ;;
  29237. -# Whether or not to build static libraries.
  29238. -build_old_libs=$enable_static
  29239. + solaris*)
  29240. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  29241. + ld_shlibs=no
  29242. + cat <<_LT_EOF 1>&2
  29243. -# Whether or not to add -lc for building shared libraries.
  29244. -build_libtool_need_lc=$archive_cmds_need_lc
  29245. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  29246. +*** create shared libraries on Solaris systems. Therefore, libtool
  29247. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29248. +*** binutils to release 2.9.1 or newer. Another option is to modify
  29249. +*** your PATH or compiler configuration so that the native linker is
  29250. +*** used, and then restart.
  29251. -# Whether or not to disallow shared libs when runtime libs are static
  29252. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  29253. +_LT_EOF
  29254. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29255. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29256. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29257. + else
  29258. + ld_shlibs=no
  29259. + fi
  29260. + ;;
  29261. -# Whether or not to optimize for fast installation.
  29262. -fast_install=$enable_fast_install
  29263. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  29264. + case `$LD -v 2>&1` in
  29265. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  29266. + ld_shlibs=no
  29267. + cat <<_LT_EOF 1>&2
  29268. -# The host system.
  29269. -host_alias=$host_alias
  29270. -host=$host
  29271. -host_os=$host_os
  29272. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  29273. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  29274. +*** is disabling shared libraries support. We urge you to upgrade GNU
  29275. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  29276. +*** your PATH or compiler configuration so that the native linker is
  29277. +*** used, and then restart.
  29278. -# The build system.
  29279. -build_alias=$build_alias
  29280. -build=$build
  29281. -build_os=$build_os
  29282. +_LT_EOF
  29283. + ;;
  29284. + *)
  29285. + # For security reasons, it is highly recommended that you always
  29286. + # use absolute paths for naming shared libraries, and exclude the
  29287. + # DT_RUNPATH tag from executables and libraries. But doing so
  29288. + # requires that you compile everything twice, which is a pain.
  29289. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29290. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29291. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29292. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29293. + else
  29294. + ld_shlibs=no
  29295. + fi
  29296. + ;;
  29297. + esac
  29298. + ;;
  29299. -# An echo program that does not interpret backslashes.
  29300. -echo=$lt_echo
  29301. + sunos4*)
  29302. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29303. + wlarc=
  29304. + hardcode_direct=yes
  29305. + hardcode_shlibpath_var=no
  29306. + ;;
  29307. -# The archiver.
  29308. -AR=$lt_AR
  29309. -AR_FLAGS=$lt_AR_FLAGS
  29310. + *)
  29311. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29312. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29313. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29314. + else
  29315. + ld_shlibs=no
  29316. + fi
  29317. + ;;
  29318. + esac
  29319. -# A C compiler.
  29320. -LTCC=$lt_LTCC
  29321. + if test "$ld_shlibs" = no; then
  29322. + runpath_var=
  29323. + hardcode_libdir_flag_spec=
  29324. + export_dynamic_flag_spec=
  29325. + whole_archive_flag_spec=
  29326. + fi
  29327. + else
  29328. + # PORTME fill in a description of your system's linker (not GNU ld)
  29329. + case $host_os in
  29330. + aix3*)
  29331. + allow_undefined_flag=unsupported
  29332. + always_export_symbols=yes
  29333. + 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'
  29334. + # Note: this linker hardcodes the directories in LIBPATH if there
  29335. + # are no directories specified by -L.
  29336. + hardcode_minus_L=yes
  29337. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  29338. + # Neither direct hardcoding nor static linking is supported with a
  29339. + # broken collect2.
  29340. + hardcode_direct=unsupported
  29341. + fi
  29342. + ;;
  29343. -# LTCC compiler flags.
  29344. -LTCFLAGS=$lt_LTCFLAGS
  29345. + aix[4-9]*)
  29346. + if test "$host_cpu" = ia64; then
  29347. + # On IA64, the linker does run time linking by default, so we don't
  29348. + # have to do anything special.
  29349. + aix_use_runtimelinking=no
  29350. + exp_sym_flag='-Bexport'
  29351. + no_entry_flag=""
  29352. + else
  29353. + # If we're using GNU nm, then we don't want the "-C" option.
  29354. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29355. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  29356. + 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'
  29357. + else
  29358. + 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'
  29359. + fi
  29360. + aix_use_runtimelinking=no
  29361. -# A language-specific compiler.
  29362. -CC=$lt_compiler
  29363. + # Test if we are trying to use run time linking or normal
  29364. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29365. + # need to do runtime linking.
  29366. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  29367. + for ld_flag in $LDFLAGS; do
  29368. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  29369. + aix_use_runtimelinking=yes
  29370. + break
  29371. + fi
  29372. + done
  29373. + ;;
  29374. + esac
  29375. -# Is the compiler the GNU C compiler?
  29376. -with_gcc=$GCC
  29377. + exp_sym_flag='-bexport'
  29378. + no_entry_flag='-bnoentry'
  29379. + fi
  29380. -# An ERE matcher.
  29381. -EGREP=$lt_EGREP
  29382. + # When large executables or shared objects are built, AIX ld can
  29383. + # have problems creating the table of contents. If linking a library
  29384. + # or program results in "error TOC overflow" add -mminimal-toc to
  29385. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29386. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29387. -# The linker used to build libraries.
  29388. -LD=$lt_LD
  29389. + archive_cmds=''
  29390. + hardcode_direct=yes
  29391. + hardcode_direct_absolute=yes
  29392. + hardcode_libdir_separator=':'
  29393. + link_all_deplibs=yes
  29394. + file_list_spec='${wl}-f,'
  29395. -# Whether we need hard or soft links.
  29396. -LN_S=$lt_LN_S
  29397. + if test "$GCC" = yes; then
  29398. + case $host_os in aix4.[012]|aix4.[012].*)
  29399. + # We only want to do this on AIX 4.2 and lower, the check
  29400. + # below for broken collect2 doesn't work under 4.3+
  29401. + collect2name=`${CC} -print-prog-name=collect2`
  29402. + if test -f "$collect2name" &&
  29403. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  29404. + then
  29405. + # We have reworked collect2
  29406. + :
  29407. + else
  29408. + # We have old collect2
  29409. + hardcode_direct=unsupported
  29410. + # It fails to find uninstalled libraries when the uninstalled
  29411. + # path is not listed in the libpath. Setting hardcode_minus_L
  29412. + # to unsupported forces relinking
  29413. + hardcode_minus_L=yes
  29414. + hardcode_libdir_flag_spec='-L$libdir'
  29415. + hardcode_libdir_separator=
  29416. + fi
  29417. + ;;
  29418. + esac
  29419. + shared_flag='-shared'
  29420. + if test "$aix_use_runtimelinking" = yes; then
  29421. + shared_flag="$shared_flag "'${wl}-G'
  29422. + fi
  29423. + link_all_deplibs=no
  29424. + else
  29425. + # not using gcc
  29426. + if test "$host_cpu" = ia64; then
  29427. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29428. + # chokes on -Wl,-G. The following line is correct:
  29429. + shared_flag='-G'
  29430. + else
  29431. + if test "$aix_use_runtimelinking" = yes; then
  29432. + shared_flag='${wl}-G'
  29433. + else
  29434. + shared_flag='${wl}-bM:SRE'
  29435. + fi
  29436. + fi
  29437. + fi
  29438. -# A BSD-compatible nm program.
  29439. -NM=$lt_NM
  29440. + export_dynamic_flag_spec='${wl}-bexpall'
  29441. + # It seems that -bexpall does not export symbols beginning with
  29442. + # underscore (_), so it is better to generate a list of symbols to export.
  29443. + always_export_symbols=yes
  29444. + if test "$aix_use_runtimelinking" = yes; then
  29445. + # Warning - without using the other runtime loading flags (-brtl),
  29446. + # -berok will link without error, but may produce a broken library.
  29447. + allow_undefined_flag='-berok'
  29448. + # Determine the default libpath from the value encoded in an
  29449. + # empty executable.
  29450. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29451. +/* end confdefs.h. */
  29452. -# A symbol stripping program
  29453. -STRIP=$lt_STRIP
  29454. +int
  29455. +main ()
  29456. +{
  29457. -# Used to examine libraries when file_magic_cmd begins "file"
  29458. -MAGIC_CMD=$MAGIC_CMD
  29459. + ;
  29460. + return 0;
  29461. +}
  29462. +_ACEOF
  29463. +if ac_fn_c_try_link "$LINENO"; then :
  29464. -# Used on cygwin: DLL creation program.
  29465. -DLLTOOL="$DLLTOOL"
  29466. +lt_aix_libpath_sed='
  29467. + /Import File Strings/,/^$/ {
  29468. + /^0/ {
  29469. + s/^0 *\(.*\)$/\1/
  29470. + p
  29471. + }
  29472. + }'
  29473. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29474. +# Check for a 64-bit object if we didn't find anything.
  29475. +if test -z "$aix_libpath"; then
  29476. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29477. +fi
  29478. +fi
  29479. +rm -f core conftest.err conftest.$ac_objext \
  29480. + conftest$ac_exeext conftest.$ac_ext
  29481. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29482. -# Used on cygwin: object dumper.
  29483. -OBJDUMP="$OBJDUMP"
  29484. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  29485. + 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"
  29486. + else
  29487. + if test "$host_cpu" = ia64; then
  29488. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  29489. + allow_undefined_flag="-z nodefs"
  29490. + 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"
  29491. + else
  29492. + # Determine the default libpath from the value encoded in an
  29493. + # empty executable.
  29494. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29495. +/* end confdefs.h. */
  29496. -# Used on cygwin: assembler.
  29497. -AS="$AS"
  29498. +int
  29499. +main ()
  29500. +{
  29501. -# The name of the directory that contains temporary libtool files.
  29502. -objdir=$objdir
  29503. + ;
  29504. + return 0;
  29505. +}
  29506. +_ACEOF
  29507. +if ac_fn_c_try_link "$LINENO"; then :
  29508. -# How to create reloadable object files.
  29509. -reload_flag=$lt_reload_flag
  29510. -reload_cmds=$lt_reload_cmds
  29511. +lt_aix_libpath_sed='
  29512. + /Import File Strings/,/^$/ {
  29513. + /^0/ {
  29514. + s/^0 *\(.*\)$/\1/
  29515. + p
  29516. + }
  29517. + }'
  29518. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29519. +# Check for a 64-bit object if we didn't find anything.
  29520. +if test -z "$aix_libpath"; then
  29521. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29522. +fi
  29523. +fi
  29524. +rm -f core conftest.err conftest.$ac_objext \
  29525. + conftest$ac_exeext conftest.$ac_ext
  29526. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29527. -# How to pass a linker flag through the compiler.
  29528. -wl=$lt_lt_prog_compiler_wl
  29529. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  29530. + # Warning - without using the other run time loading flags,
  29531. + # -berok will link without error, but may produce a broken library.
  29532. + no_undefined_flag=' ${wl}-bernotok'
  29533. + allow_undefined_flag=' ${wl}-berok'
  29534. + # Exported symbols can be pulled into shared objects from archives
  29535. + whole_archive_flag_spec='$convenience'
  29536. + archive_cmds_need_lc=yes
  29537. + # This is similar to how AIX traditionally builds its shared libraries.
  29538. + 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'
  29539. + fi
  29540. + fi
  29541. + ;;
  29542. -# Object file suffix (normally "o").
  29543. -objext="$ac_objext"
  29544. + amigaos*)
  29545. + case $host_cpu in
  29546. + powerpc)
  29547. + # see comment about AmigaOS4 .so support
  29548. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29549. + archive_expsym_cmds=''
  29550. + ;;
  29551. + m68k)
  29552. + 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)'
  29553. + hardcode_libdir_flag_spec='-L$libdir'
  29554. + hardcode_minus_L=yes
  29555. + ;;
  29556. + esac
  29557. + ;;
  29558. -# Old archive suffix (normally "a").
  29559. -libext="$libext"
  29560. + bsdi[45]*)
  29561. + export_dynamic_flag_spec=-rdynamic
  29562. + ;;
  29563. -# Shared library suffix (normally ".so").
  29564. -shrext_cmds='$shrext_cmds'
  29565. + cygwin* | mingw* | pw32* | cegcc*)
  29566. + # When not using gcc, we currently assume that we are using
  29567. + # Microsoft Visual C++.
  29568. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  29569. + # no search path for DLLs.
  29570. + hardcode_libdir_flag_spec=' '
  29571. + allow_undefined_flag=unsupported
  29572. + # Tell ltmain to make .lib files, not .a files.
  29573. + libext=lib
  29574. + # Tell ltmain to make .dll files, not .so files.
  29575. + shrext_cmds=".dll"
  29576. + # FIXME: Setting linknames here is a bad hack.
  29577. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  29578. + # The linker will automatically build a .lib file if we build a DLL.
  29579. + old_archive_from_new_cmds='true'
  29580. + # FIXME: Should let the user specify the lib program.
  29581. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  29582. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  29583. + enable_shared_with_static_runtimes=yes
  29584. + ;;
  29585. -# Executable file suffix (normally "").
  29586. -exeext="$exeext"
  29587. + darwin* | rhapsody*)
  29588. -# Additional compiler flags for building library objects.
  29589. -pic_flag=$lt_lt_prog_compiler_pic
  29590. -pic_mode=$pic_mode
  29591. -# What is the maximum length of a command?
  29592. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29593. + archive_cmds_need_lc=no
  29594. + hardcode_direct=no
  29595. + hardcode_automatic=yes
  29596. + hardcode_shlibpath_var=unsupported
  29597. + whole_archive_flag_spec=''
  29598. + link_all_deplibs=yes
  29599. + allow_undefined_flag="$_lt_dar_allow_undefined"
  29600. + case $cc_basename in
  29601. + ifort*) _lt_dar_can_shared=yes ;;
  29602. + *) _lt_dar_can_shared=$GCC ;;
  29603. + esac
  29604. + if test "$_lt_dar_can_shared" = "yes"; then
  29605. + output_verbose_link_cmd=echo
  29606. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  29607. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  29608. + 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}"
  29609. + 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}"
  29610. +
  29611. + else
  29612. + ld_shlibs=no
  29613. + fi
  29614. +
  29615. + ;;
  29616. +
  29617. + dgux*)
  29618. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29619. + hardcode_libdir_flag_spec='-L$libdir'
  29620. + hardcode_shlibpath_var=no
  29621. + ;;
  29622. +
  29623. + freebsd1*)
  29624. + ld_shlibs=no
  29625. + ;;
  29626. +
  29627. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  29628. + # support. Future versions do this automatically, but an explicit c++rt0.o
  29629. + # does not break anything, and helps significantly (at the cost of a little
  29630. + # extra space).
  29631. + freebsd2.2*)
  29632. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  29633. + hardcode_libdir_flag_spec='-R$libdir'
  29634. + hardcode_direct=yes
  29635. + hardcode_shlibpath_var=no
  29636. + ;;
  29637. +
  29638. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  29639. + freebsd2*)
  29640. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29641. + hardcode_direct=yes
  29642. + hardcode_minus_L=yes
  29643. + hardcode_shlibpath_var=no
  29644. + ;;
  29645. +
  29646. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  29647. + freebsd* | dragonfly*)
  29648. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  29649. + hardcode_libdir_flag_spec='-R$libdir'
  29650. + hardcode_direct=yes
  29651. + hardcode_shlibpath_var=no
  29652. + ;;
  29653. +
  29654. + hpux9*)
  29655. + if test "$GCC" = yes; then
  29656. + 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'
  29657. + else
  29658. + 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'
  29659. + fi
  29660. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29661. + hardcode_libdir_separator=:
  29662. + hardcode_direct=yes
  29663. +
  29664. + # hardcode_minus_L: Not really in the search PATH,
  29665. + # but as the default location of the library.
  29666. + hardcode_minus_L=yes
  29667. + export_dynamic_flag_spec='${wl}-E'
  29668. + ;;
  29669. +
  29670. + hpux10*)
  29671. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29672. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29673. + else
  29674. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  29675. + fi
  29676. + if test "$with_gnu_ld" = no; then
  29677. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29678. + hardcode_libdir_flag_spec_ld='+b $libdir'
  29679. + hardcode_libdir_separator=:
  29680. + hardcode_direct=yes
  29681. + hardcode_direct_absolute=yes
  29682. + export_dynamic_flag_spec='${wl}-E'
  29683. + # hardcode_minus_L: Not really in the search PATH,
  29684. + # but as the default location of the library.
  29685. + hardcode_minus_L=yes
  29686. + fi
  29687. + ;;
  29688. +
  29689. + hpux11*)
  29690. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29691. + case $host_cpu in
  29692. + hppa*64*)
  29693. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29694. + ;;
  29695. + ia64*)
  29696. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29697. + ;;
  29698. + *)
  29699. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29700. + ;;
  29701. + esac
  29702. + else
  29703. + case $host_cpu in
  29704. + hppa*64*)
  29705. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29706. + ;;
  29707. + ia64*)
  29708. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29709. + ;;
  29710. + *)
  29711. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29712. + ;;
  29713. + esac
  29714. + fi
  29715. + if test "$with_gnu_ld" = no; then
  29716. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  29717. + hardcode_libdir_separator=:
  29718. +
  29719. + case $host_cpu in
  29720. + hppa*64*|ia64*)
  29721. + hardcode_direct=no
  29722. + hardcode_shlibpath_var=no
  29723. + ;;
  29724. + *)
  29725. + hardcode_direct=yes
  29726. + hardcode_direct_absolute=yes
  29727. + export_dynamic_flag_spec='${wl}-E'
  29728. +
  29729. + # hardcode_minus_L: Not really in the search PATH,
  29730. + # but as the default location of the library.
  29731. + hardcode_minus_L=yes
  29732. + ;;
  29733. + esac
  29734. + fi
  29735. + ;;
  29736. +
  29737. + irix5* | irix6* | nonstopux*)
  29738. + if test "$GCC" = yes; then
  29739. + 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'
  29740. + # Try to use the -exported_symbol ld option, if it does not
  29741. + # work, assume that -exports_file does not work either and
  29742. + # implicitly export all symbols.
  29743. + save_LDFLAGS="$LDFLAGS"
  29744. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  29745. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29746. +/* end confdefs.h. */
  29747. +int foo(void) {}
  29748. +_ACEOF
  29749. +if ac_fn_c_try_link "$LINENO"; then :
  29750. + 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'
  29751. +
  29752. +fi
  29753. +rm -f core conftest.err conftest.$ac_objext \
  29754. + conftest$ac_exeext conftest.$ac_ext
  29755. + LDFLAGS="$save_LDFLAGS"
  29756. + else
  29757. + 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'
  29758. + 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'
  29759. + fi
  29760. + archive_cmds_need_lc='no'
  29761. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29762. + hardcode_libdir_separator=:
  29763. + inherit_rpath=yes
  29764. + link_all_deplibs=yes
  29765. + ;;
  29766. +
  29767. + netbsd* | netbsdelf*-gnu)
  29768. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29769. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  29770. + else
  29771. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  29772. + fi
  29773. + hardcode_libdir_flag_spec='-R$libdir'
  29774. + hardcode_direct=yes
  29775. + hardcode_shlibpath_var=no
  29776. + ;;
  29777. +
  29778. + newsos6)
  29779. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29780. + hardcode_direct=yes
  29781. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29782. + hardcode_libdir_separator=:
  29783. + hardcode_shlibpath_var=no
  29784. + ;;
  29785. +
  29786. + *nto* | *qnx*)
  29787. + ;;
  29788. +
  29789. + openbsd*)
  29790. + if test -f /usr/libexec/ld.so; then
  29791. + hardcode_direct=yes
  29792. + hardcode_shlibpath_var=no
  29793. + hardcode_direct_absolute=yes
  29794. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29795. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29796. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  29797. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29798. + export_dynamic_flag_spec='${wl}-E'
  29799. + else
  29800. + case $host_os in
  29801. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  29802. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29803. + hardcode_libdir_flag_spec='-R$libdir'
  29804. + ;;
  29805. + *)
  29806. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29807. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  29808. + ;;
  29809. + esac
  29810. + fi
  29811. + else
  29812. + ld_shlibs=no
  29813. + fi
  29814. + ;;
  29815. +
  29816. + os2*)
  29817. + hardcode_libdir_flag_spec='-L$libdir'
  29818. + hardcode_minus_L=yes
  29819. + allow_undefined_flag=unsupported
  29820. + 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'
  29821. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  29822. + ;;
  29823. +
  29824. + osf3*)
  29825. + if test "$GCC" = yes; then
  29826. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  29827. + 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'
  29828. + else
  29829. + allow_undefined_flag=' -expect_unresolved \*'
  29830. + 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'
  29831. + fi
  29832. + archive_cmds_need_lc='no'
  29833. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29834. + hardcode_libdir_separator=:
  29835. + ;;
  29836. +
  29837. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  29838. + if test "$GCC" = yes; then
  29839. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  29840. + 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'
  29841. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  29842. + else
  29843. + allow_undefined_flag=' -expect_unresolved \*'
  29844. + 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'
  29845. + 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~
  29846. + $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'
  29847. +
  29848. + # Both c and cxx compiler support -rpath directly
  29849. + hardcode_libdir_flag_spec='-rpath $libdir'
  29850. + fi
  29851. + archive_cmds_need_lc='no'
  29852. + hardcode_libdir_separator=:
  29853. + ;;
  29854. +
  29855. + solaris*)
  29856. + no_undefined_flag=' -z defs'
  29857. + if test "$GCC" = yes; then
  29858. + wlarc='${wl}'
  29859. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29860. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29861. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  29862. + else
  29863. + case `$CC -V 2>&1` in
  29864. + *"Compilers 5.0"*)
  29865. + wlarc=''
  29866. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29867. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29868. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  29869. + ;;
  29870. + *)
  29871. + wlarc='${wl}'
  29872. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29873. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29874. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  29875. + ;;
  29876. + esac
  29877. + fi
  29878. + hardcode_libdir_flag_spec='-R$libdir'
  29879. + hardcode_shlibpath_var=no
  29880. + case $host_os in
  29881. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  29882. + *)
  29883. + # The compiler driver will combine and reorder linker options,
  29884. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  29885. + # but is careful enough not to reorder.
  29886. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  29887. + if test "$GCC" = yes; then
  29888. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29889. + else
  29890. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  29891. + fi
  29892. + ;;
  29893. + esac
  29894. + link_all_deplibs=yes
  29895. + ;;
  29896. +
  29897. + sunos4*)
  29898. + if test "x$host_vendor" = xsequent; then
  29899. + # Use $CC to link under sequent, because it throws in some extra .o
  29900. + # files that make .init and .fini sections work.
  29901. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29902. + else
  29903. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  29904. + fi
  29905. + hardcode_libdir_flag_spec='-L$libdir'
  29906. + hardcode_direct=yes
  29907. + hardcode_minus_L=yes
  29908. + hardcode_shlibpath_var=no
  29909. + ;;
  29910. +
  29911. + sysv4)
  29912. + case $host_vendor in
  29913. + sni)
  29914. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29915. + hardcode_direct=yes # is this really true???
  29916. + ;;
  29917. + siemens)
  29918. + ## LD is ld it makes a PLAMLIB
  29919. + ## CC just makes a GrossModule.
  29920. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  29921. + reload_cmds='$CC -r -o $output$reload_objs'
  29922. + hardcode_direct=no
  29923. + ;;
  29924. + motorola)
  29925. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29926. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  29927. + ;;
  29928. + esac
  29929. + runpath_var='LD_RUN_PATH'
  29930. + hardcode_shlibpath_var=no
  29931. + ;;
  29932. +
  29933. + sysv4.3*)
  29934. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29935. + hardcode_shlibpath_var=no
  29936. + export_dynamic_flag_spec='-Bexport'
  29937. + ;;
  29938. +
  29939. + sysv4*MP*)
  29940. + if test -d /usr/nec; then
  29941. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29942. + hardcode_shlibpath_var=no
  29943. + runpath_var=LD_RUN_PATH
  29944. + hardcode_runpath_var=yes
  29945. + ld_shlibs=yes
  29946. + fi
  29947. + ;;
  29948. +
  29949. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29950. + no_undefined_flag='${wl}-z,text'
  29951. + archive_cmds_need_lc=no
  29952. + hardcode_shlibpath_var=no
  29953. + runpath_var='LD_RUN_PATH'
  29954. +
  29955. + if test "$GCC" = yes; then
  29956. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29957. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29958. + else
  29959. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29960. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29961. + fi
  29962. + ;;
  29963. +
  29964. + sysv5* | sco3.2v5* | sco5v6*)
  29965. + # Note: We can NOT use -z defs as we might desire, because we do not
  29966. + # link with -lc, and that would cause any symbols used from libc to
  29967. + # always be unresolved, which means just about no library would
  29968. + # ever link correctly. If we're not using GNU ld we use -z text
  29969. + # though, which does catch some bad symbols but isn't as heavy-handed
  29970. + # as -z defs.
  29971. + no_undefined_flag='${wl}-z,text'
  29972. + allow_undefined_flag='${wl}-z,nodefs'
  29973. + archive_cmds_need_lc=no
  29974. + hardcode_shlibpath_var=no
  29975. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  29976. + hardcode_libdir_separator=':'
  29977. + link_all_deplibs=yes
  29978. + export_dynamic_flag_spec='${wl}-Bexport'
  29979. + runpath_var='LD_RUN_PATH'
  29980. +
  29981. + if test "$GCC" = yes; then
  29982. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29983. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29984. + else
  29985. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29986. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29987. + fi
  29988. + ;;
  29989. +
  29990. + uts4*)
  29991. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29992. + hardcode_libdir_flag_spec='-L$libdir'
  29993. + hardcode_shlibpath_var=no
  29994. + ;;
  29995. +
  29996. + *)
  29997. + ld_shlibs=no
  29998. + ;;
  29999. + esac
  30000. +
  30001. + if test x$host_vendor = xsni; then
  30002. + case $host in
  30003. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  30004. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  30005. + ;;
  30006. + esac
  30007. + fi
  30008. + fi
  30009. +
  30010. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  30011. +$as_echo "$ld_shlibs" >&6; }
  30012. +test "$ld_shlibs" = no && can_build_shared=no
  30013. +
  30014. +with_gnu_ld=$with_gnu_ld
  30015. +
  30016. +
  30017. +
  30018. +
  30019. +
  30020. +
  30021. +
  30022. +
  30023. +
  30024. +
  30025. +
  30026. +
  30027. +
  30028. +
  30029. +
  30030. +#
  30031. +# Do we need to explicitly link libc?
  30032. +#
  30033. +case "x$archive_cmds_need_lc" in
  30034. +x|xyes)
  30035. + # Assume -lc should be added
  30036. + archive_cmds_need_lc=yes
  30037. +
  30038. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  30039. + case $archive_cmds in
  30040. + *'~'*)
  30041. + # FIXME: we may have to deal with multi-command sequences.
  30042. + ;;
  30043. + '$CC '*)
  30044. + # Test whether the compiler implicitly links with -lc since on some
  30045. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30046. + # to ld, don't add -lc before -lgcc.
  30047. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  30048. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  30049. + $RM conftest*
  30050. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30051. +
  30052. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  30053. + (eval $ac_compile) 2>&5
  30054. + ac_status=$?
  30055. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30056. + test $ac_status = 0; } 2>conftest.err; then
  30057. + soname=conftest
  30058. + lib=conftest
  30059. + libobjs=conftest.$ac_objext
  30060. + deplibs=
  30061. + wl=$lt_prog_compiler_wl
  30062. + pic_flag=$lt_prog_compiler_pic
  30063. + compiler_flags=-v
  30064. + linker_flags=-v
  30065. + verstring=
  30066. + output_objdir=.
  30067. + libname=conftest
  30068. + lt_save_allow_undefined_flag=$allow_undefined_flag
  30069. + allow_undefined_flag=
  30070. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  30071. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30072. + ac_status=$?
  30073. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30074. + test $ac_status = 0; }
  30075. + then
  30076. + archive_cmds_need_lc=no
  30077. + else
  30078. + archive_cmds_need_lc=yes
  30079. + fi
  30080. + allow_undefined_flag=$lt_save_allow_undefined_flag
  30081. + else
  30082. + cat conftest.err 1>&5
  30083. + fi
  30084. + $RM conftest*
  30085. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  30086. +$as_echo "$archive_cmds_need_lc" >&6; }
  30087. + ;;
  30088. + esac
  30089. + fi
  30090. + ;;
  30091. +esac
  30092. +
  30093. -# Does compiler simultaneously support -c and -o options?
  30094. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30095. -# Must we lock files when doing compilation?
  30096. -need_locks=$lt_need_locks
  30097. -# Do we need the lib prefix for modules?
  30098. -need_lib_prefix=$need_lib_prefix
  30099. -# Do we need a version for libraries?
  30100. -need_version=$need_version
  30101. -# Whether dlopen is supported.
  30102. -dlopen_support=$enable_dlopen
  30103. -# Whether dlopen of programs is supported.
  30104. -dlopen_self=$enable_dlopen_self
  30105. -# Whether dlopen of statically linked programs is supported.
  30106. -dlopen_self_static=$enable_dlopen_self_static
  30107. -# Compiler flag to prevent dynamic linking.
  30108. -link_static_flag=$lt_lt_prog_compiler_static
  30109. -# Compiler flag to turn off builtin functions.
  30110. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30111. -# Compiler flag to allow reflexive dlopens.
  30112. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30113. -# Compiler flag to generate shared objects directly from archives.
  30114. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30115. -# Compiler flag to generate thread-safe objects.
  30116. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  30117. -# Library versioning type.
  30118. -version_type=$version_type
  30119. -# Format of library name prefix.
  30120. -libname_spec=$lt_libname_spec
  30121. -# List of archive names. First name is the real one, the rest are links.
  30122. -# The last name is the one that the linker finds with -lNAME.
  30123. -library_names_spec=$lt_library_names_spec
  30124. -# The coded name of the library, if different from the real name.
  30125. -soname_spec=$lt_soname_spec
  30126. -# Commands used to build and install an old-style archive.
  30127. -RANLIB=$lt_RANLIB
  30128. -old_archive_cmds=$lt_old_archive_cmds
  30129. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30130. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30131. -# Create an old-style archive from a shared archive.
  30132. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30133. -# Create a temporary old-style archive to link instead of a shared archive.
  30134. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30135. -# Commands used to build and install a shared archive.
  30136. -archive_cmds=$lt_archive_cmds
  30137. -archive_expsym_cmds=$lt_archive_expsym_cmds
  30138. -postinstall_cmds=$lt_postinstall_cmds
  30139. -postuninstall_cmds=$lt_postuninstall_cmds
  30140. -# Commands used to build a loadable module (assumed same as above if empty)
  30141. -module_cmds=$lt_module_cmds
  30142. -module_expsym_cmds=$lt_module_expsym_cmds
  30143. -# Commands to strip libraries.
  30144. -old_striplib=$lt_old_striplib
  30145. -striplib=$lt_striplib
  30146. -# Dependencies to place before the objects being linked to create a
  30147. -# shared library.
  30148. -predep_objects=$lt_predep_objects
  30149. -
  30150. -# Dependencies to place after the objects being linked to create a
  30151. -# shared library.
  30152. -postdep_objects=$lt_postdep_objects
  30153. -
  30154. -# Dependencies to place before the objects being linked to create a
  30155. -# shared library.
  30156. -predeps=$lt_predeps
  30157. -
  30158. -# Dependencies to place after the objects being linked to create a
  30159. -# shared library.
  30160. -postdeps=$lt_postdeps
  30161. -
  30162. -# The directories searched by this compiler when creating a shared
  30163. -# library
  30164. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  30165. -
  30166. -# The library search path used internally by the compiler when linking
  30167. -# a shared library.
  30168. -compiler_lib_search_path=$lt_compiler_lib_search_path
  30169. -# Method to check whether dependent libraries are shared objects.
  30170. -deplibs_check_method=$lt_deplibs_check_method
  30171. -# Command to use when deplibs_check_method == file_magic.
  30172. -file_magic_cmd=$lt_file_magic_cmd
  30173. -# Flag that allows shared libraries with undefined symbols to be built.
  30174. -allow_undefined_flag=$lt_allow_undefined_flag
  30175. -# Flag that forces no undefined symbols.
  30176. -no_undefined_flag=$lt_no_undefined_flag
  30177. -# Commands used to finish a libtool library installation in a directory.
  30178. -finish_cmds=$lt_finish_cmds
  30179. -# Same as above, but a single script fragment to be evaled but not shown.
  30180. -finish_eval=$lt_finish_eval
  30181. -# Take the output of nm and produce a listing of raw symbols and C names.
  30182. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30183. -# Transform the output of nm in a proper C declaration
  30184. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30185. -# Transform the output of nm in a C name address pair
  30186. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30187. -# This is the shared library runtime path variable.
  30188. -runpath_var=$runpath_var
  30189. -# This is the shared library path variable.
  30190. -shlibpath_var=$shlibpath_var
  30191. -# Is shlibpath searched before the hard-coded library search path?
  30192. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30193. -# How to hardcode a shared library path into an executable.
  30194. -hardcode_action=$hardcode_action
  30195. -# Whether we should hardcode library paths into libraries.
  30196. -hardcode_into_libs=$hardcode_into_libs
  30197. -# Flag to hardcode \$libdir into a binary during linking.
  30198. -# This must work even if \$libdir does not exist.
  30199. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30200. -# If ld is used when linking, flag to hardcode \$libdir into
  30201. -# a binary during linking. This must work even if \$libdir does
  30202. -# not exist.
  30203. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30204. -# Whether we need a single -rpath flag with a separated argument.
  30205. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30206. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30207. -# resulting binary.
  30208. -hardcode_direct=$hardcode_direct
  30209. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30210. -# resulting binary.
  30211. -hardcode_minus_L=$hardcode_minus_L
  30212. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30213. -# the resulting binary.
  30214. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  30215. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30216. -# and all subsequent libraries and executables linked against it.
  30217. -hardcode_automatic=$hardcode_automatic
  30218. -# Variables whose values should be saved in libtool wrapper scripts and
  30219. -# restored at relink time.
  30220. -variables_saved_for_relink="$variables_saved_for_relink"
  30221. -# Whether libtool must link a program against all its dependency libraries.
  30222. -link_all_deplibs=$link_all_deplibs
  30223. -# Compile-time system search path for libraries
  30224. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30225. -# Run-time system search path for libraries
  30226. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30227. -# Fix the shell variable \$srcfile for the compiler.
  30228. -fix_srcfile_path=$lt_fix_srcfile_path
  30229. -# Set to yes if exported symbols are required.
  30230. -always_export_symbols=$always_export_symbols
  30231. -# The commands to list exported symbols.
  30232. -export_symbols_cmds=$lt_export_symbols_cmds
  30233. -# The commands to extract the exported symbol list from a shared archive.
  30234. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30235. -# Symbols that should not be listed in the preloaded symbols.
  30236. -exclude_expsyms=$lt_exclude_expsyms
  30237. -# Symbols that must always be exported.
  30238. -include_expsyms=$lt_include_expsyms
  30239. -# ### END LIBTOOL CONFIG
  30240. -__EOF__
  30241. - case $host_os in
  30242. - aix3*)
  30243. - cat <<\EOF >> "$cfgfile"
  30244. -# AIX sometimes has problems with the GCC collect2 program. For some
  30245. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  30246. -# vanish in a puff of smoke.
  30247. -if test "X${COLLECT_NAMES+set}" != Xset; then
  30248. - COLLECT_NAMES=
  30249. - export COLLECT_NAMES
  30250. -fi
  30251. -EOF
  30252. - ;;
  30253. - esac
  30254. - # We use sed instead of cat because bash on DJGPP gets confused if
  30255. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30256. - # text mode, it properly converts lines to CR/LF. This bash problem
  30257. - # is reportedly fixed, but why not run on old versions too?
  30258. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  30259. - mv -f "$cfgfile" "$ofile" || \
  30260. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30261. - chmod +x "$ofile"
  30262. -else
  30263. - # If there is no Makefile yet, we rely on a make rule to execute
  30264. - # `config.status --recheck' to rerun these tests and create the
  30265. - # libtool script then.
  30266. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30267. - if test -f "$ltmain_in"; then
  30268. - test -f Makefile && make "$ltmain"
  30269. - fi
  30270. -fi
  30271. -ac_ext=c
  30272. -ac_cpp='$CPP $CPPFLAGS'
  30273. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30274. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30275. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30276. -CC="$lt_save_CC"
  30277. -# Check whether --with-tags was given.
  30278. -if test "${with_tags+set}" = set; then
  30279. - withval=$with_tags; tagnames="$withval"
  30280. -fi
  30281. -if test -f "$ltmain" && test -n "$tagnames"; then
  30282. - if test ! -f "${ofile}"; then
  30283. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  30284. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  30285. - fi
  30286. - if test -z "$LTCC"; then
  30287. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  30288. - if test -z "$LTCC"; then
  30289. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  30290. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  30291. - else
  30292. - { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  30293. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  30294. - fi
  30295. - fi
  30296. - if test -z "$LTCFLAGS"; then
  30297. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  30298. - fi
  30299. - # Extract list of available tagged configurations in $ofile.
  30300. - # Note that this assumes the entire list is on one line.
  30301. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  30302. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  30303. - for tagname in $tagnames; do
  30304. - IFS="$lt_save_ifs"
  30305. - # Check whether tagname contains only valid characters
  30306. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  30307. - "") ;;
  30308. - *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  30309. -$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  30310. - { (exit 1); exit 1; }; }
  30311. - ;;
  30312. - esac
  30313. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  30314. - then
  30315. - { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  30316. -$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  30317. - { (exit 1); exit 1; }; }
  30318. - fi
  30319. - # Update the list of available tags.
  30320. - if test -n "$tagname"; then
  30321. - echo appending configuration tag \"$tagname\" to $ofile
  30322. -
  30323. - case $tagname in
  30324. - CXX)
  30325. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  30326. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  30327. - (test "X$CXX" != "Xg++"))) ; then
  30328. - ac_ext=cpp
  30329. -ac_cpp='$CXXCPP $CPPFLAGS'
  30330. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30331. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30332. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30333. -archive_cmds_need_lc_CXX=no
  30334. -allow_undefined_flag_CXX=
  30335. -always_export_symbols_CXX=no
  30336. -archive_expsym_cmds_CXX=
  30337. -export_dynamic_flag_spec_CXX=
  30338. -hardcode_direct_CXX=no
  30339. -hardcode_libdir_flag_spec_CXX=
  30340. -hardcode_libdir_flag_spec_ld_CXX=
  30341. -hardcode_libdir_separator_CXX=
  30342. -hardcode_minus_L_CXX=no
  30343. -hardcode_shlibpath_var_CXX=unsupported
  30344. -hardcode_automatic_CXX=no
  30345. -module_cmds_CXX=
  30346. -module_expsym_cmds_CXX=
  30347. -link_all_deplibs_CXX=unknown
  30348. -old_archive_cmds_CXX=$old_archive_cmds
  30349. -no_undefined_flag_CXX=
  30350. -whole_archive_flag_spec_CXX=
  30351. -enable_shared_with_static_runtimes_CXX=no
  30352. -
  30353. -# Dependencies to place before and after the object being linked:
  30354. -predep_objects_CXX=
  30355. -postdep_objects_CXX=
  30356. -predeps_CXX=
  30357. -postdeps_CXX=
  30358. -compiler_lib_search_path_CXX=
  30359. -compiler_lib_search_dirs_CXX=
  30360. -# Source file extension for C++ test sources.
  30361. -ac_ext=cpp
  30362. -# Object file extension for compiled C++ test sources.
  30363. -objext=o
  30364. -objext_CXX=$objext
  30365. -# Code to be used in simple compile tests
  30366. -lt_simple_compile_test_code="int some_variable = 0;"
  30367. -# Code to be used in simple link tests
  30368. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  30369. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30370. -# If no C compiler was specified, use CC.
  30371. -LTCC=${LTCC-"$CC"}
  30372. -# If no C compiler flags were specified, use CFLAGS.
  30373. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30374. -# Allow CC to be a program name with arguments.
  30375. -compiler=$CC
  30376. -# save warnings/boilerplate of simple test code
  30377. -ac_outfile=conftest.$ac_objext
  30378. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  30379. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30380. -_lt_compiler_boilerplate=`cat conftest.err`
  30381. -$rm conftest*
  30382. -ac_outfile=conftest.$ac_objext
  30383. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  30384. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30385. -_lt_linker_boilerplate=`cat conftest.err`
  30386. -$rm -r conftest*
  30387. -# Allow CC to be a program name with arguments.
  30388. -lt_save_CC=$CC
  30389. -lt_save_LD=$LD
  30390. -lt_save_GCC=$GCC
  30391. -GCC=$GXX
  30392. -lt_save_with_gnu_ld=$with_gnu_ld
  30393. -lt_save_path_LD=$lt_cv_path_LD
  30394. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  30395. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  30396. -else
  30397. - $as_unset lt_cv_prog_gnu_ld
  30398. -fi
  30399. -if test -n "${lt_cv_path_LDCXX+set}"; then
  30400. - lt_cv_path_LD=$lt_cv_path_LDCXX
  30401. -else
  30402. - $as_unset lt_cv_path_LD
  30403. -fi
  30404. -test -z "${LDCXX+set}" || LD=$LDCXX
  30405. -CC=${CXX-"c++"}
  30406. -compiler=$CC
  30407. -compiler_CXX=$CC
  30408. -for cc_temp in $compiler""; do
  30409. - case $cc_temp in
  30410. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30411. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30412. - \-*) ;;
  30413. - *) break;;
  30414. - esac
  30415. -done
  30416. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30417. -# We don't want -fno-exception wen compiling C++ code, so set the
  30418. -# no_builtin_flag separately
  30419. -if test "$GXX" = yes; then
  30420. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  30421. -else
  30422. - lt_prog_compiler_no_builtin_flag_CXX=
  30423. -fi
  30424. -if test "$GXX" = yes; then
  30425. - # Set up default GNU C++ configuration
  30426. -# Check whether --with-gnu-ld was given.
  30427. -if test "${with_gnu_ld+set}" = set; then
  30428. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  30429. -else
  30430. - with_gnu_ld=no
  30431. -fi
  30432. -ac_prog=ld
  30433. -if test "$GCC" = yes; then
  30434. - # Check if gcc -print-prog-name=ld gives a path.
  30435. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  30436. -$as_echo_n "checking for ld used by $CC... " >&6; }
  30437. - case $host in
  30438. - *-*-mingw*)
  30439. - # gcc leaves a trailing carriage return which upsets mingw
  30440. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  30441. - *)
  30442. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  30443. - esac
  30444. - case $ac_prog in
  30445. - # Accept absolute paths.
  30446. - [\\/]* | ?:[\\/]*)
  30447. - re_direlt='/[^/][^/]*/\.\./'
  30448. - # Canonicalize the pathname of ld
  30449. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  30450. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  30451. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  30452. - done
  30453. - test -z "$LD" && LD="$ac_prog"
  30454. - ;;
  30455. - "")
  30456. - # If it fails, then pretend we aren't using GCC.
  30457. - ac_prog=ld
  30458. - ;;
  30459. - *)
  30460. - # If it is relative, then search for the first ld in PATH.
  30461. - with_gnu_ld=unknown
  30462. - ;;
  30463. - esac
  30464. -elif test "$with_gnu_ld" = yes; then
  30465. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  30466. -$as_echo_n "checking for GNU ld... " >&6; }
  30467. -else
  30468. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  30469. -$as_echo_n "checking for non-GNU ld... " >&6; }
  30470. -fi
  30471. -if test "${lt_cv_path_LD+set}" = set; then
  30472. - $as_echo_n "(cached) " >&6
  30473. -else
  30474. - if test -z "$LD"; then
  30475. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  30476. - for ac_dir in $PATH; do
  30477. - IFS="$lt_save_ifs"
  30478. - test -z "$ac_dir" && ac_dir=.
  30479. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  30480. - lt_cv_path_LD="$ac_dir/$ac_prog"
  30481. - # Check to see if the program is GNU ld. I'd rather use --version,
  30482. - # but apparently some variants of GNU ld only accept -v.
  30483. - # Break only if it was the GNU/non-GNU ld that we prefer.
  30484. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  30485. - *GNU* | *'with BFD'*)
  30486. - test "$with_gnu_ld" != no && break
  30487. - ;;
  30488. - *)
  30489. - test "$with_gnu_ld" != yes && break
  30490. - ;;
  30491. - esac
  30492. - fi
  30493. - done
  30494. - IFS="$lt_save_ifs"
  30495. -else
  30496. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  30497. -fi
  30498. -fi
  30499. -LD="$lt_cv_path_LD"
  30500. -if test -n "$LD"; then
  30501. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  30502. -$as_echo "$LD" >&6; }
  30503. -else
  30504. - { $as_echo "$as_me:$LINENO: result: no" >&5
  30505. -$as_echo "no" >&6; }
  30506. -fi
  30507. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  30508. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  30509. - { (exit 1); exit 1; }; }
  30510. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  30511. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  30512. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  30513. - $as_echo_n "(cached) " >&6
  30514. -else
  30515. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  30516. -case `$LD -v 2>&1 </dev/null` in
  30517. -*GNU* | *'with BFD'*)
  30518. - lt_cv_prog_gnu_ld=yes
  30519. - ;;
  30520. -*)
  30521. - lt_cv_prog_gnu_ld=no
  30522. - ;;
  30523. -esac
  30524. -fi
  30525. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  30526. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  30527. -with_gnu_ld=$lt_cv_prog_gnu_ld
  30528. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  30529. - # archiving commands below assume that GNU ld is being used.
  30530. - if test "$with_gnu_ld" = yes; then
  30531. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30532. - 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'
  30533. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  30534. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  30535. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30536. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  30537. - # investigate it a little bit more. (MM)
  30538. - wlarc='${wl}'
  30539. - # ancient GNU ld didn't support --whole-archive et. al.
  30540. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  30541. - grep 'no-whole-archive' > /dev/null; then
  30542. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30543. - else
  30544. - whole_archive_flag_spec_CXX=
  30545. - fi
  30546. - else
  30547. - with_gnu_ld=no
  30548. - wlarc=
  30549. - # A generic and very simple default shared library creation
  30550. - # command for GNU C++ for the case where it uses the native
  30551. - # linker, instead of GNU ld. If possible, this setting should
  30552. - # overridden to take advantage of the native linker features on
  30553. - # the platform it is being used on.
  30554. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  30555. - fi
  30556. - # Commands to make compiler produce verbose output that lists
  30557. - # what "hidden" libraries, object files and flags are used when
  30558. - # linking a shared library.
  30559. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  30560. -else
  30561. - GXX=no
  30562. - with_gnu_ld=no
  30563. - wlarc=
  30564. -fi
  30565. -# PORTME: fill in a description of your system's C++ link characteristics
  30566. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30567. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  30568. -ld_shlibs_CXX=yes
  30569. -case $host_os in
  30570. - aix3*)
  30571. - # FIXME: insert proper C++ library support
  30572. - ld_shlibs_CXX=no
  30573. - ;;
  30574. - aix[4-9]*)
  30575. - if test "$host_cpu" = ia64; then
  30576. - # On IA64, the linker does run time linking by default, so we don't
  30577. - # have to do anything special.
  30578. - aix_use_runtimelinking=no
  30579. - exp_sym_flag='-Bexport'
  30580. - no_entry_flag=""
  30581. - else
  30582. - aix_use_runtimelinking=no
  30583. - # Test if we are trying to use run time linking or normal
  30584. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30585. - # need to do runtime linking.
  30586. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30587. - for ld_flag in $LDFLAGS; do
  30588. - case $ld_flag in
  30589. - *-brtl*)
  30590. - aix_use_runtimelinking=yes
  30591. - break
  30592. - ;;
  30593. - esac
  30594. - done
  30595. - ;;
  30596. - esac
  30597. - exp_sym_flag='-bexport'
  30598. - no_entry_flag='-bnoentry'
  30599. - fi
  30600. - # When large executables or shared objects are built, AIX ld can
  30601. - # have problems creating the table of contents. If linking a library
  30602. - # or program results in "error TOC overflow" add -mminimal-toc to
  30603. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30604. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30605. -
  30606. - archive_cmds_CXX=''
  30607. - hardcode_direct_CXX=yes
  30608. - hardcode_libdir_separator_CXX=':'
  30609. - link_all_deplibs_CXX=yes
  30610. -
  30611. - if test "$GXX" = yes; then
  30612. - case $host_os in aix4.[012]|aix4.[012].*)
  30613. - # We only want to do this on AIX 4.2 and lower, the check
  30614. - # below for broken collect2 doesn't work under 4.3+
  30615. - collect2name=`${CC} -print-prog-name=collect2`
  30616. - if test -f "$collect2name" && \
  30617. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30618. - then
  30619. - # We have reworked collect2
  30620. - :
  30621. - else
  30622. - # We have old collect2
  30623. - hardcode_direct_CXX=unsupported
  30624. - # It fails to find uninstalled libraries when the uninstalled
  30625. - # path is not listed in the libpath. Setting hardcode_minus_L
  30626. - # to unsupported forces relinking
  30627. - hardcode_minus_L_CXX=yes
  30628. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  30629. - hardcode_libdir_separator_CXX=
  30630. - fi
  30631. - ;;
  30632. - esac
  30633. - shared_flag='-shared'
  30634. - if test "$aix_use_runtimelinking" = yes; then
  30635. - shared_flag="$shared_flag "'${wl}-G'
  30636. - fi
  30637. - else
  30638. - # not using gcc
  30639. - if test "$host_cpu" = ia64; then
  30640. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30641. - # chokes on -Wl,-G. The following line is correct:
  30642. - shared_flag='-G'
  30643. - else
  30644. - if test "$aix_use_runtimelinking" = yes; then
  30645. - shared_flag='${wl}-G'
  30646. - else
  30647. - shared_flag='${wl}-bM:SRE'
  30648. - fi
  30649. - fi
  30650. - fi
  30651. - # It seems that -bexpall does not export symbols beginning with
  30652. - # underscore (_), so it is better to generate a list of symbols to export.
  30653. - always_export_symbols_CXX=yes
  30654. - if test "$aix_use_runtimelinking" = yes; then
  30655. - # Warning - without using the other runtime loading flags (-brtl),
  30656. - # -berok will link without error, but may produce a broken library.
  30657. - allow_undefined_flag_CXX='-berok'
  30658. - # Determine the default libpath from the value encoded in an empty executable.
  30659. - cat >conftest.$ac_ext <<_ACEOF
  30660. -/* confdefs.h. */
  30661. -_ACEOF
  30662. -cat confdefs.h >>conftest.$ac_ext
  30663. -cat >>conftest.$ac_ext <<_ACEOF
  30664. -/* end confdefs.h. */
  30665. -int
  30666. -main ()
  30667. -{
  30668. - ;
  30669. - return 0;
  30670. -}
  30671. -_ACEOF
  30672. -rm -f conftest.$ac_objext conftest$ac_exeext
  30673. -if { (ac_try="$ac_link"
  30674. -case "(($ac_try" in
  30675. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30676. - *) ac_try_echo=$ac_try;;
  30677. -esac
  30678. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30679. -$as_echo "$ac_try_echo") >&5
  30680. - (eval "$ac_link") 2>conftest.er1
  30681. - ac_status=$?
  30682. - grep -v '^ *+' conftest.er1 >conftest.err
  30683. - rm -f conftest.er1
  30684. - cat conftest.err >&5
  30685. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30686. - (exit $ac_status); } && {
  30687. - test -z "$ac_cxx_werror_flag" ||
  30688. - test ! -s conftest.err
  30689. - } && test -s conftest$ac_exeext && {
  30690. - test "$cross_compiling" = yes ||
  30691. - $as_test_x conftest$ac_exeext
  30692. - }; then
  30693. -lt_aix_libpath_sed='
  30694. - /Import File Strings/,/^$/ {
  30695. - /^0/ {
  30696. - s/^0 *\(.*\)$/\1/
  30697. - p
  30698. - }
  30699. - }'
  30700. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30701. -# Check for a 64-bit object if we didn't find anything.
  30702. -if test -z "$aix_libpath"; then
  30703. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30704. -fi
  30705. -else
  30706. - $as_echo "$as_me: failed program was:" >&5
  30707. -sed 's/^/| /' conftest.$ac_ext >&5
  30708. -fi
  30709. -rm -rf conftest.dSYM
  30710. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30711. - conftest$ac_exeext conftest.$ac_ext
  30712. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30713. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  30714. - 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"
  30715. - else
  30716. - if test "$host_cpu" = ia64; then
  30717. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  30718. - allow_undefined_flag_CXX="-z nodefs"
  30719. - 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"
  30720. - else
  30721. - # Determine the default libpath from the value encoded in an empty executable.
  30722. - cat >conftest.$ac_ext <<_ACEOF
  30723. -/* confdefs.h. */
  30724. -_ACEOF
  30725. -cat confdefs.h >>conftest.$ac_ext
  30726. -cat >>conftest.$ac_ext <<_ACEOF
  30727. -/* end confdefs.h. */
  30728. -int
  30729. -main ()
  30730. -{
  30731. - ;
  30732. - return 0;
  30733. -}
  30734. -_ACEOF
  30735. -rm -f conftest.$ac_objext conftest$ac_exeext
  30736. -if { (ac_try="$ac_link"
  30737. -case "(($ac_try" in
  30738. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30739. - *) ac_try_echo=$ac_try;;
  30740. -esac
  30741. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30742. -$as_echo "$ac_try_echo") >&5
  30743. - (eval "$ac_link") 2>conftest.er1
  30744. - ac_status=$?
  30745. - grep -v '^ *+' conftest.er1 >conftest.err
  30746. - rm -f conftest.er1
  30747. - cat conftest.err >&5
  30748. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30749. - (exit $ac_status); } && {
  30750. - test -z "$ac_cxx_werror_flag" ||
  30751. - test ! -s conftest.err
  30752. - } && test -s conftest$ac_exeext && {
  30753. - test "$cross_compiling" = yes ||
  30754. - $as_test_x conftest$ac_exeext
  30755. - }; then
  30756. -lt_aix_libpath_sed='
  30757. - /Import File Strings/,/^$/ {
  30758. - /^0/ {
  30759. - s/^0 *\(.*\)$/\1/
  30760. - p
  30761. - }
  30762. - }'
  30763. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30764. -# Check for a 64-bit object if we didn't find anything.
  30765. -if test -z "$aix_libpath"; then
  30766. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30767. -fi
  30768. -else
  30769. - $as_echo "$as_me: failed program was:" >&5
  30770. -sed 's/^/| /' conftest.$ac_ext >&5
  30771. -fi
  30772. -rm -rf conftest.dSYM
  30773. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30774. - conftest$ac_exeext conftest.$ac_ext
  30775. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30776. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  30777. - # Warning - without using the other run time loading flags,
  30778. - # -berok will link without error, but may produce a broken library.
  30779. - no_undefined_flag_CXX=' ${wl}-bernotok'
  30780. - allow_undefined_flag_CXX=' ${wl}-berok'
  30781. - # Exported symbols can be pulled into shared objects from archives
  30782. - whole_archive_flag_spec_CXX='$convenience'
  30783. - archive_cmds_need_lc_CXX=yes
  30784. - # This is similar to how AIX traditionally builds its shared libraries.
  30785. - 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'
  30786. - fi
  30787. - fi
  30788. - ;;
  30789. - beos*)
  30790. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30791. - allow_undefined_flag_CXX=unsupported
  30792. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30793. - # support --undefined. This deserves some investigation. FIXME
  30794. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30795. - else
  30796. - ld_shlibs_CXX=no
  30797. - fi
  30798. - ;;
  30799. - chorus*)
  30800. - case $cc_basename in
  30801. - *)
  30802. - # FIXME: insert proper C++ library support
  30803. - ld_shlibs_CXX=no
  30804. - ;;
  30805. - esac
  30806. - ;;
  30807. - cygwin* | mingw* | pw32*)
  30808. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  30809. - # as there is no search path for DLLs.
  30810. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  30811. - allow_undefined_flag_CXX=unsupported
  30812. - always_export_symbols_CXX=no
  30813. - enable_shared_with_static_runtimes_CXX=yes
  30814. -
  30815. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30816. - 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'
  30817. - # If the export-symbols file already is a .def file (1st line
  30818. - # is EXPORTS), use it as is; otherwise, prepend...
  30819. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30820. - cp $export_symbols $output_objdir/$soname.def;
  30821. - else
  30822. - echo EXPORTS > $output_objdir/$soname.def;
  30823. - cat $export_symbols >> $output_objdir/$soname.def;
  30824. - fi~
  30825. - $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'
  30826. - else
  30827. - ld_shlibs_CXX=no
  30828. - fi
  30829. - ;;
  30830. - darwin* | rhapsody*)
  30831. - archive_cmds_need_lc_CXX=no
  30832. - hardcode_direct_CXX=no
  30833. - hardcode_automatic_CXX=yes
  30834. - hardcode_shlibpath_var_CXX=unsupported
  30835. - whole_archive_flag_spec_CXX=''
  30836. - link_all_deplibs_CXX=yes
  30837. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  30838. - if test "$GXX" = yes ; then
  30839. - output_verbose_link_cmd='echo'
  30840. - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  30841. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30842. - archive_expsym_cmds_CXX="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}"
  30843. - module_expsym_cmds_CXX="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}"
  30844. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  30845. - 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${_lt_dsymutil}"
  30846. - archive_expsym_cmds_CXX="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}"
  30847. - fi
  30848. - else
  30849. - case $cc_basename in
  30850. - xlc*)
  30851. - output_verbose_link_cmd='echo'
  30852. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  30853. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30854. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30855. - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30856. - 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}'
  30857. - ;;
  30858. - *)
  30859. - ld_shlibs_CXX=no
  30860. - ;;
  30861. - esac
  30862. - fi
  30863. - ;;
  30864. - dgux*)
  30865. - case $cc_basename in
  30866. - ec++*)
  30867. - # FIXME: insert proper C++ library support
  30868. - ld_shlibs_CXX=no
  30869. - ;;
  30870. - ghcx*)
  30871. - # Green Hills C++ Compiler
  30872. - # FIXME: insert proper C++ library support
  30873. - ld_shlibs_CXX=no
  30874. - ;;
  30875. - *)
  30876. - # FIXME: insert proper C++ library support
  30877. - ld_shlibs_CXX=no
  30878. - ;;
  30879. - esac
  30880. - ;;
  30881. - freebsd[12]*)
  30882. - # C++ shared libraries reported to be fairly broken before switch to ELF
  30883. - ld_shlibs_CXX=no
  30884. - ;;
  30885. - freebsd-elf*)
  30886. - archive_cmds_need_lc_CXX=no
  30887. - ;;
  30888. - freebsd* | dragonfly*)
  30889. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  30890. - # conventions
  30891. - ld_shlibs_CXX=yes
  30892. - ;;
  30893. - gnu*)
  30894. - ;;
  30895. - hpux9*)
  30896. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30897. - hardcode_libdir_separator_CXX=:
  30898. - export_dynamic_flag_spec_CXX='${wl}-E'
  30899. - hardcode_direct_CXX=yes
  30900. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30901. - # but as the default
  30902. - # location of the library.
  30903. -
  30904. - case $cc_basename in
  30905. - CC*)
  30906. - # FIXME: insert proper C++ library support
  30907. - ld_shlibs_CXX=no
  30908. - ;;
  30909. - aCC*)
  30910. - 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'
  30911. - # Commands to make compiler produce verbose output that lists
  30912. - # what "hidden" libraries, object files and flags are used when
  30913. - # linking a shared library.
  30914. - #
  30915. - # There doesn't appear to be a way to prevent this compiler from
  30916. - # explicitly linking system object files so we need to strip them
  30917. - # from the output so that they don't get included in the library
  30918. - # dependencies.
  30919. - 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'
  30920. - ;;
  30921. - *)
  30922. - if test "$GXX" = yes; then
  30923. - 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'
  30924. - else
  30925. - # FIXME: insert proper C++ library support
  30926. - ld_shlibs_CXX=no
  30927. - fi
  30928. - ;;
  30929. - esac
  30930. - ;;
  30931. - hpux10*|hpux11*)
  30932. - if test $with_gnu_ld = no; then
  30933. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30934. - hardcode_libdir_separator_CXX=:
  30935. - case $host_cpu in
  30936. - hppa*64*|ia64*) ;;
  30937. - *)
  30938. - export_dynamic_flag_spec_CXX='${wl}-E'
  30939. - ;;
  30940. - esac
  30941. - fi
  30942. - case $host_cpu in
  30943. - hppa*64*|ia64*)
  30944. - hardcode_direct_CXX=no
  30945. - hardcode_shlibpath_var_CXX=no
  30946. - ;;
  30947. - *)
  30948. - hardcode_direct_CXX=yes
  30949. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30950. - # but as the default
  30951. - # location of the library.
  30952. - ;;
  30953. - esac
  30954. - case $cc_basename in
  30955. - CC*)
  30956. - # FIXME: insert proper C++ library support
  30957. - ld_shlibs_CXX=no
  30958. - ;;
  30959. - aCC*)
  30960. - case $host_cpu in
  30961. - hppa*64*)
  30962. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30963. - ;;
  30964. - ia64*)
  30965. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30966. - ;;
  30967. - *)
  30968. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30969. - ;;
  30970. - esac
  30971. - # Commands to make compiler produce verbose output that lists
  30972. - # what "hidden" libraries, object files and flags are used when
  30973. - # linking a shared library.
  30974. - #
  30975. - # There doesn't appear to be a way to prevent this compiler from
  30976. - # explicitly linking system object files so we need to strip them
  30977. - # from the output so that they don't get included in the library
  30978. - # dependencies.
  30979. - 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'
  30980. - ;;
  30981. - *)
  30982. - if test "$GXX" = yes; then
  30983. - if test $with_gnu_ld = no; then
  30984. - case $host_cpu in
  30985. - hppa*64*)
  30986. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30987. - ;;
  30988. - ia64*)
  30989. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30990. - ;;
  30991. - *)
  30992. - 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'
  30993. - ;;
  30994. - esac
  30995. - fi
  30996. - else
  30997. - # FIXME: insert proper C++ library support
  30998. - ld_shlibs_CXX=no
  30999. - fi
  31000. - ;;
  31001. - esac
  31002. - ;;
  31003. - interix[3-9]*)
  31004. - hardcode_direct_CXX=no
  31005. - hardcode_shlibpath_var_CXX=no
  31006. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31007. - export_dynamic_flag_spec_CXX='${wl}-E'
  31008. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31009. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31010. - # default) and relocated if they conflict, which is a slow very memory
  31011. - # consuming and fragmenting process. To avoid this, we pick a random,
  31012. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31013. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31014. - 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'
  31015. - 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'
  31016. - ;;
  31017. - irix5* | irix6*)
  31018. - case $cc_basename in
  31019. - CC*)
  31020. - # SGI C++
  31021. - 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'
  31022. -
  31023. - # Archives containing C++ object files must be created using
  31024. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  31025. - # necessary to make sure instantiated templates are included
  31026. - # in the archive.
  31027. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  31028. - ;;
  31029. - *)
  31030. - if test "$GXX" = yes; then
  31031. - if test "$with_gnu_ld" = no; then
  31032. - 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'
  31033. - else
  31034. - 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'
  31035. - fi
  31036. - fi
  31037. - link_all_deplibs_CXX=yes
  31038. - ;;
  31039. - esac
  31040. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31041. - hardcode_libdir_separator_CXX=:
  31042. - ;;
  31043. - linux* | k*bsd*-gnu)
  31044. - case $cc_basename in
  31045. - KCC*)
  31046. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31047. -
  31048. - # KCC will only create a shared library if the output file
  31049. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31050. - # to its proper name (with version) after linking.
  31051. - 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'
  31052. - 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'
  31053. - # Commands to make compiler produce verbose output that lists
  31054. - # what "hidden" libraries, object files and flags are used when
  31055. - # linking a shared library.
  31056. - #
  31057. - # There doesn't appear to be a way to prevent this compiler from
  31058. - # explicitly linking system object files so we need to strip them
  31059. - # from the output so that they don't get included in the library
  31060. - # dependencies.
  31061. - 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'
  31062. -
  31063. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  31064. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31065. -
  31066. - # Archives containing C++ object files must be created using
  31067. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  31068. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  31069. - ;;
  31070. - icpc*)
  31071. - # Intel C++
  31072. - with_gnu_ld=yes
  31073. - # version 8.0 and above of icpc choke on multiply defined symbols
  31074. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  31075. - # earlier do not add the objects themselves.
  31076. - case `$CC -V 2>&1` in
  31077. - *"Version 7."*)
  31078. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31079. - 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'
  31080. - ;;
  31081. - *) # Version 8.0 or newer
  31082. - tmp_idyn=
  31083. - case $host_cpu in
  31084. - ia64*) tmp_idyn=' -i_dynamic';;
  31085. - esac
  31086. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31087. - 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'
  31088. - ;;
  31089. - esac
  31090. - archive_cmds_need_lc_CXX=no
  31091. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31092. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31093. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  31094. - ;;
  31095. - pgCC* | pgcpp*)
  31096. - # Portland Group C++ compiler
  31097. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  31098. - 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'
  31099. -
  31100. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31101. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31102. - 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'
  31103. - ;;
  31104. - cxx*)
  31105. - # Compaq C++
  31106. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31107. - 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'
  31108. - runpath_var=LD_RUN_PATH
  31109. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  31110. - hardcode_libdir_separator_CXX=:
  31111. - # Commands to make compiler produce verbose output that lists
  31112. - # what "hidden" libraries, object files and flags are used when
  31113. - # linking a shared library.
  31114. - #
  31115. - # There doesn't appear to be a way to prevent this compiler from
  31116. - # explicitly linking system object files so we need to strip them
  31117. - # from the output so that they don't get included in the library
  31118. - # dependencies.
  31119. - 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'
  31120. - ;;
  31121. - *)
  31122. - case `$CC -V 2>&1 | sed 5q` in
  31123. - *Sun\ C*)
  31124. - # Sun C++ 5.9
  31125. - no_undefined_flag_CXX=' -zdefs'
  31126. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31127. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  31128. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  31129. - whole_archive_flag_spec_CXX='${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'
  31130. -
  31131. - # Not sure whether something based on
  31132. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  31133. - # would be better.
  31134. - output_verbose_link_cmd='echo'
  31135. -
  31136. - # Archives containing C++ object files must be created using
  31137. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  31138. - # necessary to make sure instantiated templates are included
  31139. - # in the archive.
  31140. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  31141. - ;;
  31142. - esac
  31143. - ;;
  31144. - esac
  31145. - ;;
  31146. - lynxos*)
  31147. - # FIXME: insert proper C++ library support
  31148. - ld_shlibs_CXX=no
  31149. - ;;
  31150. - m88k*)
  31151. - # FIXME: insert proper C++ library support
  31152. - ld_shlibs_CXX=no
  31153. - ;;
  31154. - mvs*)
  31155. - case $cc_basename in
  31156. - cxx*)
  31157. - # FIXME: insert proper C++ library support
  31158. - ld_shlibs_CXX=no
  31159. - ;;
  31160. - *)
  31161. - # FIXME: insert proper C++ library support
  31162. - ld_shlibs_CXX=no
  31163. - ;;
  31164. - esac
  31165. - ;;
  31166. - netbsd*)
  31167. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31168. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  31169. - wlarc=
  31170. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  31171. - hardcode_direct_CXX=yes
  31172. - hardcode_shlibpath_var_CXX=no
  31173. - fi
  31174. - # Workaround some broken pre-1.5 toolchains
  31175. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  31176. - ;;
  31177. - openbsd2*)
  31178. - # C++ shared libraries are fairly broken
  31179. - ld_shlibs_CXX=no
  31180. - ;;
  31181. - openbsd*)
  31182. - if test -f /usr/libexec/ld.so; then
  31183. - hardcode_direct_CXX=yes
  31184. - hardcode_shlibpath_var_CXX=no
  31185. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  31186. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31187. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31188. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  31189. - export_dynamic_flag_spec_CXX='${wl}-E'
  31190. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31191. - fi
  31192. - output_verbose_link_cmd='echo'
  31193. - else
  31194. - ld_shlibs_CXX=no
  31195. - fi
  31196. - ;;
  31197. - osf3*)
  31198. - case $cc_basename in
  31199. - KCC*)
  31200. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31201. -
  31202. - # KCC will only create a shared library if the output file
  31203. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31204. - # to its proper name (with version) after linking.
  31205. - 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'
  31206. -
  31207. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31208. - hardcode_libdir_separator_CXX=:
  31209. -
  31210. - # Archives containing C++ object files must be created using
  31211. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  31212. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  31213. - ;;
  31214. - RCC*)
  31215. - # Rational C++ 2.4.1
  31216. - # FIXME: insert proper C++ library support
  31217. - ld_shlibs_CXX=no
  31218. - ;;
  31219. - cxx*)
  31220. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31221. - 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'
  31222. -
  31223. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31224. - hardcode_libdir_separator_CXX=:
  31225. -
  31226. - # Commands to make compiler produce verbose output that lists
  31227. - # what "hidden" libraries, object files and flags are used when
  31228. - # linking a shared library.
  31229. - #
  31230. - # There doesn't appear to be a way to prevent this compiler from
  31231. - # explicitly linking system object files so we need to strip them
  31232. - # from the output so that they don't get included in the library
  31233. - # dependencies.
  31234. - 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'
  31235. - ;;
  31236. - *)
  31237. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31238. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31239. - 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'
  31240. -
  31241. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31242. - hardcode_libdir_separator_CXX=:
  31243. -
  31244. - # Commands to make compiler produce verbose output that lists
  31245. - # what "hidden" libraries, object files and flags are used when
  31246. - # linking a shared library.
  31247. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31248. - else
  31249. - # FIXME: insert proper C++ library support
  31250. - ld_shlibs_CXX=no
  31251. - fi
  31252. - ;;
  31253. - esac
  31254. - ;;
  31255. - osf4* | osf5*)
  31256. - case $cc_basename in
  31257. - KCC*)
  31258. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  31259. -
  31260. - # KCC will only create a shared library if the output file
  31261. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  31262. - # to its proper name (with version) after linking.
  31263. - 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'
  31264. -
  31265. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  31266. - hardcode_libdir_separator_CXX=:
  31267. -
  31268. - # Archives containing C++ object files must be created using
  31269. - # the KAI C++ compiler.
  31270. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  31271. - ;;
  31272. - RCC*)
  31273. - # Rational C++ 2.4.1
  31274. - # FIXME: insert proper C++ library support
  31275. - ld_shlibs_CXX=no
  31276. - ;;
  31277. - cxx*)
  31278. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  31279. - 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'
  31280. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  31281. - echo "-hidden">> $lib.exp~
  31282. - $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~
  31283. - $rm $lib.exp'
  31284. -
  31285. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  31286. - hardcode_libdir_separator_CXX=:
  31287. -
  31288. - # Commands to make compiler produce verbose output that lists
  31289. - # what "hidden" libraries, object files and flags are used when
  31290. - # linking a shared library.
  31291. - #
  31292. - # There doesn't appear to be a way to prevent this compiler from
  31293. - # explicitly linking system object files so we need to strip them
  31294. - # from the output so that they don't get included in the library
  31295. - # dependencies.
  31296. - 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'
  31297. - ;;
  31298. - *)
  31299. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31300. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  31301. - 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'
  31302. -
  31303. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  31304. - hardcode_libdir_separator_CXX=:
  31305. -
  31306. - # Commands to make compiler produce verbose output that lists
  31307. - # what "hidden" libraries, object files and flags are used when
  31308. - # linking a shared library.
  31309. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31310. - else
  31311. - # FIXME: insert proper C++ library support
  31312. - ld_shlibs_CXX=no
  31313. - fi
  31314. - ;;
  31315. - esac
  31316. - ;;
  31317. - psos*)
  31318. - # FIXME: insert proper C++ library support
  31319. - ld_shlibs_CXX=no
  31320. - ;;
  31321. - sunos4*)
  31322. - case $cc_basename in
  31323. - CC*)
  31324. - # Sun C++ 4.x
  31325. - # FIXME: insert proper C++ library support
  31326. - ld_shlibs_CXX=no
  31327. - ;;
  31328. - lcc*)
  31329. - # Lucid
  31330. - # FIXME: insert proper C++ library support
  31331. - ld_shlibs_CXX=no
  31332. - ;;
  31333. - *)
  31334. - # FIXME: insert proper C++ library support
  31335. - ld_shlibs_CXX=no
  31336. - ;;
  31337. - esac
  31338. - ;;
  31339. - solaris*)
  31340. - case $cc_basename in
  31341. - CC*)
  31342. - # Sun C++ 4.2, 5.x and Centerline C++
  31343. - archive_cmds_need_lc_CXX=yes
  31344. - no_undefined_flag_CXX=' -zdefs'
  31345. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  31346. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31347. - $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'
  31348. -
  31349. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  31350. - hardcode_shlibpath_var_CXX=no
  31351. - case $host_os in
  31352. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31353. - *)
  31354. - # The compiler driver will combine and reorder linker options,
  31355. - # but understands `-z linker_flag'.
  31356. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31357. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  31358. - ;;
  31359. - esac
  31360. - link_all_deplibs_CXX=yes
  31361. - output_verbose_link_cmd='echo'
  31362. - # Archives containing C++ object files must be created using
  31363. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  31364. - # necessary to make sure instantiated templates are included
  31365. - # in the archive.
  31366. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  31367. - ;;
  31368. - gcx*)
  31369. - # Green Hills C++ Compiler
  31370. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31371. - # The C++ compiler must be used to create the archive.
  31372. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  31373. - ;;
  31374. - *)
  31375. - # GNU C++ compiler with Solaris linker
  31376. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  31377. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  31378. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  31379. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31380. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31381. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  31382. -
  31383. - # Commands to make compiler produce verbose output that lists
  31384. - # what "hidden" libraries, object files and flags are used when
  31385. - # linking a shared library.
  31386. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  31387. - else
  31388. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  31389. - # platform.
  31390. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  31391. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31392. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  31393. -
  31394. - # Commands to make compiler produce verbose output that lists
  31395. - # what "hidden" libraries, object files and flags are used when
  31396. - # linking a shared library.
  31397. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  31398. - fi
  31399. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  31400. - case $host_os in
  31401. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31402. - *)
  31403. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  31404. - ;;
  31405. - esac
  31406. - fi
  31407. - ;;
  31408. - esac
  31409. - ;;
  31410. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31411. - no_undefined_flag_CXX='${wl}-z,text'
  31412. - archive_cmds_need_lc_CXX=no
  31413. - hardcode_shlibpath_var_CXX=no
  31414. - runpath_var='LD_RUN_PATH'
  31415. -
  31416. - case $cc_basename in
  31417. - CC*)
  31418. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31419. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31420. - ;;
  31421. - *)
  31422. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31423. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31424. - ;;
  31425. - esac
  31426. - ;;
  31427. - sysv5* | sco3.2v5* | sco5v6*)
  31428. - # Note: We can NOT use -z defs as we might desire, because we do not
  31429. - # link with -lc, and that would cause any symbols used from libc to
  31430. - # always be unresolved, which means just about no library would
  31431. - # ever link correctly. If we're not using GNU ld we use -z text
  31432. - # though, which does catch some bad symbols but isn't as heavy-handed
  31433. - # as -z defs.
  31434. - # For security reasons, it is highly recommended that you always
  31435. - # use absolute paths for naming shared libraries, and exclude the
  31436. - # DT_RUNPATH tag from executables and libraries. But doing so
  31437. - # requires that you compile everything twice, which is a pain.
  31438. - # So that behaviour is only enabled if SCOABSPATH is set to a
  31439. - # non-empty value in the environment. Most likely only useful for
  31440. - # creating official distributions of packages.
  31441. - # This is a hack until libtool officially supports absolute path
  31442. - # names for shared libraries.
  31443. - no_undefined_flag_CXX='${wl}-z,text'
  31444. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  31445. - archive_cmds_need_lc_CXX=no
  31446. - hardcode_shlibpath_var_CXX=no
  31447. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31448. - hardcode_libdir_separator_CXX=':'
  31449. - link_all_deplibs_CXX=yes
  31450. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  31451. - runpath_var='LD_RUN_PATH'
  31452. -
  31453. - case $cc_basename in
  31454. - CC*)
  31455. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31456. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31457. - ;;
  31458. - *)
  31459. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31460. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31461. - ;;
  31462. - esac
  31463. - ;;
  31464. - tandem*)
  31465. - case $cc_basename in
  31466. - NCC*)
  31467. - # NonStop-UX NCC 3.20
  31468. - # FIXME: insert proper C++ library support
  31469. - ld_shlibs_CXX=no
  31470. - ;;
  31471. - *)
  31472. - # FIXME: insert proper C++ library support
  31473. - ld_shlibs_CXX=no
  31474. - ;;
  31475. - esac
  31476. - ;;
  31477. - vxworks*)
  31478. - # FIXME: insert proper C++ library support
  31479. - ld_shlibs_CXX=no
  31480. - ;;
  31481. - *)
  31482. - # FIXME: insert proper C++ library support
  31483. - ld_shlibs_CXX=no
  31484. - ;;
  31485. -esac
  31486. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  31487. -$as_echo "$ld_shlibs_CXX" >&6; }
  31488. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  31489. -GCC_CXX="$GXX"
  31490. -LD_CXX="$LD"
  31491. -cat > conftest.$ac_ext <<EOF
  31492. -class Foo
  31493. -{
  31494. -public:
  31495. - Foo (void) { a = 0; }
  31496. -private:
  31497. - int a;
  31498. -};
  31499. -EOF
  31500. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31501. - (eval $ac_compile) 2>&5
  31502. - ac_status=$?
  31503. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31504. - (exit $ac_status); }; then
  31505. - # Parse the compiler output and extract the necessary
  31506. - # objects, libraries and library flags.
  31507. -
  31508. - # Sentinel used to keep track of whether or not we are before
  31509. - # the conftest object file.
  31510. - pre_test_object_deps_done=no
  31511. -
  31512. - # The `*' in the case matches for architectures that use `case' in
  31513. - # $output_verbose_cmd can trigger glob expansion during the loop
  31514. - # eval without this substitution.
  31515. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  31516. -
  31517. - for p in `eval $output_verbose_link_cmd`; do
  31518. - case $p in
  31519. -
  31520. - -L* | -R* | -l*)
  31521. - # Some compilers place space between "-{L,R}" and the path.
  31522. - # Remove the space.
  31523. - if test $p = "-L" \
  31524. - || test $p = "-R"; then
  31525. - prev=$p
  31526. - continue
  31527. - else
  31528. - prev=
  31529. - fi
  31530. - if test "$pre_test_object_deps_done" = no; then
  31531. - case $p in
  31532. - -L* | -R*)
  31533. - # Internal compiler library paths should come after those
  31534. - # provided the user. The postdeps already come after the
  31535. - # user supplied libs so there is no need to process them.
  31536. - if test -z "$compiler_lib_search_path_CXX"; then
  31537. - compiler_lib_search_path_CXX="${prev}${p}"
  31538. - else
  31539. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  31540. - fi
  31541. - ;;
  31542. - # The "-l" case would never come before the object being
  31543. - # linked, so don't bother handling this case.
  31544. - esac
  31545. - else
  31546. - if test -z "$postdeps_CXX"; then
  31547. - postdeps_CXX="${prev}${p}"
  31548. - else
  31549. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  31550. - fi
  31551. - fi
  31552. - ;;
  31553. - *.$objext)
  31554. - # This assumes that the test object file only shows up
  31555. - # once in the compiler output.
  31556. - if test "$p" = "conftest.$objext"; then
  31557. - pre_test_object_deps_done=yes
  31558. - continue
  31559. - fi
  31560. - if test "$pre_test_object_deps_done" = no; then
  31561. - if test -z "$predep_objects_CXX"; then
  31562. - predep_objects_CXX="$p"
  31563. - else
  31564. - predep_objects_CXX="$predep_objects_CXX $p"
  31565. - fi
  31566. - else
  31567. - if test -z "$postdep_objects_CXX"; then
  31568. - postdep_objects_CXX="$p"
  31569. - else
  31570. - postdep_objects_CXX="$postdep_objects_CXX $p"
  31571. - fi
  31572. - fi
  31573. - ;;
  31574. - *) ;; # Ignore the rest.
  31575. - esac
  31576. - done
  31577. - # Clean up.
  31578. - rm -f a.out a.exe
  31579. -else
  31580. - echo "libtool.m4: error: problem compiling CXX test program"
  31581. -fi
  31582. -$rm -f confest.$objext
  31583. -compiler_lib_search_dirs_CXX=
  31584. -if test -n "$compiler_lib_search_path_CXX"; then
  31585. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  31586. +
  31587. +
  31588. +
  31589. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  31590. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  31591. +
  31592. +if test "$GCC" = yes; then
  31593. + case $host_os in
  31594. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  31595. + *) lt_awk_arg="/^libraries:/" ;;
  31596. + esac
  31597. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31598. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  31599. + # if the path contains ";" then we assume it to be the separator
  31600. + # otherwise default to the standard path separator (i.e. ":") - it is
  31601. + # assumed that no part of a normal pathname contains ";" but that should
  31602. + # okay in the real world where ";" in dirpaths is itself problematic.
  31603. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  31604. + else
  31605. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31606. + fi
  31607. + # Ok, now we have the path, separated by spaces, we can step through it
  31608. + # and add multilib dir if necessary.
  31609. + lt_tmp_lt_search_path_spec=
  31610. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  31611. + for lt_sys_path in $lt_search_path_spec; do
  31612. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  31613. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  31614. + else
  31615. + test -d "$lt_sys_path" && \
  31616. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  31617. + fi
  31618. + done
  31619. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  31620. +BEGIN {RS=" "; FS="/|\n";} {
  31621. + lt_foo="";
  31622. + lt_count=0;
  31623. + for (lt_i = NF; lt_i > 0; lt_i--) {
  31624. + if ($lt_i != "" && $lt_i != ".") {
  31625. + if ($lt_i == "..") {
  31626. + lt_count++;
  31627. + } else {
  31628. + if (lt_count == 0) {
  31629. + lt_foo="/" $lt_i lt_foo;
  31630. + } else {
  31631. + lt_count--;
  31632. + }
  31633. + }
  31634. + }
  31635. + }
  31636. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  31637. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  31638. +}'`
  31639. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  31640. +else
  31641. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31642. fi
  31643. +library_names_spec=
  31644. +libname_spec='lib$name'
  31645. +soname_spec=
  31646. +shrext_cmds=".so"
  31647. +postinstall_cmds=
  31648. +postuninstall_cmds=
  31649. +finish_cmds=
  31650. +finish_eval=
  31651. +shlibpath_var=
  31652. +shlibpath_overrides_runpath=unknown
  31653. +version_type=none
  31654. +dynamic_linker="$host_os ld.so"
  31655. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31656. +need_lib_prefix=unknown
  31657. +hardcode_into_libs=no
  31658. +
  31659. +# when you set need_version to no, make sure it does not cause -set_version
  31660. +# flags to be left without arguments
  31661. +need_version=unknown
  31662. -# PORTME: override above test on systems where it is broken
  31663. case $host_os in
  31664. -interix[3-9]*)
  31665. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  31666. - # hack all around it, let's just trust "g++" to DTRT.
  31667. - predep_objects_CXX=
  31668. - postdep_objects_CXX=
  31669. - postdeps_CXX=
  31670. +aix3*)
  31671. + version_type=linux
  31672. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31673. + shlibpath_var=LIBPATH
  31674. +
  31675. + # AIX 3 has no versioning support, so we append a major version to the name.
  31676. + soname_spec='${libname}${release}${shared_ext}$major'
  31677. ;;
  31678. -linux*)
  31679. - case `$CC -V 2>&1 | sed 5q` in
  31680. - *Sun\ C*)
  31681. - # Sun C++ 5.9
  31682. - #
  31683. - # The more standards-conforming stlport4 library is
  31684. - # incompatible with the Cstd library. Avoid specifying
  31685. - # it if it's in CXXFLAGS. Ignore libCrun as
  31686. - # -library=stlport4 depends on it.
  31687. - case " $CXX $CXXFLAGS " in
  31688. - *" -library=stlport4 "*)
  31689. - solaris_use_stlport4=yes
  31690. +aix[4-9]*)
  31691. + version_type=linux
  31692. + need_lib_prefix=no
  31693. + need_version=no
  31694. + hardcode_into_libs=yes
  31695. + if test "$host_cpu" = ia64; then
  31696. + # AIX 5 supports IA64
  31697. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31698. + shlibpath_var=LD_LIBRARY_PATH
  31699. + else
  31700. + # With GCC up to 2.95.x, collect2 would create an import file
  31701. + # for dependence libraries. The import file would start with
  31702. + # the line `#! .'. This would cause the generated library to
  31703. + # depend on `.', always an invalid library. This was fixed in
  31704. + # development snapshots of GCC prior to 3.0.
  31705. + case $host_os in
  31706. + aix4 | aix4.[01] | aix4.[01].*)
  31707. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31708. + echo ' yes '
  31709. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  31710. + :
  31711. + else
  31712. + can_build_shared=no
  31713. + fi
  31714. ;;
  31715. esac
  31716. - if test "$solaris_use_stlport4" != yes; then
  31717. - postdeps_CXX='-library=Cstd -library=Crun'
  31718. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31719. + # soname into executable. Probably we can add versioning support to
  31720. + # collect2, so additional links can be useful in future.
  31721. + if test "$aix_use_runtimelinking" = yes; then
  31722. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31723. + # instead of lib<name>.a to let people know that these are not
  31724. + # typical AIX shared libraries.
  31725. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31726. + else
  31727. + # We preserve .a as extension for shared libraries through AIX4.2
  31728. + # and later when we are not doing run time linking.
  31729. + library_names_spec='${libname}${release}.a $libname.a'
  31730. + soname_spec='${libname}${release}${shared_ext}$major'
  31731. fi
  31732. - ;;
  31733. - esac
  31734. + shlibpath_var=LIBPATH
  31735. + fi
  31736. ;;
  31737. -solaris*)
  31738. - case $cc_basename in
  31739. - CC*)
  31740. - # The more standards-conforming stlport4 library is
  31741. - # incompatible with the Cstd library. Avoid specifying
  31742. - # it if it's in CXXFLAGS. Ignore libCrun as
  31743. - # -library=stlport4 depends on it.
  31744. - case " $CXX $CXXFLAGS " in
  31745. - *" -library=stlport4 "*)
  31746. - solaris_use_stlport4=yes
  31747. - ;;
  31748. - esac
  31749. -
  31750. - # Adding this requires a known-good setup of shared libraries for
  31751. - # Sun compiler versions before 5.6, else PIC objects from an old
  31752. - # archive will be linked into the output, leading to subtle bugs.
  31753. - if test "$solaris_use_stlport4" != yes; then
  31754. - postdeps_CXX='-library=Cstd -library=Crun'
  31755. - fi
  31756. +amigaos*)
  31757. + case $host_cpu in
  31758. + powerpc)
  31759. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  31760. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  31761. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31762. + ;;
  31763. + m68k)
  31764. + library_names_spec='$libname.ixlibrary $libname.a'
  31765. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31766. + 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'
  31767. ;;
  31768. esac
  31769. ;;
  31770. -esac
  31771. -case " $postdeps_CXX " in
  31772. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  31773. -esac
  31774. +beos*)
  31775. + library_names_spec='${libname}${shared_ext}'
  31776. + dynamic_linker="$host_os ld.so"
  31777. + shlibpath_var=LIBRARY_PATH
  31778. + ;;
  31779. -lt_prog_compiler_wl_CXX=
  31780. -lt_prog_compiler_pic_CXX=
  31781. -lt_prog_compiler_static_CXX=
  31782. +bsdi[45]*)
  31783. + version_type=linux
  31784. + need_version=no
  31785. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31786. + soname_spec='${libname}${release}${shared_ext}$major'
  31787. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31788. + shlibpath_var=LD_LIBRARY_PATH
  31789. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31790. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31791. + # the default ld.so.conf also contains /usr/contrib/lib and
  31792. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31793. + # libtool to hard-code these into programs
  31794. + ;;
  31795. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  31796. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  31797. +cygwin* | mingw* | pw32* | cegcc*)
  31798. + version_type=windows
  31799. + shrext_cmds=".dll"
  31800. + need_version=no
  31801. + need_lib_prefix=no
  31802. - # C++ specific cases for pic, static, wl, etc.
  31803. - if test "$GXX" = yes; then
  31804. - lt_prog_compiler_wl_CXX='-Wl,'
  31805. - lt_prog_compiler_static_CXX='-static'
  31806. + case $GCC,$host_os in
  31807. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  31808. + library_names_spec='$libname.dll.a'
  31809. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31810. + postinstall_cmds='base_file=`basename \${file}`~
  31811. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  31812. + dldir=$destdir/`dirname \$dlpath`~
  31813. + test -d \$dldir || mkdir -p \$dldir~
  31814. + $install_prog $dir/$dlname \$dldir/$dlname~
  31815. + chmod a+x \$dldir/$dlname~
  31816. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  31817. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  31818. + fi'
  31819. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31820. + dlpath=$dir/\$dldll~
  31821. + $RM \$dlpath'
  31822. + shlibpath_overrides_runpath=yes
  31823. case $host_os in
  31824. - aix*)
  31825. - # All AIX code is PIC.
  31826. - if test "$host_cpu" = ia64; then
  31827. - # AIX 5 now supports IA64 processor
  31828. - lt_prog_compiler_static_CXX='-Bstatic'
  31829. - fi
  31830. + cygwin*)
  31831. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31832. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31833. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31834. ;;
  31835. - amigaos*)
  31836. - # FIXME: we need at least 68020 code to build shared libraries, but
  31837. - # adding the `-m68020' flag to GCC prevents building anything better,
  31838. - # like `-m68040'.
  31839. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  31840. + mingw* | cegcc*)
  31841. + # MinGW DLLs use traditional 'lib' prefix
  31842. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31843. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31844. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  31845. + # It is most probably a Windows format PATH printed by
  31846. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31847. + # path with ; separators, and with drive letters. We can handle the
  31848. + # drive letters (cygwin fileutils understands them), so leave them,
  31849. + # especially as we might pass files found there to a mingw objdump,
  31850. + # which wouldn't understand a cygwinified path. Ahh.
  31851. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31852. + else
  31853. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31854. + fi
  31855. ;;
  31856. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  31857. - # PIC is the default for these OSes.
  31858. + pw32*)
  31859. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  31860. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31861. ;;
  31862. - mingw* | cygwin* | os2* | pw32*)
  31863. - # This hack is so that the source file can tell whether it is being
  31864. - # built for inclusion in a dll (and should export symbols for example).
  31865. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  31866. - # (--disable-auto-import) libraries
  31867. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  31868. - ;;
  31869. - darwin* | rhapsody*)
  31870. - # PIC is the default on this platform
  31871. - # Common symbols not allowed in MH_DYLIB files
  31872. - lt_prog_compiler_pic_CXX='-fno-common'
  31873. - ;;
  31874. - *djgpp*)
  31875. - # DJGPP does not support shared libraries at all
  31876. - lt_prog_compiler_pic_CXX=
  31877. - ;;
  31878. - interix[3-9]*)
  31879. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  31880. - # Instead, we relocate shared libraries at runtime.
  31881. - ;;
  31882. - sysv4*MP*)
  31883. - if test -d /usr/nec; then
  31884. - lt_prog_compiler_pic_CXX=-Kconform_pic
  31885. - fi
  31886. - ;;
  31887. - hpux*)
  31888. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  31889. - # not for PA HP-UX.
  31890. - case $host_cpu in
  31891. - hppa*64*|ia64*)
  31892. - ;;
  31893. - *)
  31894. - lt_prog_compiler_pic_CXX='-fPIC'
  31895. - ;;
  31896. - esac
  31897. - ;;
  31898. - *)
  31899. - lt_prog_compiler_pic_CXX='-fPIC'
  31900. - ;;
  31901. - esac
  31902. - else
  31903. - case $host_os in
  31904. - aix[4-9]*)
  31905. - # All AIX code is PIC.
  31906. - if test "$host_cpu" = ia64; then
  31907. - # AIX 5 now supports IA64 processor
  31908. - lt_prog_compiler_static_CXX='-Bstatic'
  31909. - else
  31910. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  31911. - fi
  31912. - ;;
  31913. - chorus*)
  31914. - case $cc_basename in
  31915. - cxch68*)
  31916. - # Green Hills C++ Compiler
  31917. - # _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"
  31918. - ;;
  31919. - esac
  31920. - ;;
  31921. - darwin*)
  31922. - # PIC is the default on this platform
  31923. - # Common symbols not allowed in MH_DYLIB files
  31924. - case $cc_basename in
  31925. - xlc*)
  31926. - lt_prog_compiler_pic_CXX='-qnocommon'
  31927. - lt_prog_compiler_wl_CXX='-Wl,'
  31928. - ;;
  31929. - esac
  31930. - ;;
  31931. - dgux*)
  31932. - case $cc_basename in
  31933. - ec++*)
  31934. - lt_prog_compiler_pic_CXX='-KPIC'
  31935. - ;;
  31936. - ghcx*)
  31937. - # Green Hills C++ Compiler
  31938. - lt_prog_compiler_pic_CXX='-pic'
  31939. - ;;
  31940. - *)
  31941. - ;;
  31942. - esac
  31943. - ;;
  31944. - freebsd* | dragonfly*)
  31945. - # FreeBSD uses GNU C++
  31946. - ;;
  31947. - hpux9* | hpux10* | hpux11*)
  31948. - case $cc_basename in
  31949. - CC*)
  31950. - lt_prog_compiler_wl_CXX='-Wl,'
  31951. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  31952. - if test "$host_cpu" != ia64; then
  31953. - lt_prog_compiler_pic_CXX='+Z'
  31954. - fi
  31955. - ;;
  31956. - aCC*)
  31957. - lt_prog_compiler_wl_CXX='-Wl,'
  31958. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  31959. - case $host_cpu in
  31960. - hppa*64*|ia64*)
  31961. - # +Z the default
  31962. - ;;
  31963. - *)
  31964. - lt_prog_compiler_pic_CXX='+Z'
  31965. - ;;
  31966. - esac
  31967. - ;;
  31968. - *)
  31969. - ;;
  31970. - esac
  31971. - ;;
  31972. - interix*)
  31973. - # This is c89, which is MS Visual C++ (no shared libs)
  31974. - # Anyone wants to do a port?
  31975. - ;;
  31976. - irix5* | irix6* | nonstopux*)
  31977. - case $cc_basename in
  31978. - CC*)
  31979. - lt_prog_compiler_wl_CXX='-Wl,'
  31980. - lt_prog_compiler_static_CXX='-non_shared'
  31981. - # CC pic flag -KPIC is the default.
  31982. - ;;
  31983. - *)
  31984. - ;;
  31985. - esac
  31986. - ;;
  31987. - linux* | k*bsd*-gnu)
  31988. - case $cc_basename in
  31989. - KCC*)
  31990. - # KAI C++ Compiler
  31991. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  31992. - lt_prog_compiler_pic_CXX='-fPIC'
  31993. - ;;
  31994. - icpc* | ecpc*)
  31995. - # Intel C++
  31996. - lt_prog_compiler_wl_CXX='-Wl,'
  31997. - lt_prog_compiler_pic_CXX='-KPIC'
  31998. - lt_prog_compiler_static_CXX='-static'
  31999. - ;;
  32000. - pgCC* | pgcpp*)
  32001. - # Portland Group C++ compiler.
  32002. - lt_prog_compiler_wl_CXX='-Wl,'
  32003. - lt_prog_compiler_pic_CXX='-fpic'
  32004. - lt_prog_compiler_static_CXX='-Bstatic'
  32005. - ;;
  32006. - cxx*)
  32007. - # Compaq C++
  32008. - # Make sure the PIC flag is empty. It appears that all Alpha
  32009. - # Linux and Compaq Tru64 Unix objects are PIC.
  32010. - lt_prog_compiler_pic_CXX=
  32011. - lt_prog_compiler_static_CXX='-non_shared'
  32012. - ;;
  32013. - *)
  32014. - case `$CC -V 2>&1 | sed 5q` in
  32015. - *Sun\ C*)
  32016. - # Sun C++ 5.9
  32017. - lt_prog_compiler_pic_CXX='-KPIC'
  32018. - lt_prog_compiler_static_CXX='-Bstatic'
  32019. - lt_prog_compiler_wl_CXX='-Qoption ld '
  32020. - ;;
  32021. - esac
  32022. - ;;
  32023. - esac
  32024. - ;;
  32025. - lynxos*)
  32026. - ;;
  32027. - m88k*)
  32028. - ;;
  32029. - mvs*)
  32030. - case $cc_basename in
  32031. - cxx*)
  32032. - lt_prog_compiler_pic_CXX='-W c,exportall'
  32033. - ;;
  32034. - *)
  32035. - ;;
  32036. - esac
  32037. - ;;
  32038. - netbsd*)
  32039. - ;;
  32040. - osf3* | osf4* | osf5*)
  32041. - case $cc_basename in
  32042. - KCC*)
  32043. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  32044. - ;;
  32045. - RCC*)
  32046. - # Rational C++ 2.4.1
  32047. - lt_prog_compiler_pic_CXX='-pic'
  32048. - ;;
  32049. - cxx*)
  32050. - # Digital/Compaq C++
  32051. - lt_prog_compiler_wl_CXX='-Wl,'
  32052. - # Make sure the PIC flag is empty. It appears that all Alpha
  32053. - # Linux and Compaq Tru64 Unix objects are PIC.
  32054. - lt_prog_compiler_pic_CXX=
  32055. - lt_prog_compiler_static_CXX='-non_shared'
  32056. - ;;
  32057. - *)
  32058. - ;;
  32059. - esac
  32060. - ;;
  32061. - psos*)
  32062. - ;;
  32063. - solaris*)
  32064. - case $cc_basename in
  32065. - CC*)
  32066. - # Sun C++ 4.2, 5.x and Centerline C++
  32067. - lt_prog_compiler_pic_CXX='-KPIC'
  32068. - lt_prog_compiler_static_CXX='-Bstatic'
  32069. - lt_prog_compiler_wl_CXX='-Qoption ld '
  32070. - ;;
  32071. - gcx*)
  32072. - # Green Hills C++ Compiler
  32073. - lt_prog_compiler_pic_CXX='-PIC'
  32074. - ;;
  32075. - *)
  32076. - ;;
  32077. - esac
  32078. - ;;
  32079. - sunos4*)
  32080. - case $cc_basename in
  32081. - CC*)
  32082. - # Sun C++ 4.x
  32083. - lt_prog_compiler_pic_CXX='-pic'
  32084. - lt_prog_compiler_static_CXX='-Bstatic'
  32085. - ;;
  32086. - lcc*)
  32087. - # Lucid
  32088. - lt_prog_compiler_pic_CXX='-pic'
  32089. - ;;
  32090. - *)
  32091. - ;;
  32092. - esac
  32093. - ;;
  32094. - tandem*)
  32095. - case $cc_basename in
  32096. - NCC*)
  32097. - # NonStop-UX NCC 3.20
  32098. - lt_prog_compiler_pic_CXX='-KPIC'
  32099. - ;;
  32100. - *)
  32101. - ;;
  32102. - esac
  32103. - ;;
  32104. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  32105. - case $cc_basename in
  32106. - CC*)
  32107. - lt_prog_compiler_wl_CXX='-Wl,'
  32108. - lt_prog_compiler_pic_CXX='-KPIC'
  32109. - lt_prog_compiler_static_CXX='-Bstatic'
  32110. - ;;
  32111. - esac
  32112. - ;;
  32113. - vxworks*)
  32114. - ;;
  32115. - *)
  32116. - lt_prog_compiler_can_build_shared_CXX=no
  32117. - ;;
  32118. esac
  32119. - fi
  32120. + ;;
  32121. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  32122. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  32123. + *)
  32124. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32125. + ;;
  32126. + esac
  32127. + dynamic_linker='Win32 ld.exe'
  32128. + # FIXME: first we should search . and the directory the executable is in
  32129. + shlibpath_var=PATH
  32130. + ;;
  32131. -#
  32132. -# Check to make sure the PIC flag actually works.
  32133. -#
  32134. -if test -n "$lt_prog_compiler_pic_CXX"; then
  32135. +darwin* | rhapsody*)
  32136. + dynamic_linker="$host_os dyld"
  32137. + version_type=darwin
  32138. + need_lib_prefix=no
  32139. + need_version=no
  32140. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32141. + soname_spec='${libname}${release}${major}$shared_ext'
  32142. + shlibpath_overrides_runpath=yes
  32143. + shlibpath_var=DYLD_LIBRARY_PATH
  32144. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32145. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  32146. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  32147. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  32148. - $as_echo_n "(cached) " >&6
  32149. -else
  32150. - lt_cv_prog_compiler_pic_works_CXX=no
  32151. - ac_outfile=conftest.$ac_objext
  32152. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32153. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  32154. - # Insert the option either (1) after the last *FLAGS variable, or
  32155. - # (2) before a word containing "conftest.", or (3) at the end.
  32156. - # Note that $ac_compile itself does not contain backslashes and begins
  32157. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32158. - # The option is referenced via a variable to avoid confusing sed.
  32159. - lt_compile=`echo "$ac_compile" | $SED \
  32160. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32161. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32162. - -e 's:$: $lt_compiler_flag:'`
  32163. - (eval echo "\"\$as_me:12952: $lt_compile\"" >&5)
  32164. - (eval "$lt_compile" 2>conftest.err)
  32165. - ac_status=$?
  32166. - cat conftest.err >&5
  32167. - echo "$as_me:12956: \$? = $ac_status" >&5
  32168. - if (exit $ac_status) && test -s "$ac_outfile"; then
  32169. - # The compiler can only warn and ignore the option if not recognized
  32170. - # So say no if there are warnings other than the usual output.
  32171. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32172. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32173. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32174. - lt_cv_prog_compiler_pic_works_CXX=yes
  32175. - fi
  32176. - fi
  32177. - $rm conftest*
  32178. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  32179. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32180. + ;;
  32181. -fi
  32182. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  32183. -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  32184. +dgux*)
  32185. + version_type=linux
  32186. + need_lib_prefix=no
  32187. + need_version=no
  32188. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32189. + soname_spec='${libname}${release}${shared_ext}$major'
  32190. + shlibpath_var=LD_LIBRARY_PATH
  32191. + ;;
  32192. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  32193. - case $lt_prog_compiler_pic_CXX in
  32194. - "" | " "*) ;;
  32195. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  32196. - esac
  32197. -else
  32198. - lt_prog_compiler_pic_CXX=
  32199. - lt_prog_compiler_can_build_shared_CXX=no
  32200. -fi
  32201. +freebsd1*)
  32202. + dynamic_linker=no
  32203. + ;;
  32204. -fi
  32205. -case $host_os in
  32206. - # For platforms which do not support PIC, -DPIC is meaningless:
  32207. - *djgpp*)
  32208. - lt_prog_compiler_pic_CXX=
  32209. +freebsd* | dragonfly*)
  32210. + # DragonFly does not have aout. When/if they implement a new
  32211. + # versioning mechanism, adjust this.
  32212. + if test -x /usr/bin/objformat; then
  32213. + objformat=`/usr/bin/objformat`
  32214. + else
  32215. + case $host_os in
  32216. + freebsd[123]*) objformat=aout ;;
  32217. + *) objformat=elf ;;
  32218. + esac
  32219. + fi
  32220. + version_type=freebsd-$objformat
  32221. + case $version_type in
  32222. + freebsd-elf*)
  32223. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32224. + need_version=no
  32225. + need_lib_prefix=no
  32226. + ;;
  32227. + freebsd-*)
  32228. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32229. + need_version=yes
  32230. + ;;
  32231. + esac
  32232. + shlibpath_var=LD_LIBRARY_PATH
  32233. + case $host_os in
  32234. + freebsd2*)
  32235. + shlibpath_overrides_runpath=yes
  32236. ;;
  32237. - *)
  32238. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  32239. + freebsd3.[01]* | freebsdelf3.[01]*)
  32240. + shlibpath_overrides_runpath=yes
  32241. + hardcode_into_libs=yes
  32242. ;;
  32243. -esac
  32244. -
  32245. -#
  32246. -# Check to make sure the static flag actually works.
  32247. -#
  32248. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  32249. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  32250. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  32251. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  32252. - $as_echo_n "(cached) " >&6
  32253. -else
  32254. - lt_cv_prog_compiler_static_works_CXX=no
  32255. - save_LDFLAGS="$LDFLAGS"
  32256. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  32257. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  32258. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  32259. - # The linker can only warn and ignore the option if not recognized
  32260. - # So say no if there are warnings
  32261. - if test -s conftest.err; then
  32262. - # Append any errors to the config.log.
  32263. - cat conftest.err 1>&5
  32264. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  32265. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32266. - if diff conftest.exp conftest.er2 >/dev/null; then
  32267. - lt_cv_prog_compiler_static_works_CXX=yes
  32268. - fi
  32269. - else
  32270. - lt_cv_prog_compiler_static_works_CXX=yes
  32271. - fi
  32272. - fi
  32273. - $rm -r conftest*
  32274. - LDFLAGS="$save_LDFLAGS"
  32275. -
  32276. -fi
  32277. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  32278. -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  32279. -
  32280. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  32281. - :
  32282. -else
  32283. - lt_prog_compiler_static_CXX=
  32284. -fi
  32285. -
  32286. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32287. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32288. + shlibpath_overrides_runpath=no
  32289. + hardcode_into_libs=yes
  32290. + ;;
  32291. + *) # from 4.6 on, and DragonFly
  32292. + shlibpath_overrides_runpath=yes
  32293. + hardcode_into_libs=yes
  32294. + ;;
  32295. + esac
  32296. + ;;
  32297. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  32298. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  32299. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  32300. - $as_echo_n "(cached) " >&6
  32301. -else
  32302. - lt_cv_prog_compiler_c_o_CXX=no
  32303. - $rm -r conftest 2>/dev/null
  32304. - mkdir conftest
  32305. - cd conftest
  32306. - mkdir out
  32307. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32308. -
  32309. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  32310. - # Insert the option either (1) after the last *FLAGS variable, or
  32311. - # (2) before a word containing "conftest.", or (3) at the end.
  32312. - # Note that $ac_compile itself does not contain backslashes and begins
  32313. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32314. - lt_compile=`echo "$ac_compile" | $SED \
  32315. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32316. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32317. - -e 's:$: $lt_compiler_flag:'`
  32318. - (eval echo "\"\$as_me:13056: $lt_compile\"" >&5)
  32319. - (eval "$lt_compile" 2>out/conftest.err)
  32320. - ac_status=$?
  32321. - cat out/conftest.err >&5
  32322. - echo "$as_me:13060: \$? = $ac_status" >&5
  32323. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  32324. - then
  32325. - # The compiler can only warn and ignore the option if not recognized
  32326. - # So say no if there are warnings
  32327. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  32328. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  32329. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  32330. - lt_cv_prog_compiler_c_o_CXX=yes
  32331. - fi
  32332. - fi
  32333. - chmod u+w . 2>&5
  32334. - $rm conftest*
  32335. - # SGI C++ compiler will create directory out/ii_files/ for
  32336. - # template instantiation
  32337. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  32338. - $rm out/* && rmdir out
  32339. - cd ..
  32340. - rmdir conftest
  32341. - $rm conftest*
  32342. -
  32343. -fi
  32344. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  32345. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  32346. -
  32347. -
  32348. -hard_links="nottested"
  32349. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  32350. - # do not overwrite the value of need_locks provided by the user
  32351. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  32352. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  32353. - hard_links=yes
  32354. - $rm conftest*
  32355. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32356. - touch conftest.a
  32357. - ln conftest.a conftest.b 2>&5 || hard_links=no
  32358. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32359. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  32360. -$as_echo "$hard_links" >&6; }
  32361. - if test "$hard_links" = no; then
  32362. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  32363. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  32364. - need_locks=warn
  32365. - fi
  32366. -else
  32367. - need_locks=no
  32368. -fi
  32369. -
  32370. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  32371. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  32372. +gnu*)
  32373. + version_type=linux
  32374. + need_lib_prefix=no
  32375. + need_version=no
  32376. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32377. + soname_spec='${libname}${release}${shared_ext}$major'
  32378. + shlibpath_var=LD_LIBRARY_PATH
  32379. + hardcode_into_libs=yes
  32380. + ;;
  32381. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32382. - case $host_os in
  32383. - aix[4-9]*)
  32384. - # If we're using GNU nm, then we don't want the "-C" option.
  32385. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32386. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32387. - 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'
  32388. +hpux9* | hpux10* | hpux11*)
  32389. + # Give a soname corresponding to the major version so that dld.sl refuses to
  32390. + # link against other versions.
  32391. + version_type=sunos
  32392. + need_lib_prefix=no
  32393. + need_version=no
  32394. + case $host_cpu in
  32395. + ia64*)
  32396. + shrext_cmds='.so'
  32397. + hardcode_into_libs=yes
  32398. + dynamic_linker="$host_os dld.so"
  32399. + shlibpath_var=LD_LIBRARY_PATH
  32400. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32401. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32402. + soname_spec='${libname}${release}${shared_ext}$major'
  32403. + if test "X$HPUX_IA64_MODE" = X32; then
  32404. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32405. else
  32406. - 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'
  32407. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32408. fi
  32409. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32410. + ;;
  32411. + hppa*64*)
  32412. + shrext_cmds='.sl'
  32413. + hardcode_into_libs=yes
  32414. + dynamic_linker="$host_os dld.sl"
  32415. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32416. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32417. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32418. + soname_spec='${libname}${release}${shared_ext}$major'
  32419. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32420. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32421. ;;
  32422. - pw32*)
  32423. - export_symbols_cmds_CXX="$ltdll_cmds"
  32424. - ;;
  32425. - cygwin* | mingw*)
  32426. - 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'
  32427. - ;;
  32428. *)
  32429. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32430. - ;;
  32431. + shrext_cmds='.sl'
  32432. + dynamic_linker="$host_os dld.sl"
  32433. + shlibpath_var=SHLIB_PATH
  32434. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32435. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32436. + soname_spec='${libname}${release}${shared_ext}$major'
  32437. + ;;
  32438. esac
  32439. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  32440. -
  32441. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  32442. -$as_echo "$ld_shlibs_CXX" >&6; }
  32443. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  32444. -
  32445. -#
  32446. -# Do we need to explicitly link libc?
  32447. -#
  32448. -case "x$archive_cmds_need_lc_CXX" in
  32449. -x|xyes)
  32450. - # Assume -lc should be added
  32451. - archive_cmds_need_lc_CXX=yes
  32452. -
  32453. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32454. - case $archive_cmds_CXX in
  32455. - *'~'*)
  32456. - # FIXME: we may have to deal with multi-command sequences.
  32457. - ;;
  32458. - '$CC '*)
  32459. - # Test whether the compiler implicitly links with -lc since on some
  32460. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32461. - # to ld, don't add -lc before -lgcc.
  32462. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32463. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  32464. - $rm conftest*
  32465. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32466. -
  32467. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32468. - (eval $ac_compile) 2>&5
  32469. - ac_status=$?
  32470. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32471. - (exit $ac_status); } 2>conftest.err; then
  32472. - soname=conftest
  32473. - lib=conftest
  32474. - libobjs=conftest.$ac_objext
  32475. - deplibs=
  32476. - wl=$lt_prog_compiler_wl_CXX
  32477. - pic_flag=$lt_prog_compiler_pic_CXX
  32478. - compiler_flags=-v
  32479. - linker_flags=-v
  32480. - verstring=
  32481. - output_objdir=.
  32482. - libname=conftest
  32483. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  32484. - allow_undefined_flag_CXX=
  32485. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32486. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32487. - ac_status=$?
  32488. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32489. - (exit $ac_status); }
  32490. - then
  32491. - archive_cmds_need_lc_CXX=no
  32492. - else
  32493. - archive_cmds_need_lc_CXX=yes
  32494. - fi
  32495. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  32496. - else
  32497. - cat conftest.err 1>&5
  32498. - fi
  32499. - $rm conftest*
  32500. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  32501. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  32502. - ;;
  32503. - esac
  32504. - fi
  32505. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32506. + postinstall_cmds='chmod 555 $lib'
  32507. ;;
  32508. -esac
  32509. -
  32510. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32511. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  32512. -library_names_spec=
  32513. -libname_spec='lib$name'
  32514. -soname_spec=
  32515. -shrext_cmds=".so"
  32516. -postinstall_cmds=
  32517. -postuninstall_cmds=
  32518. -finish_cmds=
  32519. -finish_eval=
  32520. -shlibpath_var=
  32521. -shlibpath_overrides_runpath=unknown
  32522. -version_type=none
  32523. -dynamic_linker="$host_os ld.so"
  32524. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32525. -
  32526. -need_lib_prefix=unknown
  32527. -hardcode_into_libs=no
  32528. -
  32529. -# when you set need_version to no, make sure it does not cause -set_version
  32530. -# flags to be left without arguments
  32531. -need_version=unknown
  32532. -case $host_os in
  32533. -aix3*)
  32534. +interix[3-9]*)
  32535. version_type=linux
  32536. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32537. - shlibpath_var=LIBPATH
  32538. -
  32539. - # AIX 3 has no versioning support, so we append a major version to the name.
  32540. + need_lib_prefix=no
  32541. + need_version=no
  32542. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32543. soname_spec='${libname}${release}${shared_ext}$major'
  32544. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32545. + shlibpath_var=LD_LIBRARY_PATH
  32546. + shlibpath_overrides_runpath=no
  32547. + hardcode_into_libs=yes
  32548. ;;
  32549. -aix[4-9]*)
  32550. - version_type=linux
  32551. +irix5* | irix6* | nonstopux*)
  32552. + case $host_os in
  32553. + nonstopux*) version_type=nonstopux ;;
  32554. + *)
  32555. + if test "$lt_cv_prog_gnu_ld" = yes; then
  32556. + version_type=linux
  32557. + else
  32558. + version_type=irix
  32559. + fi ;;
  32560. + esac
  32561. need_lib_prefix=no
  32562. need_version=no
  32563. - hardcode_into_libs=yes
  32564. - if test "$host_cpu" = ia64; then
  32565. - # AIX 5 supports IA64
  32566. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32567. - shlibpath_var=LD_LIBRARY_PATH
  32568. - else
  32569. - # With GCC up to 2.95.x, collect2 would create an import file
  32570. - # for dependence libraries. The import file would start with
  32571. - # the line `#! .'. This would cause the generated library to
  32572. - # depend on `.', always an invalid library. This was fixed in
  32573. - # development snapshots of GCC prior to 3.0.
  32574. - case $host_os in
  32575. - aix4 | aix4.[01] | aix4.[01].*)
  32576. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32577. - echo ' yes '
  32578. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32579. - :
  32580. - else
  32581. - can_build_shared=no
  32582. - fi
  32583. - ;;
  32584. + soname_spec='${libname}${release}${shared_ext}$major'
  32585. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32586. + case $host_os in
  32587. + irix5* | nonstopux*)
  32588. + libsuff= shlibsuff=
  32589. + ;;
  32590. + *)
  32591. + case $LD in # libtool.m4 will add one of these switches to LD
  32592. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32593. + libsuff= shlibsuff= libmagic=32-bit;;
  32594. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32595. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  32596. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32597. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32598. + *) libsuff= shlibsuff= libmagic=never-match;;
  32599. esac
  32600. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32601. - # soname into executable. Probably we can add versioning support to
  32602. - # collect2, so additional links can be useful in future.
  32603. - if test "$aix_use_runtimelinking" = yes; then
  32604. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32605. - # instead of lib<name>.a to let people know that these are not
  32606. - # typical AIX shared libraries.
  32607. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32608. - else
  32609. - # We preserve .a as extension for shared libraries through AIX4.2
  32610. - # and later when we are not doing run time linking.
  32611. - library_names_spec='${libname}${release}.a $libname.a'
  32612. - soname_spec='${libname}${release}${shared_ext}$major'
  32613. - fi
  32614. - shlibpath_var=LIBPATH
  32615. - fi
  32616. + ;;
  32617. + esac
  32618. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32619. + shlibpath_overrides_runpath=no
  32620. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32621. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32622. + hardcode_into_libs=yes
  32623. ;;
  32624. -amigaos*)
  32625. - library_names_spec='$libname.ixlibrary $libname.a'
  32626. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32627. - 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'
  32628. +# No shared lib support for Linux oldld, aout, or coff.
  32629. +linux*oldld* | linux*aout* | linux*coff*)
  32630. + dynamic_linker=no
  32631. ;;
  32632. -beos*)
  32633. - library_names_spec='${libname}${shared_ext}'
  32634. - dynamic_linker="$host_os ld.so"
  32635. - shlibpath_var=LIBRARY_PATH
  32636. - ;;
  32637. -
  32638. -bsdi[45]*)
  32639. +# This must be Linux ELF.
  32640. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  32641. version_type=linux
  32642. + need_lib_prefix=no
  32643. need_version=no
  32644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32645. soname_spec='${libname}${release}${shared_ext}$major'
  32646. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32647. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32648. shlibpath_var=LD_LIBRARY_PATH
  32649. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32650. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32651. - # the default ld.so.conf also contains /usr/contrib/lib and
  32652. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32653. - # libtool to hard-code these into programs
  32654. - ;;
  32655. -
  32656. -cygwin* | mingw* | pw32*)
  32657. - version_type=windows
  32658. - shrext_cmds=".dll"
  32659. - need_version=no
  32660. - need_lib_prefix=no
  32661. + shlibpath_overrides_runpath=no
  32662. + # Some binutils ld are patched to set DT_RUNPATH
  32663. + save_LDFLAGS=$LDFLAGS
  32664. + save_libdir=$libdir
  32665. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  32666. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  32667. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32668. +/* end confdefs.h. */
  32669. - case $GCC,$host_os in
  32670. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32671. - library_names_spec='$libname.dll.a'
  32672. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32673. - postinstall_cmds='base_file=`basename \${file}`~
  32674. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32675. - dldir=$destdir/`dirname \$dlpath`~
  32676. - test -d \$dldir || mkdir -p \$dldir~
  32677. - $install_prog $dir/$dlname \$dldir/$dlname~
  32678. - chmod a+x \$dldir/$dlname'
  32679. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32680. - dlpath=$dir/\$dldll~
  32681. - $rm \$dlpath'
  32682. - shlibpath_overrides_runpath=yes
  32683. +int
  32684. +main ()
  32685. +{
  32686. - case $host_os in
  32687. - cygwin*)
  32688. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32689. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32690. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32691. - ;;
  32692. - mingw*)
  32693. - # MinGW DLLs use traditional 'lib' prefix
  32694. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32695. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32696. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32697. - # It is most probably a Windows format PATH printed by
  32698. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32699. - # path with ; separators, and with drive letters. We can handle the
  32700. - # drive letters (cygwin fileutils understands them), so leave them,
  32701. - # especially as we might pass files found there to a mingw objdump,
  32702. - # which wouldn't understand a cygwinified path. Ahh.
  32703. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32704. - else
  32705. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32706. - fi
  32707. - ;;
  32708. - pw32*)
  32709. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32710. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32711. - ;;
  32712. - esac
  32713. - ;;
  32714. + ;
  32715. + return 0;
  32716. +}
  32717. +_ACEOF
  32718. +if ac_fn_c_try_link "$LINENO"; then :
  32719. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  32720. + shlibpath_overrides_runpath=yes
  32721. +fi
  32722. +fi
  32723. +rm -f core conftest.err conftest.$ac_objext \
  32724. + conftest$ac_exeext conftest.$ac_ext
  32725. + LDFLAGS=$save_LDFLAGS
  32726. + libdir=$save_libdir
  32727. - *)
  32728. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32729. - ;;
  32730. - esac
  32731. - dynamic_linker='Win32 ld.exe'
  32732. - # FIXME: first we should search . and the directory the executable is in
  32733. - shlibpath_var=PATH
  32734. - ;;
  32735. + # This implies no fast_install, which is unacceptable.
  32736. + # Some rework will be needed to allow for fast_install
  32737. + # before this can be enabled.
  32738. + hardcode_into_libs=yes
  32739. -darwin* | rhapsody*)
  32740. - dynamic_linker="$host_os dyld"
  32741. - version_type=darwin
  32742. - need_lib_prefix=no
  32743. - need_version=no
  32744. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32745. - soname_spec='${libname}${release}${major}$shared_ext'
  32746. - shlibpath_overrides_runpath=yes
  32747. - shlibpath_var=DYLD_LIBRARY_PATH
  32748. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32749. + # Append ld.so.conf contents to the search path
  32750. + if test -f /etc/ld.so.conf; then
  32751. + 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' ' '`
  32752. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32753. + fi
  32754. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32755. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  32756. + # powerpc, because MkLinux only supported shared libraries with the
  32757. + # GNU dynamic linker. Since this was broken with cross compilers,
  32758. + # most powerpc-linux boxes support dynamic linking these days and
  32759. + # people can always --disable-shared, the test was removed, and we
  32760. + # assume the GNU/Linux dynamic linker is in use.
  32761. + dynamic_linker='GNU/Linux ld.so'
  32762. ;;
  32763. -dgux*)
  32764. +netbsdelf*-gnu)
  32765. version_type=linux
  32766. need_lib_prefix=no
  32767. need_version=no
  32768. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32769. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32770. soname_spec='${libname}${release}${shared_ext}$major'
  32771. shlibpath_var=LD_LIBRARY_PATH
  32772. + shlibpath_overrides_runpath=no
  32773. + hardcode_into_libs=yes
  32774. + dynamic_linker='NetBSD ld.elf_so'
  32775. ;;
  32776. -freebsd1*)
  32777. - dynamic_linker=no
  32778. - ;;
  32779. -
  32780. -freebsd* | dragonfly*)
  32781. - # DragonFly does not have aout. When/if they implement a new
  32782. - # versioning mechanism, adjust this.
  32783. - if test -x /usr/bin/objformat; then
  32784. - objformat=`/usr/bin/objformat`
  32785. +netbsd*)
  32786. + version_type=sunos
  32787. + need_lib_prefix=no
  32788. + need_version=no
  32789. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  32790. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32791. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32792. + dynamic_linker='NetBSD (a.out) ld.so'
  32793. else
  32794. - case $host_os in
  32795. - freebsd[123]*) objformat=aout ;;
  32796. - *) objformat=elf ;;
  32797. - esac
  32798. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32799. + soname_spec='${libname}${release}${shared_ext}$major'
  32800. + dynamic_linker='NetBSD ld.elf_so'
  32801. fi
  32802. - version_type=freebsd-$objformat
  32803. - case $version_type in
  32804. - freebsd-elf*)
  32805. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32806. - need_version=no
  32807. - need_lib_prefix=no
  32808. - ;;
  32809. - freebsd-*)
  32810. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32811. - need_version=yes
  32812. - ;;
  32813. - esac
  32814. shlibpath_var=LD_LIBRARY_PATH
  32815. - case $host_os in
  32816. - freebsd2*)
  32817. - shlibpath_overrides_runpath=yes
  32818. - ;;
  32819. - freebsd3.[01]* | freebsdelf3.[01]*)
  32820. - shlibpath_overrides_runpath=yes
  32821. - hardcode_into_libs=yes
  32822. - ;;
  32823. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32824. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32825. - shlibpath_overrides_runpath=no
  32826. - hardcode_into_libs=yes
  32827. - ;;
  32828. - *) # from 4.6 on, and DragonFly
  32829. - shlibpath_overrides_runpath=yes
  32830. - hardcode_into_libs=yes
  32831. - ;;
  32832. - esac
  32833. + shlibpath_overrides_runpath=yes
  32834. + hardcode_into_libs=yes
  32835. ;;
  32836. -gnu*)
  32837. +newsos6)
  32838. version_type=linux
  32839. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32840. + shlibpath_var=LD_LIBRARY_PATH
  32841. + shlibpath_overrides_runpath=yes
  32842. + ;;
  32843. +
  32844. +*nto* | *qnx*)
  32845. + version_type=qnx
  32846. need_lib_prefix=no
  32847. need_version=no
  32848. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32849. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32850. soname_spec='${libname}${release}${shared_ext}$major'
  32851. shlibpath_var=LD_LIBRARY_PATH
  32852. + shlibpath_overrides_runpath=no
  32853. hardcode_into_libs=yes
  32854. + dynamic_linker='ldqnx.so'
  32855. ;;
  32856. -hpux9* | hpux10* | hpux11*)
  32857. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32858. - # link against other versions.
  32859. +openbsd*)
  32860. version_type=sunos
  32861. + sys_lib_dlsearch_path_spec="/usr/lib"
  32862. need_lib_prefix=no
  32863. - need_version=no
  32864. - case $host_cpu in
  32865. - ia64*)
  32866. - shrext_cmds='.so'
  32867. - hardcode_into_libs=yes
  32868. - dynamic_linker="$host_os dld.so"
  32869. - shlibpath_var=LD_LIBRARY_PATH
  32870. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32871. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32872. - soname_spec='${libname}${release}${shared_ext}$major'
  32873. - if test "X$HPUX_IA64_MODE" = X32; then
  32874. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32875. - else
  32876. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32877. - fi
  32878. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32879. - ;;
  32880. - hppa*64*)
  32881. - shrext_cmds='.sl'
  32882. - hardcode_into_libs=yes
  32883. - dynamic_linker="$host_os dld.sl"
  32884. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32885. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32886. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32887. - soname_spec='${libname}${release}${shared_ext}$major'
  32888. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32889. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32890. - ;;
  32891. - *)
  32892. - shrext_cmds='.sl'
  32893. - dynamic_linker="$host_os dld.sl"
  32894. - shlibpath_var=SHLIB_PATH
  32895. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32896. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32897. - soname_spec='${libname}${release}${shared_ext}$major'
  32898. - ;;
  32899. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  32900. + case $host_os in
  32901. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32902. + *) need_version=no ;;
  32903. esac
  32904. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32905. - postinstall_cmds='chmod 555 $lib'
  32906. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32907. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32908. + shlibpath_var=LD_LIBRARY_PATH
  32909. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32910. + case $host_os in
  32911. + openbsd2.[89] | openbsd2.[89].*)
  32912. + shlibpath_overrides_runpath=no
  32913. + ;;
  32914. + *)
  32915. + shlibpath_overrides_runpath=yes
  32916. + ;;
  32917. + esac
  32918. + else
  32919. + shlibpath_overrides_runpath=yes
  32920. + fi
  32921. ;;
  32922. -interix[3-9]*)
  32923. - version_type=linux
  32924. +os2*)
  32925. + libname_spec='$name'
  32926. + shrext_cmds=".dll"
  32927. + need_lib_prefix=no
  32928. + library_names_spec='$libname${shared_ext} $libname.a'
  32929. + dynamic_linker='OS/2 ld.exe'
  32930. + shlibpath_var=LIBPATH
  32931. + ;;
  32932. +
  32933. +osf3* | osf4* | osf5*)
  32934. + version_type=osf
  32935. need_lib_prefix=no
  32936. need_version=no
  32937. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32938. soname_spec='${libname}${release}${shared_ext}$major'
  32939. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32940. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32941. shlibpath_var=LD_LIBRARY_PATH
  32942. - shlibpath_overrides_runpath=no
  32943. - hardcode_into_libs=yes
  32944. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  32945. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32946. ;;
  32947. -irix5* | irix6* | nonstopux*)
  32948. - case $host_os in
  32949. - nonstopux*) version_type=nonstopux ;;
  32950. - *)
  32951. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32952. - version_type=linux
  32953. - else
  32954. - version_type=irix
  32955. - fi ;;
  32956. - esac
  32957. +rdos*)
  32958. + dynamic_linker=no
  32959. + ;;
  32960. +
  32961. +solaris*)
  32962. + version_type=linux
  32963. need_lib_prefix=no
  32964. need_version=no
  32965. - soname_spec='${libname}${release}${shared_ext}$major'
  32966. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32967. - case $host_os in
  32968. - irix5* | nonstopux*)
  32969. - libsuff= shlibsuff=
  32970. - ;;
  32971. - *)
  32972. - case $LD in # libtool.m4 will add one of these switches to LD
  32973. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32974. - libsuff= shlibsuff= libmagic=32-bit;;
  32975. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32976. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32977. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32978. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32979. - *) libsuff= shlibsuff= libmagic=never-match;;
  32980. - esac
  32981. - ;;
  32982. - esac
  32983. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32984. - shlibpath_overrides_runpath=no
  32985. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32986. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32987. - hardcode_into_libs=yes
  32988. - ;;
  32989. -
  32990. -# No shared lib support for Linux oldld, aout, or coff.
  32991. -linux*oldld* | linux*aout* | linux*coff*)
  32992. - dynamic_linker=no
  32993. - ;;
  32994. -
  32995. -# This must be Linux ELF.
  32996. -linux* | k*bsd*-gnu)
  32997. - version_type=linux
  32998. - need_lib_prefix=no
  32999. - need_version=no
  33000. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33001. - soname_spec='${libname}${release}${shared_ext}$major'
  33002. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33003. - shlibpath_var=LD_LIBRARY_PATH
  33004. - shlibpath_overrides_runpath=no
  33005. - # This implies no fast_install, which is unacceptable.
  33006. - # Some rework will be needed to allow for fast_install
  33007. - # before this can be enabled.
  33008. - hardcode_into_libs=yes
  33009. -
  33010. - # Append ld.so.conf contents to the search path
  33011. - if test -f /etc/ld.so.conf; then
  33012. - 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' ' '`
  33013. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33014. - fi
  33015. -
  33016. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33017. - # powerpc, because MkLinux only supported shared libraries with the
  33018. - # GNU dynamic linker. Since this was broken with cross compilers,
  33019. - # most powerpc-linux boxes support dynamic linking these days and
  33020. - # people can always --disable-shared, the test was removed, and we
  33021. - # assume the GNU/Linux dynamic linker is in use.
  33022. - dynamic_linker='GNU/Linux ld.so'
  33023. - ;;
  33024. -
  33025. -netbsd*)
  33026. - version_type=sunos
  33027. - need_lib_prefix=no
  33028. - need_version=no
  33029. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33030. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33031. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33032. - dynamic_linker='NetBSD (a.out) ld.so'
  33033. - else
  33034. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33035. - soname_spec='${libname}${release}${shared_ext}$major'
  33036. - dynamic_linker='NetBSD ld.elf_so'
  33037. - fi
  33038. - shlibpath_var=LD_LIBRARY_PATH
  33039. - shlibpath_overrides_runpath=yes
  33040. - hardcode_into_libs=yes
  33041. - ;;
  33042. -
  33043. -newsos6)
  33044. - version_type=linux
  33045. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33046. - shlibpath_var=LD_LIBRARY_PATH
  33047. - shlibpath_overrides_runpath=yes
  33048. - ;;
  33049. -
  33050. -nto-qnx*)
  33051. - version_type=linux
  33052. - need_lib_prefix=no
  33053. - need_version=no
  33054. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33055. - soname_spec='${libname}${release}${shared_ext}$major'
  33056. - shlibpath_var=LD_LIBRARY_PATH
  33057. - shlibpath_overrides_runpath=yes
  33058. - ;;
  33059. -
  33060. -openbsd*)
  33061. - version_type=sunos
  33062. - sys_lib_dlsearch_path_spec="/usr/lib"
  33063. - need_lib_prefix=no
  33064. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33065. - case $host_os in
  33066. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33067. - *) need_version=no ;;
  33068. - esac
  33069. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33070. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33071. - shlibpath_var=LD_LIBRARY_PATH
  33072. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33073. - case $host_os in
  33074. - openbsd2.[89] | openbsd2.[89].*)
  33075. - shlibpath_overrides_runpath=no
  33076. - ;;
  33077. - *)
  33078. - shlibpath_overrides_runpath=yes
  33079. - ;;
  33080. - esac
  33081. - else
  33082. - shlibpath_overrides_runpath=yes
  33083. - fi
  33084. - ;;
  33085. -
  33086. -os2*)
  33087. - libname_spec='$name'
  33088. - shrext_cmds=".dll"
  33089. - need_lib_prefix=no
  33090. - library_names_spec='$libname${shared_ext} $libname.a'
  33091. - dynamic_linker='OS/2 ld.exe'
  33092. - shlibpath_var=LIBPATH
  33093. - ;;
  33094. -
  33095. -osf3* | osf4* | osf5*)
  33096. - version_type=osf
  33097. - need_lib_prefix=no
  33098. - need_version=no
  33099. - soname_spec='${libname}${release}${shared_ext}$major'
  33100. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33101. - shlibpath_var=LD_LIBRARY_PATH
  33102. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33103. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33104. - ;;
  33105. -
  33106. -rdos*)
  33107. - dynamic_linker=no
  33108. - ;;
  33109. -
  33110. -solaris*)
  33111. - version_type=linux
  33112. - need_lib_prefix=no
  33113. - need_version=no
  33114. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33115. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33116. soname_spec='${libname}${release}${shared_ext}$major'
  33117. shlibpath_var=LD_LIBRARY_PATH
  33118. shlibpath_overrides_runpath=yes
  33119. @@ -13690,7 +9613,6 @@
  33120. sni)
  33121. shlibpath_overrides_runpath=no
  33122. need_lib_prefix=no
  33123. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33124. runpath_var=LD_RUN_PATH
  33125. ;;
  33126. siemens)
  33127. @@ -13721,13 +9643,12 @@
  33128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33129. soname_spec='${libname}${release}${shared_ext}$major'
  33130. shlibpath_var=LD_LIBRARY_PATH
  33131. + shlibpath_overrides_runpath=yes
  33132. hardcode_into_libs=yes
  33133. if test "$with_gnu_ld" = yes; then
  33134. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33135. - shlibpath_overrides_runpath=no
  33136. else
  33137. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33138. - shlibpath_overrides_runpath=yes
  33139. case $host_os in
  33140. sco3.2v5*)
  33141. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33142. @@ -13737,6 +9658,17 @@
  33143. sys_lib_dlsearch_path_spec='/usr/lib'
  33144. ;;
  33145. +tpf*)
  33146. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  33147. + version_type=linux
  33148. + need_lib_prefix=no
  33149. + need_version=no
  33150. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33151. + shlibpath_var=LD_LIBRARY_PATH
  33152. + shlibpath_overrides_runpath=no
  33153. + hardcode_into_libs=yes
  33154. + ;;
  33155. +
  33156. uts4*)
  33157. version_type=linux
  33158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33159. @@ -13748,8716 +9680,3672 @@
  33160. dynamic_linker=no
  33161. ;;
  33162. esac
  33163. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  33165. $as_echo "$dynamic_linker" >&6; }
  33166. test "$dynamic_linker" = no && can_build_shared=no
  33167. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33168. - $as_echo_n "(cached) " >&6
  33169. -else
  33170. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  33171. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33172. +if test "$GCC" = yes; then
  33173. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33174. fi
  33175. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33176. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33177. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33178. +fi
  33179. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  33180. - $as_echo_n "(cached) " >&6
  33181. -else
  33182. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  33183. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33184. fi
  33185. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33186. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33187. -if test "$GCC" = yes; then
  33188. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33189. -fi
  33190. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33191. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  33192. -hardcode_action_CXX=
  33193. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  33194. - test -n "$runpath_var_CXX" || \
  33195. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  33196. - # We can hardcode non-existant directories.
  33197. - if test "$hardcode_direct_CXX" != no &&
  33198. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33199. - # have to relink, otherwise we might link with an installed library
  33200. - # when we should be linking with a yet-to-be-installed one
  33201. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  33202. - test "$hardcode_minus_L_CXX" != no; then
  33203. - # Linking always hardcodes the temporary library directory.
  33204. - hardcode_action_CXX=relink
  33205. - else
  33206. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33207. - hardcode_action_CXX=immediate
  33208. - fi
  33209. -else
  33210. - # We cannot hardcode anything, or else we can only hardcode existing
  33211. - # directories.
  33212. - hardcode_action_CXX=unsupported
  33213. -fi
  33214. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  33215. -$as_echo "$hardcode_action_CXX" >&6; }
  33216. -if test "$hardcode_action_CXX" = relink; then
  33217. - # Fast installation is not supported
  33218. - enable_fast_install=no
  33219. -elif test "$shlibpath_overrides_runpath" = yes ||
  33220. - test "$enable_shared" = no; then
  33221. - # Fast installation is not necessary
  33222. - enable_fast_install=needless
  33223. -fi
  33224. -# The else clause should only fire when bootstrapping the
  33225. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  33226. -# with your package, and you will get complaints that there are
  33227. -# no rules to generate ltmain.sh.
  33228. -if test -f "$ltmain"; then
  33229. - # See if we are running on zsh, and set the options which allow our commands through
  33230. - # without removal of \ escapes.
  33231. - if test -n "${ZSH_VERSION+set}" ; then
  33232. - setopt NO_GLOB_SUBST
  33233. - fi
  33234. - # Now quote all the things that may contain metacharacters while being
  33235. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  33236. - # variables and quote the copies for generation of the libtool script.
  33237. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  33238. - SED SHELL STRIP \
  33239. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  33240. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  33241. - deplibs_check_method reload_flag reload_cmds need_locks \
  33242. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  33243. - lt_cv_sys_global_symbol_to_c_name_address \
  33244. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  33245. - old_postinstall_cmds old_postuninstall_cmds \
  33246. - compiler_CXX \
  33247. - CC_CXX \
  33248. - LD_CXX \
  33249. - lt_prog_compiler_wl_CXX \
  33250. - lt_prog_compiler_pic_CXX \
  33251. - lt_prog_compiler_static_CXX \
  33252. - lt_prog_compiler_no_builtin_flag_CXX \
  33253. - export_dynamic_flag_spec_CXX \
  33254. - thread_safe_flag_spec_CXX \
  33255. - whole_archive_flag_spec_CXX \
  33256. - enable_shared_with_static_runtimes_CXX \
  33257. - old_archive_cmds_CXX \
  33258. - old_archive_from_new_cmds_CXX \
  33259. - predep_objects_CXX \
  33260. - postdep_objects_CXX \
  33261. - predeps_CXX \
  33262. - postdeps_CXX \
  33263. - compiler_lib_search_path_CXX \
  33264. - compiler_lib_search_dirs_CXX \
  33265. - archive_cmds_CXX \
  33266. - archive_expsym_cmds_CXX \
  33267. - postinstall_cmds_CXX \
  33268. - postuninstall_cmds_CXX \
  33269. - old_archive_from_expsyms_cmds_CXX \
  33270. - allow_undefined_flag_CXX \
  33271. - no_undefined_flag_CXX \
  33272. - export_symbols_cmds_CXX \
  33273. - hardcode_libdir_flag_spec_CXX \
  33274. - hardcode_libdir_flag_spec_ld_CXX \
  33275. - hardcode_libdir_separator_CXX \
  33276. - hardcode_automatic_CXX \
  33277. - module_cmds_CXX \
  33278. - module_expsym_cmds_CXX \
  33279. - lt_cv_prog_compiler_c_o_CXX \
  33280. - fix_srcfile_path_CXX \
  33281. - exclude_expsyms_CXX \
  33282. - include_expsyms_CXX; do
  33283. -
  33284. - case $var in
  33285. - old_archive_cmds_CXX | \
  33286. - old_archive_from_new_cmds_CXX | \
  33287. - archive_cmds_CXX | \
  33288. - archive_expsym_cmds_CXX | \
  33289. - module_cmds_CXX | \
  33290. - module_expsym_cmds_CXX | \
  33291. - old_archive_from_expsyms_cmds_CXX | \
  33292. - export_symbols_cmds_CXX | \
  33293. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  33294. - postinstall_cmds | postuninstall_cmds | \
  33295. - old_postinstall_cmds | old_postuninstall_cmds | \
  33296. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  33297. - # Double-quote double-evaled strings.
  33298. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  33299. - ;;
  33300. - *)
  33301. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  33302. - ;;
  33303. - esac
  33304. - done
  33305. - case $lt_echo in
  33306. - *'\$0 --fallback-echo"')
  33307. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33308. - ;;
  33309. - esac
  33310. -cfgfile="$ofile"
  33311. - cat <<__EOF__ >> "$cfgfile"
  33312. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33313. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33314. -# Shell to use when invoking shell scripts.
  33315. -SHELL=$lt_SHELL
  33316. -# Whether or not to build shared libraries.
  33317. -build_libtool_libs=$enable_shared
  33318. -# Whether or not to build static libraries.
  33319. -build_old_libs=$enable_static
  33320. -# Whether or not to add -lc for building shared libraries.
  33321. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  33322. -# Whether or not to disallow shared libs when runtime libs are static
  33323. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  33324. -# Whether or not to optimize for fast installation.
  33325. -fast_install=$enable_fast_install
  33326. -# The host system.
  33327. -host_alias=$host_alias
  33328. -host=$host
  33329. -host_os=$host_os
  33330. -# The build system.
  33331. -build_alias=$build_alias
  33332. -build=$build
  33333. -build_os=$build_os
  33334. -# An echo program that does not interpret backslashes.
  33335. -echo=$lt_echo
  33336. -# The archiver.
  33337. -AR=$lt_AR
  33338. -AR_FLAGS=$lt_AR_FLAGS
  33339. -# A C compiler.
  33340. -LTCC=$lt_LTCC
  33341. -# LTCC compiler flags.
  33342. -LTCFLAGS=$lt_LTCFLAGS
  33343. -# A language-specific compiler.
  33344. -CC=$lt_compiler_CXX
  33345. -# Is the compiler the GNU C compiler?
  33346. -with_gcc=$GCC_CXX
  33347. -# An ERE matcher.
  33348. -EGREP=$lt_EGREP
  33349. -# The linker used to build libraries.
  33350. -LD=$lt_LD_CXX
  33351. -# Whether we need hard or soft links.
  33352. -LN_S=$lt_LN_S
  33353. -# A BSD-compatible nm program.
  33354. -NM=$lt_NM
  33355. -# A symbol stripping program
  33356. -STRIP=$lt_STRIP
  33357. -# Used to examine libraries when file_magic_cmd begins "file"
  33358. -MAGIC_CMD=$MAGIC_CMD
  33359. -# Used on cygwin: DLL creation program.
  33360. -DLLTOOL="$DLLTOOL"
  33361. -# Used on cygwin: object dumper.
  33362. -OBJDUMP="$OBJDUMP"
  33363. -# Used on cygwin: assembler.
  33364. -AS="$AS"
  33365. -# The name of the directory that contains temporary libtool files.
  33366. -objdir=$objdir
  33367. -# How to create reloadable object files.
  33368. -reload_flag=$lt_reload_flag
  33369. -reload_cmds=$lt_reload_cmds
  33370. -# How to pass a linker flag through the compiler.
  33371. -wl=$lt_lt_prog_compiler_wl_CXX
  33372. -# Object file suffix (normally "o").
  33373. -objext="$ac_objext"
  33374. -# Old archive suffix (normally "a").
  33375. -libext="$libext"
  33376. -# Shared library suffix (normally ".so").
  33377. -shrext_cmds='$shrext_cmds'
  33378. -# Executable file suffix (normally "").
  33379. -exeext="$exeext"
  33380. -# Additional compiler flags for building library objects.
  33381. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  33382. -pic_mode=$pic_mode
  33383. -# What is the maximum length of a command?
  33384. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33385. -# Does compiler simultaneously support -c and -o options?
  33386. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  33387. -# Must we lock files when doing compilation?
  33388. -need_locks=$lt_need_locks
  33389. -# Do we need the lib prefix for modules?
  33390. -need_lib_prefix=$need_lib_prefix
  33391. -# Do we need a version for libraries?
  33392. -need_version=$need_version
  33393. -# Whether dlopen is supported.
  33394. -dlopen_support=$enable_dlopen
  33395. -# Whether dlopen of programs is supported.
  33396. -dlopen_self=$enable_dlopen_self
  33397. -# Whether dlopen of statically linked programs is supported.
  33398. -dlopen_self_static=$enable_dlopen_self_static
  33399. -# Compiler flag to prevent dynamic linking.
  33400. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  33401. -# Compiler flag to turn off builtin functions.
  33402. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  33403. -# Compiler flag to allow reflexive dlopens.
  33404. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  33405. -# Compiler flag to generate shared objects directly from archives.
  33406. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  33407. -# Compiler flag to generate thread-safe objects.
  33408. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  33409. -# Library versioning type.
  33410. -version_type=$version_type
  33411. -
  33412. -# Format of library name prefix.
  33413. -libname_spec=$lt_libname_spec
  33414. -
  33415. -# List of archive names. First name is the real one, the rest are links.
  33416. -# The last name is the one that the linker finds with -lNAME.
  33417. -library_names_spec=$lt_library_names_spec
  33418. -
  33419. -# The coded name of the library, if different from the real name.
  33420. -soname_spec=$lt_soname_spec
  33421. -
  33422. -# Commands used to build and install an old-style archive.
  33423. -RANLIB=$lt_RANLIB
  33424. -old_archive_cmds=$lt_old_archive_cmds_CXX
  33425. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33426. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33427. -
  33428. -# Create an old-style archive from a shared archive.
  33429. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  33430. -# Create a temporary old-style archive to link instead of a shared archive.
  33431. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  33432. -
  33433. -# Commands used to build and install a shared archive.
  33434. -archive_cmds=$lt_archive_cmds_CXX
  33435. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  33436. -postinstall_cmds=$lt_postinstall_cmds
  33437. -postuninstall_cmds=$lt_postuninstall_cmds
  33438. -
  33439. -# Commands used to build a loadable module (assumed same as above if empty)
  33440. -module_cmds=$lt_module_cmds_CXX
  33441. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  33442. -
  33443. -# Commands to strip libraries.
  33444. -old_striplib=$lt_old_striplib
  33445. -striplib=$lt_striplib
  33446. -# Dependencies to place before the objects being linked to create a
  33447. -# shared library.
  33448. -predep_objects=$lt_predep_objects_CXX
  33449. -
  33450. -# Dependencies to place after the objects being linked to create a
  33451. -# shared library.
  33452. -postdep_objects=$lt_postdep_objects_CXX
  33453. -
  33454. -# Dependencies to place before the objects being linked to create a
  33455. -# shared library.
  33456. -predeps=$lt_predeps_CXX
  33457. -
  33458. -# Dependencies to place after the objects being linked to create a
  33459. -# shared library.
  33460. -postdeps=$lt_postdeps_CXX
  33461. -
  33462. -# The directories searched by this compiler when creating a shared
  33463. -# library
  33464. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  33465. -
  33466. -# The library search path used internally by the compiler when linking
  33467. -# a shared library.
  33468. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  33469. -# Method to check whether dependent libraries are shared objects.
  33470. -deplibs_check_method=$lt_deplibs_check_method
  33471. -# Command to use when deplibs_check_method == file_magic.
  33472. -file_magic_cmd=$lt_file_magic_cmd
  33473. -# Flag that allows shared libraries with undefined symbols to be built.
  33474. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  33475. -# Flag that forces no undefined symbols.
  33476. -no_undefined_flag=$lt_no_undefined_flag_CXX
  33477. -# Commands used to finish a libtool library installation in a directory.
  33478. -finish_cmds=$lt_finish_cmds
  33479. -# Same as above, but a single script fragment to be evaled but not shown.
  33480. -finish_eval=$lt_finish_eval
  33481. -# Take the output of nm and produce a listing of raw symbols and C names.
  33482. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33483. -# Transform the output of nm in a proper C declaration
  33484. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33485. -# Transform the output of nm in a C name address pair
  33486. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33487. -# This is the shared library runtime path variable.
  33488. -runpath_var=$runpath_var
  33489. -# This is the shared library path variable.
  33490. -shlibpath_var=$shlibpath_var
  33491. -# Is shlibpath searched before the hard-coded library search path?
  33492. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33493. -# How to hardcode a shared library path into an executable.
  33494. -hardcode_action=$hardcode_action_CXX
  33495. -# Whether we should hardcode library paths into libraries.
  33496. -hardcode_into_libs=$hardcode_into_libs
  33497. -# Flag to hardcode \$libdir into a binary during linking.
  33498. -# This must work even if \$libdir does not exist.
  33499. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  33500. -# If ld is used when linking, flag to hardcode \$libdir into
  33501. -# a binary during linking. This must work even if \$libdir does
  33502. -# not exist.
  33503. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  33504. -
  33505. -# Whether we need a single -rpath flag with a separated argument.
  33506. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  33507. -
  33508. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  33509. -# resulting binary.
  33510. -hardcode_direct=$hardcode_direct_CXX
  33511. -
  33512. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  33513. -# resulting binary.
  33514. -hardcode_minus_L=$hardcode_minus_L_CXX
  33515. -
  33516. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  33517. -# the resulting binary.
  33518. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  33519. -
  33520. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  33521. -# and all subsequent libraries and executables linked against it.
  33522. -hardcode_automatic=$hardcode_automatic_CXX
  33523. -# Variables whose values should be saved in libtool wrapper scripts and
  33524. -# restored at relink time.
  33525. -variables_saved_for_relink="$variables_saved_for_relink"
  33526. -# Whether libtool must link a program against all its dependency libraries.
  33527. -link_all_deplibs=$link_all_deplibs_CXX
  33528. -# Compile-time system search path for libraries
  33529. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  33530. -# Run-time system search path for libraries
  33531. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  33532. -# Fix the shell variable \$srcfile for the compiler.
  33533. -fix_srcfile_path=$lt_fix_srcfile_path
  33534. -# Set to yes if exported symbols are required.
  33535. -always_export_symbols=$always_export_symbols_CXX
  33536. -# The commands to list exported symbols.
  33537. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  33538. -# The commands to extract the exported symbol list from a shared archive.
  33539. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  33540. -# Symbols that should not be listed in the preloaded symbols.
  33541. -exclude_expsyms=$lt_exclude_expsyms_CXX
  33542. -# Symbols that must always be exported.
  33543. -include_expsyms=$lt_include_expsyms_CXX
  33544. -# ### END LIBTOOL TAG CONFIG: $tagname
  33545. -__EOF__
  33546. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  33547. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  33548. +hardcode_action=
  33549. +if test -n "$hardcode_libdir_flag_spec" ||
  33550. + test -n "$runpath_var" ||
  33551. + test "X$hardcode_automatic" = "Xyes" ; then
  33552. -else
  33553. - # If there is no Makefile yet, we rely on a make rule to execute
  33554. - # `config.status --recheck' to rerun these tests and create the
  33555. - # libtool script then.
  33556. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33557. - if test -f "$ltmain_in"; then
  33558. - test -f Makefile && make "$ltmain"
  33559. + # We can hardcode non-existent directories.
  33560. + if test "$hardcode_direct" != no &&
  33561. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33562. + # have to relink, otherwise we might link with an installed library
  33563. + # when we should be linking with a yet-to-be-installed one
  33564. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  33565. + test "$hardcode_minus_L" != no; then
  33566. + # Linking always hardcodes the temporary library directory.
  33567. + hardcode_action=relink
  33568. + else
  33569. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33570. + hardcode_action=immediate
  33571. fi
  33572. +else
  33573. + # We cannot hardcode anything, or else we can only hardcode existing
  33574. + # directories.
  33575. + hardcode_action=unsupported
  33576. fi
  33577. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  33578. +$as_echo "$hardcode_action" >&6; }
  33579. +if test "$hardcode_action" = relink ||
  33580. + test "$inherit_rpath" = yes; then
  33581. + # Fast installation is not supported
  33582. + enable_fast_install=no
  33583. +elif test "$shlibpath_overrides_runpath" = yes ||
  33584. + test "$enable_shared" = no; then
  33585. + # Fast installation is not necessary
  33586. + enable_fast_install=needless
  33587. +fi
  33588. -ac_ext=c
  33589. -ac_cpp='$CPP $CPPFLAGS'
  33590. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33591. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33592. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33593. -
  33594. -CC=$lt_save_CC
  33595. -LDCXX=$LD
  33596. -LD=$lt_save_LD
  33597. -GCC=$lt_save_GCC
  33598. -with_gnu_ldcxx=$with_gnu_ld
  33599. -with_gnu_ld=$lt_save_with_gnu_ld
  33600. -lt_cv_path_LDCXX=$lt_cv_path_LD
  33601. -lt_cv_path_LD=$lt_save_path_LD
  33602. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  33603. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  33604. -
  33605. - else
  33606. - tagname=""
  33607. - fi
  33608. - ;;
  33609. -
  33610. - F77)
  33611. - if test -n "$F77" && test "X$F77" != "Xno"; then
  33612. -
  33613. -ac_ext=f
  33614. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  33615. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33616. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  33617. -
  33618. -
  33619. -archive_cmds_need_lc_F77=no
  33620. -allow_undefined_flag_F77=
  33621. -always_export_symbols_F77=no
  33622. -archive_expsym_cmds_F77=
  33623. -export_dynamic_flag_spec_F77=
  33624. -hardcode_direct_F77=no
  33625. -hardcode_libdir_flag_spec_F77=
  33626. -hardcode_libdir_flag_spec_ld_F77=
  33627. -hardcode_libdir_separator_F77=
  33628. -hardcode_minus_L_F77=no
  33629. -hardcode_automatic_F77=no
  33630. -module_cmds_F77=
  33631. -module_expsym_cmds_F77=
  33632. -link_all_deplibs_F77=unknown
  33633. -old_archive_cmds_F77=$old_archive_cmds
  33634. -no_undefined_flag_F77=
  33635. -whole_archive_flag_spec_F77=
  33636. -enable_shared_with_static_runtimes_F77=no
  33637. -# Source file extension for f77 test sources.
  33638. -ac_ext=f
  33639. -# Object file extension for compiled f77 test sources.
  33640. -objext=o
  33641. -objext_F77=$objext
  33642. -# Code to be used in simple compile tests
  33643. -lt_simple_compile_test_code="\
  33644. - subroutine t
  33645. - return
  33646. - end
  33647. -"
  33648. -# Code to be used in simple link tests
  33649. -lt_simple_link_test_code="\
  33650. - program t
  33651. - end
  33652. -"
  33653. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33654. + if test "x$enable_dlopen" != xyes; then
  33655. + enable_dlopen=unknown
  33656. + enable_dlopen_self=unknown
  33657. + enable_dlopen_self_static=unknown
  33658. +else
  33659. + lt_cv_dlopen=no
  33660. + lt_cv_dlopen_libs=
  33661. -# If no C compiler was specified, use CC.
  33662. -LTCC=${LTCC-"$CC"}
  33663. + case $host_os in
  33664. + beos*)
  33665. + lt_cv_dlopen="load_add_on"
  33666. + lt_cv_dlopen_libs=
  33667. + lt_cv_dlopen_self=yes
  33668. + ;;
  33669. -# If no C compiler flags were specified, use CFLAGS.
  33670. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  33671. + mingw* | pw32* | cegcc*)
  33672. + lt_cv_dlopen="LoadLibrary"
  33673. + lt_cv_dlopen_libs=
  33674. + ;;
  33675. -# Allow CC to be a program name with arguments.
  33676. -compiler=$CC
  33677. + cygwin*)
  33678. + lt_cv_dlopen="dlopen"
  33679. + lt_cv_dlopen_libs=
  33680. + ;;
  33681. + darwin*)
  33682. + # if libdl is installed we need to link against it
  33683. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  33684. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  33685. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  33686. + $as_echo_n "(cached) " >&6
  33687. +else
  33688. + ac_check_lib_save_LIBS=$LIBS
  33689. +LIBS="-ldl $LIBS"
  33690. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33691. +/* end confdefs.h. */
  33692. -# save warnings/boilerplate of simple test code
  33693. -ac_outfile=conftest.$ac_objext
  33694. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33695. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33696. -_lt_compiler_boilerplate=`cat conftest.err`
  33697. -$rm conftest*
  33698. +/* Override any GCC internal prototype to avoid an error.
  33699. + Use char because int might match the return type of a GCC
  33700. + builtin and then its argument prototype would still apply. */
  33701. +#ifdef __cplusplus
  33702. +extern "C"
  33703. +#endif
  33704. +char dlopen ();
  33705. +int
  33706. +main ()
  33707. +{
  33708. +return dlopen ();
  33709. + ;
  33710. + return 0;
  33711. +}
  33712. +_ACEOF
  33713. +if ac_fn_c_try_link "$LINENO"; then :
  33714. + ac_cv_lib_dl_dlopen=yes
  33715. +else
  33716. + ac_cv_lib_dl_dlopen=no
  33717. +fi
  33718. +rm -f core conftest.err conftest.$ac_objext \
  33719. + conftest$ac_exeext conftest.$ac_ext
  33720. +LIBS=$ac_check_lib_save_LIBS
  33721. +fi
  33722. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  33723. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  33724. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  33725. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33726. +else
  33727. -ac_outfile=conftest.$ac_objext
  33728. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33729. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33730. -_lt_linker_boilerplate=`cat conftest.err`
  33731. -$rm -r conftest*
  33732. + lt_cv_dlopen="dyld"
  33733. + lt_cv_dlopen_libs=
  33734. + lt_cv_dlopen_self=yes
  33735. +fi
  33736. -# Allow CC to be a program name with arguments.
  33737. -lt_save_CC="$CC"
  33738. -CC=${F77-"f77"}
  33739. -compiler=$CC
  33740. -compiler_F77=$CC
  33741. -for cc_temp in $compiler""; do
  33742. - case $cc_temp in
  33743. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33744. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33745. - \-*) ;;
  33746. - *) break;;
  33747. - esac
  33748. -done
  33749. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33750. + ;;
  33751. + *)
  33752. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  33753. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  33754. + lt_cv_dlopen="shl_load"
  33755. +else
  33756. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  33757. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  33758. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  33759. + $as_echo_n "(cached) " >&6
  33760. +else
  33761. + ac_check_lib_save_LIBS=$LIBS
  33762. +LIBS="-ldld $LIBS"
  33763. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33764. +/* end confdefs.h. */
  33765. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  33766. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  33767. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  33768. -$as_echo "$can_build_shared" >&6; }
  33769. +/* Override any GCC internal prototype to avoid an error.
  33770. + Use char because int might match the return type of a GCC
  33771. + builtin and then its argument prototype would still apply. */
  33772. +#ifdef __cplusplus
  33773. +extern "C"
  33774. +#endif
  33775. +char shl_load ();
  33776. +int
  33777. +main ()
  33778. +{
  33779. +return shl_load ();
  33780. + ;
  33781. + return 0;
  33782. +}
  33783. +_ACEOF
  33784. +if ac_fn_c_try_link "$LINENO"; then :
  33785. + ac_cv_lib_dld_shl_load=yes
  33786. +else
  33787. + ac_cv_lib_dld_shl_load=no
  33788. +fi
  33789. +rm -f core conftest.err conftest.$ac_objext \
  33790. + conftest$ac_exeext conftest.$ac_ext
  33791. +LIBS=$ac_check_lib_save_LIBS
  33792. +fi
  33793. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  33794. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  33795. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  33796. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  33797. +else
  33798. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  33799. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  33800. + lt_cv_dlopen="dlopen"
  33801. +else
  33802. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  33803. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  33804. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  33805. + $as_echo_n "(cached) " >&6
  33806. +else
  33807. + ac_check_lib_save_LIBS=$LIBS
  33808. +LIBS="-ldl $LIBS"
  33809. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33810. +/* end confdefs.h. */
  33811. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  33812. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  33813. -test "$can_build_shared" = "no" && enable_shared=no
  33814. +/* Override any GCC internal prototype to avoid an error.
  33815. + Use char because int might match the return type of a GCC
  33816. + builtin and then its argument prototype would still apply. */
  33817. +#ifdef __cplusplus
  33818. +extern "C"
  33819. +#endif
  33820. +char dlopen ();
  33821. +int
  33822. +main ()
  33823. +{
  33824. +return dlopen ();
  33825. + ;
  33826. + return 0;
  33827. +}
  33828. +_ACEOF
  33829. +if ac_fn_c_try_link "$LINENO"; then :
  33830. + ac_cv_lib_dl_dlopen=yes
  33831. +else
  33832. + ac_cv_lib_dl_dlopen=no
  33833. +fi
  33834. +rm -f core conftest.err conftest.$ac_objext \
  33835. + conftest$ac_exeext conftest.$ac_ext
  33836. +LIBS=$ac_check_lib_save_LIBS
  33837. +fi
  33838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  33839. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  33840. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  33841. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  33842. +else
  33843. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  33844. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  33845. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  33846. + $as_echo_n "(cached) " >&6
  33847. +else
  33848. + ac_check_lib_save_LIBS=$LIBS
  33849. +LIBS="-lsvld $LIBS"
  33850. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33851. +/* end confdefs.h. */
  33852. -# On AIX, shared libraries and static libraries use the same namespace, and
  33853. -# are all built from PIC.
  33854. -case $host_os in
  33855. -aix3*)
  33856. - test "$enable_shared" = yes && enable_static=no
  33857. - if test -n "$RANLIB"; then
  33858. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  33859. - postinstall_cmds='$RANLIB $lib'
  33860. - fi
  33861. - ;;
  33862. -aix[4-9]*)
  33863. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  33864. - test "$enable_shared" = yes && enable_static=no
  33865. - fi
  33866. - ;;
  33867. -esac
  33868. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  33869. -$as_echo "$enable_shared" >&6; }
  33870. -
  33871. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  33872. -$as_echo_n "checking whether to build static libraries... " >&6; }
  33873. -# Make sure either enable_shared or enable_static is yes.
  33874. -test "$enable_shared" = yes || enable_static=yes
  33875. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  33876. -$as_echo "$enable_static" >&6; }
  33877. -
  33878. -GCC_F77="$G77"
  33879. -LD_F77="$LD"
  33880. +/* Override any GCC internal prototype to avoid an error.
  33881. + Use char because int might match the return type of a GCC
  33882. + builtin and then its argument prototype would still apply. */
  33883. +#ifdef __cplusplus
  33884. +extern "C"
  33885. +#endif
  33886. +char dlopen ();
  33887. +int
  33888. +main ()
  33889. +{
  33890. +return dlopen ();
  33891. + ;
  33892. + return 0;
  33893. +}
  33894. +_ACEOF
  33895. +if ac_fn_c_try_link "$LINENO"; then :
  33896. + ac_cv_lib_svld_dlopen=yes
  33897. +else
  33898. + ac_cv_lib_svld_dlopen=no
  33899. +fi
  33900. +rm -f core conftest.err conftest.$ac_objext \
  33901. + conftest$ac_exeext conftest.$ac_ext
  33902. +LIBS=$ac_check_lib_save_LIBS
  33903. +fi
  33904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  33905. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  33906. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  33907. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  33908. +else
  33909. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  33910. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  33911. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  33912. + $as_echo_n "(cached) " >&6
  33913. +else
  33914. + ac_check_lib_save_LIBS=$LIBS
  33915. +LIBS="-ldld $LIBS"
  33916. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33917. +/* end confdefs.h. */
  33918. -lt_prog_compiler_wl_F77=
  33919. -lt_prog_compiler_pic_F77=
  33920. -lt_prog_compiler_static_F77=
  33921. +/* Override any GCC internal prototype to avoid an error.
  33922. + Use char because int might match the return type of a GCC
  33923. + builtin and then its argument prototype would still apply. */
  33924. +#ifdef __cplusplus
  33925. +extern "C"
  33926. +#endif
  33927. +char dld_link ();
  33928. +int
  33929. +main ()
  33930. +{
  33931. +return dld_link ();
  33932. + ;
  33933. + return 0;
  33934. +}
  33935. +_ACEOF
  33936. +if ac_fn_c_try_link "$LINENO"; then :
  33937. + ac_cv_lib_dld_dld_link=yes
  33938. +else
  33939. + ac_cv_lib_dld_dld_link=no
  33940. +fi
  33941. +rm -f core conftest.err conftest.$ac_objext \
  33942. + conftest$ac_exeext conftest.$ac_ext
  33943. +LIBS=$ac_check_lib_save_LIBS
  33944. +fi
  33945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  33946. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  33947. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  33948. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  33949. +fi
  33950. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33951. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  33952. - if test "$GCC" = yes; then
  33953. - lt_prog_compiler_wl_F77='-Wl,'
  33954. - lt_prog_compiler_static_F77='-static'
  33955. +fi
  33956. - case $host_os in
  33957. - aix*)
  33958. - # All AIX code is PIC.
  33959. - if test "$host_cpu" = ia64; then
  33960. - # AIX 5 now supports IA64 processor
  33961. - lt_prog_compiler_static_F77='-Bstatic'
  33962. - fi
  33963. - ;;
  33964. - amigaos*)
  33965. - # FIXME: we need at least 68020 code to build shared libraries, but
  33966. - # adding the `-m68020' flag to GCC prevents building anything better,
  33967. - # like `-m68040'.
  33968. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  33969. - ;;
  33970. +fi
  33971. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33972. - # PIC is the default for these OSes.
  33973. - ;;
  33974. - mingw* | cygwin* | pw32* | os2*)
  33975. - # This hack is so that the source file can tell whether it is being
  33976. - # built for inclusion in a dll (and should export symbols for example).
  33977. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33978. - # (--disable-auto-import) libraries
  33979. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  33980. - ;;
  33981. +fi
  33982. - darwin* | rhapsody*)
  33983. - # PIC is the default on this platform
  33984. - # Common symbols not allowed in MH_DYLIB files
  33985. - lt_prog_compiler_pic_F77='-fno-common'
  33986. - ;;
  33987. - interix[3-9]*)
  33988. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33989. - # Instead, we relocate shared libraries at runtime.
  33990. - ;;
  33991. +fi
  33992. - msdosdjgpp*)
  33993. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  33994. - # on systems that don't support them.
  33995. - lt_prog_compiler_can_build_shared_F77=no
  33996. - enable_shared=no
  33997. - ;;
  33998. - sysv4*MP*)
  33999. - if test -d /usr/nec; then
  34000. - lt_prog_compiler_pic_F77=-Kconform_pic
  34001. - fi
  34002. - ;;
  34003. +fi
  34004. - hpux*)
  34005. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34006. - # not for PA HP-UX.
  34007. - case $host_cpu in
  34008. - hppa*64*|ia64*)
  34009. - # +Z the default
  34010. - ;;
  34011. - *)
  34012. - lt_prog_compiler_pic_F77='-fPIC'
  34013. - ;;
  34014. - esac
  34015. - ;;
  34016. + ;;
  34017. + esac
  34018. - *)
  34019. - lt_prog_compiler_pic_F77='-fPIC'
  34020. - ;;
  34021. - esac
  34022. + if test "x$lt_cv_dlopen" != xno; then
  34023. + enable_dlopen=yes
  34024. else
  34025. - # PORTME Check for flag to pass linker flags through the system compiler.
  34026. - case $host_os in
  34027. - aix*)
  34028. - lt_prog_compiler_wl_F77='-Wl,'
  34029. - if test "$host_cpu" = ia64; then
  34030. - # AIX 5 now supports IA64 processor
  34031. - lt_prog_compiler_static_F77='-Bstatic'
  34032. - else
  34033. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  34034. - fi
  34035. - ;;
  34036. - darwin*)
  34037. - # PIC is the default on this platform
  34038. - # Common symbols not allowed in MH_DYLIB files
  34039. - case $cc_basename in
  34040. - xlc*)
  34041. - lt_prog_compiler_pic_F77='-qnocommon'
  34042. - lt_prog_compiler_wl_F77='-Wl,'
  34043. - ;;
  34044. - esac
  34045. - ;;
  34046. -
  34047. - mingw* | cygwin* | pw32* | os2*)
  34048. - # This hack is so that the source file can tell whether it is being
  34049. - # built for inclusion in a dll (and should export symbols for example).
  34050. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  34051. - ;;
  34052. + enable_dlopen=no
  34053. + fi
  34054. - hpux9* | hpux10* | hpux11*)
  34055. - lt_prog_compiler_wl_F77='-Wl,'
  34056. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34057. - # not for PA HP-UX.
  34058. - case $host_cpu in
  34059. - hppa*64*|ia64*)
  34060. - # +Z the default
  34061. - ;;
  34062. - *)
  34063. - lt_prog_compiler_pic_F77='+Z'
  34064. - ;;
  34065. - esac
  34066. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  34067. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  34068. - ;;
  34069. + case $lt_cv_dlopen in
  34070. + dlopen)
  34071. + save_CPPFLAGS="$CPPFLAGS"
  34072. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  34073. - irix5* | irix6* | nonstopux*)
  34074. - lt_prog_compiler_wl_F77='-Wl,'
  34075. - # PIC (with -KPIC) is the default.
  34076. - lt_prog_compiler_static_F77='-non_shared'
  34077. - ;;
  34078. + save_LDFLAGS="$LDFLAGS"
  34079. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  34080. - newsos6)
  34081. - lt_prog_compiler_pic_F77='-KPIC'
  34082. - lt_prog_compiler_static_F77='-Bstatic'
  34083. - ;;
  34084. + save_LIBS="$LIBS"
  34085. + LIBS="$lt_cv_dlopen_libs $LIBS"
  34086. - linux* | k*bsd*-gnu)
  34087. - case $cc_basename in
  34088. - icc* | ecc*)
  34089. - lt_prog_compiler_wl_F77='-Wl,'
  34090. - lt_prog_compiler_pic_F77='-KPIC'
  34091. - lt_prog_compiler_static_F77='-static'
  34092. - ;;
  34093. - pgcc* | pgf77* | pgf90* | pgf95*)
  34094. - # Portland Group compilers (*not* the Pentium gcc compiler,
  34095. - # which looks to be a dead project)
  34096. - lt_prog_compiler_wl_F77='-Wl,'
  34097. - lt_prog_compiler_pic_F77='-fpic'
  34098. - lt_prog_compiler_static_F77='-Bstatic'
  34099. - ;;
  34100. - ccc*)
  34101. - lt_prog_compiler_wl_F77='-Wl,'
  34102. - # All Alpha code is PIC.
  34103. - lt_prog_compiler_static_F77='-non_shared'
  34104. - ;;
  34105. - *)
  34106. - case `$CC -V 2>&1 | sed 5q` in
  34107. - *Sun\ C*)
  34108. - # Sun C 5.9
  34109. - lt_prog_compiler_pic_F77='-KPIC'
  34110. - lt_prog_compiler_static_F77='-Bstatic'
  34111. - lt_prog_compiler_wl_F77='-Wl,'
  34112. - ;;
  34113. - *Sun\ F*)
  34114. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  34115. - lt_prog_compiler_pic_F77='-KPIC'
  34116. - lt_prog_compiler_static_F77='-Bstatic'
  34117. - lt_prog_compiler_wl_F77=''
  34118. - ;;
  34119. - esac
  34120. - ;;
  34121. - esac
  34122. - ;;
  34123. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  34124. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  34125. +if test "${lt_cv_dlopen_self+set}" = set; then :
  34126. + $as_echo_n "(cached) " >&6
  34127. +else
  34128. + if test "$cross_compiling" = yes; then :
  34129. + lt_cv_dlopen_self=cross
  34130. +else
  34131. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34132. + lt_status=$lt_dlunknown
  34133. + cat > conftest.$ac_ext <<_LT_EOF
  34134. +#line 10115 "configure"
  34135. +#include "confdefs.h"
  34136. - osf3* | osf4* | osf5*)
  34137. - lt_prog_compiler_wl_F77='-Wl,'
  34138. - # All OSF/1 code is PIC.
  34139. - lt_prog_compiler_static_F77='-non_shared'
  34140. - ;;
  34141. +#if HAVE_DLFCN_H
  34142. +#include <dlfcn.h>
  34143. +#endif
  34144. - rdos*)
  34145. - lt_prog_compiler_static_F77='-non_shared'
  34146. - ;;
  34147. +#include <stdio.h>
  34148. - solaris*)
  34149. - lt_prog_compiler_pic_F77='-KPIC'
  34150. - lt_prog_compiler_static_F77='-Bstatic'
  34151. - case $cc_basename in
  34152. - f77* | f90* | f95*)
  34153. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  34154. - *)
  34155. - lt_prog_compiler_wl_F77='-Wl,';;
  34156. - esac
  34157. - ;;
  34158. +#ifdef RTLD_GLOBAL
  34159. +# define LT_DLGLOBAL RTLD_GLOBAL
  34160. +#else
  34161. +# ifdef DL_GLOBAL
  34162. +# define LT_DLGLOBAL DL_GLOBAL
  34163. +# else
  34164. +# define LT_DLGLOBAL 0
  34165. +# endif
  34166. +#endif
  34167. - sunos4*)
  34168. - lt_prog_compiler_wl_F77='-Qoption ld '
  34169. - lt_prog_compiler_pic_F77='-PIC'
  34170. - lt_prog_compiler_static_F77='-Bstatic'
  34171. - ;;
  34172. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34173. + find out it does not work in some platform. */
  34174. +#ifndef LT_DLLAZY_OR_NOW
  34175. +# ifdef RTLD_LAZY
  34176. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34177. +# else
  34178. +# ifdef DL_LAZY
  34179. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34180. +# else
  34181. +# ifdef RTLD_NOW
  34182. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34183. +# else
  34184. +# ifdef DL_NOW
  34185. +# define LT_DLLAZY_OR_NOW DL_NOW
  34186. +# else
  34187. +# define LT_DLLAZY_OR_NOW 0
  34188. +# endif
  34189. +# endif
  34190. +# endif
  34191. +# endif
  34192. +#endif
  34193. - sysv4 | sysv4.2uw2* | sysv4.3*)
  34194. - lt_prog_compiler_wl_F77='-Wl,'
  34195. - lt_prog_compiler_pic_F77='-KPIC'
  34196. - lt_prog_compiler_static_F77='-Bstatic'
  34197. - ;;
  34198. +void fnord() { int i=42;}
  34199. +int main ()
  34200. +{
  34201. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34202. + int status = $lt_dlunknown;
  34203. - sysv4*MP*)
  34204. - if test -d /usr/nec ;then
  34205. - lt_prog_compiler_pic_F77='-Kconform_pic'
  34206. - lt_prog_compiler_static_F77='-Bstatic'
  34207. - fi
  34208. - ;;
  34209. + if (self)
  34210. + {
  34211. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34212. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34213. + /* dlclose (self); */
  34214. + }
  34215. + else
  34216. + puts (dlerror ());
  34217. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34218. - lt_prog_compiler_wl_F77='-Wl,'
  34219. - lt_prog_compiler_pic_F77='-KPIC'
  34220. - lt_prog_compiler_static_F77='-Bstatic'
  34221. - ;;
  34222. -
  34223. - unicos*)
  34224. - lt_prog_compiler_wl_F77='-Wl,'
  34225. - lt_prog_compiler_can_build_shared_F77=no
  34226. - ;;
  34227. -
  34228. - uts4*)
  34229. - lt_prog_compiler_pic_F77='-pic'
  34230. - lt_prog_compiler_static_F77='-Bstatic'
  34231. - ;;
  34232. -
  34233. - *)
  34234. - lt_prog_compiler_can_build_shared_F77=no
  34235. - ;;
  34236. + return status;
  34237. +}
  34238. +_LT_EOF
  34239. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34240. + (eval $ac_link) 2>&5
  34241. + ac_status=$?
  34242. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34243. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34244. + (./conftest; exit; ) >&5 2>/dev/null
  34245. + lt_status=$?
  34246. + case x$lt_status in
  34247. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34248. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34249. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  34250. esac
  34251. + else :
  34252. + # compilation failed
  34253. + lt_cv_dlopen_self=no
  34254. fi
  34255. +fi
  34256. +rm -fr conftest*
  34257. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  34258. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  34259. -#
  34260. -# Check to make sure the PIC flag actually works.
  34261. -#
  34262. -if test -n "$lt_prog_compiler_pic_F77"; then
  34263. +fi
  34264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  34265. +$as_echo "$lt_cv_dlopen_self" >&6; }
  34266. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  34267. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  34268. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  34269. + if test "x$lt_cv_dlopen_self" = xyes; then
  34270. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  34271. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  34272. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  34273. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  34274. $as_echo_n "(cached) " >&6
  34275. else
  34276. - lt_cv_prog_compiler_pic_works_F77=no
  34277. - ac_outfile=conftest.$ac_objext
  34278. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34279. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  34280. - # Insert the option either (1) after the last *FLAGS variable, or
  34281. - # (2) before a word containing "conftest.", or (3) at the end.
  34282. - # Note that $ac_compile itself does not contain backslashes and begins
  34283. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34284. - # The option is referenced via a variable to avoid confusing sed.
  34285. - lt_compile=`echo "$ac_compile" | $SED \
  34286. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34287. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34288. - -e 's:$: $lt_compiler_flag:'`
  34289. - (eval echo "\"\$as_me:14639: $lt_compile\"" >&5)
  34290. - (eval "$lt_compile" 2>conftest.err)
  34291. - ac_status=$?
  34292. - cat conftest.err >&5
  34293. - echo "$as_me:14643: \$? = $ac_status" >&5
  34294. - if (exit $ac_status) && test -s "$ac_outfile"; then
  34295. - # The compiler can only warn and ignore the option if not recognized
  34296. - # So say no if there are warnings other than the usual output.
  34297. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34298. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34299. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34300. - lt_cv_prog_compiler_pic_works_F77=yes
  34301. - fi
  34302. - fi
  34303. - $rm conftest*
  34304. + if test "$cross_compiling" = yes; then :
  34305. + lt_cv_dlopen_self_static=cross
  34306. +else
  34307. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34308. + lt_status=$lt_dlunknown
  34309. + cat > conftest.$ac_ext <<_LT_EOF
  34310. +#line 10211 "configure"
  34311. +#include "confdefs.h"
  34312. -fi
  34313. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  34314. -$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  34315. +#if HAVE_DLFCN_H
  34316. +#include <dlfcn.h>
  34317. +#endif
  34318. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  34319. - case $lt_prog_compiler_pic_F77 in
  34320. - "" | " "*) ;;
  34321. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  34322. - esac
  34323. -else
  34324. - lt_prog_compiler_pic_F77=
  34325. - lt_prog_compiler_can_build_shared_F77=no
  34326. +#include <stdio.h>
  34327. +
  34328. +#ifdef RTLD_GLOBAL
  34329. +# define LT_DLGLOBAL RTLD_GLOBAL
  34330. +#else
  34331. +# ifdef DL_GLOBAL
  34332. +# define LT_DLGLOBAL DL_GLOBAL
  34333. +# else
  34334. +# define LT_DLGLOBAL 0
  34335. +# endif
  34336. +#endif
  34337. +
  34338. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34339. + find out it does not work in some platform. */
  34340. +#ifndef LT_DLLAZY_OR_NOW
  34341. +# ifdef RTLD_LAZY
  34342. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34343. +# else
  34344. +# ifdef DL_LAZY
  34345. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34346. +# else
  34347. +# ifdef RTLD_NOW
  34348. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34349. +# else
  34350. +# ifdef DL_NOW
  34351. +# define LT_DLLAZY_OR_NOW DL_NOW
  34352. +# else
  34353. +# define LT_DLLAZY_OR_NOW 0
  34354. +# endif
  34355. +# endif
  34356. +# endif
  34357. +# endif
  34358. +#endif
  34359. +
  34360. +void fnord() { int i=42;}
  34361. +int main ()
  34362. +{
  34363. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34364. + int status = $lt_dlunknown;
  34365. +
  34366. + if (self)
  34367. + {
  34368. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34369. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34370. + /* dlclose (self); */
  34371. + }
  34372. + else
  34373. + puts (dlerror ());
  34374. +
  34375. + return status;
  34376. +}
  34377. +_LT_EOF
  34378. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34379. + (eval $ac_link) 2>&5
  34380. + ac_status=$?
  34381. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34382. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34383. + (./conftest; exit; ) >&5 2>/dev/null
  34384. + lt_status=$?
  34385. + case x$lt_status in
  34386. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34387. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34388. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  34389. + esac
  34390. + else :
  34391. + # compilation failed
  34392. + lt_cv_dlopen_self_static=no
  34393. + fi
  34394. fi
  34395. +rm -fr conftest*
  34396. +
  34397. fi
  34398. -case $host_os in
  34399. - # For platforms which do not support PIC, -DPIC is meaningless:
  34400. - *djgpp*)
  34401. - lt_prog_compiler_pic_F77=
  34402. - ;;
  34403. - *)
  34404. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  34405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  34406. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  34407. + fi
  34408. +
  34409. + CPPFLAGS="$save_CPPFLAGS"
  34410. + LDFLAGS="$save_LDFLAGS"
  34411. + LIBS="$save_LIBS"
  34412. ;;
  34413. -esac
  34414. + esac
  34415. -#
  34416. -# Check to make sure the static flag actually works.
  34417. -#
  34418. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  34419. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34420. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  34421. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  34422. - $as_echo_n "(cached) " >&6
  34423. -else
  34424. - lt_cv_prog_compiler_static_works_F77=no
  34425. - save_LDFLAGS="$LDFLAGS"
  34426. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34427. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34428. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34429. - # The linker can only warn and ignore the option if not recognized
  34430. - # So say no if there are warnings
  34431. - if test -s conftest.err; then
  34432. - # Append any errors to the config.log.
  34433. - cat conftest.err 1>&5
  34434. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34435. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34436. - if diff conftest.exp conftest.er2 >/dev/null; then
  34437. - lt_cv_prog_compiler_static_works_F77=yes
  34438. - fi
  34439. - else
  34440. - lt_cv_prog_compiler_static_works_F77=yes
  34441. - fi
  34442. - fi
  34443. - $rm -r conftest*
  34444. - LDFLAGS="$save_LDFLAGS"
  34445. + case $lt_cv_dlopen_self in
  34446. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34447. + *) enable_dlopen_self=unknown ;;
  34448. + esac
  34449. + case $lt_cv_dlopen_self_static in
  34450. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34451. + *) enable_dlopen_self_static=unknown ;;
  34452. + esac
  34453. fi
  34454. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  34455. -$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  34456. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  34457. - :
  34458. -else
  34459. - lt_prog_compiler_static_F77=
  34460. -fi
  34461. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  34462. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  34463. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  34464. - $as_echo_n "(cached) " >&6
  34465. -else
  34466. - lt_cv_prog_compiler_c_o_F77=no
  34467. - $rm -r conftest 2>/dev/null
  34468. - mkdir conftest
  34469. - cd conftest
  34470. - mkdir out
  34471. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34472. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  34473. - # Insert the option either (1) after the last *FLAGS variable, or
  34474. - # (2) before a word containing "conftest.", or (3) at the end.
  34475. - # Note that $ac_compile itself does not contain backslashes and begins
  34476. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34477. - lt_compile=`echo "$ac_compile" | $SED \
  34478. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34479. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34480. - -e 's:$: $lt_compiler_flag:'`
  34481. - (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
  34482. - (eval "$lt_compile" 2>out/conftest.err)
  34483. - ac_status=$?
  34484. - cat out/conftest.err >&5
  34485. - echo "$as_me:14747: \$? = $ac_status" >&5
  34486. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34487. - then
  34488. - # The compiler can only warn and ignore the option if not recognized
  34489. - # So say no if there are warnings
  34490. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34491. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34492. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34493. - lt_cv_prog_compiler_c_o_F77=yes
  34494. - fi
  34495. - fi
  34496. - chmod u+w . 2>&5
  34497. - $rm conftest*
  34498. - # SGI C++ compiler will create directory out/ii_files/ for
  34499. - # template instantiation
  34500. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  34501. - $rm out/* && rmdir out
  34502. - cd ..
  34503. - rmdir conftest
  34504. - $rm conftest*
  34505. -fi
  34506. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  34507. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  34508. -hard_links="nottested"
  34509. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  34510. - # do not overwrite the value of need_locks provided by the user
  34511. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  34512. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  34513. - hard_links=yes
  34514. - $rm conftest*
  34515. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34516. - touch conftest.a
  34517. - ln conftest.a conftest.b 2>&5 || hard_links=no
  34518. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34519. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  34520. -$as_echo "$hard_links" >&6; }
  34521. - if test "$hard_links" = no; then
  34522. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34523. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34524. - need_locks=warn
  34525. - fi
  34526. +
  34527. +
  34528. +
  34529. +
  34530. +
  34531. +
  34532. +
  34533. +
  34534. +
  34535. +
  34536. +striplib=
  34537. +old_striplib=
  34538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  34539. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  34540. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  34541. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  34542. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  34543. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34544. +$as_echo "yes" >&6; }
  34545. else
  34546. - need_locks=no
  34547. +# FIXME - insert some real tests, host_os isn't really good enough
  34548. + case $host_os in
  34549. + darwin*)
  34550. + if test -n "$STRIP" ; then
  34551. + striplib="$STRIP -x"
  34552. + old_striplib="$STRIP -S"
  34553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34554. +$as_echo "yes" >&6; }
  34555. + else
  34556. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34557. +$as_echo "no" >&6; }
  34558. + fi
  34559. + ;;
  34560. + *)
  34561. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34562. +$as_echo "no" >&6; }
  34563. + ;;
  34564. + esac
  34565. fi
  34566. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34567. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  34568. - runpath_var=
  34569. - allow_undefined_flag_F77=
  34570. - enable_shared_with_static_runtimes_F77=no
  34571. - archive_cmds_F77=
  34572. - archive_expsym_cmds_F77=
  34573. - old_archive_From_new_cmds_F77=
  34574. - old_archive_from_expsyms_cmds_F77=
  34575. - export_dynamic_flag_spec_F77=
  34576. - whole_archive_flag_spec_F77=
  34577. - thread_safe_flag_spec_F77=
  34578. - hardcode_libdir_flag_spec_F77=
  34579. - hardcode_libdir_flag_spec_ld_F77=
  34580. - hardcode_libdir_separator_F77=
  34581. - hardcode_direct_F77=no
  34582. - hardcode_minus_L_F77=no
  34583. - hardcode_shlibpath_var_F77=unsupported
  34584. - link_all_deplibs_F77=unknown
  34585. - hardcode_automatic_F77=no
  34586. - module_cmds_F77=
  34587. - module_expsym_cmds_F77=
  34588. - always_export_symbols_F77=no
  34589. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34590. - # include_expsyms should be a list of space-separated symbols to be *always*
  34591. - # included in the symbol list
  34592. - include_expsyms_F77=
  34593. - # exclude_expsyms can be an extended regexp of symbols to exclude
  34594. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34595. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34596. - # as well as any symbol that contains `d'.
  34597. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  34598. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34599. - # platforms (ab)use it in PIC code, but their linkers get confused if
  34600. - # the symbol is explicitly referenced. Since portable code cannot
  34601. - # rely on this symbol name, it's probably fine to never include it in
  34602. - # preloaded symbol tables.
  34603. - # Exclude shared library initialization/finalization symbols.
  34604. - extract_expsyms_cmds=
  34605. - # Just being paranoid about ensuring that cc_basename is set.
  34606. - for cc_temp in $compiler""; do
  34607. - case $cc_temp in
  34608. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34609. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34610. - \-*) ;;
  34611. - *) break;;
  34612. - esac
  34613. -done
  34614. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34615. +
  34616. +
  34617. +
  34618. +
  34619. +
  34620. +
  34621. +
  34622. +
  34623. +
  34624. + # Report which library types will actually be built
  34625. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  34626. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  34627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  34628. +$as_echo "$can_build_shared" >&6; }
  34629. +
  34630. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  34631. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  34632. + test "$can_build_shared" = "no" && enable_shared=no
  34633. +
  34634. + # On AIX, shared libraries and static libraries use the same namespace, and
  34635. + # are all built from PIC.
  34636. case $host_os in
  34637. - cygwin* | mingw* | pw32*)
  34638. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34639. - # When not using gcc, we currently assume that we are using
  34640. - # Microsoft Visual C++.
  34641. - if test "$GCC" != yes; then
  34642. - with_gnu_ld=no
  34643. + aix3*)
  34644. + test "$enable_shared" = yes && enable_static=no
  34645. + if test -n "$RANLIB"; then
  34646. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34647. + postinstall_cmds='$RANLIB $lib'
  34648. fi
  34649. ;;
  34650. - interix*)
  34651. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  34652. - with_gnu_ld=yes
  34653. - ;;
  34654. - openbsd*)
  34655. - with_gnu_ld=no
  34656. +
  34657. + aix[4-9]*)
  34658. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34659. + test "$enable_shared" = yes && enable_static=no
  34660. + fi
  34661. ;;
  34662. esac
  34663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  34664. +$as_echo "$enable_shared" >&6; }
  34665. - ld_shlibs_F77=yes
  34666. - if test "$with_gnu_ld" = yes; then
  34667. - # If archive_cmds runs LD, not CC, wlarc should be empty
  34668. - wlarc='${wl}'
  34669. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  34670. +$as_echo_n "checking whether to build static libraries... " >&6; }
  34671. + # Make sure either enable_shared or enable_static is yes.
  34672. + test "$enable_shared" = yes || enable_static=yes
  34673. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  34674. +$as_echo "$enable_static" >&6; }
  34675. - # Set some defaults for GNU ld with shared library support. These
  34676. - # are reset later if shared libraries are not supported. Putting them
  34677. - # here allows them to be overridden if necessary.
  34678. - runpath_var=LD_RUN_PATH
  34679. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  34680. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  34681. - # ancient GNU ld didn't support --whole-archive et. al.
  34682. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34683. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34684. - else
  34685. - whole_archive_flag_spec_F77=
  34686. - fi
  34687. - supports_anon_versioning=no
  34688. - case `$LD -v 2>/dev/null` in
  34689. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34690. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34691. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34692. - *\ 2.11.*) ;; # other 2.11 versions
  34693. - *) supports_anon_versioning=yes ;;
  34694. - esac
  34695. - # See if GNU ld supports shared libraries.
  34696. - case $host_os in
  34697. - aix[3-9]*)
  34698. - # On AIX/PPC, the GNU linker is very broken
  34699. - if test "$host_cpu" != ia64; then
  34700. - ld_shlibs_F77=no
  34701. - cat <<EOF 1>&2
  34702. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34703. -*** to be unable to reliably create shared libraries on AIX.
  34704. -*** Therefore, libtool is disabling shared libraries support. If you
  34705. -*** really care for shared libraries, you may want to modify your PATH
  34706. -*** so that a non-GNU linker is found, and then restart.
  34707. -EOF
  34708. - fi
  34709. - ;;
  34710. +fi
  34711. +ac_ext=c
  34712. +ac_cpp='$CPP $CPPFLAGS'
  34713. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34714. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34715. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34716. - amigaos*)
  34717. - 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)'
  34718. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34719. - hardcode_minus_L_F77=yes
  34720. -
  34721. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34722. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34723. - # to version 4, is to share data among multiple programs linked
  34724. - # with the same dynamic library. Since this doesn't match the
  34725. - # behavior of shared libraries on other platforms, we can't use
  34726. - # them.
  34727. - ld_shlibs_F77=no
  34728. - ;;
  34729. +CC="$lt_save_CC"
  34730. - beos*)
  34731. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34732. - allow_undefined_flag_F77=unsupported
  34733. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34734. - # support --undefined. This deserves some investigation. FIXME
  34735. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34736. - else
  34737. - ld_shlibs_F77=no
  34738. - fi
  34739. - ;;
  34740. - cygwin* | mingw* | pw32*)
  34741. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  34742. - # as there is no search path for DLLs.
  34743. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34744. - allow_undefined_flag_F77=unsupported
  34745. - always_export_symbols_F77=no
  34746. - enable_shared_with_static_runtimes_F77=yes
  34747. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34748. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34749. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34750. - # If the export-symbols file already is a .def file (1st line
  34751. - # is EXPORTS), use it as is; otherwise, prepend...
  34752. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34753. - cp $export_symbols $output_objdir/$soname.def;
  34754. - else
  34755. - echo EXPORTS > $output_objdir/$soname.def;
  34756. - cat $export_symbols >> $output_objdir/$soname.def;
  34757. - fi~
  34758. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34759. - else
  34760. - ld_shlibs_F77=no
  34761. - fi
  34762. - ;;
  34763. - interix[3-9]*)
  34764. - hardcode_direct_F77=no
  34765. - hardcode_shlibpath_var_F77=no
  34766. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34767. - export_dynamic_flag_spec_F77='${wl}-E'
  34768. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34769. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  34770. - # default) and relocated if they conflict, which is a slow very memory
  34771. - # consuming and fragmenting process. To avoid this, we pick a random,
  34772. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34773. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34774. - 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'
  34775. - 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'
  34776. - ;;
  34777. - gnu* | linux* | k*bsd*-gnu)
  34778. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34779. - tmp_addflag=
  34780. - case $cc_basename,$host_cpu in
  34781. - pgcc*) # Portland Group C compiler
  34782. - 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'
  34783. - tmp_addflag=' $pic_flag'
  34784. - ;;
  34785. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34786. - 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'
  34787. - tmp_addflag=' $pic_flag -Mnomain' ;;
  34788. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34789. - tmp_addflag=' -i_dynamic' ;;
  34790. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34791. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  34792. - ifc* | ifort*) # Intel Fortran compiler
  34793. - tmp_addflag=' -nofor_main' ;;
  34794. - esac
  34795. - case `$CC -V 2>&1 | sed 5q` in
  34796. - *Sun\ C*) # Sun C 5.9
  34797. - whole_archive_flag_spec_F77='${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'
  34798. - tmp_sharedflag='-G' ;;
  34799. - *Sun\ F*) # Sun Fortran 8.3
  34800. - tmp_sharedflag='-G' ;;
  34801. - *)
  34802. - tmp_sharedflag='-shared' ;;
  34803. - esac
  34804. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34805. - if test $supports_anon_versioning = yes; then
  34806. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  34807. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34808. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34809. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34810. - fi
  34811. - else
  34812. - ld_shlibs_F77=no
  34813. - fi
  34814. - ;;
  34815. - netbsd*)
  34816. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34817. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34818. - wlarc=
  34819. - else
  34820. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34821. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34822. - fi
  34823. - ;;
  34824. - solaris*)
  34825. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34826. - ld_shlibs_F77=no
  34827. - cat <<EOF 1>&2
  34828. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34829. -*** create shared libraries on Solaris systems. Therefore, libtool
  34830. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34831. -*** binutils to release 2.9.1 or newer. Another option is to modify
  34832. -*** your PATH or compiler configuration so that the native linker is
  34833. -*** used, and then restart.
  34834. -EOF
  34835. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34836. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34837. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34838. - else
  34839. - ld_shlibs_F77=no
  34840. - fi
  34841. - ;;
  34842. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34843. - case `$LD -v 2>&1` in
  34844. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34845. - ld_shlibs_F77=no
  34846. - cat <<_LT_EOF 1>&2
  34847. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34848. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  34849. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34850. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34851. -*** your PATH or compiler configuration so that the native linker is
  34852. -*** used, and then restart.
  34853. -_LT_EOF
  34854. - ;;
  34855. - *)
  34856. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34857. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34858. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34859. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34860. - else
  34861. - ld_shlibs_F77=no
  34862. - fi
  34863. - ;;
  34864. - esac
  34865. - ;;
  34866. + ac_config_commands="$ac_config_commands libtool"
  34867. - sunos4*)
  34868. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34869. - wlarc=
  34870. - hardcode_direct_F77=yes
  34871. - hardcode_shlibpath_var_F77=no
  34872. - ;;
  34873. - *)
  34874. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34875. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34876. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34877. - else
  34878. - ld_shlibs_F77=no
  34879. - fi
  34880. - ;;
  34881. - esac
  34882. - if test "$ld_shlibs_F77" = no; then
  34883. - runpath_var=
  34884. - hardcode_libdir_flag_spec_F77=
  34885. - export_dynamic_flag_spec_F77=
  34886. - whole_archive_flag_spec_F77=
  34887. - fi
  34888. - else
  34889. - # PORTME fill in a description of your system's linker (not GNU ld)
  34890. - case $host_os in
  34891. - aix3*)
  34892. - allow_undefined_flag_F77=unsupported
  34893. - always_export_symbols_F77=yes
  34894. - 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'
  34895. - # Note: this linker hardcodes the directories in LIBPATH if there
  34896. - # are no directories specified by -L.
  34897. - hardcode_minus_L_F77=yes
  34898. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34899. - # Neither direct hardcoding nor static linking is supported with a
  34900. - # broken collect2.
  34901. - hardcode_direct_F77=unsupported
  34902. - fi
  34903. - ;;
  34904. - aix[4-9]*)
  34905. - if test "$host_cpu" = ia64; then
  34906. - # On IA64, the linker does run time linking by default, so we don't
  34907. - # have to do anything special.
  34908. - aix_use_runtimelinking=no
  34909. - exp_sym_flag='-Bexport'
  34910. - no_entry_flag=""
  34911. - else
  34912. - # If we're using GNU nm, then we don't want the "-C" option.
  34913. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34914. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34915. - 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'
  34916. - else
  34917. - 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'
  34918. - fi
  34919. - aix_use_runtimelinking=no
  34920. +# Only expand once:
  34921. - # Test if we are trying to use run time linking or normal
  34922. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34923. - # need to do runtime linking.
  34924. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34925. - for ld_flag in $LDFLAGS; do
  34926. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34927. - aix_use_runtimelinking=yes
  34928. - break
  34929. - fi
  34930. - done
  34931. - ;;
  34932. - esac
  34933. - exp_sym_flag='-bexport'
  34934. - no_entry_flag='-bnoentry'
  34935. - fi
  34936. - # When large executables or shared objects are built, AIX ld can
  34937. - # have problems creating the table of contents. If linking a library
  34938. - # or program results in "error TOC overflow" add -mminimal-toc to
  34939. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34940. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34941. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  34942. +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  34943. +if test "${ac_cv_prog_cc_c99+set}" = set; then :
  34944. + $as_echo_n "(cached) " >&6
  34945. +else
  34946. + ac_cv_prog_cc_c99=no
  34947. +ac_save_CC=$CC
  34948. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34949. +/* end confdefs.h. */
  34950. +#include <stdarg.h>
  34951. +#include <stdbool.h>
  34952. +#include <stdlib.h>
  34953. +#include <wchar.h>
  34954. +#include <stdio.h>
  34955. - archive_cmds_F77=''
  34956. - hardcode_direct_F77=yes
  34957. - hardcode_libdir_separator_F77=':'
  34958. - link_all_deplibs_F77=yes
  34959. +// Check varargs macros. These examples are taken from C99 6.10.3.5.
  34960. +#define debug(...) fprintf (stderr, __VA_ARGS__)
  34961. +#define showlist(...) puts (#__VA_ARGS__)
  34962. +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  34963. +static void
  34964. +test_varargs_macros (void)
  34965. +{
  34966. + int x = 1234;
  34967. + int y = 5678;
  34968. + debug ("Flag");
  34969. + debug ("X = %d\n", x);
  34970. + showlist (The first, second, and third items.);
  34971. + report (x>y, "x is %d but y is %d", x, y);
  34972. +}
  34973. - if test "$GCC" = yes; then
  34974. - case $host_os in aix4.[012]|aix4.[012].*)
  34975. - # We only want to do this on AIX 4.2 and lower, the check
  34976. - # below for broken collect2 doesn't work under 4.3+
  34977. - collect2name=`${CC} -print-prog-name=collect2`
  34978. - if test -f "$collect2name" && \
  34979. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34980. - then
  34981. - # We have reworked collect2
  34982. - :
  34983. - else
  34984. - # We have old collect2
  34985. - hardcode_direct_F77=unsupported
  34986. - # It fails to find uninstalled libraries when the uninstalled
  34987. - # path is not listed in the libpath. Setting hardcode_minus_L
  34988. - # to unsupported forces relinking
  34989. - hardcode_minus_L_F77=yes
  34990. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34991. - hardcode_libdir_separator_F77=
  34992. - fi
  34993. - ;;
  34994. - esac
  34995. - shared_flag='-shared'
  34996. - if test "$aix_use_runtimelinking" = yes; then
  34997. - shared_flag="$shared_flag "'${wl}-G'
  34998. - fi
  34999. - else
  35000. - # not using gcc
  35001. - if test "$host_cpu" = ia64; then
  35002. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35003. - # chokes on -Wl,-G. The following line is correct:
  35004. - shared_flag='-G'
  35005. - else
  35006. - if test "$aix_use_runtimelinking" = yes; then
  35007. - shared_flag='${wl}-G'
  35008. - else
  35009. - shared_flag='${wl}-bM:SRE'
  35010. - fi
  35011. - fi
  35012. - fi
  35013. -
  35014. - # It seems that -bexpall does not export symbols beginning with
  35015. - # underscore (_), so it is better to generate a list of symbols to export.
  35016. - always_export_symbols_F77=yes
  35017. - if test "$aix_use_runtimelinking" = yes; then
  35018. - # Warning - without using the other runtime loading flags (-brtl),
  35019. - # -berok will link without error, but may produce a broken library.
  35020. - allow_undefined_flag_F77='-berok'
  35021. - # Determine the default libpath from the value encoded in an empty executable.
  35022. - cat >conftest.$ac_ext <<_ACEOF
  35023. - program main
  35024. -
  35025. - end
  35026. -_ACEOF
  35027. -rm -f conftest.$ac_objext conftest$ac_exeext
  35028. -if { (ac_try="$ac_link"
  35029. -case "(($ac_try" in
  35030. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35031. - *) ac_try_echo=$ac_try;;
  35032. -esac
  35033. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35034. -$as_echo "$ac_try_echo") >&5
  35035. - (eval "$ac_link") 2>conftest.er1
  35036. - ac_status=$?
  35037. - grep -v '^ *+' conftest.er1 >conftest.err
  35038. - rm -f conftest.er1
  35039. - cat conftest.err >&5
  35040. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35041. - (exit $ac_status); } && {
  35042. - test -z "$ac_f77_werror_flag" ||
  35043. - test ! -s conftest.err
  35044. - } && test -s conftest$ac_exeext && {
  35045. - test "$cross_compiling" = yes ||
  35046. - $as_test_x conftest$ac_exeext
  35047. - }; then
  35048. +// Check long long types.
  35049. +#define BIG64 18446744073709551615ull
  35050. +#define BIG32 4294967295ul
  35051. +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  35052. +#if !BIG_OK
  35053. + your preprocessor is broken;
  35054. +#endif
  35055. +#if BIG_OK
  35056. +#else
  35057. + your preprocessor is broken;
  35058. +#endif
  35059. +static long long int bignum = -9223372036854775807LL;
  35060. +static unsigned long long int ubignum = BIG64;
  35061. -lt_aix_libpath_sed='
  35062. - /Import File Strings/,/^$/ {
  35063. - /^0/ {
  35064. - s/^0 *\(.*\)$/\1/
  35065. - p
  35066. - }
  35067. - }'
  35068. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35069. -# Check for a 64-bit object if we didn't find anything.
  35070. -if test -z "$aix_libpath"; then
  35071. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35072. -fi
  35073. -else
  35074. - $as_echo "$as_me: failed program was:" >&5
  35075. -sed 's/^/| /' conftest.$ac_ext >&5
  35076. +struct incomplete_array
  35077. +{
  35078. + int datasize;
  35079. + double data[];
  35080. +};
  35081. +struct named_init {
  35082. + int number;
  35083. + const wchar_t *name;
  35084. + double average;
  35085. +};
  35086. -fi
  35087. +typedef const char *ccp;
  35088. -rm -rf conftest.dSYM
  35089. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35090. - conftest$ac_exeext conftest.$ac_ext
  35091. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35092. +static inline int
  35093. +test_restrict (ccp restrict text)
  35094. +{
  35095. + // See if C++-style comments work.
  35096. + // Iterate through items via the restricted pointer.
  35097. + // Also check for declarations in for loops.
  35098. + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  35099. + continue;
  35100. + return 0;
  35101. +}
  35102. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35103. - 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"
  35104. - else
  35105. - if test "$host_cpu" = ia64; then
  35106. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  35107. - allow_undefined_flag_F77="-z nodefs"
  35108. - 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"
  35109. - else
  35110. - # Determine the default libpath from the value encoded in an empty executable.
  35111. - cat >conftest.$ac_ext <<_ACEOF
  35112. - program main
  35113. +// Check varargs and va_copy.
  35114. +static void
  35115. +test_varargs (const char *format, ...)
  35116. +{
  35117. + va_list args;
  35118. + va_start (args, format);
  35119. + va_list args_copy;
  35120. + va_copy (args_copy, args);
  35121. - end
  35122. -_ACEOF
  35123. -rm -f conftest.$ac_objext conftest$ac_exeext
  35124. -if { (ac_try="$ac_link"
  35125. -case "(($ac_try" in
  35126. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35127. - *) ac_try_echo=$ac_try;;
  35128. -esac
  35129. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  35130. -$as_echo "$ac_try_echo") >&5
  35131. - (eval "$ac_link") 2>conftest.er1
  35132. - ac_status=$?
  35133. - grep -v '^ *+' conftest.er1 >conftest.err
  35134. - rm -f conftest.er1
  35135. - cat conftest.err >&5
  35136. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35137. - (exit $ac_status); } && {
  35138. - test -z "$ac_f77_werror_flag" ||
  35139. - test ! -s conftest.err
  35140. - } && test -s conftest$ac_exeext && {
  35141. - test "$cross_compiling" = yes ||
  35142. - $as_test_x conftest$ac_exeext
  35143. - }; then
  35144. + const char *str;
  35145. + int number;
  35146. + float fnumber;
  35147. -lt_aix_libpath_sed='
  35148. - /Import File Strings/,/^$/ {
  35149. - /^0/ {
  35150. - s/^0 *\(.*\)$/\1/
  35151. - p
  35152. + while (*format)
  35153. + {
  35154. + switch (*format++)
  35155. + {
  35156. + case 's': // string
  35157. + str = va_arg (args_copy, const char *);
  35158. + break;
  35159. + case 'd': // int
  35160. + number = va_arg (args_copy, int);
  35161. + break;
  35162. + case 'f': // float
  35163. + fnumber = va_arg (args_copy, double);
  35164. + break;
  35165. + default:
  35166. + break;
  35167. }
  35168. - }'
  35169. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35170. -# Check for a 64-bit object if we didn't find anything.
  35171. -if test -z "$aix_libpath"; then
  35172. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35173. -fi
  35174. -else
  35175. - $as_echo "$as_me: failed program was:" >&5
  35176. -sed 's/^/| /' conftest.$ac_ext >&5
  35177. + }
  35178. + va_end (args_copy);
  35179. + va_end (args);
  35180. +}
  35181. +int
  35182. +main ()
  35183. +{
  35184. -fi
  35185. + // Check bool.
  35186. + _Bool success = false;
  35187. -rm -rf conftest.dSYM
  35188. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35189. - conftest$ac_exeext conftest.$ac_ext
  35190. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35191. + // Check restrict.
  35192. + if (test_restrict ("String literal") == 0)
  35193. + success = true;
  35194. + char *restrict newvar = "Another string";
  35195. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35196. - # Warning - without using the other run time loading flags,
  35197. - # -berok will link without error, but may produce a broken library.
  35198. - no_undefined_flag_F77=' ${wl}-bernotok'
  35199. - allow_undefined_flag_F77=' ${wl}-berok'
  35200. - # Exported symbols can be pulled into shared objects from archives
  35201. - whole_archive_flag_spec_F77='$convenience'
  35202. - archive_cmds_need_lc_F77=yes
  35203. - # This is similar to how AIX traditionally builds its shared libraries.
  35204. - 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'
  35205. - fi
  35206. - fi
  35207. - ;;
  35208. + // Check varargs.
  35209. + test_varargs ("s, d' f .", "string", 65, 34.234);
  35210. + test_varargs_macros ();
  35211. - amigaos*)
  35212. - 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)'
  35213. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35214. - hardcode_minus_L_F77=yes
  35215. - # see comment about different semantics on the GNU ld section
  35216. - ld_shlibs_F77=no
  35217. - ;;
  35218. + // Check flexible array members.
  35219. + struct incomplete_array *ia =
  35220. + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  35221. + ia->datasize = 10;
  35222. + for (int i = 0; i < ia->datasize; ++i)
  35223. + ia->data[i] = i * 1.234;
  35224. - bsdi[45]*)
  35225. - export_dynamic_flag_spec_F77=-rdynamic
  35226. - ;;
  35227. + // Check named initializers.
  35228. + struct named_init ni = {
  35229. + .number = 34,
  35230. + .name = L"Test wide string",
  35231. + .average = 543.34343,
  35232. + };
  35233. - cygwin* | mingw* | pw32*)
  35234. - # When not using gcc, we currently assume that we are using
  35235. - # Microsoft Visual C++.
  35236. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35237. - # no search path for DLLs.
  35238. - hardcode_libdir_flag_spec_F77=' '
  35239. - allow_undefined_flag_F77=unsupported
  35240. - # Tell ltmain to make .lib files, not .a files.
  35241. - libext=lib
  35242. - # Tell ltmain to make .dll files, not .so files.
  35243. - shrext_cmds=".dll"
  35244. - # FIXME: Setting linknames here is a bad hack.
  35245. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35246. - # The linker will automatically build a .lib file if we build a DLL.
  35247. - old_archive_From_new_cmds_F77='true'
  35248. - # FIXME: Should let the user specify the lib program.
  35249. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  35250. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  35251. - enable_shared_with_static_runtimes_F77=yes
  35252. - ;;
  35253. + ni.number = 58;
  35254. - darwin* | rhapsody*)
  35255. - case $host_os in
  35256. - rhapsody* | darwin1.[012])
  35257. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  35258. - ;;
  35259. - *) # Darwin 1.3 on
  35260. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35261. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35262. - else
  35263. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35264. - 10.[012])
  35265. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35266. - ;;
  35267. - 10.*)
  35268. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  35269. - ;;
  35270. - esac
  35271. - fi
  35272. - ;;
  35273. - esac
  35274. - archive_cmds_need_lc_F77=no
  35275. - hardcode_direct_F77=no
  35276. - hardcode_automatic_F77=yes
  35277. - hardcode_shlibpath_var_F77=unsupported
  35278. - whole_archive_flag_spec_F77=''
  35279. - link_all_deplibs_F77=yes
  35280. - if test "$GCC" = yes ; then
  35281. - output_verbose_link_cmd='echo'
  35282. - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  35283. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35284. - archive_expsym_cmds_F77="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}"
  35285. - module_expsym_cmds_F77="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}"
  35286. - else
  35287. - case $cc_basename in
  35288. - xlc*)
  35289. - output_verbose_link_cmd='echo'
  35290. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  35291. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35292. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35293. - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35294. - 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}'
  35295. - ;;
  35296. - *)
  35297. - ld_shlibs_F77=no
  35298. - ;;
  35299. - esac
  35300. - fi
  35301. - ;;
  35302. + int dynamic_array[ni.number];
  35303. + dynamic_array[ni.number - 1] = 543;
  35304. - dgux*)
  35305. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35306. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35307. - hardcode_shlibpath_var_F77=no
  35308. - ;;
  35309. + // work around unused variable warnings
  35310. + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  35311. + || dynamic_array[ni.number - 1] != 543);
  35312. - freebsd1*)
  35313. - ld_shlibs_F77=no
  35314. - ;;
  35315. + ;
  35316. + return 0;
  35317. +}
  35318. +_ACEOF
  35319. +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  35320. +do
  35321. + CC="$ac_save_CC $ac_arg"
  35322. + if ac_fn_c_try_compile "$LINENO"; then :
  35323. + ac_cv_prog_cc_c99=$ac_arg
  35324. +fi
  35325. +rm -f core conftest.err conftest.$ac_objext
  35326. + test "x$ac_cv_prog_cc_c99" != "xno" && break
  35327. +done
  35328. +rm -f conftest.$ac_ext
  35329. +CC=$ac_save_CC
  35330. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35331. - # support. Future versions do this automatically, but an explicit c++rt0.o
  35332. - # does not break anything, and helps significantly (at the cost of a little
  35333. - # extra space).
  35334. - freebsd2.2*)
  35335. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35336. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35337. - hardcode_direct_F77=yes
  35338. - hardcode_shlibpath_var_F77=no
  35339. - ;;
  35340. +fi
  35341. +# AC_CACHE_VAL
  35342. +case "x$ac_cv_prog_cc_c99" in
  35343. + x)
  35344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  35345. +$as_echo "none needed" >&6; } ;;
  35346. + xno)
  35347. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  35348. +$as_echo "unsupported" >&6; } ;;
  35349. + *)
  35350. + CC="$CC $ac_cv_prog_cc_c99"
  35351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  35352. +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  35353. +esac
  35354. +if test "x$ac_cv_prog_cc_c99" != xno; then :
  35355. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35356. - freebsd2*)
  35357. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35358. - hardcode_direct_F77=yes
  35359. - hardcode_minus_L_F77=yes
  35360. - hardcode_shlibpath_var_F77=no
  35361. - ;;
  35362. +fi
  35363. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35364. - freebsd* | dragonfly*)
  35365. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35366. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35367. - hardcode_direct_F77=yes
  35368. - hardcode_shlibpath_var_F77=no
  35369. - ;;
  35370. - hpux9*)
  35371. - if test "$GCC" = yes; then
  35372. - 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'
  35373. - else
  35374. - 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'
  35375. - fi
  35376. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35377. - hardcode_libdir_separator_F77=:
  35378. - hardcode_direct_F77=yes
  35379. - # hardcode_minus_L: Not really in the search PATH,
  35380. - # but as the default location of the library.
  35381. - hardcode_minus_L_F77=yes
  35382. - export_dynamic_flag_spec_F77='${wl}-E'
  35383. - ;;
  35384. - hpux10*)
  35385. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35386. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35387. - else
  35388. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35389. - fi
  35390. - if test "$with_gnu_ld" = no; then
  35391. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35392. - hardcode_libdir_separator_F77=:
  35393. +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  35394. + if test -n "$ac_tool_prefix"; then
  35395. + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  35396. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  35397. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35398. +$as_echo_n "checking for $ac_word... " >&6; }
  35399. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  35400. + $as_echo_n "(cached) " >&6
  35401. +else
  35402. + case $PKG_CONFIG in
  35403. + [\\/]* | ?:[\\/]*)
  35404. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  35405. + ;;
  35406. + *)
  35407. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35408. +for as_dir in $PATH
  35409. +do
  35410. + IFS=$as_save_IFS
  35411. + test -z "$as_dir" && as_dir=.
  35412. + for ac_exec_ext in '' $ac_executable_extensions; do
  35413. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35414. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  35415. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35416. + break 2
  35417. + fi
  35418. +done
  35419. + done
  35420. +IFS=$as_save_IFS
  35421. - hardcode_direct_F77=yes
  35422. - export_dynamic_flag_spec_F77='${wl}-E'
  35423. + ;;
  35424. +esac
  35425. +fi
  35426. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  35427. +if test -n "$PKG_CONFIG"; then
  35428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  35429. +$as_echo "$PKG_CONFIG" >&6; }
  35430. +else
  35431. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35432. +$as_echo "no" >&6; }
  35433. +fi
  35434. - # hardcode_minus_L: Not really in the search PATH,
  35435. - # but as the default location of the library.
  35436. - hardcode_minus_L_F77=yes
  35437. - fi
  35438. - ;;
  35439. - hpux11*)
  35440. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35441. - case $host_cpu in
  35442. - hppa*64*)
  35443. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35444. - ;;
  35445. - ia64*)
  35446. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35447. - ;;
  35448. - *)
  35449. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35450. - ;;
  35451. - esac
  35452. - else
  35453. - case $host_cpu in
  35454. - hppa*64*)
  35455. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35456. - ;;
  35457. - ia64*)
  35458. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35459. - ;;
  35460. - *)
  35461. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35462. - ;;
  35463. - esac
  35464. - fi
  35465. - if test "$with_gnu_ld" = no; then
  35466. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  35467. - hardcode_libdir_separator_F77=:
  35468. +fi
  35469. +if test -z "$ac_cv_path_PKG_CONFIG"; then
  35470. + ac_pt_PKG_CONFIG=$PKG_CONFIG
  35471. + # Extract the first word of "pkg-config", so it can be a program name with args.
  35472. +set dummy pkg-config; ac_word=$2
  35473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35474. +$as_echo_n "checking for $ac_word... " >&6; }
  35475. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  35476. + $as_echo_n "(cached) " >&6
  35477. +else
  35478. + case $ac_pt_PKG_CONFIG in
  35479. + [\\/]* | ?:[\\/]*)
  35480. + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  35481. + ;;
  35482. + *)
  35483. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35484. +for as_dir in $PATH
  35485. +do
  35486. + IFS=$as_save_IFS
  35487. + test -z "$as_dir" && as_dir=.
  35488. + for ac_exec_ext in '' $ac_executable_extensions; do
  35489. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35490. + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  35491. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35492. + break 2
  35493. + fi
  35494. +done
  35495. + done
  35496. +IFS=$as_save_IFS
  35497. - case $host_cpu in
  35498. - hppa*64*|ia64*)
  35499. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  35500. - hardcode_direct_F77=no
  35501. - hardcode_shlibpath_var_F77=no
  35502. - ;;
  35503. - *)
  35504. - hardcode_direct_F77=yes
  35505. - export_dynamic_flag_spec_F77='${wl}-E'
  35506. + ;;
  35507. +esac
  35508. +fi
  35509. +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  35510. +if test -n "$ac_pt_PKG_CONFIG"; then
  35511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  35512. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  35513. +else
  35514. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35515. +$as_echo "no" >&6; }
  35516. +fi
  35517. - # hardcode_minus_L: Not really in the search PATH,
  35518. - # but as the default location of the library.
  35519. - hardcode_minus_L_F77=yes
  35520. - ;;
  35521. - esac
  35522. - fi
  35523. - ;;
  35524. + if test "x$ac_pt_PKG_CONFIG" = x; then
  35525. + PKG_CONFIG=""
  35526. + else
  35527. + case $cross_compiling:$ac_tool_warned in
  35528. +yes:)
  35529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  35530. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  35531. +ac_tool_warned=yes ;;
  35532. +esac
  35533. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  35534. + fi
  35535. +else
  35536. + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  35537. +fi
  35538. - irix5* | irix6* | nonstopux*)
  35539. - if test "$GCC" = yes; then
  35540. - 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'
  35541. - else
  35542. - 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'
  35543. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  35544. - fi
  35545. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35546. - hardcode_libdir_separator_F77=:
  35547. - link_all_deplibs_F77=yes
  35548. - ;;
  35549. +fi
  35550. +if test -n "$PKG_CONFIG"; then
  35551. + _pkg_min_version=0.9.0
  35552. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  35553. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  35554. + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  35555. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  35556. +$as_echo "yes" >&6; }
  35557. + else
  35558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35559. +$as_echo "no" >&6; }
  35560. + PKG_CONFIG=""
  35561. + fi
  35562. - netbsd*)
  35563. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35564. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35565. - else
  35566. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35567. - fi
  35568. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35569. - hardcode_direct_F77=yes
  35570. - hardcode_shlibpath_var_F77=no
  35571. - ;;
  35572. +fi
  35573. - newsos6)
  35574. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35575. - hardcode_direct_F77=yes
  35576. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35577. - hardcode_libdir_separator_F77=:
  35578. - hardcode_shlibpath_var_F77=no
  35579. - ;;
  35580. - openbsd*)
  35581. - if test -f /usr/libexec/ld.so; then
  35582. - hardcode_direct_F77=yes
  35583. - hardcode_shlibpath_var_F77=no
  35584. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35585. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35586. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35587. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  35588. - export_dynamic_flag_spec_F77='${wl}-E'
  35589. - else
  35590. - case $host_os in
  35591. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35592. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35593. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35594. - ;;
  35595. - *)
  35596. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35597. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  35598. - ;;
  35599. - esac
  35600. - fi
  35601. - else
  35602. - ld_shlibs_F77=no
  35603. - fi
  35604. - ;;
  35605. - os2*)
  35606. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35607. - hardcode_minus_L_F77=yes
  35608. - allow_undefined_flag_F77=unsupported
  35609. - 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'
  35610. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35611. - ;;
  35612. +if test "x$GCC" = xyes ; then
  35613. + CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  35614. +-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  35615. +-Wbad-function-cast"
  35616. + case `$CC -dumpversion` in
  35617. + 3.4.* | 4.*)
  35618. + CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  35619. + ;;
  35620. + esac
  35621. +else
  35622. + ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  35623. +if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
  35624. + SUNCC="yes"
  35625. +else
  35626. + SUNCC="no"
  35627. +fi
  35628. - osf3*)
  35629. - if test "$GCC" = yes; then
  35630. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  35631. - 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'
  35632. - else
  35633. - allow_undefined_flag_F77=' -expect_unresolved \*'
  35634. - 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'
  35635. - fi
  35636. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35637. - hardcode_libdir_separator_F77=:
  35638. - ;;
  35639. + if test "x$SUNCC" = "xyes"; then
  35640. + CWARNFLAGS="-v"
  35641. + fi
  35642. +fi
  35643. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  35644. - if test "$GCC" = yes; then
  35645. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  35646. - 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'
  35647. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  35648. - else
  35649. - allow_undefined_flag_F77=' -expect_unresolved \*'
  35650. - 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'
  35651. - 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~
  35652. - $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'
  35653. +# Check whether --enable-silent-rules was given.
  35654. +if test "${enable_silent_rules+set}" = set; then :
  35655. + enableval=$enable_silent_rules;
  35656. +fi
  35657. - # Both c and cxx compiler support -rpath directly
  35658. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  35659. - fi
  35660. - hardcode_libdir_separator_F77=:
  35661. - ;;
  35662. +case $enable_silent_rules in
  35663. +yes) AM_DEFAULT_VERBOSITY=0;;
  35664. +no) AM_DEFAULT_VERBOSITY=1;;
  35665. +*) AM_DEFAULT_VERBOSITY=0;;
  35666. +esac
  35667. +AM_BACKSLASH='\'
  35668. - solaris*)
  35669. - no_undefined_flag_F77=' -z text'
  35670. - if test "$GCC" = yes; then
  35671. - wlarc='${wl}'
  35672. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35673. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35674. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35675. - else
  35676. - wlarc=''
  35677. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35678. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35679. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35680. - fi
  35681. - hardcode_libdir_flag_spec_F77='-R$libdir'
  35682. - hardcode_shlibpath_var_F77=no
  35683. - case $host_os in
  35684. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35685. - *)
  35686. - # The compiler driver will combine and reorder linker options,
  35687. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  35688. - # but is careful enough not to reorder.
  35689. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35690. - if test "$GCC" = yes; then
  35691. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35692. - else
  35693. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  35694. - fi
  35695. - ;;
  35696. - esac
  35697. - link_all_deplibs_F77=yes
  35698. - ;;
  35699. - sunos4*)
  35700. - if test "x$host_vendor" = xsequent; then
  35701. - # Use $CC to link under sequent, because it throws in some extra .o
  35702. - # files that make .init and .fini sections work.
  35703. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35704. - else
  35705. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35706. - fi
  35707. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35708. - hardcode_direct_F77=yes
  35709. - hardcode_minus_L_F77=yes
  35710. - hardcode_shlibpath_var_F77=no
  35711. - ;;
  35712. - sysv4)
  35713. - case $host_vendor in
  35714. - sni)
  35715. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35716. - hardcode_direct_F77=yes # is this really true???
  35717. - ;;
  35718. - siemens)
  35719. - ## LD is ld it makes a PLAMLIB
  35720. - ## CC just makes a GrossModule.
  35721. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35722. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  35723. - hardcode_direct_F77=no
  35724. - ;;
  35725. - motorola)
  35726. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35727. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  35728. - ;;
  35729. - esac
  35730. - runpath_var='LD_RUN_PATH'
  35731. - hardcode_shlibpath_var_F77=no
  35732. - ;;
  35733. - sysv4.3*)
  35734. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35735. - hardcode_shlibpath_var_F77=no
  35736. - export_dynamic_flag_spec_F77='-Bexport'
  35737. - ;;
  35738. - sysv4*MP*)
  35739. - if test -d /usr/nec; then
  35740. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35741. - hardcode_shlibpath_var_F77=no
  35742. - runpath_var=LD_RUN_PATH
  35743. - hardcode_runpath_var=yes
  35744. - ld_shlibs_F77=yes
  35745. - fi
  35746. - ;;
  35747. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35748. - no_undefined_flag_F77='${wl}-z,text'
  35749. - archive_cmds_need_lc_F77=no
  35750. - hardcode_shlibpath_var_F77=no
  35751. - runpath_var='LD_RUN_PATH'
  35752. - if test "$GCC" = yes; then
  35753. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35754. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35755. - else
  35756. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35757. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35758. - fi
  35759. - ;;
  35760. +# Check whether --enable-strict-compilation was given.
  35761. +if test "${enable_strict_compilation+set}" = set; then :
  35762. + enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  35763. +else
  35764. + STRICT_COMPILE=no
  35765. +fi
  35766. - sysv5* | sco3.2v5* | sco5v6*)
  35767. - # Note: We can NOT use -z defs as we might desire, because we do not
  35768. - # link with -lc, and that would cause any symbols used from libc to
  35769. - # always be unresolved, which means just about no library would
  35770. - # ever link correctly. If we're not using GNU ld we use -z text
  35771. - # though, which does catch some bad symbols but isn't as heavy-handed
  35772. - # as -z defs.
  35773. - no_undefined_flag_F77='${wl}-z,text'
  35774. - allow_undefined_flag_F77='${wl}-z,nodefs'
  35775. - archive_cmds_need_lc_F77=no
  35776. - hardcode_shlibpath_var_F77=no
  35777. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35778. - hardcode_libdir_separator_F77=':'
  35779. - link_all_deplibs_F77=yes
  35780. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  35781. - runpath_var='LD_RUN_PATH'
  35782. -
  35783. - if test "$GCC" = yes; then
  35784. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35785. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35786. - else
  35787. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35788. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35789. - fi
  35790. - ;;
  35791. +if test "x$STRICT_COMPILE" = "xyes"; then
  35792. + ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  35793. +if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
  35794. + SUNCC="yes"
  35795. +else
  35796. + SUNCC="no"
  35797. +fi
  35798. - uts4*)
  35799. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35800. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35801. - hardcode_shlibpath_var_F77=no
  35802. - ;;
  35803. + ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  35804. +if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
  35805. + INTELCC="yes"
  35806. +else
  35807. + INTELCC="no"
  35808. +fi
  35809. - *)
  35810. - ld_shlibs_F77=no
  35811. - ;;
  35812. - esac
  35813. - fi
  35814. + if test "x$GCC" = xyes ; then
  35815. + STRICT_CFLAGS="-pedantic -Werror"
  35816. + elif test "x$SUNCC" = "xyes"; then
  35817. + STRICT_CFLAGS="-errwarn"
  35818. + elif test "x$INTELCC" = "xyes"; then
  35819. + STRICT_CFLAGS="-Werror"
  35820. + fi
  35821. +fi
  35822. +CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  35823. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  35824. -$as_echo "$ld_shlibs_F77" >&6; }
  35825. -test "$ld_shlibs_F77" = no && can_build_shared=no
  35826. -#
  35827. -# Do we need to explicitly link libc?
  35828. -#
  35829. -case "x$archive_cmds_need_lc_F77" in
  35830. -x|xyes)
  35831. - # Assume -lc should be added
  35832. - archive_cmds_need_lc_F77=yes
  35833. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  35834. - case $archive_cmds_F77 in
  35835. - *'~'*)
  35836. - # FIXME: we may have to deal with multi-command sequences.
  35837. - ;;
  35838. - '$CC '*)
  35839. - # Test whether the compiler implicitly links with -lc since on some
  35840. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35841. - # to ld, don't add -lc before -lgcc.
  35842. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35843. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35844. - $rm conftest*
  35845. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35846. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35847. - (eval $ac_compile) 2>&5
  35848. - ac_status=$?
  35849. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35850. - (exit $ac_status); } 2>conftest.err; then
  35851. - soname=conftest
  35852. - lib=conftest
  35853. - libobjs=conftest.$ac_objext
  35854. - deplibs=
  35855. - wl=$lt_prog_compiler_wl_F77
  35856. - pic_flag=$lt_prog_compiler_pic_F77
  35857. - compiler_flags=-v
  35858. - linker_flags=-v
  35859. - verstring=
  35860. - output_objdir=.
  35861. - libname=conftest
  35862. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  35863. - allow_undefined_flag_F77=
  35864. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35865. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35866. - ac_status=$?
  35867. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35868. - (exit $ac_status); }
  35869. - then
  35870. - archive_cmds_need_lc_F77=no
  35871. - else
  35872. - archive_cmds_need_lc_F77=yes
  35873. - fi
  35874. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  35875. - else
  35876. - cat conftest.err 1>&5
  35877. - fi
  35878. - $rm conftest*
  35879. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  35880. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  35881. - ;;
  35882. - esac
  35883. - fi
  35884. - ;;
  35885. -esac
  35886. +# Check whether --with-release-version was given.
  35887. +if test "${with_release_version+set}" = set; then :
  35888. + withval=$with_release_version; RELEASE_VERSION="$withval"
  35889. +else
  35890. + RELEASE_VERSION=""
  35891. +fi
  35892. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35893. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  35894. -library_names_spec=
  35895. -libname_spec='lib$name'
  35896. -soname_spec=
  35897. -shrext_cmds=".so"
  35898. -postinstall_cmds=
  35899. -postuninstall_cmds=
  35900. -finish_cmds=
  35901. -finish_eval=
  35902. -shlibpath_var=
  35903. -shlibpath_overrides_runpath=unknown
  35904. -version_type=none
  35905. -dynamic_linker="$host_os ld.so"
  35906. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35907. + if test "x$RELEASE_VERSION" != "x"; then
  35908. + PACKAGE="$PACKAGE-$RELEASE_VERSION"
  35909. + PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  35910. + { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
  35911. +$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
  35912. + fi
  35913. -need_lib_prefix=unknown
  35914. -hardcode_into_libs=no
  35915. +cat >>confdefs.h <<_ACEOF
  35916. +#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  35917. +_ACEOF
  35918. -# when you set need_version to no, make sure it does not cause -set_version
  35919. -# flags to be left without arguments
  35920. -need_version=unknown
  35921. + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  35922. + if test "x$PVM" = "x"; then
  35923. + PVM="0"
  35924. + fi
  35925. -case $host_os in
  35926. -aix3*)
  35927. - version_type=linux
  35928. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35929. - shlibpath_var=LIBPATH
  35930. +cat >>confdefs.h <<_ACEOF
  35931. +#define PACKAGE_VERSION_MINOR $PVM
  35932. +_ACEOF
  35933. - # AIX 3 has no versioning support, so we append a major version to the name.
  35934. - soname_spec='${libname}${release}${shared_ext}$major'
  35935. - ;;
  35936. + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  35937. + if test "x$PVP" = "x"; then
  35938. + PVP="0"
  35939. + fi
  35940. -aix[4-9]*)
  35941. - version_type=linux
  35942. - need_lib_prefix=no
  35943. - need_version=no
  35944. - hardcode_into_libs=yes
  35945. - if test "$host_cpu" = ia64; then
  35946. - # AIX 5 supports IA64
  35947. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35948. - shlibpath_var=LD_LIBRARY_PATH
  35949. - else
  35950. - # With GCC up to 2.95.x, collect2 would create an import file
  35951. - # for dependence libraries. The import file would start with
  35952. - # the line `#! .'. This would cause the generated library to
  35953. - # depend on `.', always an invalid library. This was fixed in
  35954. - # development snapshots of GCC prior to 3.0.
  35955. - case $host_os in
  35956. - aix4 | aix4.[01] | aix4.[01].*)
  35957. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35958. - echo ' yes '
  35959. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35960. - :
  35961. - else
  35962. - can_build_shared=no
  35963. - fi
  35964. - ;;
  35965. - esac
  35966. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35967. - # soname into executable. Probably we can add versioning support to
  35968. - # collect2, so additional links can be useful in future.
  35969. - if test "$aix_use_runtimelinking" = yes; then
  35970. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35971. - # instead of lib<name>.a to let people know that these are not
  35972. - # typical AIX shared libraries.
  35973. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35974. - else
  35975. - # We preserve .a as extension for shared libraries through AIX4.2
  35976. - # and later when we are not doing run time linking.
  35977. - library_names_spec='${libname}${release}.a $libname.a'
  35978. - soname_spec='${libname}${release}${shared_ext}$major'
  35979. - fi
  35980. - shlibpath_var=LIBPATH
  35981. - fi
  35982. - ;;
  35983. +cat >>confdefs.h <<_ACEOF
  35984. +#define PACKAGE_VERSION_PATCHLEVEL $PVP
  35985. +_ACEOF
  35986. -amigaos*)
  35987. - library_names_spec='$libname.ixlibrary $libname.a'
  35988. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35989. - 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'
  35990. - ;;
  35991. -beos*)
  35992. - library_names_spec='${libname}${shared_ext}'
  35993. - dynamic_linker="$host_os ld.so"
  35994. - shlibpath_var=LIBRARY_PATH
  35995. - ;;
  35996. -bsdi[45]*)
  35997. - version_type=linux
  35998. - need_version=no
  35999. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36000. - soname_spec='${libname}${release}${shared_ext}$major'
  36001. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36002. - shlibpath_var=LD_LIBRARY_PATH
  36003. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36004. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36005. - # the default ld.so.conf also contains /usr/contrib/lib and
  36006. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36007. - # libtool to hard-code these into programs
  36008. - ;;
  36009. +CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  36010. +mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  36011. +|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  36012. +echo 'git directory not found: installing possibly empty changelog.' >&2)"
  36013. -cygwin* | mingw* | pw32*)
  36014. - version_type=windows
  36015. - shrext_cmds=".dll"
  36016. - need_version=no
  36017. - need_lib_prefix=no
  36018. - case $GCC,$host_os in
  36019. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36020. - library_names_spec='$libname.dll.a'
  36021. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36022. - postinstall_cmds='base_file=`basename \${file}`~
  36023. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36024. - dldir=$destdir/`dirname \$dlpath`~
  36025. - test -d \$dldir || mkdir -p \$dldir~
  36026. - $install_prog $dir/$dlname \$dldir/$dlname~
  36027. - chmod a+x \$dldir/$dlname'
  36028. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36029. - dlpath=$dir/\$dldll~
  36030. - $rm \$dlpath'
  36031. - shlibpath_overrides_runpath=yes
  36032. - case $host_os in
  36033. - cygwin*)
  36034. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36035. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36036. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36037. - ;;
  36038. - mingw*)
  36039. - # MinGW DLLs use traditional 'lib' prefix
  36040. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36041. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36042. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36043. - # It is most probably a Windows format PATH printed by
  36044. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36045. - # path with ; separators, and with drive letters. We can handle the
  36046. - # drive letters (cygwin fileutils understands them), so leave them,
  36047. - # especially as we might pass files found there to a mingw objdump,
  36048. - # which wouldn't understand a cygwinified path. Ahh.
  36049. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36050. - else
  36051. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36052. - fi
  36053. - ;;
  36054. - pw32*)
  36055. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  36056. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36057. - ;;
  36058. - esac
  36059. - ;;
  36060. - *)
  36061. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36062. - ;;
  36063. - esac
  36064. - dynamic_linker='Win32 ld.exe'
  36065. - # FIXME: first we should search . and the directory the executable is in
  36066. - shlibpath_var=PATH
  36067. - ;;
  36068. +macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  36069. +INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  36070. +mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  36071. +|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  36072. +echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  36073. -darwin* | rhapsody*)
  36074. - dynamic_linker="$host_os dyld"
  36075. - version_type=darwin
  36076. - need_lib_prefix=no
  36077. - need_version=no
  36078. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36079. - soname_spec='${libname}${release}${major}$shared_ext'
  36080. - shlibpath_overrides_runpath=yes
  36081. - shlibpath_var=DYLD_LIBRARY_PATH
  36082. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36083. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36084. - ;;
  36085. -dgux*)
  36086. - version_type=linux
  36087. - need_lib_prefix=no
  36088. - need_version=no
  36089. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36090. - soname_spec='${libname}${release}${shared_ext}$major'
  36091. - shlibpath_var=LD_LIBRARY_PATH
  36092. - ;;
  36093. -freebsd1*)
  36094. - dynamic_linker=no
  36095. - ;;
  36096. -freebsd* | dragonfly*)
  36097. - # DragonFly does not have aout. When/if they implement a new
  36098. - # versioning mechanism, adjust this.
  36099. - if test -x /usr/bin/objformat; then
  36100. - objformat=`/usr/bin/objformat`
  36101. - else
  36102. +if test x$APP_MAN_SUFFIX = x ; then
  36103. + APP_MAN_SUFFIX=1
  36104. +fi
  36105. +if test x$APP_MAN_DIR = x ; then
  36106. + APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  36107. +fi
  36108. +
  36109. +if test x$LIB_MAN_SUFFIX = x ; then
  36110. + LIB_MAN_SUFFIX=3
  36111. +fi
  36112. +if test x$LIB_MAN_DIR = x ; then
  36113. + LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  36114. +fi
  36115. +
  36116. +if test x$FILE_MAN_SUFFIX = x ; then
  36117. case $host_os in
  36118. - freebsd[123]*) objformat=aout ;;
  36119. - *) objformat=elf ;;
  36120. + solaris*) FILE_MAN_SUFFIX=4 ;;
  36121. + *) FILE_MAN_SUFFIX=5 ;;
  36122. esac
  36123. - fi
  36124. - version_type=freebsd-$objformat
  36125. - case $version_type in
  36126. - freebsd-elf*)
  36127. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36128. - need_version=no
  36129. - need_lib_prefix=no
  36130. - ;;
  36131. - freebsd-*)
  36132. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36133. - need_version=yes
  36134. - ;;
  36135. - esac
  36136. - shlibpath_var=LD_LIBRARY_PATH
  36137. - case $host_os in
  36138. - freebsd2*)
  36139. - shlibpath_overrides_runpath=yes
  36140. - ;;
  36141. - freebsd3.[01]* | freebsdelf3.[01]*)
  36142. - shlibpath_overrides_runpath=yes
  36143. - hardcode_into_libs=yes
  36144. - ;;
  36145. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  36146. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  36147. - shlibpath_overrides_runpath=no
  36148. - hardcode_into_libs=yes
  36149. - ;;
  36150. - *) # from 4.6 on, and DragonFly
  36151. - shlibpath_overrides_runpath=yes
  36152. - hardcode_into_libs=yes
  36153. - ;;
  36154. - esac
  36155. - ;;
  36156. -
  36157. -gnu*)
  36158. - version_type=linux
  36159. - need_lib_prefix=no
  36160. - need_version=no
  36161. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36162. - soname_spec='${libname}${release}${shared_ext}$major'
  36163. - shlibpath_var=LD_LIBRARY_PATH
  36164. - hardcode_into_libs=yes
  36165. - ;;
  36166. +fi
  36167. +if test x$FILE_MAN_DIR = x ; then
  36168. + FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  36169. +fi
  36170. -hpux9* | hpux10* | hpux11*)
  36171. - # Give a soname corresponding to the major version so that dld.sl refuses to
  36172. - # link against other versions.
  36173. - version_type=sunos
  36174. - need_lib_prefix=no
  36175. - need_version=no
  36176. - case $host_cpu in
  36177. - ia64*)
  36178. - shrext_cmds='.so'
  36179. - hardcode_into_libs=yes
  36180. - dynamic_linker="$host_os dld.so"
  36181. - shlibpath_var=LD_LIBRARY_PATH
  36182. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36183. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36184. - soname_spec='${libname}${release}${shared_ext}$major'
  36185. - if test "X$HPUX_IA64_MODE" = X32; then
  36186. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36187. - else
  36188. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36189. - fi
  36190. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36191. - ;;
  36192. - hppa*64*)
  36193. - shrext_cmds='.sl'
  36194. - hardcode_into_libs=yes
  36195. - dynamic_linker="$host_os dld.sl"
  36196. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36197. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36198. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36199. - soname_spec='${libname}${release}${shared_ext}$major'
  36200. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36201. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36202. - ;;
  36203. - *)
  36204. - shrext_cmds='.sl'
  36205. - dynamic_linker="$host_os dld.sl"
  36206. - shlibpath_var=SHLIB_PATH
  36207. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36209. - soname_spec='${libname}${release}${shared_ext}$major'
  36210. - ;;
  36211. - esac
  36212. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36213. - postinstall_cmds='chmod 555 $lib'
  36214. - ;;
  36215. +if test x$MISC_MAN_SUFFIX = x ; then
  36216. + case $host_os in
  36217. + solaris*) MISC_MAN_SUFFIX=5 ;;
  36218. + *) MISC_MAN_SUFFIX=7 ;;
  36219. + esac
  36220. +fi
  36221. +if test x$MISC_MAN_DIR = x ; then
  36222. + MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  36223. +fi
  36224. -interix[3-9]*)
  36225. - version_type=linux
  36226. - need_lib_prefix=no
  36227. - need_version=no
  36228. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36229. - soname_spec='${libname}${release}${shared_ext}$major'
  36230. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  36231. - shlibpath_var=LD_LIBRARY_PATH
  36232. - shlibpath_overrides_runpath=no
  36233. - hardcode_into_libs=yes
  36234. - ;;
  36235. +if test x$DRIVER_MAN_SUFFIX = x ; then
  36236. + case $host_os in
  36237. + solaris*) DRIVER_MAN_SUFFIX=7 ;;
  36238. + *) DRIVER_MAN_SUFFIX=4 ;;
  36239. + esac
  36240. +fi
  36241. +if test x$DRIVER_MAN_DIR = x ; then
  36242. + DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  36243. +fi
  36244. -irix5* | irix6* | nonstopux*)
  36245. - case $host_os in
  36246. - nonstopux*) version_type=nonstopux ;;
  36247. - *)
  36248. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36249. - version_type=linux
  36250. - else
  36251. - version_type=irix
  36252. - fi ;;
  36253. - esac
  36254. - need_lib_prefix=no
  36255. - need_version=no
  36256. - soname_spec='${libname}${release}${shared_ext}$major'
  36257. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36258. - case $host_os in
  36259. - irix5* | nonstopux*)
  36260. - libsuff= shlibsuff=
  36261. - ;;
  36262. - *)
  36263. - case $LD in # libtool.m4 will add one of these switches to LD
  36264. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36265. - libsuff= shlibsuff= libmagic=32-bit;;
  36266. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36267. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  36268. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36269. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36270. - *) libsuff= shlibsuff= libmagic=never-match;;
  36271. +if test x$ADMIN_MAN_SUFFIX = x ; then
  36272. + case $host_os in
  36273. + solaris*) ADMIN_MAN_SUFFIX=1m ;;
  36274. + *) ADMIN_MAN_SUFFIX=8 ;;
  36275. esac
  36276. - ;;
  36277. - esac
  36278. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36279. - shlibpath_overrides_runpath=no
  36280. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36281. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36282. - hardcode_into_libs=yes
  36283. - ;;
  36284. +fi
  36285. +if test x$ADMIN_MAN_DIR = x ; then
  36286. + ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  36287. +fi
  36288. -# No shared lib support for Linux oldld, aout, or coff.
  36289. -linux*oldld* | linux*aout* | linux*coff*)
  36290. - dynamic_linker=no
  36291. - ;;
  36292. -# This must be Linux ELF.
  36293. -linux* | k*bsd*-gnu)
  36294. - version_type=linux
  36295. - need_lib_prefix=no
  36296. - need_version=no
  36297. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36298. - soname_spec='${libname}${release}${shared_ext}$major'
  36299. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36300. - shlibpath_var=LD_LIBRARY_PATH
  36301. - shlibpath_overrides_runpath=no
  36302. - # This implies no fast_install, which is unacceptable.
  36303. - # Some rework will be needed to allow for fast_install
  36304. - # before this can be enabled.
  36305. - hardcode_into_libs=yes
  36306. - # Append ld.so.conf contents to the search path
  36307. - if test -f /etc/ld.so.conf; then
  36308. - 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' ' '`
  36309. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36310. - fi
  36311. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36312. - # powerpc, because MkLinux only supported shared libraries with the
  36313. - # GNU dynamic linker. Since this was broken with cross compilers,
  36314. - # most powerpc-linux boxes support dynamic linking these days and
  36315. - # people can always --disable-shared, the test was removed, and we
  36316. - # assume the GNU/Linux dynamic linker is in use.
  36317. - dynamic_linker='GNU/Linux ld.so'
  36318. - ;;
  36319. -netbsd*)
  36320. - version_type=sunos
  36321. - need_lib_prefix=no
  36322. - need_version=no
  36323. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36324. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36325. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36326. - dynamic_linker='NetBSD (a.out) ld.so'
  36327. - else
  36328. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36329. - soname_spec='${libname}${release}${shared_ext}$major'
  36330. - dynamic_linker='NetBSD ld.elf_so'
  36331. - fi
  36332. - shlibpath_var=LD_LIBRARY_PATH
  36333. - shlibpath_overrides_runpath=yes
  36334. - hardcode_into_libs=yes
  36335. - ;;
  36336. -newsos6)
  36337. - version_type=linux
  36338. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36339. - shlibpath_var=LD_LIBRARY_PATH
  36340. - shlibpath_overrides_runpath=yes
  36341. - ;;
  36342. -nto-qnx*)
  36343. - version_type=linux
  36344. - need_lib_prefix=no
  36345. - need_version=no
  36346. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36347. - soname_spec='${libname}${release}${shared_ext}$major'
  36348. - shlibpath_var=LD_LIBRARY_PATH
  36349. - shlibpath_overrides_runpath=yes
  36350. - ;;
  36351. -openbsd*)
  36352. - version_type=sunos
  36353. - sys_lib_dlsearch_path_spec="/usr/lib"
  36354. - need_lib_prefix=no
  36355. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36356. - case $host_os in
  36357. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36358. - *) need_version=no ;;
  36359. - esac
  36360. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36361. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36362. - shlibpath_var=LD_LIBRARY_PATH
  36363. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36364. - case $host_os in
  36365. - openbsd2.[89] | openbsd2.[89].*)
  36366. - shlibpath_overrides_runpath=no
  36367. - ;;
  36368. - *)
  36369. - shlibpath_overrides_runpath=yes
  36370. - ;;
  36371. - esac
  36372. - else
  36373. - shlibpath_overrides_runpath=yes
  36374. - fi
  36375. - ;;
  36376. -os2*)
  36377. - libname_spec='$name'
  36378. - shrext_cmds=".dll"
  36379. - need_lib_prefix=no
  36380. - library_names_spec='$libname${shared_ext} $libname.a'
  36381. - dynamic_linker='OS/2 ld.exe'
  36382. - shlibpath_var=LIBPATH
  36383. - ;;
  36384. -
  36385. -osf3* | osf4* | osf5*)
  36386. - version_type=osf
  36387. - need_lib_prefix=no
  36388. - need_version=no
  36389. - soname_spec='${libname}${release}${shared_ext}$major'
  36390. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36391. - shlibpath_var=LD_LIBRARY_PATH
  36392. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36393. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36394. - ;;
  36395. -
  36396. -rdos*)
  36397. - dynamic_linker=no
  36398. - ;;
  36399. -solaris*)
  36400. - version_type=linux
  36401. - need_lib_prefix=no
  36402. - need_version=no
  36403. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36404. - soname_spec='${libname}${release}${shared_ext}$major'
  36405. - shlibpath_var=LD_LIBRARY_PATH
  36406. - shlibpath_overrides_runpath=yes
  36407. - hardcode_into_libs=yes
  36408. - # ldd complains unless libraries are executable
  36409. - postinstall_cmds='chmod +x $lib'
  36410. - ;;
  36411. -sunos4*)
  36412. - version_type=sunos
  36413. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36414. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36415. - shlibpath_var=LD_LIBRARY_PATH
  36416. - shlibpath_overrides_runpath=yes
  36417. - if test "$with_gnu_ld" = yes; then
  36418. - need_lib_prefix=no
  36419. - fi
  36420. - need_version=yes
  36421. - ;;
  36422. -sysv4 | sysv4.3*)
  36423. - version_type=linux
  36424. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36425. - soname_spec='${libname}${release}${shared_ext}$major'
  36426. - shlibpath_var=LD_LIBRARY_PATH
  36427. - case $host_vendor in
  36428. - sni)
  36429. - shlibpath_overrides_runpath=no
  36430. - need_lib_prefix=no
  36431. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36432. - runpath_var=LD_RUN_PATH
  36433. - ;;
  36434. - siemens)
  36435. - need_lib_prefix=no
  36436. - ;;
  36437. - motorola)
  36438. - need_lib_prefix=no
  36439. - need_version=no
  36440. - shlibpath_overrides_runpath=no
  36441. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36442. - ;;
  36443. - esac
  36444. - ;;
  36445. -sysv4*MP*)
  36446. - if test -d /usr/nec ;then
  36447. - version_type=linux
  36448. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36449. - soname_spec='$libname${shared_ext}.$major'
  36450. - shlibpath_var=LD_LIBRARY_PATH
  36451. - fi
  36452. - ;;
  36453. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36454. - version_type=freebsd-elf
  36455. - need_lib_prefix=no
  36456. - need_version=no
  36457. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36458. - soname_spec='${libname}${release}${shared_ext}$major'
  36459. - shlibpath_var=LD_LIBRARY_PATH
  36460. - hardcode_into_libs=yes
  36461. - if test "$with_gnu_ld" = yes; then
  36462. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36463. - shlibpath_overrides_runpath=no
  36464. - else
  36465. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36466. - shlibpath_overrides_runpath=yes
  36467. - case $host_os in
  36468. - sco3.2v5*)
  36469. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36470. - ;;
  36471. - esac
  36472. - fi
  36473. - sys_lib_dlsearch_path_spec='/usr/lib'
  36474. - ;;
  36475. -uts4*)
  36476. - version_type=linux
  36477. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36478. - soname_spec='${libname}${release}${shared_ext}$major'
  36479. - shlibpath_var=LD_LIBRARY_PATH
  36480. - ;;
  36481. -*)
  36482. - dynamic_linker=no
  36483. - ;;
  36484. -esac
  36485. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36486. -$as_echo "$dynamic_linker" >&6; }
  36487. -test "$dynamic_linker" = no && can_build_shared=no
  36488. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36489. - $as_echo_n "(cached) " >&6
  36490. -else
  36491. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  36492. -fi
  36493. +ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  36494. +if test "x$ac_cv_func_strcasecmp" = x""yes; then :
  36495. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36496. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36497. - $as_echo_n "(cached) " >&6
  36498. else
  36499. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  36500. -fi
  36501. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36502. +$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
  36503. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36504. -if test "$GCC" = yes; then
  36505. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36506. fi
  36507. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36508. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  36509. -hardcode_action_F77=
  36510. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  36511. - test -n "$runpath_var_F77" || \
  36512. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  36513. +ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
  36514. +if test "x$ac_cv_func_getc_unlocked" = x""yes; then :
  36515. - # We can hardcode non-existant directories.
  36516. - if test "$hardcode_direct_F77" != no &&
  36517. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36518. - # have to relink, otherwise we might link with an installed library
  36519. - # when we should be linking with a yet-to-be-installed one
  36520. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  36521. - test "$hardcode_minus_L_F77" != no; then
  36522. - # Linking always hardcodes the temporary library directory.
  36523. - hardcode_action_F77=relink
  36524. - else
  36525. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36526. - hardcode_action_F77=immediate
  36527. - fi
  36528. -else
  36529. - # We cannot hardcode anything, or else we can only hardcode existing
  36530. - # directories.
  36531. - hardcode_action_F77=unsupported
  36532. -fi
  36533. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  36534. -$as_echo "$hardcode_action_F77" >&6; }
  36535. +$as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h
  36536. -if test "$hardcode_action_F77" = relink; then
  36537. - # Fast installation is not supported
  36538. - enable_fast_install=no
  36539. -elif test "$shlibpath_overrides_runpath" = yes ||
  36540. - test "$enable_shared" = no; then
  36541. - # Fast installation is not necessary
  36542. - enable_fast_install=needless
  36543. fi
  36544. -# The else clause should only fire when bootstrapping the
  36545. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36546. -# with your package, and you will get complaints that there are
  36547. -# no rules to generate ltmain.sh.
  36548. -if test -f "$ltmain"; then
  36549. - # See if we are running on zsh, and set the options which allow our commands through
  36550. - # without removal of \ escapes.
  36551. - if test -n "${ZSH_VERSION+set}" ; then
  36552. - setopt NO_GLOB_SUBST
  36553. - fi
  36554. - # Now quote all the things that may contain metacharacters while being
  36555. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36556. - # variables and quote the copies for generation of the libtool script.
  36557. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36558. - SED SHELL STRIP \
  36559. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36560. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36561. - deplibs_check_method reload_flag reload_cmds need_locks \
  36562. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36563. - lt_cv_sys_global_symbol_to_c_name_address \
  36564. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36565. - old_postinstall_cmds old_postuninstall_cmds \
  36566. - compiler_F77 \
  36567. - CC_F77 \
  36568. - LD_F77 \
  36569. - lt_prog_compiler_wl_F77 \
  36570. - lt_prog_compiler_pic_F77 \
  36571. - lt_prog_compiler_static_F77 \
  36572. - lt_prog_compiler_no_builtin_flag_F77 \
  36573. - export_dynamic_flag_spec_F77 \
  36574. - thread_safe_flag_spec_F77 \
  36575. - whole_archive_flag_spec_F77 \
  36576. - enable_shared_with_static_runtimes_F77 \
  36577. - old_archive_cmds_F77 \
  36578. - old_archive_from_new_cmds_F77 \
  36579. - predep_objects_F77 \
  36580. - postdep_objects_F77 \
  36581. - predeps_F77 \
  36582. - postdeps_F77 \
  36583. - compiler_lib_search_path_F77 \
  36584. - compiler_lib_search_dirs_F77 \
  36585. - archive_cmds_F77 \
  36586. - archive_expsym_cmds_F77 \
  36587. - postinstall_cmds_F77 \
  36588. - postuninstall_cmds_F77 \
  36589. - old_archive_from_expsyms_cmds_F77 \
  36590. - allow_undefined_flag_F77 \
  36591. - no_undefined_flag_F77 \
  36592. - export_symbols_cmds_F77 \
  36593. - hardcode_libdir_flag_spec_F77 \
  36594. - hardcode_libdir_flag_spec_ld_F77 \
  36595. - hardcode_libdir_separator_F77 \
  36596. - hardcode_automatic_F77 \
  36597. - module_cmds_F77 \
  36598. - module_expsym_cmds_F77 \
  36599. - lt_cv_prog_compiler_c_o_F77 \
  36600. - fix_srcfile_path_F77 \
  36601. - exclude_expsyms_F77 \
  36602. - include_expsyms_F77; do
  36603. -
  36604. - case $var in
  36605. - old_archive_cmds_F77 | \
  36606. - old_archive_from_new_cmds_F77 | \
  36607. - archive_cmds_F77 | \
  36608. - archive_expsym_cmds_F77 | \
  36609. - module_cmds_F77 | \
  36610. - module_expsym_cmds_F77 | \
  36611. - old_archive_from_expsyms_cmds_F77 | \
  36612. - export_symbols_cmds_F77 | \
  36613. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36614. - postinstall_cmds | postuninstall_cmds | \
  36615. - old_postinstall_cmds | old_postuninstall_cmds | \
  36616. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36617. - # Double-quote double-evaled strings.
  36618. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36619. - ;;
  36620. - *)
  36621. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36622. - ;;
  36623. - esac
  36624. - done
  36625. -
  36626. - case $lt_echo in
  36627. - *'\$0 --fallback-echo"')
  36628. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36629. - ;;
  36630. - esac
  36631. -
  36632. -cfgfile="$ofile"
  36633. -
  36634. - cat <<__EOF__ >> "$cfgfile"
  36635. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36636. -
  36637. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36638. -
  36639. -# Shell to use when invoking shell scripts.
  36640. -SHELL=$lt_SHELL
  36641. -
  36642. -# Whether or not to build shared libraries.
  36643. -build_libtool_libs=$enable_shared
  36644. -
  36645. -# Whether or not to build static libraries.
  36646. -build_old_libs=$enable_static
  36647. -
  36648. -# Whether or not to add -lc for building shared libraries.
  36649. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  36650. -
  36651. -# Whether or not to disallow shared libs when runtime libs are static
  36652. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  36653. +# Check for dependencies
  36654. -# Whether or not to optimize for fast installation.
  36655. -fast_install=$enable_fast_install
  36656. +pkg_failed=no
  36657. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5
  36658. +$as_echo_n "checking for XKBFILE... " >&6; }
  36659. -# The host system.
  36660. -host_alias=$host_alias
  36661. -host=$host
  36662. -host_os=$host_os
  36663. +if test -n "$PKG_CONFIG"; then
  36664. + if test -n "$XKBFILE_CFLAGS"; then
  36665. + pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
  36666. + else
  36667. + if test -n "$PKG_CONFIG" && \
  36668. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
  36669. + ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
  36670. + ac_status=$?
  36671. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36672. + test $ac_status = 0; }; then
  36673. + pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
  36674. +else
  36675. + pkg_failed=yes
  36676. +fi
  36677. + fi
  36678. +else
  36679. + pkg_failed=untried
  36680. +fi
  36681. +if test -n "$PKG_CONFIG"; then
  36682. + if test -n "$XKBFILE_LIBS"; then
  36683. + pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
  36684. + else
  36685. + if test -n "$PKG_CONFIG" && \
  36686. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5
  36687. + ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
  36688. + ac_status=$?
  36689. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36690. + test $ac_status = 0; }; then
  36691. + pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
  36692. +else
  36693. + pkg_failed=yes
  36694. +fi
  36695. + fi
  36696. +else
  36697. + pkg_failed=untried
  36698. +fi
  36699. -# The build system.
  36700. -build_alias=$build_alias
  36701. -build=$build
  36702. -build_os=$build_os
  36703. -# An echo program that does not interpret backslashes.
  36704. -echo=$lt_echo
  36705. -# The archiver.
  36706. -AR=$lt_AR
  36707. -AR_FLAGS=$lt_AR_FLAGS
  36708. +if test $pkg_failed = yes; then
  36709. -# A C compiler.
  36710. -LTCC=$lt_LTCC
  36711. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  36712. + _pkg_short_errors_supported=yes
  36713. +else
  36714. + _pkg_short_errors_supported=no
  36715. +fi
  36716. + if test $_pkg_short_errors_supported = yes; then
  36717. + XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 kbproto"`
  36718. + else
  36719. + XKBFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 kbproto"`
  36720. + fi
  36721. + # Put the nasty error message in config.log where it belongs
  36722. + echo "$XKBFILE_PKG_ERRORS" >&5
  36723. -# LTCC compiler flags.
  36724. -LTCFLAGS=$lt_LTCFLAGS
  36725. + as_fn_error "Package requirements (x11 kbproto) were not met:
  36726. -# A language-specific compiler.
  36727. -CC=$lt_compiler_F77
  36728. +$XKBFILE_PKG_ERRORS
  36729. -# Is the compiler the GNU C compiler?
  36730. -with_gcc=$GCC_F77
  36731. +Consider adjusting the PKG_CONFIG_PATH environment variable if you
  36732. +installed software in a non-standard prefix.
  36733. -# An ERE matcher.
  36734. -EGREP=$lt_EGREP
  36735. +Alternatively, you may set the environment variables XKBFILE_CFLAGS
  36736. +and XKBFILE_LIBS to avoid the need to call pkg-config.
  36737. +See the pkg-config man page for more details.
  36738. +" "$LINENO" 5
  36739. +elif test $pkg_failed = untried; then
  36740. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  36741. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  36742. +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  36743. +is in your PATH or set the PKG_CONFIG environment variable to the full
  36744. +path to pkg-config.
  36745. -# The linker used to build libraries.
  36746. -LD=$lt_LD_F77
  36747. +Alternatively, you may set the environment variables XKBFILE_CFLAGS
  36748. +and XKBFILE_LIBS to avoid the need to call pkg-config.
  36749. +See the pkg-config man page for more details.
  36750. -# Whether we need hard or soft links.
  36751. -LN_S=$lt_LN_S
  36752. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  36753. +See \`config.log' for more details." "$LINENO" 5; }
  36754. +else
  36755. + XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
  36756. + XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
  36757. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36758. +$as_echo "yes" >&6; }
  36759. + :
  36760. +fi
  36761. -# A BSD-compatible nm program.
  36762. -NM=$lt_NM
  36763. -# A symbol stripping program
  36764. -STRIP=$lt_STRIP
  36765. -# Used to examine libraries when file_magic_cmd begins "file"
  36766. -MAGIC_CMD=$MAGIC_CMD
  36767. +ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
  36768. -# Used on cygwin: DLL creation program.
  36769. -DLLTOOL="$DLLTOOL"
  36770. +cat >confcache <<\_ACEOF
  36771. +# This file is a shell script that caches the results of configure
  36772. +# tests run on this system so they can be shared between configure
  36773. +# scripts and configure runs, see configure's option --config-cache.
  36774. +# It is not useful on other systems. If it contains results you don't
  36775. +# want to keep, you may remove or edit it.
  36776. +#
  36777. +# config.status only pays attention to the cache file if you give it
  36778. +# the --recheck option to rerun configure.
  36779. +#
  36780. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  36781. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  36782. +# following values.
  36783. -# Used on cygwin: object dumper.
  36784. -OBJDUMP="$OBJDUMP"
  36785. +_ACEOF
  36786. -# Used on cygwin: assembler.
  36787. -AS="$AS"
  36788. -
  36789. -# The name of the directory that contains temporary libtool files.
  36790. -objdir=$objdir
  36791. -
  36792. -# How to create reloadable object files.
  36793. -reload_flag=$lt_reload_flag
  36794. -reload_cmds=$lt_reload_cmds
  36795. -
  36796. -# How to pass a linker flag through the compiler.
  36797. -wl=$lt_lt_prog_compiler_wl_F77
  36798. +# The following way of writing the cache mishandles newlines in values,
  36799. +# but we know of no workaround that is simple, portable, and efficient.
  36800. +# So, we kill variables containing newlines.
  36801. +# Ultrix sh set writes to stderr and can't be redirected directly,
  36802. +# and sets the high bit in the cache file unless we assign to the vars.
  36803. +(
  36804. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  36805. + eval ac_val=\$$ac_var
  36806. + case $ac_val in #(
  36807. + *${as_nl}*)
  36808. + case $ac_var in #(
  36809. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  36810. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  36811. + esac
  36812. + case $ac_var in #(
  36813. + _ | IFS | as_nl) ;; #(
  36814. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  36815. + *) { eval $ac_var=; unset $ac_var;} ;;
  36816. + esac ;;
  36817. + esac
  36818. + done
  36819. -# Object file suffix (normally "o").
  36820. -objext="$ac_objext"
  36821. + (set) 2>&1 |
  36822. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  36823. + *${as_nl}ac_space=\ *)
  36824. + # `set' does not quote correctly, so add quotes: double-quote
  36825. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  36826. + sed -n \
  36827. + "s/'/'\\\\''/g;
  36828. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  36829. + ;; #(
  36830. + *)
  36831. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  36832. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  36833. + ;;
  36834. + esac |
  36835. + sort
  36836. +) |
  36837. + sed '
  36838. + /^ac_cv_env_/b end
  36839. + t clear
  36840. + :clear
  36841. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  36842. + t end
  36843. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  36844. + :end' >>confcache
  36845. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  36846. + if test -w "$cache_file"; then
  36847. + test "x$cache_file" != "x/dev/null" &&
  36848. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  36849. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  36850. + cat confcache >$cache_file
  36851. + else
  36852. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  36853. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  36854. + fi
  36855. +fi
  36856. +rm -f confcache
  36857. -# Old archive suffix (normally "a").
  36858. -libext="$libext"
  36859. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  36860. +# Let make expand exec_prefix.
  36861. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  36862. -# Shared library suffix (normally ".so").
  36863. -shrext_cmds='$shrext_cmds'
  36864. +DEFS=-DHAVE_CONFIG_H
  36865. -# Executable file suffix (normally "").
  36866. -exeext="$exeext"
  36867. +ac_libobjs=
  36868. +ac_ltlibobjs=
  36869. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  36870. + # 1. Remove the extension, and $U if already installed.
  36871. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  36872. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  36873. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  36874. + # will be set to the directory where LIBOBJS objects are built.
  36875. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  36876. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  36877. +done
  36878. +LIBOBJS=$ac_libobjs
  36879. -# Additional compiler flags for building library objects.
  36880. -pic_flag=$lt_lt_prog_compiler_pic_F77
  36881. -pic_mode=$pic_mode
  36882. +LTLIBOBJS=$ac_ltlibobjs
  36883. -# What is the maximum length of a command?
  36884. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36885. -# Does compiler simultaneously support -c and -o options?
  36886. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  36887. + if test -n "$EXEEXT"; then
  36888. + am__EXEEXT_TRUE=
  36889. + am__EXEEXT_FALSE='#'
  36890. +else
  36891. + am__EXEEXT_TRUE='#'
  36892. + am__EXEEXT_FALSE=
  36893. +fi
  36894. -# Must we lock files when doing compilation?
  36895. -need_locks=$lt_need_locks
  36896. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  36897. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  36898. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36899. +fi
  36900. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  36901. + as_fn_error "conditional \"AMDEP\" was never defined.
  36902. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36903. +fi
  36904. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  36905. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  36906. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36907. +fi
  36908. -# Do we need the lib prefix for modules?
  36909. -need_lib_prefix=$need_lib_prefix
  36910. +: ${CONFIG_STATUS=./config.status}
  36911. +ac_write_fail=0
  36912. +ac_clean_files_save=$ac_clean_files
  36913. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  36914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  36915. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  36916. +as_write_fail=0
  36917. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  36918. +#! $SHELL
  36919. +# Generated by $as_me.
  36920. +# Run this file to recreate the current configuration.
  36921. +# Compiler output produced by configure, useful for debugging
  36922. +# configure, is in config.log if it exists.
  36923. -# Do we need a version for libraries?
  36924. -need_version=$need_version
  36925. +debug=false
  36926. +ac_cs_recheck=false
  36927. +ac_cs_silent=false
  36928. -# Whether dlopen is supported.
  36929. -dlopen_support=$enable_dlopen
  36930. +SHELL=\${CONFIG_SHELL-$SHELL}
  36931. +export SHELL
  36932. +_ASEOF
  36933. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  36934. +## -------------------- ##
  36935. +## M4sh Initialization. ##
  36936. +## -------------------- ##
  36937. -# Whether dlopen of programs is supported.
  36938. -dlopen_self=$enable_dlopen_self
  36939. +# Be more Bourne compatible
  36940. +DUALCASE=1; export DUALCASE # for MKS sh
  36941. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  36942. + emulate sh
  36943. + NULLCMD=:
  36944. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  36945. + # is contrary to our usage. Disable this feature.
  36946. + alias -g '${1+"$@"}'='"$@"'
  36947. + setopt NO_GLOB_SUBST
  36948. +else
  36949. + case `(set -o) 2>/dev/null` in #(
  36950. + *posix*) :
  36951. + set -o posix ;; #(
  36952. + *) :
  36953. + ;;
  36954. +esac
  36955. +fi
  36956. -# Whether dlopen of statically linked programs is supported.
  36957. -dlopen_self_static=$enable_dlopen_self_static
  36958. -# Compiler flag to prevent dynamic linking.
  36959. -link_static_flag=$lt_lt_prog_compiler_static_F77
  36960. +as_nl='
  36961. +'
  36962. +export as_nl
  36963. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  36964. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36965. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  36966. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  36967. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  36968. +# but without wasting forks for bash or zsh.
  36969. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  36970. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  36971. + as_echo='print -r --'
  36972. + as_echo_n='print -rn --'
  36973. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  36974. + as_echo='printf %s\n'
  36975. + as_echo_n='printf %s'
  36976. +else
  36977. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  36978. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  36979. + as_echo_n='/usr/ucb/echo -n'
  36980. + else
  36981. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  36982. + as_echo_n_body='eval
  36983. + arg=$1;
  36984. + case $arg in #(
  36985. + *"$as_nl"*)
  36986. + expr "X$arg" : "X\\(.*\\)$as_nl";
  36987. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  36988. + esac;
  36989. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  36990. + '
  36991. + export as_echo_n_body
  36992. + as_echo_n='sh -c $as_echo_n_body as_echo'
  36993. + fi
  36994. + export as_echo_body
  36995. + as_echo='sh -c $as_echo_body as_echo'
  36996. +fi
  36997. -# Compiler flag to turn off builtin functions.
  36998. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  36999. +# The user is always right.
  37000. +if test "${PATH_SEPARATOR+set}" != set; then
  37001. + PATH_SEPARATOR=:
  37002. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  37003. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  37004. + PATH_SEPARATOR=';'
  37005. + }
  37006. +fi
  37007. -# Compiler flag to allow reflexive dlopens.
  37008. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  37009. -# Compiler flag to generate shared objects directly from archives.
  37010. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  37011. +# IFS
  37012. +# We need space, tab and new line, in precisely that order. Quoting is
  37013. +# there to prevent editors from complaining about space-tab.
  37014. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  37015. +# splitting by setting IFS to empty value.)
  37016. +IFS=" "" $as_nl"
  37017. -# Compiler flag to generate thread-safe objects.
  37018. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  37019. +# Find who we are. Look in the path if we contain no directory separator.
  37020. +case $0 in #((
  37021. + *[\\/]* ) as_myself=$0 ;;
  37022. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37023. +for as_dir in $PATH
  37024. +do
  37025. + IFS=$as_save_IFS
  37026. + test -z "$as_dir" && as_dir=.
  37027. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  37028. + done
  37029. +IFS=$as_save_IFS
  37030. -# Library versioning type.
  37031. -version_type=$version_type
  37032. + ;;
  37033. +esac
  37034. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  37035. +# in which case we are not to be found in the path.
  37036. +if test "x$as_myself" = x; then
  37037. + as_myself=$0
  37038. +fi
  37039. +if test ! -f "$as_myself"; then
  37040. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  37041. + exit 1
  37042. +fi
  37043. -# Format of library name prefix.
  37044. -libname_spec=$lt_libname_spec
  37045. +# Unset variables that we do not need and which cause bugs (e.g. in
  37046. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  37047. +# suppresses any "Segmentation fault" message there. '((' could
  37048. +# trigger a bug in pdksh 5.2.14.
  37049. +for as_var in BASH_ENV ENV MAIL MAILPATH
  37050. +do eval test x\${$as_var+set} = xset \
  37051. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  37052. +done
  37053. +PS1='$ '
  37054. +PS2='> '
  37055. +PS4='+ '
  37056. -# List of archive names. First name is the real one, the rest are links.
  37057. -# The last name is the one that the linker finds with -lNAME.
  37058. -library_names_spec=$lt_library_names_spec
  37059. +# NLS nuisances.
  37060. +LC_ALL=C
  37061. +export LC_ALL
  37062. +LANGUAGE=C
  37063. +export LANGUAGE
  37064. -# The coded name of the library, if different from the real name.
  37065. -soname_spec=$lt_soname_spec
  37066. +# CDPATH.
  37067. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  37068. -# Commands used to build and install an old-style archive.
  37069. -RANLIB=$lt_RANLIB
  37070. -old_archive_cmds=$lt_old_archive_cmds_F77
  37071. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37072. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37073. -# Create an old-style archive from a shared archive.
  37074. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  37075. +# as_fn_error ERROR [LINENO LOG_FD]
  37076. +# ---------------------------------
  37077. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  37078. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  37079. +# script with status $?, using 1 if that was 0.
  37080. +as_fn_error ()
  37081. +{
  37082. + as_status=$?; test $as_status -eq 0 && as_status=1
  37083. + if test "$3"; then
  37084. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  37085. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  37086. + fi
  37087. + $as_echo "$as_me: error: $1" >&2
  37088. + as_fn_exit $as_status
  37089. +} # as_fn_error
  37090. +
  37091. +
  37092. +# as_fn_set_status STATUS
  37093. +# -----------------------
  37094. +# Set $? to STATUS, without forking.
  37095. +as_fn_set_status ()
  37096. +{
  37097. + return $1
  37098. +} # as_fn_set_status
  37099. +
  37100. +# as_fn_exit STATUS
  37101. +# -----------------
  37102. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  37103. +as_fn_exit ()
  37104. +{
  37105. + set +e
  37106. + as_fn_set_status $1
  37107. + exit $1
  37108. +} # as_fn_exit
  37109. +
  37110. +# as_fn_unset VAR
  37111. +# ---------------
  37112. +# Portably unset VAR.
  37113. +as_fn_unset ()
  37114. +{
  37115. + { eval $1=; unset $1;}
  37116. +}
  37117. +as_unset=as_fn_unset
  37118. +# as_fn_append VAR VALUE
  37119. +# ----------------------
  37120. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  37121. +# advantage of any shell optimizations that allow amortized linear growth over
  37122. +# repeated appends, instead of the typical quadratic growth present in naive
  37123. +# implementations.
  37124. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  37125. + eval 'as_fn_append ()
  37126. + {
  37127. + eval $1+=\$2
  37128. + }'
  37129. +else
  37130. + as_fn_append ()
  37131. + {
  37132. + eval $1=\$$1\$2
  37133. + }
  37134. +fi # as_fn_append
  37135. -# Create a temporary old-style archive to link instead of a shared archive.
  37136. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  37137. +# as_fn_arith ARG...
  37138. +# ------------------
  37139. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  37140. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  37141. +# must be portable across $(()) and expr.
  37142. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  37143. + eval 'as_fn_arith ()
  37144. + {
  37145. + as_val=$(( $* ))
  37146. + }'
  37147. +else
  37148. + as_fn_arith ()
  37149. + {
  37150. + as_val=`expr "$@" || test $? -eq 1`
  37151. + }
  37152. +fi # as_fn_arith
  37153. -# Commands used to build and install a shared archive.
  37154. -archive_cmds=$lt_archive_cmds_F77
  37155. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  37156. -postinstall_cmds=$lt_postinstall_cmds
  37157. -postuninstall_cmds=$lt_postuninstall_cmds
  37158. -# Commands used to build a loadable module (assumed same as above if empty)
  37159. -module_cmds=$lt_module_cmds_F77
  37160. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  37161. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  37162. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37163. + as_expr=expr
  37164. +else
  37165. + as_expr=false
  37166. +fi
  37167. -# Commands to strip libraries.
  37168. -old_striplib=$lt_old_striplib
  37169. -striplib=$lt_striplib
  37170. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  37171. + as_basename=basename
  37172. +else
  37173. + as_basename=false
  37174. +fi
  37175. -# Dependencies to place before the objects being linked to create a
  37176. -# shared library.
  37177. -predep_objects=$lt_predep_objects_F77
  37178. -
  37179. -# Dependencies to place after the objects being linked to create a
  37180. -# shared library.
  37181. -postdep_objects=$lt_postdep_objects_F77
  37182. -
  37183. -# Dependencies to place before the objects being linked to create a
  37184. -# shared library.
  37185. -predeps=$lt_predeps_F77
  37186. -
  37187. -# Dependencies to place after the objects being linked to create a
  37188. -# shared library.
  37189. -postdeps=$lt_postdeps_F77
  37190. -
  37191. -# The directories searched by this compiler when creating a shared
  37192. -# library
  37193. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  37194. -
  37195. -# The library search path used internally by the compiler when linking
  37196. -# a shared library.
  37197. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  37198. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  37199. + as_dirname=dirname
  37200. +else
  37201. + as_dirname=false
  37202. +fi
  37203. -# Method to check whether dependent libraries are shared objects.
  37204. -deplibs_check_method=$lt_deplibs_check_method
  37205. -
  37206. -# Command to use when deplibs_check_method == file_magic.
  37207. -file_magic_cmd=$lt_file_magic_cmd
  37208. -
  37209. -# Flag that allows shared libraries with undefined symbols to be built.
  37210. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  37211. -
  37212. -# Flag that forces no undefined symbols.
  37213. -no_undefined_flag=$lt_no_undefined_flag_F77
  37214. -
  37215. -# Commands used to finish a libtool library installation in a directory.
  37216. -finish_cmds=$lt_finish_cmds
  37217. -
  37218. -# Same as above, but a single script fragment to be evaled but not shown.
  37219. -finish_eval=$lt_finish_eval
  37220. -
  37221. -# Take the output of nm and produce a listing of raw symbols and C names.
  37222. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37223. -
  37224. -# Transform the output of nm in a proper C declaration
  37225. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37226. -
  37227. -# Transform the output of nm in a C name address pair
  37228. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37229. -
  37230. -# This is the shared library runtime path variable.
  37231. -runpath_var=$runpath_var
  37232. -
  37233. -# This is the shared library path variable.
  37234. -shlibpath_var=$shlibpath_var
  37235. -
  37236. -# Is shlibpath searched before the hard-coded library search path?
  37237. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37238. -
  37239. -# How to hardcode a shared library path into an executable.
  37240. -hardcode_action=$hardcode_action_F77
  37241. -
  37242. -# Whether we should hardcode library paths into libraries.
  37243. -hardcode_into_libs=$hardcode_into_libs
  37244. -
  37245. -# Flag to hardcode \$libdir into a binary during linking.
  37246. -# This must work even if \$libdir does not exist.
  37247. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  37248. -
  37249. -# If ld is used when linking, flag to hardcode \$libdir into
  37250. -# a binary during linking. This must work even if \$libdir does
  37251. -# not exist.
  37252. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  37253. -
  37254. -# Whether we need a single -rpath flag with a separated argument.
  37255. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  37256. -
  37257. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37258. -# resulting binary.
  37259. -hardcode_direct=$hardcode_direct_F77
  37260. -
  37261. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37262. -# resulting binary.
  37263. -hardcode_minus_L=$hardcode_minus_L_F77
  37264. -
  37265. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37266. -# the resulting binary.
  37267. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  37268. -
  37269. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37270. -# and all subsequent libraries and executables linked against it.
  37271. -hardcode_automatic=$hardcode_automatic_F77
  37272. -
  37273. -# Variables whose values should be saved in libtool wrapper scripts and
  37274. -# restored at relink time.
  37275. -variables_saved_for_relink="$variables_saved_for_relink"
  37276. -
  37277. -# Whether libtool must link a program against all its dependency libraries.
  37278. -link_all_deplibs=$link_all_deplibs_F77
  37279. -
  37280. -# Compile-time system search path for libraries
  37281. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37282. -
  37283. -# Run-time system search path for libraries
  37284. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37285. -
  37286. -# Fix the shell variable \$srcfile for the compiler.
  37287. -fix_srcfile_path=$lt_fix_srcfile_path
  37288. +as_me=`$as_basename -- "$0" ||
  37289. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  37290. + X"$0" : 'X\(//\)$' \| \
  37291. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  37292. +$as_echo X/"$0" |
  37293. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  37294. + s//\1/
  37295. + q
  37296. + }
  37297. + /^X\/\(\/\/\)$/{
  37298. + s//\1/
  37299. + q
  37300. + }
  37301. + /^X\/\(\/\).*/{
  37302. + s//\1/
  37303. + q
  37304. + }
  37305. + s/.*/./; q'`
  37306. -# Set to yes if exported symbols are required.
  37307. -always_export_symbols=$always_export_symbols_F77
  37308. +# Avoid depending upon Character Ranges.
  37309. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37310. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  37311. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37312. +as_cr_digits='0123456789'
  37313. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  37314. -# The commands to list exported symbols.
  37315. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  37316. +ECHO_C= ECHO_N= ECHO_T=
  37317. +case `echo -n x` in #(((((
  37318. +-n*)
  37319. + case `echo 'xy\c'` in
  37320. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  37321. + xy) ECHO_C='\c';;
  37322. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  37323. + ECHO_T=' ';;
  37324. + esac;;
  37325. +*)
  37326. + ECHO_N='-n';;
  37327. +esac
  37328. -# The commands to extract the exported symbol list from a shared archive.
  37329. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37330. +rm -f conf$$ conf$$.exe conf$$.file
  37331. +if test -d conf$$.dir; then
  37332. + rm -f conf$$.dir/conf$$.file
  37333. +else
  37334. + rm -f conf$$.dir
  37335. + mkdir conf$$.dir 2>/dev/null
  37336. +fi
  37337. +if (echo >conf$$.file) 2>/dev/null; then
  37338. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  37339. + as_ln_s='ln -s'
  37340. + # ... but there are two gotchas:
  37341. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  37342. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  37343. + # In both cases, we have to default to `cp -p'.
  37344. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  37345. + as_ln_s='cp -p'
  37346. + elif ln conf$$.file conf$$ 2>/dev/null; then
  37347. + as_ln_s=ln
  37348. + else
  37349. + as_ln_s='cp -p'
  37350. + fi
  37351. +else
  37352. + as_ln_s='cp -p'
  37353. +fi
  37354. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  37355. +rmdir conf$$.dir 2>/dev/null
  37356. -# Symbols that should not be listed in the preloaded symbols.
  37357. -exclude_expsyms=$lt_exclude_expsyms_F77
  37358. -# Symbols that must always be exported.
  37359. -include_expsyms=$lt_include_expsyms_F77
  37360. +# as_fn_mkdir_p
  37361. +# -------------
  37362. +# Create "$as_dir" as a directory, including parents if necessary.
  37363. +as_fn_mkdir_p ()
  37364. +{
  37365. -# ### END LIBTOOL TAG CONFIG: $tagname
  37366. + case $as_dir in #(
  37367. + -*) as_dir=./$as_dir;;
  37368. + esac
  37369. + test -d "$as_dir" || eval $as_mkdir_p || {
  37370. + as_dirs=
  37371. + while :; do
  37372. + case $as_dir in #(
  37373. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  37374. + *) as_qdir=$as_dir;;
  37375. + esac
  37376. + as_dirs="'$as_qdir' $as_dirs"
  37377. + as_dir=`$as_dirname -- "$as_dir" ||
  37378. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37379. + X"$as_dir" : 'X\(//\)[^/]' \| \
  37380. + X"$as_dir" : 'X\(//\)$' \| \
  37381. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  37382. +$as_echo X"$as_dir" |
  37383. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37384. + s//\1/
  37385. + q
  37386. + }
  37387. + /^X\(\/\/\)[^/].*/{
  37388. + s//\1/
  37389. + q
  37390. + }
  37391. + /^X\(\/\/\)$/{
  37392. + s//\1/
  37393. + q
  37394. + }
  37395. + /^X\(\/\).*/{
  37396. + s//\1/
  37397. + q
  37398. + }
  37399. + s/.*/./; q'`
  37400. + test -d "$as_dir" && break
  37401. + done
  37402. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  37403. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  37404. -__EOF__
  37405. +} # as_fn_mkdir_p
  37406. +if mkdir -p . 2>/dev/null; then
  37407. + as_mkdir_p='mkdir -p "$as_dir"'
  37408. +else
  37409. + test -d ./-p && rmdir ./-p
  37410. + as_mkdir_p=false
  37411. +fi
  37412. +if test -x / >/dev/null 2>&1; then
  37413. + as_test_x='test -x'
  37414. else
  37415. - # If there is no Makefile yet, we rely on a make rule to execute
  37416. - # `config.status --recheck' to rerun these tests and create the
  37417. - # libtool script then.
  37418. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37419. - if test -f "$ltmain_in"; then
  37420. - test -f Makefile && make "$ltmain"
  37421. + if ls -dL / >/dev/null 2>&1; then
  37422. + as_ls_L_option=L
  37423. + else
  37424. + as_ls_L_option=
  37425. fi
  37426. + as_test_x='
  37427. + eval sh -c '\''
  37428. + if test -d "$1"; then
  37429. + test -d "$1/.";
  37430. + else
  37431. + case $1 in #(
  37432. + -*)set "./$1";;
  37433. + esac;
  37434. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  37435. + ???[sx]*):;;*)false;;esac;fi
  37436. + '\'' sh
  37437. + '
  37438. fi
  37439. +as_executable_p=$as_test_x
  37440. +# Sed expression to map a string onto a valid CPP name.
  37441. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  37442. -ac_ext=c
  37443. -ac_cpp='$CPP $CPPFLAGS'
  37444. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37445. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37446. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37447. -
  37448. -CC="$lt_save_CC"
  37449. +# Sed expression to map a string onto a valid variable name.
  37450. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  37451. - else
  37452. - tagname=""
  37453. - fi
  37454. - ;;
  37455. - GCJ)
  37456. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  37457. +exec 6>&1
  37458. +## ----------------------------------- ##
  37459. +## Main body of $CONFIG_STATUS script. ##
  37460. +## ----------------------------------- ##
  37461. +_ASEOF
  37462. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  37463. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37464. +# Save the log message, to keep $0 and so on meaningful, and to
  37465. +# report actual input values of CONFIG_FILES etc. instead of their
  37466. +# values after options handling.
  37467. +ac_log="
  37468. +This file was extended by libxkbfile $as_me 1.0.6, which was
  37469. +generated by GNU Autoconf 2.65. Invocation command line was
  37470. -# Source file extension for Java test sources.
  37471. -ac_ext=java
  37472. + CONFIG_FILES = $CONFIG_FILES
  37473. + CONFIG_HEADERS = $CONFIG_HEADERS
  37474. + CONFIG_LINKS = $CONFIG_LINKS
  37475. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  37476. + $ $0 $@
  37477. -# Object file extension for compiled Java test sources.
  37478. -objext=o
  37479. -objext_GCJ=$objext
  37480. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  37481. +"
  37482. -# Code to be used in simple compile tests
  37483. -lt_simple_compile_test_code="class foo {}"
  37484. +_ACEOF
  37485. -# Code to be used in simple link tests
  37486. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  37487. +case $ac_config_files in *"
  37488. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  37489. +esac
  37490. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37491. +case $ac_config_headers in *"
  37492. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  37493. +esac
  37494. -# If no C compiler was specified, use CC.
  37495. -LTCC=${LTCC-"$CC"}
  37496. -# If no C compiler flags were specified, use CFLAGS.
  37497. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  37498. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37499. +# Files that config.status was made for.
  37500. +config_files="$ac_config_files"
  37501. +config_headers="$ac_config_headers"
  37502. +config_commands="$ac_config_commands"
  37503. -# Allow CC to be a program name with arguments.
  37504. -compiler=$CC
  37505. +_ACEOF
  37506. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37507. +ac_cs_usage="\
  37508. +\`$as_me' instantiates files and other configuration actions
  37509. +from templates according to the current configuration. Unless the files
  37510. +and actions are specified as TAGs, all are instantiated by default.
  37511. -# save warnings/boilerplate of simple test code
  37512. -ac_outfile=conftest.$ac_objext
  37513. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  37514. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37515. -_lt_compiler_boilerplate=`cat conftest.err`
  37516. -$rm conftest*
  37517. +Usage: $0 [OPTION]... [TAG]...
  37518. -ac_outfile=conftest.$ac_objext
  37519. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  37520. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  37521. -_lt_linker_boilerplate=`cat conftest.err`
  37522. -$rm -r conftest*
  37523. + -h, --help print this help, then exit
  37524. + -V, --version print version number and configuration settings, then exit
  37525. + --config print configuration, then exit
  37526. + -q, --quiet, --silent
  37527. + do not print progress messages
  37528. + -d, --debug don't remove temporary files
  37529. + --recheck update $as_me by reconfiguring in the same conditions
  37530. + --file=FILE[:TEMPLATE]
  37531. + instantiate the configuration file FILE
  37532. + --header=FILE[:TEMPLATE]
  37533. + instantiate the configuration header FILE
  37534. +Configuration files:
  37535. +$config_files
  37536. -# Allow CC to be a program name with arguments.
  37537. -lt_save_CC="$CC"
  37538. -CC=${GCJ-"gcj"}
  37539. -compiler=$CC
  37540. -compiler_GCJ=$CC
  37541. -for cc_temp in $compiler""; do
  37542. - case $cc_temp in
  37543. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37544. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37545. - \-*) ;;
  37546. - *) break;;
  37547. - esac
  37548. -done
  37549. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37550. +Configuration headers:
  37551. +$config_headers
  37552. +Configuration commands:
  37553. +$config_commands
  37554. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  37555. -archive_cmds_need_lc_GCJ=no
  37556. +Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  37557. -old_archive_cmds_GCJ=$old_archive_cmds
  37558. +_ACEOF
  37559. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37560. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  37561. +ac_cs_version="\\
  37562. +libxkbfile config.status 1.0.6
  37563. +configured by $0, generated by GNU Autoconf 2.65,
  37564. + with options \\"\$ac_cs_config\\"
  37565. +Copyright (C) 2009 Free Software Foundation, Inc.
  37566. +This config.status script is free software; the Free Software Foundation
  37567. +gives unlimited permission to copy, distribute and modify it."
  37568. -lt_prog_compiler_no_builtin_flag_GCJ=
  37569. +ac_pwd='$ac_pwd'
  37570. +srcdir='$srcdir'
  37571. +INSTALL='$INSTALL'
  37572. +MKDIR_P='$MKDIR_P'
  37573. +AWK='$AWK'
  37574. +test -n "\$AWK" || AWK=awk
  37575. +_ACEOF
  37576. -if test "$GCC" = yes; then
  37577. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  37578. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37579. +# The default lists apply if the user does not specify any file.
  37580. +ac_need_defaults=:
  37581. +while test $# != 0
  37582. +do
  37583. + case $1 in
  37584. + --*=*)
  37585. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  37586. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  37587. + ac_shift=:
  37588. + ;;
  37589. + *)
  37590. + ac_option=$1
  37591. + ac_optarg=$2
  37592. + ac_shift=shift
  37593. + ;;
  37594. + esac
  37595. + case $ac_option in
  37596. + # Handling of the options.
  37597. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  37598. + ac_cs_recheck=: ;;
  37599. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  37600. + $as_echo "$ac_cs_version"; exit ;;
  37601. + --config | --confi | --conf | --con | --co | --c )
  37602. + $as_echo "$ac_cs_config"; exit ;;
  37603. + --debug | --debu | --deb | --de | --d | -d )
  37604. + debug=: ;;
  37605. + --file | --fil | --fi | --f )
  37606. + $ac_shift
  37607. + case $ac_optarg in
  37608. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  37609. + esac
  37610. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  37611. + ac_need_defaults=false;;
  37612. + --header | --heade | --head | --hea )
  37613. + $ac_shift
  37614. + case $ac_optarg in
  37615. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  37616. + esac
  37617. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  37618. + ac_need_defaults=false;;
  37619. + --he | --h)
  37620. + # Conflict between --help and --header
  37621. + as_fn_error "ambiguous option: \`$1'
  37622. +Try \`$0 --help' for more information.";;
  37623. + --help | --hel | -h )
  37624. + $as_echo "$ac_cs_usage"; exit ;;
  37625. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  37626. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  37627. + ac_cs_silent=: ;;
  37628. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  37629. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  37630. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  37631. - $as_echo_n "(cached) " >&6
  37632. -else
  37633. - lt_cv_prog_compiler_rtti_exceptions=no
  37634. - ac_outfile=conftest.$ac_objext
  37635. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  37636. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  37637. - # Insert the option either (1) after the last *FLAGS variable, or
  37638. - # (2) before a word containing "conftest.", or (3) at the end.
  37639. - # Note that $ac_compile itself does not contain backslashes and begins
  37640. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37641. - # The option is referenced via a variable to avoid confusing sed.
  37642. - lt_compile=`echo "$ac_compile" | $SED \
  37643. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  37644. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37645. - -e 's:$: $lt_compiler_flag:'`
  37646. - (eval echo "\"\$as_me:16958: $lt_compile\"" >&5)
  37647. - (eval "$lt_compile" 2>conftest.err)
  37648. - ac_status=$?
  37649. - cat conftest.err >&5
  37650. - echo "$as_me:16962: \$? = $ac_status" >&5
  37651. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37652. - # The compiler can only warn and ignore the option if not recognized
  37653. - # So say no if there are warnings other than the usual output.
  37654. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  37655. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  37656. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  37657. - lt_cv_prog_compiler_rtti_exceptions=yes
  37658. - fi
  37659. - fi
  37660. - $rm conftest*
  37661. + # This is an error.
  37662. + -*) as_fn_error "unrecognized option: \`$1'
  37663. +Try \`$0 --help' for more information." ;;
  37664. -fi
  37665. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  37666. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  37667. + *) as_fn_append ac_config_targets " $1"
  37668. + ac_need_defaults=false ;;
  37669. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  37670. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  37671. -else
  37672. - :
  37673. + esac
  37674. + shift
  37675. +done
  37676. +
  37677. +ac_configure_extra_args=
  37678. +
  37679. +if $ac_cs_silent; then
  37680. + exec 6>/dev/null
  37681. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  37682. fi
  37683. +_ACEOF
  37684. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37685. +if \$ac_cs_recheck; then
  37686. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  37687. + shift
  37688. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  37689. + CONFIG_SHELL='$SHELL'
  37690. + export CONFIG_SHELL
  37691. + exec "\$@"
  37692. fi
  37693. -lt_prog_compiler_wl_GCJ=
  37694. -lt_prog_compiler_pic_GCJ=
  37695. -lt_prog_compiler_static_GCJ=
  37696. +_ACEOF
  37697. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37698. +exec 5>>config.log
  37699. +{
  37700. + echo
  37701. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  37702. +## Running $as_me. ##
  37703. +_ASBOX
  37704. + $as_echo "$ac_log"
  37705. +} >&5
  37706. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  37707. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  37708. +_ACEOF
  37709. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37710. +#
  37711. +# INIT-COMMANDS
  37712. +#
  37713. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  37714. - if test "$GCC" = yes; then
  37715. - lt_prog_compiler_wl_GCJ='-Wl,'
  37716. - lt_prog_compiler_static_GCJ='-static'
  37717. - case $host_os in
  37718. - aix*)
  37719. - # All AIX code is PIC.
  37720. - if test "$host_cpu" = ia64; then
  37721. - # AIX 5 now supports IA64 processor
  37722. - lt_prog_compiler_static_GCJ='-Bstatic'
  37723. - fi
  37724. - ;;
  37725. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  37726. +# if CDPATH is set.
  37727. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  37728. - amigaos*)
  37729. - # FIXME: we need at least 68020 code to build shared libraries, but
  37730. - # adding the `-m68020' flag to GCC prevents building anything better,
  37731. - # like `-m68040'.
  37732. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  37733. +sed_quote_subst='$sed_quote_subst'
  37734. +double_quote_subst='$double_quote_subst'
  37735. +delay_variable_subst='$delay_variable_subst'
  37736. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  37737. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  37738. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  37739. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  37740. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  37741. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  37742. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  37743. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  37744. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  37745. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  37746. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  37747. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  37748. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  37749. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  37750. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  37751. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  37752. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  37753. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  37754. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  37755. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  37756. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  37757. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  37758. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  37759. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  37760. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  37761. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  37762. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37763. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37764. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  37765. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  37766. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  37767. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  37768. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  37769. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  37770. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  37771. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37772. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37773. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37774. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  37775. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  37776. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  37777. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  37778. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  37779. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  37780. +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"`'
  37781. +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"`'
  37782. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  37783. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  37784. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  37785. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  37786. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37787. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  37788. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  37789. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  37790. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  37791. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  37792. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  37793. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  37794. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  37795. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  37796. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  37797. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  37798. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37799. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37800. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  37801. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  37802. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37803. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37804. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  37805. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37806. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37807. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37808. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37809. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37810. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37811. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  37812. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37813. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37814. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37815. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  37816. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  37817. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  37818. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  37819. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  37820. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37821. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  37822. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  37823. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  37824. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  37825. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  37826. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37827. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  37828. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  37829. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37830. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37831. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  37832. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  37833. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  37834. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  37835. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37836. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37837. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  37838. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37839. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37840. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37841. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37842. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37843. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37844. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  37845. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  37846. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37847. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37848. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  37849. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  37850. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  37851. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  37852. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  37853. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  37854. +
  37855. +LTCC='$LTCC'
  37856. +LTCFLAGS='$LTCFLAGS'
  37857. +compiler='$compiler_DEFAULT'
  37858. +
  37859. +# Quote evaled strings.
  37860. +for var in SED \
  37861. +GREP \
  37862. +EGREP \
  37863. +FGREP \
  37864. +LD \
  37865. +NM \
  37866. +LN_S \
  37867. +lt_SP2NL \
  37868. +lt_NL2SP \
  37869. +reload_flag \
  37870. +OBJDUMP \
  37871. +deplibs_check_method \
  37872. +file_magic_cmd \
  37873. +AR \
  37874. +AR_FLAGS \
  37875. +STRIP \
  37876. +RANLIB \
  37877. +CC \
  37878. +CFLAGS \
  37879. +compiler \
  37880. +lt_cv_sys_global_symbol_pipe \
  37881. +lt_cv_sys_global_symbol_to_cdecl \
  37882. +lt_cv_sys_global_symbol_to_c_name_address \
  37883. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  37884. +SHELL \
  37885. +ECHO \
  37886. +lt_prog_compiler_no_builtin_flag \
  37887. +lt_prog_compiler_wl \
  37888. +lt_prog_compiler_pic \
  37889. +lt_prog_compiler_static \
  37890. +lt_cv_prog_compiler_c_o \
  37891. +need_locks \
  37892. +DSYMUTIL \
  37893. +NMEDIT \
  37894. +LIPO \
  37895. +OTOOL \
  37896. +OTOOL64 \
  37897. +shrext_cmds \
  37898. +export_dynamic_flag_spec \
  37899. +whole_archive_flag_spec \
  37900. +compiler_needs_object \
  37901. +with_gnu_ld \
  37902. +allow_undefined_flag \
  37903. +no_undefined_flag \
  37904. +hardcode_libdir_flag_spec \
  37905. +hardcode_libdir_flag_spec_ld \
  37906. +hardcode_libdir_separator \
  37907. +fix_srcfile_path \
  37908. +exclude_expsyms \
  37909. +include_expsyms \
  37910. +file_list_spec \
  37911. +variables_saved_for_relink \
  37912. +libname_spec \
  37913. +library_names_spec \
  37914. +soname_spec \
  37915. +finish_eval \
  37916. +old_striplib \
  37917. +striplib; do
  37918. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  37919. + *[\\\\\\\`\\"\\\$]*)
  37920. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  37921. ;;
  37922. -
  37923. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37924. - # PIC is the default for these OSes.
  37925. + *)
  37926. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  37927. ;;
  37928. + esac
  37929. +done
  37930. - mingw* | cygwin* | pw32* | os2*)
  37931. - # This hack is so that the source file can tell whether it is being
  37932. - # built for inclusion in a dll (and should export symbols for example).
  37933. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  37934. - # (--disable-auto-import) libraries
  37935. -
  37936. +# Double-quote double-evaled strings.
  37937. +for var in reload_cmds \
  37938. +old_postinstall_cmds \
  37939. +old_postuninstall_cmds \
  37940. +old_archive_cmds \
  37941. +extract_expsyms_cmds \
  37942. +old_archive_from_new_cmds \
  37943. +old_archive_from_expsyms_cmds \
  37944. +archive_cmds \
  37945. +archive_expsym_cmds \
  37946. +module_cmds \
  37947. +module_expsym_cmds \
  37948. +export_symbols_cmds \
  37949. +prelink_cmds \
  37950. +postinstall_cmds \
  37951. +postuninstall_cmds \
  37952. +finish_cmds \
  37953. +sys_lib_search_path_spec \
  37954. +sys_lib_dlsearch_path_spec; do
  37955. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  37956. + *[\\\\\\\`\\"\\\$]*)
  37957. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  37958. ;;
  37959. -
  37960. - darwin* | rhapsody*)
  37961. - # PIC is the default on this platform
  37962. - # Common symbols not allowed in MH_DYLIB files
  37963. - lt_prog_compiler_pic_GCJ='-fno-common'
  37964. + *)
  37965. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  37966. ;;
  37967. + esac
  37968. +done
  37969. - interix[3-9]*)
  37970. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37971. - # Instead, we relocate shared libraries at runtime.
  37972. - ;;
  37973. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  37974. +case \$lt_ECHO in
  37975. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  37976. + ;;
  37977. +esac
  37978. - msdosdjgpp*)
  37979. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  37980. - # on systems that don't support them.
  37981. - lt_prog_compiler_can_build_shared_GCJ=no
  37982. - enable_shared=no
  37983. - ;;
  37984. +ac_aux_dir='$ac_aux_dir'
  37985. +xsi_shell='$xsi_shell'
  37986. +lt_shell_append='$lt_shell_append'
  37987. - sysv4*MP*)
  37988. - if test -d /usr/nec; then
  37989. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  37990. - fi
  37991. - ;;
  37992. +# See if we are running on zsh, and set the options which allow our
  37993. +# commands through without removal of \ escapes INIT.
  37994. +if test -n "\${ZSH_VERSION+set}" ; then
  37995. + setopt NO_GLOB_SUBST
  37996. +fi
  37997. - hpux*)
  37998. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37999. - # not for PA HP-UX.
  38000. - case $host_cpu in
  38001. - hppa*64*|ia64*)
  38002. - # +Z the default
  38003. - ;;
  38004. - *)
  38005. - lt_prog_compiler_pic_GCJ='-fPIC'
  38006. - ;;
  38007. - esac
  38008. - ;;
  38009. - *)
  38010. - lt_prog_compiler_pic_GCJ='-fPIC'
  38011. - ;;
  38012. - esac
  38013. - else
  38014. - # PORTME Check for flag to pass linker flags through the system compiler.
  38015. - case $host_os in
  38016. - aix*)
  38017. - lt_prog_compiler_wl_GCJ='-Wl,'
  38018. - if test "$host_cpu" = ia64; then
  38019. - # AIX 5 now supports IA64 processor
  38020. - lt_prog_compiler_static_GCJ='-Bstatic'
  38021. - else
  38022. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  38023. - fi
  38024. - ;;
  38025. - darwin*)
  38026. - # PIC is the default on this platform
  38027. - # Common symbols not allowed in MH_DYLIB files
  38028. - case $cc_basename in
  38029. - xlc*)
  38030. - lt_prog_compiler_pic_GCJ='-qnocommon'
  38031. - lt_prog_compiler_wl_GCJ='-Wl,'
  38032. - ;;
  38033. - esac
  38034. - ;;
  38035. + PACKAGE='$PACKAGE'
  38036. + VERSION='$VERSION'
  38037. + TIMESTAMP='$TIMESTAMP'
  38038. + RM='$RM'
  38039. + ofile='$ofile'
  38040. - mingw* | cygwin* | pw32* | os2*)
  38041. - # This hack is so that the source file can tell whether it is being
  38042. - # built for inclusion in a dll (and should export symbols for example).
  38043. - ;;
  38044. - hpux9* | hpux10* | hpux11*)
  38045. - lt_prog_compiler_wl_GCJ='-Wl,'
  38046. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  38047. - # not for PA HP-UX.
  38048. - case $host_cpu in
  38049. - hppa*64*|ia64*)
  38050. - # +Z the default
  38051. - ;;
  38052. - *)
  38053. - lt_prog_compiler_pic_GCJ='+Z'
  38054. - ;;
  38055. - esac
  38056. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  38057. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  38058. - ;;
  38059. - irix5* | irix6* | nonstopux*)
  38060. - lt_prog_compiler_wl_GCJ='-Wl,'
  38061. - # PIC (with -KPIC) is the default.
  38062. - lt_prog_compiler_static_GCJ='-non_shared'
  38063. - ;;
  38064. +_ACEOF
  38065. - newsos6)
  38066. - lt_prog_compiler_pic_GCJ='-KPIC'
  38067. - lt_prog_compiler_static_GCJ='-Bstatic'
  38068. - ;;
  38069. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38070. - linux* | k*bsd*-gnu)
  38071. - case $cc_basename in
  38072. - icc* | ecc*)
  38073. - lt_prog_compiler_wl_GCJ='-Wl,'
  38074. - lt_prog_compiler_pic_GCJ='-KPIC'
  38075. - lt_prog_compiler_static_GCJ='-static'
  38076. - ;;
  38077. - pgcc* | pgf77* | pgf90* | pgf95*)
  38078. - # Portland Group compilers (*not* the Pentium gcc compiler,
  38079. - # which looks to be a dead project)
  38080. - lt_prog_compiler_wl_GCJ='-Wl,'
  38081. - lt_prog_compiler_pic_GCJ='-fpic'
  38082. - lt_prog_compiler_static_GCJ='-Bstatic'
  38083. - ;;
  38084. - ccc*)
  38085. - lt_prog_compiler_wl_GCJ='-Wl,'
  38086. - # All Alpha code is PIC.
  38087. - lt_prog_compiler_static_GCJ='-non_shared'
  38088. - ;;
  38089. - *)
  38090. - case `$CC -V 2>&1 | sed 5q` in
  38091. - *Sun\ C*)
  38092. - # Sun C 5.9
  38093. - lt_prog_compiler_pic_GCJ='-KPIC'
  38094. - lt_prog_compiler_static_GCJ='-Bstatic'
  38095. - lt_prog_compiler_wl_GCJ='-Wl,'
  38096. - ;;
  38097. - *Sun\ F*)
  38098. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  38099. - lt_prog_compiler_pic_GCJ='-KPIC'
  38100. - lt_prog_compiler_static_GCJ='-Bstatic'
  38101. - lt_prog_compiler_wl_GCJ=''
  38102. - ;;
  38103. - esac
  38104. - ;;
  38105. - esac
  38106. - ;;
  38107. +# Handling of arguments.
  38108. +for ac_config_target in $ac_config_targets
  38109. +do
  38110. + case $ac_config_target in
  38111. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  38112. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  38113. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  38114. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  38115. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  38116. + "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
  38117. - osf3* | osf4* | osf5*)
  38118. - lt_prog_compiler_wl_GCJ='-Wl,'
  38119. - # All OSF/1 code is PIC.
  38120. - lt_prog_compiler_static_GCJ='-non_shared'
  38121. - ;;
  38122. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  38123. + esac
  38124. +done
  38125. - rdos*)
  38126. - lt_prog_compiler_static_GCJ='-non_shared'
  38127. - ;;
  38128. - solaris*)
  38129. - lt_prog_compiler_pic_GCJ='-KPIC'
  38130. - lt_prog_compiler_static_GCJ='-Bstatic'
  38131. - case $cc_basename in
  38132. - f77* | f90* | f95*)
  38133. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  38134. - *)
  38135. - lt_prog_compiler_wl_GCJ='-Wl,';;
  38136. - esac
  38137. - ;;
  38138. -
  38139. - sunos4*)
  38140. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  38141. - lt_prog_compiler_pic_GCJ='-PIC'
  38142. - lt_prog_compiler_static_GCJ='-Bstatic'
  38143. - ;;
  38144. +# If the user did not use the arguments to specify the items to instantiate,
  38145. +# then the envvar interface is used. Set only those that are not.
  38146. +# We use the long form for the default assignment because of an extremely
  38147. +# bizarre bug on SunOS 4.1.3.
  38148. +if $ac_need_defaults; then
  38149. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  38150. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  38151. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  38152. +fi
  38153. - sysv4 | sysv4.2uw2* | sysv4.3*)
  38154. - lt_prog_compiler_wl_GCJ='-Wl,'
  38155. - lt_prog_compiler_pic_GCJ='-KPIC'
  38156. - lt_prog_compiler_static_GCJ='-Bstatic'
  38157. - ;;
  38158. +# Have a temporary directory for convenience. Make it in the build tree
  38159. +# simply because there is no reason against having it here, and in addition,
  38160. +# creating and moving files from /tmp can sometimes cause problems.
  38161. +# Hook for its removal unless debugging.
  38162. +# Note that there is a small window in which the directory will not be cleaned:
  38163. +# after its creation but before its name has been assigned to `$tmp'.
  38164. +$debug ||
  38165. +{
  38166. + tmp=
  38167. + trap 'exit_status=$?
  38168. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  38169. +' 0
  38170. + trap 'as_fn_exit 1' 1 2 13 15
  38171. +}
  38172. +# Create a (secure) tmp directory for tmp files.
  38173. - sysv4*MP*)
  38174. - if test -d /usr/nec ;then
  38175. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  38176. - lt_prog_compiler_static_GCJ='-Bstatic'
  38177. - fi
  38178. - ;;
  38179. +{
  38180. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  38181. + test -n "$tmp" && test -d "$tmp"
  38182. +} ||
  38183. +{
  38184. + tmp=./conf$$-$RANDOM
  38185. + (umask 077 && mkdir "$tmp")
  38186. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  38187. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  38188. - lt_prog_compiler_wl_GCJ='-Wl,'
  38189. - lt_prog_compiler_pic_GCJ='-KPIC'
  38190. - lt_prog_compiler_static_GCJ='-Bstatic'
  38191. - ;;
  38192. +# Set up the scripts for CONFIG_FILES section.
  38193. +# No need to generate them if there are no CONFIG_FILES.
  38194. +# This happens for instance with `./config.status config.h'.
  38195. +if test -n "$CONFIG_FILES"; then
  38196. - unicos*)
  38197. - lt_prog_compiler_wl_GCJ='-Wl,'
  38198. - lt_prog_compiler_can_build_shared_GCJ=no
  38199. - ;;
  38200. - uts4*)
  38201. - lt_prog_compiler_pic_GCJ='-pic'
  38202. - lt_prog_compiler_static_GCJ='-Bstatic'
  38203. - ;;
  38204. +ac_cr=`echo X | tr X '\015'`
  38205. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  38206. +# But we know of no other shell where ac_cr would be empty at this
  38207. +# point, so we can use a bashism as a fallback.
  38208. +if test "x$ac_cr" = x; then
  38209. + eval ac_cr=\$\'\\r\'
  38210. +fi
  38211. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  38212. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  38213. + ac_cs_awk_cr='\r'
  38214. +else
  38215. + ac_cs_awk_cr=$ac_cr
  38216. +fi
  38217. - *)
  38218. - lt_prog_compiler_can_build_shared_GCJ=no
  38219. - ;;
  38220. - esac
  38221. - fi
  38222. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  38223. +_ACEOF
  38224. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  38225. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  38226. -#
  38227. -# Check to make sure the PIC flag actually works.
  38228. -#
  38229. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  38230. +{
  38231. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  38232. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  38233. + echo "_ACEOF"
  38234. +} >conf$$subs.sh ||
  38235. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38236. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  38237. +ac_delim='%!_!# '
  38238. +for ac_last_try in false false false false false :; do
  38239. + . ./conf$$subs.sh ||
  38240. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38241. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  38242. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  38243. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  38244. - $as_echo_n "(cached) " >&6
  38245. -else
  38246. - lt_cv_prog_compiler_pic_works_GCJ=no
  38247. - ac_outfile=conftest.$ac_objext
  38248. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  38249. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  38250. - # Insert the option either (1) after the last *FLAGS variable, or
  38251. - # (2) before a word containing "conftest.", or (3) at the end.
  38252. - # Note that $ac_compile itself does not contain backslashes and begins
  38253. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38254. - # The option is referenced via a variable to avoid confusing sed.
  38255. - lt_compile=`echo "$ac_compile" | $SED \
  38256. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38257. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38258. - -e 's:$: $lt_compiler_flag:'`
  38259. - (eval echo "\"\$as_me:17248: $lt_compile\"" >&5)
  38260. - (eval "$lt_compile" 2>conftest.err)
  38261. - ac_status=$?
  38262. - cat conftest.err >&5
  38263. - echo "$as_me:17252: \$? = $ac_status" >&5
  38264. - if (exit $ac_status) && test -s "$ac_outfile"; then
  38265. - # The compiler can only warn and ignore the option if not recognized
  38266. - # So say no if there are warnings other than the usual output.
  38267. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  38268. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38269. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  38270. - lt_cv_prog_compiler_pic_works_GCJ=yes
  38271. - fi
  38272. - fi
  38273. - $rm conftest*
  38274. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  38275. + if test $ac_delim_n = $ac_delim_num; then
  38276. + break
  38277. + elif $ac_last_try; then
  38278. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38279. + else
  38280. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38281. + fi
  38282. +done
  38283. +rm -f conf$$subs.sh
  38284. -fi
  38285. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  38286. -$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  38287. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38288. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  38289. +_ACEOF
  38290. +sed -n '
  38291. +h
  38292. +s/^/S["/; s/!.*/"]=/
  38293. +p
  38294. +g
  38295. +s/^[^!]*!//
  38296. +:repl
  38297. +t repl
  38298. +s/'"$ac_delim"'$//
  38299. +t delim
  38300. +:nl
  38301. +h
  38302. +s/\(.\{148\}\)..*/\1/
  38303. +t more1
  38304. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  38305. +p
  38306. +n
  38307. +b repl
  38308. +:more1
  38309. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38310. +p
  38311. +g
  38312. +s/.\{148\}//
  38313. +t nl
  38314. +:delim
  38315. +h
  38316. +s/\(.\{148\}\)..*/\1/
  38317. +t more2
  38318. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  38319. +p
  38320. +b
  38321. +:more2
  38322. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38323. +p
  38324. +g
  38325. +s/.\{148\}//
  38326. +t delim
  38327. +' <conf$$subs.awk | sed '
  38328. +/^[^""]/{
  38329. + N
  38330. + s/\n//
  38331. +}
  38332. +' >>$CONFIG_STATUS || ac_write_fail=1
  38333. +rm -f conf$$subs.awk
  38334. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38335. +_ACAWK
  38336. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  38337. + for (key in S) S_is_set[key] = 1
  38338. + FS = ""
  38339. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  38340. - case $lt_prog_compiler_pic_GCJ in
  38341. - "" | " "*) ;;
  38342. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  38343. - esac
  38344. -else
  38345. - lt_prog_compiler_pic_GCJ=
  38346. - lt_prog_compiler_can_build_shared_GCJ=no
  38347. -fi
  38348. +}
  38349. +{
  38350. + line = $ 0
  38351. + nfields = split(line, field, "@")
  38352. + substed = 0
  38353. + len = length(field[1])
  38354. + for (i = 2; i < nfields; i++) {
  38355. + key = field[i]
  38356. + keylen = length(key)
  38357. + if (S_is_set[key]) {
  38358. + value = S[key]
  38359. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  38360. + len += length(value) + length(field[++i])
  38361. + substed = 1
  38362. + } else
  38363. + len += 1 + keylen
  38364. + }
  38365. -fi
  38366. -case $host_os in
  38367. - # For platforms which do not support PIC, -DPIC is meaningless:
  38368. - *djgpp*)
  38369. - lt_prog_compiler_pic_GCJ=
  38370. - ;;
  38371. - *)
  38372. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  38373. - ;;
  38374. -esac
  38375. + print line
  38376. +}
  38377. -#
  38378. -# Check to make sure the static flag actually works.
  38379. -#
  38380. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  38381. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  38382. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  38383. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  38384. - $as_echo_n "(cached) " >&6
  38385. +_ACAWK
  38386. +_ACEOF
  38387. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38388. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  38389. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  38390. else
  38391. - lt_cv_prog_compiler_static_works_GCJ=no
  38392. - save_LDFLAGS="$LDFLAGS"
  38393. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  38394. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  38395. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  38396. - # The linker can only warn and ignore the option if not recognized
  38397. - # So say no if there are warnings
  38398. - if test -s conftest.err; then
  38399. - # Append any errors to the config.log.
  38400. - cat conftest.err 1>&5
  38401. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  38402. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  38403. - if diff conftest.exp conftest.er2 >/dev/null; then
  38404. - lt_cv_prog_compiler_static_works_GCJ=yes
  38405. - fi
  38406. - else
  38407. - lt_cv_prog_compiler_static_works_GCJ=yes
  38408. - fi
  38409. - fi
  38410. - $rm -r conftest*
  38411. - LDFLAGS="$save_LDFLAGS"
  38412. + cat
  38413. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  38414. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  38415. +_ACEOF
  38416. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  38417. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  38418. +# trailing colons and then remove the whole line if VPATH becomes empty
  38419. +# (actually we leave an empty line to preserve line numbers).
  38420. +if test "x$srcdir" = x.; then
  38421. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  38422. +s/:*\$(srcdir):*/:/
  38423. +s/:*\${srcdir}:*/:/
  38424. +s/:*@srcdir@:*/:/
  38425. +s/^\([^=]*=[ ]*\):*/\1/
  38426. +s/:*$//
  38427. +s/^[^=]*=[ ]*$//
  38428. +}'
  38429. fi
  38430. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  38431. -$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  38432. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  38433. - :
  38434. -else
  38435. - lt_prog_compiler_static_GCJ=
  38436. -fi
  38437. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38438. +fi # test -n "$CONFIG_FILES"
  38439. +# Set up the scripts for CONFIG_HEADERS section.
  38440. +# No need to generate them if there are no CONFIG_HEADERS.
  38441. +# This happens for instance with `./config.status Makefile'.
  38442. +if test -n "$CONFIG_HEADERS"; then
  38443. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  38444. +BEGIN {
  38445. +_ACEOF
  38446. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  38447. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  38448. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  38449. - $as_echo_n "(cached) " >&6
  38450. -else
  38451. - lt_cv_prog_compiler_c_o_GCJ=no
  38452. - $rm -r conftest 2>/dev/null
  38453. - mkdir conftest
  38454. - cd conftest
  38455. - mkdir out
  38456. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  38457. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  38458. +# here-document in config.status, that substitutes the proper values into
  38459. +# config.h.in to produce config.h.
  38460. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  38461. - # Insert the option either (1) after the last *FLAGS variable, or
  38462. - # (2) before a word containing "conftest.", or (3) at the end.
  38463. - # Note that $ac_compile itself does not contain backslashes and begins
  38464. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  38465. - lt_compile=`echo "$ac_compile" | $SED \
  38466. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  38467. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  38468. - -e 's:$: $lt_compiler_flag:'`
  38469. - (eval echo "\"\$as_me:17352: $lt_compile\"" >&5)
  38470. - (eval "$lt_compile" 2>out/conftest.err)
  38471. - ac_status=$?
  38472. - cat out/conftest.err >&5
  38473. - echo "$as_me:17356: \$? = $ac_status" >&5
  38474. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  38475. - then
  38476. - # The compiler can only warn and ignore the option if not recognized
  38477. - # So say no if there are warnings
  38478. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  38479. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  38480. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  38481. - lt_cv_prog_compiler_c_o_GCJ=yes
  38482. - fi
  38483. - fi
  38484. - chmod u+w . 2>&5
  38485. - $rm conftest*
  38486. - # SGI C++ compiler will create directory out/ii_files/ for
  38487. - # template instantiation
  38488. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  38489. - $rm out/* && rmdir out
  38490. - cd ..
  38491. - rmdir conftest
  38492. - $rm conftest*
  38493. +# Create a delimiter string that does not exist in confdefs.h, to ease
  38494. +# handling of long lines.
  38495. +ac_delim='%!_!# '
  38496. +for ac_last_try in false false :; do
  38497. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  38498. + if test -z "$ac_t"; then
  38499. + break
  38500. + elif $ac_last_try; then
  38501. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  38502. + else
  38503. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38504. + fi
  38505. +done
  38506. -fi
  38507. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  38508. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  38509. +# For the awk script, D is an array of macro values keyed by name,
  38510. +# likewise P contains macro parameters if any. Preserve backslash
  38511. +# newline sequences.
  38512. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  38513. +sed -n '
  38514. +s/.\{148\}/&'"$ac_delim"'/g
  38515. +t rset
  38516. +:rset
  38517. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  38518. +t def
  38519. +d
  38520. +:def
  38521. +s/\\$//
  38522. +t bsnl
  38523. +s/["\\]/\\&/g
  38524. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  38525. +D["\1"]=" \3"/p
  38526. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  38527. +d
  38528. +:bsnl
  38529. +s/["\\]/\\&/g
  38530. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  38531. +D["\1"]=" \3\\\\\\n"\\/p
  38532. +t cont
  38533. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  38534. +t cont
  38535. +d
  38536. +:cont
  38537. +n
  38538. +s/.\{148\}/&'"$ac_delim"'/g
  38539. +t clear
  38540. +:clear
  38541. +s/\\$//
  38542. +t bsnlc
  38543. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  38544. +d
  38545. +:bsnlc
  38546. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  38547. +b cont
  38548. +' <confdefs.h | sed '
  38549. +s/'"$ac_delim"'/"\\\
  38550. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  38551. -hard_links="nottested"
  38552. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  38553. - # do not overwrite the value of need_locks provided by the user
  38554. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  38555. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  38556. - hard_links=yes
  38557. - $rm conftest*
  38558. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38559. - touch conftest.a
  38560. - ln conftest.a conftest.b 2>&5 || hard_links=no
  38561. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  38562. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  38563. -$as_echo "$hard_links" >&6; }
  38564. - if test "$hard_links" = no; then
  38565. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  38566. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  38567. - need_locks=warn
  38568. - fi
  38569. -else
  38570. - need_locks=no
  38571. -fi
  38572. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38573. + for (key in D) D_is_set[key] = 1
  38574. + FS = ""
  38575. +}
  38576. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  38577. + line = \$ 0
  38578. + split(line, arg, " ")
  38579. + if (arg[1] == "#") {
  38580. + defundef = arg[2]
  38581. + mac1 = arg[3]
  38582. + } else {
  38583. + defundef = substr(arg[1], 2)
  38584. + mac1 = arg[2]
  38585. + }
  38586. + split(mac1, mac2, "(") #)
  38587. + macro = mac2[1]
  38588. + prefix = substr(line, 1, index(line, defundef) - 1)
  38589. + if (D_is_set[macro]) {
  38590. + # Preserve the white space surrounding the "#".
  38591. + print prefix "define", macro P[macro] D[macro]
  38592. + next
  38593. + } else {
  38594. + # Replace #undef with comments. This is necessary, for example,
  38595. + # in the case of _POSIX_SOURCE, which is predefined and required
  38596. + # on some systems where configure will not decide to define it.
  38597. + if (defundef == "undef") {
  38598. + print "/*", prefix defundef, macro, "*/"
  38599. + next
  38600. + }
  38601. + }
  38602. +}
  38603. +{ print }
  38604. +_ACAWK
  38605. +_ACEOF
  38606. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38607. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  38608. +fi # test -n "$CONFIG_HEADERS"
  38609. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  38610. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  38611. - runpath_var=
  38612. - allow_undefined_flag_GCJ=
  38613. - enable_shared_with_static_runtimes_GCJ=no
  38614. - archive_cmds_GCJ=
  38615. - archive_expsym_cmds_GCJ=
  38616. - old_archive_From_new_cmds_GCJ=
  38617. - old_archive_from_expsyms_cmds_GCJ=
  38618. - export_dynamic_flag_spec_GCJ=
  38619. - whole_archive_flag_spec_GCJ=
  38620. - thread_safe_flag_spec_GCJ=
  38621. - hardcode_libdir_flag_spec_GCJ=
  38622. - hardcode_libdir_flag_spec_ld_GCJ=
  38623. - hardcode_libdir_separator_GCJ=
  38624. - hardcode_direct_GCJ=no
  38625. - hardcode_minus_L_GCJ=no
  38626. - hardcode_shlibpath_var_GCJ=unsupported
  38627. - link_all_deplibs_GCJ=unknown
  38628. - hardcode_automatic_GCJ=no
  38629. - module_cmds_GCJ=
  38630. - module_expsym_cmds_GCJ=
  38631. - always_export_symbols_GCJ=no
  38632. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38633. - # include_expsyms should be a list of space-separated symbols to be *always*
  38634. - # included in the symbol list
  38635. - include_expsyms_GCJ=
  38636. - # exclude_expsyms can be an extended regexp of symbols to exclude
  38637. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  38638. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  38639. - # as well as any symbol that contains `d'.
  38640. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  38641. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  38642. - # platforms (ab)use it in PIC code, but their linkers get confused if
  38643. - # the symbol is explicitly referenced. Since portable code cannot
  38644. - # rely on this symbol name, it's probably fine to never include it in
  38645. - # preloaded symbol tables.
  38646. - # Exclude shared library initialization/finalization symbols.
  38647. - extract_expsyms_cmds=
  38648. - # Just being paranoid about ensuring that cc_basename is set.
  38649. - for cc_temp in $compiler""; do
  38650. - case $cc_temp in
  38651. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  38652. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  38653. - \-*) ;;
  38654. - *) break;;
  38655. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  38656. +shift
  38657. +for ac_tag
  38658. +do
  38659. + case $ac_tag in
  38660. + :[FHLC]) ac_mode=$ac_tag; continue;;
  38661. esac
  38662. -done
  38663. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  38664. -
  38665. - case $host_os in
  38666. - cygwin* | mingw* | pw32*)
  38667. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  38668. - # When not using gcc, we currently assume that we are using
  38669. - # Microsoft Visual C++.
  38670. - if test "$GCC" != yes; then
  38671. - with_gnu_ld=no
  38672. - fi
  38673. - ;;
  38674. - interix*)
  38675. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  38676. - with_gnu_ld=yes
  38677. - ;;
  38678. - openbsd*)
  38679. - with_gnu_ld=no
  38680. - ;;
  38681. + case $ac_mode$ac_tag in
  38682. + :[FHL]*:*);;
  38683. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  38684. + :[FH]-) ac_tag=-:-;;
  38685. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  38686. esac
  38687. + ac_save_IFS=$IFS
  38688. + IFS=:
  38689. + set x $ac_tag
  38690. + IFS=$ac_save_IFS
  38691. + shift
  38692. + ac_file=$1
  38693. + shift
  38694. - ld_shlibs_GCJ=yes
  38695. - if test "$with_gnu_ld" = yes; then
  38696. - # If archive_cmds runs LD, not CC, wlarc should be empty
  38697. - wlarc='${wl}'
  38698. + case $ac_mode in
  38699. + :L) ac_source=$1;;
  38700. + :[FH])
  38701. + ac_file_inputs=
  38702. + for ac_f
  38703. + do
  38704. + case $ac_f in
  38705. + -) ac_f="$tmp/stdin";;
  38706. + *) # Look for the file first in the build tree, then in the source tree
  38707. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  38708. + # because $ac_f cannot contain `:'.
  38709. + test -f "$ac_f" ||
  38710. + case $ac_f in
  38711. + [\\/$]*) false;;
  38712. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  38713. + esac ||
  38714. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  38715. + esac
  38716. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  38717. + as_fn_append ac_file_inputs " '$ac_f'"
  38718. + done
  38719. - # Set some defaults for GNU ld with shared library support. These
  38720. - # are reset later if shared libraries are not supported. Putting them
  38721. - # here allows them to be overridden if necessary.
  38722. - runpath_var=LD_RUN_PATH
  38723. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  38724. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  38725. - # ancient GNU ld didn't support --whole-archive et. al.
  38726. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  38727. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38728. - else
  38729. - whole_archive_flag_spec_GCJ=
  38730. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  38731. + # use $as_me), people would be surprised to read:
  38732. + # /* config.h. Generated by config.status. */
  38733. + configure_input='Generated from '`
  38734. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  38735. + `' by configure.'
  38736. + if test x"$ac_file" != x-; then
  38737. + configure_input="$ac_file. $configure_input"
  38738. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  38739. +$as_echo "$as_me: creating $ac_file" >&6;}
  38740. fi
  38741. - supports_anon_versioning=no
  38742. - case `$LD -v 2>/dev/null` in
  38743. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  38744. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  38745. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  38746. - *\ 2.11.*) ;; # other 2.11 versions
  38747. - *) supports_anon_versioning=yes ;;
  38748. + # Neutralize special characters interpreted by sed in replacement strings.
  38749. + case $configure_input in #(
  38750. + *\&* | *\|* | *\\* )
  38751. + ac_sed_conf_input=`$as_echo "$configure_input" |
  38752. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  38753. + *) ac_sed_conf_input=$configure_input;;
  38754. esac
  38755. - # See if GNU ld supports shared libraries.
  38756. - case $host_os in
  38757. - aix[3-9]*)
  38758. - # On AIX/PPC, the GNU linker is very broken
  38759. - if test "$host_cpu" != ia64; then
  38760. - ld_shlibs_GCJ=no
  38761. - cat <<EOF 1>&2
  38762. -
  38763. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  38764. -*** to be unable to reliably create shared libraries on AIX.
  38765. -*** Therefore, libtool is disabling shared libraries support. If you
  38766. -*** really care for shared libraries, you may want to modify your PATH
  38767. -*** so that a non-GNU linker is found, and then restart.
  38768. -
  38769. -EOF
  38770. - fi
  38771. - ;;
  38772. -
  38773. - amigaos*)
  38774. - 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)'
  38775. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38776. - hardcode_minus_L_GCJ=yes
  38777. -
  38778. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  38779. - # that the semantics of dynamic libraries on AmigaOS, at least up
  38780. - # to version 4, is to share data among multiple programs linked
  38781. - # with the same dynamic library. Since this doesn't match the
  38782. - # behavior of shared libraries on other platforms, we can't use
  38783. - # them.
  38784. - ld_shlibs_GCJ=no
  38785. - ;;
  38786. + case $ac_tag in
  38787. + *:-:* | *:-) cat >"$tmp/stdin" \
  38788. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  38789. + esac
  38790. + ;;
  38791. + esac
  38792. - beos*)
  38793. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38794. - allow_undefined_flag_GCJ=unsupported
  38795. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38796. - # support --undefined. This deserves some investigation. FIXME
  38797. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38798. - else
  38799. - ld_shlibs_GCJ=no
  38800. - fi
  38801. - ;;
  38802. -
  38803. - cygwin* | mingw* | pw32*)
  38804. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  38805. - # as there is no search path for DLLs.
  38806. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38807. - allow_undefined_flag_GCJ=unsupported
  38808. - always_export_symbols_GCJ=no
  38809. - enable_shared_with_static_runtimes_GCJ=yes
  38810. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  38811. -
  38812. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  38813. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38814. - # If the export-symbols file already is a .def file (1st line
  38815. - # is EXPORTS), use it as is; otherwise, prepend...
  38816. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  38817. - cp $export_symbols $output_objdir/$soname.def;
  38818. - else
  38819. - echo EXPORTS > $output_objdir/$soname.def;
  38820. - cat $export_symbols >> $output_objdir/$soname.def;
  38821. - fi~
  38822. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38823. - else
  38824. - ld_shlibs_GCJ=no
  38825. - fi
  38826. - ;;
  38827. -
  38828. - interix[3-9]*)
  38829. - hardcode_direct_GCJ=no
  38830. - hardcode_shlibpath_var_GCJ=no
  38831. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38832. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38833. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  38834. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  38835. - # default) and relocated if they conflict, which is a slow very memory
  38836. - # consuming and fragmenting process. To avoid this, we pick a random,
  38837. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  38838. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  38839. - 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'
  38840. - 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'
  38841. - ;;
  38842. -
  38843. - gnu* | linux* | k*bsd*-gnu)
  38844. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38845. - tmp_addflag=
  38846. - case $cc_basename,$host_cpu in
  38847. - pgcc*) # Portland Group C compiler
  38848. - 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'
  38849. - tmp_addflag=' $pic_flag'
  38850. - ;;
  38851. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  38852. - 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'
  38853. - tmp_addflag=' $pic_flag -Mnomain' ;;
  38854. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  38855. - tmp_addflag=' -i_dynamic' ;;
  38856. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  38857. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  38858. - ifc* | ifort*) # Intel Fortran compiler
  38859. - tmp_addflag=' -nofor_main' ;;
  38860. - esac
  38861. - case `$CC -V 2>&1 | sed 5q` in
  38862. - *Sun\ C*) # Sun C 5.9
  38863. - whole_archive_flag_spec_GCJ='${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'
  38864. - tmp_sharedflag='-G' ;;
  38865. - *Sun\ F*) # Sun Fortran 8.3
  38866. - tmp_sharedflag='-G' ;;
  38867. - *)
  38868. - tmp_sharedflag='-shared' ;;
  38869. - esac
  38870. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38871. -
  38872. - if test $supports_anon_versioning = yes; then
  38873. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  38874. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38875. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  38876. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38877. - fi
  38878. - else
  38879. - ld_shlibs_GCJ=no
  38880. - fi
  38881. - ;;
  38882. -
  38883. - netbsd*)
  38884. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38885. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  38886. - wlarc=
  38887. - else
  38888. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38889. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38890. - fi
  38891. - ;;
  38892. + ac_dir=`$as_dirname -- "$ac_file" ||
  38893. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38894. + X"$ac_file" : 'X\(//\)[^/]' \| \
  38895. + X"$ac_file" : 'X\(//\)$' \| \
  38896. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  38897. +$as_echo X"$ac_file" |
  38898. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38899. + s//\1/
  38900. + q
  38901. + }
  38902. + /^X\(\/\/\)[^/].*/{
  38903. + s//\1/
  38904. + q
  38905. + }
  38906. + /^X\(\/\/\)$/{
  38907. + s//\1/
  38908. + q
  38909. + }
  38910. + /^X\(\/\).*/{
  38911. + s//\1/
  38912. + q
  38913. + }
  38914. + s/.*/./; q'`
  38915. + as_dir="$ac_dir"; as_fn_mkdir_p
  38916. + ac_builddir=.
  38917. - solaris*)
  38918. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  38919. - ld_shlibs_GCJ=no
  38920. - cat <<EOF 1>&2
  38921. +case "$ac_dir" in
  38922. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38923. +*)
  38924. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  38925. + # A ".." for each directory in $ac_dir_suffix.
  38926. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  38927. + case $ac_top_builddir_sub in
  38928. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38929. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  38930. + esac ;;
  38931. +esac
  38932. +ac_abs_top_builddir=$ac_pwd
  38933. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  38934. +# for backward compatibility:
  38935. +ac_top_builddir=$ac_top_build_prefix
  38936. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  38937. -*** create shared libraries on Solaris systems. Therefore, libtool
  38938. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38939. -*** binutils to release 2.9.1 or newer. Another option is to modify
  38940. -*** your PATH or compiler configuration so that the native linker is
  38941. -*** used, and then restart.
  38942. +case $srcdir in
  38943. + .) # We are building in place.
  38944. + ac_srcdir=.
  38945. + ac_top_srcdir=$ac_top_builddir_sub
  38946. + ac_abs_top_srcdir=$ac_pwd ;;
  38947. + [\\/]* | ?:[\\/]* ) # Absolute name.
  38948. + ac_srcdir=$srcdir$ac_dir_suffix;
  38949. + ac_top_srcdir=$srcdir
  38950. + ac_abs_top_srcdir=$srcdir ;;
  38951. + *) # Relative name.
  38952. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  38953. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  38954. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  38955. +esac
  38956. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  38957. -EOF
  38958. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38959. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38960. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38961. - else
  38962. - ld_shlibs_GCJ=no
  38963. - fi
  38964. - ;;
  38965. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  38966. - case `$LD -v 2>&1` in
  38967. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  38968. - ld_shlibs_GCJ=no
  38969. - cat <<_LT_EOF 1>&2
  38970. + case $ac_mode in
  38971. + :F)
  38972. + #
  38973. + # CONFIG_FILE
  38974. + #
  38975. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  38976. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  38977. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38978. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  38979. -*** your PATH or compiler configuration so that the native linker is
  38980. -*** used, and then restart.
  38981. + case $INSTALL in
  38982. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  38983. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  38984. + esac
  38985. + ac_MKDIR_P=$MKDIR_P
  38986. + case $MKDIR_P in
  38987. + [\\/$]* | ?:[\\/]* ) ;;
  38988. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  38989. + esac
  38990. +_ACEOF
  38991. -_LT_EOF
  38992. - ;;
  38993. - *)
  38994. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38995. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  38996. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  38997. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  38998. - else
  38999. - ld_shlibs_GCJ=no
  39000. - fi
  39001. - ;;
  39002. - esac
  39003. - ;;
  39004. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39005. +# If the template does not know about datarootdir, expand it.
  39006. +# FIXME: This hack should be removed a few years after 2.60.
  39007. +ac_datarootdir_hack=; ac_datarootdir_seen=
  39008. +ac_sed_dataroot='
  39009. +/datarootdir/ {
  39010. + p
  39011. + q
  39012. +}
  39013. +/@datadir@/p
  39014. +/@docdir@/p
  39015. +/@infodir@/p
  39016. +/@localedir@/p
  39017. +/@mandir@/p'
  39018. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  39019. +*datarootdir*) ac_datarootdir_seen=yes;;
  39020. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  39021. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  39022. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  39023. +_ACEOF
  39024. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39025. + ac_datarootdir_hack='
  39026. + s&@datadir@&$datadir&g
  39027. + s&@docdir@&$docdir&g
  39028. + s&@infodir@&$infodir&g
  39029. + s&@localedir@&$localedir&g
  39030. + s&@mandir@&$mandir&g
  39031. + s&\\\${datarootdir}&$datarootdir&g' ;;
  39032. +esac
  39033. +_ACEOF
  39034. - sunos4*)
  39035. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39036. - wlarc=
  39037. - hardcode_direct_GCJ=yes
  39038. - hardcode_shlibpath_var_GCJ=no
  39039. - ;;
  39040. +# Neutralize VPATH when `$srcdir' = `.'.
  39041. +# Shell code in configure.ac might set extrasub.
  39042. +# FIXME: do we really want to maintain this feature?
  39043. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39044. +ac_sed_extra="$ac_vpsub
  39045. +$extrasub
  39046. +_ACEOF
  39047. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39048. +:t
  39049. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  39050. +s|@configure_input@|$ac_sed_conf_input|;t t
  39051. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  39052. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  39053. +s&@srcdir@&$ac_srcdir&;t t
  39054. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  39055. +s&@top_srcdir@&$ac_top_srcdir&;t t
  39056. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  39057. +s&@builddir@&$ac_builddir&;t t
  39058. +s&@abs_builddir@&$ac_abs_builddir&;t t
  39059. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  39060. +s&@INSTALL@&$ac_INSTALL&;t t
  39061. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  39062. +$ac_datarootdir_hack
  39063. +"
  39064. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  39065. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39066. - *)
  39067. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  39068. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39069. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  39070. - else
  39071. - ld_shlibs_GCJ=no
  39072. - fi
  39073. - ;;
  39074. - esac
  39075. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  39076. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  39077. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  39078. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39079. +which seems to be undefined. Please make sure it is defined." >&5
  39080. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39081. +which seems to be undefined. Please make sure it is defined." >&2;}
  39082. - if test "$ld_shlibs_GCJ" = no; then
  39083. - runpath_var=
  39084. - hardcode_libdir_flag_spec_GCJ=
  39085. - export_dynamic_flag_spec_GCJ=
  39086. - whole_archive_flag_spec_GCJ=
  39087. + rm -f "$tmp/stdin"
  39088. + case $ac_file in
  39089. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  39090. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  39091. + esac \
  39092. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39093. + ;;
  39094. + :H)
  39095. + #
  39096. + # CONFIG_HEADER
  39097. + #
  39098. + if test x"$ac_file" != x-; then
  39099. + {
  39100. + $as_echo "/* $configure_input */" \
  39101. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  39102. + } >"$tmp/config.h" \
  39103. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39104. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  39105. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  39106. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  39107. + else
  39108. + rm -f "$ac_file"
  39109. + mv "$tmp/config.h" "$ac_file" \
  39110. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39111. fi
  39112. else
  39113. - # PORTME fill in a description of your system's linker (not GNU ld)
  39114. - case $host_os in
  39115. - aix3*)
  39116. - allow_undefined_flag_GCJ=unsupported
  39117. - always_export_symbols_GCJ=yes
  39118. - 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'
  39119. - # Note: this linker hardcodes the directories in LIBPATH if there
  39120. - # are no directories specified by -L.
  39121. - hardcode_minus_L_GCJ=yes
  39122. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  39123. - # Neither direct hardcoding nor static linking is supported with a
  39124. - # broken collect2.
  39125. - hardcode_direct_GCJ=unsupported
  39126. - fi
  39127. - ;;
  39128. -
  39129. - aix[4-9]*)
  39130. - if test "$host_cpu" = ia64; then
  39131. - # On IA64, the linker does run time linking by default, so we don't
  39132. - # have to do anything special.
  39133. - aix_use_runtimelinking=no
  39134. - exp_sym_flag='-Bexport'
  39135. - no_entry_flag=""
  39136. - else
  39137. - # If we're using GNU nm, then we don't want the "-C" option.
  39138. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  39139. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  39140. - 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'
  39141. - else
  39142. - 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'
  39143. - fi
  39144. - aix_use_runtimelinking=no
  39145. + $as_echo "/* $configure_input */" \
  39146. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  39147. + || as_fn_error "could not create -" "$LINENO" 5
  39148. + fi
  39149. +# Compute "$ac_file"'s index in $config_headers.
  39150. +_am_arg="$ac_file"
  39151. +_am_stamp_count=1
  39152. +for _am_header in $config_headers :; do
  39153. + case $_am_header in
  39154. + $_am_arg | $_am_arg:* )
  39155. + break ;;
  39156. + * )
  39157. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  39158. + esac
  39159. +done
  39160. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  39161. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39162. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  39163. + X"$_am_arg" : 'X\(//\)$' \| \
  39164. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  39165. +$as_echo X"$_am_arg" |
  39166. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39167. + s//\1/
  39168. + q
  39169. + }
  39170. + /^X\(\/\/\)[^/].*/{
  39171. + s//\1/
  39172. + q
  39173. + }
  39174. + /^X\(\/\/\)$/{
  39175. + s//\1/
  39176. + q
  39177. + }
  39178. + /^X\(\/\).*/{
  39179. + s//\1/
  39180. + q
  39181. + }
  39182. + s/.*/./; q'`/stamp-h$_am_stamp_count
  39183. + ;;
  39184. - # Test if we are trying to use run time linking or normal
  39185. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  39186. - # need to do runtime linking.
  39187. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  39188. - for ld_flag in $LDFLAGS; do
  39189. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  39190. - aix_use_runtimelinking=yes
  39191. - break
  39192. - fi
  39193. - done
  39194. - ;;
  39195. - esac
  39196. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  39197. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  39198. + ;;
  39199. + esac
  39200. - exp_sym_flag='-bexport'
  39201. - no_entry_flag='-bnoentry'
  39202. - fi
  39203. - # When large executables or shared objects are built, AIX ld can
  39204. - # have problems creating the table of contents. If linking a library
  39205. - # or program results in "error TOC overflow" add -mminimal-toc to
  39206. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  39207. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  39208. + case $ac_file$ac_mode in
  39209. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  39210. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  39211. + # are listed without --file. Let's play safe and only enable the eval
  39212. + # if we detect the quoting.
  39213. + case $CONFIG_FILES in
  39214. + *\'*) eval set x "$CONFIG_FILES" ;;
  39215. + *) set x $CONFIG_FILES ;;
  39216. + esac
  39217. + shift
  39218. + for mf
  39219. + do
  39220. + # Strip MF so we end up with the name of the file.
  39221. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  39222. + # Check whether this is an Automake generated Makefile or not.
  39223. + # We used to match only the files named `Makefile.in', but
  39224. + # some people rename them; so instead we look at the file content.
  39225. + # Grep'ing the first line is not enough: some people post-process
  39226. + # each Makefile.in and add a new line on top of each file to say so.
  39227. + # Grep'ing the whole file is not good either: AIX grep has a line
  39228. + # limit of 2048, but all sed's we know have understand at least 4000.
  39229. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  39230. + dirpart=`$as_dirname -- "$mf" ||
  39231. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39232. + X"$mf" : 'X\(//\)[^/]' \| \
  39233. + X"$mf" : 'X\(//\)$' \| \
  39234. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  39235. +$as_echo X"$mf" |
  39236. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39237. + s//\1/
  39238. + q
  39239. + }
  39240. + /^X\(\/\/\)[^/].*/{
  39241. + s//\1/
  39242. + q
  39243. + }
  39244. + /^X\(\/\/\)$/{
  39245. + s//\1/
  39246. + q
  39247. + }
  39248. + /^X\(\/\).*/{
  39249. + s//\1/
  39250. + q
  39251. + }
  39252. + s/.*/./; q'`
  39253. + else
  39254. + continue
  39255. + fi
  39256. + # Extract the definition of DEPDIR, am__include, and am__quote
  39257. + # from the Makefile without running `make'.
  39258. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  39259. + test -z "$DEPDIR" && continue
  39260. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  39261. + test -z "am__include" && continue
  39262. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  39263. + # When using ansi2knr, U may be empty or an underscore; expand it
  39264. + U=`sed -n 's/^U = //p' < "$mf"`
  39265. + # Find all dependency output files, they are included files with
  39266. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  39267. + # simplest approach to changing $(DEPDIR) to its actual value in the
  39268. + # expansion.
  39269. + for file in `sed -n "
  39270. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  39271. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  39272. + # Make sure the directory exists.
  39273. + test -f "$dirpart/$file" && continue
  39274. + fdir=`$as_dirname -- "$file" ||
  39275. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39276. + X"$file" : 'X\(//\)[^/]' \| \
  39277. + X"$file" : 'X\(//\)$' \| \
  39278. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  39279. +$as_echo X"$file" |
  39280. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39281. + s//\1/
  39282. + q
  39283. + }
  39284. + /^X\(\/\/\)[^/].*/{
  39285. + s//\1/
  39286. + q
  39287. + }
  39288. + /^X\(\/\/\)$/{
  39289. + s//\1/
  39290. + q
  39291. + }
  39292. + /^X\(\/\).*/{
  39293. + s//\1/
  39294. + q
  39295. + }
  39296. + s/.*/./; q'`
  39297. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  39298. + # echo "creating $dirpart/$file"
  39299. + echo '# dummy' > "$dirpart/$file"
  39300. + done
  39301. + done
  39302. +}
  39303. + ;;
  39304. + "libtool":C)
  39305. - archive_cmds_GCJ=''
  39306. - hardcode_direct_GCJ=yes
  39307. - hardcode_libdir_separator_GCJ=':'
  39308. - link_all_deplibs_GCJ=yes
  39309. + # See if we are running on zsh, and set the options which allow our
  39310. + # commands through without removal of \ escapes.
  39311. + if test -n "${ZSH_VERSION+set}" ; then
  39312. + setopt NO_GLOB_SUBST
  39313. + fi
  39314. - if test "$GCC" = yes; then
  39315. - case $host_os in aix4.[012]|aix4.[012].*)
  39316. - # We only want to do this on AIX 4.2 and lower, the check
  39317. - # below for broken collect2 doesn't work under 4.3+
  39318. - collect2name=`${CC} -print-prog-name=collect2`
  39319. - if test -f "$collect2name" && \
  39320. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  39321. - then
  39322. - # We have reworked collect2
  39323. - :
  39324. - else
  39325. - # We have old collect2
  39326. - hardcode_direct_GCJ=unsupported
  39327. - # It fails to find uninstalled libraries when the uninstalled
  39328. - # path is not listed in the libpath. Setting hardcode_minus_L
  39329. - # to unsupported forces relinking
  39330. - hardcode_minus_L_GCJ=yes
  39331. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39332. - hardcode_libdir_separator_GCJ=
  39333. - fi
  39334. - ;;
  39335. - esac
  39336. - shared_flag='-shared'
  39337. - if test "$aix_use_runtimelinking" = yes; then
  39338. - shared_flag="$shared_flag "'${wl}-G'
  39339. - fi
  39340. - else
  39341. - # not using gcc
  39342. - if test "$host_cpu" = ia64; then
  39343. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  39344. - # chokes on -Wl,-G. The following line is correct:
  39345. - shared_flag='-G'
  39346. - else
  39347. - if test "$aix_use_runtimelinking" = yes; then
  39348. - shared_flag='${wl}-G'
  39349. - else
  39350. - shared_flag='${wl}-bM:SRE'
  39351. - fi
  39352. - fi
  39353. - fi
  39354. + cfgfile="${ofile}T"
  39355. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  39356. + $RM "$cfgfile"
  39357. - # It seems that -bexpall does not export symbols beginning with
  39358. - # underscore (_), so it is better to generate a list of symbols to export.
  39359. - always_export_symbols_GCJ=yes
  39360. - if test "$aix_use_runtimelinking" = yes; then
  39361. - # Warning - without using the other runtime loading flags (-brtl),
  39362. - # -berok will link without error, but may produce a broken library.
  39363. - allow_undefined_flag_GCJ='-berok'
  39364. - # Determine the default libpath from the value encoded in an empty executable.
  39365. - cat >conftest.$ac_ext <<_ACEOF
  39366. -/* confdefs.h. */
  39367. -_ACEOF
  39368. -cat confdefs.h >>conftest.$ac_ext
  39369. -cat >>conftest.$ac_ext <<_ACEOF
  39370. -/* end confdefs.h. */
  39371. + cat <<_LT_EOF >> "$cfgfile"
  39372. +#! $SHELL
  39373. -int
  39374. -main ()
  39375. -{
  39376. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  39377. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  39378. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39379. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  39380. +#
  39381. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39382. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  39383. +# Written by Gordon Matzigkeit, 1996
  39384. +#
  39385. +# This file is part of GNU Libtool.
  39386. +#
  39387. +# GNU Libtool is free software; you can redistribute it and/or
  39388. +# modify it under the terms of the GNU General Public License as
  39389. +# published by the Free Software Foundation; either version 2 of
  39390. +# the License, or (at your option) any later version.
  39391. +#
  39392. +# As a special exception to the GNU General Public License,
  39393. +# if you distribute this file as part of a program or library that
  39394. +# is built using GNU Libtool, you may include this file under the
  39395. +# same distribution terms that you use for the rest of that program.
  39396. +#
  39397. +# GNU Libtool is distributed in the hope that it will be useful,
  39398. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  39399. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39400. +# GNU General Public License for more details.
  39401. +#
  39402. +# You should have received a copy of the GNU General Public License
  39403. +# along with GNU Libtool; see the file COPYING. If not, a copy
  39404. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  39405. +# obtained by writing to the Free Software Foundation, Inc.,
  39406. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39407. - ;
  39408. - return 0;
  39409. -}
  39410. -_ACEOF
  39411. -rm -f conftest.$ac_objext conftest$ac_exeext
  39412. -if { (ac_try="$ac_link"
  39413. -case "(($ac_try" in
  39414. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39415. - *) ac_try_echo=$ac_try;;
  39416. -esac
  39417. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39418. -$as_echo "$ac_try_echo") >&5
  39419. - (eval "$ac_link") 2>conftest.er1
  39420. - ac_status=$?
  39421. - grep -v '^ *+' conftest.er1 >conftest.err
  39422. - rm -f conftest.er1
  39423. - cat conftest.err >&5
  39424. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39425. - (exit $ac_status); } && {
  39426. - test -z "$ac_c_werror_flag" ||
  39427. - test ! -s conftest.err
  39428. - } && test -s conftest$ac_exeext && {
  39429. - test "$cross_compiling" = yes ||
  39430. - $as_test_x conftest$ac_exeext
  39431. - }; then
  39432. -lt_aix_libpath_sed='
  39433. - /Import File Strings/,/^$/ {
  39434. - /^0/ {
  39435. - s/^0 *\(.*\)$/\1/
  39436. - p
  39437. - }
  39438. - }'
  39439. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  39440. -# Check for a 64-bit object if we didn't find anything.
  39441. -if test -z "$aix_libpath"; then
  39442. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  39443. -fi
  39444. -else
  39445. - $as_echo "$as_me: failed program was:" >&5
  39446. -sed 's/^/| /' conftest.$ac_ext >&5
  39447. +# The names of the tagged configurations supported by this script.
  39448. +available_tags=""
  39449. +# ### BEGIN LIBTOOL CONFIG
  39450. -fi
  39451. +# Which release of libtool.m4 was used?
  39452. +macro_version=$macro_version
  39453. +macro_revision=$macro_revision
  39454. -rm -rf conftest.dSYM
  39455. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39456. - conftest$ac_exeext conftest.$ac_ext
  39457. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  39458. +# Whether or not to build shared libraries.
  39459. +build_libtool_libs=$enable_shared
  39460. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  39461. - 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"
  39462. - else
  39463. - if test "$host_cpu" = ia64; then
  39464. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  39465. - allow_undefined_flag_GCJ="-z nodefs"
  39466. - 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"
  39467. - else
  39468. - # Determine the default libpath from the value encoded in an empty executable.
  39469. - cat >conftest.$ac_ext <<_ACEOF
  39470. -/* confdefs.h. */
  39471. -_ACEOF
  39472. -cat confdefs.h >>conftest.$ac_ext
  39473. -cat >>conftest.$ac_ext <<_ACEOF
  39474. -/* end confdefs.h. */
  39475. +# Whether or not to build static libraries.
  39476. +build_old_libs=$enable_static
  39477. -int
  39478. -main ()
  39479. -{
  39480. +# What type of objects to build.
  39481. +pic_mode=$pic_mode
  39482. - ;
  39483. - return 0;
  39484. -}
  39485. -_ACEOF
  39486. -rm -f conftest.$ac_objext conftest$ac_exeext
  39487. -if { (ac_try="$ac_link"
  39488. -case "(($ac_try" in
  39489. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39490. - *) ac_try_echo=$ac_try;;
  39491. -esac
  39492. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  39493. -$as_echo "$ac_try_echo") >&5
  39494. - (eval "$ac_link") 2>conftest.er1
  39495. - ac_status=$?
  39496. - grep -v '^ *+' conftest.er1 >conftest.err
  39497. - rm -f conftest.er1
  39498. - cat conftest.err >&5
  39499. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39500. - (exit $ac_status); } && {
  39501. - test -z "$ac_c_werror_flag" ||
  39502. - test ! -s conftest.err
  39503. - } && test -s conftest$ac_exeext && {
  39504. - test "$cross_compiling" = yes ||
  39505. - $as_test_x conftest$ac_exeext
  39506. - }; then
  39507. +# Whether or not to optimize for fast installation.
  39508. +fast_install=$enable_fast_install
  39509. -lt_aix_libpath_sed='
  39510. - /Import File Strings/,/^$/ {
  39511. - /^0/ {
  39512. - s/^0 *\(.*\)$/\1/
  39513. - p
  39514. - }
  39515. - }'
  39516. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  39517. -# Check for a 64-bit object if we didn't find anything.
  39518. -if test -z "$aix_libpath"; then
  39519. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  39520. -fi
  39521. -else
  39522. - $as_echo "$as_me: failed program was:" >&5
  39523. -sed 's/^/| /' conftest.$ac_ext >&5
  39524. +# The host system.
  39525. +host_alias=$host_alias
  39526. +host=$host
  39527. +host_os=$host_os
  39528. +# The build system.
  39529. +build_alias=$build_alias
  39530. +build=$build
  39531. +build_os=$build_os
  39532. -fi
  39533. +# A sed program that does not truncate output.
  39534. +SED=$lt_SED
  39535. -rm -rf conftest.dSYM
  39536. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39537. - conftest$ac_exeext conftest.$ac_ext
  39538. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  39539. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  39540. +Xsed="\$SED -e 1s/^X//"
  39541. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  39542. - # Warning - without using the other run time loading flags,
  39543. - # -berok will link without error, but may produce a broken library.
  39544. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  39545. - allow_undefined_flag_GCJ=' ${wl}-berok'
  39546. - # Exported symbols can be pulled into shared objects from archives
  39547. - whole_archive_flag_spec_GCJ='$convenience'
  39548. - archive_cmds_need_lc_GCJ=yes
  39549. - # This is similar to how AIX traditionally builds its shared libraries.
  39550. - 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'
  39551. - fi
  39552. - fi
  39553. - ;;
  39554. +# A grep program that handles long lines.
  39555. +GREP=$lt_GREP
  39556. - amigaos*)
  39557. - 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)'
  39558. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39559. - hardcode_minus_L_GCJ=yes
  39560. - # see comment about different semantics on the GNU ld section
  39561. - ld_shlibs_GCJ=no
  39562. - ;;
  39563. +# An ERE matcher.
  39564. +EGREP=$lt_EGREP
  39565. - bsdi[45]*)
  39566. - export_dynamic_flag_spec_GCJ=-rdynamic
  39567. - ;;
  39568. +# A literal string matcher.
  39569. +FGREP=$lt_FGREP
  39570. - cygwin* | mingw* | pw32*)
  39571. - # When not using gcc, we currently assume that we are using
  39572. - # Microsoft Visual C++.
  39573. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  39574. - # no search path for DLLs.
  39575. - hardcode_libdir_flag_spec_GCJ=' '
  39576. - allow_undefined_flag_GCJ=unsupported
  39577. - # Tell ltmain to make .lib files, not .a files.
  39578. - libext=lib
  39579. - # Tell ltmain to make .dll files, not .so files.
  39580. - shrext_cmds=".dll"
  39581. - # FIXME: Setting linknames here is a bad hack.
  39582. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  39583. - # The linker will automatically build a .lib file if we build a DLL.
  39584. - old_archive_From_new_cmds_GCJ='true'
  39585. - # FIXME: Should let the user specify the lib program.
  39586. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  39587. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  39588. - enable_shared_with_static_runtimes_GCJ=yes
  39589. - ;;
  39590. +# A BSD- or MS-compatible name lister.
  39591. +NM=$lt_NM
  39592. - darwin* | rhapsody*)
  39593. - case $host_os in
  39594. - rhapsody* | darwin1.[012])
  39595. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  39596. - ;;
  39597. - *) # Darwin 1.3 on
  39598. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  39599. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  39600. - else
  39601. - case ${MACOSX_DEPLOYMENT_TARGET} in
  39602. - 10.[012])
  39603. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  39604. - ;;
  39605. - 10.*)
  39606. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  39607. - ;;
  39608. - esac
  39609. - fi
  39610. - ;;
  39611. - esac
  39612. - archive_cmds_need_lc_GCJ=no
  39613. - hardcode_direct_GCJ=no
  39614. - hardcode_automatic_GCJ=yes
  39615. - hardcode_shlibpath_var_GCJ=unsupported
  39616. - whole_archive_flag_spec_GCJ=''
  39617. - link_all_deplibs_GCJ=yes
  39618. - if test "$GCC" = yes ; then
  39619. - output_verbose_link_cmd='echo'
  39620. - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  39621. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  39622. - archive_expsym_cmds_GCJ="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}"
  39623. - module_expsym_cmds_GCJ="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}"
  39624. - else
  39625. - case $cc_basename in
  39626. - xlc*)
  39627. - output_verbose_link_cmd='echo'
  39628. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  39629. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  39630. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  39631. - 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  39632. - 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}'
  39633. - ;;
  39634. - *)
  39635. - ld_shlibs_GCJ=no
  39636. - ;;
  39637. - esac
  39638. - fi
  39639. - ;;
  39640. +# Whether we need soft or hard links.
  39641. +LN_S=$lt_LN_S
  39642. - dgux*)
  39643. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39644. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39645. - hardcode_shlibpath_var_GCJ=no
  39646. - ;;
  39647. +# What is the maximum length of a command?
  39648. +max_cmd_len=$max_cmd_len
  39649. - freebsd1*)
  39650. - ld_shlibs_GCJ=no
  39651. - ;;
  39652. +# Object file suffix (normally "o").
  39653. +objext=$ac_objext
  39654. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  39655. - # support. Future versions do this automatically, but an explicit c++rt0.o
  39656. - # does not break anything, and helps significantly (at the cost of a little
  39657. - # extra space).
  39658. - freebsd2.2*)
  39659. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  39660. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39661. - hardcode_direct_GCJ=yes
  39662. - hardcode_shlibpath_var_GCJ=no
  39663. - ;;
  39664. +# Executable file suffix (normally "").
  39665. +exeext=$exeext
  39666. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  39667. - freebsd2*)
  39668. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39669. - hardcode_direct_GCJ=yes
  39670. - hardcode_minus_L_GCJ=yes
  39671. - hardcode_shlibpath_var_GCJ=no
  39672. - ;;
  39673. +# whether the shell understands "unset".
  39674. +lt_unset=$lt_unset
  39675. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  39676. - freebsd* | dragonfly*)
  39677. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  39678. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39679. - hardcode_direct_GCJ=yes
  39680. - hardcode_shlibpath_var_GCJ=no
  39681. - ;;
  39682. +# turn spaces into newlines.
  39683. +SP2NL=$lt_lt_SP2NL
  39684. - hpux9*)
  39685. - if test "$GCC" = yes; then
  39686. - 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'
  39687. - else
  39688. - 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'
  39689. - fi
  39690. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39691. - hardcode_libdir_separator_GCJ=:
  39692. - hardcode_direct_GCJ=yes
  39693. +# turn newlines into spaces.
  39694. +NL2SP=$lt_lt_NL2SP
  39695. - # hardcode_minus_L: Not really in the search PATH,
  39696. - # but as the default location of the library.
  39697. - hardcode_minus_L_GCJ=yes
  39698. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39699. - ;;
  39700. +# How to create reloadable object files.
  39701. +reload_flag=$lt_reload_flag
  39702. +reload_cmds=$lt_reload_cmds
  39703. - hpux10*)
  39704. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  39705. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39706. - else
  39707. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  39708. - fi
  39709. - if test "$with_gnu_ld" = no; then
  39710. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39711. - hardcode_libdir_separator_GCJ=:
  39712. +# An object symbol dumper.
  39713. +OBJDUMP=$lt_OBJDUMP
  39714. - hardcode_direct_GCJ=yes
  39715. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39716. +# Method to check whether dependent libraries are shared objects.
  39717. +deplibs_check_method=$lt_deplibs_check_method
  39718. - # hardcode_minus_L: Not really in the search PATH,
  39719. - # but as the default location of the library.
  39720. - hardcode_minus_L_GCJ=yes
  39721. - fi
  39722. - ;;
  39723. +# Command to use when deplibs_check_method == "file_magic".
  39724. +file_magic_cmd=$lt_file_magic_cmd
  39725. - hpux11*)
  39726. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  39727. - case $host_cpu in
  39728. - hppa*64*)
  39729. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39730. - ;;
  39731. - ia64*)
  39732. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  39733. - ;;
  39734. - *)
  39735. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39736. - ;;
  39737. - esac
  39738. - else
  39739. - case $host_cpu in
  39740. - hppa*64*)
  39741. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39742. - ;;
  39743. - ia64*)
  39744. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  39745. - ;;
  39746. - *)
  39747. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  39748. - ;;
  39749. - esac
  39750. - fi
  39751. - if test "$with_gnu_ld" = no; then
  39752. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  39753. - hardcode_libdir_separator_GCJ=:
  39754. +# The archiver.
  39755. +AR=$lt_AR
  39756. +AR_FLAGS=$lt_AR_FLAGS
  39757. - case $host_cpu in
  39758. - hppa*64*|ia64*)
  39759. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  39760. - hardcode_direct_GCJ=no
  39761. - hardcode_shlibpath_var_GCJ=no
  39762. - ;;
  39763. - *)
  39764. - hardcode_direct_GCJ=yes
  39765. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39766. +# A symbol stripping program.
  39767. +STRIP=$lt_STRIP
  39768. - # hardcode_minus_L: Not really in the search PATH,
  39769. - # but as the default location of the library.
  39770. - hardcode_minus_L_GCJ=yes
  39771. - ;;
  39772. - esac
  39773. - fi
  39774. - ;;
  39775. +# Commands used to install an old-style archive.
  39776. +RANLIB=$lt_RANLIB
  39777. +old_postinstall_cmds=$lt_old_postinstall_cmds
  39778. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39779. - irix5* | irix6* | nonstopux*)
  39780. - if test "$GCC" = yes; then
  39781. - 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'
  39782. - else
  39783. - 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'
  39784. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  39785. - fi
  39786. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39787. - hardcode_libdir_separator_GCJ=:
  39788. - link_all_deplibs_GCJ=yes
  39789. - ;;
  39790. +# A C compiler.
  39791. +LTCC=$lt_CC
  39792. - netbsd*)
  39793. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  39794. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  39795. - else
  39796. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  39797. - fi
  39798. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39799. - hardcode_direct_GCJ=yes
  39800. - hardcode_shlibpath_var_GCJ=no
  39801. - ;;
  39802. +# LTCC compiler flags.
  39803. +LTCFLAGS=$lt_CFLAGS
  39804. - newsos6)
  39805. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39806. - hardcode_direct_GCJ=yes
  39807. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39808. - hardcode_libdir_separator_GCJ=:
  39809. - hardcode_shlibpath_var_GCJ=no
  39810. - ;;
  39811. +# Take the output of nm and produce a listing of raw symbols and C names.
  39812. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39813. - openbsd*)
  39814. - if test -f /usr/libexec/ld.so; then
  39815. - hardcode_direct_GCJ=yes
  39816. - hardcode_shlibpath_var_GCJ=no
  39817. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39818. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39819. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  39820. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  39821. - export_dynamic_flag_spec_GCJ='${wl}-E'
  39822. - else
  39823. - case $host_os in
  39824. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  39825. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39826. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39827. - ;;
  39828. - *)
  39829. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39830. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  39831. - ;;
  39832. - esac
  39833. - fi
  39834. - else
  39835. - ld_shlibs_GCJ=no
  39836. - fi
  39837. - ;;
  39838. +# Transform the output of nm in a proper C declaration.
  39839. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39840. - os2*)
  39841. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39842. - hardcode_minus_L_GCJ=yes
  39843. - allow_undefined_flag_GCJ=unsupported
  39844. - 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'
  39845. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  39846. - ;;
  39847. +# Transform the output of nm in a C name address pair.
  39848. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39849. - osf3*)
  39850. - if test "$GCC" = yes; then
  39851. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  39852. - 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'
  39853. - else
  39854. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  39855. - 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'
  39856. - fi
  39857. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39858. - hardcode_libdir_separator_GCJ=:
  39859. - ;;
  39860. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  39861. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  39862. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  39863. - if test "$GCC" = yes; then
  39864. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  39865. - 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'
  39866. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  39867. - else
  39868. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  39869. - 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'
  39870. - 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~
  39871. - $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'
  39872. +# The name of the directory that contains temporary libtool files.
  39873. +objdir=$objdir
  39874. - # Both c and cxx compiler support -rpath directly
  39875. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  39876. - fi
  39877. - hardcode_libdir_separator_GCJ=:
  39878. - ;;
  39879. +# Shell to use when invoking shell scripts.
  39880. +SHELL=$lt_SHELL
  39881. - solaris*)
  39882. - no_undefined_flag_GCJ=' -z text'
  39883. - if test "$GCC" = yes; then
  39884. - wlarc='${wl}'
  39885. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39886. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39887. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  39888. - else
  39889. - wlarc=''
  39890. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39891. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  39892. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  39893. - fi
  39894. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  39895. - hardcode_shlibpath_var_GCJ=no
  39896. - case $host_os in
  39897. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  39898. - *)
  39899. - # The compiler driver will combine and reorder linker options,
  39900. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  39901. - # but is careful enough not to reorder.
  39902. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  39903. - if test "$GCC" = yes; then
  39904. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  39905. - else
  39906. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  39907. - fi
  39908. - ;;
  39909. - esac
  39910. - link_all_deplibs_GCJ=yes
  39911. - ;;
  39912. +# An echo program that does not interpret backslashes.
  39913. +ECHO=$lt_ECHO
  39914. - sunos4*)
  39915. - if test "x$host_vendor" = xsequent; then
  39916. - # Use $CC to link under sequent, because it throws in some extra .o
  39917. - # files that make .init and .fini sections work.
  39918. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  39919. - else
  39920. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  39921. - fi
  39922. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  39923. - hardcode_direct_GCJ=yes
  39924. - hardcode_minus_L_GCJ=yes
  39925. - hardcode_shlibpath_var_GCJ=no
  39926. - ;;
  39927. +# Used to examine libraries when file_magic_cmd begins with "file".
  39928. +MAGIC_CMD=$MAGIC_CMD
  39929. - sysv4)
  39930. - case $host_vendor in
  39931. - sni)
  39932. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39933. - hardcode_direct_GCJ=yes # is this really true???
  39934. - ;;
  39935. - siemens)
  39936. - ## LD is ld it makes a PLAMLIB
  39937. - ## CC just makes a GrossModule.
  39938. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  39939. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  39940. - hardcode_direct_GCJ=no
  39941. - ;;
  39942. - motorola)
  39943. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39944. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  39945. - ;;
  39946. - esac
  39947. - runpath_var='LD_RUN_PATH'
  39948. - hardcode_shlibpath_var_GCJ=no
  39949. - ;;
  39950. +# Must we lock files when doing compilation?
  39951. +need_locks=$lt_need_locks
  39952. - sysv4.3*)
  39953. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39954. - hardcode_shlibpath_var_GCJ=no
  39955. - export_dynamic_flag_spec_GCJ='-Bexport'
  39956. - ;;
  39957. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  39958. +DSYMUTIL=$lt_DSYMUTIL
  39959. - sysv4*MP*)
  39960. - if test -d /usr/nec; then
  39961. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39962. - hardcode_shlibpath_var_GCJ=no
  39963. - runpath_var=LD_RUN_PATH
  39964. - hardcode_runpath_var=yes
  39965. - ld_shlibs_GCJ=yes
  39966. - fi
  39967. - ;;
  39968. +# Tool to change global to local symbols on Mac OS X.
  39969. +NMEDIT=$lt_NMEDIT
  39970. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  39971. - no_undefined_flag_GCJ='${wl}-z,text'
  39972. - archive_cmds_need_lc_GCJ=no
  39973. - hardcode_shlibpath_var_GCJ=no
  39974. - runpath_var='LD_RUN_PATH'
  39975. +# Tool to manipulate fat objects and archives on Mac OS X.
  39976. +LIPO=$lt_LIPO
  39977. - if test "$GCC" = yes; then
  39978. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39979. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39980. - else
  39981. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39982. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39983. - fi
  39984. - ;;
  39985. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  39986. +OTOOL=$lt_OTOOL
  39987. - sysv5* | sco3.2v5* | sco5v6*)
  39988. - # Note: We can NOT use -z defs as we might desire, because we do not
  39989. - # link with -lc, and that would cause any symbols used from libc to
  39990. - # always be unresolved, which means just about no library would
  39991. - # ever link correctly. If we're not using GNU ld we use -z text
  39992. - # though, which does catch some bad symbols but isn't as heavy-handed
  39993. - # as -z defs.
  39994. - no_undefined_flag_GCJ='${wl}-z,text'
  39995. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  39996. - archive_cmds_need_lc_GCJ=no
  39997. - hardcode_shlibpath_var_GCJ=no
  39998. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  39999. - hardcode_libdir_separator_GCJ=':'
  40000. - link_all_deplibs_GCJ=yes
  40001. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  40002. - runpath_var='LD_RUN_PATH'
  40003. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  40004. +OTOOL64=$lt_OTOOL64
  40005. - if test "$GCC" = yes; then
  40006. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40007. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40008. - else
  40009. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40010. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  40011. - fi
  40012. - ;;
  40013. +# Old archive suffix (normally "a").
  40014. +libext=$libext
  40015. - uts4*)
  40016. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  40017. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  40018. - hardcode_shlibpath_var_GCJ=no
  40019. - ;;
  40020. +# Shared library suffix (normally ".so").
  40021. +shrext_cmds=$lt_shrext_cmds
  40022. - *)
  40023. - ld_shlibs_GCJ=no
  40024. - ;;
  40025. - esac
  40026. - fi
  40027. +# The commands to extract the exported symbol list from a shared archive.
  40028. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40029. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  40030. -$as_echo "$ld_shlibs_GCJ" >&6; }
  40031. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  40032. +# Variables whose values should be saved in libtool wrapper scripts and
  40033. +# restored at link time.
  40034. +variables_saved_for_relink=$lt_variables_saved_for_relink
  40035. -#
  40036. -# Do we need to explicitly link libc?
  40037. -#
  40038. -case "x$archive_cmds_need_lc_GCJ" in
  40039. -x|xyes)
  40040. - # Assume -lc should be added
  40041. - archive_cmds_need_lc_GCJ=yes
  40042. +# Do we need the "lib" prefix for modules?
  40043. +need_lib_prefix=$need_lib_prefix
  40044. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  40045. - case $archive_cmds_GCJ in
  40046. - *'~'*)
  40047. - # FIXME: we may have to deal with multi-command sequences.
  40048. - ;;
  40049. - '$CC '*)
  40050. - # Test whether the compiler implicitly links with -lc since on some
  40051. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  40052. - # to ld, don't add -lc before -lgcc.
  40053. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  40054. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  40055. - $rm conftest*
  40056. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  40057. +# Do we need a version for libraries?
  40058. +need_version=$need_version
  40059. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40060. - (eval $ac_compile) 2>&5
  40061. - ac_status=$?
  40062. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40063. - (exit $ac_status); } 2>conftest.err; then
  40064. - soname=conftest
  40065. - lib=conftest
  40066. - libobjs=conftest.$ac_objext
  40067. - deplibs=
  40068. - wl=$lt_prog_compiler_wl_GCJ
  40069. - pic_flag=$lt_prog_compiler_pic_GCJ
  40070. - compiler_flags=-v
  40071. - linker_flags=-v
  40072. - verstring=
  40073. - output_objdir=.
  40074. - libname=conftest
  40075. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  40076. - allow_undefined_flag_GCJ=
  40077. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  40078. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  40079. - ac_status=$?
  40080. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40081. - (exit $ac_status); }
  40082. - then
  40083. - archive_cmds_need_lc_GCJ=no
  40084. - else
  40085. - archive_cmds_need_lc_GCJ=yes
  40086. - fi
  40087. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  40088. - else
  40089. - cat conftest.err 1>&5
  40090. - fi
  40091. - $rm conftest*
  40092. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  40093. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  40094. - ;;
  40095. - esac
  40096. - fi
  40097. - ;;
  40098. -esac
  40099. +# Library versioning type.
  40100. +version_type=$version_type
  40101. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  40102. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  40103. -library_names_spec=
  40104. -libname_spec='lib$name'
  40105. -soname_spec=
  40106. -shrext_cmds=".so"
  40107. -postinstall_cmds=
  40108. -postuninstall_cmds=
  40109. -finish_cmds=
  40110. -finish_eval=
  40111. -shlibpath_var=
  40112. -shlibpath_overrides_runpath=unknown
  40113. -version_type=none
  40114. -dynamic_linker="$host_os ld.so"
  40115. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  40116. +# Shared library runtime path variable.
  40117. +runpath_var=$runpath_var
  40118. -need_lib_prefix=unknown
  40119. -hardcode_into_libs=no
  40120. +# Shared library path variable.
  40121. +shlibpath_var=$shlibpath_var
  40122. -# when you set need_version to no, make sure it does not cause -set_version
  40123. -# flags to be left without arguments
  40124. -need_version=unknown
  40125. +# Is shlibpath searched before the hard-coded library search path?
  40126. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40127. -case $host_os in
  40128. -aix3*)
  40129. - version_type=linux
  40130. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  40131. - shlibpath_var=LIBPATH
  40132. +# Format of library name prefix.
  40133. +libname_spec=$lt_libname_spec
  40134. - # AIX 3 has no versioning support, so we append a major version to the name.
  40135. - soname_spec='${libname}${release}${shared_ext}$major'
  40136. - ;;
  40137. +# List of archive names. First name is the real one, the rest are links.
  40138. +# The last name is the one that the linker finds with -lNAME
  40139. +library_names_spec=$lt_library_names_spec
  40140. -aix[4-9]*)
  40141. - version_type=linux
  40142. - need_lib_prefix=no
  40143. - need_version=no
  40144. - hardcode_into_libs=yes
  40145. - if test "$host_cpu" = ia64; then
  40146. - # AIX 5 supports IA64
  40147. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  40148. - shlibpath_var=LD_LIBRARY_PATH
  40149. - else
  40150. - # With GCC up to 2.95.x, collect2 would create an import file
  40151. - # for dependence libraries. The import file would start with
  40152. - # the line `#! .'. This would cause the generated library to
  40153. - # depend on `.', always an invalid library. This was fixed in
  40154. - # development snapshots of GCC prior to 3.0.
  40155. - case $host_os in
  40156. - aix4 | aix4.[01] | aix4.[01].*)
  40157. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  40158. - echo ' yes '
  40159. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  40160. - :
  40161. - else
  40162. - can_build_shared=no
  40163. - fi
  40164. - ;;
  40165. - esac
  40166. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  40167. - # soname into executable. Probably we can add versioning support to
  40168. - # collect2, so additional links can be useful in future.
  40169. - if test "$aix_use_runtimelinking" = yes; then
  40170. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  40171. - # instead of lib<name>.a to let people know that these are not
  40172. - # typical AIX shared libraries.
  40173. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40174. - else
  40175. - # We preserve .a as extension for shared libraries through AIX4.2
  40176. - # and later when we are not doing run time linking.
  40177. - library_names_spec='${libname}${release}.a $libname.a'
  40178. - soname_spec='${libname}${release}${shared_ext}$major'
  40179. - fi
  40180. - shlibpath_var=LIBPATH
  40181. - fi
  40182. - ;;
  40183. +# The coded name of the library, if different from the real name.
  40184. +soname_spec=$lt_soname_spec
  40185. -amigaos*)
  40186. - library_names_spec='$libname.ixlibrary $libname.a'
  40187. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  40188. - 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'
  40189. - ;;
  40190. +# Command to use after installation of a shared archive.
  40191. +postinstall_cmds=$lt_postinstall_cmds
  40192. -beos*)
  40193. - library_names_spec='${libname}${shared_ext}'
  40194. - dynamic_linker="$host_os ld.so"
  40195. - shlibpath_var=LIBRARY_PATH
  40196. - ;;
  40197. +# Command to use after uninstallation of a shared archive.
  40198. +postuninstall_cmds=$lt_postuninstall_cmds
  40199. -bsdi[45]*)
  40200. - version_type=linux
  40201. - need_version=no
  40202. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40203. - soname_spec='${libname}${release}${shared_ext}$major'
  40204. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  40205. - shlibpath_var=LD_LIBRARY_PATH
  40206. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  40207. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  40208. - # the default ld.so.conf also contains /usr/contrib/lib and
  40209. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  40210. - # libtool to hard-code these into programs
  40211. - ;;
  40212. +# Commands used to finish a libtool library installation in a directory.
  40213. +finish_cmds=$lt_finish_cmds
  40214. -cygwin* | mingw* | pw32*)
  40215. - version_type=windows
  40216. - shrext_cmds=".dll"
  40217. - need_version=no
  40218. - need_lib_prefix=no
  40219. +# As "finish_cmds", except a single script fragment to be evaled but
  40220. +# not shown.
  40221. +finish_eval=$lt_finish_eval
  40222. - case $GCC,$host_os in
  40223. - yes,cygwin* | yes,mingw* | yes,pw32*)
  40224. - library_names_spec='$libname.dll.a'
  40225. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  40226. - postinstall_cmds='base_file=`basename \${file}`~
  40227. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  40228. - dldir=$destdir/`dirname \$dlpath`~
  40229. - test -d \$dldir || mkdir -p \$dldir~
  40230. - $install_prog $dir/$dlname \$dldir/$dlname~
  40231. - chmod a+x \$dldir/$dlname'
  40232. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  40233. - dlpath=$dir/\$dldll~
  40234. - $rm \$dlpath'
  40235. - shlibpath_overrides_runpath=yes
  40236. +# Whether we should hardcode library paths into libraries.
  40237. +hardcode_into_libs=$hardcode_into_libs
  40238. - case $host_os in
  40239. - cygwin*)
  40240. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  40241. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40242. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  40243. - ;;
  40244. - mingw*)
  40245. - # MinGW DLLs use traditional 'lib' prefix
  40246. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40247. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  40248. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  40249. - # It is most probably a Windows format PATH printed by
  40250. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  40251. - # path with ; separators, and with drive letters. We can handle the
  40252. - # drive letters (cygwin fileutils understands them), so leave them,
  40253. - # especially as we might pass files found there to a mingw objdump,
  40254. - # which wouldn't understand a cygwinified path. Ahh.
  40255. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  40256. - else
  40257. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  40258. - fi
  40259. - ;;
  40260. - pw32*)
  40261. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  40262. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  40263. - ;;
  40264. - esac
  40265. - ;;
  40266. +# Compile-time system search path for libraries.
  40267. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  40268. - *)
  40269. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  40270. - ;;
  40271. - esac
  40272. - dynamic_linker='Win32 ld.exe'
  40273. - # FIXME: first we should search . and the directory the executable is in
  40274. - shlibpath_var=PATH
  40275. - ;;
  40276. +# Run-time system search path for libraries.
  40277. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  40278. -darwin* | rhapsody*)
  40279. - dynamic_linker="$host_os dyld"
  40280. - version_type=darwin
  40281. - need_lib_prefix=no
  40282. - need_version=no
  40283. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  40284. - soname_spec='${libname}${release}${major}$shared_ext'
  40285. - shlibpath_overrides_runpath=yes
  40286. - shlibpath_var=DYLD_LIBRARY_PATH
  40287. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  40288. +# Whether dlopen is supported.
  40289. +dlopen_support=$enable_dlopen
  40290. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  40291. - ;;
  40292. +# Whether dlopen of programs is supported.
  40293. +dlopen_self=$enable_dlopen_self
  40294. -dgux*)
  40295. - version_type=linux
  40296. - need_lib_prefix=no
  40297. - need_version=no
  40298. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  40299. - soname_spec='${libname}${release}${shared_ext}$major'
  40300. - shlibpath_var=LD_LIBRARY_PATH
  40301. - ;;
  40302. +# Whether dlopen of statically linked programs is supported.
  40303. +dlopen_self_static=$enable_dlopen_self_static
  40304. -freebsd1*)
  40305. - dynamic_linker=no
  40306. - ;;
  40307. +# Commands to strip libraries.
  40308. +old_striplib=$lt_old_striplib
  40309. +striplib=$lt_striplib
  40310. -freebsd* | dragonfly*)
  40311. - # DragonFly does not have aout. When/if they implement a new
  40312. - # versioning mechanism, adjust this.
  40313. - if test -x /usr/bin/objformat; then
  40314. - objformat=`/usr/bin/objformat`
  40315. - else
  40316. - case $host_os in
  40317. - freebsd[123]*) objformat=aout ;;
  40318. - *) objformat=elf ;;
  40319. - esac
  40320. - fi
  40321. - version_type=freebsd-$objformat
  40322. - case $version_type in
  40323. - freebsd-elf*)
  40324. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  40325. - need_version=no
  40326. - need_lib_prefix=no
  40327. - ;;
  40328. - freebsd-*)
  40329. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  40330. - need_version=yes
  40331. - ;;
  40332. - esac
  40333. - shlibpath_var=LD_LIBRARY_PATH
  40334. - case $host_os in
  40335. - freebsd2*)
  40336. - shlibpath_overrides_runpath=yes
  40337. - ;;
  40338. - freebsd3.[01]* | freebsdelf3.[01]*)
  40339. - shlibpath_overrides_runpath=yes
  40340. - hardcode_into_libs=yes
  40341. - ;;
  40342. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  40343. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  40344. - shlibpath_overrides_runpath=no
  40345. - hardcode_into_libs=yes
  40346. - ;;
  40347. - *) # from 4.6 on, and DragonFly
  40348. - shlibpath_overrides_runpath=yes
  40349. - hardcode_into_libs=yes
  40350. - ;;
  40351. - esac
  40352. - ;;
  40353. -gnu*)
  40354. - version_type=linux
  40355. - need_lib_prefix=no
  40356. - need_version=no
  40357. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  40358. - soname_spec='${libname}${release}${shared_ext}$major'
  40359. - shlibpath_var=LD_LIBRARY_PATH
  40360. - hardcode_into_libs=yes
  40361. - ;;
  40362. +# The linker used to build libraries.
  40363. +LD=$lt_LD
  40364. -hpux9* | hpux10* | hpux11*)
  40365. - # Give a soname corresponding to the major version so that dld.sl refuses to
  40366. - # link against other versions.
  40367. - version_type=sunos
  40368. - need_lib_prefix=no
  40369. - need_version=no
  40370. - case $host_cpu in
  40371. - ia64*)
  40372. - shrext_cmds='.so'
  40373. - hardcode_into_libs=yes
  40374. - dynamic_linker="$host_os dld.so"
  40375. - shlibpath_var=LD_LIBRARY_PATH
  40376. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  40377. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40378. - soname_spec='${libname}${release}${shared_ext}$major'
  40379. - if test "X$HPUX_IA64_MODE" = X32; then
  40380. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  40381. - else
  40382. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  40383. - fi
  40384. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  40385. - ;;
  40386. - hppa*64*)
  40387. - shrext_cmds='.sl'
  40388. - hardcode_into_libs=yes
  40389. - dynamic_linker="$host_os dld.sl"
  40390. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  40391. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  40392. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40393. - soname_spec='${libname}${release}${shared_ext}$major'
  40394. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  40395. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  40396. - ;;
  40397. - *)
  40398. - shrext_cmds='.sl'
  40399. - dynamic_linker="$host_os dld.sl"
  40400. - shlibpath_var=SHLIB_PATH
  40401. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  40402. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40403. - soname_spec='${libname}${release}${shared_ext}$major'
  40404. - ;;
  40405. - esac
  40406. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  40407. - postinstall_cmds='chmod 555 $lib'
  40408. - ;;
  40409. +# Commands used to build an old-style archive.
  40410. +old_archive_cmds=$lt_old_archive_cmds
  40411. -interix[3-9]*)
  40412. - version_type=linux
  40413. - need_lib_prefix=no
  40414. - need_version=no
  40415. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40416. - soname_spec='${libname}${release}${shared_ext}$major'
  40417. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  40418. - shlibpath_var=LD_LIBRARY_PATH
  40419. - shlibpath_overrides_runpath=no
  40420. - hardcode_into_libs=yes
  40421. - ;;
  40422. +# A language specific compiler.
  40423. +CC=$lt_compiler
  40424. -irix5* | irix6* | nonstopux*)
  40425. - case $host_os in
  40426. - nonstopux*) version_type=nonstopux ;;
  40427. - *)
  40428. - if test "$lt_cv_prog_gnu_ld" = yes; then
  40429. - version_type=linux
  40430. - else
  40431. - version_type=irix
  40432. - fi ;;
  40433. - esac
  40434. - need_lib_prefix=no
  40435. - need_version=no
  40436. - soname_spec='${libname}${release}${shared_ext}$major'
  40437. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  40438. - case $host_os in
  40439. - irix5* | nonstopux*)
  40440. - libsuff= shlibsuff=
  40441. - ;;
  40442. - *)
  40443. - case $LD in # libtool.m4 will add one of these switches to LD
  40444. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  40445. - libsuff= shlibsuff= libmagic=32-bit;;
  40446. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  40447. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  40448. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  40449. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  40450. - *) libsuff= shlibsuff= libmagic=never-match;;
  40451. - esac
  40452. - ;;
  40453. - esac
  40454. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  40455. - shlibpath_overrides_runpath=no
  40456. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  40457. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  40458. - hardcode_into_libs=yes
  40459. - ;;
  40460. +# Is the compiler the GNU compiler?
  40461. +with_gcc=$GCC
  40462. -# No shared lib support for Linux oldld, aout, or coff.
  40463. -linux*oldld* | linux*aout* | linux*coff*)
  40464. - dynamic_linker=no
  40465. - ;;
  40466. +# Compiler flag to turn off builtin functions.
  40467. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  40468. -# This must be Linux ELF.
  40469. -linux* | k*bsd*-gnu)
  40470. - version_type=linux
  40471. - need_lib_prefix=no
  40472. - need_version=no
  40473. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40474. - soname_spec='${libname}${release}${shared_ext}$major'
  40475. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  40476. - shlibpath_var=LD_LIBRARY_PATH
  40477. - shlibpath_overrides_runpath=no
  40478. - # This implies no fast_install, which is unacceptable.
  40479. - # Some rework will be needed to allow for fast_install
  40480. - # before this can be enabled.
  40481. - hardcode_into_libs=yes
  40482. +# How to pass a linker flag through the compiler.
  40483. +wl=$lt_lt_prog_compiler_wl
  40484. - # Append ld.so.conf contents to the search path
  40485. - if test -f /etc/ld.so.conf; then
  40486. - 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' ' '`
  40487. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  40488. - fi
  40489. +# Additional compiler flags for building library objects.
  40490. +pic_flag=$lt_lt_prog_compiler_pic
  40491. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  40492. - # powerpc, because MkLinux only supported shared libraries with the
  40493. - # GNU dynamic linker. Since this was broken with cross compilers,
  40494. - # most powerpc-linux boxes support dynamic linking these days and
  40495. - # people can always --disable-shared, the test was removed, and we
  40496. - # assume the GNU/Linux dynamic linker is in use.
  40497. - dynamic_linker='GNU/Linux ld.so'
  40498. - ;;
  40499. +# Compiler flag to prevent dynamic linking.
  40500. +link_static_flag=$lt_lt_prog_compiler_static
  40501. -netbsd*)
  40502. - version_type=sunos
  40503. - need_lib_prefix=no
  40504. - need_version=no
  40505. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  40506. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40507. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40508. - dynamic_linker='NetBSD (a.out) ld.so'
  40509. - else
  40510. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  40511. - soname_spec='${libname}${release}${shared_ext}$major'
  40512. - dynamic_linker='NetBSD ld.elf_so'
  40513. - fi
  40514. - shlibpath_var=LD_LIBRARY_PATH
  40515. - shlibpath_overrides_runpath=yes
  40516. - hardcode_into_libs=yes
  40517. - ;;
  40518. +# Does compiler simultaneously support -c and -o options?
  40519. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  40520. -newsos6)
  40521. - version_type=linux
  40522. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40523. - shlibpath_var=LD_LIBRARY_PATH
  40524. - shlibpath_overrides_runpath=yes
  40525. - ;;
  40526. +# Whether or not to add -lc for building shared libraries.
  40527. +build_libtool_need_lc=$archive_cmds_need_lc
  40528. -nto-qnx*)
  40529. - version_type=linux
  40530. - need_lib_prefix=no
  40531. - need_version=no
  40532. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40533. - soname_spec='${libname}${release}${shared_ext}$major'
  40534. - shlibpath_var=LD_LIBRARY_PATH
  40535. - shlibpath_overrides_runpath=yes
  40536. - ;;
  40537. +# Whether or not to disallow shared libs when runtime libs are static.
  40538. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  40539. -openbsd*)
  40540. - version_type=sunos
  40541. - sys_lib_dlsearch_path_spec="/usr/lib"
  40542. - need_lib_prefix=no
  40543. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  40544. - case $host_os in
  40545. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  40546. - *) need_version=no ;;
  40547. - esac
  40548. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40549. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  40550. - shlibpath_var=LD_LIBRARY_PATH
  40551. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  40552. - case $host_os in
  40553. - openbsd2.[89] | openbsd2.[89].*)
  40554. - shlibpath_overrides_runpath=no
  40555. - ;;
  40556. - *)
  40557. - shlibpath_overrides_runpath=yes
  40558. - ;;
  40559. - esac
  40560. - else
  40561. - shlibpath_overrides_runpath=yes
  40562. - fi
  40563. - ;;
  40564. +# Compiler flag to allow reflexive dlopens.
  40565. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  40566. -os2*)
  40567. - libname_spec='$name'
  40568. - shrext_cmds=".dll"
  40569. - need_lib_prefix=no
  40570. - library_names_spec='$libname${shared_ext} $libname.a'
  40571. - dynamic_linker='OS/2 ld.exe'
  40572. - shlibpath_var=LIBPATH
  40573. - ;;
  40574. +# Compiler flag to generate shared objects directly from archives.
  40575. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  40576. -osf3* | osf4* | osf5*)
  40577. - version_type=osf
  40578. - need_lib_prefix=no
  40579. - need_version=no
  40580. - soname_spec='${libname}${release}${shared_ext}$major'
  40581. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40582. - shlibpath_var=LD_LIBRARY_PATH
  40583. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  40584. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  40585. - ;;
  40586. +# Whether the compiler copes with passing no objects directly.
  40587. +compiler_needs_object=$lt_compiler_needs_object
  40588. -rdos*)
  40589. - dynamic_linker=no
  40590. - ;;
  40591. +# Create an old-style archive from a shared archive.
  40592. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  40593. -solaris*)
  40594. - version_type=linux
  40595. - need_lib_prefix=no
  40596. - need_version=no
  40597. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40598. - soname_spec='${libname}${release}${shared_ext}$major'
  40599. - shlibpath_var=LD_LIBRARY_PATH
  40600. - shlibpath_overrides_runpath=yes
  40601. - hardcode_into_libs=yes
  40602. - # ldd complains unless libraries are executable
  40603. - postinstall_cmds='chmod +x $lib'
  40604. - ;;
  40605. +# Create a temporary old-style archive to link instead of a shared archive.
  40606. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  40607. -sunos4*)
  40608. - version_type=sunos
  40609. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  40610. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  40611. - shlibpath_var=LD_LIBRARY_PATH
  40612. - shlibpath_overrides_runpath=yes
  40613. - if test "$with_gnu_ld" = yes; then
  40614. - need_lib_prefix=no
  40615. - fi
  40616. - need_version=yes
  40617. - ;;
  40618. +# Commands used to build a shared archive.
  40619. +archive_cmds=$lt_archive_cmds
  40620. +archive_expsym_cmds=$lt_archive_expsym_cmds
  40621. -sysv4 | sysv4.3*)
  40622. - version_type=linux
  40623. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40624. - soname_spec='${libname}${release}${shared_ext}$major'
  40625. - shlibpath_var=LD_LIBRARY_PATH
  40626. - case $host_vendor in
  40627. - sni)
  40628. - shlibpath_overrides_runpath=no
  40629. - need_lib_prefix=no
  40630. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  40631. - runpath_var=LD_RUN_PATH
  40632. - ;;
  40633. - siemens)
  40634. - need_lib_prefix=no
  40635. - ;;
  40636. - motorola)
  40637. - need_lib_prefix=no
  40638. - need_version=no
  40639. - shlibpath_overrides_runpath=no
  40640. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  40641. - ;;
  40642. - esac
  40643. - ;;
  40644. +# Commands used to build a loadable module if different from building
  40645. +# a shared archive.
  40646. +module_cmds=$lt_module_cmds
  40647. +module_expsym_cmds=$lt_module_expsym_cmds
  40648. -sysv4*MP*)
  40649. - if test -d /usr/nec ;then
  40650. - version_type=linux
  40651. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  40652. - soname_spec='$libname${shared_ext}.$major'
  40653. - shlibpath_var=LD_LIBRARY_PATH
  40654. - fi
  40655. - ;;
  40656. +# Whether we are building with GNU ld or not.
  40657. +with_gnu_ld=$lt_with_gnu_ld
  40658. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  40659. - version_type=freebsd-elf
  40660. - need_lib_prefix=no
  40661. - need_version=no
  40662. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  40663. - soname_spec='${libname}${release}${shared_ext}$major'
  40664. - shlibpath_var=LD_LIBRARY_PATH
  40665. - hardcode_into_libs=yes
  40666. - if test "$with_gnu_ld" = yes; then
  40667. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  40668. - shlibpath_overrides_runpath=no
  40669. - else
  40670. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  40671. - shlibpath_overrides_runpath=yes
  40672. - case $host_os in
  40673. - sco3.2v5*)
  40674. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  40675. - ;;
  40676. - esac
  40677. - fi
  40678. - sys_lib_dlsearch_path_spec='/usr/lib'
  40679. - ;;
  40680. +# Flag that allows shared libraries with undefined symbols to be built.
  40681. +allow_undefined_flag=$lt_allow_undefined_flag
  40682. -uts4*)
  40683. - version_type=linux
  40684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  40685. - soname_spec='${libname}${release}${shared_ext}$major'
  40686. - shlibpath_var=LD_LIBRARY_PATH
  40687. - ;;
  40688. +# Flag that enforces no undefined symbols.
  40689. +no_undefined_flag=$lt_no_undefined_flag
  40690. -*)
  40691. - dynamic_linker=no
  40692. - ;;
  40693. -esac
  40694. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  40695. -$as_echo "$dynamic_linker" >&6; }
  40696. -test "$dynamic_linker" = no && can_build_shared=no
  40697. +# Flag to hardcode \$libdir into a binary during linking.
  40698. +# This must work even if \$libdir does not exist
  40699. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  40700. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  40701. - $as_echo_n "(cached) " >&6
  40702. -else
  40703. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  40704. -fi
  40705. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  40706. +# during linking. This must work even if \$libdir does not exist.
  40707. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  40708. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  40709. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  40710. - $as_echo_n "(cached) " >&6
  40711. -else
  40712. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  40713. -fi
  40714. +# Whether we need a single "-rpath" flag with a separated argument.
  40715. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  40716. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  40717. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  40718. +# DIR into the resulting binary.
  40719. +hardcode_direct=$hardcode_direct
  40720. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  40721. -if test "$GCC" = yes; then
  40722. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  40723. -fi
  40724. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  40725. +# DIR into the resulting binary and the resulting library dependency is
  40726. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  40727. +# library is relocated.
  40728. +hardcode_direct_absolute=$hardcode_direct_absolute
  40729. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  40730. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  40731. -hardcode_action_GCJ=
  40732. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  40733. - test -n "$runpath_var_GCJ" || \
  40734. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  40735. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  40736. +# into the resulting binary.
  40737. +hardcode_minus_L=$hardcode_minus_L
  40738. - # We can hardcode non-existant directories.
  40739. - if test "$hardcode_direct_GCJ" != no &&
  40740. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  40741. - # have to relink, otherwise we might link with an installed library
  40742. - # when we should be linking with a yet-to-be-installed one
  40743. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  40744. - test "$hardcode_minus_L_GCJ" != no; then
  40745. - # Linking always hardcodes the temporary library directory.
  40746. - hardcode_action_GCJ=relink
  40747. - else
  40748. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  40749. - hardcode_action_GCJ=immediate
  40750. - fi
  40751. -else
  40752. - # We cannot hardcode anything, or else we can only hardcode existing
  40753. - # directories.
  40754. - hardcode_action_GCJ=unsupported
  40755. -fi
  40756. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  40757. -$as_echo "$hardcode_action_GCJ" >&6; }
  40758. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  40759. +# into the resulting binary.
  40760. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  40761. -if test "$hardcode_action_GCJ" = relink; then
  40762. - # Fast installation is not supported
  40763. - enable_fast_install=no
  40764. -elif test "$shlibpath_overrides_runpath" = yes ||
  40765. - test "$enable_shared" = no; then
  40766. - # Fast installation is not necessary
  40767. - enable_fast_install=needless
  40768. -fi
  40769. +# Set to "yes" if building a shared library automatically hardcodes DIR
  40770. +# into the library and all subsequent libraries and executables linked
  40771. +# against it.
  40772. +hardcode_automatic=$hardcode_automatic
  40773. +# Set to yes if linker adds runtime paths of dependent libraries
  40774. +# to runtime path list.
  40775. +inherit_rpath=$inherit_rpath
  40776. -# The else clause should only fire when bootstrapping the
  40777. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  40778. -# with your package, and you will get complaints that there are
  40779. -# no rules to generate ltmain.sh.
  40780. -if test -f "$ltmain"; then
  40781. - # See if we are running on zsh, and set the options which allow our commands through
  40782. - # without removal of \ escapes.
  40783. - if test -n "${ZSH_VERSION+set}" ; then
  40784. - setopt NO_GLOB_SUBST
  40785. - fi
  40786. - # Now quote all the things that may contain metacharacters while being
  40787. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  40788. - # variables and quote the copies for generation of the libtool script.
  40789. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  40790. - SED SHELL STRIP \
  40791. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  40792. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  40793. - deplibs_check_method reload_flag reload_cmds need_locks \
  40794. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  40795. - lt_cv_sys_global_symbol_to_c_name_address \
  40796. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  40797. - old_postinstall_cmds old_postuninstall_cmds \
  40798. - compiler_GCJ \
  40799. - CC_GCJ \
  40800. - LD_GCJ \
  40801. - lt_prog_compiler_wl_GCJ \
  40802. - lt_prog_compiler_pic_GCJ \
  40803. - lt_prog_compiler_static_GCJ \
  40804. - lt_prog_compiler_no_builtin_flag_GCJ \
  40805. - export_dynamic_flag_spec_GCJ \
  40806. - thread_safe_flag_spec_GCJ \
  40807. - whole_archive_flag_spec_GCJ \
  40808. - enable_shared_with_static_runtimes_GCJ \
  40809. - old_archive_cmds_GCJ \
  40810. - old_archive_from_new_cmds_GCJ \
  40811. - predep_objects_GCJ \
  40812. - postdep_objects_GCJ \
  40813. - predeps_GCJ \
  40814. - postdeps_GCJ \
  40815. - compiler_lib_search_path_GCJ \
  40816. - compiler_lib_search_dirs_GCJ \
  40817. - archive_cmds_GCJ \
  40818. - archive_expsym_cmds_GCJ \
  40819. - postinstall_cmds_GCJ \
  40820. - postuninstall_cmds_GCJ \
  40821. - old_archive_from_expsyms_cmds_GCJ \
  40822. - allow_undefined_flag_GCJ \
  40823. - no_undefined_flag_GCJ \
  40824. - export_symbols_cmds_GCJ \
  40825. - hardcode_libdir_flag_spec_GCJ \
  40826. - hardcode_libdir_flag_spec_ld_GCJ \
  40827. - hardcode_libdir_separator_GCJ \
  40828. - hardcode_automatic_GCJ \
  40829. - module_cmds_GCJ \
  40830. - module_expsym_cmds_GCJ \
  40831. - lt_cv_prog_compiler_c_o_GCJ \
  40832. - fix_srcfile_path_GCJ \
  40833. - exclude_expsyms_GCJ \
  40834. - include_expsyms_GCJ; do
  40835. -
  40836. - case $var in
  40837. - old_archive_cmds_GCJ | \
  40838. - old_archive_from_new_cmds_GCJ | \
  40839. - archive_cmds_GCJ | \
  40840. - archive_expsym_cmds_GCJ | \
  40841. - module_cmds_GCJ | \
  40842. - module_expsym_cmds_GCJ | \
  40843. - old_archive_from_expsyms_cmds_GCJ | \
  40844. - export_symbols_cmds_GCJ | \
  40845. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  40846. - postinstall_cmds | postuninstall_cmds | \
  40847. - old_postinstall_cmds | old_postuninstall_cmds | \
  40848. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  40849. - # Double-quote double-evaled strings.
  40850. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  40851. - ;;
  40852. - *)
  40853. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  40854. - ;;
  40855. - esac
  40856. - done
  40857. +# Whether libtool must link a program against all its dependency libraries.
  40858. +link_all_deplibs=$link_all_deplibs
  40859. - case $lt_echo in
  40860. - *'\$0 --fallback-echo"')
  40861. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  40862. - ;;
  40863. - esac
  40864. +# Fix the shell variable \$srcfile for the compiler.
  40865. +fix_srcfile_path=$lt_fix_srcfile_path
  40866. -cfgfile="$ofile"
  40867. +# Set to "yes" if exported symbols are required.
  40868. +always_export_symbols=$always_export_symbols
  40869. - cat <<__EOF__ >> "$cfgfile"
  40870. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  40871. +# The commands to list exported symbols.
  40872. +export_symbols_cmds=$lt_export_symbols_cmds
  40873. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40874. +# Symbols that should not be listed in the preloaded symbols.
  40875. +exclude_expsyms=$lt_exclude_expsyms
  40876. -# Shell to use when invoking shell scripts.
  40877. -SHELL=$lt_SHELL
  40878. +# Symbols that must always be exported.
  40879. +include_expsyms=$lt_include_expsyms
  40880. -# Whether or not to build shared libraries.
  40881. -build_libtool_libs=$enable_shared
  40882. +# Commands necessary for linking programs (against libraries) with templates.
  40883. +prelink_cmds=$lt_prelink_cmds
  40884. -# Whether or not to build static libraries.
  40885. -build_old_libs=$enable_static
  40886. +# Specify filename containing input files.
  40887. +file_list_spec=$lt_file_list_spec
  40888. -# Whether or not to add -lc for building shared libraries.
  40889. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  40890. +# How to hardcode a shared library path into an executable.
  40891. +hardcode_action=$hardcode_action
  40892. -# Whether or not to disallow shared libs when runtime libs are static
  40893. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  40894. +# ### END LIBTOOL CONFIG
  40895. -# Whether or not to optimize for fast installation.
  40896. -fast_install=$enable_fast_install
  40897. +_LT_EOF
  40898. -# The host system.
  40899. -host_alias=$host_alias
  40900. -host=$host
  40901. -host_os=$host_os
  40902. + case $host_os in
  40903. + aix3*)
  40904. + cat <<\_LT_EOF >> "$cfgfile"
  40905. +# AIX sometimes has problems with the GCC collect2 program. For some
  40906. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  40907. +# vanish in a puff of smoke.
  40908. +if test "X${COLLECT_NAMES+set}" != Xset; then
  40909. + COLLECT_NAMES=
  40910. + export COLLECT_NAMES
  40911. +fi
  40912. +_LT_EOF
  40913. + ;;
  40914. + esac
  40915. -# The build system.
  40916. -build_alias=$build_alias
  40917. -build=$build
  40918. -build_os=$build_os
  40919. -# An echo program that does not interpret backslashes.
  40920. -echo=$lt_echo
  40921. +ltmain="$ac_aux_dir/ltmain.sh"
  40922. -# The archiver.
  40923. -AR=$lt_AR
  40924. -AR_FLAGS=$lt_AR_FLAGS
  40925. -# A C compiler.
  40926. -LTCC=$lt_LTCC
  40927. + # We use sed instead of cat because bash on DJGPP gets confused if
  40928. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  40929. + # text mode, it properly converts lines to CR/LF. This bash problem
  40930. + # is reportedly fixed, but why not run on old versions too?
  40931. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  40932. + || (rm -f "$cfgfile"; exit 1)
  40933. -# LTCC compiler flags.
  40934. -LTCFLAGS=$lt_LTCFLAGS
  40935. + case $xsi_shell in
  40936. + yes)
  40937. + cat << \_LT_EOF >> "$cfgfile"
  40938. -# A language-specific compiler.
  40939. -CC=$lt_compiler_GCJ
  40940. +# func_dirname file append nondir_replacement
  40941. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  40942. +# otherwise set result to NONDIR_REPLACEMENT.
  40943. +func_dirname ()
  40944. +{
  40945. + case ${1} in
  40946. + */*) func_dirname_result="${1%/*}${2}" ;;
  40947. + * ) func_dirname_result="${3}" ;;
  40948. + esac
  40949. +}
  40950. -# Is the compiler the GNU C compiler?
  40951. -with_gcc=$GCC_GCJ
  40952. +# func_basename file
  40953. +func_basename ()
  40954. +{
  40955. + func_basename_result="${1##*/}"
  40956. +}
  40957. -# An ERE matcher.
  40958. -EGREP=$lt_EGREP
  40959. +# func_dirname_and_basename file append nondir_replacement
  40960. +# perform func_basename and func_dirname in a single function
  40961. +# call:
  40962. +# dirname: Compute the dirname of FILE. If nonempty,
  40963. +# add APPEND to the result, otherwise set result
  40964. +# to NONDIR_REPLACEMENT.
  40965. +# value returned in "$func_dirname_result"
  40966. +# basename: Compute filename of FILE.
  40967. +# value retuned in "$func_basename_result"
  40968. +# Implementation must be kept synchronized with func_dirname
  40969. +# and func_basename. For efficiency, we do not delegate to
  40970. +# those functions but instead duplicate the functionality here.
  40971. +func_dirname_and_basename ()
  40972. +{
  40973. + case ${1} in
  40974. + */*) func_dirname_result="${1%/*}${2}" ;;
  40975. + * ) func_dirname_result="${3}" ;;
  40976. + esac
  40977. + func_basename_result="${1##*/}"
  40978. +}
  40979. -# The linker used to build libraries.
  40980. -LD=$lt_LD_GCJ
  40981. +# func_stripname prefix suffix name
  40982. +# strip PREFIX and SUFFIX off of NAME.
  40983. +# PREFIX and SUFFIX must not contain globbing or regex special
  40984. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  40985. +# dot (in which case that matches only a dot).
  40986. +func_stripname ()
  40987. +{
  40988. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  40989. + # positional parameters, so assign one to ordinary parameter first.
  40990. + func_stripname_result=${3}
  40991. + func_stripname_result=${func_stripname_result#"${1}"}
  40992. + func_stripname_result=${func_stripname_result%"${2}"}
  40993. +}
  40994. -# Whether we need hard or soft links.
  40995. -LN_S=$lt_LN_S
  40996. +# func_opt_split
  40997. +func_opt_split ()
  40998. +{
  40999. + func_opt_split_opt=${1%%=*}
  41000. + func_opt_split_arg=${1#*=}
  41001. +}
  41002. -# A BSD-compatible nm program.
  41003. -NM=$lt_NM
  41004. +# func_lo2o object
  41005. +func_lo2o ()
  41006. +{
  41007. + case ${1} in
  41008. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  41009. + *) func_lo2o_result=${1} ;;
  41010. + esac
  41011. +}
  41012. -# A symbol stripping program
  41013. -STRIP=$lt_STRIP
  41014. +# func_xform libobj-or-source
  41015. +func_xform ()
  41016. +{
  41017. + func_xform_result=${1%.*}.lo
  41018. +}
  41019. -# Used to examine libraries when file_magic_cmd begins "file"
  41020. -MAGIC_CMD=$MAGIC_CMD
  41021. +# func_arith arithmetic-term...
  41022. +func_arith ()
  41023. +{
  41024. + func_arith_result=$(( $* ))
  41025. +}
  41026. -# Used on cygwin: DLL creation program.
  41027. -DLLTOOL="$DLLTOOL"
  41028. +# func_len string
  41029. +# STRING may not start with a hyphen.
  41030. +func_len ()
  41031. +{
  41032. + func_len_result=${#1}
  41033. +}
  41034. -# Used on cygwin: object dumper.
  41035. -OBJDUMP="$OBJDUMP"
  41036. +_LT_EOF
  41037. + ;;
  41038. + *) # Bourne compatible functions.
  41039. + cat << \_LT_EOF >> "$cfgfile"
  41040. -# Used on cygwin: assembler.
  41041. -AS="$AS"
  41042. +# func_dirname file append nondir_replacement
  41043. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  41044. +# otherwise set result to NONDIR_REPLACEMENT.
  41045. +func_dirname ()
  41046. +{
  41047. + # Extract subdirectory from the argument.
  41048. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  41049. + if test "X$func_dirname_result" = "X${1}"; then
  41050. + func_dirname_result="${3}"
  41051. + else
  41052. + func_dirname_result="$func_dirname_result${2}"
  41053. + fi
  41054. +}
  41055. -# The name of the directory that contains temporary libtool files.
  41056. -objdir=$objdir
  41057. +# func_basename file
  41058. +func_basename ()
  41059. +{
  41060. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  41061. +}
  41062. -# How to create reloadable object files.
  41063. -reload_flag=$lt_reload_flag
  41064. -reload_cmds=$lt_reload_cmds
  41065. -# How to pass a linker flag through the compiler.
  41066. -wl=$lt_lt_prog_compiler_wl_GCJ
  41067. +# func_stripname prefix suffix name
  41068. +# strip PREFIX and SUFFIX off of NAME.
  41069. +# PREFIX and SUFFIX must not contain globbing or regex special
  41070. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  41071. +# dot (in which case that matches only a dot).
  41072. +# func_strip_suffix prefix name
  41073. +func_stripname ()
  41074. +{
  41075. + case ${2} in
  41076. + .*) func_stripname_result=`$ECHO "X${3}" \
  41077. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  41078. + *) func_stripname_result=`$ECHO "X${3}" \
  41079. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  41080. + esac
  41081. +}
  41082. -# Object file suffix (normally "o").
  41083. -objext="$ac_objext"
  41084. +# sed scripts:
  41085. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  41086. +my_sed_long_arg='1s/^-[^=]*=//'
  41087. -# Old archive suffix (normally "a").
  41088. -libext="$libext"
  41089. +# func_opt_split
  41090. +func_opt_split ()
  41091. +{
  41092. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  41093. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  41094. +}
  41095. -# Shared library suffix (normally ".so").
  41096. -shrext_cmds='$shrext_cmds'
  41097. +# func_lo2o object
  41098. +func_lo2o ()
  41099. +{
  41100. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  41101. +}
  41102. -# Executable file suffix (normally "").
  41103. -exeext="$exeext"
  41104. +# func_xform libobj-or-source
  41105. +func_xform ()
  41106. +{
  41107. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  41108. +}
  41109. -# Additional compiler flags for building library objects.
  41110. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  41111. -pic_mode=$pic_mode
  41112. +# func_arith arithmetic-term...
  41113. +func_arith ()
  41114. +{
  41115. + func_arith_result=`expr "$@"`
  41116. +}
  41117. -# What is the maximum length of a command?
  41118. -max_cmd_len=$lt_cv_sys_max_cmd_len
  41119. +# func_len string
  41120. +# STRING may not start with a hyphen.
  41121. +func_len ()
  41122. +{
  41123. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  41124. +}
  41125. -# Does compiler simultaneously support -c and -o options?
  41126. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  41127. -
  41128. -# Must we lock files when doing compilation?
  41129. -need_locks=$lt_need_locks
  41130. -
  41131. -# Do we need the lib prefix for modules?
  41132. -need_lib_prefix=$need_lib_prefix
  41133. -
  41134. -# Do we need a version for libraries?
  41135. -need_version=$need_version
  41136. -
  41137. -# Whether dlopen is supported.
  41138. -dlopen_support=$enable_dlopen
  41139. -
  41140. -# Whether dlopen of programs is supported.
  41141. -dlopen_self=$enable_dlopen_self
  41142. -
  41143. -# Whether dlopen of statically linked programs is supported.
  41144. -dlopen_self_static=$enable_dlopen_self_static
  41145. -
  41146. -# Compiler flag to prevent dynamic linking.
  41147. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  41148. -
  41149. -# Compiler flag to turn off builtin functions.
  41150. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  41151. -
  41152. -# Compiler flag to allow reflexive dlopens.
  41153. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  41154. -
  41155. -# Compiler flag to generate shared objects directly from archives.
  41156. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  41157. -
  41158. -# Compiler flag to generate thread-safe objects.
  41159. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  41160. -
  41161. -# Library versioning type.
  41162. -version_type=$version_type
  41163. -
  41164. -# Format of library name prefix.
  41165. -libname_spec=$lt_libname_spec
  41166. -
  41167. -# List of archive names. First name is the real one, the rest are links.
  41168. -# The last name is the one that the linker finds with -lNAME.
  41169. -library_names_spec=$lt_library_names_spec
  41170. -
  41171. -# The coded name of the library, if different from the real name.
  41172. -soname_spec=$lt_soname_spec
  41173. -
  41174. -# Commands used to build and install an old-style archive.
  41175. -RANLIB=$lt_RANLIB
  41176. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  41177. -old_postinstall_cmds=$lt_old_postinstall_cmds
  41178. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  41179. -
  41180. -# Create an old-style archive from a shared archive.
  41181. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  41182. -
  41183. -# Create a temporary old-style archive to link instead of a shared archive.
  41184. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  41185. -
  41186. -# Commands used to build and install a shared archive.
  41187. -archive_cmds=$lt_archive_cmds_GCJ
  41188. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  41189. -postinstall_cmds=$lt_postinstall_cmds
  41190. -postuninstall_cmds=$lt_postuninstall_cmds
  41191. -
  41192. -# Commands used to build a loadable module (assumed same as above if empty)
  41193. -module_cmds=$lt_module_cmds_GCJ
  41194. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  41195. -
  41196. -# Commands to strip libraries.
  41197. -old_striplib=$lt_old_striplib
  41198. -striplib=$lt_striplib
  41199. -
  41200. -# Dependencies to place before the objects being linked to create a
  41201. -# shared library.
  41202. -predep_objects=$lt_predep_objects_GCJ
  41203. -
  41204. -# Dependencies to place after the objects being linked to create a
  41205. -# shared library.
  41206. -postdep_objects=$lt_postdep_objects_GCJ
  41207. -
  41208. -# Dependencies to place before the objects being linked to create a
  41209. -# shared library.
  41210. -predeps=$lt_predeps_GCJ
  41211. -
  41212. -# Dependencies to place after the objects being linked to create a
  41213. -# shared library.
  41214. -postdeps=$lt_postdeps_GCJ
  41215. -
  41216. -# The directories searched by this compiler when creating a shared
  41217. -# library
  41218. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  41219. -
  41220. -# The library search path used internally by the compiler when linking
  41221. -# a shared library.
  41222. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  41223. -
  41224. -# Method to check whether dependent libraries are shared objects.
  41225. -deplibs_check_method=$lt_deplibs_check_method
  41226. -
  41227. -# Command to use when deplibs_check_method == file_magic.
  41228. -file_magic_cmd=$lt_file_magic_cmd
  41229. -
  41230. -# Flag that allows shared libraries with undefined symbols to be built.
  41231. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  41232. -
  41233. -# Flag that forces no undefined symbols.
  41234. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  41235. -
  41236. -# Commands used to finish a libtool library installation in a directory.
  41237. -finish_cmds=$lt_finish_cmds
  41238. -
  41239. -# Same as above, but a single script fragment to be evaled but not shown.
  41240. -finish_eval=$lt_finish_eval
  41241. -
  41242. -# Take the output of nm and produce a listing of raw symbols and C names.
  41243. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  41244. -
  41245. -# Transform the output of nm in a proper C declaration
  41246. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  41247. -
  41248. -# Transform the output of nm in a C name address pair
  41249. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  41250. -
  41251. -# This is the shared library runtime path variable.
  41252. -runpath_var=$runpath_var
  41253. -
  41254. -# This is the shared library path variable.
  41255. -shlibpath_var=$shlibpath_var
  41256. -
  41257. -# Is shlibpath searched before the hard-coded library search path?
  41258. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41259. -
  41260. -# How to hardcode a shared library path into an executable.
  41261. -hardcode_action=$hardcode_action_GCJ
  41262. -
  41263. -# Whether we should hardcode library paths into libraries.
  41264. -hardcode_into_libs=$hardcode_into_libs
  41265. -
  41266. -# Flag to hardcode \$libdir into a binary during linking.
  41267. -# This must work even if \$libdir does not exist.
  41268. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  41269. -
  41270. -# If ld is used when linking, flag to hardcode \$libdir into
  41271. -# a binary during linking. This must work even if \$libdir does
  41272. -# not exist.
  41273. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  41274. -
  41275. -# Whether we need a single -rpath flag with a separated argument.
  41276. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  41277. -
  41278. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  41279. -# resulting binary.
  41280. -hardcode_direct=$hardcode_direct_GCJ
  41281. -
  41282. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  41283. -# resulting binary.
  41284. -hardcode_minus_L=$hardcode_minus_L_GCJ
  41285. -
  41286. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  41287. -# the resulting binary.
  41288. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  41289. -
  41290. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  41291. -# and all subsequent libraries and executables linked against it.
  41292. -hardcode_automatic=$hardcode_automatic_GCJ
  41293. -
  41294. -# Variables whose values should be saved in libtool wrapper scripts and
  41295. -# restored at relink time.
  41296. -variables_saved_for_relink="$variables_saved_for_relink"
  41297. -
  41298. -# Whether libtool must link a program against all its dependency libraries.
  41299. -link_all_deplibs=$link_all_deplibs_GCJ
  41300. -
  41301. -# Compile-time system search path for libraries
  41302. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41303. -
  41304. -# Run-time system search path for libraries
  41305. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41306. -
  41307. -# Fix the shell variable \$srcfile for the compiler.
  41308. -fix_srcfile_path=$lt_fix_srcfile_path
  41309. -
  41310. -# Set to yes if exported symbols are required.
  41311. -always_export_symbols=$always_export_symbols_GCJ
  41312. -
  41313. -# The commands to list exported symbols.
  41314. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  41315. -
  41316. -# The commands to extract the exported symbol list from a shared archive.
  41317. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41318. -
  41319. -# Symbols that should not be listed in the preloaded symbols.
  41320. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  41321. -
  41322. -# Symbols that must always be exported.
  41323. -include_expsyms=$lt_include_expsyms_GCJ
  41324. -
  41325. -# ### END LIBTOOL TAG CONFIG: $tagname
  41326. -
  41327. -__EOF__
  41328. -
  41329. -
  41330. -else
  41331. - # If there is no Makefile yet, we rely on a make rule to execute
  41332. - # `config.status --recheck' to rerun these tests and create the
  41333. - # libtool script then.
  41334. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  41335. - if test -f "$ltmain_in"; then
  41336. - test -f Makefile && make "$ltmain"
  41337. - fi
  41338. -fi
  41339. -
  41340. -
  41341. -ac_ext=c
  41342. -ac_cpp='$CPP $CPPFLAGS'
  41343. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41344. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41345. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41346. -
  41347. -CC="$lt_save_CC"
  41348. -
  41349. - else
  41350. - tagname=""
  41351. - fi
  41352. - ;;
  41353. -
  41354. - RC)
  41355. -
  41356. -
  41357. -# Source file extension for RC test sources.
  41358. -ac_ext=rc
  41359. -
  41360. -# Object file extension for compiled RC test sources.
  41361. -objext=o
  41362. -objext_RC=$objext
  41363. -
  41364. -# Code to be used in simple compile tests
  41365. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  41366. -
  41367. -# Code to be used in simple link tests
  41368. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  41369. -
  41370. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  41371. -
  41372. -# If no C compiler was specified, use CC.
  41373. -LTCC=${LTCC-"$CC"}
  41374. -
  41375. -# If no C compiler flags were specified, use CFLAGS.
  41376. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  41377. -
  41378. -# Allow CC to be a program name with arguments.
  41379. -compiler=$CC
  41380. -
  41381. -
  41382. -# save warnings/boilerplate of simple test code
  41383. -ac_outfile=conftest.$ac_objext
  41384. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  41385. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  41386. -_lt_compiler_boilerplate=`cat conftest.err`
  41387. -$rm conftest*
  41388. -
  41389. -ac_outfile=conftest.$ac_objext
  41390. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  41391. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  41392. -_lt_linker_boilerplate=`cat conftest.err`
  41393. -$rm -r conftest*
  41394. -
  41395. -
  41396. -# Allow CC to be a program name with arguments.
  41397. -lt_save_CC="$CC"
  41398. -CC=${RC-"windres"}
  41399. -compiler=$CC
  41400. -compiler_RC=$CC
  41401. -for cc_temp in $compiler""; do
  41402. - case $cc_temp in
  41403. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  41404. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  41405. - \-*) ;;
  41406. - *) break;;
  41407. - esac
  41408. -done
  41409. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  41410. +_LT_EOF
  41411. +esac
  41412. -lt_cv_prog_compiler_c_o_RC=yes
  41413. +case $lt_shell_append in
  41414. + yes)
  41415. + cat << \_LT_EOF >> "$cfgfile"
  41416. +
  41417. +# func_append var value
  41418. +# Append VALUE to the end of shell variable VAR.
  41419. +func_append ()
  41420. +{
  41421. + eval "$1+=\$2"
  41422. +}
  41423. +_LT_EOF
  41424. + ;;
  41425. + *)
  41426. + cat << \_LT_EOF >> "$cfgfile"
  41427. -# The else clause should only fire when bootstrapping the
  41428. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  41429. -# with your package, and you will get complaints that there are
  41430. -# no rules to generate ltmain.sh.
  41431. -if test -f "$ltmain"; then
  41432. - # See if we are running on zsh, and set the options which allow our commands through
  41433. - # without removal of \ escapes.
  41434. - if test -n "${ZSH_VERSION+set}" ; then
  41435. - setopt NO_GLOB_SUBST
  41436. - fi
  41437. - # Now quote all the things that may contain metacharacters while being
  41438. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  41439. - # variables and quote the copies for generation of the libtool script.
  41440. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  41441. - SED SHELL STRIP \
  41442. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  41443. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  41444. - deplibs_check_method reload_flag reload_cmds need_locks \
  41445. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  41446. - lt_cv_sys_global_symbol_to_c_name_address \
  41447. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  41448. - old_postinstall_cmds old_postuninstall_cmds \
  41449. - compiler_RC \
  41450. - CC_RC \
  41451. - LD_RC \
  41452. - lt_prog_compiler_wl_RC \
  41453. - lt_prog_compiler_pic_RC \
  41454. - lt_prog_compiler_static_RC \
  41455. - lt_prog_compiler_no_builtin_flag_RC \
  41456. - export_dynamic_flag_spec_RC \
  41457. - thread_safe_flag_spec_RC \
  41458. - whole_archive_flag_spec_RC \
  41459. - enable_shared_with_static_runtimes_RC \
  41460. - old_archive_cmds_RC \
  41461. - old_archive_from_new_cmds_RC \
  41462. - predep_objects_RC \
  41463. - postdep_objects_RC \
  41464. - predeps_RC \
  41465. - postdeps_RC \
  41466. - compiler_lib_search_path_RC \
  41467. - compiler_lib_search_dirs_RC \
  41468. - archive_cmds_RC \
  41469. - archive_expsym_cmds_RC \
  41470. - postinstall_cmds_RC \
  41471. - postuninstall_cmds_RC \
  41472. - old_archive_from_expsyms_cmds_RC \
  41473. - allow_undefined_flag_RC \
  41474. - no_undefined_flag_RC \
  41475. - export_symbols_cmds_RC \
  41476. - hardcode_libdir_flag_spec_RC \
  41477. - hardcode_libdir_flag_spec_ld_RC \
  41478. - hardcode_libdir_separator_RC \
  41479. - hardcode_automatic_RC \
  41480. - module_cmds_RC \
  41481. - module_expsym_cmds_RC \
  41482. - lt_cv_prog_compiler_c_o_RC \
  41483. - fix_srcfile_path_RC \
  41484. - exclude_expsyms_RC \
  41485. - include_expsyms_RC; do
  41486. -
  41487. - case $var in
  41488. - old_archive_cmds_RC | \
  41489. - old_archive_from_new_cmds_RC | \
  41490. - archive_cmds_RC | \
  41491. - archive_expsym_cmds_RC | \
  41492. - module_cmds_RC | \
  41493. - module_expsym_cmds_RC | \
  41494. - old_archive_from_expsyms_cmds_RC | \
  41495. - export_symbols_cmds_RC | \
  41496. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  41497. - postinstall_cmds | postuninstall_cmds | \
  41498. - old_postinstall_cmds | old_postuninstall_cmds | \
  41499. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  41500. - # Double-quote double-evaled strings.
  41501. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  41502. - ;;
  41503. - *)
  41504. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  41505. - ;;
  41506. - esac
  41507. - done
  41508. +# func_append var value
  41509. +# Append VALUE to the end of shell variable VAR.
  41510. +func_append ()
  41511. +{
  41512. + eval "$1=\$$1\$2"
  41513. +}
  41514. - case $lt_echo in
  41515. - *'\$0 --fallback-echo"')
  41516. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  41517. +_LT_EOF
  41518. ;;
  41519. esac
  41520. -cfgfile="$ofile"
  41521. -
  41522. - cat <<__EOF__ >> "$cfgfile"
  41523. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  41524. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  41525. -
  41526. -# Shell to use when invoking shell scripts.
  41527. -SHELL=$lt_SHELL
  41528. -
  41529. -# Whether or not to build shared libraries.
  41530. -build_libtool_libs=$enable_shared
  41531. -
  41532. -# Whether or not to build static libraries.
  41533. -build_old_libs=$enable_static
  41534. -
  41535. -# Whether or not to add -lc for building shared libraries.
  41536. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  41537. -
  41538. -# Whether or not to disallow shared libs when runtime libs are static
  41539. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  41540. -
  41541. -# Whether or not to optimize for fast installation.
  41542. -fast_install=$enable_fast_install
  41543. -
  41544. -# The host system.
  41545. -host_alias=$host_alias
  41546. -host=$host
  41547. -host_os=$host_os
  41548. -
  41549. -# The build system.
  41550. -build_alias=$build_alias
  41551. -build=$build
  41552. -build_os=$build_os
  41553. -
  41554. -# An echo program that does not interpret backslashes.
  41555. -echo=$lt_echo
  41556. -
  41557. -# The archiver.
  41558. -AR=$lt_AR
  41559. -AR_FLAGS=$lt_AR_FLAGS
  41560. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  41561. + || (rm -f "$cfgfile"; exit 1)
  41562. -# A C compiler.
  41563. -LTCC=$lt_LTCC
  41564. -
  41565. -# LTCC compiler flags.
  41566. -LTCFLAGS=$lt_LTCFLAGS
  41567. -
  41568. -# A language-specific compiler.
  41569. -CC=$lt_compiler_RC
  41570. -
  41571. -# Is the compiler the GNU C compiler?
  41572. -with_gcc=$GCC_RC
  41573. -
  41574. -# An ERE matcher.
  41575. -EGREP=$lt_EGREP
  41576. -
  41577. -# The linker used to build libraries.
  41578. -LD=$lt_LD_RC
  41579. -
  41580. -# Whether we need hard or soft links.
  41581. -LN_S=$lt_LN_S
  41582. -
  41583. -# A BSD-compatible nm program.
  41584. -NM=$lt_NM
  41585. -
  41586. -# A symbol stripping program
  41587. -STRIP=$lt_STRIP
  41588. -
  41589. -# Used to examine libraries when file_magic_cmd begins "file"
  41590. -MAGIC_CMD=$MAGIC_CMD
  41591. -
  41592. -# Used on cygwin: DLL creation program.
  41593. -DLLTOOL="$DLLTOOL"
  41594. -
  41595. -# Used on cygwin: object dumper.
  41596. -OBJDUMP="$OBJDUMP"
  41597. -
  41598. -# Used on cygwin: assembler.
  41599. -AS="$AS"
  41600. -
  41601. -# The name of the directory that contains temporary libtool files.
  41602. -objdir=$objdir
  41603. -
  41604. -# How to create reloadable object files.
  41605. -reload_flag=$lt_reload_flag
  41606. -reload_cmds=$lt_reload_cmds
  41607. -
  41608. -# How to pass a linker flag through the compiler.
  41609. -wl=$lt_lt_prog_compiler_wl_RC
  41610. + mv -f "$cfgfile" "$ofile" ||
  41611. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  41612. + chmod +x "$ofile"
  41613. -# Object file suffix (normally "o").
  41614. -objext="$ac_objext"
  41615. -
  41616. -# Old archive suffix (normally "a").
  41617. -libext="$libext"
  41618. -
  41619. -# Shared library suffix (normally ".so").
  41620. -shrext_cmds='$shrext_cmds'
  41621. -
  41622. -# Executable file suffix (normally "").
  41623. -exeext="$exeext"
  41624. -
  41625. -# Additional compiler flags for building library objects.
  41626. -pic_flag=$lt_lt_prog_compiler_pic_RC
  41627. -pic_mode=$pic_mode
  41628. -
  41629. -# What is the maximum length of a command?
  41630. -max_cmd_len=$lt_cv_sys_max_cmd_len
  41631. -
  41632. -# Does compiler simultaneously support -c and -o options?
  41633. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  41634. -
  41635. -# Must we lock files when doing compilation?
  41636. -need_locks=$lt_need_locks
  41637. -
  41638. -# Do we need the lib prefix for modules?
  41639. -need_lib_prefix=$need_lib_prefix
  41640. -
  41641. -# Do we need a version for libraries?
  41642. -need_version=$need_version
  41643. -
  41644. -# Whether dlopen is supported.
  41645. -dlopen_support=$enable_dlopen
  41646. -
  41647. -# Whether dlopen of programs is supported.
  41648. -dlopen_self=$enable_dlopen_self
  41649. -
  41650. -# Whether dlopen of statically linked programs is supported.
  41651. -dlopen_self_static=$enable_dlopen_self_static
  41652. -
  41653. -# Compiler flag to prevent dynamic linking.
  41654. -link_static_flag=$lt_lt_prog_compiler_static_RC
  41655. -
  41656. -# Compiler flag to turn off builtin functions.
  41657. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  41658. -
  41659. -# Compiler flag to allow reflexive dlopens.
  41660. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  41661. -
  41662. -# Compiler flag to generate shared objects directly from archives.
  41663. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  41664. -
  41665. -# Compiler flag to generate thread-safe objects.
  41666. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  41667. -
  41668. -# Library versioning type.
  41669. -version_type=$version_type
  41670. -
  41671. -# Format of library name prefix.
  41672. -libname_spec=$lt_libname_spec
  41673. -
  41674. -# List of archive names. First name is the real one, the rest are links.
  41675. -# The last name is the one that the linker finds with -lNAME.
  41676. -library_names_spec=$lt_library_names_spec
  41677. -
  41678. -# The coded name of the library, if different from the real name.
  41679. -soname_spec=$lt_soname_spec
  41680. -
  41681. -# Commands used to build and install an old-style archive.
  41682. -RANLIB=$lt_RANLIB
  41683. -old_archive_cmds=$lt_old_archive_cmds_RC
  41684. -old_postinstall_cmds=$lt_old_postinstall_cmds
  41685. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  41686. -
  41687. -# Create an old-style archive from a shared archive.
  41688. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  41689. -
  41690. -# Create a temporary old-style archive to link instead of a shared archive.
  41691. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  41692. -
  41693. -# Commands used to build and install a shared archive.
  41694. -archive_cmds=$lt_archive_cmds_RC
  41695. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  41696. -postinstall_cmds=$lt_postinstall_cmds
  41697. -postuninstall_cmds=$lt_postuninstall_cmds
  41698. -
  41699. -# Commands used to build a loadable module (assumed same as above if empty)
  41700. -module_cmds=$lt_module_cmds_RC
  41701. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  41702. -
  41703. -# Commands to strip libraries.
  41704. -old_striplib=$lt_old_striplib
  41705. -striplib=$lt_striplib
  41706. -
  41707. -# Dependencies to place before the objects being linked to create a
  41708. -# shared library.
  41709. -predep_objects=$lt_predep_objects_RC
  41710. -
  41711. -# Dependencies to place after the objects being linked to create a
  41712. -# shared library.
  41713. -postdep_objects=$lt_postdep_objects_RC
  41714. -
  41715. -# Dependencies to place before the objects being linked to create a
  41716. -# shared library.
  41717. -predeps=$lt_predeps_RC
  41718. -
  41719. -# Dependencies to place after the objects being linked to create a
  41720. -# shared library.
  41721. -postdeps=$lt_postdeps_RC
  41722. -
  41723. -# The directories searched by this compiler when creating a shared
  41724. -# library
  41725. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  41726. -
  41727. -# The library search path used internally by the compiler when linking
  41728. -# a shared library.
  41729. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  41730. -
  41731. -# Method to check whether dependent libraries are shared objects.
  41732. -deplibs_check_method=$lt_deplibs_check_method
  41733. -
  41734. -# Command to use when deplibs_check_method == file_magic.
  41735. -file_magic_cmd=$lt_file_magic_cmd
  41736. -
  41737. -# Flag that allows shared libraries with undefined symbols to be built.
  41738. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  41739. -
  41740. -# Flag that forces no undefined symbols.
  41741. -no_undefined_flag=$lt_no_undefined_flag_RC
  41742. -
  41743. -# Commands used to finish a libtool library installation in a directory.
  41744. -finish_cmds=$lt_finish_cmds
  41745. -
  41746. -# Same as above, but a single script fragment to be evaled but not shown.
  41747. -finish_eval=$lt_finish_eval
  41748. -
  41749. -# Take the output of nm and produce a listing of raw symbols and C names.
  41750. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  41751. -
  41752. -# Transform the output of nm in a proper C declaration
  41753. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  41754. -
  41755. -# Transform the output of nm in a C name address pair
  41756. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  41757. -
  41758. -# This is the shared library runtime path variable.
  41759. -runpath_var=$runpath_var
  41760. -
  41761. -# This is the shared library path variable.
  41762. -shlibpath_var=$shlibpath_var
  41763. -
  41764. -# Is shlibpath searched before the hard-coded library search path?
  41765. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41766. -
  41767. -# How to hardcode a shared library path into an executable.
  41768. -hardcode_action=$hardcode_action_RC
  41769. -
  41770. -# Whether we should hardcode library paths into libraries.
  41771. -hardcode_into_libs=$hardcode_into_libs
  41772. -
  41773. -# Flag to hardcode \$libdir into a binary during linking.
  41774. -# This must work even if \$libdir does not exist.
  41775. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  41776. -
  41777. -# If ld is used when linking, flag to hardcode \$libdir into
  41778. -# a binary during linking. This must work even if \$libdir does
  41779. -# not exist.
  41780. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  41781. -
  41782. -# Whether we need a single -rpath flag with a separated argument.
  41783. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  41784. -
  41785. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  41786. -# resulting binary.
  41787. -hardcode_direct=$hardcode_direct_RC
  41788. -
  41789. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  41790. -# resulting binary.
  41791. -hardcode_minus_L=$hardcode_minus_L_RC
  41792. -
  41793. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  41794. -# the resulting binary.
  41795. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  41796. -
  41797. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  41798. -# and all subsequent libraries and executables linked against it.
  41799. -hardcode_automatic=$hardcode_automatic_RC
  41800. -
  41801. -# Variables whose values should be saved in libtool wrapper scripts and
  41802. -# restored at relink time.
  41803. -variables_saved_for_relink="$variables_saved_for_relink"
  41804. -
  41805. -# Whether libtool must link a program against all its dependency libraries.
  41806. -link_all_deplibs=$link_all_deplibs_RC
  41807. -
  41808. -# Compile-time system search path for libraries
  41809. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41810. -
  41811. -# Run-time system search path for libraries
  41812. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41813. -
  41814. -# Fix the shell variable \$srcfile for the compiler.
  41815. -fix_srcfile_path=$lt_fix_srcfile_path
  41816. -
  41817. -# Set to yes if exported symbols are required.
  41818. -always_export_symbols=$always_export_symbols_RC
  41819. -
  41820. -# The commands to list exported symbols.
  41821. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  41822. -
  41823. -# The commands to extract the exported symbol list from a shared archive.
  41824. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41825. -
  41826. -# Symbols that should not be listed in the preloaded symbols.
  41827. -exclude_expsyms=$lt_exclude_expsyms_RC
  41828. -
  41829. -# Symbols that must always be exported.
  41830. -include_expsyms=$lt_include_expsyms_RC
  41831. -
  41832. -# ### END LIBTOOL TAG CONFIG: $tagname
  41833. -
  41834. -__EOF__
  41835. -
  41836. -
  41837. -else
  41838. - # If there is no Makefile yet, we rely on a make rule to execute
  41839. - # `config.status --recheck' to rerun these tests and create the
  41840. - # libtool script then.
  41841. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  41842. - if test -f "$ltmain_in"; then
  41843. - test -f Makefile && make "$ltmain"
  41844. - fi
  41845. -fi
  41846. -
  41847. -
  41848. -ac_ext=c
  41849. -ac_cpp='$CPP $CPPFLAGS'
  41850. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41851. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41852. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41853. -
  41854. -CC="$lt_save_CC"
  41855. -
  41856. - ;;
  41857. -
  41858. - *)
  41859. - { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  41860. -$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  41861. - { (exit 1); exit 1; }; }
  41862. - ;;
  41863. - esac
  41864. -
  41865. - # Append the new tag name to the list of available tags.
  41866. - if test -n "$tagname" ; then
  41867. - available_tags="$available_tags $tagname"
  41868. - fi
  41869. - fi
  41870. - done
  41871. - IFS="$lt_save_ifs"
  41872. -
  41873. - # Now substitute the updated list of available tags.
  41874. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  41875. - mv "${ofile}T" "$ofile"
  41876. - chmod +x "$ofile"
  41877. - else
  41878. - rm -f "${ofile}T"
  41879. - { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  41880. -$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  41881. - { (exit 1); exit 1; }; }
  41882. - fi
  41883. -fi
  41884. -
  41885. -
  41886. -
  41887. -# This can be used to rebuild libtool when needed
  41888. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  41889. -
  41890. -# Always use our own libtool.
  41891. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  41892. -
  41893. -# Prevent multiple expansion
  41894. -
  41895. -
  41896. -
  41897. -
  41898. -
  41899. -
  41900. -
  41901. -
  41902. -
  41903. -
  41904. -
  41905. -
  41906. -
  41907. -
  41908. -
  41909. -
  41910. -
  41911. -
  41912. -
  41913. -
  41914. -
  41915. - { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  41916. -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  41917. -if test "${ac_cv_prog_cc_c99+set}" = set; then
  41918. - $as_echo_n "(cached) " >&6
  41919. -else
  41920. - ac_cv_prog_cc_c99=no
  41921. -ac_save_CC=$CC
  41922. -cat >conftest.$ac_ext <<_ACEOF
  41923. -/* confdefs.h. */
  41924. -_ACEOF
  41925. -cat confdefs.h >>conftest.$ac_ext
  41926. -cat >>conftest.$ac_ext <<_ACEOF
  41927. -/* end confdefs.h. */
  41928. -#include <stdarg.h>
  41929. -#include <stdbool.h>
  41930. -#include <stdlib.h>
  41931. -#include <wchar.h>
  41932. -#include <stdio.h>
  41933. -
  41934. -// Check varargs macros. These examples are taken from C99 6.10.3.5.
  41935. -#define debug(...) fprintf (stderr, __VA_ARGS__)
  41936. -#define showlist(...) puts (#__VA_ARGS__)
  41937. -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  41938. -static void
  41939. -test_varargs_macros (void)
  41940. -{
  41941. - int x = 1234;
  41942. - int y = 5678;
  41943. - debug ("Flag");
  41944. - debug ("X = %d\n", x);
  41945. - showlist (The first, second, and third items.);
  41946. - report (x>y, "x is %d but y is %d", x, y);
  41947. -}
  41948. -
  41949. -// Check long long types.
  41950. -#define BIG64 18446744073709551615ull
  41951. -#define BIG32 4294967295ul
  41952. -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  41953. -#if !BIG_OK
  41954. - your preprocessor is broken;
  41955. -#endif
  41956. -#if BIG_OK
  41957. -#else
  41958. - your preprocessor is broken;
  41959. -#endif
  41960. -static long long int bignum = -9223372036854775807LL;
  41961. -static unsigned long long int ubignum = BIG64;
  41962. -
  41963. -struct incomplete_array
  41964. -{
  41965. - int datasize;
  41966. - double data[];
  41967. -};
  41968. -
  41969. -struct named_init {
  41970. - int number;
  41971. - const wchar_t *name;
  41972. - double average;
  41973. -};
  41974. -
  41975. -typedef const char *ccp;
  41976. -
  41977. -static inline int
  41978. -test_restrict (ccp restrict text)
  41979. -{
  41980. - // See if C++-style comments work.
  41981. - // Iterate through items via the restricted pointer.
  41982. - // Also check for declarations in for loops.
  41983. - for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  41984. - continue;
  41985. - return 0;
  41986. -}
  41987. -
  41988. -// Check varargs and va_copy.
  41989. -static void
  41990. -test_varargs (const char *format, ...)
  41991. -{
  41992. - va_list args;
  41993. - va_start (args, format);
  41994. - va_list args_copy;
  41995. - va_copy (args_copy, args);
  41996. -
  41997. - const char *str;
  41998. - int number;
  41999. - float fnumber;
  42000. -
  42001. - while (*format)
  42002. - {
  42003. - switch (*format++)
  42004. - {
  42005. - case 's': // string
  42006. - str = va_arg (args_copy, const char *);
  42007. - break;
  42008. - case 'd': // int
  42009. - number = va_arg (args_copy, int);
  42010. - break;
  42011. - case 'f': // float
  42012. - fnumber = va_arg (args_copy, double);
  42013. - break;
  42014. - default:
  42015. - break;
  42016. - }
  42017. - }
  42018. - va_end (args_copy);
  42019. - va_end (args);
  42020. -}
  42021. -
  42022. -int
  42023. -main ()
  42024. -{
  42025. -
  42026. - // Check bool.
  42027. - _Bool success = false;
  42028. -
  42029. - // Check restrict.
  42030. - if (test_restrict ("String literal") == 0)
  42031. - success = true;
  42032. - char *restrict newvar = "Another string";
  42033. -
  42034. - // Check varargs.
  42035. - test_varargs ("s, d' f .", "string", 65, 34.234);
  42036. - test_varargs_macros ();
  42037. -
  42038. - // Check flexible array members.
  42039. - struct incomplete_array *ia =
  42040. - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  42041. - ia->datasize = 10;
  42042. - for (int i = 0; i < ia->datasize; ++i)
  42043. - ia->data[i] = i * 1.234;
  42044. -
  42045. - // Check named initializers.
  42046. - struct named_init ni = {
  42047. - .number = 34,
  42048. - .name = L"Test wide string",
  42049. - .average = 543.34343,
  42050. - };
  42051. -
  42052. - ni.number = 58;
  42053. -
  42054. - int dynamic_array[ni.number];
  42055. - dynamic_array[ni.number - 1] = 543;
  42056. -
  42057. - // work around unused variable warnings
  42058. - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  42059. - || dynamic_array[ni.number - 1] != 543);
  42060. -
  42061. - ;
  42062. - return 0;
  42063. -}
  42064. -_ACEOF
  42065. -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  42066. -do
  42067. - CC="$ac_save_CC $ac_arg"
  42068. - rm -f conftest.$ac_objext
  42069. -if { (ac_try="$ac_compile"
  42070. -case "(($ac_try" in
  42071. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42072. - *) ac_try_echo=$ac_try;;
  42073. -esac
  42074. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42075. -$as_echo "$ac_try_echo") >&5
  42076. - (eval "$ac_compile") 2>conftest.er1
  42077. - ac_status=$?
  42078. - grep -v '^ *+' conftest.er1 >conftest.err
  42079. - rm -f conftest.er1
  42080. - cat conftest.err >&5
  42081. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42082. - (exit $ac_status); } && {
  42083. - test -z "$ac_c_werror_flag" ||
  42084. - test ! -s conftest.err
  42085. - } && test -s conftest.$ac_objext; then
  42086. - ac_cv_prog_cc_c99=$ac_arg
  42087. -else
  42088. - $as_echo "$as_me: failed program was:" >&5
  42089. -sed 's/^/| /' conftest.$ac_ext >&5
  42090. -
  42091. -
  42092. -fi
  42093. -
  42094. -rm -f core conftest.err conftest.$ac_objext
  42095. - test "x$ac_cv_prog_cc_c99" != "xno" && break
  42096. -done
  42097. -rm -f conftest.$ac_ext
  42098. -CC=$ac_save_CC
  42099. -
  42100. -fi
  42101. -# AC_CACHE_VAL
  42102. -case "x$ac_cv_prog_cc_c99" in
  42103. - x)
  42104. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  42105. -$as_echo "none needed" >&6; } ;;
  42106. - xno)
  42107. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  42108. -$as_echo "unsupported" >&6; } ;;
  42109. - *)
  42110. - CC="$CC $ac_cv_prog_cc_c99"
  42111. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  42112. -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  42113. -esac
  42114. -
  42115. -
  42116. -
  42117. -
  42118. -
  42119. -
  42120. -if test "x$GCC" = xyes ; then
  42121. - CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  42122. --Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  42123. --Wbad-function-cast"
  42124. - case `$CC -dumpversion` in
  42125. - 3.4.* | 4.*)
  42126. - CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  42127. - ;;
  42128. - esac
  42129. -else
  42130. - { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
  42131. -$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
  42132. -if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
  42133. - $as_echo_n "(cached) " >&6
  42134. -else
  42135. - cat >conftest.$ac_ext <<_ACEOF
  42136. -/* confdefs.h. */
  42137. -_ACEOF
  42138. -cat confdefs.h >>conftest.$ac_ext
  42139. -cat >>conftest.$ac_ext <<_ACEOF
  42140. -/* end confdefs.h. */
  42141. -$ac_includes_default
  42142. -int
  42143. -main ()
  42144. -{
  42145. -#ifndef __SUNPRO_C
  42146. - (void) __SUNPRO_C;
  42147. -#endif
  42148. -
  42149. - ;
  42150. - return 0;
  42151. -}
  42152. -_ACEOF
  42153. -rm -f conftest.$ac_objext
  42154. -if { (ac_try="$ac_compile"
  42155. -case "(($ac_try" in
  42156. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42157. - *) ac_try_echo=$ac_try;;
  42158. -esac
  42159. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42160. -$as_echo "$ac_try_echo") >&5
  42161. - (eval "$ac_compile") 2>conftest.er1
  42162. - ac_status=$?
  42163. - grep -v '^ *+' conftest.er1 >conftest.err
  42164. - rm -f conftest.er1
  42165. - cat conftest.err >&5
  42166. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42167. - (exit $ac_status); } && {
  42168. - test -z "$ac_c_werror_flag" ||
  42169. - test ! -s conftest.err
  42170. - } && test -s conftest.$ac_objext; then
  42171. - ac_cv_have_decl___SUNPRO_C=yes
  42172. -else
  42173. - $as_echo "$as_me: failed program was:" >&5
  42174. -sed 's/^/| /' conftest.$ac_ext >&5
  42175. -
  42176. - ac_cv_have_decl___SUNPRO_C=no
  42177. -fi
  42178. -
  42179. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42180. -fi
  42181. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
  42182. -$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
  42183. -if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
  42184. - SUNCC="yes"
  42185. -else
  42186. - SUNCC="no"
  42187. -fi
  42188. -
  42189. - if test "x$SUNCC" = "xyes"; then
  42190. - CWARNFLAGS="-v"
  42191. - fi
  42192. -fi
  42193. -
  42194. -# Check whether --enable-silent-rules was given.
  42195. -if test "${enable_silent_rules+set}" = set; then
  42196. - enableval=$enable_silent_rules;
  42197. -fi
  42198. -
  42199. -case $enable_silent_rules in
  42200. -yes) AM_DEFAULT_VERBOSITY=0;;
  42201. -no) AM_DEFAULT_VERBOSITY=1;;
  42202. -*) AM_DEFAULT_VERBOSITY=0;;
  42203. -esac
  42204. -AM_BACKSLASH='\'
  42205. -
  42206. -
  42207. -
  42208. -
  42209. -
  42210. -
  42211. -
  42212. -# Check whether --enable-strict-compilation was given.
  42213. -if test "${enable_strict_compilation+set}" = set; then
  42214. - enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  42215. -else
  42216. - STRICT_COMPILE=no
  42217. -fi
  42218. -
  42219. -if test "x$STRICT_COMPILE" = "xyes"; then
  42220. - { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
  42221. -$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
  42222. -if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
  42223. - $as_echo_n "(cached) " >&6
  42224. -else
  42225. - cat >conftest.$ac_ext <<_ACEOF
  42226. -/* confdefs.h. */
  42227. -_ACEOF
  42228. -cat confdefs.h >>conftest.$ac_ext
  42229. -cat >>conftest.$ac_ext <<_ACEOF
  42230. -/* end confdefs.h. */
  42231. -$ac_includes_default
  42232. -int
  42233. -main ()
  42234. -{
  42235. -#ifndef __SUNPRO_C
  42236. - (void) __SUNPRO_C;
  42237. -#endif
  42238. -
  42239. - ;
  42240. - return 0;
  42241. -}
  42242. -_ACEOF
  42243. -rm -f conftest.$ac_objext
  42244. -if { (ac_try="$ac_compile"
  42245. -case "(($ac_try" in
  42246. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42247. - *) ac_try_echo=$ac_try;;
  42248. -esac
  42249. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42250. -$as_echo "$ac_try_echo") >&5
  42251. - (eval "$ac_compile") 2>conftest.er1
  42252. - ac_status=$?
  42253. - grep -v '^ *+' conftest.er1 >conftest.err
  42254. - rm -f conftest.er1
  42255. - cat conftest.err >&5
  42256. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42257. - (exit $ac_status); } && {
  42258. - test -z "$ac_c_werror_flag" ||
  42259. - test ! -s conftest.err
  42260. - } && test -s conftest.$ac_objext; then
  42261. - ac_cv_have_decl___SUNPRO_C=yes
  42262. -else
  42263. - $as_echo "$as_me: failed program was:" >&5
  42264. -sed 's/^/| /' conftest.$ac_ext >&5
  42265. -
  42266. - ac_cv_have_decl___SUNPRO_C=no
  42267. -fi
  42268. -
  42269. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42270. -fi
  42271. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
  42272. -$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
  42273. -if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
  42274. - SUNCC="yes"
  42275. -else
  42276. - SUNCC="no"
  42277. -fi
  42278. -
  42279. - { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
  42280. -$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
  42281. -if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
  42282. - $as_echo_n "(cached) " >&6
  42283. -else
  42284. - cat >conftest.$ac_ext <<_ACEOF
  42285. -/* confdefs.h. */
  42286. -_ACEOF
  42287. -cat confdefs.h >>conftest.$ac_ext
  42288. -cat >>conftest.$ac_ext <<_ACEOF
  42289. -/* end confdefs.h. */
  42290. -$ac_includes_default
  42291. -int
  42292. -main ()
  42293. -{
  42294. -#ifndef __INTEL_COMPILER
  42295. - (void) __INTEL_COMPILER;
  42296. -#endif
  42297. -
  42298. - ;
  42299. - return 0;
  42300. -}
  42301. -_ACEOF
  42302. -rm -f conftest.$ac_objext
  42303. -if { (ac_try="$ac_compile"
  42304. -case "(($ac_try" in
  42305. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42306. - *) ac_try_echo=$ac_try;;
  42307. -esac
  42308. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42309. -$as_echo "$ac_try_echo") >&5
  42310. - (eval "$ac_compile") 2>conftest.er1
  42311. - ac_status=$?
  42312. - grep -v '^ *+' conftest.er1 >conftest.err
  42313. - rm -f conftest.er1
  42314. - cat conftest.err >&5
  42315. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42316. - (exit $ac_status); } && {
  42317. - test -z "$ac_c_werror_flag" ||
  42318. - test ! -s conftest.err
  42319. - } && test -s conftest.$ac_objext; then
  42320. - ac_cv_have_decl___INTEL_COMPILER=yes
  42321. -else
  42322. - $as_echo "$as_me: failed program was:" >&5
  42323. -sed 's/^/| /' conftest.$ac_ext >&5
  42324. -
  42325. - ac_cv_have_decl___INTEL_COMPILER=no
  42326. -fi
  42327. -
  42328. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42329. -fi
  42330. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
  42331. -$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
  42332. -if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
  42333. - INTELCC="yes"
  42334. -else
  42335. - INTELCC="no"
  42336. -fi
  42337. -
  42338. - if test "x$GCC" = xyes ; then
  42339. - STRICT_CFLAGS="-pedantic -Werror"
  42340. - elif test "x$SUNCC" = "xyes"; then
  42341. - STRICT_CFLAGS="-errwarn"
  42342. - elif test "x$INTELCC" = "xyes"; then
  42343. - STRICT_CFLAGS="-Werror"
  42344. - fi
  42345. -fi
  42346. -CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  42347. -
  42348. -
  42349. -
  42350. -
  42351. -# Check whether --with-release-version was given.
  42352. -if test "${with_release_version+set}" = set; then
  42353. - withval=$with_release_version; RELEASE_VERSION="$withval"
  42354. -else
  42355. - RELEASE_VERSION=""
  42356. -fi
  42357. -
  42358. - if test "x$RELEASE_VERSION" != "x"; then
  42359. - PACKAGE="$PACKAGE-$RELEASE_VERSION"
  42360. - PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  42361. - { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
  42362. -$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
  42363. - fi
  42364. -
  42365. -cat >>confdefs.h <<_ACEOF
  42366. -#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  42367. -_ACEOF
  42368. -
  42369. - PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  42370. - if test "x$PVM" = "x"; then
  42371. - PVM="0"
  42372. - fi
  42373. -
  42374. -cat >>confdefs.h <<_ACEOF
  42375. -#define PACKAGE_VERSION_MINOR $PVM
  42376. -_ACEOF
  42377. -
  42378. - PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  42379. - if test "x$PVP" = "x"; then
  42380. - PVP="0"
  42381. - fi
  42382. -
  42383. -cat >>confdefs.h <<_ACEOF
  42384. -#define PACKAGE_VERSION_PATCHLEVEL $PVP
  42385. -_ACEOF
  42386. -
  42387. -
  42388. -
  42389. -CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
  42390. -mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
  42391. -echo 'git directory not found: installing possibly empty changelog.' >&2)"
  42392. -
  42393. -distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
  42394. -
  42395. -
  42396. -
  42397. -
  42398. -
  42399. -if test x$APP_MAN_SUFFIX = x ; then
  42400. - APP_MAN_SUFFIX=1
  42401. -fi
  42402. -if test x$APP_MAN_DIR = x ; then
  42403. - APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  42404. -fi
  42405. -
  42406. -if test x$LIB_MAN_SUFFIX = x ; then
  42407. - LIB_MAN_SUFFIX=3
  42408. -fi
  42409. -if test x$LIB_MAN_DIR = x ; then
  42410. - LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  42411. -fi
  42412. -
  42413. -if test x$FILE_MAN_SUFFIX = x ; then
  42414. - case $host_os in
  42415. - solaris*) FILE_MAN_SUFFIX=4 ;;
  42416. - *) FILE_MAN_SUFFIX=5 ;;
  42417. - esac
  42418. -fi
  42419. -if test x$FILE_MAN_DIR = x ; then
  42420. - FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  42421. -fi
  42422. -
  42423. -if test x$MISC_MAN_SUFFIX = x ; then
  42424. - case $host_os in
  42425. - solaris*) MISC_MAN_SUFFIX=5 ;;
  42426. - *) MISC_MAN_SUFFIX=7 ;;
  42427. - esac
  42428. -fi
  42429. -if test x$MISC_MAN_DIR = x ; then
  42430. - MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  42431. -fi
  42432. -
  42433. -if test x$DRIVER_MAN_SUFFIX = x ; then
  42434. - case $host_os in
  42435. - solaris*) DRIVER_MAN_SUFFIX=7 ;;
  42436. - *) DRIVER_MAN_SUFFIX=4 ;;
  42437. - esac
  42438. -fi
  42439. -if test x$DRIVER_MAN_DIR = x ; then
  42440. - DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  42441. -fi
  42442. -
  42443. -if test x$ADMIN_MAN_SUFFIX = x ; then
  42444. - case $host_os in
  42445. - solaris*) ADMIN_MAN_SUFFIX=1m ;;
  42446. - *) ADMIN_MAN_SUFFIX=8 ;;
  42447. - esac
  42448. -fi
  42449. -if test x$ADMIN_MAN_DIR = x ; then
  42450. - ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  42451. -fi
  42452. -
  42453. -
  42454. -
  42455. -
  42456. -
  42457. -
  42458. -
  42459. -
  42460. -
  42461. -
  42462. -
  42463. -
  42464. -
  42465. -
  42466. -
  42467. -
  42468. -
  42469. -{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
  42470. -$as_echo_n "checking for strcasecmp... " >&6; }
  42471. -if test "${ac_cv_func_strcasecmp+set}" = set; then
  42472. - $as_echo_n "(cached) " >&6
  42473. -else
  42474. - cat >conftest.$ac_ext <<_ACEOF
  42475. -/* confdefs.h. */
  42476. -_ACEOF
  42477. -cat confdefs.h >>conftest.$ac_ext
  42478. -cat >>conftest.$ac_ext <<_ACEOF
  42479. -/* end confdefs.h. */
  42480. -/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
  42481. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42482. -#define strcasecmp innocuous_strcasecmp
  42483. -
  42484. -/* System header to define __stub macros and hopefully few prototypes,
  42485. - which can conflict with char strcasecmp (); below.
  42486. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42487. - <limits.h> exists even on freestanding compilers. */
  42488. -
  42489. -#ifdef __STDC__
  42490. -# include <limits.h>
  42491. -#else
  42492. -# include <assert.h>
  42493. -#endif
  42494. -
  42495. -#undef strcasecmp
  42496. -
  42497. -/* Override any GCC internal prototype to avoid an error.
  42498. - Use char because int might match the return type of a GCC
  42499. - builtin and then its argument prototype would still apply. */
  42500. -#ifdef __cplusplus
  42501. -extern "C"
  42502. -#endif
  42503. -char strcasecmp ();
  42504. -/* The GNU C library defines this for functions which it implements
  42505. - to always fail with ENOSYS. Some functions are actually named
  42506. - something starting with __ and the normal name is an alias. */
  42507. -#if defined __stub_strcasecmp || defined __stub___strcasecmp
  42508. -choke me
  42509. -#endif
  42510. -
  42511. -int
  42512. -main ()
  42513. -{
  42514. -return strcasecmp ();
  42515. - ;
  42516. - return 0;
  42517. -}
  42518. -_ACEOF
  42519. -rm -f conftest.$ac_objext conftest$ac_exeext
  42520. -if { (ac_try="$ac_link"
  42521. -case "(($ac_try" in
  42522. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42523. - *) ac_try_echo=$ac_try;;
  42524. -esac
  42525. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42526. -$as_echo "$ac_try_echo") >&5
  42527. - (eval "$ac_link") 2>conftest.er1
  42528. - ac_status=$?
  42529. - grep -v '^ *+' conftest.er1 >conftest.err
  42530. - rm -f conftest.er1
  42531. - cat conftest.err >&5
  42532. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42533. - (exit $ac_status); } && {
  42534. - test -z "$ac_c_werror_flag" ||
  42535. - test ! -s conftest.err
  42536. - } && test -s conftest$ac_exeext && {
  42537. - test "$cross_compiling" = yes ||
  42538. - $as_test_x conftest$ac_exeext
  42539. - }; then
  42540. - ac_cv_func_strcasecmp=yes
  42541. -else
  42542. - $as_echo "$as_me: failed program was:" >&5
  42543. -sed 's/^/| /' conftest.$ac_ext >&5
  42544. -
  42545. - ac_cv_func_strcasecmp=no
  42546. -fi
  42547. -
  42548. -rm -rf conftest.dSYM
  42549. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42550. - conftest$ac_exeext conftest.$ac_ext
  42551. -fi
  42552. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
  42553. -$as_echo "$ac_cv_func_strcasecmp" >&6; }
  42554. -if test "x$ac_cv_func_strcasecmp" = x""yes; then
  42555. - :
  42556. -else
  42557. -
  42558. -cat >>confdefs.h <<\_ACEOF
  42559. -#define NEED_STRCASECMP 1
  42560. -_ACEOF
  42561. -
  42562. -fi
  42563. -
  42564. -{ $as_echo "$as_me:$LINENO: checking for getc_unlocked" >&5
  42565. -$as_echo_n "checking for getc_unlocked... " >&6; }
  42566. -if test "${ac_cv_func_getc_unlocked+set}" = set; then
  42567. - $as_echo_n "(cached) " >&6
  42568. -else
  42569. - cat >conftest.$ac_ext <<_ACEOF
  42570. -/* confdefs.h. */
  42571. -_ACEOF
  42572. -cat confdefs.h >>conftest.$ac_ext
  42573. -cat >>conftest.$ac_ext <<_ACEOF
  42574. -/* end confdefs.h. */
  42575. -/* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
  42576. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42577. -#define getc_unlocked innocuous_getc_unlocked
  42578. -
  42579. -/* System header to define __stub macros and hopefully few prototypes,
  42580. - which can conflict with char getc_unlocked (); below.
  42581. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42582. - <limits.h> exists even on freestanding compilers. */
  42583. -
  42584. -#ifdef __STDC__
  42585. -# include <limits.h>
  42586. -#else
  42587. -# include <assert.h>
  42588. -#endif
  42589. -
  42590. -#undef getc_unlocked
  42591. -
  42592. -/* Override any GCC internal prototype to avoid an error.
  42593. - Use char because int might match the return type of a GCC
  42594. - builtin and then its argument prototype would still apply. */
  42595. -#ifdef __cplusplus
  42596. -extern "C"
  42597. -#endif
  42598. -char getc_unlocked ();
  42599. -/* The GNU C library defines this for functions which it implements
  42600. - to always fail with ENOSYS. Some functions are actually named
  42601. - something starting with __ and the normal name is an alias. */
  42602. -#if defined __stub_getc_unlocked || defined __stub___getc_unlocked
  42603. -choke me
  42604. -#endif
  42605. -
  42606. -int
  42607. -main ()
  42608. -{
  42609. -return getc_unlocked ();
  42610. - ;
  42611. - return 0;
  42612. -}
  42613. -_ACEOF
  42614. -rm -f conftest.$ac_objext conftest$ac_exeext
  42615. -if { (ac_try="$ac_link"
  42616. -case "(($ac_try" in
  42617. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  42618. - *) ac_try_echo=$ac_try;;
  42619. -esac
  42620. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  42621. -$as_echo "$ac_try_echo") >&5
  42622. - (eval "$ac_link") 2>conftest.er1
  42623. - ac_status=$?
  42624. - grep -v '^ *+' conftest.er1 >conftest.err
  42625. - rm -f conftest.er1
  42626. - cat conftest.err >&5
  42627. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42628. - (exit $ac_status); } && {
  42629. - test -z "$ac_c_werror_flag" ||
  42630. - test ! -s conftest.err
  42631. - } && test -s conftest$ac_exeext && {
  42632. - test "$cross_compiling" = yes ||
  42633. - $as_test_x conftest$ac_exeext
  42634. - }; then
  42635. - ac_cv_func_getc_unlocked=yes
  42636. -else
  42637. - $as_echo "$as_me: failed program was:" >&5
  42638. -sed 's/^/| /' conftest.$ac_ext >&5
  42639. -
  42640. - ac_cv_func_getc_unlocked=no
  42641. -fi
  42642. -
  42643. -rm -rf conftest.dSYM
  42644. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  42645. - conftest$ac_exeext conftest.$ac_ext
  42646. -fi
  42647. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
  42648. -$as_echo "$ac_cv_func_getc_unlocked" >&6; }
  42649. -if test "x$ac_cv_func_getc_unlocked" = x""yes; then
  42650. -
  42651. -cat >>confdefs.h <<\_ACEOF
  42652. -#define HAVE_UNLOCKED_STDIO 1
  42653. -_ACEOF
  42654. -
  42655. -fi
  42656. -
  42657. -
  42658. -# Check for dependencies
  42659. -
  42660. -
  42661. -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  42662. - if test -n "$ac_tool_prefix"; then
  42663. - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  42664. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  42665. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  42666. -$as_echo_n "checking for $ac_word... " >&6; }
  42667. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  42668. - $as_echo_n "(cached) " >&6
  42669. -else
  42670. - case $PKG_CONFIG in
  42671. - [\\/]* | ?:[\\/]*)
  42672. - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  42673. - ;;
  42674. - *)
  42675. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42676. -for as_dir in $PATH
  42677. -do
  42678. - IFS=$as_save_IFS
  42679. - test -z "$as_dir" && as_dir=.
  42680. - for ac_exec_ext in '' $ac_executable_extensions; do
  42681. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42682. - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  42683. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42684. - break 2
  42685. - fi
  42686. -done
  42687. -done
  42688. -IFS=$as_save_IFS
  42689. -
  42690. - ;;
  42691. -esac
  42692. -fi
  42693. -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  42694. -if test -n "$PKG_CONFIG"; then
  42695. - { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  42696. -$as_echo "$PKG_CONFIG" >&6; }
  42697. -else
  42698. - { $as_echo "$as_me:$LINENO: result: no" >&5
  42699. -$as_echo "no" >&6; }
  42700. -fi
  42701. -
  42702. -
  42703. -fi
  42704. -if test -z "$ac_cv_path_PKG_CONFIG"; then
  42705. - ac_pt_PKG_CONFIG=$PKG_CONFIG
  42706. - # Extract the first word of "pkg-config", so it can be a program name with args.
  42707. -set dummy pkg-config; ac_word=$2
  42708. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  42709. -$as_echo_n "checking for $ac_word... " >&6; }
  42710. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  42711. - $as_echo_n "(cached) " >&6
  42712. -else
  42713. - case $ac_pt_PKG_CONFIG in
  42714. - [\\/]* | ?:[\\/]*)
  42715. - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  42716. - ;;
  42717. - *)
  42718. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42719. -for as_dir in $PATH
  42720. -do
  42721. - IFS=$as_save_IFS
  42722. - test -z "$as_dir" && as_dir=.
  42723. - for ac_exec_ext in '' $ac_executable_extensions; do
  42724. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  42725. - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  42726. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  42727. - break 2
  42728. - fi
  42729. -done
  42730. -done
  42731. -IFS=$as_save_IFS
  42732. -
  42733. - ;;
  42734. -esac
  42735. -fi
  42736. -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  42737. -if test -n "$ac_pt_PKG_CONFIG"; then
  42738. - { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  42739. -$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  42740. -else
  42741. - { $as_echo "$as_me:$LINENO: result: no" >&5
  42742. -$as_echo "no" >&6; }
  42743. -fi
  42744. -
  42745. - if test "x$ac_pt_PKG_CONFIG" = x; then
  42746. - PKG_CONFIG=""
  42747. - else
  42748. - case $cross_compiling:$ac_tool_warned in
  42749. -yes:)
  42750. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  42751. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  42752. -ac_tool_warned=yes ;;
  42753. -esac
  42754. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  42755. - fi
  42756. -else
  42757. - PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  42758. -fi
  42759. -
  42760. -fi
  42761. -if test -n "$PKG_CONFIG"; then
  42762. - _pkg_min_version=0.9.0
  42763. - { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  42764. -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  42765. - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  42766. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  42767. -$as_echo "yes" >&6; }
  42768. - else
  42769. - { $as_echo "$as_me:$LINENO: result: no" >&5
  42770. -$as_echo "no" >&6; }
  42771. - PKG_CONFIG=""
  42772. - fi
  42773. -
  42774. -fi
  42775. -
  42776. -pkg_failed=no
  42777. -{ $as_echo "$as_me:$LINENO: checking for XKBFILE" >&5
  42778. -$as_echo_n "checking for XKBFILE... " >&6; }
  42779. -
  42780. -if test -n "$XKBFILE_CFLAGS"; then
  42781. - pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS"
  42782. - elif test -n "$PKG_CONFIG"; then
  42783. - if test -n "$PKG_CONFIG" && \
  42784. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\"") >&5
  42785. - ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
  42786. - ac_status=$?
  42787. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42788. - (exit $ac_status); }; then
  42789. - pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null`
  42790. -else
  42791. - pkg_failed=yes
  42792. -fi
  42793. - else
  42794. - pkg_failed=untried
  42795. -fi
  42796. -if test -n "$XKBFILE_LIBS"; then
  42797. - pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS"
  42798. - elif test -n "$PKG_CONFIG"; then
  42799. - if test -n "$PKG_CONFIG" && \
  42800. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\"") >&5
  42801. - ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5
  42802. - ac_status=$?
  42803. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42804. - (exit $ac_status); }; then
  42805. - pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null`
  42806. -else
  42807. - pkg_failed=yes
  42808. -fi
  42809. - else
  42810. - pkg_failed=untried
  42811. -fi
  42812. -
  42813. -
  42814. -
  42815. -if test $pkg_failed = yes; then
  42816. -
  42817. -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  42818. - _pkg_short_errors_supported=yes
  42819. -else
  42820. - _pkg_short_errors_supported=no
  42821. -fi
  42822. - if test $_pkg_short_errors_supported = yes; then
  42823. - XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 kbproto" 2>&1`
  42824. - else
  42825. - XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 kbproto" 2>&1`
  42826. - fi
  42827. - # Put the nasty error message in config.log where it belongs
  42828. - echo "$XKBFILE_PKG_ERRORS" >&5
  42829. -
  42830. - { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 kbproto) were not met:
  42831. -
  42832. -$XKBFILE_PKG_ERRORS
  42833. -
  42834. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  42835. -installed software in a non-standard prefix.
  42836. -
  42837. -Alternatively, you may set the environment variables XKBFILE_CFLAGS
  42838. -and XKBFILE_LIBS to avoid the need to call pkg-config.
  42839. -See the pkg-config man page for more details.
  42840. -" >&5
  42841. -$as_echo "$as_me: error: Package requirements (x11 kbproto) were not met:
  42842. -
  42843. -$XKBFILE_PKG_ERRORS
  42844. -
  42845. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  42846. -installed software in a non-standard prefix.
  42847. -
  42848. -Alternatively, you may set the environment variables XKBFILE_CFLAGS
  42849. -and XKBFILE_LIBS to avoid the need to call pkg-config.
  42850. -See the pkg-config man page for more details.
  42851. -" >&2;}
  42852. - { (exit 1); exit 1; }; }
  42853. -elif test $pkg_failed = untried; then
  42854. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  42855. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  42856. -{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  42857. -is in your PATH or set the PKG_CONFIG environment variable to the full
  42858. -path to pkg-config.
  42859. -
  42860. -Alternatively, you may set the environment variables XKBFILE_CFLAGS
  42861. -and XKBFILE_LIBS to avoid the need to call pkg-config.
  42862. -See the pkg-config man page for more details.
  42863. -
  42864. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  42865. -See \`config.log' for more details." >&5
  42866. -$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  42867. -is in your PATH or set the PKG_CONFIG environment variable to the full
  42868. -path to pkg-config.
  42869. -
  42870. -Alternatively, you may set the environment variables XKBFILE_CFLAGS
  42871. -and XKBFILE_LIBS to avoid the need to call pkg-config.
  42872. -See the pkg-config man page for more details.
  42873. -
  42874. -To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  42875. -See \`config.log' for more details." >&2;}
  42876. - { (exit 1); exit 1; }; }; }
  42877. -else
  42878. - XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS
  42879. - XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS
  42880. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  42881. -$as_echo "yes" >&6; }
  42882. - :
  42883. -fi
  42884. -
  42885. -
  42886. -
  42887. -ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc"
  42888. -
  42889. -cat >confcache <<\_ACEOF
  42890. -# This file is a shell script that caches the results of configure
  42891. -# tests run on this system so they can be shared between configure
  42892. -# scripts and configure runs, see configure's option --config-cache.
  42893. -# It is not useful on other systems. If it contains results you don't
  42894. -# want to keep, you may remove or edit it.
  42895. -#
  42896. -# config.status only pays attention to the cache file if you give it
  42897. -# the --recheck option to rerun configure.
  42898. -#
  42899. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  42900. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  42901. -# following values.
  42902. -
  42903. -_ACEOF
  42904. -
  42905. -# The following way of writing the cache mishandles newlines in values,
  42906. -# but we know of no workaround that is simple, portable, and efficient.
  42907. -# So, we kill variables containing newlines.
  42908. -# Ultrix sh set writes to stderr and can't be redirected directly,
  42909. -# and sets the high bit in the cache file unless we assign to the vars.
  42910. -(
  42911. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  42912. - eval ac_val=\$$ac_var
  42913. - case $ac_val in #(
  42914. - *${as_nl}*)
  42915. - case $ac_var in #(
  42916. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  42917. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  42918. - esac
  42919. - case $ac_var in #(
  42920. - _ | IFS | as_nl) ;; #(
  42921. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  42922. - *) $as_unset $ac_var ;;
  42923. - esac ;;
  42924. - esac
  42925. - done
  42926. -
  42927. - (set) 2>&1 |
  42928. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  42929. - *${as_nl}ac_space=\ *)
  42930. - # `set' does not quote correctly, so add quotes (double-quote
  42931. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  42932. - sed -n \
  42933. - "s/'/'\\\\''/g;
  42934. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  42935. - ;; #(
  42936. - *)
  42937. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  42938. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  42939. - ;;
  42940. - esac |
  42941. - sort
  42942. -) |
  42943. - sed '
  42944. - /^ac_cv_env_/b end
  42945. - t clear
  42946. - :clear
  42947. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  42948. - t end
  42949. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  42950. - :end' >>confcache
  42951. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  42952. - if test -w "$cache_file"; then
  42953. - test "x$cache_file" != "x/dev/null" &&
  42954. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  42955. -$as_echo "$as_me: updating cache $cache_file" >&6;}
  42956. - cat confcache >$cache_file
  42957. - else
  42958. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  42959. -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  42960. - fi
  42961. -fi
  42962. -rm -f confcache
  42963. -
  42964. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  42965. -# Let make expand exec_prefix.
  42966. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  42967. -
  42968. -DEFS=-DHAVE_CONFIG_H
  42969. -
  42970. -ac_libobjs=
  42971. -ac_ltlibobjs=
  42972. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  42973. - # 1. Remove the extension, and $U if already installed.
  42974. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  42975. - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  42976. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  42977. - # will be set to the directory where LIBOBJS objects are built.
  42978. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  42979. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  42980. -done
  42981. -LIBOBJS=$ac_libobjs
  42982. -
  42983. -LTLIBOBJS=$ac_ltlibobjs
  42984. -
  42985. -
  42986. - if test -n "$EXEEXT"; then
  42987. - am__EXEEXT_TRUE=
  42988. - am__EXEEXT_FALSE='#'
  42989. -else
  42990. - am__EXEEXT_TRUE='#'
  42991. - am__EXEEXT_FALSE=
  42992. -fi
  42993. -
  42994. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  42995. - { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  42996. -Usually this means the macro was only invoked conditionally." >&5
  42997. -$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  42998. -Usually this means the macro was only invoked conditionally." >&2;}
  42999. - { (exit 1); exit 1; }; }
  43000. -fi
  43001. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  43002. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  43003. -Usually this means the macro was only invoked conditionally." >&5
  43004. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  43005. -Usually this means the macro was only invoked conditionally." >&2;}
  43006. - { (exit 1); exit 1; }; }
  43007. -fi
  43008. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  43009. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  43010. -Usually this means the macro was only invoked conditionally." >&5
  43011. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  43012. -Usually this means the macro was only invoked conditionally." >&2;}
  43013. - { (exit 1); exit 1; }; }
  43014. -fi
  43015. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  43016. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  43017. -Usually this means the macro was only invoked conditionally." >&5
  43018. -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  43019. -Usually this means the macro was only invoked conditionally." >&2;}
  43020. - { (exit 1); exit 1; }; }
  43021. -fi
  43022. -
  43023. -: ${CONFIG_STATUS=./config.status}
  43024. -ac_write_fail=0
  43025. -ac_clean_files_save=$ac_clean_files
  43026. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  43027. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  43028. -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  43029. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43030. -#! $SHELL
  43031. -# Generated by $as_me.
  43032. -# Run this file to recreate the current configuration.
  43033. -# Compiler output produced by configure, useful for debugging
  43034. -# configure, is in config.log if it exists.
  43035. -
  43036. -debug=false
  43037. -ac_cs_recheck=false
  43038. -ac_cs_silent=false
  43039. -SHELL=\${CONFIG_SHELL-$SHELL}
  43040. -_ACEOF
  43041. -
  43042. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43043. -## --------------------- ##
  43044. -## M4sh Initialization. ##
  43045. -## --------------------- ##
  43046. -
  43047. -# Be more Bourne compatible
  43048. -DUALCASE=1; export DUALCASE # for MKS sh
  43049. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43050. - emulate sh
  43051. - NULLCMD=:
  43052. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  43053. - # is contrary to our usage. Disable this feature.
  43054. - alias -g '${1+"$@"}'='"$@"'
  43055. - setopt NO_GLOB_SUBST
  43056. -else
  43057. - case `(set -o) 2>/dev/null` in
  43058. - *posix*) set -o posix ;;
  43059. -esac
  43060. -
  43061. -fi
  43062. -
  43063. -
  43064. -
  43065. -
  43066. -# PATH needs CR
  43067. -# Avoid depending upon Character Ranges.
  43068. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43069. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43070. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43071. -as_cr_digits='0123456789'
  43072. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  43073. -
  43074. -as_nl='
  43075. -'
  43076. -export as_nl
  43077. -# Printing a long string crashes Solaris 7 /usr/bin/printf.
  43078. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43079. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  43080. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43081. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43082. - as_echo='printf %s\n'
  43083. - as_echo_n='printf %s'
  43084. -else
  43085. - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  43086. - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  43087. - as_echo_n='/usr/ucb/echo -n'
  43088. - else
  43089. - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  43090. - as_echo_n_body='eval
  43091. - arg=$1;
  43092. - case $arg in
  43093. - *"$as_nl"*)
  43094. - expr "X$arg" : "X\\(.*\\)$as_nl";
  43095. - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  43096. - esac;
  43097. - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  43098. - '
  43099. - export as_echo_n_body
  43100. - as_echo_n='sh -c $as_echo_n_body as_echo'
  43101. - fi
  43102. - export as_echo_body
  43103. - as_echo='sh -c $as_echo_body as_echo'
  43104. -fi
  43105. -
  43106. -# The user is always right.
  43107. -if test "${PATH_SEPARATOR+set}" != set; then
  43108. - PATH_SEPARATOR=:
  43109. - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  43110. - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  43111. - PATH_SEPARATOR=';'
  43112. - }
  43113. -fi
  43114. -
  43115. -# Support unset when possible.
  43116. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  43117. - as_unset=unset
  43118. -else
  43119. - as_unset=false
  43120. -fi
  43121. -
  43122. -
  43123. -# IFS
  43124. -# We need space, tab and new line, in precisely that order. Quoting is
  43125. -# there to prevent editors from complaining about space-tab.
  43126. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  43127. -# splitting by setting IFS to empty value.)
  43128. -IFS=" "" $as_nl"
  43129. -
  43130. -# Find who we are. Look in the path if we contain no directory separator.
  43131. -case $0 in
  43132. - *[\\/]* ) as_myself=$0 ;;
  43133. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43134. -for as_dir in $PATH
  43135. -do
  43136. - IFS=$as_save_IFS
  43137. - test -z "$as_dir" && as_dir=.
  43138. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  43139. -done
  43140. -IFS=$as_save_IFS
  43141. -
  43142. - ;;
  43143. -esac
  43144. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  43145. -# in which case we are not to be found in the path.
  43146. -if test "x$as_myself" = x; then
  43147. - as_myself=$0
  43148. -fi
  43149. -if test ! -f "$as_myself"; then
  43150. - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  43151. - { (exit 1); exit 1; }
  43152. -fi
  43153. -
  43154. -# Work around bugs in pre-3.0 UWIN ksh.
  43155. -for as_var in ENV MAIL MAILPATH
  43156. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  43157. -done
  43158. -PS1='$ '
  43159. -PS2='> '
  43160. -PS4='+ '
  43161. -
  43162. -# NLS nuisances.
  43163. -LC_ALL=C
  43164. -export LC_ALL
  43165. -LANGUAGE=C
  43166. -export LANGUAGE
  43167. -
  43168. -# Required to use basename.
  43169. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43170. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43171. - as_expr=expr
  43172. -else
  43173. - as_expr=false
  43174. -fi
  43175. -
  43176. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  43177. - as_basename=basename
  43178. -else
  43179. - as_basename=false
  43180. -fi
  43181. -
  43182. -
  43183. -# Name of the executable.
  43184. -as_me=`$as_basename -- "$0" ||
  43185. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43186. - X"$0" : 'X\(//\)$' \| \
  43187. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  43188. -$as_echo X/"$0" |
  43189. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  43190. - s//\1/
  43191. - q
  43192. - }
  43193. - /^X\/\(\/\/\)$/{
  43194. - s//\1/
  43195. - q
  43196. - }
  43197. - /^X\/\(\/\).*/{
  43198. - s//\1/
  43199. - q
  43200. - }
  43201. - s/.*/./; q'`
  43202. -
  43203. -# CDPATH.
  43204. -$as_unset CDPATH
  43205. -
  43206. -
  43207. -
  43208. - as_lineno_1=$LINENO
  43209. - as_lineno_2=$LINENO
  43210. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43211. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  43212. -
  43213. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  43214. - # uniformly replaced by the line number. The first 'sed' inserts a
  43215. - # line-number line after each line using $LINENO; the second 'sed'
  43216. - # does the real work. The second script uses 'N' to pair each
  43217. - # line-number line with the line containing $LINENO, and appends
  43218. - # trailing '-' during substitution so that $LINENO is not a special
  43219. - # case at line end.
  43220. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  43221. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  43222. - # E. McMahon (1931-1989) for sed's syntax. :-)
  43223. - sed -n '
  43224. - p
  43225. - /[$]LINENO/=
  43226. - ' <$as_myself |
  43227. - sed '
  43228. - s/[$]LINENO.*/&-/
  43229. - t lineno
  43230. - b
  43231. - :lineno
  43232. - N
  43233. - :loop
  43234. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  43235. - t loop
  43236. - s/-\n.*//
  43237. - ' >$as_me.lineno &&
  43238. - chmod +x "$as_me.lineno" ||
  43239. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  43240. - { (exit 1); exit 1; }; }
  43241. -
  43242. - # Don't try to exec as it changes $[0], causing all sort of problems
  43243. - # (the dirname of $[0] is not the place where we might find the
  43244. - # original and so on. Autoconf is especially sensitive to this).
  43245. - . "./$as_me.lineno"
  43246. - # Exit status is that of the last command.
  43247. - exit
  43248. -}
  43249. -
  43250. -
  43251. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43252. - as_dirname=dirname
  43253. -else
  43254. - as_dirname=false
  43255. -fi
  43256. -
  43257. -ECHO_C= ECHO_N= ECHO_T=
  43258. -case `echo -n x` in
  43259. --n*)
  43260. - case `echo 'x\c'` in
  43261. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43262. - *) ECHO_C='\c';;
  43263. - esac;;
  43264. -*)
  43265. - ECHO_N='-n';;
  43266. -esac
  43267. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  43268. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43269. - as_expr=expr
  43270. -else
  43271. - as_expr=false
  43272. -fi
  43273. -
  43274. -rm -f conf$$ conf$$.exe conf$$.file
  43275. -if test -d conf$$.dir; then
  43276. - rm -f conf$$.dir/conf$$.file
  43277. -else
  43278. - rm -f conf$$.dir
  43279. - mkdir conf$$.dir 2>/dev/null
  43280. -fi
  43281. -if (echo >conf$$.file) 2>/dev/null; then
  43282. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  43283. - as_ln_s='ln -s'
  43284. - # ... but there are two gotchas:
  43285. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43286. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43287. - # In both cases, we have to default to `cp -p'.
  43288. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43289. - as_ln_s='cp -p'
  43290. - elif ln conf$$.file conf$$ 2>/dev/null; then
  43291. - as_ln_s=ln
  43292. - else
  43293. - as_ln_s='cp -p'
  43294. - fi
  43295. -else
  43296. - as_ln_s='cp -p'
  43297. -fi
  43298. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43299. -rmdir conf$$.dir 2>/dev/null
  43300. -
  43301. -if mkdir -p . 2>/dev/null; then
  43302. - as_mkdir_p=:
  43303. -else
  43304. - test -d ./-p && rmdir ./-p
  43305. - as_mkdir_p=false
  43306. -fi
  43307. -
  43308. -if test -x / >/dev/null 2>&1; then
  43309. - as_test_x='test -x'
  43310. -else
  43311. - if ls -dL / >/dev/null 2>&1; then
  43312. - as_ls_L_option=L
  43313. - else
  43314. - as_ls_L_option=
  43315. - fi
  43316. - as_test_x='
  43317. - eval sh -c '\''
  43318. - if test -d "$1"; then
  43319. - test -d "$1/.";
  43320. - else
  43321. - case $1 in
  43322. - -*)set "./$1";;
  43323. - esac;
  43324. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  43325. - ???[sx]*):;;*)false;;esac;fi
  43326. - '\'' sh
  43327. - '
  43328. -fi
  43329. -as_executable_p=$as_test_x
  43330. -
  43331. -# Sed expression to map a string onto a valid CPP name.
  43332. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43333. -
  43334. -# Sed expression to map a string onto a valid variable name.
  43335. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43336. -
  43337. -
  43338. -exec 6>&1
  43339. -
  43340. -# Save the log message, to keep $[0] and so on meaningful, and to
  43341. -# report actual input values of CONFIG_FILES etc. instead of their
  43342. -# values after options handling.
  43343. -ac_log="
  43344. -This file was extended by libxkbfile $as_me 1.0.6, which was
  43345. -generated by GNU Autoconf 2.63. Invocation command line was
  43346. -
  43347. - CONFIG_FILES = $CONFIG_FILES
  43348. - CONFIG_HEADERS = $CONFIG_HEADERS
  43349. - CONFIG_LINKS = $CONFIG_LINKS
  43350. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43351. - $ $0 $@
  43352. -
  43353. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43354. -"
  43355. -
  43356. -_ACEOF
  43357. -
  43358. -case $ac_config_files in *"
  43359. -"*) set x $ac_config_files; shift; ac_config_files=$*;;
  43360. -esac
  43361. -
  43362. -case $ac_config_headers in *"
  43363. -"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  43364. -esac
  43365. -
  43366. -
  43367. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43368. -# Files that config.status was made for.
  43369. -config_files="$ac_config_files"
  43370. -config_headers="$ac_config_headers"
  43371. -config_commands="$ac_config_commands"
  43372. -
  43373. -_ACEOF
  43374. -
  43375. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43376. -ac_cs_usage="\
  43377. -\`$as_me' instantiates files from templates according to the
  43378. -current configuration.
  43379. -
  43380. -Usage: $0 [OPTION]... [FILE]...
  43381. -
  43382. - -h, --help print this help, then exit
  43383. - -V, --version print version number and configuration settings, then exit
  43384. - -q, --quiet, --silent
  43385. - do not print progress messages
  43386. - -d, --debug don't remove temporary files
  43387. - --recheck update $as_me by reconfiguring in the same conditions
  43388. - --file=FILE[:TEMPLATE]
  43389. - instantiate the configuration file FILE
  43390. - --header=FILE[:TEMPLATE]
  43391. - instantiate the configuration header FILE
  43392. -
  43393. -Configuration files:
  43394. -$config_files
  43395. -
  43396. -Configuration headers:
  43397. -$config_headers
  43398. -
  43399. -Configuration commands:
  43400. -$config_commands
  43401. -
  43402. -Report bugs to <bug-autoconf@gnu.org>."
  43403. -
  43404. -_ACEOF
  43405. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43406. -ac_cs_version="\\
  43407. -libxkbfile config.status 1.0.6
  43408. -configured by $0, generated by GNU Autoconf 2.63,
  43409. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  43410. -
  43411. -Copyright (C) 2008 Free Software Foundation, Inc.
  43412. -This config.status script is free software; the Free Software Foundation
  43413. -gives unlimited permission to copy, distribute and modify it."
  43414. -
  43415. -ac_pwd='$ac_pwd'
  43416. -srcdir='$srcdir'
  43417. -INSTALL='$INSTALL'
  43418. -MKDIR_P='$MKDIR_P'
  43419. -AWK='$AWK'
  43420. -test -n "\$AWK" || AWK=awk
  43421. -_ACEOF
  43422. -
  43423. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43424. -# The default lists apply if the user does not specify any file.
  43425. -ac_need_defaults=:
  43426. -while test $# != 0
  43427. -do
  43428. - case $1 in
  43429. - --*=*)
  43430. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43431. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43432. - ac_shift=:
  43433. - ;;
  43434. - *)
  43435. - ac_option=$1
  43436. - ac_optarg=$2
  43437. - ac_shift=shift
  43438. - ;;
  43439. - esac
  43440. -
  43441. - case $ac_option in
  43442. - # Handling of the options.
  43443. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43444. - ac_cs_recheck=: ;;
  43445. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43446. - $as_echo "$ac_cs_version"; exit ;;
  43447. - --debug | --debu | --deb | --de | --d | -d )
  43448. - debug=: ;;
  43449. - --file | --fil | --fi | --f )
  43450. - $ac_shift
  43451. - case $ac_optarg in
  43452. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43453. - esac
  43454. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  43455. - ac_need_defaults=false;;
  43456. - --header | --heade | --head | --hea )
  43457. - $ac_shift
  43458. - case $ac_optarg in
  43459. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43460. - esac
  43461. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  43462. - ac_need_defaults=false;;
  43463. - --he | --h)
  43464. - # Conflict between --help and --header
  43465. - { $as_echo "$as_me: error: ambiguous option: $1
  43466. -Try \`$0 --help' for more information." >&2
  43467. - { (exit 1); exit 1; }; };;
  43468. - --help | --hel | -h )
  43469. - $as_echo "$ac_cs_usage"; exit ;;
  43470. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43471. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43472. - ac_cs_silent=: ;;
  43473. -
  43474. - # This is an error.
  43475. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  43476. -Try \`$0 --help' for more information." >&2
  43477. - { (exit 1); exit 1; }; } ;;
  43478. -
  43479. - *) ac_config_targets="$ac_config_targets $1"
  43480. - ac_need_defaults=false ;;
  43481. -
  43482. - esac
  43483. - shift
  43484. -done
  43485. -
  43486. -ac_configure_extra_args=
  43487. -
  43488. -if $ac_cs_silent; then
  43489. - exec 6>/dev/null
  43490. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43491. -fi
  43492. -
  43493. -_ACEOF
  43494. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43495. -if \$ac_cs_recheck; then
  43496. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43497. - shift
  43498. - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  43499. - CONFIG_SHELL='$SHELL'
  43500. - export CONFIG_SHELL
  43501. - exec "\$@"
  43502. -fi
  43503. -
  43504. -_ACEOF
  43505. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43506. -exec 5>>config.log
  43507. -{
  43508. - echo
  43509. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43510. -## Running $as_me. ##
  43511. -_ASBOX
  43512. - $as_echo "$ac_log"
  43513. -} >&5
  43514. -
  43515. -_ACEOF
  43516. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43517. -#
  43518. -# INIT-COMMANDS
  43519. -#
  43520. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43521. -
  43522. -_ACEOF
  43523. -
  43524. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43525. -
  43526. -# Handling of arguments.
  43527. -for ac_config_target in $ac_config_targets
  43528. -do
  43529. - case $ac_config_target in
  43530. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  43531. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43532. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43533. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  43534. - "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;;
  43535. -
  43536. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  43537. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  43538. - { (exit 1); exit 1; }; };;
  43539. - esac
  43540. -done
  43541. -
  43542. -
  43543. -# If the user did not use the arguments to specify the items to instantiate,
  43544. -# then the envvar interface is used. Set only those that are not.
  43545. -# We use the long form for the default assignment because of an extremely
  43546. -# bizarre bug on SunOS 4.1.3.
  43547. -if $ac_need_defaults; then
  43548. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43549. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43550. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43551. -fi
  43552. -
  43553. -# Have a temporary directory for convenience. Make it in the build tree
  43554. -# simply because there is no reason against having it here, and in addition,
  43555. -# creating and moving files from /tmp can sometimes cause problems.
  43556. -# Hook for its removal unless debugging.
  43557. -# Note that there is a small window in which the directory will not be cleaned:
  43558. -# after its creation but before its name has been assigned to `$tmp'.
  43559. -$debug ||
  43560. -{
  43561. - tmp=
  43562. - trap 'exit_status=$?
  43563. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43564. -' 0
  43565. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  43566. -}
  43567. -# Create a (secure) tmp directory for tmp files.
  43568. -
  43569. -{
  43570. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43571. - test -n "$tmp" && test -d "$tmp"
  43572. -} ||
  43573. -{
  43574. - tmp=./conf$$-$RANDOM
  43575. - (umask 077 && mkdir "$tmp")
  43576. -} ||
  43577. -{
  43578. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  43579. - { (exit 1); exit 1; }
  43580. -}
  43581. -
  43582. -# Set up the scripts for CONFIG_FILES section.
  43583. -# No need to generate them if there are no CONFIG_FILES.
  43584. -# This happens for instance with `./config.status config.h'.
  43585. -if test -n "$CONFIG_FILES"; then
  43586. -
  43587. -
  43588. -ac_cr=' '
  43589. -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  43590. -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  43591. - ac_cs_awk_cr='\\r'
  43592. -else
  43593. - ac_cs_awk_cr=$ac_cr
  43594. -fi
  43595. -
  43596. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  43597. -_ACEOF
  43598. -
  43599. -
  43600. -{
  43601. - echo "cat >conf$$subs.awk <<_ACEOF" &&
  43602. - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  43603. - echo "_ACEOF"
  43604. -} >conf$$subs.sh ||
  43605. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43606. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43607. - { (exit 1); exit 1; }; }
  43608. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  43609. -ac_delim='%!_!# '
  43610. -for ac_last_try in false false false false false :; do
  43611. - . ./conf$$subs.sh ||
  43612. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43613. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43614. - { (exit 1); exit 1; }; }
  43615. -
  43616. - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  43617. - if test $ac_delim_n = $ac_delim_num; then
  43618. - break
  43619. - elif $ac_last_try; then
  43620. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  43621. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  43622. - { (exit 1); exit 1; }; }
  43623. - else
  43624. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43625. - fi
  43626. -done
  43627. -rm -f conf$$subs.sh
  43628. -
  43629. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43630. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  43631. -_ACEOF
  43632. -sed -n '
  43633. -h
  43634. -s/^/S["/; s/!.*/"]=/
  43635. -p
  43636. -g
  43637. -s/^[^!]*!//
  43638. -:repl
  43639. -t repl
  43640. -s/'"$ac_delim"'$//
  43641. -t delim
  43642. -:nl
  43643. -h
  43644. -s/\(.\{148\}\).*/\1/
  43645. -t more1
  43646. -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  43647. -p
  43648. -n
  43649. -b repl
  43650. -:more1
  43651. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43652. -p
  43653. -g
  43654. -s/.\{148\}//
  43655. -t nl
  43656. -:delim
  43657. -h
  43658. -s/\(.\{148\}\).*/\1/
  43659. -t more2
  43660. -s/["\\]/\\&/g; s/^/"/; s/$/"/
  43661. -p
  43662. -b
  43663. -:more2
  43664. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43665. -p
  43666. -g
  43667. -s/.\{148\}//
  43668. -t delim
  43669. -' <conf$$subs.awk | sed '
  43670. -/^[^""]/{
  43671. - N
  43672. - s/\n//
  43673. -}
  43674. -' >>$CONFIG_STATUS || ac_write_fail=1
  43675. -rm -f conf$$subs.awk
  43676. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43677. -_ACAWK
  43678. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  43679. - for (key in S) S_is_set[key] = 1
  43680. - FS = ""
  43681. -
  43682. -}
  43683. -{
  43684. - line = $ 0
  43685. - nfields = split(line, field, "@")
  43686. - substed = 0
  43687. - len = length(field[1])
  43688. - for (i = 2; i < nfields; i++) {
  43689. - key = field[i]
  43690. - keylen = length(key)
  43691. - if (S_is_set[key]) {
  43692. - value = S[key]
  43693. - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  43694. - len += length(value) + length(field[++i])
  43695. - substed = 1
  43696. - } else
  43697. - len += 1 + keylen
  43698. - }
  43699. -
  43700. - print line
  43701. -}
  43702. -
  43703. -_ACAWK
  43704. -_ACEOF
  43705. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43706. -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  43707. - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  43708. -else
  43709. - cat
  43710. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  43711. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  43712. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  43713. - { (exit 1); exit 1; }; }
  43714. -_ACEOF
  43715. -
  43716. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  43717. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  43718. -# trailing colons and then remove the whole line if VPATH becomes empty
  43719. -# (actually we leave an empty line to preserve line numbers).
  43720. -if test "x$srcdir" = x.; then
  43721. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  43722. -s/:*\$(srcdir):*/:/
  43723. -s/:*\${srcdir}:*/:/
  43724. -s/:*@srcdir@:*/:/
  43725. -s/^\([^=]*=[ ]*\):*/\1/
  43726. -s/:*$//
  43727. -s/^[^=]*=[ ]*$//
  43728. -}'
  43729. -fi
  43730. -
  43731. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43732. -fi # test -n "$CONFIG_FILES"
  43733. -
  43734. -# Set up the scripts for CONFIG_HEADERS section.
  43735. -# No need to generate them if there are no CONFIG_HEADERS.
  43736. -# This happens for instance with `./config.status Makefile'.
  43737. -if test -n "$CONFIG_HEADERS"; then
  43738. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  43739. -BEGIN {
  43740. -_ACEOF
  43741. -
  43742. -# Transform confdefs.h into an awk script `defines.awk', embedded as
  43743. -# here-document in config.status, that substitutes the proper values into
  43744. -# config.h.in to produce config.h.
  43745. -
  43746. -# Create a delimiter string that does not exist in confdefs.h, to ease
  43747. -# handling of long lines.
  43748. -ac_delim='%!_!# '
  43749. -for ac_last_try in false false :; do
  43750. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  43751. - if test -z "$ac_t"; then
  43752. - break
  43753. - elif $ac_last_try; then
  43754. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  43755. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  43756. - { (exit 1); exit 1; }; }
  43757. - else
  43758. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43759. - fi
  43760. -done
  43761. -
  43762. -# For the awk script, D is an array of macro values keyed by name,
  43763. -# likewise P contains macro parameters if any. Preserve backslash
  43764. -# newline sequences.
  43765. -
  43766. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  43767. -sed -n '
  43768. -s/.\{148\}/&'"$ac_delim"'/g
  43769. -t rset
  43770. -:rset
  43771. -s/^[ ]*#[ ]*define[ ][ ]*/ /
  43772. -t def
  43773. -d
  43774. -:def
  43775. -s/\\$//
  43776. -t bsnl
  43777. -s/["\\]/\\&/g
  43778. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43779. -D["\1"]=" \3"/p
  43780. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  43781. -d
  43782. -:bsnl
  43783. -s/["\\]/\\&/g
  43784. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43785. -D["\1"]=" \3\\\\\\n"\\/p
  43786. -t cont
  43787. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  43788. -t cont
  43789. -d
  43790. -:cont
  43791. -n
  43792. -s/.\{148\}/&'"$ac_delim"'/g
  43793. -t clear
  43794. -:clear
  43795. -s/\\$//
  43796. -t bsnlc
  43797. -s/["\\]/\\&/g; s/^/"/; s/$/"/p
  43798. -d
  43799. -:bsnlc
  43800. -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  43801. -b cont
  43802. -' <confdefs.h | sed '
  43803. -s/'"$ac_delim"'/"\\\
  43804. -"/g' >>$CONFIG_STATUS || ac_write_fail=1
  43805. -
  43806. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43807. - for (key in D) D_is_set[key] = 1
  43808. - FS = ""
  43809. -}
  43810. -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  43811. - line = \$ 0
  43812. - split(line, arg, " ")
  43813. - if (arg[1] == "#") {
  43814. - defundef = arg[2]
  43815. - mac1 = arg[3]
  43816. - } else {
  43817. - defundef = substr(arg[1], 2)
  43818. - mac1 = arg[2]
  43819. - }
  43820. - split(mac1, mac2, "(") #)
  43821. - macro = mac2[1]
  43822. - prefix = substr(line, 1, index(line, defundef) - 1)
  43823. - if (D_is_set[macro]) {
  43824. - # Preserve the white space surrounding the "#".
  43825. - print prefix "define", macro P[macro] D[macro]
  43826. - next
  43827. - } else {
  43828. - # Replace #undef with comments. This is necessary, for example,
  43829. - # in the case of _POSIX_SOURCE, which is predefined and required
  43830. - # on some systems where configure will not decide to define it.
  43831. - if (defundef == "undef") {
  43832. - print "/*", prefix defundef, macro, "*/"
  43833. - next
  43834. - }
  43835. - }
  43836. -}
  43837. -{ print }
  43838. -_ACAWK
  43839. -_ACEOF
  43840. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43841. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  43842. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  43843. - { (exit 1); exit 1; }; }
  43844. -fi # test -n "$CONFIG_HEADERS"
  43845. -
  43846. -
  43847. -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  43848. -shift
  43849. -for ac_tag
  43850. -do
  43851. - case $ac_tag in
  43852. - :[FHLC]) ac_mode=$ac_tag; continue;;
  43853. - esac
  43854. - case $ac_mode$ac_tag in
  43855. - :[FHL]*:*);;
  43856. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  43857. -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  43858. - { (exit 1); exit 1; }; };;
  43859. - :[FH]-) ac_tag=-:-;;
  43860. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  43861. - esac
  43862. - ac_save_IFS=$IFS
  43863. - IFS=:
  43864. - set x $ac_tag
  43865. - IFS=$ac_save_IFS
  43866. - shift
  43867. - ac_file=$1
  43868. - shift
  43869. -
  43870. - case $ac_mode in
  43871. - :L) ac_source=$1;;
  43872. - :[FH])
  43873. - ac_file_inputs=
  43874. - for ac_f
  43875. - do
  43876. - case $ac_f in
  43877. - -) ac_f="$tmp/stdin";;
  43878. - *) # Look for the file first in the build tree, then in the source tree
  43879. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  43880. - # because $ac_f cannot contain `:'.
  43881. - test -f "$ac_f" ||
  43882. - case $ac_f in
  43883. - [\\/$]*) false;;
  43884. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  43885. - esac ||
  43886. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  43887. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  43888. - { (exit 1); exit 1; }; };;
  43889. - esac
  43890. - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  43891. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  43892. - done
  43893. -
  43894. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  43895. - # use $as_me), people would be surprised to read:
  43896. - # /* config.h. Generated by config.status. */
  43897. - configure_input='Generated from '`
  43898. - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  43899. - `' by configure.'
  43900. - if test x"$ac_file" != x-; then
  43901. - configure_input="$ac_file. $configure_input"
  43902. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  43903. -$as_echo "$as_me: creating $ac_file" >&6;}
  43904. - fi
  43905. - # Neutralize special characters interpreted by sed in replacement strings.
  43906. - case $configure_input in #(
  43907. - *\&* | *\|* | *\\* )
  43908. - ac_sed_conf_input=`$as_echo "$configure_input" |
  43909. - sed 's/[\\\\&|]/\\\\&/g'`;; #(
  43910. - *) ac_sed_conf_input=$configure_input;;
  43911. - esac
  43912. -
  43913. - case $ac_tag in
  43914. - *:-:* | *:-) cat >"$tmp/stdin" \
  43915. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  43916. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  43917. - { (exit 1); exit 1; }; } ;;
  43918. - esac
  43919. - ;;
  43920. - esac
  43921. -
  43922. - ac_dir=`$as_dirname -- "$ac_file" ||
  43923. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43924. - X"$ac_file" : 'X\(//\)[^/]' \| \
  43925. - X"$ac_file" : 'X\(//\)$' \| \
  43926. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  43927. -$as_echo X"$ac_file" |
  43928. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43929. - s//\1/
  43930. - q
  43931. - }
  43932. - /^X\(\/\/\)[^/].*/{
  43933. - s//\1/
  43934. - q
  43935. - }
  43936. - /^X\(\/\/\)$/{
  43937. - s//\1/
  43938. - q
  43939. - }
  43940. - /^X\(\/\).*/{
  43941. - s//\1/
  43942. - q
  43943. - }
  43944. - s/.*/./; q'`
  43945. - { as_dir="$ac_dir"
  43946. - case $as_dir in #(
  43947. - -*) as_dir=./$as_dir;;
  43948. - esac
  43949. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  43950. - as_dirs=
  43951. - while :; do
  43952. - case $as_dir in #(
  43953. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  43954. - *) as_qdir=$as_dir;;
  43955. - esac
  43956. - as_dirs="'$as_qdir' $as_dirs"
  43957. - as_dir=`$as_dirname -- "$as_dir" ||
  43958. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43959. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43960. - X"$as_dir" : 'X\(//\)$' \| \
  43961. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  43962. -$as_echo X"$as_dir" |
  43963. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43964. - s//\1/
  43965. - q
  43966. - }
  43967. - /^X\(\/\/\)[^/].*/{
  43968. - s//\1/
  43969. - q
  43970. - }
  43971. - /^X\(\/\/\)$/{
  43972. - s//\1/
  43973. - q
  43974. - }
  43975. - /^X\(\/\).*/{
  43976. - s//\1/
  43977. - q
  43978. - }
  43979. - s/.*/./; q'`
  43980. - test -d "$as_dir" && break
  43981. - done
  43982. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  43983. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  43984. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  43985. - { (exit 1); exit 1; }; }; }
  43986. - ac_builddir=.
  43987. -
  43988. -case "$ac_dir" in
  43989. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43990. -*)
  43991. - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  43992. - # A ".." for each directory in $ac_dir_suffix.
  43993. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  43994. - case $ac_top_builddir_sub in
  43995. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43996. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  43997. - esac ;;
  43998. -esac
  43999. -ac_abs_top_builddir=$ac_pwd
  44000. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  44001. -# for backward compatibility:
  44002. -ac_top_builddir=$ac_top_build_prefix
  44003. -
  44004. -case $srcdir in
  44005. - .) # We are building in place.
  44006. - ac_srcdir=.
  44007. - ac_top_srcdir=$ac_top_builddir_sub
  44008. - ac_abs_top_srcdir=$ac_pwd ;;
  44009. - [\\/]* | ?:[\\/]* ) # Absolute name.
  44010. - ac_srcdir=$srcdir$ac_dir_suffix;
  44011. - ac_top_srcdir=$srcdir
  44012. - ac_abs_top_srcdir=$srcdir ;;
  44013. - *) # Relative name.
  44014. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  44015. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  44016. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  44017. -esac
  44018. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  44019. -
  44020. -
  44021. - case $ac_mode in
  44022. - :F)
  44023. - #
  44024. - # CONFIG_FILE
  44025. - #
  44026. -
  44027. - case $INSTALL in
  44028. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44029. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  44030. - esac
  44031. - ac_MKDIR_P=$MKDIR_P
  44032. - case $MKDIR_P in
  44033. - [\\/$]* | ?:[\\/]* ) ;;
  44034. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  44035. - esac
  44036. -_ACEOF
  44037. -
  44038. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44039. -# If the template does not know about datarootdir, expand it.
  44040. -# FIXME: This hack should be removed a few years after 2.60.
  44041. -ac_datarootdir_hack=; ac_datarootdir_seen=
  44042. -
  44043. -ac_sed_dataroot='
  44044. -/datarootdir/ {
  44045. - p
  44046. - q
  44047. -}
  44048. -/@datadir@/p
  44049. -/@docdir@/p
  44050. -/@infodir@/p
  44051. -/@localedir@/p
  44052. -/@mandir@/p
  44053. -'
  44054. -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  44055. -*datarootdir*) ac_datarootdir_seen=yes;;
  44056. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  44057. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  44058. -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  44059. -_ACEOF
  44060. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44061. - ac_datarootdir_hack='
  44062. - s&@datadir@&$datadir&g
  44063. - s&@docdir@&$docdir&g
  44064. - s&@infodir@&$infodir&g
  44065. - s&@localedir@&$localedir&g
  44066. - s&@mandir@&$mandir&g
  44067. - s&\\\${datarootdir}&$datarootdir&g' ;;
  44068. -esac
  44069. -_ACEOF
  44070. -
  44071. -# Neutralize VPATH when `$srcdir' = `.'.
  44072. -# Shell code in configure.ac might set extrasub.
  44073. -# FIXME: do we really want to maintain this feature?
  44074. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44075. -ac_sed_extra="$ac_vpsub
  44076. -$extrasub
  44077. -_ACEOF
  44078. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44079. -:t
  44080. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44081. -s|@configure_input@|$ac_sed_conf_input|;t t
  44082. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  44083. -s&@top_build_prefix@&$ac_top_build_prefix&;t t
  44084. -s&@srcdir@&$ac_srcdir&;t t
  44085. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  44086. -s&@top_srcdir@&$ac_top_srcdir&;t t
  44087. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  44088. -s&@builddir@&$ac_builddir&;t t
  44089. -s&@abs_builddir@&$ac_abs_builddir&;t t
  44090. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  44091. -s&@INSTALL@&$ac_INSTALL&;t t
  44092. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  44093. -$ac_datarootdir_hack
  44094. -"
  44095. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  44096. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44097. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44098. - { (exit 1); exit 1; }; }
  44099. -
  44100. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  44101. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  44102. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  44103. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44104. -which seems to be undefined. Please make sure it is defined." >&5
  44105. -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44106. -which seems to be undefined. Please make sure it is defined." >&2;}
  44107. -
  44108. - rm -f "$tmp/stdin"
  44109. - case $ac_file in
  44110. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  44111. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  44112. - esac \
  44113. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44114. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44115. - { (exit 1); exit 1; }; }
  44116. - ;;
  44117. - :H)
  44118. - #
  44119. - # CONFIG_HEADER
  44120. - #
  44121. - if test x"$ac_file" != x-; then
  44122. - {
  44123. - $as_echo "/* $configure_input */" \
  44124. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  44125. - } >"$tmp/config.h" \
  44126. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44127. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44128. - { (exit 1); exit 1; }; }
  44129. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  44130. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44131. -$as_echo "$as_me: $ac_file is unchanged" >&6;}
  44132. - else
  44133. - rm -f "$ac_file"
  44134. - mv "$tmp/config.h" "$ac_file" \
  44135. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  44136. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  44137. - { (exit 1); exit 1; }; }
  44138. - fi
  44139. - else
  44140. - $as_echo "/* $configure_input */" \
  44141. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  44142. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  44143. -$as_echo "$as_me: error: could not create -" >&2;}
  44144. - { (exit 1); exit 1; }; }
  44145. - fi
  44146. -# Compute "$ac_file"'s index in $config_headers.
  44147. -_am_arg="$ac_file"
  44148. -_am_stamp_count=1
  44149. -for _am_header in $config_headers :; do
  44150. - case $_am_header in
  44151. - $_am_arg | $_am_arg:* )
  44152. - break ;;
  44153. - * )
  44154. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44155. - esac
  44156. -done
  44157. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  44158. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44159. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  44160. - X"$_am_arg" : 'X\(//\)$' \| \
  44161. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  44162. -$as_echo X"$_am_arg" |
  44163. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44164. - s//\1/
  44165. - q
  44166. - }
  44167. - /^X\(\/\/\)[^/].*/{
  44168. - s//\1/
  44169. - q
  44170. - }
  44171. - /^X\(\/\/\)$/{
  44172. - s//\1/
  44173. - q
  44174. - }
  44175. - /^X\(\/\).*/{
  44176. - s//\1/
  44177. - q
  44178. - }
  44179. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44180. - ;;
  44181. -
  44182. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  44183. -$as_echo "$as_me: executing $ac_file commands" >&6;}
  44184. - ;;
  44185. - esac
  44186. -
  44187. -
  44188. - case $ac_file$ac_mode in
  44189. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  44190. - # Autoconf 2.62 quotes --file arguments for eval, but not when files
  44191. - # are listed without --file. Let's play safe and only enable the eval
  44192. - # if we detect the quoting.
  44193. - case $CONFIG_FILES in
  44194. - *\'*) eval set x "$CONFIG_FILES" ;;
  44195. - *) set x $CONFIG_FILES ;;
  44196. - esac
  44197. - shift
  44198. - for mf
  44199. - do
  44200. - # Strip MF so we end up with the name of the file.
  44201. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44202. - # Check whether this is an Automake generated Makefile or not.
  44203. - # We used to match only the files named `Makefile.in', but
  44204. - # some people rename them; so instead we look at the file content.
  44205. - # Grep'ing the first line is not enough: some people post-process
  44206. - # each Makefile.in and add a new line on top of each file to say so.
  44207. - # Grep'ing the whole file is not good either: AIX grep has a line
  44208. - # limit of 2048, but all sed's we know have understand at least 4000.
  44209. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  44210. - dirpart=`$as_dirname -- "$mf" ||
  44211. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44212. - X"$mf" : 'X\(//\)[^/]' \| \
  44213. - X"$mf" : 'X\(//\)$' \| \
  44214. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44215. -$as_echo X"$mf" |
  44216. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44217. - s//\1/
  44218. - q
  44219. - }
  44220. - /^X\(\/\/\)[^/].*/{
  44221. - s//\1/
  44222. - q
  44223. - }
  44224. - /^X\(\/\/\)$/{
  44225. - s//\1/
  44226. - q
  44227. - }
  44228. - /^X\(\/\).*/{
  44229. - s//\1/
  44230. - q
  44231. - }
  44232. - s/.*/./; q'`
  44233. - else
  44234. - continue
  44235. - fi
  44236. - # Extract the definition of DEPDIR, am__include, and am__quote
  44237. - # from the Makefile without running `make'.
  44238. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44239. - test -z "$DEPDIR" && continue
  44240. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44241. - test -z "am__include" && continue
  44242. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44243. - # When using ansi2knr, U may be empty or an underscore; expand it
  44244. - U=`sed -n 's/^U = //p' < "$mf"`
  44245. - # Find all dependency output files, they are included files with
  44246. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44247. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44248. - # expansion.
  44249. - for file in `sed -n "
  44250. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44251. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44252. - # Make sure the directory exists.
  44253. - test -f "$dirpart/$file" && continue
  44254. - fdir=`$as_dirname -- "$file" ||
  44255. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44256. - X"$file" : 'X\(//\)[^/]' \| \
  44257. - X"$file" : 'X\(//\)$' \| \
  44258. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  44259. -$as_echo X"$file" |
  44260. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44261. - s//\1/
  44262. - q
  44263. - }
  44264. - /^X\(\/\/\)[^/].*/{
  44265. - s//\1/
  44266. - q
  44267. - }
  44268. - /^X\(\/\/\)$/{
  44269. - s//\1/
  44270. - q
  44271. - }
  44272. - /^X\(\/\).*/{
  44273. - s//\1/
  44274. - q
  44275. - }
  44276. - s/.*/./; q'`
  44277. - { as_dir=$dirpart/$fdir
  44278. - case $as_dir in #(
  44279. - -*) as_dir=./$as_dir;;
  44280. - esac
  44281. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  44282. - as_dirs=
  44283. - while :; do
  44284. - case $as_dir in #(
  44285. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  44286. - *) as_qdir=$as_dir;;
  44287. - esac
  44288. - as_dirs="'$as_qdir' $as_dirs"
  44289. - as_dir=`$as_dirname -- "$as_dir" ||
  44290. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44291. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44292. - X"$as_dir" : 'X\(//\)$' \| \
  44293. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  44294. -$as_echo X"$as_dir" |
  44295. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44296. - s//\1/
  44297. - q
  44298. - }
  44299. - /^X\(\/\/\)[^/].*/{
  44300. - s//\1/
  44301. - q
  44302. - }
  44303. - /^X\(\/\/\)$/{
  44304. - s//\1/
  44305. - q
  44306. - }
  44307. - /^X\(\/\).*/{
  44308. - s//\1/
  44309. - q
  44310. - }
  44311. - s/.*/./; q'`
  44312. - test -d "$as_dir" && break
  44313. - done
  44314. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  44315. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  44316. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  44317. - { (exit 1); exit 1; }; }; }
  44318. - # echo "creating $dirpart/$file"
  44319. - echo '# dummy' > "$dirpart/$file"
  44320. - done
  44321. - done
  44322. -}
  44323. ;;
  44324. esac
  44325. done # for ac_tag
  44326. -{ (exit 0); exit 0; }
  44327. +as_fn_exit 0
  44328. _ACEOF
  44329. -chmod +x $CONFIG_STATUS
  44330. ac_clean_files=$ac_clean_files_save
  44331. test $ac_write_fail = 0 ||
  44332. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  44333. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  44334. - { (exit 1); exit 1; }; }
  44335. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  44336. # configure is writing to config.log, and then calls config.status.
  44337. @@ -22478,10 +13366,10 @@
  44338. exec 5>>config.log
  44339. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  44340. # would make configure fail if this is the last instruction.
  44341. - $ac_cs_success || { (exit 1); exit 1; }
  44342. + $ac_cs_success || as_fn_exit $?
  44343. fi
  44344. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  44345. - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44346. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44347. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  44348. fi
  44349. diff -Nur libxkbfile-1.0.6.orig/INSTALL libxkbfile-1.0.6/INSTALL
  44350. --- libxkbfile-1.0.6.orig/INSTALL 2006-07-11 20:06:35.000000000 +0200
  44351. +++ libxkbfile-1.0.6/INSTALL 2011-02-19 11:59:15.424803975 +0100
  44352. @@ -0,0 +1,365 @@
  44353. +Installation Instructions
  44354. +*************************
  44355. +
  44356. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  44357. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  44358. +
  44359. + Copying and distribution of this file, with or without modification,
  44360. +are permitted in any medium without royalty provided the copyright
  44361. +notice and this notice are preserved. This file is offered as-is,
  44362. +without warranty of any kind.
  44363. +
  44364. +Basic Installation
  44365. +==================
  44366. +
  44367. + Briefly, the shell commands `./configure; make; make install' should
  44368. +configure, build, and install this package. The following
  44369. +more-detailed instructions are generic; see the `README' file for
  44370. +instructions specific to this package. Some packages provide this
  44371. +`INSTALL' file but do not implement all of the features documented
  44372. +below. The lack of an optional feature in a given package is not
  44373. +necessarily a bug. More recommendations for GNU packages can be found
  44374. +in *note Makefile Conventions: (standards)Makefile Conventions.
  44375. +
  44376. + The `configure' shell script attempts to guess correct values for
  44377. +various system-dependent variables used during compilation. It uses
  44378. +those values to create a `Makefile' in each directory of the package.
  44379. +It may also create one or more `.h' files containing system-dependent
  44380. +definitions. Finally, it creates a shell script `config.status' that
  44381. +you can run in the future to recreate the current configuration, and a
  44382. +file `config.log' containing compiler output (useful mainly for
  44383. +debugging `configure').
  44384. +
  44385. + It can also use an optional file (typically called `config.cache'
  44386. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  44387. +the results of its tests to speed up reconfiguring. Caching is
  44388. +disabled by default to prevent problems with accidental use of stale
  44389. +cache files.
  44390. +
  44391. + If you need to do unusual things to compile the package, please try
  44392. +to figure out how `configure' could check whether to do them, and mail
  44393. +diffs or instructions to the address given in the `README' so they can
  44394. +be considered for the next release. If you are using the cache, and at
  44395. +some point `config.cache' contains results you don't want to keep, you
  44396. +may remove or edit it.
  44397. +
  44398. + The file `configure.ac' (or `configure.in') is used to create
  44399. +`configure' by a program called `autoconf'. You need `configure.ac' if
  44400. +you want to change it or regenerate `configure' using a newer version
  44401. +of `autoconf'.
  44402. +
  44403. + The simplest way to compile this package is:
  44404. +
  44405. + 1. `cd' to the directory containing the package's source code and type
  44406. + `./configure' to configure the package for your system.
  44407. +
  44408. + Running `configure' might take a while. While running, it prints
  44409. + some messages telling which features it is checking for.
  44410. +
  44411. + 2. Type `make' to compile the package.
  44412. +
  44413. + 3. Optionally, type `make check' to run any self-tests that come with
  44414. + the package, generally using the just-built uninstalled binaries.
  44415. +
  44416. + 4. Type `make install' to install the programs and any data files and
  44417. + documentation. When installing into a prefix owned by root, it is
  44418. + recommended that the package be configured and built as a regular
  44419. + user, and only the `make install' phase executed with root
  44420. + privileges.
  44421. +
  44422. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  44423. + this time using the binaries in their final installed location.
  44424. + This target does not install anything. Running this target as a
  44425. + regular user, particularly if the prior `make install' required
  44426. + root privileges, verifies that the installation completed
  44427. + correctly.
  44428. +
  44429. + 6. You can remove the program binaries and object files from the
  44430. + source code directory by typing `make clean'. To also remove the
  44431. + files that `configure' created (so you can compile the package for
  44432. + a different kind of computer), type `make distclean'. There is
  44433. + also a `make maintainer-clean' target, but that is intended mainly
  44434. + for the package's developers. If you use it, you may have to get
  44435. + all sorts of other programs in order to regenerate files that came
  44436. + with the distribution.
  44437. +
  44438. + 7. Often, you can also type `make uninstall' to remove the installed
  44439. + files again. In practice, not all packages have tested that
  44440. + uninstallation works correctly, even though it is required by the
  44441. + GNU Coding Standards.
  44442. +
  44443. + 8. Some packages, particularly those that use Automake, provide `make
  44444. + distcheck', which can by used by developers to test that all other
  44445. + targets like `make install' and `make uninstall' work correctly.
  44446. + This target is generally not run by end users.
  44447. +
  44448. +Compilers and Options
  44449. +=====================
  44450. +
  44451. + Some systems require unusual options for compilation or linking that
  44452. +the `configure' script does not know about. Run `./configure --help'
  44453. +for details on some of the pertinent environment variables.
  44454. +
  44455. + You can give `configure' initial values for configuration parameters
  44456. +by setting variables in the command line or in the environment. Here
  44457. +is an example:
  44458. +
  44459. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  44460. +
  44461. + *Note Defining Variables::, for more details.
  44462. +
  44463. +Compiling For Multiple Architectures
  44464. +====================================
  44465. +
  44466. + You can compile the package for more than one kind of computer at the
  44467. +same time, by placing the object files for each architecture in their
  44468. +own directory. To do this, you can use GNU `make'. `cd' to the
  44469. +directory where you want the object files and executables to go and run
  44470. +the `configure' script. `configure' automatically checks for the
  44471. +source code in the directory that `configure' is in and in `..'. This
  44472. +is known as a "VPATH" build.
  44473. +
  44474. + With a non-GNU `make', it is safer to compile the package for one
  44475. +architecture at a time in the source code directory. After you have
  44476. +installed the package for one architecture, use `make distclean' before
  44477. +reconfiguring for another architecture.
  44478. +
  44479. + On MacOS X 10.5 and later systems, you can create libraries and
  44480. +executables that work on multiple system types--known as "fat" or
  44481. +"universal" binaries--by specifying multiple `-arch' options to the
  44482. +compiler but only a single `-arch' option to the preprocessor. Like
  44483. +this:
  44484. +
  44485. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  44486. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  44487. + CPP="gcc -E" CXXCPP="g++ -E"
  44488. +
  44489. + This is not guaranteed to produce working output in all cases, you
  44490. +may have to build one architecture at a time and combine the results
  44491. +using the `lipo' tool if you have problems.
  44492. +
  44493. +Installation Names
  44494. +==================
  44495. +
  44496. + By default, `make install' installs the package's commands under
  44497. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  44498. +can specify an installation prefix other than `/usr/local' by giving
  44499. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  44500. +absolute file name.
  44501. +
  44502. + You can specify separate installation prefixes for
  44503. +architecture-specific files and architecture-independent files. If you
  44504. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  44505. +PREFIX as the prefix for installing programs and libraries.
  44506. +Documentation and other data files still use the regular prefix.
  44507. +
  44508. + In addition, if you use an unusual directory layout you can give
  44509. +options like `--bindir=DIR' to specify different values for particular
  44510. +kinds of files. Run `configure --help' for a list of the directories
  44511. +you can set and what kinds of files go in them. In general, the
  44512. +default for these options is expressed in terms of `${prefix}', so that
  44513. +specifying just `--prefix' will affect all of the other directory
  44514. +specifications that were not explicitly provided.
  44515. +
  44516. + The most portable way to affect installation locations is to pass the
  44517. +correct locations to `configure'; however, many packages provide one or
  44518. +both of the following shortcuts of passing variable assignments to the
  44519. +`make install' command line to change installation locations without
  44520. +having to reconfigure or recompile.
  44521. +
  44522. + The first method involves providing an override variable for each
  44523. +affected directory. For example, `make install
  44524. +prefix=/alternate/directory' will choose an alternate location for all
  44525. +directory configuration variables that were expressed in terms of
  44526. +`${prefix}'. Any directories that were specified during `configure',
  44527. +but not in terms of `${prefix}', must each be overridden at install
  44528. +time for the entire installation to be relocated. The approach of
  44529. +makefile variable overrides for each directory variable is required by
  44530. +the GNU Coding Standards, and ideally causes no recompilation.
  44531. +However, some platforms have known limitations with the semantics of
  44532. +shared libraries that end up requiring recompilation when using this
  44533. +method, particularly noticeable in packages that use GNU Libtool.
  44534. +
  44535. + The second method involves providing the `DESTDIR' variable. For
  44536. +example, `make install DESTDIR=/alternate/directory' will prepend
  44537. +`/alternate/directory' before all installation names. The approach of
  44538. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  44539. +does not work on platforms that have drive letters. On the other hand,
  44540. +it does better at avoiding recompilation issues, and works well even
  44541. +when some directory options were not specified in terms of `${prefix}'
  44542. +at `configure' time.
  44543. +
  44544. +Optional Features
  44545. +=================
  44546. +
  44547. + If the package supports it, you can cause programs to be installed
  44548. +with an extra prefix or suffix on their names by giving `configure' the
  44549. +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  44550. +
  44551. + Some packages pay attention to `--enable-FEATURE' options to
  44552. +`configure', where FEATURE indicates an optional part of the package.
  44553. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  44554. +is something like `gnu-as' or `x' (for the X Window System). The
  44555. +`README' should mention any `--enable-' and `--with-' options that the
  44556. +package recognizes.
  44557. +
  44558. + For packages that use the X Window System, `configure' can usually
  44559. +find the X include and library files automatically, but if it doesn't,
  44560. +you can use the `configure' options `--x-includes=DIR' and
  44561. +`--x-libraries=DIR' to specify their locations.
  44562. +
  44563. + Some packages offer the ability to configure how verbose the
  44564. +execution of `make' will be. For these packages, running `./configure
  44565. +--enable-silent-rules' sets the default to minimal output, which can be
  44566. +overridden with `make V=1'; while running `./configure
  44567. +--disable-silent-rules' sets the default to verbose, which can be
  44568. +overridden with `make V=0'.
  44569. +
  44570. +Particular systems
  44571. +==================
  44572. +
  44573. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  44574. +CC is not installed, it is recommended to use the following options in
  44575. +order to use an ANSI C compiler:
  44576. +
  44577. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  44578. +
  44579. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  44580. +
  44581. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  44582. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  44583. +a workaround. If GNU CC is not installed, it is therefore recommended
  44584. +to try
  44585. +
  44586. + ./configure CC="cc"
  44587. +
  44588. +and if that doesn't work, try
  44589. +
  44590. + ./configure CC="cc -nodtk"
  44591. +
  44592. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  44593. +directory contains several dysfunctional programs; working variants of
  44594. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  44595. +in your `PATH', put it _after_ `/usr/bin'.
  44596. +
  44597. + On Haiku, software installed for all users goes in `/boot/common',
  44598. +not `/usr/local'. It is recommended to use the following options:
  44599. +
  44600. + ./configure --prefix=/boot/common
  44601. +
  44602. +Specifying the System Type
  44603. +==========================
  44604. +
  44605. + There may be some features `configure' cannot figure out
  44606. +automatically, but needs to determine by the type of machine the package
  44607. +will run on. Usually, assuming the package is built to be run on the
  44608. +_same_ architectures, `configure' can figure that out, but if it prints
  44609. +a message saying it cannot guess the machine type, give it the
  44610. +`--build=TYPE' option. TYPE can either be a short name for the system
  44611. +type, such as `sun4', or a canonical name which has the form:
  44612. +
  44613. + CPU-COMPANY-SYSTEM
  44614. +
  44615. +where SYSTEM can have one of these forms:
  44616. +
  44617. + OS
  44618. + KERNEL-OS
  44619. +
  44620. + See the file `config.sub' for the possible values of each field. If
  44621. +`config.sub' isn't included in this package, then this package doesn't
  44622. +need to know the machine type.
  44623. +
  44624. + If you are _building_ compiler tools for cross-compiling, you should
  44625. +use the option `--target=TYPE' to select the type of system they will
  44626. +produce code for.
  44627. +
  44628. + If you want to _use_ a cross compiler, that generates code for a
  44629. +platform different from the build platform, you should specify the
  44630. +"host" platform (i.e., that on which the generated programs will
  44631. +eventually be run) with `--host=TYPE'.
  44632. +
  44633. +Sharing Defaults
  44634. +================
  44635. +
  44636. + If you want to set default values for `configure' scripts to share,
  44637. +you can create a site shell script called `config.site' that gives
  44638. +default values for variables like `CC', `cache_file', and `prefix'.
  44639. +`configure' looks for `PREFIX/share/config.site' if it exists, then
  44640. +`PREFIX/etc/config.site' if it exists. Or, you can set the
  44641. +`CONFIG_SITE' environment variable to the location of the site script.
  44642. +A warning: not all `configure' scripts look for a site script.
  44643. +
  44644. +Defining Variables
  44645. +==================
  44646. +
  44647. + Variables not defined in a site shell script can be set in the
  44648. +environment passed to `configure'. However, some packages may run
  44649. +configure again during the build, and the customized values of these
  44650. +variables may be lost. In order to avoid this problem, you should set
  44651. +them in the `configure' command line, using `VAR=value'. For example:
  44652. +
  44653. + ./configure CC=/usr/local2/bin/gcc
  44654. +
  44655. +causes the specified `gcc' to be used as the C compiler (unless it is
  44656. +overridden in the site shell script).
  44657. +
  44658. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  44659. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  44660. +
  44661. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  44662. +
  44663. +`configure' Invocation
  44664. +======================
  44665. +
  44666. + `configure' recognizes the following options to control how it
  44667. +operates.
  44668. +
  44669. +`--help'
  44670. +`-h'
  44671. + Print a summary of all of the options to `configure', and exit.
  44672. +
  44673. +`--help=short'
  44674. +`--help=recursive'
  44675. + Print a summary of the options unique to this package's
  44676. + `configure', and exit. The `short' variant lists options used
  44677. + only in the top level, while the `recursive' variant lists options
  44678. + also present in any nested packages.
  44679. +
  44680. +`--version'
  44681. +`-V'
  44682. + Print the version of Autoconf used to generate the `configure'
  44683. + script, and exit.
  44684. +
  44685. +`--cache-file=FILE'
  44686. + Enable the cache: use and save the results of the tests in FILE,
  44687. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  44688. + disable caching.
  44689. +
  44690. +`--config-cache'
  44691. +`-C'
  44692. + Alias for `--cache-file=config.cache'.
  44693. +
  44694. +`--quiet'
  44695. +`--silent'
  44696. +`-q'
  44697. + Do not print messages saying which checks are being made. To
  44698. + suppress all normal output, redirect it to `/dev/null' (any error
  44699. + messages will still be shown).
  44700. +
  44701. +`--srcdir=DIR'
  44702. + Look for the package's source code in directory DIR. Usually
  44703. + `configure' can determine that directory automatically.
  44704. +
  44705. +`--prefix=DIR'
  44706. + Use DIR as the installation prefix. *note Installation Names::
  44707. + for more details, including other options available for fine-tuning
  44708. + the installation locations.
  44709. +
  44710. +`--no-create'
  44711. +`-n'
  44712. + Run the configure checks, but stop before creating any output
  44713. + files.
  44714. +
  44715. +`configure' also accepts some other, not widely useful, options. Run
  44716. +`configure --help' for more details.
  44717. +
  44718. diff -Nur libxkbfile-1.0.6.orig/ltmain.sh libxkbfile-1.0.6/ltmain.sh
  44719. --- libxkbfile-1.0.6.orig/ltmain.sh 2009-09-11 16:54:52.000000000 +0200
  44720. +++ libxkbfile-1.0.6/ltmain.sh 2011-02-19 11:59:11.623555089 +0100
  44721. @@ -1,52 +1,83 @@
  44722. -# ltmain.sh - Provide generalized library-building support services.
  44723. -# NOTE: Changing this file will not affect anything until you rerun configure.
  44724. -#
  44725. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  44726. -# 2007, 2008 Free Software Foundation, Inc.
  44727. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  44728. -#
  44729. -# This program is free software; you can redistribute it and/or modify
  44730. +# Generated from ltmain.m4sh.
  44731. +
  44732. +# ltmain.sh (GNU libtool) 2.2.6b
  44733. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  44734. +
  44735. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  44736. +# This is free software; see the source for copying conditions. There is NO
  44737. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  44738. +
  44739. +# GNU Libtool is free software; you can redistribute it and/or modify
  44740. # it under the terms of the GNU General Public License as published by
  44741. # the Free Software Foundation; either version 2 of the License, or
  44742. # (at your option) any later version.
  44743. #
  44744. -# This program is distributed in the hope that it will be useful, but
  44745. +# As a special exception to the GNU General Public License,
  44746. +# if you distribute this file as part of a program or library that
  44747. +# is built using GNU Libtool, you may include this file under the
  44748. +# same distribution terms that you use for the rest of that program.
  44749. +#
  44750. +# GNU Libtool is distributed in the hope that it will be useful, but
  44751. # WITHOUT ANY WARRANTY; without even the implied warranty of
  44752. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  44753. # General Public License for more details.
  44754. #
  44755. # You should have received a copy of the GNU General Public License
  44756. -# along with this program; if not, write to the Free Software
  44757. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  44758. -#
  44759. -# As a special exception to the GNU General Public License, if you
  44760. -# distribute this file as part of a program that contains a
  44761. -# configuration script generated by Autoconf, you may include it under
  44762. -# the same distribution terms that you use for the rest of that program.
  44763. -
  44764. -basename="s,^.*/,,g"
  44765. -
  44766. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  44767. -# is ksh but when the shell is invoked as "sh" and the current value of
  44768. -# the _XPG environment variable is not equal to 1 (one), the special
  44769. -# positional parameter $0, within a function call, is the name of the
  44770. -# function.
  44771. -progpath="$0"
  44772. -
  44773. -# The name of this program:
  44774. -progname=`echo "$progpath" | $SED $basename`
  44775. -modename="$progname"
  44776. +# along with GNU Libtool; see the file COPYING. If not, a copy
  44777. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  44778. +# or obtained by writing to the Free Software Foundation, Inc.,
  44779. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  44780. -# Global variables:
  44781. -EXIT_SUCCESS=0
  44782. -EXIT_FAILURE=1
  44783. +# Usage: $progname [OPTION]... [MODE-ARG]...
  44784. +#
  44785. +# Provide generalized library-building support services.
  44786. +#
  44787. +# --config show all configuration variables
  44788. +# --debug enable verbose shell tracing
  44789. +# -n, --dry-run display commands without modifying any files
  44790. +# --features display basic configuration information and exit
  44791. +# --mode=MODE use operation mode MODE
  44792. +# --preserve-dup-deps don't remove duplicate dependency libraries
  44793. +# --quiet, --silent don't print informational messages
  44794. +# --tag=TAG use configuration variables from tag TAG
  44795. +# -v, --verbose print informational messages (default)
  44796. +# --version print version information
  44797. +# -h, --help print short or long help message
  44798. +#
  44799. +# MODE must be one of the following:
  44800. +#
  44801. +# clean remove files from the build directory
  44802. +# compile compile a source file into a libtool object
  44803. +# execute automatically set library path, then run a program
  44804. +# finish complete the installation of libtool libraries
  44805. +# install install libraries or executables
  44806. +# link create a library or an executable
  44807. +# uninstall remove libraries from an installed directory
  44808. +#
  44809. +# MODE-ARGS vary depending on the MODE.
  44810. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  44811. +#
  44812. +# When reporting a bug, please describe a test case to reproduce it and
  44813. +# include the following information:
  44814. +#
  44815. +# host-triplet: $host
  44816. +# shell: $SHELL
  44817. +# compiler: $LTCC
  44818. +# compiler flags: $LTCFLAGS
  44819. +# linker: $LD (gnu? $with_gnu_ld)
  44820. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  44821. +# automake: $automake_version
  44822. +# autoconf: $autoconf_version
  44823. +#
  44824. +# Report bugs to <bug-libtool@gnu.org>.
  44825. PROGRAM=ltmain.sh
  44826. PACKAGE=libtool
  44827. -VERSION=1.5.26
  44828. -TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
  44829. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  44830. +TIMESTAMP=""
  44831. +package_revision=1.3017
  44832. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  44833. +# Be Bourne compatible
  44834. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  44835. emulate sh
  44836. NULLCMD=:
  44837. @@ -60,104 +91,261 @@
  44838. BIN_SH=xpg4; export BIN_SH # for Tru64
  44839. DUALCASE=1; export DUALCASE # for MKS sh
  44840. -# Check that we have a working $echo.
  44841. -if test "X$1" = X--no-reexec; then
  44842. - # Discard the --no-reexec flag, and continue.
  44843. - shift
  44844. -elif test "X$1" = X--fallback-echo; then
  44845. - # Avoid inline document here, it may be left over
  44846. - :
  44847. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  44848. - # Yippee, $echo works!
  44849. - :
  44850. -else
  44851. - # Restart under the correct shell, and then maybe $echo will work.
  44852. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  44853. -fi
  44854. -
  44855. -if test "X$1" = X--fallback-echo; then
  44856. - # used as fallback echo
  44857. - shift
  44858. - cat <<EOF
  44859. -$*
  44860. -EOF
  44861. - exit $EXIT_SUCCESS
  44862. -fi
  44863. -
  44864. -default_mode=
  44865. -help="Try \`$progname --help' for more information."
  44866. -magic="%%%MAGIC variable%%%"
  44867. -mkdir="mkdir"
  44868. -mv="mv -f"
  44869. -rm="rm -f"
  44870. -
  44871. -# Sed substitution that helps us do robust quoting. It backslashifies
  44872. -# metacharacters that are still active within double-quoted strings.
  44873. -Xsed="${SED}"' -e 1s/^X//'
  44874. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  44875. -# test EBCDIC or ASCII
  44876. -case `echo X|tr X '\101'` in
  44877. - A) # ASCII based system
  44878. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  44879. - SP2NL='tr \040 \012'
  44880. - NL2SP='tr \015\012 \040\040'
  44881. - ;;
  44882. - *) # EBCDIC based system
  44883. - SP2NL='tr \100 \n'
  44884. - NL2SP='tr \r\n \100\100'
  44885. - ;;
  44886. -esac
  44887. -
  44888. -# NLS nuisances.
  44889. +# NLS nuisances: We save the old values to restore during execute mode.
  44890. # Only set LANG and LC_ALL to C if already set.
  44891. # These must not be set unconditionally because not all systems understand
  44892. # e.g. LANG=C (notably SCO).
  44893. -# We save the old values to restore during execute mode.
  44894. -lt_env=
  44895. +lt_user_locale=
  44896. +lt_safe_locale=
  44897. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  44898. do
  44899. eval "if test \"\${$lt_var+set}\" = set; then
  44900. - save_$lt_var=\$$lt_var
  44901. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  44902. - $lt_var=C
  44903. + save_$lt_var=\$$lt_var
  44904. + $lt_var=C
  44905. export $lt_var
  44906. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  44907. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  44908. fi"
  44909. done
  44910. -if test -n "$lt_env"; then
  44911. - lt_env="env $lt_env"
  44912. -fi
  44913. +$lt_unset CDPATH
  44914. +
  44915. +
  44916. +
  44917. +
  44918. +
  44919. +: ${CP="cp -f"}
  44920. +: ${ECHO="echo"}
  44921. +: ${EGREP="/bin/grep -E"}
  44922. +: ${FGREP="/bin/grep -F"}
  44923. +: ${GREP="/bin/grep"}
  44924. +: ${LN_S="ln -s"}
  44925. +: ${MAKE="make"}
  44926. +: ${MKDIR="mkdir"}
  44927. +: ${MV="mv -f"}
  44928. +: ${RM="rm -f"}
  44929. +: ${SED="/bin/sed"}
  44930. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  44931. +: ${Xsed="$SED -e 1s/^X//"}
  44932. +
  44933. +# Global variables:
  44934. +EXIT_SUCCESS=0
  44935. +EXIT_FAILURE=1
  44936. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  44937. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  44938. +
  44939. +exit_status=$EXIT_SUCCESS
  44940. # Make sure IFS has a sensible default
  44941. lt_nl='
  44942. '
  44943. IFS=" $lt_nl"
  44944. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  44945. - $echo "$modename: not configured to build any kind of library" 1>&2
  44946. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  44947. - exit $EXIT_FAILURE
  44948. -fi
  44949. +dirname="s,/[^/]*$,,"
  44950. +basename="s,^.*/,,"
  44951. -# Global variables.
  44952. -mode=$default_mode
  44953. -nonopt=
  44954. -prev=
  44955. -prevopt=
  44956. -run=
  44957. -show="$echo"
  44958. -show_help=
  44959. -execute_dlfiles=
  44960. -duplicate_deps=no
  44961. -preserve_args=
  44962. -lo2o="s/\\.lo\$/.${objext}/"
  44963. -o2lo="s/\\.${objext}\$/.lo/"
  44964. -extracted_archives=
  44965. -extracted_serial=0
  44966. +# func_dirname_and_basename file append nondir_replacement
  44967. +# perform func_basename and func_dirname in a single function
  44968. +# call:
  44969. +# dirname: Compute the dirname of FILE. If nonempty,
  44970. +# add APPEND to the result, otherwise set result
  44971. +# to NONDIR_REPLACEMENT.
  44972. +# value returned in "$func_dirname_result"
  44973. +# basename: Compute filename of FILE.
  44974. +# value retuned in "$func_basename_result"
  44975. +# Implementation must be kept synchronized with func_dirname
  44976. +# and func_basename. For efficiency, we do not delegate to
  44977. +# those functions but instead duplicate the functionality here.
  44978. +func_dirname_and_basename ()
  44979. +{
  44980. + # Extract subdirectory from the argument.
  44981. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  44982. + if test "X$func_dirname_result" = "X${1}"; then
  44983. + func_dirname_result="${3}"
  44984. + else
  44985. + func_dirname_result="$func_dirname_result${2}"
  44986. + fi
  44987. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  44988. +}
  44989. +
  44990. +# Generated shell functions inserted here.
  44991. +
  44992. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  44993. +# is ksh but when the shell is invoked as "sh" and the current value of
  44994. +# the _XPG environment variable is not equal to 1 (one), the special
  44995. +# positional parameter $0, within a function call, is the name of the
  44996. +# function.
  44997. +progpath="$0"
  44998. +
  44999. +# The name of this program:
  45000. +# In the unlikely event $progname began with a '-', it would play havoc with
  45001. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  45002. +func_dirname_and_basename "$progpath"
  45003. +progname=$func_basename_result
  45004. +case $progname in
  45005. + -*) progname=./$progname ;;
  45006. +esac
  45007. +
  45008. +# Make sure we have an absolute path for reexecution:
  45009. +case $progpath in
  45010. + [\\/]*|[A-Za-z]:\\*) ;;
  45011. + *[\\/]*)
  45012. + progdir=$func_dirname_result
  45013. + progdir=`cd "$progdir" && pwd`
  45014. + progpath="$progdir/$progname"
  45015. + ;;
  45016. + *)
  45017. + save_IFS="$IFS"
  45018. + IFS=:
  45019. + for progdir in $PATH; do
  45020. + IFS="$save_IFS"
  45021. + test -x "$progdir/$progname" && break
  45022. + done
  45023. + IFS="$save_IFS"
  45024. + test -n "$progdir" || progdir=`pwd`
  45025. + progpath="$progdir/$progname"
  45026. + ;;
  45027. +esac
  45028. +
  45029. +# Sed substitution that helps us do robust quoting. It backslashifies
  45030. +# metacharacters that are still active within double-quoted strings.
  45031. +Xsed="${SED}"' -e 1s/^X//'
  45032. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  45033. +
  45034. +# Same as above, but do not quote variable references.
  45035. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  45036. +
  45037. +# Re-`\' parameter expansions in output of double_quote_subst that were
  45038. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  45039. +# in input to double_quote_subst, that '$' was protected from expansion.
  45040. +# Since each input `\' is now two `\'s, look for any number of runs of
  45041. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  45042. +bs='\\'
  45043. +bs2='\\\\'
  45044. +bs4='\\\\\\\\'
  45045. +dollar='\$'
  45046. +sed_double_backslash="\
  45047. + s/$bs4/&\\
  45048. +/g
  45049. + s/^$bs2$dollar/$bs&/
  45050. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  45051. + s/\n//g"
  45052. +
  45053. +# Standard options:
  45054. +opt_dry_run=false
  45055. +opt_help=false
  45056. +opt_quiet=false
  45057. +opt_verbose=false
  45058. +opt_warning=:
  45059. +
  45060. +# func_echo arg...
  45061. +# Echo program name prefixed message, along with the current mode
  45062. +# name if it has been set yet.
  45063. +func_echo ()
  45064. +{
  45065. + $ECHO "$progname${mode+: }$mode: $*"
  45066. +}
  45067. +
  45068. +# func_verbose arg...
  45069. +# Echo program name prefixed message in verbose mode only.
  45070. +func_verbose ()
  45071. +{
  45072. + $opt_verbose && func_echo ${1+"$@"}
  45073. +
  45074. + # A bug in bash halts the script if the last line of a function
  45075. + # fails when set -e is in force, so we need another command to
  45076. + # work around that:
  45077. + :
  45078. +}
  45079. +
  45080. +# func_error arg...
  45081. +# Echo program name prefixed message to standard error.
  45082. +func_error ()
  45083. +{
  45084. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  45085. +}
  45086. +
  45087. +# func_warning arg...
  45088. +# Echo program name prefixed warning message to standard error.
  45089. +func_warning ()
  45090. +{
  45091. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  45092. +
  45093. + # bash bug again:
  45094. + :
  45095. +}
  45096. +
  45097. +# func_fatal_error arg...
  45098. +# Echo program name prefixed message to standard error, and exit.
  45099. +func_fatal_error ()
  45100. +{
  45101. + func_error ${1+"$@"}
  45102. + exit $EXIT_FAILURE
  45103. +}
  45104. +
  45105. +# func_fatal_help arg...
  45106. +# Echo program name prefixed message to standard error, followed by
  45107. +# a help hint, and exit.
  45108. +func_fatal_help ()
  45109. +{
  45110. + func_error ${1+"$@"}
  45111. + func_fatal_error "$help"
  45112. +}
  45113. +help="Try \`$progname --help' for more information." ## default
  45114. +
  45115. +
  45116. +# func_grep expression filename
  45117. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  45118. +func_grep ()
  45119. +{
  45120. + $GREP "$1" "$2" >/dev/null 2>&1
  45121. +}
  45122. +
  45123. +
  45124. +# func_mkdir_p directory-path
  45125. +# Make sure the entire path to DIRECTORY-PATH is available.
  45126. +func_mkdir_p ()
  45127. +{
  45128. + my_directory_path="$1"
  45129. + my_dir_list=
  45130. +
  45131. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  45132. +
  45133. + # Protect directory names starting with `-'
  45134. + case $my_directory_path in
  45135. + -*) my_directory_path="./$my_directory_path" ;;
  45136. + esac
  45137. +
  45138. + # While some portion of DIR does not yet exist...
  45139. + while test ! -d "$my_directory_path"; do
  45140. + # ...make a list in topmost first order. Use a colon delimited
  45141. + # list incase some portion of path contains whitespace.
  45142. + my_dir_list="$my_directory_path:$my_dir_list"
  45143. +
  45144. + # If the last portion added has no slash in it, the list is done
  45145. + case $my_directory_path in */*) ;; *) break ;; esac
  45146. +
  45147. + # ...otherwise throw away the child directory and loop
  45148. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  45149. + done
  45150. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  45151. +
  45152. + save_mkdir_p_IFS="$IFS"; IFS=':'
  45153. + for my_dir in $my_dir_list; do
  45154. + IFS="$save_mkdir_p_IFS"
  45155. + # mkdir can fail with a `File exist' error if two processes
  45156. + # try to create one of the directories concurrently. Don't
  45157. + # stop in that case!
  45158. + $MKDIR "$my_dir" 2>/dev/null || :
  45159. + done
  45160. + IFS="$save_mkdir_p_IFS"
  45161. +
  45162. + # Bail out if we (or some other process) failed to create a directory.
  45163. + test -d "$my_directory_path" || \
  45164. + func_fatal_error "Failed to create \`$1'"
  45165. + fi
  45166. +}
  45167. -#####################################
  45168. -# Shell function definitions:
  45169. -# This seems to be the best place for them
  45170. # func_mktempdir [string]
  45171. # Make a temporary directory that won't clash with other running
  45172. @@ -167,7 +355,7 @@
  45173. {
  45174. my_template="${TMPDIR-/tmp}/${1-$progname}"
  45175. - if test "$run" = ":"; then
  45176. + if test "$opt_dry_run" = ":"; then
  45177. # Return a directory name, but don't create it in dry-run mode
  45178. my_tmpdir="${my_template}-$$"
  45179. else
  45180. @@ -176,526 +364,787 @@
  45181. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  45182. if test ! -d "$my_tmpdir"; then
  45183. - # Failing that, at least try and use $RANDOM to avoid a race
  45184. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  45185. + # Failing that, at least try and use $RANDOM to avoid a race
  45186. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  45187. - save_mktempdir_umask=`umask`
  45188. - umask 0077
  45189. - $mkdir "$my_tmpdir"
  45190. - umask $save_mktempdir_umask
  45191. + save_mktempdir_umask=`umask`
  45192. + umask 0077
  45193. + $MKDIR "$my_tmpdir"
  45194. + umask $save_mktempdir_umask
  45195. fi
  45196. # If we're not in dry-run mode, bomb out on failure
  45197. - test -d "$my_tmpdir" || {
  45198. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  45199. - exit $EXIT_FAILURE
  45200. - }
  45201. + test -d "$my_tmpdir" || \
  45202. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  45203. fi
  45204. - $echo "X$my_tmpdir" | $Xsed
  45205. + $ECHO "X$my_tmpdir" | $Xsed
  45206. }
  45207. -# func_win32_libid arg
  45208. -# return the library type of file 'arg'
  45209. -#
  45210. -# Need a lot of goo to handle *both* DLLs and import libs
  45211. -# Has to be a shell function in order to 'eat' the argument
  45212. -# that is supplied when $file_magic_command is called.
  45213. -func_win32_libid ()
  45214. +# func_quote_for_eval arg
  45215. +# Aesthetically quote ARG to be evaled later.
  45216. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  45217. +# is double-quoted, suitable for a subsequent eval, whereas
  45218. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  45219. +# which are still active within double quotes backslashified.
  45220. +func_quote_for_eval ()
  45221. {
  45222. - win32_libid_type="unknown"
  45223. - win32_fileres=`file -L $1 2>/dev/null`
  45224. - case $win32_fileres in
  45225. - *ar\ archive\ import\ library*) # definitely import
  45226. - win32_libid_type="x86 archive import"
  45227. - ;;
  45228. - *ar\ archive*) # could be an import, or static
  45229. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  45230. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  45231. - win32_nmres=`eval $NM -f posix -A $1 | \
  45232. - $SED -n -e '1,100{
  45233. - / I /{
  45234. - s,.*,import,
  45235. - p
  45236. - q
  45237. - }
  45238. - }'`
  45239. - case $win32_nmres in
  45240. - import*) win32_libid_type="x86 archive import";;
  45241. - *) win32_libid_type="x86 archive static";;
  45242. - esac
  45243. - fi
  45244. - ;;
  45245. - *DLL*)
  45246. - win32_libid_type="x86 DLL"
  45247. - ;;
  45248. - *executable*) # but shell scripts are "executable" too...
  45249. - case $win32_fileres in
  45250. - *MS\ Windows\ PE\ Intel*)
  45251. - win32_libid_type="x86 DLL"
  45252. - ;;
  45253. + case $1 in
  45254. + *[\\\`\"\$]*)
  45255. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  45256. + *)
  45257. + func_quote_for_eval_unquoted_result="$1" ;;
  45258. + esac
  45259. +
  45260. + case $func_quote_for_eval_unquoted_result in
  45261. + # Double-quote args containing shell metacharacters to delay
  45262. + # word splitting, command substitution and and variable
  45263. + # expansion for a subsequent eval.
  45264. + # Many Bourne shells cannot handle close brackets correctly
  45265. + # in scan sets, so we specify it separately.
  45266. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45267. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  45268. + ;;
  45269. + *)
  45270. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  45271. esac
  45272. - ;;
  45273. - esac
  45274. - $echo $win32_libid_type
  45275. }
  45276. -# func_infer_tag arg
  45277. -# Infer tagged configuration to use if any are available and
  45278. -# if one wasn't chosen via the "--tag" command line option.
  45279. -# Only attempt this if the compiler in the base compile
  45280. -# command doesn't match the default compiler.
  45281. -# arg is usually of the form 'gcc ...'
  45282. -func_infer_tag ()
  45283. +# func_quote_for_expand arg
  45284. +# Aesthetically quote ARG to be evaled later; same as above,
  45285. +# but do not quote variable references.
  45286. +func_quote_for_expand ()
  45287. {
  45288. - if test -n "$available_tags" && test -z "$tagname"; then
  45289. - CC_quoted=
  45290. - for arg in $CC; do
  45291. - case $arg in
  45292. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45293. - arg="\"$arg\""
  45294. - ;;
  45295. - esac
  45296. - CC_quoted="$CC_quoted $arg"
  45297. - done
  45298. - case $@ in
  45299. - # Blanks in the command may have been stripped by the calling shell,
  45300. - # but not from the CC environment variable when configure was run.
  45301. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  45302. - # Blanks at the start of $base_compile will cause this to fail
  45303. - # if we don't check for them as well.
  45304. + case $1 in
  45305. + *[\\\`\"]*)
  45306. + my_arg=`$ECHO "X$1" | $Xsed \
  45307. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  45308. *)
  45309. - for z in $available_tags; do
  45310. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  45311. - # Evaluate the configuration.
  45312. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  45313. - CC_quoted=
  45314. - for arg in $CC; do
  45315. - # Double-quote args containing other shell metacharacters.
  45316. - case $arg in
  45317. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45318. - arg="\"$arg\""
  45319. - ;;
  45320. - esac
  45321. - CC_quoted="$CC_quoted $arg"
  45322. - done
  45323. - case "$@ " in
  45324. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  45325. - # The compiler in the base compile command matches
  45326. - # the one in the tagged configuration.
  45327. - # Assume this is the tagged configuration we want.
  45328. - tagname=$z
  45329. - break
  45330. - ;;
  45331. - esac
  45332. - fi
  45333. - done
  45334. - # If $tagname still isn't set, then no tagged configuration
  45335. - # was found and let the user know that the "--tag" command
  45336. - # line option must be used.
  45337. - if test -z "$tagname"; then
  45338. - $echo "$modename: unable to infer tagged configuration"
  45339. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  45340. - exit $EXIT_FAILURE
  45341. -# else
  45342. -# $echo "$modename: using $tagname tagged configuration"
  45343. - fi
  45344. - ;;
  45345. - esac
  45346. - fi
  45347. + my_arg="$1" ;;
  45348. + esac
  45349. +
  45350. + case $my_arg in
  45351. + # Double-quote args containing shell metacharacters to delay
  45352. + # word splitting and command substitution for a subsequent eval.
  45353. + # Many Bourne shells cannot handle close brackets correctly
  45354. + # in scan sets, so we specify it separately.
  45355. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45356. + my_arg="\"$my_arg\""
  45357. + ;;
  45358. + esac
  45359. +
  45360. + func_quote_for_expand_result="$my_arg"
  45361. }
  45362. -# func_extract_an_archive dir oldlib
  45363. -func_extract_an_archive ()
  45364. +# func_show_eval cmd [fail_exp]
  45365. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  45366. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  45367. +# is given, then evaluate it.
  45368. +func_show_eval ()
  45369. {
  45370. - f_ex_an_ar_dir="$1"; shift
  45371. - f_ex_an_ar_oldlib="$1"
  45372. + my_cmd="$1"
  45373. + my_fail_exp="${2-:}"
  45374. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  45375. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  45376. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  45377. - :
  45378. - else
  45379. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  45380. - exit $EXIT_FAILURE
  45381. + ${opt_silent-false} || {
  45382. + func_quote_for_expand "$my_cmd"
  45383. + eval "func_echo $func_quote_for_expand_result"
  45384. + }
  45385. +
  45386. + if ${opt_dry_run-false}; then :; else
  45387. + eval "$my_cmd"
  45388. + my_status=$?
  45389. + if test "$my_status" -eq 0; then :; else
  45390. + eval "(exit $my_status); $my_fail_exp"
  45391. + fi
  45392. fi
  45393. }
  45394. -# func_extract_archives gentop oldlib ...
  45395. -func_extract_archives ()
  45396. +
  45397. +# func_show_eval_locale cmd [fail_exp]
  45398. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  45399. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  45400. +# is given, then evaluate it. Use the saved locale for evaluation.
  45401. +func_show_eval_locale ()
  45402. {
  45403. - my_gentop="$1"; shift
  45404. - my_oldlibs=${1+"$@"}
  45405. - my_oldobjs=""
  45406. - my_xlib=""
  45407. - my_xabs=""
  45408. - my_xdir=""
  45409. - my_status=""
  45410. + my_cmd="$1"
  45411. + my_fail_exp="${2-:}"
  45412. +
  45413. + ${opt_silent-false} || {
  45414. + func_quote_for_expand "$my_cmd"
  45415. + eval "func_echo $func_quote_for_expand_result"
  45416. + }
  45417. - $show "${rm}r $my_gentop"
  45418. - $run ${rm}r "$my_gentop"
  45419. - $show "$mkdir $my_gentop"
  45420. - $run $mkdir "$my_gentop"
  45421. - my_status=$?
  45422. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  45423. - exit $my_status
  45424. + if ${opt_dry_run-false}; then :; else
  45425. + eval "$lt_user_locale
  45426. + $my_cmd"
  45427. + my_status=$?
  45428. + eval "$lt_safe_locale"
  45429. + if test "$my_status" -eq 0; then :; else
  45430. + eval "(exit $my_status); $my_fail_exp"
  45431. + fi
  45432. fi
  45433. +}
  45434. - for my_xlib in $my_oldlibs; do
  45435. - # Extract the objects.
  45436. - case $my_xlib in
  45437. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  45438. - *) my_xabs=`pwd`"/$my_xlib" ;;
  45439. - esac
  45440. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  45441. - my_xlib_u=$my_xlib
  45442. - while :; do
  45443. - case " $extracted_archives " in
  45444. - *" $my_xlib_u "*)
  45445. - extracted_serial=`expr $extracted_serial + 1`
  45446. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  45447. - *) break ;;
  45448. - esac
  45449. - done
  45450. - extracted_archives="$extracted_archives $my_xlib_u"
  45451. - my_xdir="$my_gentop/$my_xlib_u"
  45452. - $show "${rm}r $my_xdir"
  45453. - $run ${rm}r "$my_xdir"
  45454. - $show "$mkdir $my_xdir"
  45455. - $run $mkdir "$my_xdir"
  45456. - exit_status=$?
  45457. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  45458. - exit $exit_status
  45459. - fi
  45460. - case $host in
  45461. - *-darwin*)
  45462. - $show "Extracting $my_xabs"
  45463. - # Do not bother doing anything if just a dry run
  45464. - if test -z "$run"; then
  45465. - darwin_orig_dir=`pwd`
  45466. - cd $my_xdir || exit $?
  45467. - darwin_archive=$my_xabs
  45468. - darwin_curdir=`pwd`
  45469. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  45470. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  45471. - if test -n "$darwin_arches"; then
  45472. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  45473. - darwin_arch=
  45474. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  45475. - for darwin_arch in $darwin_arches ; do
  45476. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45477. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  45478. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45479. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  45480. - cd "$darwin_curdir"
  45481. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  45482. - done # $darwin_arches
  45483. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  45484. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  45485. - darwin_file=
  45486. - darwin_files=
  45487. - for darwin_file in $darwin_filelist; do
  45488. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  45489. - lipo -create -output "$darwin_file" $darwin_files
  45490. - done # $darwin_filelist
  45491. - ${rm}r unfat-$$
  45492. - cd "$darwin_orig_dir"
  45493. - else
  45494. - cd "$darwin_orig_dir"
  45495. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45496. - fi # $darwin_arches
  45497. - fi # $run
  45498. - ;;
  45499. - *)
  45500. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45501. - ;;
  45502. - esac
  45503. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  45504. - done
  45505. - func_extract_archives_result="$my_oldobjs"
  45506. +
  45507. +
  45508. +
  45509. +# func_version
  45510. +# Echo version message to standard output and exit.
  45511. +func_version ()
  45512. +{
  45513. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  45514. + s/^# //
  45515. + s/^# *$//
  45516. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  45517. + p
  45518. + }' < "$progpath"
  45519. + exit $?
  45520. +}
  45521. +
  45522. +# func_usage
  45523. +# Echo short help message to standard output and exit.
  45524. +func_usage ()
  45525. +{
  45526. + $SED -n '/^# Usage:/,/# -h/ {
  45527. + s/^# //
  45528. + s/^# *$//
  45529. + s/\$progname/'$progname'/
  45530. + p
  45531. + }' < "$progpath"
  45532. + $ECHO
  45533. + $ECHO "run \`$progname --help | more' for full usage"
  45534. + exit $?
  45535. +}
  45536. +
  45537. +# func_help
  45538. +# Echo long help message to standard output and exit.
  45539. +func_help ()
  45540. +{
  45541. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  45542. + s/^# //
  45543. + s/^# *$//
  45544. + s*\$progname*'$progname'*
  45545. + s*\$host*'"$host"'*
  45546. + s*\$SHELL*'"$SHELL"'*
  45547. + s*\$LTCC*'"$LTCC"'*
  45548. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  45549. + s*\$LD*'"$LD"'*
  45550. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  45551. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  45552. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  45553. + p
  45554. + }' < "$progpath"
  45555. + exit $?
  45556. +}
  45557. +
  45558. +# func_missing_arg argname
  45559. +# Echo program name prefixed message to standard error and set global
  45560. +# exit_cmd.
  45561. +func_missing_arg ()
  45562. +{
  45563. + func_error "missing argument for $1"
  45564. + exit_cmd=exit
  45565. }
  45566. -# End of Shell function definitions
  45567. -#####################################
  45568. -# Darwin sucks
  45569. -eval std_shrext=\"$shrext_cmds\"
  45570. +exit_cmd=:
  45571. -disable_libs=no
  45572. -# Parse our command line options once, thoroughly.
  45573. -while test "$#" -gt 0
  45574. -do
  45575. - arg="$1"
  45576. +
  45577. +
  45578. +
  45579. +# Check that we have a working $ECHO.
  45580. +if test "X$1" = X--no-reexec; then
  45581. + # Discard the --no-reexec flag, and continue.
  45582. shift
  45583. +elif test "X$1" = X--fallback-echo; then
  45584. + # Avoid inline document here, it may be left over
  45585. + :
  45586. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  45587. + # Yippee, $ECHO works!
  45588. + :
  45589. +else
  45590. + # Restart under the correct shell, and then maybe $ECHO will work.
  45591. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  45592. +fi
  45593. - case $arg in
  45594. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  45595. - *) optarg= ;;
  45596. - esac
  45597. +if test "X$1" = X--fallback-echo; then
  45598. + # used as fallback echo
  45599. + shift
  45600. + cat <<EOF
  45601. +$*
  45602. +EOF
  45603. + exit $EXIT_SUCCESS
  45604. +fi
  45605. - # If the previous option needs an argument, assign it.
  45606. - if test -n "$prev"; then
  45607. - case $prev in
  45608. - execute_dlfiles)
  45609. - execute_dlfiles="$execute_dlfiles $arg"
  45610. - ;;
  45611. - tag)
  45612. - tagname="$arg"
  45613. - preserve_args="${preserve_args}=$arg"
  45614. -
  45615. - # Check whether tagname contains only valid characters
  45616. - case $tagname in
  45617. - *[!-_A-Za-z0-9,/]*)
  45618. - $echo "$progname: invalid tag name: $tagname" 1>&2
  45619. - exit $EXIT_FAILURE
  45620. - ;;
  45621. - esac
  45622. +magic="%%%MAGIC variable%%%"
  45623. +magic_exe="%%%MAGIC EXE variable%%%"
  45624. - case $tagname in
  45625. - CC)
  45626. - # Don't test for the "default" C tag, as we know, it's there, but
  45627. - # not specially marked.
  45628. - ;;
  45629. - *)
  45630. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  45631. - taglist="$taglist $tagname"
  45632. - # Evaluate the configuration.
  45633. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  45634. - else
  45635. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  45636. - fi
  45637. - ;;
  45638. - esac
  45639. - ;;
  45640. - *)
  45641. - eval "$prev=\$arg"
  45642. - ;;
  45643. - esac
  45644. +# Global variables.
  45645. +# $mode is unset
  45646. +nonopt=
  45647. +execute_dlfiles=
  45648. +preserve_args=
  45649. +lo2o="s/\\.lo\$/.${objext}/"
  45650. +o2lo="s/\\.${objext}\$/.lo/"
  45651. +extracted_archives=
  45652. +extracted_serial=0
  45653. - prev=
  45654. - prevopt=
  45655. - continue
  45656. - fi
  45657. +opt_dry_run=false
  45658. +opt_duplicate_deps=false
  45659. +opt_silent=false
  45660. +opt_debug=:
  45661. - # Have we seen a non-optional argument yet?
  45662. - case $arg in
  45663. - --help)
  45664. - show_help=yes
  45665. - ;;
  45666. +# If this variable is set in any of the actions, the command in it
  45667. +# will be execed at the end. This prevents here-documents from being
  45668. +# left over by shells.
  45669. +exec_cmd=
  45670. - --version)
  45671. - echo "\
  45672. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  45673. -
  45674. -Copyright (C) 2008 Free Software Foundation, Inc.
  45675. -This is free software; see the source for copying conditions. There is NO
  45676. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  45677. - exit $?
  45678. - ;;
  45679. +# func_fatal_configuration arg...
  45680. +# Echo program name prefixed message to standard error, followed by
  45681. +# a configuration failure hint, and exit.
  45682. +func_fatal_configuration ()
  45683. +{
  45684. + func_error ${1+"$@"}
  45685. + func_error "See the $PACKAGE documentation for more information."
  45686. + func_fatal_error "Fatal configuration error."
  45687. +}
  45688. +
  45689. +
  45690. +# func_config
  45691. +# Display the configuration for all the tags in this script.
  45692. +func_config ()
  45693. +{
  45694. + re_begincf='^# ### BEGIN LIBTOOL'
  45695. + re_endcf='^# ### END LIBTOOL'
  45696. +
  45697. + # Default configuration.
  45698. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  45699. - --config)
  45700. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  45701. # Now print the configurations for the tags.
  45702. for tagname in $taglist; do
  45703. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  45704. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  45705. done
  45706. - exit $?
  45707. - ;;
  45708. -
  45709. - --debug)
  45710. - $echo "$progname: enabling shell trace mode"
  45711. - set -x
  45712. - preserve_args="$preserve_args $arg"
  45713. - ;;
  45714. - --dry-run | -n)
  45715. - run=:
  45716. - ;;
  45717. + exit $?
  45718. +}
  45719. - --features)
  45720. - $echo "host: $host"
  45721. +# func_features
  45722. +# Display the features supported by this script.
  45723. +func_features ()
  45724. +{
  45725. + $ECHO "host: $host"
  45726. if test "$build_libtool_libs" = yes; then
  45727. - $echo "enable shared libraries"
  45728. + $ECHO "enable shared libraries"
  45729. else
  45730. - $echo "disable shared libraries"
  45731. + $ECHO "disable shared libraries"
  45732. fi
  45733. if test "$build_old_libs" = yes; then
  45734. - $echo "enable static libraries"
  45735. + $ECHO "enable static libraries"
  45736. else
  45737. - $echo "disable static libraries"
  45738. + $ECHO "disable static libraries"
  45739. fi
  45740. +
  45741. exit $?
  45742. - ;;
  45743. +}
  45744. - --finish) mode="finish" ;;
  45745. +# func_enable_tag tagname
  45746. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  45747. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  45748. +# variable here.
  45749. +func_enable_tag ()
  45750. +{
  45751. + # Global variable:
  45752. + tagname="$1"
  45753. +
  45754. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  45755. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  45756. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  45757. +
  45758. + # Validate tagname.
  45759. + case $tagname in
  45760. + *[!-_A-Za-z0-9,/]*)
  45761. + func_fatal_error "invalid tag name: $tagname"
  45762. + ;;
  45763. + esac
  45764. - --mode) prevopt="--mode" prev=mode ;;
  45765. - --mode=*) mode="$optarg" ;;
  45766. + # Don't test for the "default" C tag, as we know it's
  45767. + # there but not specially marked.
  45768. + case $tagname in
  45769. + CC) ;;
  45770. + *)
  45771. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  45772. + taglist="$taglist $tagname"
  45773. - --preserve-dup-deps) duplicate_deps="yes" ;;
  45774. + # Evaluate the configuration. Be careful to quote the path
  45775. + # and the sed script, to avoid splitting on whitespace, but
  45776. + # also don't use non-portable quotes within backquotes within
  45777. + # quotes we have to do it in 2 steps:
  45778. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  45779. + eval "$extractedcf"
  45780. + else
  45781. + func_error "ignoring unknown tag $tagname"
  45782. + fi
  45783. + ;;
  45784. + esac
  45785. +}
  45786. - --quiet | --silent)
  45787. - show=:
  45788. - preserve_args="$preserve_args $arg"
  45789. - ;;
  45790. +# Parse options once, thoroughly. This comes as soon as possible in
  45791. +# the script to make things like `libtool --version' happen quickly.
  45792. +{
  45793. - --tag)
  45794. - prevopt="--tag"
  45795. - prev=tag
  45796. - preserve_args="$preserve_args --tag"
  45797. + # Shorthand for --mode=foo, only valid as the first argument
  45798. + case $1 in
  45799. + clean|clea|cle|cl)
  45800. + shift; set dummy --mode clean ${1+"$@"}; shift
  45801. ;;
  45802. - --tag=*)
  45803. - set tag "$optarg" ${1+"$@"}
  45804. - shift
  45805. - prev=tag
  45806. - preserve_args="$preserve_args --tag"
  45807. + compile|compil|compi|comp|com|co|c)
  45808. + shift; set dummy --mode compile ${1+"$@"}; shift
  45809. ;;
  45810. -
  45811. - -dlopen)
  45812. - prevopt="-dlopen"
  45813. - prev=execute_dlfiles
  45814. + execute|execut|execu|exec|exe|ex|e)
  45815. + shift; set dummy --mode execute ${1+"$@"}; shift
  45816. ;;
  45817. -
  45818. - -*)
  45819. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  45820. - $echo "$help" 1>&2
  45821. - exit $EXIT_FAILURE
  45822. + finish|finis|fini|fin|fi|f)
  45823. + shift; set dummy --mode finish ${1+"$@"}; shift
  45824. ;;
  45825. -
  45826. - *)
  45827. - nonopt="$arg"
  45828. - break
  45829. + install|instal|insta|inst|ins|in|i)
  45830. + shift; set dummy --mode install ${1+"$@"}; shift
  45831. + ;;
  45832. + link|lin|li|l)
  45833. + shift; set dummy --mode link ${1+"$@"}; shift
  45834. + ;;
  45835. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  45836. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  45837. ;;
  45838. esac
  45839. -done
  45840. -if test -n "$prevopt"; then
  45841. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  45842. - $echo "$help" 1>&2
  45843. - exit $EXIT_FAILURE
  45844. -fi
  45845. + # Parse non-mode specific arguments:
  45846. + while test "$#" -gt 0; do
  45847. + opt="$1"
  45848. + shift
  45849. -case $disable_libs in
  45850. -no)
  45851. - ;;
  45852. -shared)
  45853. - build_libtool_libs=no
  45854. - build_old_libs=yes
  45855. - ;;
  45856. -static)
  45857. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  45858. - ;;
  45859. -esac
  45860. + case $opt in
  45861. + --config) func_config ;;
  45862. -# If this variable is set in any of the actions, the command in it
  45863. -# will be execed at the end. This prevents here-documents from being
  45864. -# left over by shells.
  45865. -exec_cmd=
  45866. + --debug) preserve_args="$preserve_args $opt"
  45867. + func_echo "enabling shell trace mode"
  45868. + opt_debug='set -x'
  45869. + $opt_debug
  45870. + ;;
  45871. -if test -z "$show_help"; then
  45872. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  45873. + execute_dlfiles="$execute_dlfiles $1"
  45874. + shift
  45875. + ;;
  45876. - # Infer the operation mode.
  45877. - if test -z "$mode"; then
  45878. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  45879. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  45880. - case $nonopt in
  45881. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  45882. - mode=link
  45883. - for arg
  45884. - do
  45885. - case $arg in
  45886. - -c)
  45887. - mode=compile
  45888. - break
  45889. - ;;
  45890. - esac
  45891. - done
  45892. - ;;
  45893. - *db | *dbx | *strace | *truss)
  45894. - mode=execute
  45895. - ;;
  45896. - *install*|cp|mv)
  45897. - mode=install
  45898. - ;;
  45899. - *rm)
  45900. - mode=uninstall
  45901. + --dry-run | -n) opt_dry_run=: ;;
  45902. + --features) func_features ;;
  45903. + --finish) mode="finish" ;;
  45904. +
  45905. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  45906. + case $1 in
  45907. + # Valid mode arguments:
  45908. + clean) ;;
  45909. + compile) ;;
  45910. + execute) ;;
  45911. + finish) ;;
  45912. + install) ;;
  45913. + link) ;;
  45914. + relink) ;;
  45915. + uninstall) ;;
  45916. +
  45917. + # Catch anything else as an error
  45918. + *) func_error "invalid argument for $opt"
  45919. + exit_cmd=exit
  45920. + break
  45921. + ;;
  45922. + esac
  45923. +
  45924. + mode="$1"
  45925. + shift
  45926. + ;;
  45927. +
  45928. + --preserve-dup-deps)
  45929. + opt_duplicate_deps=: ;;
  45930. +
  45931. + --quiet|--silent) preserve_args="$preserve_args $opt"
  45932. + opt_silent=:
  45933. + ;;
  45934. +
  45935. + --verbose| -v) preserve_args="$preserve_args $opt"
  45936. + opt_silent=false
  45937. + ;;
  45938. +
  45939. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  45940. + preserve_args="$preserve_args $opt $1"
  45941. + func_enable_tag "$1" # tagname is set here
  45942. + shift
  45943. + ;;
  45944. +
  45945. + # Separate optargs to long options:
  45946. + -dlopen=*|--mode=*|--tag=*)
  45947. + func_opt_split "$opt"
  45948. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  45949. + shift
  45950. + ;;
  45951. +
  45952. + -\?|-h) func_usage ;;
  45953. + --help) opt_help=: ;;
  45954. + --version) func_version ;;
  45955. +
  45956. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  45957. +
  45958. + *) nonopt="$opt"
  45959. + break
  45960. + ;;
  45961. + esac
  45962. + done
  45963. +
  45964. +
  45965. + case $host in
  45966. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  45967. + # don't eliminate duplications in $postdeps and $predeps
  45968. + opt_duplicate_compiler_generated_deps=:
  45969. ;;
  45970. *)
  45971. - # If we have no mode, but dlfiles were specified, then do execute mode.
  45972. - test -n "$execute_dlfiles" && mode=execute
  45973. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  45974. + ;;
  45975. + esac
  45976. - # Just use the default operation mode.
  45977. - if test -z "$mode"; then
  45978. - if test -n "$nonopt"; then
  45979. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  45980. - else
  45981. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  45982. - fi
  45983. + # Having warned about all mis-specified options, bail out if
  45984. + # anything was wrong.
  45985. + $exit_cmd $EXIT_FAILURE
  45986. +}
  45987. +
  45988. +# func_check_version_match
  45989. +# Ensure that we are using m4 macros, and libtool script from the same
  45990. +# release of libtool.
  45991. +func_check_version_match ()
  45992. +{
  45993. + if test "$package_revision" != "$macro_revision"; then
  45994. + if test "$VERSION" != "$macro_version"; then
  45995. + if test -z "$macro_version"; then
  45996. + cat >&2 <<_LT_EOF
  45997. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  45998. +$progname: definition of this LT_INIT comes from an older release.
  45999. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46000. +$progname: and run autoconf again.
  46001. +_LT_EOF
  46002. + else
  46003. + cat >&2 <<_LT_EOF
  46004. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  46005. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  46006. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  46007. +$progname: and run autoconf again.
  46008. +_LT_EOF
  46009. fi
  46010. - ;;
  46011. - esac
  46012. + else
  46013. + cat >&2 <<_LT_EOF
  46014. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  46015. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  46016. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  46017. +$progname: of $PACKAGE $VERSION and run autoconf again.
  46018. +_LT_EOF
  46019. + fi
  46020. +
  46021. + exit $EXIT_MISMATCH
  46022. + fi
  46023. +}
  46024. +
  46025. +
  46026. +## ----------- ##
  46027. +## Main. ##
  46028. +## ----------- ##
  46029. +
  46030. +$opt_help || {
  46031. + # Sanity checks first:
  46032. + func_check_version_match
  46033. +
  46034. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  46035. + func_fatal_configuration "not configured to build any kind of library"
  46036. fi
  46037. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  46038. +
  46039. +
  46040. + # Darwin sucks
  46041. + eval std_shrext=\"$shrext_cmds\"
  46042. +
  46043. +
  46044. # Only execute mode is allowed to have -dlopen flags.
  46045. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  46046. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  46047. - $echo "$help" 1>&2
  46048. + func_error "unrecognized option \`-dlopen'"
  46049. + $ECHO "$help" 1>&2
  46050. exit $EXIT_FAILURE
  46051. fi
  46052. # Change the help message to a mode-specific one.
  46053. generic_help="$help"
  46054. - help="Try \`$modename --help --mode=$mode' for more information."
  46055. + help="Try \`$progname --help --mode=$mode' for more information."
  46056. +}
  46057. - # These modes are in order of execution frequency so that they run quickly.
  46058. - case $mode in
  46059. - # libtool compile mode
  46060. - compile)
  46061. - modename="$modename: compile"
  46062. - # Get the compilation command and the source file.
  46063. - base_compile=
  46064. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  46065. - suppress_opt=yes
  46066. - suppress_output=
  46067. - arg_mode=normal
  46068. - libobj=
  46069. - later=
  46070. - for arg
  46071. - do
  46072. - case $arg_mode in
  46073. - arg )
  46074. - # do not "continue". Instead, add this to base_compile
  46075. - lastarg="$arg"
  46076. - arg_mode=normal
  46077. - ;;
  46078. +# func_lalib_p file
  46079. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46080. +# This function is only a basic sanity check; it will hardly flush out
  46081. +# determined imposters.
  46082. +func_lalib_p ()
  46083. +{
  46084. + test -f "$1" &&
  46085. + $SED -e 4q "$1" 2>/dev/null \
  46086. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  46087. +}
  46088. - target )
  46089. - libobj="$arg"
  46090. - arg_mode=normal
  46091. - continue
  46092. - ;;
  46093. +# func_lalib_unsafe_p file
  46094. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  46095. +# This function implements the same check as func_lalib_p without
  46096. +# resorting to external programs. To this end, it redirects stdin and
  46097. +# closes it afterwards, without saving the original file descriptor.
  46098. +# As a safety measure, use it only where a negative result would be
  46099. +# fatal anyway. Works if `file' does not exist.
  46100. +func_lalib_unsafe_p ()
  46101. +{
  46102. + lalib_p=no
  46103. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  46104. + for lalib_p_l in 1 2 3 4
  46105. + do
  46106. + read lalib_p_line
  46107. + case "$lalib_p_line" in
  46108. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  46109. + esac
  46110. + done
  46111. + exec 0<&5 5<&-
  46112. + fi
  46113. + test "$lalib_p" = yes
  46114. +}
  46115. - normal )
  46116. - # Accept any command-line options.
  46117. - case $arg in
  46118. - -o)
  46119. - if test -n "$libobj" ; then
  46120. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  46121. - exit $EXIT_FAILURE
  46122. - fi
  46123. - arg_mode=target
  46124. - continue
  46125. - ;;
  46126. +# func_ltwrapper_script_p file
  46127. +# True iff FILE is a libtool wrapper script
  46128. +# This function is only a basic sanity check; it will hardly flush out
  46129. +# determined imposters.
  46130. +func_ltwrapper_script_p ()
  46131. +{
  46132. + func_lalib_p "$1"
  46133. +}
  46134. - -static | -prefer-pic | -prefer-non-pic)
  46135. - later="$later $arg"
  46136. - continue
  46137. - ;;
  46138. +# func_ltwrapper_executable_p file
  46139. +# True iff FILE is a libtool wrapper executable
  46140. +# This function is only a basic sanity check; it will hardly flush out
  46141. +# determined imposters.
  46142. +func_ltwrapper_executable_p ()
  46143. +{
  46144. + func_ltwrapper_exec_suffix=
  46145. + case $1 in
  46146. + *.exe) ;;
  46147. + *) func_ltwrapper_exec_suffix=.exe ;;
  46148. + esac
  46149. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  46150. +}
  46151. +
  46152. +# func_ltwrapper_scriptname file
  46153. +# Assumes file is an ltwrapper_executable
  46154. +# uses $file to determine the appropriate filename for a
  46155. +# temporary ltwrapper_script.
  46156. +func_ltwrapper_scriptname ()
  46157. +{
  46158. + func_ltwrapper_scriptname_result=""
  46159. + if func_ltwrapper_executable_p "$1"; then
  46160. + func_dirname_and_basename "$1" "" "."
  46161. + func_stripname '' '.exe' "$func_basename_result"
  46162. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  46163. + fi
  46164. +}
  46165. +
  46166. +# func_ltwrapper_p file
  46167. +# True iff FILE is a libtool wrapper script or wrapper executable
  46168. +# This function is only a basic sanity check; it will hardly flush out
  46169. +# determined imposters.
  46170. +func_ltwrapper_p ()
  46171. +{
  46172. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  46173. +}
  46174. +
  46175. +
  46176. +# func_execute_cmds commands fail_cmd
  46177. +# Execute tilde-delimited COMMANDS.
  46178. +# If FAIL_CMD is given, eval that upon failure.
  46179. +# FAIL_CMD may read-access the current command in variable CMD!
  46180. +func_execute_cmds ()
  46181. +{
  46182. + $opt_debug
  46183. + save_ifs=$IFS; IFS='~'
  46184. + for cmd in $1; do
  46185. + IFS=$save_ifs
  46186. + eval cmd=\"$cmd\"
  46187. + func_show_eval "$cmd" "${2-:}"
  46188. + done
  46189. + IFS=$save_ifs
  46190. +}
  46191. +
  46192. +
  46193. +# func_source file
  46194. +# Source FILE, adding directory component if necessary.
  46195. +# Note that it is not necessary on cygwin/mingw to append a dot to
  46196. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  46197. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  46198. +# `FILE.' does not work on cygwin managed mounts.
  46199. +func_source ()
  46200. +{
  46201. + $opt_debug
  46202. + case $1 in
  46203. + */* | *\\*) . "$1" ;;
  46204. + *) . "./$1" ;;
  46205. + esac
  46206. +}
  46207. +
  46208. +
  46209. +# func_infer_tag arg
  46210. +# Infer tagged configuration to use if any are available and
  46211. +# if one wasn't chosen via the "--tag" command line option.
  46212. +# Only attempt this if the compiler in the base compile
  46213. +# command doesn't match the default compiler.
  46214. +# arg is usually of the form 'gcc ...'
  46215. +func_infer_tag ()
  46216. +{
  46217. + $opt_debug
  46218. + if test -n "$available_tags" && test -z "$tagname"; then
  46219. + CC_quoted=
  46220. + for arg in $CC; do
  46221. + func_quote_for_eval "$arg"
  46222. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  46223. + done
  46224. + case $@ in
  46225. + # Blanks in the command may have been stripped by the calling shell,
  46226. + # but not from the CC environment variable when configure was run.
  46227. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  46228. + # Blanks at the start of $base_compile will cause this to fail
  46229. + # if we don't check for them as well.
  46230. + *)
  46231. + for z in $available_tags; do
  46232. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  46233. + # Evaluate the configuration.
  46234. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  46235. + CC_quoted=
  46236. + for arg in $CC; do
  46237. + # Double-quote args containing other shell metacharacters.
  46238. + func_quote_for_eval "$arg"
  46239. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  46240. + done
  46241. + case "$@ " in
  46242. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  46243. + # The compiler in the base compile command matches
  46244. + # the one in the tagged configuration.
  46245. + # Assume this is the tagged configuration we want.
  46246. + tagname=$z
  46247. + break
  46248. + ;;
  46249. + esac
  46250. + fi
  46251. + done
  46252. + # If $tagname still isn't set, then no tagged configuration
  46253. + # was found and let the user know that the "--tag" command
  46254. + # line option must be used.
  46255. + if test -z "$tagname"; then
  46256. + func_echo "unable to infer tagged configuration"
  46257. + func_fatal_error "specify a tag with \`--tag'"
  46258. +# else
  46259. +# func_verbose "using $tagname tagged configuration"
  46260. + fi
  46261. + ;;
  46262. + esac
  46263. + fi
  46264. +}
  46265. +
  46266. +
  46267. +
  46268. +# func_write_libtool_object output_name pic_name nonpic_name
  46269. +# Create a libtool object file (analogous to a ".la" file),
  46270. +# but don't create it if we're doing a dry run.
  46271. +func_write_libtool_object ()
  46272. +{
  46273. + write_libobj=${1}
  46274. + if test "$build_libtool_libs" = yes; then
  46275. + write_lobj=\'${2}\'
  46276. + else
  46277. + write_lobj=none
  46278. + fi
  46279. +
  46280. + if test "$build_old_libs" = yes; then
  46281. + write_oldobj=\'${3}\'
  46282. + else
  46283. + write_oldobj=none
  46284. + fi
  46285. +
  46286. + $opt_dry_run || {
  46287. + cat >${write_libobj}T <<EOF
  46288. +# $write_libobj - a libtool object file
  46289. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  46290. +#
  46291. +# Please DO NOT delete this file!
  46292. +# It is necessary for linking the library.
  46293. +
  46294. +# Name of the PIC object.
  46295. +pic_object=$write_lobj
  46296. +
  46297. +# Name of the non-PIC object
  46298. +non_pic_object=$write_oldobj
  46299. +
  46300. +EOF
  46301. + $MV "${write_libobj}T" "${write_libobj}"
  46302. + }
  46303. +}
  46304. +
  46305. +# func_mode_compile arg...
  46306. +func_mode_compile ()
  46307. +{
  46308. + $opt_debug
  46309. + # Get the compilation command and the source file.
  46310. + base_compile=
  46311. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  46312. + suppress_opt=yes
  46313. + suppress_output=
  46314. + arg_mode=normal
  46315. + libobj=
  46316. + later=
  46317. + pie_flag=
  46318. +
  46319. + for arg
  46320. + do
  46321. + case $arg_mode in
  46322. + arg )
  46323. + # do not "continue". Instead, add this to base_compile
  46324. + lastarg="$arg"
  46325. + arg_mode=normal
  46326. + ;;
  46327. +
  46328. + target )
  46329. + libobj="$arg"
  46330. + arg_mode=normal
  46331. + continue
  46332. + ;;
  46333. +
  46334. + normal )
  46335. + # Accept any command-line options.
  46336. + case $arg in
  46337. + -o)
  46338. + test -n "$libobj" && \
  46339. + func_fatal_error "you cannot specify \`-o' more than once"
  46340. + arg_mode=target
  46341. + continue
  46342. + ;;
  46343. +
  46344. + -pie | -fpie | -fPIE)
  46345. + pie_flag="$pie_flag $arg"
  46346. + continue
  46347. + ;;
  46348. +
  46349. + -shared | -static | -prefer-pic | -prefer-non-pic)
  46350. + later="$later $arg"
  46351. + continue
  46352. + ;;
  46353. -no-suppress)
  46354. suppress_opt=no
  46355. @@ -708,31 +1157,25 @@
  46356. ;; # replaced later. I would guess that would be a bug.
  46357. -Wc,*)
  46358. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  46359. + func_stripname '-Wc,' '' "$arg"
  46360. + args=$func_stripname_result
  46361. lastarg=
  46362. save_ifs="$IFS"; IFS=','
  46363. - for arg in $args; do
  46364. + for arg in $args; do
  46365. IFS="$save_ifs"
  46366. -
  46367. - # Double-quote args containing other shell metacharacters.
  46368. - # Many Bourne shells cannot handle close brackets correctly
  46369. - # in scan sets, so we specify it separately.
  46370. - case $arg in
  46371. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46372. - arg="\"$arg\""
  46373. - ;;
  46374. - esac
  46375. - lastarg="$lastarg $arg"
  46376. + func_quote_for_eval "$arg"
  46377. + lastarg="$lastarg $func_quote_for_eval_result"
  46378. done
  46379. IFS="$save_ifs"
  46380. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  46381. + func_stripname ' ' '' "$lastarg"
  46382. + lastarg=$func_stripname_result
  46383. # Add the arguments to base_compile.
  46384. base_compile="$base_compile $lastarg"
  46385. continue
  46386. ;;
  46387. - * )
  46388. + *)
  46389. # Accept the current argument as the source file.
  46390. # The previous "srcfile" becomes the current argument.
  46391. #
  46392. @@ -744,66 +1187,42 @@
  46393. esac # case $arg_mode
  46394. # Aesthetically quote the previous argument.
  46395. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  46396. -
  46397. - case $lastarg in
  46398. - # Double-quote args containing other shell metacharacters.
  46399. - # Many Bourne shells cannot handle close brackets correctly
  46400. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  46401. - # in scan sets (worked around with variable expansion),
  46402. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  46403. - # at all, so we specify them separately.
  46404. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46405. - lastarg="\"$lastarg\""
  46406. - ;;
  46407. - esac
  46408. -
  46409. - base_compile="$base_compile $lastarg"
  46410. + func_quote_for_eval "$lastarg"
  46411. + base_compile="$base_compile $func_quote_for_eval_result"
  46412. done # for arg
  46413. case $arg_mode in
  46414. arg)
  46415. - $echo "$modename: you must specify an argument for -Xcompile"
  46416. - exit $EXIT_FAILURE
  46417. + func_fatal_error "you must specify an argument for -Xcompile"
  46418. ;;
  46419. target)
  46420. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  46421. - exit $EXIT_FAILURE
  46422. + func_fatal_error "you must specify a target with \`-o'"
  46423. ;;
  46424. *)
  46425. # Get the name of the library object.
  46426. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  46427. + test -z "$libobj" && {
  46428. + func_basename "$srcfile"
  46429. + libobj="$func_basename_result"
  46430. + }
  46431. ;;
  46432. esac
  46433. # Recognize several different file suffixes.
  46434. # If the user specifies -o file.o, it is replaced with file.lo
  46435. - xform='[cCFSifmso]'
  46436. case $libobj in
  46437. - *.ada) xform=ada ;;
  46438. - *.adb) xform=adb ;;
  46439. - *.ads) xform=ads ;;
  46440. - *.asm) xform=asm ;;
  46441. - *.c++) xform=c++ ;;
  46442. - *.cc) xform=cc ;;
  46443. - *.ii) xform=ii ;;
  46444. - *.class) xform=class ;;
  46445. - *.cpp) xform=cpp ;;
  46446. - *.cxx) xform=cxx ;;
  46447. - *.[fF][09]?) xform=[fF][09]. ;;
  46448. - *.for) xform=for ;;
  46449. - *.java) xform=java ;;
  46450. - *.obj) xform=obj ;;
  46451. - *.sx) xform=sx ;;
  46452. + *.[cCFSifmso] | \
  46453. + *.ada | *.adb | *.ads | *.asm | \
  46454. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  46455. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  46456. + func_xform "$libobj"
  46457. + libobj=$func_xform_result
  46458. + ;;
  46459. esac
  46460. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  46461. -
  46462. case $libobj in
  46463. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  46464. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  46465. *)
  46466. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  46467. - exit $EXIT_FAILURE
  46468. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  46469. ;;
  46470. esac
  46471. @@ -811,7 +1230,15 @@
  46472. for arg in $later; do
  46473. case $arg in
  46474. + -shared)
  46475. + test "$build_libtool_libs" != yes && \
  46476. + func_fatal_configuration "can not build a shared library"
  46477. + build_old_libs=no
  46478. + continue
  46479. + ;;
  46480. +
  46481. -static)
  46482. + build_libtool_libs=no
  46483. build_old_libs=yes
  46484. continue
  46485. ;;
  46486. @@ -828,28 +1255,17 @@
  46487. esac
  46488. done
  46489. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  46490. - case $qlibobj in
  46491. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46492. - qlibobj="\"$qlibobj\"" ;;
  46493. - esac
  46494. - test "X$libobj" != "X$qlibobj" \
  46495. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  46496. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  46497. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  46498. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  46499. - if test "X$xdir" = "X$obj"; then
  46500. - xdir=
  46501. - else
  46502. - xdir=$xdir/
  46503. - fi
  46504. + func_quote_for_eval "$libobj"
  46505. + test "X$libobj" != "X$func_quote_for_eval_result" \
  46506. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  46507. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  46508. + func_dirname_and_basename "$obj" "/" ""
  46509. + objname="$func_basename_result"
  46510. + xdir="$func_dirname_result"
  46511. lobj=${xdir}$objdir/$objname
  46512. - if test -z "$base_compile"; then
  46513. - $echo "$modename: you must specify a compilation command" 1>&2
  46514. - $echo "$help" 1>&2
  46515. - exit $EXIT_FAILURE
  46516. - fi
  46517. + test -z "$base_compile" && \
  46518. + func_fatal_help "you must specify a compilation command"
  46519. # Delete any leftover library objects.
  46520. if test "$build_old_libs" = yes; then
  46521. @@ -858,12 +1274,9 @@
  46522. removelist="$lobj $libobj ${libobj}T"
  46523. fi
  46524. - $run $rm $removelist
  46525. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  46526. -
  46527. # On Cygwin there's no "real" PIC flag so we must build both object types
  46528. case $host_os in
  46529. - cygwin* | mingw* | pw32* | os2*)
  46530. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  46531. pic_mode=default
  46532. ;;
  46533. esac
  46534. @@ -875,10 +1288,8 @@
  46535. # Calculate the filename of the output object if compiler does
  46536. # not support -o with -c
  46537. if test "$compiler_c_o" = no; then
  46538. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  46539. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  46540. lockfile="$output_obj.lock"
  46541. - removelist="$removelist $output_obj $lockfile"
  46542. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  46543. else
  46544. output_obj=
  46545. need_locks=no
  46546. @@ -888,13 +1299,13 @@
  46547. # Lock this critical section if it is needed
  46548. # We use this script file to make the link, it avoids creating a new file
  46549. if test "$need_locks" = yes; then
  46550. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  46551. - $show "Waiting for $lockfile to be removed"
  46552. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  46553. + func_echo "Waiting for $lockfile to be removed"
  46554. sleep 2
  46555. done
  46556. elif test "$need_locks" = warn; then
  46557. if test -f "$lockfile"; then
  46558. - $echo "\
  46559. + $ECHO "\
  46560. *** ERROR, $lockfile exists and contains:
  46561. `cat $lockfile 2>/dev/null`
  46562. @@ -905,34 +1316,22 @@
  46563. avoid parallel builds (make -j) in this platform, or get a better
  46564. compiler."
  46565. - $run $rm $removelist
  46566. + $opt_dry_run || $RM $removelist
  46567. exit $EXIT_FAILURE
  46568. fi
  46569. - $echo "$srcfile" > "$lockfile"
  46570. + removelist="$removelist $output_obj"
  46571. + $ECHO "$srcfile" > "$lockfile"
  46572. fi
  46573. + $opt_dry_run || $RM $removelist
  46574. + removelist="$removelist $lockfile"
  46575. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  46576. +
  46577. if test -n "$fix_srcfile_path"; then
  46578. eval srcfile=\"$fix_srcfile_path\"
  46579. fi
  46580. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  46581. - case $qsrcfile in
  46582. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46583. - qsrcfile="\"$qsrcfile\"" ;;
  46584. - esac
  46585. -
  46586. - $run $rm "$libobj" "${libobj}T"
  46587. -
  46588. - # Create a libtool object file (analogous to a ".la" file),
  46589. - # but don't create it if we're doing a dry run.
  46590. - test -z "$run" && cat > ${libobj}T <<EOF
  46591. -# $libobj - a libtool object file
  46592. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  46593. -#
  46594. -# Please DO NOT delete this file!
  46595. -# It is necessary for linking the library.
  46596. -
  46597. -# Name of the PIC object.
  46598. -EOF
  46599. + func_quote_for_eval "$srcfile"
  46600. + qsrcfile=$func_quote_for_eval_result
  46601. # Only build a PIC object if we are building libtool libraries.
  46602. if test "$build_libtool_libs" = yes; then
  46603. @@ -946,32 +1345,19 @@
  46604. command="$base_compile $qsrcfile"
  46605. fi
  46606. - if test ! -d "${xdir}$objdir"; then
  46607. - $show "$mkdir ${xdir}$objdir"
  46608. - $run $mkdir ${xdir}$objdir
  46609. - exit_status=$?
  46610. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  46611. - exit $exit_status
  46612. - fi
  46613. - fi
  46614. + func_mkdir_p "$xdir$objdir"
  46615. if test -z "$output_obj"; then
  46616. # Place PIC objects in $objdir
  46617. command="$command -o $lobj"
  46618. fi
  46619. - $run $rm "$lobj" "$output_obj"
  46620. -
  46621. - $show "$command"
  46622. - if $run eval $lt_env "$command"; then :
  46623. - else
  46624. - test -n "$output_obj" && $run $rm $removelist
  46625. - exit $EXIT_FAILURE
  46626. - fi
  46627. + func_show_eval_locale "$command" \
  46628. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  46629. if test "$need_locks" = warn &&
  46630. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  46631. - $echo "\
  46632. + $ECHO "\
  46633. *** ERROR, $lockfile contains:
  46634. `cat $lockfile 2>/dev/null`
  46635. @@ -985,45 +1371,27 @@
  46636. avoid parallel builds (make -j) in this platform, or get a better
  46637. compiler."
  46638. - $run $rm $removelist
  46639. + $opt_dry_run || $RM $removelist
  46640. exit $EXIT_FAILURE
  46641. fi
  46642. # Just move the object if needed, then go on to compile the next one
  46643. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  46644. - $show "$mv $output_obj $lobj"
  46645. - if $run $mv $output_obj $lobj; then :
  46646. - else
  46647. - error=$?
  46648. - $run $rm $removelist
  46649. - exit $error
  46650. - fi
  46651. + func_show_eval '$MV "$output_obj" "$lobj"' \
  46652. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  46653. fi
  46654. - # Append the name of the PIC object to the libtool object file.
  46655. - test -z "$run" && cat >> ${libobj}T <<EOF
  46656. -pic_object='$objdir/$objname'
  46657. -
  46658. -EOF
  46659. -
  46660. # Allow error messages only from the first compilation.
  46661. if test "$suppress_opt" = yes; then
  46662. - suppress_output=' >/dev/null 2>&1'
  46663. + suppress_output=' >/dev/null 2>&1'
  46664. fi
  46665. - else
  46666. - # No PIC object so indicate it doesn't exist in the libtool
  46667. - # object file.
  46668. - test -z "$run" && cat >> ${libobj}T <<EOF
  46669. -pic_object=none
  46670. -
  46671. -EOF
  46672. fi
  46673. # Only build a position-dependent object if we build old libraries.
  46674. if test "$build_old_libs" = yes; then
  46675. if test "$pic_mode" != yes; then
  46676. # Don't build PIC code
  46677. - command="$base_compile $qsrcfile"
  46678. + command="$base_compile $qsrcfile$pie_flag"
  46679. else
  46680. command="$base_compile $qsrcfile $pic_flag"
  46681. fi
  46682. @@ -1033,17 +1401,12 @@
  46683. # Suppress compiler output if we already did a PIC compilation.
  46684. command="$command$suppress_output"
  46685. - $run $rm "$obj" "$output_obj"
  46686. - $show "$command"
  46687. - if $run eval $lt_env "$command"; then :
  46688. - else
  46689. - $run $rm $removelist
  46690. - exit $EXIT_FAILURE
  46691. - fi
  46692. + func_show_eval_locale "$command" \
  46693. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  46694. if test "$need_locks" = warn &&
  46695. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  46696. - $echo "\
  46697. + $ECHO "\
  46698. *** ERROR, $lockfile contains:
  46699. `cat $lockfile 2>/dev/null`
  46700. @@ -1057,5477 +1420,6784 @@
  46701. avoid parallel builds (make -j) in this platform, or get a better
  46702. compiler."
  46703. - $run $rm $removelist
  46704. + $opt_dry_run || $RM $removelist
  46705. exit $EXIT_FAILURE
  46706. fi
  46707. # Just move the object if needed
  46708. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  46709. - $show "$mv $output_obj $obj"
  46710. - if $run $mv $output_obj $obj; then :
  46711. - else
  46712. - error=$?
  46713. - $run $rm $removelist
  46714. - exit $error
  46715. - fi
  46716. + func_show_eval '$MV "$output_obj" "$obj"' \
  46717. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  46718. fi
  46719. -
  46720. - # Append the name of the non-PIC object the libtool object file.
  46721. - # Only append if the libtool object file exists.
  46722. - test -z "$run" && cat >> ${libobj}T <<EOF
  46723. -# Name of the non-PIC object.
  46724. -non_pic_object='$objname'
  46725. -
  46726. -EOF
  46727. - else
  46728. - # Append the name of the non-PIC object the libtool object file.
  46729. - # Only append if the libtool object file exists.
  46730. - test -z "$run" && cat >> ${libobj}T <<EOF
  46731. -# Name of the non-PIC object.
  46732. -non_pic_object=none
  46733. -
  46734. -EOF
  46735. fi
  46736. - $run $mv "${libobj}T" "${libobj}"
  46737. + $opt_dry_run || {
  46738. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  46739. - # Unlock the critical section if it was locked
  46740. - if test "$need_locks" != no; then
  46741. - $run $rm "$lockfile"
  46742. - fi
  46743. + # Unlock the critical section if it was locked
  46744. + if test "$need_locks" != no; then
  46745. + removelist=$lockfile
  46746. + $RM "$lockfile"
  46747. + fi
  46748. + }
  46749. exit $EXIT_SUCCESS
  46750. - ;;
  46751. +}
  46752. - # libtool link mode
  46753. - link | relink)
  46754. - modename="$modename: link"
  46755. - case $host in
  46756. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  46757. - # It is impossible to link a dll without this setting, and
  46758. - # we shouldn't force the makefile maintainer to figure out
  46759. - # which system we are compiling for in order to pass an extra
  46760. - # flag for every libtool invocation.
  46761. - # allow_undefined=no
  46762. +$opt_help || {
  46763. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  46764. +}
  46765. - # FIXME: Unfortunately, there are problems with the above when trying
  46766. - # to make a dll which has undefined symbols, in which case not
  46767. - # even a static library is built. For now, we need to specify
  46768. - # -no-undefined on the libtool link line when we can be certain
  46769. - # that all symbols are satisfied, otherwise we get a static library.
  46770. - allow_undefined=yes
  46771. - ;;
  46772. - *)
  46773. - allow_undefined=yes
  46774. - ;;
  46775. - esac
  46776. - libtool_args="$nonopt"
  46777. - base_compile="$nonopt $@"
  46778. - compile_command="$nonopt"
  46779. - finalize_command="$nonopt"
  46780. +func_mode_help ()
  46781. +{
  46782. + # We need to display help for each of the modes.
  46783. + case $mode in
  46784. + "")
  46785. + # Generic help is extracted from the usage comments
  46786. + # at the start of this file.
  46787. + func_help
  46788. + ;;
  46789. - compile_rpath=
  46790. - finalize_rpath=
  46791. - compile_shlibpath=
  46792. - finalize_shlibpath=
  46793. - convenience=
  46794. - old_convenience=
  46795. - deplibs=
  46796. - old_deplibs=
  46797. - compiler_flags=
  46798. - linker_flags=
  46799. - dllsearchpath=
  46800. - lib_search_path=`pwd`
  46801. - inst_prefix_dir=
  46802. + clean)
  46803. + $ECHO \
  46804. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  46805. - avoid_version=no
  46806. - dlfiles=
  46807. - dlprefiles=
  46808. - dlself=no
  46809. - export_dynamic=no
  46810. - export_symbols=
  46811. - export_symbols_regex=
  46812. - generated=
  46813. - libobjs=
  46814. - ltlibs=
  46815. - module=no
  46816. - no_install=no
  46817. - objs=
  46818. - non_pic_objects=
  46819. - notinst_path= # paths that contain not-installed libtool libraries
  46820. - precious_files_regex=
  46821. - prefer_static_libs=no
  46822. - preload=no
  46823. - prev=
  46824. - prevarg=
  46825. - release=
  46826. - rpath=
  46827. - xrpath=
  46828. - perm_rpath=
  46829. - temp_rpath=
  46830. - thread_safe=no
  46831. - vinfo=
  46832. - vinfo_number=no
  46833. - single_module="${wl}-single_module"
  46834. +Remove files from the build directory.
  46835. - func_infer_tag $base_compile
  46836. +RM is the name of the program to use to delete files associated with each FILE
  46837. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  46838. +to RM.
  46839. - # We need to know -static, to get the right output filenames.
  46840. - for arg
  46841. - do
  46842. - case $arg in
  46843. - -all-static | -static | -static-libtool-libs)
  46844. - case $arg in
  46845. - -all-static)
  46846. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  46847. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  46848. - fi
  46849. - if test -n "$link_static_flag"; then
  46850. - dlopen_self=$dlopen_self_static
  46851. - fi
  46852. - prefer_static_libs=yes
  46853. - ;;
  46854. - -static)
  46855. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  46856. - dlopen_self=$dlopen_self_static
  46857. - fi
  46858. - prefer_static_libs=built
  46859. - ;;
  46860. - -static-libtool-libs)
  46861. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  46862. - dlopen_self=$dlopen_self_static
  46863. - fi
  46864. - prefer_static_libs=yes
  46865. - ;;
  46866. - esac
  46867. - build_libtool_libs=no
  46868. - build_old_libs=yes
  46869. - break
  46870. - ;;
  46871. - esac
  46872. - done
  46873. +If FILE is a libtool library, object or program, all the files associated
  46874. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  46875. + ;;
  46876. - # See if our shared archives depend on static archives.
  46877. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  46878. + compile)
  46879. + $ECHO \
  46880. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  46881. - # Go through the arguments, transforming them on the way.
  46882. - while test "$#" -gt 0; do
  46883. - arg="$1"
  46884. - shift
  46885. - case $arg in
  46886. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  46887. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  46888. - ;;
  46889. - *) qarg=$arg ;;
  46890. - esac
  46891. - libtool_args="$libtool_args $qarg"
  46892. +Compile a source file into a libtool library object.
  46893. - # If the previous option needs an argument, assign it.
  46894. - if test -n "$prev"; then
  46895. - case $prev in
  46896. - output)
  46897. - compile_command="$compile_command @OUTPUT@"
  46898. - finalize_command="$finalize_command @OUTPUT@"
  46899. - ;;
  46900. - esac
  46901. +This mode accepts the following additional options:
  46902. - case $prev in
  46903. - dlfiles|dlprefiles)
  46904. - if test "$preload" = no; then
  46905. - # Add the symbol object into the linking commands.
  46906. - compile_command="$compile_command @SYMFILE@"
  46907. - finalize_command="$finalize_command @SYMFILE@"
  46908. - preload=yes
  46909. - fi
  46910. - case $arg in
  46911. - *.la | *.lo) ;; # We handle these cases below.
  46912. - force)
  46913. - if test "$dlself" = no; then
  46914. - dlself=needless
  46915. - export_dynamic=yes
  46916. - fi
  46917. - prev=
  46918. - continue
  46919. - ;;
  46920. - self)
  46921. - if test "$prev" = dlprefiles; then
  46922. - dlself=yes
  46923. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  46924. - dlself=yes
  46925. - else
  46926. - dlself=needless
  46927. - export_dynamic=yes
  46928. - fi
  46929. - prev=
  46930. - continue
  46931. - ;;
  46932. - *)
  46933. - if test "$prev" = dlfiles; then
  46934. - dlfiles="$dlfiles $arg"
  46935. - else
  46936. - dlprefiles="$dlprefiles $arg"
  46937. - fi
  46938. - prev=
  46939. - continue
  46940. - ;;
  46941. - esac
  46942. - ;;
  46943. - expsyms)
  46944. - export_symbols="$arg"
  46945. - if test ! -f "$arg"; then
  46946. - $echo "$modename: symbol file \`$arg' does not exist"
  46947. - exit $EXIT_FAILURE
  46948. - fi
  46949. - prev=
  46950. - continue
  46951. - ;;
  46952. - expsyms_regex)
  46953. - export_symbols_regex="$arg"
  46954. - prev=
  46955. - continue
  46956. - ;;
  46957. - inst_prefix)
  46958. - inst_prefix_dir="$arg"
  46959. - prev=
  46960. - continue
  46961. - ;;
  46962. - precious_regex)
  46963. - precious_files_regex="$arg"
  46964. - prev=
  46965. - continue
  46966. - ;;
  46967. - release)
  46968. - release="-$arg"
  46969. - prev=
  46970. - continue
  46971. - ;;
  46972. - objectlist)
  46973. - if test -f "$arg"; then
  46974. - save_arg=$arg
  46975. - moreargs=
  46976. - for fil in `cat $save_arg`
  46977. - do
  46978. -# moreargs="$moreargs $fil"
  46979. - arg=$fil
  46980. - # A libtool-controlled object.
  46981. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  46982. + -no-suppress do not suppress compiler output for multiple passes
  46983. + -prefer-pic try to building PIC objects only
  46984. + -prefer-non-pic try to building non-PIC objects only
  46985. + -shared do not build a \`.o' file suitable for static linking
  46986. + -static only build a \`.o' file suitable for static linking
  46987. - # Check to see that this really is a libtool object.
  46988. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  46989. - pic_object=
  46990. - non_pic_object=
  46991. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  46992. +from the given SOURCEFILE.
  46993. - # Read the .lo file
  46994. - # If there is no directory component, then add one.
  46995. - case $arg in
  46996. - */* | *\\*) . $arg ;;
  46997. - *) . ./$arg ;;
  46998. - esac
  46999. +The output file name is determined by removing the directory component from
  47000. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  47001. +library object suffix, \`.lo'."
  47002. + ;;
  47003. - if test -z "$pic_object" || \
  47004. - test -z "$non_pic_object" ||
  47005. - test "$pic_object" = none && \
  47006. - test "$non_pic_object" = none; then
  47007. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  47008. - exit $EXIT_FAILURE
  47009. - fi
  47010. + execute)
  47011. + $ECHO \
  47012. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  47013. - # Extract subdirectory from the argument.
  47014. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47015. - if test "X$xdir" = "X$arg"; then
  47016. - xdir=
  47017. - else
  47018. - xdir="$xdir/"
  47019. - fi
  47020. +Automatically set library path, then run a program.
  47021. - if test "$pic_object" != none; then
  47022. - # Prepend the subdirectory the object is found in.
  47023. - pic_object="$xdir$pic_object"
  47024. +This mode accepts the following additional options:
  47025. - if test "$prev" = dlfiles; then
  47026. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47027. - dlfiles="$dlfiles $pic_object"
  47028. - prev=
  47029. - continue
  47030. - else
  47031. - # If libtool objects are unsupported, then we need to preload.
  47032. - prev=dlprefiles
  47033. - fi
  47034. - fi
  47035. + -dlopen FILE add the directory containing FILE to the library path
  47036. - # CHECK ME: I think I busted this. -Ossama
  47037. - if test "$prev" = dlprefiles; then
  47038. - # Preload the old-style object.
  47039. - dlprefiles="$dlprefiles $pic_object"
  47040. - prev=
  47041. - fi
  47042. +This mode sets the library path environment variable according to \`-dlopen'
  47043. +flags.
  47044. - # A PIC object.
  47045. - libobjs="$libobjs $pic_object"
  47046. - arg="$pic_object"
  47047. - fi
  47048. +If any of the ARGS are libtool executable wrappers, then they are translated
  47049. +into their corresponding uninstalled binary, and any of their required library
  47050. +directories are added to the library path.
  47051. - # Non-PIC object.
  47052. - if test "$non_pic_object" != none; then
  47053. - # Prepend the subdirectory the object is found in.
  47054. - non_pic_object="$xdir$non_pic_object"
  47055. +Then, COMMAND is executed, with ARGS as arguments."
  47056. + ;;
  47057. - # A standard non-PIC object
  47058. - non_pic_objects="$non_pic_objects $non_pic_object"
  47059. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47060. - arg="$non_pic_object"
  47061. - fi
  47062. - else
  47063. - # If the PIC object exists, use it instead.
  47064. - # $xdir was prepended to $pic_object above.
  47065. - non_pic_object="$pic_object"
  47066. - non_pic_objects="$non_pic_objects $non_pic_object"
  47067. - fi
  47068. - else
  47069. - # Only an error if not doing a dry-run.
  47070. - if test -z "$run"; then
  47071. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  47072. - exit $EXIT_FAILURE
  47073. - else
  47074. - # Dry-run case.
  47075. + finish)
  47076. + $ECHO \
  47077. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  47078. - # Extract subdirectory from the argument.
  47079. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47080. - if test "X$xdir" = "X$arg"; then
  47081. - xdir=
  47082. - else
  47083. - xdir="$xdir/"
  47084. - fi
  47085. +Complete the installation of libtool libraries.
  47086. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47087. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47088. - libobjs="$libobjs $pic_object"
  47089. - non_pic_objects="$non_pic_objects $non_pic_object"
  47090. - fi
  47091. - fi
  47092. - done
  47093. - else
  47094. - $echo "$modename: link input file \`$save_arg' does not exist"
  47095. - exit $EXIT_FAILURE
  47096. - fi
  47097. - arg=$save_arg
  47098. - prev=
  47099. - continue
  47100. - ;;
  47101. - rpath | xrpath)
  47102. - # We need an absolute path.
  47103. - case $arg in
  47104. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47105. - *)
  47106. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  47107. - exit $EXIT_FAILURE
  47108. - ;;
  47109. - esac
  47110. - if test "$prev" = rpath; then
  47111. - case "$rpath " in
  47112. - *" $arg "*) ;;
  47113. - *) rpath="$rpath $arg" ;;
  47114. - esac
  47115. - else
  47116. - case "$xrpath " in
  47117. - *" $arg "*) ;;
  47118. - *) xrpath="$xrpath $arg" ;;
  47119. - esac
  47120. - fi
  47121. - prev=
  47122. - continue
  47123. - ;;
  47124. - xcompiler)
  47125. - compiler_flags="$compiler_flags $qarg"
  47126. - prev=
  47127. - compile_command="$compile_command $qarg"
  47128. - finalize_command="$finalize_command $qarg"
  47129. - continue
  47130. - ;;
  47131. - xlinker)
  47132. - linker_flags="$linker_flags $qarg"
  47133. - compiler_flags="$compiler_flags $wl$qarg"
  47134. - prev=
  47135. - compile_command="$compile_command $wl$qarg"
  47136. - finalize_command="$finalize_command $wl$qarg"
  47137. - continue
  47138. - ;;
  47139. - xcclinker)
  47140. - linker_flags="$linker_flags $qarg"
  47141. - compiler_flags="$compiler_flags $qarg"
  47142. - prev=
  47143. - compile_command="$compile_command $qarg"
  47144. - finalize_command="$finalize_command $qarg"
  47145. - continue
  47146. - ;;
  47147. - shrext)
  47148. - shrext_cmds="$arg"
  47149. - prev=
  47150. - continue
  47151. - ;;
  47152. - darwin_framework|darwin_framework_skip)
  47153. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  47154. - compile_command="$compile_command $arg"
  47155. - finalize_command="$finalize_command $arg"
  47156. - prev=
  47157. - continue
  47158. - ;;
  47159. - *)
  47160. - eval "$prev=\"\$arg\""
  47161. - prev=
  47162. - continue
  47163. - ;;
  47164. - esac
  47165. - fi # test -n "$prev"
  47166. +Each LIBDIR is a directory that contains libtool libraries.
  47167. - prevarg="$arg"
  47168. +The commands that this mode executes may require superuser privileges. Use
  47169. +the \`--dry-run' option if you just want to see what would be executed."
  47170. + ;;
  47171. - case $arg in
  47172. - -all-static)
  47173. - if test -n "$link_static_flag"; then
  47174. - compile_command="$compile_command $link_static_flag"
  47175. - finalize_command="$finalize_command $link_static_flag"
  47176. - fi
  47177. - continue
  47178. - ;;
  47179. + install)
  47180. + $ECHO \
  47181. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  47182. - -allow-undefined)
  47183. - # FIXME: remove this flag sometime in the future.
  47184. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  47185. - continue
  47186. - ;;
  47187. +Install executables or libraries.
  47188. - -avoid-version)
  47189. - avoid_version=yes
  47190. - continue
  47191. - ;;
  47192. +INSTALL-COMMAND is the installation command. The first component should be
  47193. +either the \`install' or \`cp' program.
  47194. - -dlopen)
  47195. - prev=dlfiles
  47196. - continue
  47197. - ;;
  47198. +The following components of INSTALL-COMMAND are treated specially:
  47199. - -dlpreopen)
  47200. - prev=dlprefiles
  47201. - continue
  47202. - ;;
  47203. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  47204. - -export-dynamic)
  47205. - export_dynamic=yes
  47206. - continue
  47207. - ;;
  47208. +The rest of the components are interpreted as arguments to that command (only
  47209. +BSD-compatible install options are recognized)."
  47210. + ;;
  47211. - -export-symbols | -export-symbols-regex)
  47212. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  47213. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  47214. - exit $EXIT_FAILURE
  47215. - fi
  47216. - if test "X$arg" = "X-export-symbols"; then
  47217. - prev=expsyms
  47218. - else
  47219. - prev=expsyms_regex
  47220. - fi
  47221. - continue
  47222. - ;;
  47223. + link)
  47224. + $ECHO \
  47225. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  47226. - -framework|-arch|-isysroot)
  47227. - case " $CC " in
  47228. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  47229. - prev=darwin_framework_skip ;;
  47230. - *) compiler_flags="$compiler_flags $arg"
  47231. - prev=darwin_framework ;;
  47232. - esac
  47233. - compile_command="$compile_command $arg"
  47234. - finalize_command="$finalize_command $arg"
  47235. - continue
  47236. - ;;
  47237. +Link object files or libraries together to form another library, or to
  47238. +create an executable program.
  47239. - -inst-prefix-dir)
  47240. - prev=inst_prefix
  47241. - continue
  47242. - ;;
  47243. +LINK-COMMAND is a command using the C compiler that you would use to create
  47244. +a program from several object files.
  47245. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  47246. - # so, if we see these flags be careful not to treat them like -L
  47247. - -L[A-Z][A-Z]*:*)
  47248. - case $with_gcc/$host in
  47249. - no/*-*-irix* | /*-*-irix*)
  47250. - compile_command="$compile_command $arg"
  47251. - finalize_command="$finalize_command $arg"
  47252. - ;;
  47253. - esac
  47254. - continue
  47255. - ;;
  47256. +The following components of LINK-COMMAND are treated specially:
  47257. - -L*)
  47258. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  47259. - # We need an absolute path.
  47260. - case $dir in
  47261. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47262. - *)
  47263. - absdir=`cd "$dir" && pwd`
  47264. - if test -z "$absdir"; then
  47265. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  47266. - absdir="$dir"
  47267. - notinst_path="$notinst_path $dir"
  47268. - fi
  47269. - dir="$absdir"
  47270. - ;;
  47271. - esac
  47272. - case "$deplibs " in
  47273. - *" -L$dir "*) ;;
  47274. - *)
  47275. - deplibs="$deplibs -L$dir"
  47276. - lib_search_path="$lib_search_path $dir"
  47277. - ;;
  47278. - esac
  47279. - case $host in
  47280. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47281. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  47282. - case :$dllsearchpath: in
  47283. - *":$dir:"*) ;;
  47284. - *) dllsearchpath="$dllsearchpath:$dir";;
  47285. - esac
  47286. - case :$dllsearchpath: in
  47287. - *":$testbindir:"*) ;;
  47288. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  47289. - esac
  47290. - ;;
  47291. - esac
  47292. - continue
  47293. - ;;
  47294. + -all-static do not do any dynamic linking at all
  47295. + -avoid-version do not add a version suffix if possible
  47296. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  47297. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  47298. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  47299. + -export-symbols SYMFILE
  47300. + try to export only the symbols listed in SYMFILE
  47301. + -export-symbols-regex REGEX
  47302. + try to export only the symbols matching REGEX
  47303. + -LLIBDIR search LIBDIR for required installed libraries
  47304. + -lNAME OUTPUT-FILE requires the installed library libNAME
  47305. + -module build a library that can dlopened
  47306. + -no-fast-install disable the fast-install mode
  47307. + -no-install link a not-installable executable
  47308. + -no-undefined declare that a library does not refer to external symbols
  47309. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  47310. + -objectlist FILE Use a list of object files found in FILE to specify objects
  47311. + -precious-files-regex REGEX
  47312. + don't remove output files matching REGEX
  47313. + -release RELEASE specify package release information
  47314. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  47315. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  47316. + -shared only do dynamic linking of libtool libraries
  47317. + -shrext SUFFIX override the standard shared library file extension
  47318. + -static do not do any dynamic linking of uninstalled libtool libraries
  47319. + -static-libtool-libs
  47320. + do not do any dynamic linking of libtool libraries
  47321. + -version-info CURRENT[:REVISION[:AGE]]
  47322. + specify library version info [each variable defaults to 0]
  47323. + -weak LIBNAME declare that the target provides the LIBNAME interface
  47324. - -l*)
  47325. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  47326. - case $host in
  47327. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  47328. - # These systems don't actually have a C or math library (as such)
  47329. - continue
  47330. - ;;
  47331. - *-*-os2*)
  47332. - # These systems don't actually have a C library (as such)
  47333. - test "X$arg" = "X-lc" && continue
  47334. - ;;
  47335. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47336. - # Do not include libc due to us having libc/libc_r.
  47337. - test "X$arg" = "X-lc" && continue
  47338. - ;;
  47339. - *-*-rhapsody* | *-*-darwin1.[012])
  47340. - # Rhapsody C and math libraries are in the System framework
  47341. - deplibs="$deplibs -framework System"
  47342. - continue
  47343. - ;;
  47344. - *-*-sco3.2v5* | *-*-sco5v6*)
  47345. - # Causes problems with __ctype
  47346. - test "X$arg" = "X-lc" && continue
  47347. - ;;
  47348. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47349. - # Compiler inserts libc in the correct place for threads to work
  47350. - test "X$arg" = "X-lc" && continue
  47351. - ;;
  47352. - esac
  47353. - elif test "X$arg" = "X-lc_r"; then
  47354. - case $host in
  47355. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47356. - # Do not include libc_r directly, use -pthread flag.
  47357. - continue
  47358. - ;;
  47359. - esac
  47360. - fi
  47361. - deplibs="$deplibs $arg"
  47362. - continue
  47363. - ;;
  47364. +All other options (arguments beginning with \`-') are ignored.
  47365. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  47366. - # classes, name mangling, and exception handling.
  47367. - -model)
  47368. - compile_command="$compile_command $arg"
  47369. - compiler_flags="$compiler_flags $arg"
  47370. - finalize_command="$finalize_command $arg"
  47371. - prev=xcompiler
  47372. - continue
  47373. - ;;
  47374. +Every other argument is treated as a filename. Files ending in \`.la' are
  47375. +treated as uninstalled libtool libraries, other files are standard or library
  47376. +object files.
  47377. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  47378. - compiler_flags="$compiler_flags $arg"
  47379. - compile_command="$compile_command $arg"
  47380. - finalize_command="$finalize_command $arg"
  47381. - continue
  47382. - ;;
  47383. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  47384. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  47385. +required, except when creating a convenience library.
  47386. - -multi_module)
  47387. - single_module="${wl}-multi_module"
  47388. - continue
  47389. - ;;
  47390. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  47391. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  47392. - -module)
  47393. - module=yes
  47394. - continue
  47395. - ;;
  47396. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  47397. +is created, otherwise an executable program is created."
  47398. + ;;
  47399. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  47400. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  47401. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  47402. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  47403. - # -q* pass through compiler args for the IBM compiler
  47404. - # -m* pass through architecture-specific compiler args for GCC
  47405. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  47406. - # compiler args for GCC
  47407. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  47408. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  47409. - # @file GCC response files
  47410. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  47411. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  47412. + uninstall)
  47413. + $ECHO \
  47414. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  47415. - # Unknown arguments in both finalize_command and compile_command need
  47416. - # to be aesthetically quoted because they are evaled later.
  47417. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  47418. - case $arg in
  47419. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47420. - arg="\"$arg\""
  47421. - ;;
  47422. - esac
  47423. - compile_command="$compile_command $arg"
  47424. - finalize_command="$finalize_command $arg"
  47425. - compiler_flags="$compiler_flags $arg"
  47426. - continue
  47427. +Remove libraries from an installation directory.
  47428. +
  47429. +RM is the name of the program to use to delete files associated with each FILE
  47430. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  47431. +to RM.
  47432. +
  47433. +If FILE is a libtool library, all the files associated with it are deleted.
  47434. +Otherwise, only FILE itself is deleted using RM."
  47435. ;;
  47436. - -shrext)
  47437. - prev=shrext
  47438. - continue
  47439. - ;;
  47440. + *)
  47441. + func_fatal_help "invalid operation mode \`$mode'"
  47442. + ;;
  47443. + esac
  47444. - -no-fast-install)
  47445. - fast_install=no
  47446. - continue
  47447. - ;;
  47448. + $ECHO
  47449. + $ECHO "Try \`$progname --help' for more information about other modes."
  47450. - -no-install)
  47451. - case $host in
  47452. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  47453. - # The PATH hackery in wrapper scripts is required on Windows
  47454. - # and Darwin in order for the loader to find any dlls it needs.
  47455. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  47456. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  47457. - fast_install=no
  47458. - ;;
  47459. - *) no_install=yes ;;
  47460. - esac
  47461. - continue
  47462. - ;;
  47463. + exit $?
  47464. +}
  47465. - -no-undefined)
  47466. - allow_undefined=no
  47467. - continue
  47468. - ;;
  47469. + # Now that we've collected a possible --mode arg, show help if necessary
  47470. + $opt_help && func_mode_help
  47471. - -objectlist)
  47472. - prev=objectlist
  47473. - continue
  47474. - ;;
  47475. - -o) prev=output ;;
  47476. +# func_mode_execute arg...
  47477. +func_mode_execute ()
  47478. +{
  47479. + $opt_debug
  47480. + # The first argument is the command name.
  47481. + cmd="$nonopt"
  47482. + test -z "$cmd" && \
  47483. + func_fatal_help "you must specify a COMMAND"
  47484. - -precious-files-regex)
  47485. - prev=precious_regex
  47486. - continue
  47487. - ;;
  47488. + # Handle -dlopen flags immediately.
  47489. + for file in $execute_dlfiles; do
  47490. + test -f "$file" \
  47491. + || func_fatal_help "\`$file' is not a file"
  47492. - -release)
  47493. - prev=release
  47494. - continue
  47495. - ;;
  47496. + dir=
  47497. + case $file in
  47498. + *.la)
  47499. + # Check to see that this really is a libtool archive.
  47500. + func_lalib_unsafe_p "$file" \
  47501. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  47502. - -rpath)
  47503. - prev=rpath
  47504. - continue
  47505. - ;;
  47506. + # Read the libtool library.
  47507. + dlname=
  47508. + library_names=
  47509. + func_source "$file"
  47510. - -R)
  47511. - prev=xrpath
  47512. - continue
  47513. - ;;
  47514. + # Skip this library if it cannot be dlopened.
  47515. + if test -z "$dlname"; then
  47516. + # Warn if it was a shared library.
  47517. + test -n "$library_names" && \
  47518. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  47519. + continue
  47520. + fi
  47521. - -R*)
  47522. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  47523. - # We need an absolute path.
  47524. - case $dir in
  47525. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47526. - *)
  47527. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  47528. - exit $EXIT_FAILURE
  47529. - ;;
  47530. - esac
  47531. - case "$xrpath " in
  47532. - *" $dir "*) ;;
  47533. - *) xrpath="$xrpath $dir" ;;
  47534. - esac
  47535. - continue
  47536. - ;;
  47537. + func_dirname "$file" "" "."
  47538. + dir="$func_dirname_result"
  47539. - -static | -static-libtool-libs)
  47540. - # The effects of -static are defined in a previous loop.
  47541. - # We used to do the same as -all-static on platforms that
  47542. - # didn't have a PIC flag, but the assumption that the effects
  47543. - # would be equivalent was wrong. It would break on at least
  47544. - # Digital Unix and AIX.
  47545. - continue
  47546. + if test -f "$dir/$objdir/$dlname"; then
  47547. + dir="$dir/$objdir"
  47548. + else
  47549. + if test ! -f "$dir/$dlname"; then
  47550. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  47551. + fi
  47552. + fi
  47553. ;;
  47554. - -thread-safe)
  47555. - thread_safe=yes
  47556. - continue
  47557. + *.lo)
  47558. + # Just add the directory containing the .lo file.
  47559. + func_dirname "$file" "" "."
  47560. + dir="$func_dirname_result"
  47561. ;;
  47562. - -version-info)
  47563. - prev=vinfo
  47564. - continue
  47565. - ;;
  47566. - -version-number)
  47567. - prev=vinfo
  47568. - vinfo_number=yes
  47569. + *)
  47570. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  47571. continue
  47572. ;;
  47573. + esac
  47574. - -Wc,*)
  47575. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  47576. - arg=
  47577. - save_ifs="$IFS"; IFS=','
  47578. - for flag in $args; do
  47579. - IFS="$save_ifs"
  47580. - case $flag in
  47581. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47582. - flag="\"$flag\""
  47583. - ;;
  47584. - esac
  47585. - arg="$arg $wl$flag"
  47586. - compiler_flags="$compiler_flags $flag"
  47587. - done
  47588. - IFS="$save_ifs"
  47589. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  47590. - ;;
  47591. + # Get the absolute pathname.
  47592. + absdir=`cd "$dir" && pwd`
  47593. + test -n "$absdir" && dir="$absdir"
  47594. - -Wl,*)
  47595. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  47596. - arg=
  47597. - save_ifs="$IFS"; IFS=','
  47598. - for flag in $args; do
  47599. - IFS="$save_ifs"
  47600. - case $flag in
  47601. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47602. - flag="\"$flag\""
  47603. - ;;
  47604. - esac
  47605. - arg="$arg $wl$flag"
  47606. - compiler_flags="$compiler_flags $wl$flag"
  47607. - linker_flags="$linker_flags $flag"
  47608. - done
  47609. - IFS="$save_ifs"
  47610. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  47611. - ;;
  47612. + # Now add the directory to shlibpath_var.
  47613. + if eval "test -z \"\$$shlibpath_var\""; then
  47614. + eval "$shlibpath_var=\"\$dir\""
  47615. + else
  47616. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  47617. + fi
  47618. + done
  47619. - -Xcompiler)
  47620. - prev=xcompiler
  47621. - continue
  47622. - ;;
  47623. + # This variable tells wrapper scripts just to set shlibpath_var
  47624. + # rather than running their programs.
  47625. + libtool_execute_magic="$magic"
  47626. - -Xlinker)
  47627. - prev=xlinker
  47628. - continue
  47629. + # Check if any of the arguments is a wrapper script.
  47630. + args=
  47631. + for file
  47632. + do
  47633. + case $file in
  47634. + -*) ;;
  47635. + *)
  47636. + # Do a test to see if this is really a libtool program.
  47637. + if func_ltwrapper_script_p "$file"; then
  47638. + func_source "$file"
  47639. + # Transform arg to wrapped name.
  47640. + file="$progdir/$program"
  47641. + elif func_ltwrapper_executable_p "$file"; then
  47642. + func_ltwrapper_scriptname "$file"
  47643. + func_source "$func_ltwrapper_scriptname_result"
  47644. + # Transform arg to wrapped name.
  47645. + file="$progdir/$program"
  47646. + fi
  47647. ;;
  47648. + esac
  47649. + # Quote arguments (to preserve shell metacharacters).
  47650. + func_quote_for_eval "$file"
  47651. + args="$args $func_quote_for_eval_result"
  47652. + done
  47653. - -XCClinker)
  47654. - prev=xcclinker
  47655. - continue
  47656. - ;;
  47657. + if test "X$opt_dry_run" = Xfalse; then
  47658. + if test -n "$shlibpath_var"; then
  47659. + # Export the shlibpath_var.
  47660. + eval "export $shlibpath_var"
  47661. + fi
  47662. - # Some other compiler flag.
  47663. - -* | +*)
  47664. - # Unknown arguments in both finalize_command and compile_command need
  47665. - # to be aesthetically quoted because they are evaled later.
  47666. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  47667. - case $arg in
  47668. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47669. - arg="\"$arg\""
  47670. - ;;
  47671. - esac
  47672. - ;;
  47673. + # Restore saved environment variables
  47674. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47675. + do
  47676. + eval "if test \"\${save_$lt_var+set}\" = set; then
  47677. + $lt_var=\$save_$lt_var; export $lt_var
  47678. + else
  47679. + $lt_unset $lt_var
  47680. + fi"
  47681. + done
  47682. - *.$objext)
  47683. - # A standard object.
  47684. - objs="$objs $arg"
  47685. - ;;
  47686. + # Now prepare to actually exec the command.
  47687. + exec_cmd="\$cmd$args"
  47688. + else
  47689. + # Display what would be done.
  47690. + if test -n "$shlibpath_var"; then
  47691. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  47692. + $ECHO "export $shlibpath_var"
  47693. + fi
  47694. + $ECHO "$cmd$args"
  47695. + exit $EXIT_SUCCESS
  47696. + fi
  47697. +}
  47698. - *.lo)
  47699. - # A libtool-controlled object.
  47700. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  47701. - # Check to see that this really is a libtool object.
  47702. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  47703. - pic_object=
  47704. - non_pic_object=
  47705. - # Read the .lo file
  47706. - # If there is no directory component, then add one.
  47707. - case $arg in
  47708. - */* | *\\*) . $arg ;;
  47709. - *) . ./$arg ;;
  47710. - esac
  47711. +# func_mode_finish arg...
  47712. +func_mode_finish ()
  47713. +{
  47714. + $opt_debug
  47715. + libdirs="$nonopt"
  47716. + admincmds=
  47717. - if test -z "$pic_object" || \
  47718. - test -z "$non_pic_object" ||
  47719. - test "$pic_object" = none && \
  47720. - test "$non_pic_object" = none; then
  47721. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  47722. - exit $EXIT_FAILURE
  47723. - fi
  47724. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  47725. + for dir
  47726. + do
  47727. + libdirs="$libdirs $dir"
  47728. + done
  47729. - # Extract subdirectory from the argument.
  47730. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47731. - if test "X$xdir" = "X$arg"; then
  47732. - xdir=
  47733. - else
  47734. - xdir="$xdir/"
  47735. - fi
  47736. + for libdir in $libdirs; do
  47737. + if test -n "$finish_cmds"; then
  47738. + # Do each command in the finish commands.
  47739. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  47740. +'"$cmd"'"'
  47741. + fi
  47742. + if test -n "$finish_eval"; then
  47743. + # Do the single finish_eval.
  47744. + eval cmds=\"$finish_eval\"
  47745. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  47746. + $cmds"
  47747. + fi
  47748. + done
  47749. + fi
  47750. - if test "$pic_object" != none; then
  47751. - # Prepend the subdirectory the object is found in.
  47752. - pic_object="$xdir$pic_object"
  47753. + # Exit here if they wanted silent mode.
  47754. + $opt_silent && exit $EXIT_SUCCESS
  47755. - if test "$prev" = dlfiles; then
  47756. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47757. - dlfiles="$dlfiles $pic_object"
  47758. - prev=
  47759. - continue
  47760. - else
  47761. - # If libtool objects are unsupported, then we need to preload.
  47762. - prev=dlprefiles
  47763. - fi
  47764. - fi
  47765. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  47766. + $ECHO "Libraries have been installed in:"
  47767. + for libdir in $libdirs; do
  47768. + $ECHO " $libdir"
  47769. + done
  47770. + $ECHO
  47771. + $ECHO "If you ever happen to want to link against installed libraries"
  47772. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  47773. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  47774. + $ECHO "flag during linking and do at least one of the following:"
  47775. + if test -n "$shlibpath_var"; then
  47776. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  47777. + $ECHO " during execution"
  47778. + fi
  47779. + if test -n "$runpath_var"; then
  47780. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  47781. + $ECHO " during linking"
  47782. + fi
  47783. + if test -n "$hardcode_libdir_flag_spec"; then
  47784. + libdir=LIBDIR
  47785. + eval flag=\"$hardcode_libdir_flag_spec\"
  47786. - # CHECK ME: I think I busted this. -Ossama
  47787. - if test "$prev" = dlprefiles; then
  47788. - # Preload the old-style object.
  47789. - dlprefiles="$dlprefiles $pic_object"
  47790. - prev=
  47791. - fi
  47792. + $ECHO " - use the \`$flag' linker flag"
  47793. + fi
  47794. + if test -n "$admincmds"; then
  47795. + $ECHO " - have your system administrator run these commands:$admincmds"
  47796. + fi
  47797. + if test -f /etc/ld.so.conf; then
  47798. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  47799. + fi
  47800. + $ECHO
  47801. - # A PIC object.
  47802. - libobjs="$libobjs $pic_object"
  47803. - arg="$pic_object"
  47804. - fi
  47805. + $ECHO "See any operating system documentation about shared libraries for"
  47806. + case $host in
  47807. + solaris2.[6789]|solaris2.1[0-9])
  47808. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  47809. + $ECHO "pages."
  47810. + ;;
  47811. + *)
  47812. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  47813. + ;;
  47814. + esac
  47815. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  47816. + exit $EXIT_SUCCESS
  47817. +}
  47818. - # Non-PIC object.
  47819. - if test "$non_pic_object" != none; then
  47820. - # Prepend the subdirectory the object is found in.
  47821. - non_pic_object="$xdir$non_pic_object"
  47822. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  47823. - # A standard non-PIC object
  47824. - non_pic_objects="$non_pic_objects $non_pic_object"
  47825. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47826. - arg="$non_pic_object"
  47827. - fi
  47828. - else
  47829. - # If the PIC object exists, use it instead.
  47830. - # $xdir was prepended to $pic_object above.
  47831. - non_pic_object="$pic_object"
  47832. - non_pic_objects="$non_pic_objects $non_pic_object"
  47833. - fi
  47834. - else
  47835. - # Only an error if not doing a dry-run.
  47836. - if test -z "$run"; then
  47837. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  47838. - exit $EXIT_FAILURE
  47839. - else
  47840. - # Dry-run case.
  47841. - # Extract subdirectory from the argument.
  47842. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  47843. - if test "X$xdir" = "X$arg"; then
  47844. - xdir=
  47845. - else
  47846. - xdir="$xdir/"
  47847. - fi
  47848. +# func_mode_install arg...
  47849. +func_mode_install ()
  47850. +{
  47851. + $opt_debug
  47852. + # There may be an optional sh(1) argument at the beginning of
  47853. + # install_prog (especially on Windows NT).
  47854. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  47855. + # Allow the use of GNU shtool's install command.
  47856. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  47857. + # Aesthetically quote it.
  47858. + func_quote_for_eval "$nonopt"
  47859. + install_prog="$func_quote_for_eval_result "
  47860. + arg=$1
  47861. + shift
  47862. + else
  47863. + install_prog=
  47864. + arg=$nonopt
  47865. + fi
  47866. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47867. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47868. - libobjs="$libobjs $pic_object"
  47869. - non_pic_objects="$non_pic_objects $non_pic_object"
  47870. - fi
  47871. - fi
  47872. - ;;
  47873. + # The real first argument should be the name of the installation program.
  47874. + # Aesthetically quote it.
  47875. + func_quote_for_eval "$arg"
  47876. + install_prog="$install_prog$func_quote_for_eval_result"
  47877. - *.$libext)
  47878. - # An archive.
  47879. - deplibs="$deplibs $arg"
  47880. - old_deplibs="$old_deplibs $arg"
  47881. + # We need to accept at least all the BSD install flags.
  47882. + dest=
  47883. + files=
  47884. + opts=
  47885. + prev=
  47886. + install_type=
  47887. + isdir=no
  47888. + stripme=
  47889. + for arg
  47890. + do
  47891. + if test -n "$dest"; then
  47892. + files="$files $dest"
  47893. + dest=$arg
  47894. continue
  47895. - ;;
  47896. -
  47897. - *.la)
  47898. - # A libtool-controlled library.
  47899. + fi
  47900. - if test "$prev" = dlfiles; then
  47901. - # This library was specified with -dlopen.
  47902. - dlfiles="$dlfiles $arg"
  47903. - prev=
  47904. - elif test "$prev" = dlprefiles; then
  47905. - # The library was specified with -dlpreopen.
  47906. - dlprefiles="$dlprefiles $arg"
  47907. + case $arg in
  47908. + -d) isdir=yes ;;
  47909. + -f)
  47910. + case " $install_prog " in
  47911. + *[\\\ /]cp\ *) ;;
  47912. + *) prev=$arg ;;
  47913. + esac
  47914. + ;;
  47915. + -g | -m | -o)
  47916. + prev=$arg
  47917. + ;;
  47918. + -s)
  47919. + stripme=" -s"
  47920. + continue
  47921. + ;;
  47922. + -*)
  47923. + ;;
  47924. + *)
  47925. + # If the previous option needed an argument, then skip it.
  47926. + if test -n "$prev"; then
  47927. prev=
  47928. else
  47929. - deplibs="$deplibs $arg"
  47930. + dest=$arg
  47931. + continue
  47932. fi
  47933. - continue
  47934. ;;
  47935. + esac
  47936. - # Some other compiler argument.
  47937. - *)
  47938. - # Unknown arguments in both finalize_command and compile_command need
  47939. - # to be aesthetically quoted because they are evaled later.
  47940. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  47941. - case $arg in
  47942. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47943. - arg="\"$arg\""
  47944. - ;;
  47945. - esac
  47946. - ;;
  47947. - esac # arg
  47948. + # Aesthetically quote the argument.
  47949. + func_quote_for_eval "$arg"
  47950. + install_prog="$install_prog $func_quote_for_eval_result"
  47951. + done
  47952. - # Now actually substitute the argument into the commands.
  47953. - if test -n "$arg"; then
  47954. - compile_command="$compile_command $arg"
  47955. - finalize_command="$finalize_command $arg"
  47956. - fi
  47957. - done # argument parsing loop
  47958. + test -z "$install_prog" && \
  47959. + func_fatal_help "you must specify an install program"
  47960. - if test -n "$prev"; then
  47961. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  47962. - $echo "$help" 1>&2
  47963. - exit $EXIT_FAILURE
  47964. - fi
  47965. + test -n "$prev" && \
  47966. + func_fatal_help "the \`$prev' option requires an argument"
  47967. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  47968. - eval arg=\"$export_dynamic_flag_spec\"
  47969. - compile_command="$compile_command $arg"
  47970. - finalize_command="$finalize_command $arg"
  47971. + if test -z "$files"; then
  47972. + if test -z "$dest"; then
  47973. + func_fatal_help "no file or destination specified"
  47974. + else
  47975. + func_fatal_help "you must specify a destination"
  47976. + fi
  47977. fi
  47978. - oldlibs=
  47979. - # calculate the name of the file, without its directory
  47980. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  47981. - libobjs_save="$libobjs"
  47982. + # Strip any trailing slash from the destination.
  47983. + func_stripname '' '/' "$dest"
  47984. + dest=$func_stripname_result
  47985. - if test -n "$shlibpath_var"; then
  47986. - # get the directories listed in $shlibpath_var
  47987. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  47988. + # Check to see that the destination is a directory.
  47989. + test -d "$dest" && isdir=yes
  47990. + if test "$isdir" = yes; then
  47991. + destdir="$dest"
  47992. + destname=
  47993. else
  47994. - shlib_search_path=
  47995. - fi
  47996. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  47997. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  47998. + func_dirname_and_basename "$dest" "" "."
  47999. + destdir="$func_dirname_result"
  48000. + destname="$func_basename_result"
  48001. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  48002. - if test "X$output_objdir" = "X$output"; then
  48003. - output_objdir="$objdir"
  48004. - else
  48005. - output_objdir="$output_objdir/$objdir"
  48006. - fi
  48007. - # Create the object directory.
  48008. - if test ! -d "$output_objdir"; then
  48009. - $show "$mkdir $output_objdir"
  48010. - $run $mkdir $output_objdir
  48011. - exit_status=$?
  48012. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  48013. - exit $exit_status
  48014. - fi
  48015. + # Not a directory, so check to see that there is only one file specified.
  48016. + set dummy $files; shift
  48017. + test "$#" -gt 1 && \
  48018. + func_fatal_help "\`$dest' is not a directory"
  48019. fi
  48020. -
  48021. - # Determine the type of output
  48022. - case $output in
  48023. - "")
  48024. - $echo "$modename: you must specify an output file" 1>&2
  48025. - $echo "$help" 1>&2
  48026. - exit $EXIT_FAILURE
  48027. - ;;
  48028. - *.$libext) linkmode=oldlib ;;
  48029. - *.lo | *.$objext) linkmode=obj ;;
  48030. - *.la) linkmode=lib ;;
  48031. - *) linkmode=prog ;; # Anything else should be a program.
  48032. - esac
  48033. -
  48034. - case $host in
  48035. - *cygwin* | *mingw* | *pw32*)
  48036. - # don't eliminate duplications in $postdeps and $predeps
  48037. - duplicate_compiler_generated_deps=yes
  48038. - ;;
  48039. + case $destdir in
  48040. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  48041. *)
  48042. - duplicate_compiler_generated_deps=$duplicate_deps
  48043. + for file in $files; do
  48044. + case $file in
  48045. + *.lo) ;;
  48046. + *)
  48047. + func_fatal_help "\`$destdir' must be an absolute directory name"
  48048. + ;;
  48049. + esac
  48050. + done
  48051. ;;
  48052. esac
  48053. - specialdeplibs=
  48054. - libs=
  48055. - # Find all interdependent deplibs by searching for libraries
  48056. - # that are linked more than once (e.g. -la -lb -la)
  48057. - for deplib in $deplibs; do
  48058. - if test "X$duplicate_deps" = "Xyes" ; then
  48059. - case "$libs " in
  48060. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48061. - esac
  48062. - fi
  48063. - libs="$libs $deplib"
  48064. - done
  48065. + # This variable tells wrapper scripts just to set variables rather
  48066. + # than running their programs.
  48067. + libtool_install_magic="$magic"
  48068. - if test "$linkmode" = lib; then
  48069. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  48070. + staticlibs=
  48071. + future_libdirs=
  48072. + current_libdirs=
  48073. + for file in $files; do
  48074. - # Compute libraries that are listed more than once in $predeps
  48075. - # $postdeps and mark them as special (i.e., whose duplicates are
  48076. - # not to be eliminated).
  48077. - pre_post_deps=
  48078. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  48079. - for pre_post_dep in $predeps $postdeps; do
  48080. - case "$pre_post_deps " in
  48081. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  48082. + # Do each installation.
  48083. + case $file in
  48084. + *.$libext)
  48085. + # Do the static libraries later.
  48086. + staticlibs="$staticlibs $file"
  48087. + ;;
  48088. +
  48089. + *.la)
  48090. + # Check to see that this really is a libtool archive.
  48091. + func_lalib_unsafe_p "$file" \
  48092. + || func_fatal_help "\`$file' is not a valid libtool archive"
  48093. +
  48094. + library_names=
  48095. + old_library=
  48096. + relink_command=
  48097. + func_source "$file"
  48098. +
  48099. + # Add the libdir to current_libdirs if it is the destination.
  48100. + if test "X$destdir" = "X$libdir"; then
  48101. + case "$current_libdirs " in
  48102. + *" $libdir "*) ;;
  48103. + *) current_libdirs="$current_libdirs $libdir" ;;
  48104. esac
  48105. - pre_post_deps="$pre_post_deps $pre_post_dep"
  48106. - done
  48107. - fi
  48108. - pre_post_deps=
  48109. - fi
  48110. + else
  48111. + # Note the libdir as a future libdir.
  48112. + case "$future_libdirs " in
  48113. + *" $libdir "*) ;;
  48114. + *) future_libdirs="$future_libdirs $libdir" ;;
  48115. + esac
  48116. + fi
  48117. - deplibs=
  48118. - newdependency_libs=
  48119. - newlib_search_path=
  48120. - need_relink=no # whether we're linking any uninstalled libtool libraries
  48121. - notinst_deplibs= # not-installed libtool libraries
  48122. - case $linkmode in
  48123. - lib)
  48124. - passes="conv link"
  48125. - for file in $dlfiles $dlprefiles; do
  48126. - case $file in
  48127. - *.la) ;;
  48128. - *)
  48129. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  48130. - exit $EXIT_FAILURE
  48131. + func_dirname "$file" "/" ""
  48132. + dir="$func_dirname_result"
  48133. + dir="$dir$objdir"
  48134. +
  48135. + if test -n "$relink_command"; then
  48136. + # Determine the prefix the user has applied to our future dir.
  48137. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  48138. +
  48139. + # Don't allow the user to place us outside of our expected
  48140. + # location b/c this prevents finding dependent libraries that
  48141. + # are installed to the same prefix.
  48142. + # At present, this check doesn't affect windows .dll's that
  48143. + # are installed into $libdir/../bin (currently, that works fine)
  48144. + # but it's something to keep an eye on.
  48145. + test "$inst_prefix_dir" = "$destdir" && \
  48146. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  48147. +
  48148. + if test -n "$inst_prefix_dir"; then
  48149. + # Stick the inst_prefix_dir data into the link command.
  48150. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  48151. + else
  48152. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  48153. + fi
  48154. +
  48155. + func_warning "relinking \`$file'"
  48156. + func_show_eval "$relink_command" \
  48157. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  48158. + fi
  48159. +
  48160. + # See the names of the shared library.
  48161. + set dummy $library_names; shift
  48162. + if test -n "$1"; then
  48163. + realname="$1"
  48164. + shift
  48165. +
  48166. + srcname="$realname"
  48167. + test -n "$relink_command" && srcname="$realname"T
  48168. +
  48169. + # Install the shared library and build the symlinks.
  48170. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  48171. + 'exit $?'
  48172. + tstripme="$stripme"
  48173. + case $host_os in
  48174. + cygwin* | mingw* | pw32* | cegcc*)
  48175. + case $realname in
  48176. + *.dll.a)
  48177. + tstripme=""
  48178. + ;;
  48179. + esac
  48180. ;;
  48181. esac
  48182. - done
  48183. - ;;
  48184. - prog)
  48185. - compile_deplibs=
  48186. - finalize_deplibs=
  48187. - alldeplibs=no
  48188. - newdlfiles=
  48189. - newdlprefiles=
  48190. - passes="conv scan dlopen dlpreopen link"
  48191. - ;;
  48192. - *) passes="conv"
  48193. - ;;
  48194. - esac
  48195. - for pass in $passes; do
  48196. - if test "$linkmode,$pass" = "lib,link" ||
  48197. - test "$linkmode,$pass" = "prog,scan"; then
  48198. - libs="$deplibs"
  48199. - deplibs=
  48200. - fi
  48201. - if test "$linkmode" = prog; then
  48202. - case $pass in
  48203. - dlopen) libs="$dlfiles" ;;
  48204. - dlpreopen) libs="$dlprefiles" ;;
  48205. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  48206. - esac
  48207. - fi
  48208. - if test "$pass" = dlopen; then
  48209. - # Collect dlpreopened libraries
  48210. - save_deplibs="$deplibs"
  48211. - deplibs=
  48212. - fi
  48213. - for deplib in $libs; do
  48214. - lib=
  48215. - found=no
  48216. - case $deplib in
  48217. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  48218. - if test "$linkmode,$pass" = "prog,link"; then
  48219. - compile_deplibs="$deplib $compile_deplibs"
  48220. - finalize_deplibs="$deplib $finalize_deplibs"
  48221. - else
  48222. - compiler_flags="$compiler_flags $deplib"
  48223. - fi
  48224. - continue
  48225. - ;;
  48226. - -l*)
  48227. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  48228. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  48229. - continue
  48230. - fi
  48231. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  48232. - if test "$linkmode" = lib; then
  48233. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  48234. - else
  48235. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  48236. + if test -n "$tstripme" && test -n "$striplib"; then
  48237. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  48238. fi
  48239. - for searchdir in $searchdirs; do
  48240. - for search_ext in .la $std_shrext .so .a; do
  48241. - # Search the libtool library
  48242. - lib="$searchdir/lib${name}${search_ext}"
  48243. - if test -f "$lib"; then
  48244. - if test "$search_ext" = ".la"; then
  48245. - found=yes
  48246. - else
  48247. - found=no
  48248. - fi
  48249. - break 2
  48250. - fi
  48251. +
  48252. + if test "$#" -gt 0; then
  48253. + # Delete the old symlinks, and create new ones.
  48254. + # Try `ln -sf' first, because the `ln' binary might depend on
  48255. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  48256. + # so we also need to try rm && ln -s.
  48257. + for linkname
  48258. + do
  48259. + test "$linkname" != "$realname" \
  48260. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  48261. done
  48262. - done
  48263. - if test "$found" != yes; then
  48264. - # deplib doesn't seem to be a libtool library
  48265. - if test "$linkmode,$pass" = "prog,link"; then
  48266. - compile_deplibs="$deplib $compile_deplibs"
  48267. - finalize_deplibs="$deplib $finalize_deplibs"
  48268. - else
  48269. - deplibs="$deplib $deplibs"
  48270. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48271. - fi
  48272. - continue
  48273. - else # deplib is a libtool library
  48274. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  48275. - # We need to do some special things here, and not later.
  48276. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48277. - case " $predeps $postdeps " in
  48278. - *" $deplib "*)
  48279. - if (${SED} -e '2q' $lib |
  48280. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  48281. - library_names=
  48282. - old_library=
  48283. - case $lib in
  48284. - */* | *\\*) . $lib ;;
  48285. - *) . ./$lib ;;
  48286. - esac
  48287. - for l in $old_library $library_names; do
  48288. - ll="$l"
  48289. - done
  48290. - if test "X$ll" = "X$old_library" ; then # only static version available
  48291. - found=no
  48292. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  48293. - test "X$ladir" = "X$lib" && ladir="."
  48294. - lib=$ladir/$old_library
  48295. - if test "$linkmode,$pass" = "prog,link"; then
  48296. - compile_deplibs="$deplib $compile_deplibs"
  48297. - finalize_deplibs="$deplib $finalize_deplibs"
  48298. - else
  48299. - deplibs="$deplib $deplibs"
  48300. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  48301. - fi
  48302. - continue
  48303. - fi
  48304. - fi
  48305. - ;;
  48306. - *) ;;
  48307. - esac
  48308. - fi
  48309. - fi
  48310. - ;; # -l
  48311. - -L*)
  48312. - case $linkmode in
  48313. - lib)
  48314. - deplibs="$deplib $deplibs"
  48315. - test "$pass" = conv && continue
  48316. - newdependency_libs="$deplib $newdependency_libs"
  48317. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  48318. - ;;
  48319. - prog)
  48320. - if test "$pass" = conv; then
  48321. - deplibs="$deplib $deplibs"
  48322. - continue
  48323. - fi
  48324. - if test "$pass" = scan; then
  48325. - deplibs="$deplib $deplibs"
  48326. - else
  48327. - compile_deplibs="$deplib $compile_deplibs"
  48328. - finalize_deplibs="$deplib $finalize_deplibs"
  48329. - fi
  48330. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  48331. - ;;
  48332. - *)
  48333. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  48334. - ;;
  48335. - esac # linkmode
  48336. - continue
  48337. - ;; # -L
  48338. - -R*)
  48339. - if test "$pass" = link; then
  48340. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  48341. - # Make sure the xrpath contains only unique directories.
  48342. - case "$xrpath " in
  48343. - *" $dir "*) ;;
  48344. - *) xrpath="$xrpath $dir" ;;
  48345. - esac
  48346. - fi
  48347. - deplibs="$deplib $deplibs"
  48348. - continue
  48349. - ;;
  48350. - *.la) lib="$deplib" ;;
  48351. - *.$libext)
  48352. - if test "$pass" = conv; then
  48353. - deplibs="$deplib $deplibs"
  48354. - continue
  48355. - fi
  48356. - case $linkmode in
  48357. - lib)
  48358. - valid_a_lib=no
  48359. - case $deplibs_check_method in
  48360. - match_pattern*)
  48361. - set dummy $deplibs_check_method
  48362. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  48363. - if eval $echo \"$deplib\" 2>/dev/null \
  48364. - | $SED 10q \
  48365. - | $EGREP "$match_pattern_regex" > /dev/null; then
  48366. - valid_a_lib=yes
  48367. - fi
  48368. - ;;
  48369. - pass_all)
  48370. - valid_a_lib=yes
  48371. - ;;
  48372. - esac
  48373. - if test "$valid_a_lib" != yes; then
  48374. - $echo
  48375. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  48376. - $echo "*** I have the capability to make that library automatically link in when"
  48377. - $echo "*** you link to this library. But I can only do this if you have a"
  48378. - $echo "*** shared version of the library, which you do not appear to have"
  48379. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  48380. - $echo "*** that it is just a static archive that I should not used here."
  48381. - else
  48382. - $echo
  48383. - $echo "*** Warning: Linking the shared library $output against the"
  48384. - $echo "*** static library $deplib is not portable!"
  48385. - deplibs="$deplib $deplibs"
  48386. - fi
  48387. - continue
  48388. - ;;
  48389. - prog)
  48390. - if test "$pass" != link; then
  48391. - deplibs="$deplib $deplibs"
  48392. - else
  48393. - compile_deplibs="$deplib $compile_deplibs"
  48394. - finalize_deplibs="$deplib $finalize_deplibs"
  48395. - fi
  48396. - continue
  48397. - ;;
  48398. - esac # linkmode
  48399. - ;; # *.$libext
  48400. - *.lo | *.$objext)
  48401. - if test "$pass" = conv; then
  48402. - deplibs="$deplib $deplibs"
  48403. - elif test "$linkmode" = prog; then
  48404. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  48405. - # If there is no dlopen support or we're linking statically,
  48406. - # we need to preload.
  48407. - newdlprefiles="$newdlprefiles $deplib"
  48408. - compile_deplibs="$deplib $compile_deplibs"
  48409. - finalize_deplibs="$deplib $finalize_deplibs"
  48410. - else
  48411. - newdlfiles="$newdlfiles $deplib"
  48412. - fi
  48413. fi
  48414. - continue
  48415. - ;;
  48416. - %DEPLIBS%)
  48417. - alldeplibs=yes
  48418. - continue
  48419. - ;;
  48420. - esac # case $deplib
  48421. - if test "$found" = yes || test -f "$lib"; then :
  48422. - else
  48423. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  48424. - exit $EXIT_FAILURE
  48425. - fi
  48426. - # Check to see that this really is a libtool archive.
  48427. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48428. - else
  48429. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48430. - exit $EXIT_FAILURE
  48431. + # Do each command in the postinstall commands.
  48432. + lib="$destdir/$realname"
  48433. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  48434. fi
  48435. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  48436. - test "X$ladir" = "X$lib" && ladir="."
  48437. -
  48438. - dlname=
  48439. - dlopen=
  48440. - dlpreopen=
  48441. - libdir=
  48442. - library_names=
  48443. - old_library=
  48444. - # If the library was installed with an old release of libtool,
  48445. - # it will not redefine variables installed, or shouldnotlink
  48446. - installed=yes
  48447. - shouldnotlink=no
  48448. - avoidtemprpath=
  48449. + # Install the pseudo-library for information purposes.
  48450. + func_basename "$file"
  48451. + name="$func_basename_result"
  48452. + instname="$dir/$name"i
  48453. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  48454. + # Maybe install the static library, too.
  48455. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  48456. + ;;
  48457. - # Read the .la file
  48458. - case $lib in
  48459. - */* | *\\*) . $lib ;;
  48460. - *) . ./$lib ;;
  48461. - esac
  48462. + *.lo)
  48463. + # Install (i.e. copy) a libtool object.
  48464. - if test "$linkmode,$pass" = "lib,link" ||
  48465. - test "$linkmode,$pass" = "prog,scan" ||
  48466. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  48467. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  48468. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  48469. + # Figure out destination file name, if it wasn't already specified.
  48470. + if test -n "$destname"; then
  48471. + destfile="$destdir/$destname"
  48472. + else
  48473. + func_basename "$file"
  48474. + destfile="$func_basename_result"
  48475. + destfile="$destdir/$destfile"
  48476. fi
  48477. - if test "$pass" = conv; then
  48478. - # Only check for convenience libraries
  48479. - deplibs="$lib $deplibs"
  48480. - if test -z "$libdir"; then
  48481. - if test -z "$old_library"; then
  48482. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48483. - exit $EXIT_FAILURE
  48484. - fi
  48485. - # It is a libtool convenience library, so add in its objects.
  48486. - convenience="$convenience $ladir/$objdir/$old_library"
  48487. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  48488. - tmp_libs=
  48489. - for deplib in $dependency_libs; do
  48490. - deplibs="$deplib $deplibs"
  48491. - if test "X$duplicate_deps" = "Xyes" ; then
  48492. - case "$tmp_libs " in
  48493. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48494. - esac
  48495. - fi
  48496. - tmp_libs="$tmp_libs $deplib"
  48497. - done
  48498. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  48499. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  48500. - exit $EXIT_FAILURE
  48501. - fi
  48502. - continue
  48503. - fi # $pass = conv
  48504. + # Deduce the name of the destination old-style object file.
  48505. + case $destfile in
  48506. + *.lo)
  48507. + func_lo2o "$destfile"
  48508. + staticdest=$func_lo2o_result
  48509. + ;;
  48510. + *.$objext)
  48511. + staticdest="$destfile"
  48512. + destfile=
  48513. + ;;
  48514. + *)
  48515. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  48516. + ;;
  48517. + esac
  48518. + # Install the libtool object if requested.
  48519. + test -n "$destfile" && \
  48520. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  48521. - # Get the name of the library we link against.
  48522. - linklib=
  48523. - for l in $old_library $library_names; do
  48524. - linklib="$l"
  48525. - done
  48526. - if test -z "$linklib"; then
  48527. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48528. - exit $EXIT_FAILURE
  48529. + # Install the old object if enabled.
  48530. + if test "$build_old_libs" = yes; then
  48531. + # Deduce the name of the old-style object file.
  48532. + func_lo2o "$file"
  48533. + staticobj=$func_lo2o_result
  48534. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  48535. fi
  48536. + exit $EXIT_SUCCESS
  48537. + ;;
  48538. - # This library was specified with -dlopen.
  48539. - if test "$pass" = dlopen; then
  48540. - if test -z "$libdir"; then
  48541. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  48542. - exit $EXIT_FAILURE
  48543. - fi
  48544. - if test -z "$dlname" ||
  48545. - test "$dlopen_support" != yes ||
  48546. - test "$build_libtool_libs" = no; then
  48547. - # If there is no dlname, no dlopen support or we're linking
  48548. - # statically, we need to preload. We also need to preload any
  48549. - # dependent libraries so libltdl's deplib preloader doesn't
  48550. - # bomb out in the load deplibs phase.
  48551. - dlprefiles="$dlprefiles $lib $dependency_libs"
  48552. - else
  48553. - newdlfiles="$newdlfiles $lib"
  48554. - fi
  48555. - continue
  48556. - fi # $pass = dlopen
  48557. + *)
  48558. + # Figure out destination file name, if it wasn't already specified.
  48559. + if test -n "$destname"; then
  48560. + destfile="$destdir/$destname"
  48561. + else
  48562. + func_basename "$file"
  48563. + destfile="$func_basename_result"
  48564. + destfile="$destdir/$destfile"
  48565. + fi
  48566. - # We need an absolute path.
  48567. - case $ladir in
  48568. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  48569. + # If the file is missing, and there is a .exe on the end, strip it
  48570. + # because it is most likely a libtool script we actually want to
  48571. + # install
  48572. + stripped_ext=""
  48573. + case $file in
  48574. + *.exe)
  48575. + if test ! -f "$file"; then
  48576. + func_stripname '' '.exe' "$file"
  48577. + file=$func_stripname_result
  48578. + stripped_ext=".exe"
  48579. + fi
  48580. + ;;
  48581. + esac
  48582. +
  48583. + # Do a test to see if this is really a libtool program.
  48584. + case $host in
  48585. + *cygwin* | *mingw*)
  48586. + if func_ltwrapper_executable_p "$file"; then
  48587. + func_ltwrapper_scriptname "$file"
  48588. + wrapper=$func_ltwrapper_scriptname_result
  48589. + else
  48590. + func_stripname '' '.exe' "$file"
  48591. + wrapper=$func_stripname_result
  48592. + fi
  48593. + ;;
  48594. *)
  48595. - abs_ladir=`cd "$ladir" && pwd`
  48596. - if test -z "$abs_ladir"; then
  48597. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  48598. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  48599. - abs_ladir="$ladir"
  48600. + wrapper=$file
  48601. + ;;
  48602. + esac
  48603. + if func_ltwrapper_script_p "$wrapper"; then
  48604. + notinst_deplibs=
  48605. + relink_command=
  48606. +
  48607. + func_source "$wrapper"
  48608. +
  48609. + # Check the variables that should have been set.
  48610. + test -z "$generated_by_libtool_version" && \
  48611. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  48612. +
  48613. + finalize=yes
  48614. + for lib in $notinst_deplibs; do
  48615. + # Check to see that each library is installed.
  48616. + libdir=
  48617. + if test -f "$lib"; then
  48618. + func_source "$lib"
  48619. + fi
  48620. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  48621. + if test -n "$libdir" && test ! -f "$libfile"; then
  48622. + func_warning "\`$lib' has not been installed in \`$libdir'"
  48623. + finalize=no
  48624. + fi
  48625. + done
  48626. +
  48627. + relink_command=
  48628. + func_source "$wrapper"
  48629. +
  48630. + outputname=
  48631. + if test "$fast_install" = no && test -n "$relink_command"; then
  48632. + $opt_dry_run || {
  48633. + if test "$finalize" = yes; then
  48634. + tmpdir=`func_mktempdir`
  48635. + func_basename "$file$stripped_ext"
  48636. + file="$func_basename_result"
  48637. + outputname="$tmpdir/$file"
  48638. + # Replace the output file specification.
  48639. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  48640. +
  48641. + $opt_silent || {
  48642. + func_quote_for_expand "$relink_command"
  48643. + eval "func_echo $func_quote_for_expand_result"
  48644. + }
  48645. + if eval "$relink_command"; then :
  48646. + else
  48647. + func_error "error: relink \`$file' with the above command before installing it"
  48648. + $opt_dry_run || ${RM}r "$tmpdir"
  48649. + continue
  48650. + fi
  48651. + file="$outputname"
  48652. + else
  48653. + func_warning "cannot relink \`$file'"
  48654. + fi
  48655. + }
  48656. + else
  48657. + # Install the binary that we compiled earlier.
  48658. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48659. fi
  48660. + fi
  48661. +
  48662. + # remove .exe since cygwin /usr/bin/install will append another
  48663. + # one anyway
  48664. + case $install_prog,$host in
  48665. + */usr/bin/install*,*cygwin*)
  48666. + case $file:$destfile in
  48667. + *.exe:*.exe)
  48668. + # this is ok
  48669. + ;;
  48670. + *.exe:*)
  48671. + destfile=$destfile.exe
  48672. + ;;
  48673. + *:*.exe)
  48674. + func_stripname '' '.exe' "$destfile"
  48675. + destfile=$func_stripname_result
  48676. + ;;
  48677. + esac
  48678. ;;
  48679. esac
  48680. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48681. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  48682. + $opt_dry_run || if test -n "$outputname"; then
  48683. + ${RM}r "$tmpdir"
  48684. + fi
  48685. + ;;
  48686. + esac
  48687. + done
  48688. - # Find the relevant object directory and library name.
  48689. - if test "X$installed" = Xyes; then
  48690. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  48691. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  48692. - dir="$ladir"
  48693. - absdir="$abs_ladir"
  48694. - libdir="$abs_ladir"
  48695. - else
  48696. - dir="$libdir"
  48697. - absdir="$libdir"
  48698. + for file in $staticlibs; do
  48699. + func_basename "$file"
  48700. + name="$func_basename_result"
  48701. +
  48702. + # Set up the ranlib parameters.
  48703. + oldlib="$destdir/$name"
  48704. +
  48705. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  48706. +
  48707. + if test -n "$stripme" && test -n "$old_striplib"; then
  48708. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  48709. + fi
  48710. +
  48711. + # Do each command in the postinstall commands.
  48712. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  48713. + done
  48714. +
  48715. + test -n "$future_libdirs" && \
  48716. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  48717. +
  48718. + if test -n "$current_libdirs"; then
  48719. + # Maybe just do a dry run.
  48720. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  48721. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  48722. + else
  48723. + exit $EXIT_SUCCESS
  48724. + fi
  48725. +}
  48726. +
  48727. +test "$mode" = install && func_mode_install ${1+"$@"}
  48728. +
  48729. +
  48730. +# func_generate_dlsyms outputname originator pic_p
  48731. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  48732. +# a dlpreopen symbol table.
  48733. +func_generate_dlsyms ()
  48734. +{
  48735. + $opt_debug
  48736. + my_outputname="$1"
  48737. + my_originator="$2"
  48738. + my_pic_p="${3-no}"
  48739. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  48740. + my_dlsyms=
  48741. +
  48742. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48743. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  48744. + my_dlsyms="${my_outputname}S.c"
  48745. + else
  48746. + func_error "not configured to extract global symbols from dlpreopened files"
  48747. + fi
  48748. + fi
  48749. +
  48750. + if test -n "$my_dlsyms"; then
  48751. + case $my_dlsyms in
  48752. + "") ;;
  48753. + *.c)
  48754. + # Discover the nlist of each of the dlfiles.
  48755. + nlist="$output_objdir/${my_outputname}.nm"
  48756. +
  48757. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  48758. +
  48759. + # Parse the name list into a source file.
  48760. + func_verbose "creating $output_objdir/$my_dlsyms"
  48761. +
  48762. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  48763. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  48764. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  48765. +
  48766. +#ifdef __cplusplus
  48767. +extern \"C\" {
  48768. +#endif
  48769. +
  48770. +/* External symbol declarations for the compiler. */\
  48771. +"
  48772. +
  48773. + if test "$dlself" = yes; then
  48774. + func_verbose "generating symbol list for \`$output'"
  48775. +
  48776. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  48777. +
  48778. + # Add our own program objects to the symbol list.
  48779. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48780. + for progfile in $progfiles; do
  48781. + func_verbose "extracting global C symbols from \`$progfile'"
  48782. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  48783. + done
  48784. +
  48785. + if test -n "$exclude_expsyms"; then
  48786. + $opt_dry_run || {
  48787. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  48788. + eval '$MV "$nlist"T "$nlist"'
  48789. + }
  48790. fi
  48791. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  48792. - else
  48793. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  48794. - dir="$ladir"
  48795. - absdir="$abs_ladir"
  48796. - # Remove this search path later
  48797. - notinst_path="$notinst_path $abs_ladir"
  48798. +
  48799. + if test -n "$export_symbols_regex"; then
  48800. + $opt_dry_run || {
  48801. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  48802. + eval '$MV "$nlist"T "$nlist"'
  48803. + }
  48804. + fi
  48805. +
  48806. + # Prepare the list of exported symbols
  48807. + if test -z "$export_symbols"; then
  48808. + export_symbols="$output_objdir/$outputname.exp"
  48809. + $opt_dry_run || {
  48810. + $RM $export_symbols
  48811. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  48812. + case $host in
  48813. + *cygwin* | *mingw* | *cegcc* )
  48814. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  48815. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  48816. + ;;
  48817. + esac
  48818. + }
  48819. else
  48820. - dir="$ladir/$objdir"
  48821. - absdir="$abs_ladir/$objdir"
  48822. - # Remove this search path later
  48823. - notinst_path="$notinst_path $abs_ladir"
  48824. + $opt_dry_run || {
  48825. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  48826. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  48827. + eval '$MV "$nlist"T "$nlist"'
  48828. + case $host in
  48829. + *cygwin | *mingw* | *cegcc* )
  48830. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  48831. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  48832. + ;;
  48833. + esac
  48834. + }
  48835. fi
  48836. - fi # $installed = yes
  48837. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  48838. + fi
  48839. - # This library was specified with -dlpreopen.
  48840. - if test "$pass" = dlpreopen; then
  48841. - if test -z "$libdir"; then
  48842. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  48843. - exit $EXIT_FAILURE
  48844. + for dlprefile in $dlprefiles; do
  48845. + func_verbose "extracting global C symbols from \`$dlprefile'"
  48846. + func_basename "$dlprefile"
  48847. + name="$func_basename_result"
  48848. + $opt_dry_run || {
  48849. + eval '$ECHO ": $name " >> "$nlist"'
  48850. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  48851. + }
  48852. + done
  48853. +
  48854. + $opt_dry_run || {
  48855. + # Make sure we have at least an empty file.
  48856. + test -f "$nlist" || : > "$nlist"
  48857. +
  48858. + if test -n "$exclude_expsyms"; then
  48859. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  48860. + $MV "$nlist"T "$nlist"
  48861. fi
  48862. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  48863. - # are required to link).
  48864. - if test -n "$old_library"; then
  48865. - newdlprefiles="$newdlprefiles $dir/$old_library"
  48866. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  48867. - elif test -n "$dlname"; then
  48868. - newdlprefiles="$newdlprefiles $dir/$dlname"
  48869. +
  48870. + # Try sorting and uniquifying the output.
  48871. + if $GREP -v "^: " < "$nlist" |
  48872. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  48873. + sort -k 3
  48874. + else
  48875. + sort +2
  48876. + fi |
  48877. + uniq > "$nlist"S; then
  48878. + :
  48879. else
  48880. - newdlprefiles="$newdlprefiles $dir/$linklib"
  48881. + $GREP -v "^: " < "$nlist" > "$nlist"S
  48882. fi
  48883. - fi # $pass = dlpreopen
  48884. - if test -z "$libdir"; then
  48885. - # Link the convenience library
  48886. - if test "$linkmode" = lib; then
  48887. - deplibs="$dir/$old_library $deplibs"
  48888. - elif test "$linkmode,$pass" = "prog,link"; then
  48889. - compile_deplibs="$dir/$old_library $compile_deplibs"
  48890. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  48891. + if test -f "$nlist"S; then
  48892. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  48893. else
  48894. - deplibs="$lib $deplibs" # used for prog,scan pass
  48895. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  48896. fi
  48897. - continue
  48898. - fi
  48899. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48900. - if test "$linkmode" = prog && test "$pass" != link; then
  48901. - newlib_search_path="$newlib_search_path $ladir"
  48902. - deplibs="$lib $deplibs"
  48903. -
  48904. - linkalldeplibs=no
  48905. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  48906. - test "$build_libtool_libs" = no; then
  48907. - linkalldeplibs=yes
  48908. - fi
  48909. +/* The mapping between symbol names and symbols. */
  48910. +typedef struct {
  48911. + const char *name;
  48912. + void *address;
  48913. +} lt_dlsymlist;
  48914. +"
  48915. + case $host in
  48916. + *cygwin* | *mingw* | *cegcc* )
  48917. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48918. +/* DATA imports from DLLs on WIN32 con't be const, because
  48919. + runtime relocations are performed -- see ld's documentation
  48920. + on pseudo-relocs. */"
  48921. + lt_dlsym_const= ;;
  48922. + *osf5*)
  48923. + echo >> "$output_objdir/$my_dlsyms" "\
  48924. +/* This system does not cope well with relocations in const data */"
  48925. + lt_dlsym_const= ;;
  48926. + *)
  48927. + lt_dlsym_const=const ;;
  48928. + esac
  48929. - tmp_libs=
  48930. - for deplib in $dependency_libs; do
  48931. - case $deplib in
  48932. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  48933. - esac
  48934. - # Need to link against all dependency_libs?
  48935. - if test "$linkalldeplibs" = yes; then
  48936. - deplibs="$deplib $deplibs"
  48937. - else
  48938. - # Need to hardcode shared library paths
  48939. - # or/and link against static libraries
  48940. - newdependency_libs="$deplib $newdependency_libs"
  48941. - fi
  48942. - if test "X$duplicate_deps" = "Xyes" ; then
  48943. - case "$tmp_libs " in
  48944. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48945. - esac
  48946. - fi
  48947. - tmp_libs="$tmp_libs $deplib"
  48948. - done # for deplib
  48949. - continue
  48950. - fi # $linkmode = prog...
  48951. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48952. +extern $lt_dlsym_const lt_dlsymlist
  48953. +lt_${my_prefix}_LTX_preloaded_symbols[];
  48954. +$lt_dlsym_const lt_dlsymlist
  48955. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  48956. +{\
  48957. + { \"$my_originator\", (void *) 0 },"
  48958. - if test "$linkmode,$pass" = "prog,link"; then
  48959. - if test -n "$library_names" &&
  48960. - { { test "$prefer_static_libs" = no ||
  48961. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  48962. - test -z "$old_library"; }; then
  48963. - # We need to hardcode the library path
  48964. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  48965. - # Make sure the rpath contains only unique directories.
  48966. - case "$temp_rpath " in
  48967. - *" $dir "*) ;;
  48968. - *" $absdir "*) ;;
  48969. - *) temp_rpath="$temp_rpath $absdir" ;;
  48970. - esac
  48971. - fi
  48972. + case $need_lib_prefix in
  48973. + no)
  48974. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  48975. + ;;
  48976. + *)
  48977. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  48978. + ;;
  48979. + esac
  48980. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  48981. + {0, (void *) 0}
  48982. +};
  48983. - # Hardcode the library path.
  48984. - # Skip directories that are in the system default run-time
  48985. - # search path.
  48986. - case " $sys_lib_dlsearch_path " in
  48987. - *" $absdir "*) ;;
  48988. - *)
  48989. - case "$compile_rpath " in
  48990. - *" $absdir "*) ;;
  48991. - *) compile_rpath="$compile_rpath $absdir"
  48992. - esac
  48993. - ;;
  48994. - esac
  48995. - case " $sys_lib_dlsearch_path " in
  48996. - *" $libdir "*) ;;
  48997. - *)
  48998. - case "$finalize_rpath " in
  48999. - *" $libdir "*) ;;
  49000. - *) finalize_rpath="$finalize_rpath $libdir"
  49001. - esac
  49002. - ;;
  49003. - esac
  49004. - fi # $linkmode,$pass = prog,link...
  49005. -
  49006. - if test "$alldeplibs" = yes &&
  49007. - { test "$deplibs_check_method" = pass_all ||
  49008. - { test "$build_libtool_libs" = yes &&
  49009. - test -n "$library_names"; }; }; then
  49010. - # We only need to search for static libraries
  49011. - continue
  49012. - fi
  49013. - fi
  49014. +/* This works around a problem in FreeBSD linker */
  49015. +#ifdef FREEBSD_WORKAROUND
  49016. +static const void *lt_preloaded_setup() {
  49017. + return lt_${my_prefix}_LTX_preloaded_symbols;
  49018. +}
  49019. +#endif
  49020. - link_static=no # Whether the deplib will be linked statically
  49021. - use_static_libs=$prefer_static_libs
  49022. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  49023. - use_static_libs=no
  49024. - fi
  49025. - if test -n "$library_names" &&
  49026. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  49027. - if test "$installed" = no; then
  49028. - notinst_deplibs="$notinst_deplibs $lib"
  49029. - need_relink=yes
  49030. - fi
  49031. - # This is a shared library
  49032. +#ifdef __cplusplus
  49033. +}
  49034. +#endif\
  49035. +"
  49036. + } # !$opt_dry_run
  49037. - # Warn about portability, can't link against -module's on
  49038. - # some systems (darwin)
  49039. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  49040. - $echo
  49041. - if test "$linkmode" = prog; then
  49042. - $echo "*** Warning: Linking the executable $output against the loadable module"
  49043. - else
  49044. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  49045. + pic_flag_for_symtable=
  49046. + case "$compile_command " in
  49047. + *" -static "*) ;;
  49048. + *)
  49049. + case $host in
  49050. + # compiling the symbol table file with pic_flag works around
  49051. + # a FreeBSD bug that causes programs to crash when -lm is
  49052. + # linked before any other PIC object. But we must not use
  49053. + # pic_flag when linking with -static. The problem exists in
  49054. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  49055. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  49056. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  49057. + *-*-hpux*)
  49058. + pic_flag_for_symtable=" $pic_flag" ;;
  49059. + *)
  49060. + if test "X$my_pic_p" != Xno; then
  49061. + pic_flag_for_symtable=" $pic_flag"
  49062. fi
  49063. - $echo "*** $linklib is not portable!"
  49064. - fi
  49065. - if test "$linkmode" = lib &&
  49066. - test "$hardcode_into_libs" = yes; then
  49067. - # Hardcode the library path.
  49068. - # Skip directories that are in the system default run-time
  49069. - # search path.
  49070. - case " $sys_lib_dlsearch_path " in
  49071. - *" $absdir "*) ;;
  49072. - *)
  49073. - case "$compile_rpath " in
  49074. - *" $absdir "*) ;;
  49075. - *) compile_rpath="$compile_rpath $absdir"
  49076. - esac
  49077. - ;;
  49078. - esac
  49079. - case " $sys_lib_dlsearch_path " in
  49080. - *" $libdir "*) ;;
  49081. - *)
  49082. - case "$finalize_rpath " in
  49083. - *" $libdir "*) ;;
  49084. - *) finalize_rpath="$finalize_rpath $libdir"
  49085. - esac
  49086. - ;;
  49087. - esac
  49088. - fi
  49089. + ;;
  49090. + esac
  49091. + ;;
  49092. + esac
  49093. + symtab_cflags=
  49094. + for arg in $LTCFLAGS; do
  49095. + case $arg in
  49096. + -pie | -fpie | -fPIE) ;;
  49097. + *) symtab_cflags="$symtab_cflags $arg" ;;
  49098. + esac
  49099. + done
  49100. - if test -n "$old_archive_from_expsyms_cmds"; then
  49101. - # figure out the soname
  49102. - set dummy $library_names
  49103. - realname="$2"
  49104. - shift; shift
  49105. - libname=`eval \\$echo \"$libname_spec\"`
  49106. - # use dlname if we got it. it's perfectly good, no?
  49107. - if test -n "$dlname"; then
  49108. - soname="$dlname"
  49109. - elif test -n "$soname_spec"; then
  49110. - # bleh windows
  49111. - case $host in
  49112. - *cygwin* | mingw*)
  49113. - major=`expr $current - $age`
  49114. - versuffix="-$major"
  49115. - ;;
  49116. - esac
  49117. - eval soname=\"$soname_spec\"
  49118. - else
  49119. - soname="$realname"
  49120. - fi
  49121. + # Now compile the dynamic symbol file.
  49122. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  49123. - # Make a new name for the extract_expsyms_cmds to use
  49124. - soroot="$soname"
  49125. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  49126. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  49127. + # Clean up the generated files.
  49128. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  49129. - # If the library has no export list, then create one now
  49130. - if test -f "$output_objdir/$soname-def"; then :
  49131. - else
  49132. - $show "extracting exported symbol list from \`$soname'"
  49133. - save_ifs="$IFS"; IFS='~'
  49134. - cmds=$extract_expsyms_cmds
  49135. - for cmd in $cmds; do
  49136. - IFS="$save_ifs"
  49137. - eval cmd=\"$cmd\"
  49138. - $show "$cmd"
  49139. - $run eval "$cmd" || exit $?
  49140. - done
  49141. - IFS="$save_ifs"
  49142. - fi
  49143. + # Transform the symbol file into the correct name.
  49144. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  49145. + case $host in
  49146. + *cygwin* | *mingw* | *cegcc* )
  49147. + if test -f "$output_objdir/$my_outputname.def"; then
  49148. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49149. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  49150. + else
  49151. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49152. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49153. + fi
  49154. + ;;
  49155. + *)
  49156. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49157. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  49158. + ;;
  49159. + esac
  49160. + ;;
  49161. + *)
  49162. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  49163. + ;;
  49164. + esac
  49165. + else
  49166. + # We keep going just in case the user didn't refer to
  49167. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  49168. + # really was required.
  49169. +
  49170. + # Nullify the symbol file.
  49171. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  49172. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  49173. + fi
  49174. +}
  49175. - # Create $newlib
  49176. - if test -f "$output_objdir/$newlib"; then :; else
  49177. - $show "generating import library for \`$soname'"
  49178. - save_ifs="$IFS"; IFS='~'
  49179. - cmds=$old_archive_from_expsyms_cmds
  49180. - for cmd in $cmds; do
  49181. - IFS="$save_ifs"
  49182. - eval cmd=\"$cmd\"
  49183. - $show "$cmd"
  49184. - $run eval "$cmd" || exit $?
  49185. - done
  49186. - IFS="$save_ifs"
  49187. - fi
  49188. - # make sure the library variables are pointing to the new library
  49189. - dir=$output_objdir
  49190. - linklib=$newlib
  49191. - fi # test -n "$old_archive_from_expsyms_cmds"
  49192. +# func_win32_libid arg
  49193. +# return the library type of file 'arg'
  49194. +#
  49195. +# Need a lot of goo to handle *both* DLLs and import libs
  49196. +# Has to be a shell function in order to 'eat' the argument
  49197. +# that is supplied when $file_magic_command is called.
  49198. +func_win32_libid ()
  49199. +{
  49200. + $opt_debug
  49201. + win32_libid_type="unknown"
  49202. + win32_fileres=`file -L $1 2>/dev/null`
  49203. + case $win32_fileres in
  49204. + *ar\ archive\ import\ library*) # definitely import
  49205. + win32_libid_type="x86 archive import"
  49206. + ;;
  49207. + *ar\ archive*) # could be an import, or static
  49208. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  49209. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  49210. + win32_nmres=`eval $NM -f posix -A $1 |
  49211. + $SED -n -e '
  49212. + 1,100{
  49213. + / I /{
  49214. + s,.*,import,
  49215. + p
  49216. + q
  49217. + }
  49218. + }'`
  49219. + case $win32_nmres in
  49220. + import*) win32_libid_type="x86 archive import";;
  49221. + *) win32_libid_type="x86 archive static";;
  49222. + esac
  49223. + fi
  49224. + ;;
  49225. + *DLL*)
  49226. + win32_libid_type="x86 DLL"
  49227. + ;;
  49228. + *executable*) # but shell scripts are "executable" too...
  49229. + case $win32_fileres in
  49230. + *MS\ Windows\ PE\ Intel*)
  49231. + win32_libid_type="x86 DLL"
  49232. + ;;
  49233. + esac
  49234. + ;;
  49235. + esac
  49236. + $ECHO "$win32_libid_type"
  49237. +}
  49238. - if test "$linkmode" = prog || test "$mode" != relink; then
  49239. - add_shlibpath=
  49240. - add_dir=
  49241. - add=
  49242. - lib_linked=yes
  49243. - case $hardcode_action in
  49244. - immediate | unsupported)
  49245. - if test "$hardcode_direct" = no; then
  49246. - add="$dir/$linklib"
  49247. - case $host in
  49248. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  49249. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  49250. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  49251. - *-*-unixware7*) add_dir="-L$dir" ;;
  49252. - *-*-darwin* )
  49253. - # if the lib is a module then we can not link against
  49254. - # it, someone is ignoring the new warnings I added
  49255. - if /usr/bin/file -L $add 2> /dev/null |
  49256. - $EGREP ": [^:]* bundle" >/dev/null ; then
  49257. - $echo "** Warning, lib $linklib is a module, not a shared library"
  49258. - if test -z "$old_library" ; then
  49259. - $echo
  49260. - $echo "** And there doesn't seem to be a static archive available"
  49261. - $echo "** The link will probably fail, sorry"
  49262. - else
  49263. - add="$dir/$old_library"
  49264. - fi
  49265. - fi
  49266. - esac
  49267. - elif test "$hardcode_minus_L" = no; then
  49268. - case $host in
  49269. - *-*-sunos*) add_shlibpath="$dir" ;;
  49270. - esac
  49271. - add_dir="-L$dir"
  49272. - add="-l$name"
  49273. - elif test "$hardcode_shlibpath_var" = no; then
  49274. - add_shlibpath="$dir"
  49275. - add="-l$name"
  49276. - else
  49277. - lib_linked=no
  49278. - fi
  49279. - ;;
  49280. - relink)
  49281. - if test "$hardcode_direct" = yes; then
  49282. - add="$dir/$linklib"
  49283. - elif test "$hardcode_minus_L" = yes; then
  49284. - add_dir="-L$dir"
  49285. - # Try looking first in the location we're being installed to.
  49286. - if test -n "$inst_prefix_dir"; then
  49287. - case $libdir in
  49288. - [\\/]*)
  49289. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49290. - ;;
  49291. - esac
  49292. - fi
  49293. - add="-l$name"
  49294. - elif test "$hardcode_shlibpath_var" = yes; then
  49295. - add_shlibpath="$dir"
  49296. - add="-l$name"
  49297. - else
  49298. - lib_linked=no
  49299. - fi
  49300. - ;;
  49301. - *) lib_linked=no ;;
  49302. - esac
  49303. - if test "$lib_linked" != yes; then
  49304. - $echo "$modename: configuration error: unsupported hardcode properties"
  49305. - exit $EXIT_FAILURE
  49306. - fi
  49307. - if test -n "$add_shlibpath"; then
  49308. - case :$compile_shlibpath: in
  49309. - *":$add_shlibpath:"*) ;;
  49310. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  49311. - esac
  49312. - fi
  49313. - if test "$linkmode" = prog; then
  49314. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  49315. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  49316. - else
  49317. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49318. - test -n "$add" && deplibs="$add $deplibs"
  49319. - if test "$hardcode_direct" != yes && \
  49320. - test "$hardcode_minus_L" != yes && \
  49321. - test "$hardcode_shlibpath_var" = yes; then
  49322. - case :$finalize_shlibpath: in
  49323. - *":$libdir:"*) ;;
  49324. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49325. - esac
  49326. - fi
  49327. - fi
  49328. - fi
  49329. +# func_extract_an_archive dir oldlib
  49330. +func_extract_an_archive ()
  49331. +{
  49332. + $opt_debug
  49333. + f_ex_an_ar_dir="$1"; shift
  49334. + f_ex_an_ar_oldlib="$1"
  49335. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  49336. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  49337. + :
  49338. + else
  49339. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  49340. + fi
  49341. +}
  49342. - if test "$linkmode" = prog || test "$mode" = relink; then
  49343. - add_shlibpath=
  49344. - add_dir=
  49345. - add=
  49346. - # Finalize command for both is simple: just hardcode it.
  49347. - if test "$hardcode_direct" = yes; then
  49348. - add="$libdir/$linklib"
  49349. - elif test "$hardcode_minus_L" = yes; then
  49350. - add_dir="-L$libdir"
  49351. - add="-l$name"
  49352. - elif test "$hardcode_shlibpath_var" = yes; then
  49353. - case :$finalize_shlibpath: in
  49354. - *":$libdir:"*) ;;
  49355. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49356. - esac
  49357. - add="-l$name"
  49358. - elif test "$hardcode_automatic" = yes; then
  49359. - if test -n "$inst_prefix_dir" &&
  49360. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  49361. - add="$inst_prefix_dir$libdir/$linklib"
  49362. - else
  49363. - add="$libdir/$linklib"
  49364. - fi
  49365. - else
  49366. - # We cannot seem to hardcode it, guess we'll fake it.
  49367. - add_dir="-L$libdir"
  49368. - # Try looking first in the location we're being installed to.
  49369. - if test -n "$inst_prefix_dir"; then
  49370. - case $libdir in
  49371. - [\\/]*)
  49372. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49373. - ;;
  49374. - esac
  49375. - fi
  49376. - add="-l$name"
  49377. - fi
  49378. - if test "$linkmode" = prog; then
  49379. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  49380. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  49381. - else
  49382. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49383. - test -n "$add" && deplibs="$add $deplibs"
  49384. - fi
  49385. - fi
  49386. - elif test "$linkmode" = prog; then
  49387. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  49388. - # is not unsupported. This is valid on all known static and
  49389. - # shared platforms.
  49390. - if test "$hardcode_direct" != unsupported; then
  49391. - test -n "$old_library" && linklib="$old_library"
  49392. - compile_deplibs="$dir/$linklib $compile_deplibs"
  49393. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  49394. - else
  49395. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  49396. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  49397. - fi
  49398. - elif test "$build_libtool_libs" = yes; then
  49399. - # Not a shared library
  49400. - if test "$deplibs_check_method" != pass_all; then
  49401. - # We're trying link a shared library against a static one
  49402. - # but the system doesn't support it.
  49403. +# func_extract_archives gentop oldlib ...
  49404. +func_extract_archives ()
  49405. +{
  49406. + $opt_debug
  49407. + my_gentop="$1"; shift
  49408. + my_oldlibs=${1+"$@"}
  49409. + my_oldobjs=""
  49410. + my_xlib=""
  49411. + my_xabs=""
  49412. + my_xdir=""
  49413. - # Just print a warning and add the library to dependency_libs so
  49414. - # that the program can be linked against the static library.
  49415. - $echo
  49416. - $echo "*** Warning: This system can not link to static lib archive $lib."
  49417. - $echo "*** I have the capability to make that library automatically link in when"
  49418. - $echo "*** you link to this library. But I can only do this if you have a"
  49419. - $echo "*** shared version of the library, which you do not appear to have."
  49420. - if test "$module" = yes; then
  49421. - $echo "*** But as you try to build a module library, libtool will still create "
  49422. - $echo "*** a static module, that should work as long as the dlopening application"
  49423. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  49424. - if test -z "$global_symbol_pipe"; then
  49425. - $echo
  49426. - $echo "*** However, this would only work if libtool was able to extract symbol"
  49427. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49428. - $echo "*** not find such a program. So, this module is probably useless."
  49429. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  49430. - fi
  49431. - if test "$build_old_libs" = no; then
  49432. - build_libtool_libs=module
  49433. - build_old_libs=yes
  49434. - else
  49435. - build_libtool_libs=no
  49436. - fi
  49437. - fi
  49438. + for my_xlib in $my_oldlibs; do
  49439. + # Extract the objects.
  49440. + case $my_xlib in
  49441. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  49442. + *) my_xabs=`pwd`"/$my_xlib" ;;
  49443. + esac
  49444. + func_basename "$my_xlib"
  49445. + my_xlib="$func_basename_result"
  49446. + my_xlib_u=$my_xlib
  49447. + while :; do
  49448. + case " $extracted_archives " in
  49449. + *" $my_xlib_u "*)
  49450. + func_arith $extracted_serial + 1
  49451. + extracted_serial=$func_arith_result
  49452. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  49453. + *) break ;;
  49454. + esac
  49455. + done
  49456. + extracted_archives="$extracted_archives $my_xlib_u"
  49457. + my_xdir="$my_gentop/$my_xlib_u"
  49458. +
  49459. + func_mkdir_p "$my_xdir"
  49460. +
  49461. + case $host in
  49462. + *-darwin*)
  49463. + func_verbose "Extracting $my_xabs"
  49464. + # Do not bother doing anything if just a dry run
  49465. + $opt_dry_run || {
  49466. + darwin_orig_dir=`pwd`
  49467. + cd $my_xdir || exit $?
  49468. + darwin_archive=$my_xabs
  49469. + darwin_curdir=`pwd`
  49470. + darwin_base_archive=`basename "$darwin_archive"`
  49471. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  49472. + if test -n "$darwin_arches"; then
  49473. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  49474. + darwin_arch=
  49475. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  49476. + for darwin_arch in $darwin_arches ; do
  49477. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49478. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  49479. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  49480. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  49481. + cd "$darwin_curdir"
  49482. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  49483. + done # $darwin_arches
  49484. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  49485. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  49486. + darwin_file=
  49487. + darwin_files=
  49488. + for darwin_file in $darwin_filelist; do
  49489. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  49490. + $LIPO -create -output "$darwin_file" $darwin_files
  49491. + done # $darwin_filelist
  49492. + $RM -rf unfat-$$
  49493. + cd "$darwin_orig_dir"
  49494. else
  49495. - deplibs="$dir/$old_library $deplibs"
  49496. - link_static=yes
  49497. - fi
  49498. - fi # link shared/static library?
  49499. + cd $darwin_orig_dir
  49500. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49501. + fi # $darwin_arches
  49502. + } # !$opt_dry_run
  49503. + ;;
  49504. + *)
  49505. + func_extract_an_archive "$my_xdir" "$my_xabs"
  49506. + ;;
  49507. + esac
  49508. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  49509. + done
  49510. - if test "$linkmode" = lib; then
  49511. - if test -n "$dependency_libs" &&
  49512. - { test "$hardcode_into_libs" != yes ||
  49513. - test "$build_old_libs" = yes ||
  49514. - test "$link_static" = yes; }; then
  49515. - # Extract -R from dependency_libs
  49516. - temp_deplibs=
  49517. - for libdir in $dependency_libs; do
  49518. - case $libdir in
  49519. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  49520. - case " $xrpath " in
  49521. - *" $temp_xrpath "*) ;;
  49522. - *) xrpath="$xrpath $temp_xrpath";;
  49523. - esac;;
  49524. - *) temp_deplibs="$temp_deplibs $libdir";;
  49525. - esac
  49526. - done
  49527. - dependency_libs="$temp_deplibs"
  49528. - fi
  49529. + func_extract_archives_result="$my_oldobjs"
  49530. +}
  49531. - newlib_search_path="$newlib_search_path $absdir"
  49532. - # Link against this library
  49533. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  49534. - # ... and its dependency_libs
  49535. - tmp_libs=
  49536. - for deplib in $dependency_libs; do
  49537. - newdependency_libs="$deplib $newdependency_libs"
  49538. - if test "X$duplicate_deps" = "Xyes" ; then
  49539. - case "$tmp_libs " in
  49540. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49541. - esac
  49542. - fi
  49543. - tmp_libs="$tmp_libs $deplib"
  49544. - done
  49545. - if test "$link_all_deplibs" != no; then
  49546. - # Add the search paths of all dependency libraries
  49547. - for deplib in $dependency_libs; do
  49548. - case $deplib in
  49549. - -L*) path="$deplib" ;;
  49550. - *.la)
  49551. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  49552. - test "X$dir" = "X$deplib" && dir="."
  49553. - # We need an absolute path.
  49554. - case $dir in
  49555. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  49556. - *)
  49557. - absdir=`cd "$dir" && pwd`
  49558. - if test -z "$absdir"; then
  49559. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  49560. - absdir="$dir"
  49561. - fi
  49562. - ;;
  49563. - esac
  49564. - if grep "^installed=no" $deplib > /dev/null; then
  49565. - path="$absdir/$objdir"
  49566. - else
  49567. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49568. - if test -z "$libdir"; then
  49569. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  49570. - exit $EXIT_FAILURE
  49571. - fi
  49572. - if test "$absdir" != "$libdir"; then
  49573. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  49574. - fi
  49575. - path="$absdir"
  49576. - fi
  49577. - depdepl=
  49578. - case $host in
  49579. - *-*-darwin*)
  49580. - # we do not want to link against static libs,
  49581. - # but need to link against shared
  49582. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  49583. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49584. - if test -n "$deplibrary_names" ; then
  49585. - for tmp in $deplibrary_names ; do
  49586. - depdepl=$tmp
  49587. - done
  49588. - if test -f "$deplibdir/$depdepl" ; then
  49589. - depdepl="$deplibdir/$depdepl"
  49590. - elif test -f "$path/$depdepl" ; then
  49591. - depdepl="$path/$depdepl"
  49592. - else
  49593. - # Can't find it, oh well...
  49594. - depdepl=
  49595. - fi
  49596. - # do not add paths which are already there
  49597. - case " $newlib_search_path " in
  49598. - *" $path "*) ;;
  49599. - *) newlib_search_path="$newlib_search_path $path";;
  49600. - esac
  49601. - fi
  49602. - path=""
  49603. - ;;
  49604. - *)
  49605. - path="-L$path"
  49606. - ;;
  49607. - esac
  49608. - ;;
  49609. - -l*)
  49610. - case $host in
  49611. - *-*-darwin*)
  49612. - # Again, we only want to link against shared libraries
  49613. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  49614. - for tmp in $newlib_search_path ; do
  49615. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  49616. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  49617. - break
  49618. - fi
  49619. - done
  49620. - path=""
  49621. - ;;
  49622. - *) continue ;;
  49623. - esac
  49624. - ;;
  49625. - *) continue ;;
  49626. - esac
  49627. - case " $deplibs " in
  49628. - *" $path "*) ;;
  49629. - *) deplibs="$path $deplibs" ;;
  49630. - esac
  49631. - case " $deplibs " in
  49632. - *" $depdepl "*) ;;
  49633. - *) deplibs="$depdepl $deplibs" ;;
  49634. - esac
  49635. - done
  49636. - fi # link_all_deplibs != no
  49637. - fi # linkmode = lib
  49638. - done # for deplib in $libs
  49639. - dependency_libs="$newdependency_libs"
  49640. - if test "$pass" = dlpreopen; then
  49641. - # Link the dlpreopened libraries before other libraries
  49642. - for deplib in $save_deplibs; do
  49643. - deplibs="$deplib $deplibs"
  49644. - done
  49645. - fi
  49646. - if test "$pass" != dlopen; then
  49647. - if test "$pass" != conv; then
  49648. - # Make sure lib_search_path contains only unique directories.
  49649. - lib_search_path=
  49650. - for dir in $newlib_search_path; do
  49651. - case "$lib_search_path " in
  49652. - *" $dir "*) ;;
  49653. - *) lib_search_path="$lib_search_path $dir" ;;
  49654. - esac
  49655. - done
  49656. - newlib_search_path=
  49657. - fi
  49658. - if test "$linkmode,$pass" != "prog,link"; then
  49659. - vars="deplibs"
  49660. - else
  49661. - vars="compile_deplibs finalize_deplibs"
  49662. +# func_emit_wrapper_part1 [arg=no]
  49663. +#
  49664. +# Emit the first part of a libtool wrapper script on stdout.
  49665. +# For more information, see the description associated with
  49666. +# func_emit_wrapper(), below.
  49667. +func_emit_wrapper_part1 ()
  49668. +{
  49669. + func_emit_wrapper_part1_arg1=no
  49670. + if test -n "$1" ; then
  49671. + func_emit_wrapper_part1_arg1=$1
  49672. fi
  49673. - for var in $vars dependency_libs; do
  49674. - # Add libraries to $var in reverse order
  49675. - eval tmp_libs=\"\$$var\"
  49676. - new_libs=
  49677. - for deplib in $tmp_libs; do
  49678. - # FIXME: Pedantically, this is the right thing to do, so
  49679. - # that some nasty dependency loop isn't accidentally
  49680. - # broken:
  49681. - #new_libs="$deplib $new_libs"
  49682. - # Pragmatically, this seems to cause very few problems in
  49683. - # practice:
  49684. - case $deplib in
  49685. - -L*) new_libs="$deplib $new_libs" ;;
  49686. - -R*) ;;
  49687. - *)
  49688. - # And here is the reason: when a library appears more
  49689. - # than once as an explicit dependence of a library, or
  49690. - # is implicitly linked in more than once by the
  49691. - # compiler, it is considered special, and multiple
  49692. - # occurrences thereof are not removed. Compare this
  49693. - # with having the same library being listed as a
  49694. - # dependency of multiple other libraries: in this case,
  49695. - # we know (pedantically, we assume) the library does not
  49696. - # need to be listed more than once, so we keep only the
  49697. - # last copy. This is not always right, but it is rare
  49698. - # enough that we require users that really mean to play
  49699. - # such unportable linking tricks to link the library
  49700. - # using -Wl,-lname, so that libtool does not consider it
  49701. - # for duplicate removal.
  49702. - case " $specialdeplibs " in
  49703. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  49704. - *)
  49705. - case " $new_libs " in
  49706. - *" $deplib "*) ;;
  49707. - *) new_libs="$deplib $new_libs" ;;
  49708. - esac
  49709. - ;;
  49710. - esac
  49711. - ;;
  49712. - esac
  49713. - done
  49714. - tmp_libs=
  49715. - for deplib in $new_libs; do
  49716. - case $deplib in
  49717. - -L*)
  49718. - case " $tmp_libs " in
  49719. - *" $deplib "*) ;;
  49720. - *) tmp_libs="$tmp_libs $deplib" ;;
  49721. - esac
  49722. - ;;
  49723. - *) tmp_libs="$tmp_libs $deplib" ;;
  49724. - esac
  49725. - done
  49726. - eval $var=\"$tmp_libs\"
  49727. - done # for var
  49728. - fi
  49729. - # Last step: remove runtime libs from dependency_libs
  49730. - # (they stay in deplibs)
  49731. - tmp_libs=
  49732. - for i in $dependency_libs ; do
  49733. - case " $predeps $postdeps $compiler_lib_search_path " in
  49734. - *" $i "*)
  49735. - i=""
  49736. - ;;
  49737. - esac
  49738. - if test -n "$i" ; then
  49739. - tmp_libs="$tmp_libs $i"
  49740. - fi
  49741. - done
  49742. - dependency_libs=$tmp_libs
  49743. - done # for pass
  49744. - if test "$linkmode" = prog; then
  49745. - dlfiles="$newdlfiles"
  49746. - dlprefiles="$newdlprefiles"
  49747. +
  49748. + $ECHO "\
  49749. +#! $SHELL
  49750. +
  49751. +# $output - temporary wrapper script for $objdir/$outputname
  49752. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49753. +#
  49754. +# The $output program cannot be directly executed until all the libtool
  49755. +# libraries that it depends on are installed.
  49756. +#
  49757. +# This wrapper script should never be moved out of the build directory.
  49758. +# If it is, it will not operate correctly.
  49759. +
  49760. +# Sed substitution that helps us do robust quoting. It backslashifies
  49761. +# metacharacters that are still active within double-quoted strings.
  49762. +Xsed='${SED} -e 1s/^X//'
  49763. +sed_quote_subst='$sed_quote_subst'
  49764. +
  49765. +# Be Bourne compatible
  49766. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  49767. + emulate sh
  49768. + NULLCMD=:
  49769. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  49770. + # is contrary to our usage. Disable this feature.
  49771. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  49772. + setopt NO_GLOB_SUBST
  49773. +else
  49774. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  49775. +fi
  49776. +BIN_SH=xpg4; export BIN_SH # for Tru64
  49777. +DUALCASE=1; export DUALCASE # for MKS sh
  49778. +
  49779. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  49780. +# if CDPATH is set.
  49781. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  49782. +
  49783. +relink_command=\"$relink_command\"
  49784. +
  49785. +# This environment variable determines our operation mode.
  49786. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  49787. + # install mode needs the following variables:
  49788. + generated_by_libtool_version='$macro_version'
  49789. + notinst_deplibs='$notinst_deplibs'
  49790. +else
  49791. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  49792. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  49793. + ECHO=\"$qecho\"
  49794. + file=\"\$0\"
  49795. + # Make sure echo works.
  49796. + if test \"X\$1\" = X--no-reexec; then
  49797. + # Discard the --no-reexec flag, and continue.
  49798. + shift
  49799. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  49800. + # Yippee, \$ECHO works!
  49801. + :
  49802. + else
  49803. + # Restart under the correct shell, and then maybe \$ECHO will work.
  49804. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  49805. fi
  49806. + fi\
  49807. +"
  49808. + $ECHO "\
  49809. - case $linkmode in
  49810. - oldlib)
  49811. - case " $deplibs" in
  49812. - *\ -l* | *\ -L*)
  49813. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  49814. + # Find the directory that this script lives in.
  49815. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  49816. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  49817. +
  49818. + # Follow symbolic links until we get to the real thisdir.
  49819. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  49820. + while test -n \"\$file\"; do
  49821. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  49822. +
  49823. + # If there was a directory component, then change thisdir.
  49824. + if test \"x\$destdir\" != \"x\$file\"; then
  49825. + case \"\$destdir\" in
  49826. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  49827. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  49828. esac
  49829. + fi
  49830. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49831. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  49832. - fi
  49833. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  49834. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  49835. + done
  49836. +"
  49837. +}
  49838. +# end: func_emit_wrapper_part1
  49839. - if test -n "$rpath"; then
  49840. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  49841. - fi
  49842. +# func_emit_wrapper_part2 [arg=no]
  49843. +#
  49844. +# Emit the second part of a libtool wrapper script on stdout.
  49845. +# For more information, see the description associated with
  49846. +# func_emit_wrapper(), below.
  49847. +func_emit_wrapper_part2 ()
  49848. +{
  49849. + func_emit_wrapper_part2_arg1=no
  49850. + if test -n "$1" ; then
  49851. + func_emit_wrapper_part2_arg1=$1
  49852. + fi
  49853. +
  49854. + $ECHO "\
  49855. +
  49856. + # Usually 'no', except on cygwin/mingw when embedded into
  49857. + # the cwrapper.
  49858. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  49859. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  49860. + # special case for '.'
  49861. + if test \"\$thisdir\" = \".\"; then
  49862. + thisdir=\`pwd\`
  49863. + fi
  49864. + # remove .libs from thisdir
  49865. + case \"\$thisdir\" in
  49866. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  49867. + $objdir ) thisdir=. ;;
  49868. + esac
  49869. + fi
  49870. - if test -n "$xrpath"; then
  49871. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  49872. - fi
  49873. + # Try to get the absolute directory name.
  49874. + absdir=\`cd \"\$thisdir\" && pwd\`
  49875. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  49876. +"
  49877. - if test -n "$vinfo"; then
  49878. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  49879. - fi
  49880. + if test "$fast_install" = yes; then
  49881. + $ECHO "\
  49882. + program=lt-'$outputname'$exeext
  49883. + progdir=\"\$thisdir/$objdir\"
  49884. - if test -n "$release"; then
  49885. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  49886. - fi
  49887. + if test ! -f \"\$progdir/\$program\" ||
  49888. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  49889. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  49890. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49891. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  49892. - fi
  49893. + file=\"\$\$-\$program\"
  49894. - # Now set the variables for building old libraries.
  49895. - build_libtool_libs=no
  49896. - oldlibs="$output"
  49897. - objs="$objs$old_deplibs"
  49898. - ;;
  49899. + if test ! -d \"\$progdir\"; then
  49900. + $MKDIR \"\$progdir\"
  49901. + else
  49902. + $RM \"\$progdir/\$file\"
  49903. + fi"
  49904. - lib)
  49905. - # Make sure we only generate libraries of the form `libNAME.la'.
  49906. - case $outputname in
  49907. - lib*)
  49908. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  49909. - eval shared_ext=\"$shrext_cmds\"
  49910. - eval libname=\"$libname_spec\"
  49911. - ;;
  49912. - *)
  49913. - if test "$module" = no; then
  49914. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  49915. - $echo "$help" 1>&2
  49916. - exit $EXIT_FAILURE
  49917. - fi
  49918. - if test "$need_lib_prefix" != no; then
  49919. - # Add the "lib" prefix for modules if required
  49920. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  49921. - eval shared_ext=\"$shrext_cmds\"
  49922. - eval libname=\"$libname_spec\"
  49923. - else
  49924. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  49925. - fi
  49926. - ;;
  49927. - esac
  49928. + $ECHO "\
  49929. - if test -n "$objs"; then
  49930. - if test "$deplibs_check_method" != pass_all; then
  49931. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  49932. - exit $EXIT_FAILURE
  49933. + # relink executable if necessary
  49934. + if test -n \"\$relink_command\"; then
  49935. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  49936. + else
  49937. + $ECHO \"\$relink_command_output\" >&2
  49938. + $RM \"\$progdir/\$file\"
  49939. + exit 1
  49940. + fi
  49941. + fi
  49942. +
  49943. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  49944. + { $RM \"\$progdir/\$program\";
  49945. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  49946. + $RM \"\$progdir/\$file\"
  49947. + fi"
  49948. else
  49949. - $echo
  49950. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  49951. - $echo "*** objects $objs is not portable!"
  49952. - libobjs="$libobjs $objs"
  49953. + $ECHO "\
  49954. + program='$outputname'
  49955. + progdir=\"\$thisdir/$objdir\"
  49956. +"
  49957. fi
  49958. - fi
  49959. - if test "$dlself" != no; then
  49960. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  49961. - fi
  49962. + $ECHO "\
  49963. - set dummy $rpath
  49964. - if test "$#" -gt 2; then
  49965. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  49966. - fi
  49967. - install_libdir="$2"
  49968. + if test -f \"\$progdir/\$program\"; then"
  49969. - oldlibs=
  49970. - if test -z "$rpath"; then
  49971. - if test "$build_libtool_libs" = yes; then
  49972. - # Building a libtool convenience library.
  49973. - # Some compilers have problems with a `.al' extension so
  49974. - # convenience libraries should have the same extension an
  49975. - # archive normally would.
  49976. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  49977. - build_libtool_libs=convenience
  49978. - build_old_libs=yes
  49979. - fi
  49980. + # Export our shlibpath_var if we have one.
  49981. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  49982. + $ECHO "\
  49983. + # Add our own library path to $shlibpath_var
  49984. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  49985. - if test -n "$vinfo"; then
  49986. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  49987. + # Some systems cannot cope with colon-terminated $shlibpath_var
  49988. + # The second colon is a workaround for a bug in BeOS R4 sed
  49989. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  49990. +
  49991. + export $shlibpath_var
  49992. +"
  49993. fi
  49994. - if test -n "$release"; then
  49995. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  49996. + # fixup the dll searchpath if we need to.
  49997. + if test -n "$dllsearchpath"; then
  49998. + $ECHO "\
  49999. + # Add the dll search path components to the executable PATH
  50000. + PATH=$dllsearchpath:\$PATH
  50001. +"
  50002. fi
  50003. - else
  50004. - # Parse the version information argument.
  50005. - save_ifs="$IFS"; IFS=':'
  50006. - set dummy $vinfo 0 0 0
  50007. - IFS="$save_ifs"
  50008. + $ECHO "\
  50009. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50010. + # Run the actual program with our arguments.
  50011. +"
  50012. + case $host in
  50013. + # Backslashes separate directories on plain windows
  50014. + *-*-mingw | *-*-os2* | *-cegcc*)
  50015. + $ECHO "\
  50016. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  50017. +"
  50018. + ;;
  50019. +
  50020. + *)
  50021. + $ECHO "\
  50022. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  50023. +"
  50024. + ;;
  50025. + esac
  50026. + $ECHO "\
  50027. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  50028. + exit 1
  50029. + fi
  50030. + else
  50031. + # The program doesn't exist.
  50032. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  50033. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  50034. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  50035. + exit 1
  50036. + fi
  50037. +fi\
  50038. +"
  50039. +}
  50040. +# end: func_emit_wrapper_part2
  50041. - if test -n "$8"; then
  50042. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  50043. - $echo "$help" 1>&2
  50044. - exit $EXIT_FAILURE
  50045. +
  50046. +# func_emit_wrapper [arg=no]
  50047. +#
  50048. +# Emit a libtool wrapper script on stdout.
  50049. +# Don't directly open a file because we may want to
  50050. +# incorporate the script contents within a cygwin/mingw
  50051. +# wrapper executable. Must ONLY be called from within
  50052. +# func_mode_link because it depends on a number of variables
  50053. +# set therein.
  50054. +#
  50055. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  50056. +# variable will take. If 'yes', then the emitted script
  50057. +# will assume that the directory in which it is stored is
  50058. +# the $objdir directory. This is a cygwin/mingw-specific
  50059. +# behavior.
  50060. +func_emit_wrapper ()
  50061. +{
  50062. + func_emit_wrapper_arg1=no
  50063. + if test -n "$1" ; then
  50064. + func_emit_wrapper_arg1=$1
  50065. fi
  50066. - # convert absolute version numbers to libtool ages
  50067. - # this retains compatibility with .la files and attempts
  50068. - # to make the code below a bit more comprehensible
  50069. + # split this up so that func_emit_cwrapperexe_src
  50070. + # can call each part independently.
  50071. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  50072. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  50073. +}
  50074. - case $vinfo_number in
  50075. - yes)
  50076. - number_major="$2"
  50077. - number_minor="$3"
  50078. - number_revision="$4"
  50079. - #
  50080. - # There are really only two kinds -- those that
  50081. - # use the current revision as the major version
  50082. - # and those that subtract age and use age as
  50083. - # a minor version. But, then there is irix
  50084. - # which has an extra 1 added just for fun
  50085. - #
  50086. - case $version_type in
  50087. - darwin|linux|osf|windows|none)
  50088. - current=`expr $number_major + $number_minor`
  50089. - age="$number_minor"
  50090. - revision="$number_revision"
  50091. - ;;
  50092. - freebsd-aout|freebsd-elf|sunos)
  50093. - current="$number_major"
  50094. - revision="$number_minor"
  50095. - age="0"
  50096. - ;;
  50097. - irix|nonstopux)
  50098. - current=`expr $number_major + $number_minor`
  50099. - age="$number_minor"
  50100. - revision="$number_minor"
  50101. - lt_irix_increment=no
  50102. - ;;
  50103. - esac
  50104. - ;;
  50105. - no)
  50106. - current="$2"
  50107. - revision="$3"
  50108. - age="$4"
  50109. - ;;
  50110. - esac
  50111. - # Check that each of the things are valid numbers.
  50112. - case $current in
  50113. - 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]) ;;
  50114. - *)
  50115. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  50116. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50117. - exit $EXIT_FAILURE
  50118. - ;;
  50119. - esac
  50120. +# func_to_host_path arg
  50121. +#
  50122. +# Convert paths to host format when used with build tools.
  50123. +# Intended for use with "native" mingw (where libtool itself
  50124. +# is running under the msys shell), or in the following cross-
  50125. +# build environments:
  50126. +# $build $host
  50127. +# mingw (msys) mingw [e.g. native]
  50128. +# cygwin mingw
  50129. +# *nix + wine mingw
  50130. +# where wine is equipped with the `winepath' executable.
  50131. +# In the native mingw case, the (msys) shell automatically
  50132. +# converts paths for any non-msys applications it launches,
  50133. +# but that facility isn't available from inside the cwrapper.
  50134. +# Similar accommodations are necessary for $host mingw and
  50135. +# $build cygwin. Calling this function does no harm for other
  50136. +# $host/$build combinations not listed above.
  50137. +#
  50138. +# ARG is the path (on $build) that should be converted to
  50139. +# the proper representation for $host. The result is stored
  50140. +# in $func_to_host_path_result.
  50141. +func_to_host_path ()
  50142. +{
  50143. + func_to_host_path_result="$1"
  50144. + if test -n "$1" ; then
  50145. + case $host in
  50146. + *mingw* )
  50147. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50148. + case $build in
  50149. + *mingw* ) # actually, msys
  50150. + # awkward: cmd appends spaces to result
  50151. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50152. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  50153. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50154. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50155. + $SED -e "$lt_sed_naive_backslashify"`
  50156. + ;;
  50157. + *cygwin* )
  50158. + func_to_host_path_tmp1=`cygpath -w "$1"`
  50159. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50160. + $SED -e "$lt_sed_naive_backslashify"`
  50161. + ;;
  50162. + * )
  50163. + # Unfortunately, winepath does not exit with a non-zero
  50164. + # error code, so we are forced to check the contents of
  50165. + # stdout. On the other hand, if the command is not
  50166. + # found, the shell will set an exit code of 127 and print
  50167. + # *an error message* to stdout. So we must check for both
  50168. + # error code of zero AND non-empty stdout, which explains
  50169. + # the odd construction:
  50170. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  50171. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  50172. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  50173. + $SED -e "$lt_sed_naive_backslashify"`
  50174. + else
  50175. + # Allow warning below.
  50176. + func_to_host_path_result=""
  50177. + fi
  50178. + ;;
  50179. + esac
  50180. + if test -z "$func_to_host_path_result" ; then
  50181. + func_error "Could not determine host path corresponding to"
  50182. + func_error " '$1'"
  50183. + func_error "Continuing, but uninstalled executables may not work."
  50184. + # Fallback:
  50185. + func_to_host_path_result="$1"
  50186. + fi
  50187. + ;;
  50188. + esac
  50189. + fi
  50190. +}
  50191. +# end: func_to_host_path
  50192. - case $revision in
  50193. - 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]) ;;
  50194. - *)
  50195. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  50196. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50197. - exit $EXIT_FAILURE
  50198. - ;;
  50199. - esac
  50200. +# func_to_host_pathlist arg
  50201. +#
  50202. +# Convert pathlists to host format when used with build tools.
  50203. +# See func_to_host_path(), above. This function supports the
  50204. +# following $build/$host combinations (but does no harm for
  50205. +# combinations not listed here):
  50206. +# $build $host
  50207. +# mingw (msys) mingw [e.g. native]
  50208. +# cygwin mingw
  50209. +# *nix + wine mingw
  50210. +#
  50211. +# Path separators are also converted from $build format to
  50212. +# $host format. If ARG begins or ends with a path separator
  50213. +# character, it is preserved (but converted to $host format)
  50214. +# on output.
  50215. +#
  50216. +# ARG is a pathlist (on $build) that should be converted to
  50217. +# the proper representation on $host. The result is stored
  50218. +# in $func_to_host_pathlist_result.
  50219. +func_to_host_pathlist ()
  50220. +{
  50221. + func_to_host_pathlist_result="$1"
  50222. + if test -n "$1" ; then
  50223. + case $host in
  50224. + *mingw* )
  50225. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  50226. + # Remove leading and trailing path separator characters from
  50227. + # ARG. msys behavior is inconsistent here, cygpath turns them
  50228. + # into '.;' and ';.', and winepath ignores them completely.
  50229. + func_to_host_pathlist_tmp2="$1"
  50230. + # Once set for this call, this variable should not be
  50231. + # reassigned. It is used in tha fallback case.
  50232. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  50233. + $SED -e 's|^:*||' -e 's|:*$||'`
  50234. + case $build in
  50235. + *mingw* ) # Actually, msys.
  50236. + # Awkward: cmd appends spaces to result.
  50237. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  50238. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  50239. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  50240. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50241. + $SED -e "$lt_sed_naive_backslashify"`
  50242. + ;;
  50243. + *cygwin* )
  50244. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  50245. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  50246. + $SED -e "$lt_sed_naive_backslashify"`
  50247. + ;;
  50248. + * )
  50249. + # unfortunately, winepath doesn't convert pathlists
  50250. + func_to_host_pathlist_result=""
  50251. + func_to_host_pathlist_oldIFS=$IFS
  50252. + IFS=:
  50253. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  50254. + IFS=$func_to_host_pathlist_oldIFS
  50255. + if test -n "$func_to_host_pathlist_f" ; then
  50256. + func_to_host_path "$func_to_host_pathlist_f"
  50257. + if test -n "$func_to_host_path_result" ; then
  50258. + if test -z "$func_to_host_pathlist_result" ; then
  50259. + func_to_host_pathlist_result="$func_to_host_path_result"
  50260. + else
  50261. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  50262. + fi
  50263. + fi
  50264. + fi
  50265. + IFS=:
  50266. + done
  50267. + IFS=$func_to_host_pathlist_oldIFS
  50268. + ;;
  50269. + esac
  50270. + if test -z "$func_to_host_pathlist_result" ; then
  50271. + func_error "Could not determine the host path(s) corresponding to"
  50272. + func_error " '$1'"
  50273. + func_error "Continuing, but uninstalled executables may not work."
  50274. + # Fallback. This may break if $1 contains DOS-style drive
  50275. + # specifications. The fix is not to complicate the expression
  50276. + # below, but for the user to provide a working wine installation
  50277. + # with winepath so that path translation in the cross-to-mingw
  50278. + # case works properly.
  50279. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  50280. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  50281. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  50282. + fi
  50283. + # Now, add the leading and trailing path separators back
  50284. + case "$1" in
  50285. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  50286. + ;;
  50287. + esac
  50288. + case "$1" in
  50289. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  50290. + ;;
  50291. + esac
  50292. + ;;
  50293. + esac
  50294. + fi
  50295. +}
  50296. +# end: func_to_host_pathlist
  50297. - case $age in
  50298. - 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]) ;;
  50299. - *)
  50300. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  50301. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50302. - exit $EXIT_FAILURE
  50303. - ;;
  50304. - esac
  50305. +# func_emit_cwrapperexe_src
  50306. +# emit the source code for a wrapper executable on stdout
  50307. +# Must ONLY be called from within func_mode_link because
  50308. +# it depends on a number of variable set therein.
  50309. +func_emit_cwrapperexe_src ()
  50310. +{
  50311. + cat <<EOF
  50312. - if test "$age" -gt "$current"; then
  50313. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  50314. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  50315. - exit $EXIT_FAILURE
  50316. - fi
  50317. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  50318. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50319. - # Calculate the version variables.
  50320. - major=
  50321. - versuffix=
  50322. - verstring=
  50323. - case $version_type in
  50324. - none) ;;
  50325. + The $output program cannot be directly executed until all the libtool
  50326. + libraries that it depends on are installed.
  50327. - darwin)
  50328. - # Like Linux, but with the current version available in
  50329. - # verstring for coding it into the library header
  50330. - major=.`expr $current - $age`
  50331. - versuffix="$major.$age.$revision"
  50332. - # Darwin ld doesn't like 0 for these options...
  50333. - minor_current=`expr $current + 1`
  50334. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  50335. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  50336. - ;;
  50337. + This wrapper executable should never be moved out of the build directory.
  50338. + If it is, it will not operate correctly.
  50339. - freebsd-aout)
  50340. - major=".$current"
  50341. - versuffix=".$current.$revision";
  50342. - ;;
  50343. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  50344. + but could eventually absorb all of the scripts functionality and
  50345. + exec $objdir/$outputname directly.
  50346. +*/
  50347. +EOF
  50348. + cat <<"EOF"
  50349. +#include <stdio.h>
  50350. +#include <stdlib.h>
  50351. +#ifdef _MSC_VER
  50352. +# include <direct.h>
  50353. +# include <process.h>
  50354. +# include <io.h>
  50355. +# define setmode _setmode
  50356. +#else
  50357. +# include <unistd.h>
  50358. +# include <stdint.h>
  50359. +# ifdef __CYGWIN__
  50360. +# include <io.h>
  50361. +# define HAVE_SETENV
  50362. +# ifdef __STRICT_ANSI__
  50363. +char *realpath (const char *, char *);
  50364. +int putenv (char *);
  50365. +int setenv (const char *, const char *, int);
  50366. +# endif
  50367. +# endif
  50368. +#endif
  50369. +#include <malloc.h>
  50370. +#include <stdarg.h>
  50371. +#include <assert.h>
  50372. +#include <string.h>
  50373. +#include <ctype.h>
  50374. +#include <errno.h>
  50375. +#include <fcntl.h>
  50376. +#include <sys/stat.h>
  50377. - freebsd-elf)
  50378. - major=".$current"
  50379. - versuffix=".$current";
  50380. - ;;
  50381. +#if defined(PATH_MAX)
  50382. +# define LT_PATHMAX PATH_MAX
  50383. +#elif defined(MAXPATHLEN)
  50384. +# define LT_PATHMAX MAXPATHLEN
  50385. +#else
  50386. +# define LT_PATHMAX 1024
  50387. +#endif
  50388. - irix | nonstopux)
  50389. - if test "X$lt_irix_increment" = "Xno"; then
  50390. - major=`expr $current - $age`
  50391. - else
  50392. - major=`expr $current - $age + 1`
  50393. - fi
  50394. - case $version_type in
  50395. - nonstopux) verstring_prefix=nonstopux ;;
  50396. - *) verstring_prefix=sgi ;;
  50397. - esac
  50398. - verstring="$verstring_prefix$major.$revision"
  50399. +#ifndef S_IXOTH
  50400. +# define S_IXOTH 0
  50401. +#endif
  50402. +#ifndef S_IXGRP
  50403. +# define S_IXGRP 0
  50404. +#endif
  50405. - # Add in all the interfaces that we are compatible with.
  50406. - loop=$revision
  50407. - while test "$loop" -ne 0; do
  50408. - iface=`expr $revision - $loop`
  50409. - loop=`expr $loop - 1`
  50410. - verstring="$verstring_prefix$major.$iface:$verstring"
  50411. - done
  50412. +#ifdef _MSC_VER
  50413. +# define S_IXUSR _S_IEXEC
  50414. +# define stat _stat
  50415. +# ifndef _INTPTR_T_DEFINED
  50416. +# define intptr_t int
  50417. +# endif
  50418. +#endif
  50419. - # Before this point, $major must not contain `.'.
  50420. - major=.$major
  50421. - versuffix="$major.$revision"
  50422. - ;;
  50423. +#ifndef DIR_SEPARATOR
  50424. +# define DIR_SEPARATOR '/'
  50425. +# define PATH_SEPARATOR ':'
  50426. +#endif
  50427. - linux)
  50428. - major=.`expr $current - $age`
  50429. - versuffix="$major.$age.$revision"
  50430. - ;;
  50431. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  50432. + defined (__OS2__)
  50433. +# define HAVE_DOS_BASED_FILE_SYSTEM
  50434. +# define FOPEN_WB "wb"
  50435. +# ifndef DIR_SEPARATOR_2
  50436. +# define DIR_SEPARATOR_2 '\\'
  50437. +# endif
  50438. +# ifndef PATH_SEPARATOR_2
  50439. +# define PATH_SEPARATOR_2 ';'
  50440. +# endif
  50441. +#endif
  50442. - osf)
  50443. - major=.`expr $current - $age`
  50444. - versuffix=".$current.$age.$revision"
  50445. - verstring="$current.$age.$revision"
  50446. +#ifndef DIR_SEPARATOR_2
  50447. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  50448. +#else /* DIR_SEPARATOR_2 */
  50449. +# define IS_DIR_SEPARATOR(ch) \
  50450. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  50451. +#endif /* DIR_SEPARATOR_2 */
  50452. - # Add in all the interfaces that we are compatible with.
  50453. - loop=$age
  50454. - while test "$loop" -ne 0; do
  50455. - iface=`expr $current - $loop`
  50456. - loop=`expr $loop - 1`
  50457. - verstring="$verstring:${iface}.0"
  50458. - done
  50459. +#ifndef PATH_SEPARATOR_2
  50460. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  50461. +#else /* PATH_SEPARATOR_2 */
  50462. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  50463. +#endif /* PATH_SEPARATOR_2 */
  50464. - # Make executables depend on our current version.
  50465. - verstring="$verstring:${current}.0"
  50466. - ;;
  50467. +#ifdef __CYGWIN__
  50468. +# define FOPEN_WB "wb"
  50469. +#endif
  50470. - sunos)
  50471. - major=".$current"
  50472. - versuffix=".$current.$revision"
  50473. - ;;
  50474. +#ifndef FOPEN_WB
  50475. +# define FOPEN_WB "w"
  50476. +#endif
  50477. +#ifndef _O_BINARY
  50478. +# define _O_BINARY 0
  50479. +#endif
  50480. - windows)
  50481. - # Use '-' rather than '.', since we only want one
  50482. - # extension on DOS 8.3 filesystems.
  50483. - major=`expr $current - $age`
  50484. - versuffix="-$major"
  50485. - ;;
  50486. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  50487. +#define XFREE(stale) do { \
  50488. + if (stale) { free ((void *) stale); stale = 0; } \
  50489. +} while (0)
  50490. - *)
  50491. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  50492. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  50493. - exit $EXIT_FAILURE
  50494. - ;;
  50495. - esac
  50496. +#undef LTWRAPPER_DEBUGPRINTF
  50497. +#if defined DEBUGWRAPPER
  50498. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  50499. +static void
  50500. +ltwrapper_debugprintf (const char *fmt, ...)
  50501. +{
  50502. + va_list args;
  50503. + va_start (args, fmt);
  50504. + (void) vfprintf (stderr, fmt, args);
  50505. + va_end (args);
  50506. +}
  50507. +#else
  50508. +# define LTWRAPPER_DEBUGPRINTF(args)
  50509. +#endif
  50510. - # Clear the version info if we defaulted, and they specified a release.
  50511. - if test -z "$vinfo" && test -n "$release"; then
  50512. - major=
  50513. - case $version_type in
  50514. - darwin)
  50515. - # we can't check for "0.0" in archive_cmds due to quoting
  50516. - # problems, so we reset it completely
  50517. - verstring=
  50518. - ;;
  50519. - *)
  50520. - verstring="0.0"
  50521. - ;;
  50522. - esac
  50523. - if test "$need_version" = no; then
  50524. - versuffix=
  50525. - else
  50526. - versuffix=".0.0"
  50527. - fi
  50528. - fi
  50529. +const char *program_name = NULL;
  50530. - # Remove version info from name if versioning should be avoided
  50531. - if test "$avoid_version" = yes && test "$need_version" = no; then
  50532. - major=
  50533. - versuffix=
  50534. - verstring=""
  50535. - fi
  50536. +void *xmalloc (size_t num);
  50537. +char *xstrdup (const char *string);
  50538. +const char *base_name (const char *name);
  50539. +char *find_executable (const char *wrapper);
  50540. +char *chase_symlinks (const char *pathspec);
  50541. +int make_executable (const char *path);
  50542. +int check_executable (const char *path);
  50543. +char *strendzap (char *str, const char *pat);
  50544. +void lt_fatal (const char *message, ...);
  50545. +void lt_setenv (const char *name, const char *value);
  50546. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  50547. +void lt_opt_process_env_set (const char *arg);
  50548. +void lt_opt_process_env_prepend (const char *arg);
  50549. +void lt_opt_process_env_append (const char *arg);
  50550. +int lt_split_name_value (const char *arg, char** name, char** value);
  50551. +void lt_update_exe_path (const char *name, const char *value);
  50552. +void lt_update_lib_path (const char *name, const char *value);
  50553. - # Check to see if the archive will have undefined symbols.
  50554. - if test "$allow_undefined" = yes; then
  50555. - if test "$allow_undefined_flag" = unsupported; then
  50556. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  50557. - build_libtool_libs=no
  50558. - build_old_libs=yes
  50559. - fi
  50560. - else
  50561. - # Don't allow undefined symbols.
  50562. - allow_undefined_flag="$no_undefined_flag"
  50563. - fi
  50564. - fi
  50565. +static const char *script_text_part1 =
  50566. +EOF
  50567. - if test "$mode" != relink; then
  50568. - # Remove our outputs, but don't remove object files since they
  50569. - # may have been created when compiling PIC objects.
  50570. - removelist=
  50571. - tempremovelist=`$echo "$output_objdir/*"`
  50572. - for p in $tempremovelist; do
  50573. - case $p in
  50574. - *.$objext)
  50575. - ;;
  50576. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  50577. - if test "X$precious_files_regex" != "X"; then
  50578. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  50579. - then
  50580. - continue
  50581. - fi
  50582. - fi
  50583. - removelist="$removelist $p"
  50584. - ;;
  50585. - *) ;;
  50586. - esac
  50587. - done
  50588. - if test -n "$removelist"; then
  50589. - $show "${rm}r $removelist"
  50590. - $run ${rm}r $removelist
  50591. - fi
  50592. - fi
  50593. + func_emit_wrapper_part1 yes |
  50594. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50595. + -e 's/^/ "/' -e 's/$/\\n"/'
  50596. + echo ";"
  50597. + cat <<EOF
  50598. - # Now set the variables for building old libraries.
  50599. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  50600. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  50601. +static const char *script_text_part2 =
  50602. +EOF
  50603. + func_emit_wrapper_part2 yes |
  50604. + $SED -e 's/\([\\"]\)/\\\1/g' \
  50605. + -e 's/^/ "/' -e 's/$/\\n"/'
  50606. + echo ";"
  50607. +
  50608. + cat <<EOF
  50609. +const char * MAGIC_EXE = "$magic_exe";
  50610. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  50611. +EOF
  50612. - # Transform .lo files to .o files.
  50613. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  50614. - fi
  50615. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  50616. + func_to_host_pathlist "$temp_rpath"
  50617. + cat <<EOF
  50618. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  50619. +EOF
  50620. + else
  50621. + cat <<"EOF"
  50622. +const char * LIB_PATH_VALUE = "";
  50623. +EOF
  50624. + fi
  50625. - # Eliminate all temporary directories.
  50626. - #for path in $notinst_path; do
  50627. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  50628. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  50629. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  50630. - #done
  50631. + if test -n "$dllsearchpath"; then
  50632. + func_to_host_pathlist "$dllsearchpath:"
  50633. + cat <<EOF
  50634. +const char * EXE_PATH_VARNAME = "PATH";
  50635. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  50636. +EOF
  50637. + else
  50638. + cat <<"EOF"
  50639. +const char * EXE_PATH_VARNAME = "";
  50640. +const char * EXE_PATH_VALUE = "";
  50641. +EOF
  50642. + fi
  50643. - if test -n "$xrpath"; then
  50644. - # If the user specified any rpath flags, then add them.
  50645. - temp_xrpath=
  50646. - for libdir in $xrpath; do
  50647. - temp_xrpath="$temp_xrpath -R$libdir"
  50648. - case "$finalize_rpath " in
  50649. - *" $libdir "*) ;;
  50650. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  50651. - esac
  50652. - done
  50653. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  50654. - dependency_libs="$temp_xrpath $dependency_libs"
  50655. - fi
  50656. - fi
  50657. + if test "$fast_install" = yes; then
  50658. + cat <<EOF
  50659. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  50660. +EOF
  50661. + else
  50662. + cat <<EOF
  50663. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  50664. +EOF
  50665. + fi
  50666. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  50667. - old_dlfiles="$dlfiles"
  50668. - dlfiles=
  50669. - for lib in $old_dlfiles; do
  50670. - case " $dlprefiles $dlfiles " in
  50671. - *" $lib "*) ;;
  50672. - *) dlfiles="$dlfiles $lib" ;;
  50673. - esac
  50674. - done
  50675. - # Make sure dlprefiles contains only unique files
  50676. - old_dlprefiles="$dlprefiles"
  50677. - dlprefiles=
  50678. - for lib in $old_dlprefiles; do
  50679. - case "$dlprefiles " in
  50680. - *" $lib "*) ;;
  50681. - *) dlprefiles="$dlprefiles $lib" ;;
  50682. - esac
  50683. - done
  50684. + cat <<"EOF"
  50685. - if test "$build_libtool_libs" = yes; then
  50686. - if test -n "$rpath"; then
  50687. - case $host in
  50688. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  50689. - # these systems don't actually have a c library (as such)!
  50690. - ;;
  50691. - *-*-rhapsody* | *-*-darwin1.[012])
  50692. - # Rhapsody C library is in the System framework
  50693. - deplibs="$deplibs -framework System"
  50694. - ;;
  50695. - *-*-netbsd*)
  50696. - # Don't link with libc until the a.out ld.so is fixed.
  50697. - ;;
  50698. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50699. - # Do not include libc due to us having libc/libc_r.
  50700. - ;;
  50701. - *-*-sco3.2v5* | *-*-sco5v6*)
  50702. - # Causes problems with __ctype
  50703. - ;;
  50704. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  50705. - # Compiler inserts libc in the correct place for threads to work
  50706. - ;;
  50707. - *)
  50708. - # Add libc to deplibs on all other systems if necessary.
  50709. - if test "$build_libtool_need_lc" = "yes"; then
  50710. - deplibs="$deplibs -lc"
  50711. - fi
  50712. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  50713. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  50714. +
  50715. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  50716. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  50717. +
  50718. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  50719. +
  50720. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  50721. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  50722. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  50723. +
  50724. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  50725. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  50726. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  50727. +
  50728. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  50729. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  50730. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  50731. +
  50732. +int
  50733. +main (int argc, char *argv[])
  50734. +{
  50735. + char **newargz;
  50736. + int newargc;
  50737. + char *tmp_pathspec;
  50738. + char *actual_cwrapper_path;
  50739. + char *actual_cwrapper_name;
  50740. + char *target_name;
  50741. + char *lt_argv_zero;
  50742. + intptr_t rval = 127;
  50743. +
  50744. + int i;
  50745. +
  50746. + program_name = (char *) xstrdup (base_name (argv[0]));
  50747. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  50748. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  50749. +
  50750. + /* very simple arg parsing; don't want to rely on getopt */
  50751. + for (i = 1; i < argc; i++)
  50752. + {
  50753. + if (strcmp (argv[i], dumpscript_opt) == 0)
  50754. + {
  50755. +EOF
  50756. + case "$host" in
  50757. + *mingw* | *cygwin* )
  50758. + # make stdout use "unix" line endings
  50759. + echo " setmode(1,_O_BINARY);"
  50760. + ;;
  50761. + esac
  50762. +
  50763. + cat <<"EOF"
  50764. + printf ("%s", script_text_part1);
  50765. + printf ("%s", script_text_part2);
  50766. + return 0;
  50767. + }
  50768. + }
  50769. +
  50770. + newargz = XMALLOC (char *, argc + 1);
  50771. + tmp_pathspec = find_executable (argv[0]);
  50772. + if (tmp_pathspec == NULL)
  50773. + lt_fatal ("Couldn't find %s", argv[0]);
  50774. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  50775. + tmp_pathspec));
  50776. +
  50777. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  50778. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  50779. + actual_cwrapper_path));
  50780. + XFREE (tmp_pathspec);
  50781. +
  50782. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  50783. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  50784. +
  50785. + /* wrapper name transforms */
  50786. + strendzap (actual_cwrapper_name, ".exe");
  50787. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  50788. + XFREE (actual_cwrapper_name);
  50789. + actual_cwrapper_name = tmp_pathspec;
  50790. + tmp_pathspec = 0;
  50791. +
  50792. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  50793. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  50794. + strendzap (target_name, ".exe");
  50795. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  50796. + XFREE (target_name);
  50797. + target_name = tmp_pathspec;
  50798. + tmp_pathspec = 0;
  50799. +
  50800. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  50801. + target_name));
  50802. +EOF
  50803. +
  50804. + cat <<EOF
  50805. + newargz[0] =
  50806. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  50807. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  50808. + strcpy (newargz[0], actual_cwrapper_path);
  50809. + strcat (newargz[0], "$objdir");
  50810. + strcat (newargz[0], "/");
  50811. +EOF
  50812. +
  50813. + cat <<"EOF"
  50814. + /* stop here, and copy so we don't have to do this twice */
  50815. + tmp_pathspec = xstrdup (newargz[0]);
  50816. +
  50817. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  50818. + strcat (newargz[0], actual_cwrapper_name);
  50819. +
  50820. + /* DO want the lt- prefix here if it exists, so use target_name */
  50821. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  50822. + XFREE (tmp_pathspec);
  50823. + tmp_pathspec = NULL;
  50824. +EOF
  50825. +
  50826. + case $host_os in
  50827. + mingw*)
  50828. + cat <<"EOF"
  50829. + {
  50830. + char* p;
  50831. + while ((p = strchr (newargz[0], '\\')) != NULL)
  50832. + {
  50833. + *p = '/';
  50834. + }
  50835. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  50836. + {
  50837. + *p = '/';
  50838. + }
  50839. + }
  50840. +EOF
  50841. ;;
  50842. - esac
  50843. - fi
  50844. + esac
  50845. +
  50846. + cat <<"EOF"
  50847. + XFREE (target_name);
  50848. + XFREE (actual_cwrapper_path);
  50849. + XFREE (actual_cwrapper_name);
  50850. +
  50851. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  50852. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  50853. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  50854. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  50855. +
  50856. + newargc=0;
  50857. + for (i = 1; i < argc; i++)
  50858. + {
  50859. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  50860. + {
  50861. + if (argv[i][env_set_opt_len] == '=')
  50862. + {
  50863. + const char *p = argv[i] + env_set_opt_len + 1;
  50864. + lt_opt_process_env_set (p);
  50865. + }
  50866. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  50867. + {
  50868. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  50869. + }
  50870. + else
  50871. + lt_fatal ("%s missing required argument", env_set_opt);
  50872. + continue;
  50873. + }
  50874. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  50875. + {
  50876. + if (argv[i][env_prepend_opt_len] == '=')
  50877. + {
  50878. + const char *p = argv[i] + env_prepend_opt_len + 1;
  50879. + lt_opt_process_env_prepend (p);
  50880. + }
  50881. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  50882. + {
  50883. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  50884. + }
  50885. + else
  50886. + lt_fatal ("%s missing required argument", env_prepend_opt);
  50887. + continue;
  50888. + }
  50889. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  50890. + {
  50891. + if (argv[i][env_append_opt_len] == '=')
  50892. + {
  50893. + const char *p = argv[i] + env_append_opt_len + 1;
  50894. + lt_opt_process_env_append (p);
  50895. + }
  50896. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  50897. + {
  50898. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  50899. + }
  50900. + else
  50901. + lt_fatal ("%s missing required argument", env_append_opt);
  50902. + continue;
  50903. + }
  50904. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  50905. + {
  50906. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  50907. + namespace, but it is not one of the ones we know about and
  50908. + have already dealt with, above (inluding dump-script), then
  50909. + report an error. Otherwise, targets might begin to believe
  50910. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  50911. + namespace. The first time any user complains about this, we'll
  50912. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  50913. + or a configure.ac-settable value.
  50914. + */
  50915. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  50916. + ltwrapper_option_prefix, argv[i]);
  50917. + }
  50918. + /* otherwise ... */
  50919. + newargz[++newargc] = xstrdup (argv[i]);
  50920. + }
  50921. + newargz[++newargc] = NULL;
  50922. +
  50923. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  50924. + for (i = 0; i < newargc; i++)
  50925. + {
  50926. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  50927. + }
  50928. - # Transform deplibs into only deplibs that can be linked in shared.
  50929. - name_save=$name
  50930. - libname_save=$libname
  50931. - release_save=$release
  50932. - versuffix_save=$versuffix
  50933. - major_save=$major
  50934. - # I'm not sure if I'm treating the release correctly. I think
  50935. - # release should show up in the -l (ie -lgmp5) so we don't want to
  50936. - # add it in twice. Is that correct?
  50937. - release=""
  50938. - versuffix=""
  50939. - major=""
  50940. - newdeplibs=
  50941. - droppeddeps=no
  50942. - case $deplibs_check_method in
  50943. - pass_all)
  50944. - # Don't check for shared/static. Everything works.
  50945. - # This might be a little naive. We might want to check
  50946. - # whether the library exists or not. But this is on
  50947. - # osf3 & osf4 and I'm not really sure... Just
  50948. - # implementing what was already the behavior.
  50949. - newdeplibs=$deplibs
  50950. - ;;
  50951. - test_compile)
  50952. - # This code stresses the "libraries are programs" paradigm to its
  50953. - # limits. Maybe even breaks it. We compile a program, linking it
  50954. - # against the deplibs as a proxy for the library. Then we can check
  50955. - # whether they linked in statically or dynamically with ldd.
  50956. - $rm conftest.c
  50957. - cat > conftest.c <<EOF
  50958. - int main() { return 0; }
  50959. EOF
  50960. - $rm conftest
  50961. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  50962. - ldd_output=`ldd conftest`
  50963. - for i in $deplibs; do
  50964. - name=`expr $i : '-l\(.*\)'`
  50965. - # If $name is empty we are operating on a -L argument.
  50966. - if test "$name" != "" && test "$name" != "0"; then
  50967. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50968. - case " $predeps $postdeps " in
  50969. - *" $i "*)
  50970. - newdeplibs="$newdeplibs $i"
  50971. - i=""
  50972. - ;;
  50973. - esac
  50974. - fi
  50975. - if test -n "$i" ; then
  50976. - libname=`eval \\$echo \"$libname_spec\"`
  50977. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  50978. - set dummy $deplib_matches
  50979. - deplib_match=$2
  50980. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  50981. - newdeplibs="$newdeplibs $i"
  50982. - else
  50983. - droppeddeps=yes
  50984. - $echo
  50985. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  50986. - $echo "*** I have the capability to make that library automatically link in when"
  50987. - $echo "*** you link to this library. But I can only do this if you have a"
  50988. - $echo "*** shared version of the library, which I believe you do not have"
  50989. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  50990. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  50991. - fi
  50992. - fi
  50993. - else
  50994. - newdeplibs="$newdeplibs $i"
  50995. - fi
  50996. - done
  50997. - else
  50998. - # Error occurred in the first compile. Let's try to salvage
  50999. - # the situation: Compile a separate program for each library.
  51000. - for i in $deplibs; do
  51001. - name=`expr $i : '-l\(.*\)'`
  51002. - # If $name is empty we are operating on a -L argument.
  51003. - if test "$name" != "" && test "$name" != "0"; then
  51004. - $rm conftest
  51005. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  51006. - ldd_output=`ldd conftest`
  51007. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51008. - case " $predeps $postdeps " in
  51009. - *" $i "*)
  51010. - newdeplibs="$newdeplibs $i"
  51011. - i=""
  51012. - ;;
  51013. - esac
  51014. - fi
  51015. - if test -n "$i" ; then
  51016. - libname=`eval \\$echo \"$libname_spec\"`
  51017. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  51018. - set dummy $deplib_matches
  51019. - deplib_match=$2
  51020. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  51021. - newdeplibs="$newdeplibs $i"
  51022. - else
  51023. - droppeddeps=yes
  51024. - $echo
  51025. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  51026. - $echo "*** I have the capability to make that library automatically link in when"
  51027. - $echo "*** you link to this library. But I can only do this if you have a"
  51028. - $echo "*** shared version of the library, which you do not appear to have"
  51029. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  51030. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  51031. - fi
  51032. - fi
  51033. - else
  51034. - droppeddeps=yes
  51035. - $echo
  51036. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  51037. - $echo "*** make it link in! You will probably need to install it or some"
  51038. - $echo "*** library that it depends on before this library will be fully"
  51039. - $echo "*** functional. Installing it before continuing would be even better."
  51040. - fi
  51041. - else
  51042. - newdeplibs="$newdeplibs $i"
  51043. - fi
  51044. - done
  51045. - fi
  51046. - ;;
  51047. - file_magic*)
  51048. - set dummy $deplibs_check_method
  51049. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51050. - for a_deplib in $deplibs; do
  51051. - name=`expr $a_deplib : '-l\(.*\)'`
  51052. - # If $name is empty we are operating on a -L argument.
  51053. - if test "$name" != "" && test "$name" != "0"; then
  51054. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51055. - case " $predeps $postdeps " in
  51056. - *" $a_deplib "*)
  51057. - newdeplibs="$newdeplibs $a_deplib"
  51058. - a_deplib=""
  51059. - ;;
  51060. - esac
  51061. - fi
  51062. - if test -n "$a_deplib" ; then
  51063. - libname=`eval \\$echo \"$libname_spec\"`
  51064. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51065. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51066. - for potent_lib in $potential_libs; do
  51067. - # Follow soft links.
  51068. - if ls -lLd "$potent_lib" 2>/dev/null \
  51069. - | grep " -> " >/dev/null; then
  51070. - continue
  51071. - fi
  51072. - # The statement above tries to avoid entering an
  51073. - # endless loop below, in case of cyclic links.
  51074. - # We might still enter an endless loop, since a link
  51075. - # loop can be closed while we follow links,
  51076. - # but so what?
  51077. - potlib="$potent_lib"
  51078. - while test -h "$potlib" 2>/dev/null; do
  51079. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  51080. - case $potliblink in
  51081. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  51082. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  51083. - esac
  51084. - done
  51085. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  51086. - | ${SED} 10q \
  51087. - | $EGREP "$file_magic_regex" > /dev/null; then
  51088. - newdeplibs="$newdeplibs $a_deplib"
  51089. - a_deplib=""
  51090. - break 2
  51091. - fi
  51092. - done
  51093. - done
  51094. - fi
  51095. - if test -n "$a_deplib" ; then
  51096. - droppeddeps=yes
  51097. - $echo
  51098. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51099. - $echo "*** I have the capability to make that library automatically link in when"
  51100. - $echo "*** you link to this library. But I can only do this if you have a"
  51101. - $echo "*** shared version of the library, which you do not appear to have"
  51102. - $echo "*** because I did check the linker path looking for a file starting"
  51103. - if test -z "$potlib" ; then
  51104. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  51105. - else
  51106. - $echo "*** with $libname and none of the candidates passed a file format test"
  51107. - $echo "*** using a file magic. Last file checked: $potlib"
  51108. - fi
  51109. - fi
  51110. - else
  51111. - # Add a -L argument.
  51112. - newdeplibs="$newdeplibs $a_deplib"
  51113. - fi
  51114. - done # Gone through all deplibs.
  51115. - ;;
  51116. - match_pattern*)
  51117. - set dummy $deplibs_check_method
  51118. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  51119. - for a_deplib in $deplibs; do
  51120. - name=`expr $a_deplib : '-l\(.*\)'`
  51121. - # If $name is empty we are operating on a -L argument.
  51122. - if test -n "$name" && test "$name" != "0"; then
  51123. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51124. - case " $predeps $postdeps " in
  51125. - *" $a_deplib "*)
  51126. - newdeplibs="$newdeplibs $a_deplib"
  51127. - a_deplib=""
  51128. - ;;
  51129. - esac
  51130. - fi
  51131. - if test -n "$a_deplib" ; then
  51132. - libname=`eval \\$echo \"$libname_spec\"`
  51133. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51134. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  51135. - for potent_lib in $potential_libs; do
  51136. - potlib="$potent_lib" # see symlink-check above in file_magic test
  51137. - if eval $echo \"$potent_lib\" 2>/dev/null \
  51138. - | ${SED} 10q \
  51139. - | $EGREP "$match_pattern_regex" > /dev/null; then
  51140. - newdeplibs="$newdeplibs $a_deplib"
  51141. - a_deplib=""
  51142. - break 2
  51143. - fi
  51144. - done
  51145. - done
  51146. - fi
  51147. - if test -n "$a_deplib" ; then
  51148. - droppeddeps=yes
  51149. - $echo
  51150. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  51151. - $echo "*** I have the capability to make that library automatically link in when"
  51152. - $echo "*** you link to this library. But I can only do this if you have a"
  51153. - $echo "*** shared version of the library, which you do not appear to have"
  51154. - $echo "*** because I did check the linker path looking for a file starting"
  51155. - if test -z "$potlib" ; then
  51156. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  51157. - else
  51158. - $echo "*** with $libname and none of the candidates passed a file format test"
  51159. - $echo "*** using a regex pattern. Last file checked: $potlib"
  51160. - fi
  51161. - fi
  51162. - else
  51163. - # Add a -L argument.
  51164. - newdeplibs="$newdeplibs $a_deplib"
  51165. - fi
  51166. - done # Gone through all deplibs.
  51167. - ;;
  51168. - none | unknown | *)
  51169. - newdeplibs=""
  51170. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  51171. - -e 's/ -[LR][^ ]*//g'`
  51172. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51173. - for i in $predeps $postdeps ; do
  51174. - # can't use Xsed below, because $i might contain '/'
  51175. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  51176. - done
  51177. - fi
  51178. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  51179. - | grep . >/dev/null; then
  51180. - $echo
  51181. - if test "X$deplibs_check_method" = "Xnone"; then
  51182. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  51183. - else
  51184. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  51185. - fi
  51186. - $echo "*** All declared inter-library dependencies are being dropped."
  51187. - droppeddeps=yes
  51188. - fi
  51189. - ;;
  51190. - esac
  51191. - versuffix=$versuffix_save
  51192. - major=$major_save
  51193. - release=$release_save
  51194. - libname=$libname_save
  51195. - name=$name_save
  51196. - case $host in
  51197. - *-*-rhapsody* | *-*-darwin1.[012])
  51198. - # On Rhapsody replace the C library is the System framework
  51199. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  51200. - ;;
  51201. - esac
  51202. + case $host_os in
  51203. + mingw*)
  51204. + cat <<"EOF"
  51205. + /* execv doesn't actually work on mingw as expected on unix */
  51206. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  51207. + if (rval == -1)
  51208. + {
  51209. + /* failed to start process */
  51210. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  51211. + return 127;
  51212. + }
  51213. + return rval;
  51214. +EOF
  51215. + ;;
  51216. + *)
  51217. + cat <<"EOF"
  51218. + execv (lt_argv_zero, newargz);
  51219. + return rval; /* =127, but avoids unused variable warning */
  51220. +EOF
  51221. + ;;
  51222. + esac
  51223. - if test "$droppeddeps" = yes; then
  51224. - if test "$module" = yes; then
  51225. - $echo
  51226. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  51227. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  51228. - $echo "*** a static module, that should work as long as the dlopening"
  51229. - $echo "*** application is linked with the -dlopen flag."
  51230. - if test -z "$global_symbol_pipe"; then
  51231. - $echo
  51232. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51233. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51234. - $echo "*** not find such a program. So, this module is probably useless."
  51235. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51236. - fi
  51237. - if test "$build_old_libs" = no; then
  51238. - oldlibs="$output_objdir/$libname.$libext"
  51239. - build_libtool_libs=module
  51240. - build_old_libs=yes
  51241. - else
  51242. - build_libtool_libs=no
  51243. - fi
  51244. - else
  51245. - $echo "*** The inter-library dependencies that have been dropped here will be"
  51246. - $echo "*** automatically added whenever a program is linked with this library"
  51247. - $echo "*** or is declared to -dlopen it."
  51248. + cat <<"EOF"
  51249. +}
  51250. - if test "$allow_undefined" = no; then
  51251. - $echo
  51252. - $echo "*** Since this library must not contain undefined symbols,"
  51253. - $echo "*** because either the platform does not support them or"
  51254. - $echo "*** it was explicitly requested with -no-undefined,"
  51255. - $echo "*** libtool will only create a static version of it."
  51256. - if test "$build_old_libs" = no; then
  51257. - oldlibs="$output_objdir/$libname.$libext"
  51258. - build_libtool_libs=module
  51259. - build_old_libs=yes
  51260. - else
  51261. - build_libtool_libs=no
  51262. - fi
  51263. - fi
  51264. - fi
  51265. - fi
  51266. - # Done checking deplibs!
  51267. - deplibs=$newdeplibs
  51268. - fi
  51269. +void *
  51270. +xmalloc (size_t num)
  51271. +{
  51272. + void *p = (void *) malloc (num);
  51273. + if (!p)
  51274. + lt_fatal ("Memory exhausted");
  51275. + return p;
  51276. +}
  51277. - # move library search paths that coincide with paths to not yet
  51278. - # installed libraries to the beginning of the library search list
  51279. - new_libs=
  51280. - for path in $notinst_path; do
  51281. - case " $new_libs " in
  51282. - *" -L$path/$objdir "*) ;;
  51283. - *)
  51284. - case " $deplibs " in
  51285. - *" -L$path/$objdir "*)
  51286. - new_libs="$new_libs -L$path/$objdir" ;;
  51287. - esac
  51288. - ;;
  51289. - esac
  51290. - done
  51291. - for deplib in $deplibs; do
  51292. - case $deplib in
  51293. - -L*)
  51294. - case " $new_libs " in
  51295. - *" $deplib "*) ;;
  51296. - *) new_libs="$new_libs $deplib" ;;
  51297. - esac
  51298. - ;;
  51299. - *) new_libs="$new_libs $deplib" ;;
  51300. - esac
  51301. - done
  51302. - deplibs="$new_libs"
  51303. +char *
  51304. +xstrdup (const char *string)
  51305. +{
  51306. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  51307. + string) : NULL;
  51308. +}
  51309. +const char *
  51310. +base_name (const char *name)
  51311. +{
  51312. + const char *base;
  51313. - # All the library-specific variables (install_libdir is set above).
  51314. - library_names=
  51315. - old_library=
  51316. - dlname=
  51317. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51318. + /* Skip over the disk name in MSDOS pathnames. */
  51319. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  51320. + name += 2;
  51321. +#endif
  51322. - # Test again, we may have decided not to build it any more
  51323. - if test "$build_libtool_libs" = yes; then
  51324. - if test "$hardcode_into_libs" = yes; then
  51325. - # Hardcode the library paths
  51326. - hardcode_libdirs=
  51327. - dep_rpath=
  51328. - rpath="$finalize_rpath"
  51329. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  51330. - for libdir in $rpath; do
  51331. - if test -n "$hardcode_libdir_flag_spec"; then
  51332. - if test -n "$hardcode_libdir_separator"; then
  51333. - if test -z "$hardcode_libdirs"; then
  51334. - hardcode_libdirs="$libdir"
  51335. - else
  51336. - # Just accumulate the unique libdirs.
  51337. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51338. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51339. - ;;
  51340. - *)
  51341. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51342. - ;;
  51343. - esac
  51344. - fi
  51345. - else
  51346. - eval flag=\"$hardcode_libdir_flag_spec\"
  51347. - dep_rpath="$dep_rpath $flag"
  51348. - fi
  51349. - elif test -n "$runpath_var"; then
  51350. - case "$perm_rpath " in
  51351. - *" $libdir "*) ;;
  51352. - *) perm_rpath="$perm_rpath $libdir" ;;
  51353. - esac
  51354. - fi
  51355. - done
  51356. - # Substitute the hardcoded libdirs into the rpath.
  51357. - if test -n "$hardcode_libdir_separator" &&
  51358. - test -n "$hardcode_libdirs"; then
  51359. - libdir="$hardcode_libdirs"
  51360. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  51361. - case $archive_cmds in
  51362. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  51363. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  51364. - esac
  51365. - else
  51366. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  51367. - fi
  51368. - fi
  51369. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  51370. - # We should set the runpath_var.
  51371. - rpath=
  51372. - for dir in $perm_rpath; do
  51373. - rpath="$rpath$dir:"
  51374. - done
  51375. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  51376. - fi
  51377. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  51378. - fi
  51379. + for (base = name; *name; name++)
  51380. + if (IS_DIR_SEPARATOR (*name))
  51381. + base = name + 1;
  51382. + return base;
  51383. +}
  51384. - shlibpath="$finalize_shlibpath"
  51385. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  51386. - if test -n "$shlibpath"; then
  51387. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  51388. - fi
  51389. +int
  51390. +check_executable (const char *path)
  51391. +{
  51392. + struct stat st;
  51393. - # Get the real and link names of the library.
  51394. - eval shared_ext=\"$shrext_cmds\"
  51395. - eval library_names=\"$library_names_spec\"
  51396. - set dummy $library_names
  51397. - realname="$2"
  51398. - shift; shift
  51399. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  51400. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  51401. + if ((!path) || (!*path))
  51402. + return 0;
  51403. - if test -n "$soname_spec"; then
  51404. - eval soname=\"$soname_spec\"
  51405. - else
  51406. - soname="$realname"
  51407. - fi
  51408. - if test -z "$dlname"; then
  51409. - dlname=$soname
  51410. - fi
  51411. + if ((stat (path, &st) >= 0)
  51412. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  51413. + return 1;
  51414. + else
  51415. + return 0;
  51416. +}
  51417. - lib="$output_objdir/$realname"
  51418. - linknames=
  51419. - for link
  51420. - do
  51421. - linknames="$linknames $link"
  51422. - done
  51423. -
  51424. - # Use standard objects if they are pic
  51425. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51426. +int
  51427. +make_executable (const char *path)
  51428. +{
  51429. + int rval = 0;
  51430. + struct stat st;
  51431. - # Prepare the list of exported symbols
  51432. - if test -z "$export_symbols"; then
  51433. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  51434. - $show "generating symbol list for \`$libname.la'"
  51435. - export_symbols="$output_objdir/$libname.exp"
  51436. - $run $rm $export_symbols
  51437. - cmds=$export_symbols_cmds
  51438. - save_ifs="$IFS"; IFS='~'
  51439. - for cmd in $cmds; do
  51440. - IFS="$save_ifs"
  51441. - eval cmd=\"$cmd\"
  51442. - if len=`expr "X$cmd" : ".*"` &&
  51443. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51444. - $show "$cmd"
  51445. - $run eval "$cmd" || exit $?
  51446. - skipped_export=false
  51447. - else
  51448. - # The command line is too long to execute in one step.
  51449. - $show "using reloadable object file for export list..."
  51450. - skipped_export=:
  51451. - # Break out early, otherwise skipped_export may be
  51452. - # set to false by a later but shorter cmd.
  51453. - break
  51454. - fi
  51455. - done
  51456. - IFS="$save_ifs"
  51457. - if test -n "$export_symbols_regex"; then
  51458. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  51459. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  51460. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  51461. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  51462. - fi
  51463. - fi
  51464. - fi
  51465. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  51466. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  51467. + if ((!path) || (!*path))
  51468. + return 0;
  51469. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  51470. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  51471. - fi
  51472. + if (stat (path, &st) >= 0)
  51473. + {
  51474. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  51475. + }
  51476. + return rval;
  51477. +}
  51478. - tmp_deplibs=
  51479. - for test_deplib in $deplibs; do
  51480. - case " $convenience " in
  51481. - *" $test_deplib "*) ;;
  51482. - *)
  51483. - tmp_deplibs="$tmp_deplibs $test_deplib"
  51484. - ;;
  51485. - esac
  51486. - done
  51487. - deplibs="$tmp_deplibs"
  51488. +/* Searches for the full path of the wrapper. Returns
  51489. + newly allocated full path name if found, NULL otherwise
  51490. + Does not chase symlinks, even on platforms that support them.
  51491. +*/
  51492. +char *
  51493. +find_executable (const char *wrapper)
  51494. +{
  51495. + int has_slash = 0;
  51496. + const char *p;
  51497. + const char *p_next;
  51498. + /* static buffer for getcwd */
  51499. + char tmp[LT_PATHMAX + 1];
  51500. + int tmp_len;
  51501. + char *concat_name;
  51502. - if test -n "$convenience"; then
  51503. - if test -n "$whole_archive_flag_spec"; then
  51504. - save_libobjs=$libobjs
  51505. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51506. - else
  51507. - gentop="$output_objdir/${outputname}x"
  51508. - generated="$generated $gentop"
  51509. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  51510. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  51511. - func_extract_archives $gentop $convenience
  51512. - libobjs="$libobjs $func_extract_archives_result"
  51513. - fi
  51514. - fi
  51515. -
  51516. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  51517. - eval flag=\"$thread_safe_flag_spec\"
  51518. - linker_flags="$linker_flags $flag"
  51519. - fi
  51520. + if ((wrapper == NULL) || (*wrapper == '\0'))
  51521. + return NULL;
  51522. - # Make a backup of the uninstalled library when relinking
  51523. - if test "$mode" = relink; then
  51524. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  51525. - fi
  51526. + /* Absolute path? */
  51527. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51528. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  51529. + {
  51530. + concat_name = xstrdup (wrapper);
  51531. + if (check_executable (concat_name))
  51532. + return concat_name;
  51533. + XFREE (concat_name);
  51534. + }
  51535. + else
  51536. + {
  51537. +#endif
  51538. + if (IS_DIR_SEPARATOR (wrapper[0]))
  51539. + {
  51540. + concat_name = xstrdup (wrapper);
  51541. + if (check_executable (concat_name))
  51542. + return concat_name;
  51543. + XFREE (concat_name);
  51544. + }
  51545. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51546. + }
  51547. +#endif
  51548. - # Do each of the archive commands.
  51549. - if test "$module" = yes && test -n "$module_cmds" ; then
  51550. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51551. - eval test_cmds=\"$module_expsym_cmds\"
  51552. - cmds=$module_expsym_cmds
  51553. - else
  51554. - eval test_cmds=\"$module_cmds\"
  51555. - cmds=$module_cmds
  51556. - fi
  51557. - else
  51558. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51559. - eval test_cmds=\"$archive_expsym_cmds\"
  51560. - cmds=$archive_expsym_cmds
  51561. - else
  51562. - eval test_cmds=\"$archive_cmds\"
  51563. - cmds=$archive_cmds
  51564. - fi
  51565. - fi
  51566. + for (p = wrapper; *p; p++)
  51567. + if (*p == '/')
  51568. + {
  51569. + has_slash = 1;
  51570. + break;
  51571. + }
  51572. + if (!has_slash)
  51573. + {
  51574. + /* no slashes; search PATH */
  51575. + const char *path = getenv ("PATH");
  51576. + if (path != NULL)
  51577. + {
  51578. + for (p = path; *p; p = p_next)
  51579. + {
  51580. + const char *q;
  51581. + size_t p_len;
  51582. + for (q = p; *q; q++)
  51583. + if (IS_PATH_SEPARATOR (*q))
  51584. + break;
  51585. + p_len = q - p;
  51586. + p_next = (*q == '\0' ? q : q + 1);
  51587. + if (p_len == 0)
  51588. + {
  51589. + /* empty path: current directory */
  51590. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51591. + lt_fatal ("getcwd failed");
  51592. + tmp_len = strlen (tmp);
  51593. + concat_name =
  51594. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  51595. + memcpy (concat_name, tmp, tmp_len);
  51596. + concat_name[tmp_len] = '/';
  51597. + strcpy (concat_name + tmp_len + 1, wrapper);
  51598. + }
  51599. + else
  51600. + {
  51601. + concat_name =
  51602. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  51603. + memcpy (concat_name, p, p_len);
  51604. + concat_name[p_len] = '/';
  51605. + strcpy (concat_name + p_len + 1, wrapper);
  51606. + }
  51607. + if (check_executable (concat_name))
  51608. + return concat_name;
  51609. + XFREE (concat_name);
  51610. + }
  51611. + }
  51612. + /* not found in PATH; assume curdir */
  51613. + }
  51614. + /* Relative path | not found in path: prepend cwd */
  51615. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51616. + lt_fatal ("getcwd failed");
  51617. + tmp_len = strlen (tmp);
  51618. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  51619. + memcpy (concat_name, tmp, tmp_len);
  51620. + concat_name[tmp_len] = '/';
  51621. + strcpy (concat_name + tmp_len + 1, wrapper);
  51622. - if test "X$skipped_export" != "X:" &&
  51623. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51624. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51625. - :
  51626. - else
  51627. - # The command line is too long to link in one step, link piecewise.
  51628. - $echo "creating reloadable object files..."
  51629. + if (check_executable (concat_name))
  51630. + return concat_name;
  51631. + XFREE (concat_name);
  51632. + return NULL;
  51633. +}
  51634. - # Save the value of $output and $libobjs because we want to
  51635. - # use them later. If we have whole_archive_flag_spec, we
  51636. - # want to use save_libobjs as it was before
  51637. - # whole_archive_flag_spec was expanded, because we can't
  51638. - # assume the linker understands whole_archive_flag_spec.
  51639. - # This may have to be revisited, in case too many
  51640. - # convenience libraries get linked in and end up exceeding
  51641. - # the spec.
  51642. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  51643. - save_libobjs=$libobjs
  51644. - fi
  51645. - save_output=$output
  51646. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  51647. +char *
  51648. +chase_symlinks (const char *pathspec)
  51649. +{
  51650. +#ifndef S_ISLNK
  51651. + return xstrdup (pathspec);
  51652. +#else
  51653. + char buf[LT_PATHMAX];
  51654. + struct stat s;
  51655. + char *tmp_pathspec = xstrdup (pathspec);
  51656. + char *p;
  51657. + int has_symlinks = 0;
  51658. + while (strlen (tmp_pathspec) && !has_symlinks)
  51659. + {
  51660. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  51661. + tmp_pathspec));
  51662. + if (lstat (tmp_pathspec, &s) == 0)
  51663. + {
  51664. + if (S_ISLNK (s.st_mode) != 0)
  51665. + {
  51666. + has_symlinks = 1;
  51667. + break;
  51668. + }
  51669. - # Clear the reloadable object creation command queue and
  51670. - # initialize k to one.
  51671. - test_cmds=
  51672. - concat_cmds=
  51673. - objlist=
  51674. - delfiles=
  51675. - last_robj=
  51676. - k=1
  51677. - output=$output_objdir/$output_la-${k}.$objext
  51678. - # Loop over the list of objects to be linked.
  51679. - for obj in $save_libobjs
  51680. - do
  51681. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  51682. - if test "X$objlist" = X ||
  51683. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51684. - test "$len" -le "$max_cmd_len"; }; then
  51685. - objlist="$objlist $obj"
  51686. - else
  51687. - # The command $test_cmds is almost too long, add a
  51688. - # command to the queue.
  51689. - if test "$k" -eq 1 ; then
  51690. - # The first file doesn't have a previous command to add.
  51691. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  51692. - else
  51693. - # All subsequent reloadable object files will link in
  51694. - # the last one created.
  51695. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  51696. - fi
  51697. - last_robj=$output_objdir/$output_la-${k}.$objext
  51698. - k=`expr $k + 1`
  51699. - output=$output_objdir/$output_la-${k}.$objext
  51700. - objlist=$obj
  51701. - len=1
  51702. - fi
  51703. - done
  51704. - # Handle the remaining objects by creating one last
  51705. - # reloadable object file. All subsequent reloadable object
  51706. - # files will link in the last one created.
  51707. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51708. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  51709. + /* search backwards for last DIR_SEPARATOR */
  51710. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  51711. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  51712. + p--;
  51713. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  51714. + {
  51715. + /* no more DIR_SEPARATORS left */
  51716. + break;
  51717. + }
  51718. + *p = '\0';
  51719. + }
  51720. + else
  51721. + {
  51722. + char *errstr = strerror (errno);
  51723. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  51724. + }
  51725. + }
  51726. + XFREE (tmp_pathspec);
  51727. - if ${skipped_export-false}; then
  51728. - $show "generating symbol list for \`$libname.la'"
  51729. - export_symbols="$output_objdir/$libname.exp"
  51730. - $run $rm $export_symbols
  51731. - libobjs=$output
  51732. - # Append the command to create the export file.
  51733. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  51734. - fi
  51735. -
  51736. - # Set up a command to remove the reloadable object files
  51737. - # after they are used.
  51738. - i=0
  51739. - while test "$i" -lt "$k"
  51740. - do
  51741. - i=`expr $i + 1`
  51742. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  51743. - done
  51744. + if (!has_symlinks)
  51745. + {
  51746. + return xstrdup (pathspec);
  51747. + }
  51748. - $echo "creating a temporary reloadable object file: $output"
  51749. + tmp_pathspec = realpath (pathspec, buf);
  51750. + if (tmp_pathspec == 0)
  51751. + {
  51752. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  51753. + }
  51754. + return xstrdup (tmp_pathspec);
  51755. +#endif
  51756. +}
  51757. - # Loop through the commands generated above and execute them.
  51758. - save_ifs="$IFS"; IFS='~'
  51759. - for cmd in $concat_cmds; do
  51760. - IFS="$save_ifs"
  51761. - $show "$cmd"
  51762. - $run eval "$cmd" || exit $?
  51763. - done
  51764. - IFS="$save_ifs"
  51765. +char *
  51766. +strendzap (char *str, const char *pat)
  51767. +{
  51768. + size_t len, patlen;
  51769. - libobjs=$output
  51770. - # Restore the value of output.
  51771. - output=$save_output
  51772. + assert (str != NULL);
  51773. + assert (pat != NULL);
  51774. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  51775. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51776. - fi
  51777. - # Expand the library linking commands again to reset the
  51778. - # value of $libobjs for piecewise linking.
  51779. + len = strlen (str);
  51780. + patlen = strlen (pat);
  51781. - # Do each of the archive commands.
  51782. - if test "$module" = yes && test -n "$module_cmds" ; then
  51783. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51784. - cmds=$module_expsym_cmds
  51785. - else
  51786. - cmds=$module_cmds
  51787. - fi
  51788. - else
  51789. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51790. - cmds=$archive_expsym_cmds
  51791. - else
  51792. - cmds=$archive_cmds
  51793. - fi
  51794. - fi
  51795. + if (patlen <= len)
  51796. + {
  51797. + str += len - patlen;
  51798. + if (strcmp (str, pat) == 0)
  51799. + *str = '\0';
  51800. + }
  51801. + return str;
  51802. +}
  51803. - # Append the command to remove the reloadable object files
  51804. - # to the just-reset $cmds.
  51805. - eval cmds=\"\$cmds~\$rm $delfiles\"
  51806. - fi
  51807. - save_ifs="$IFS"; IFS='~'
  51808. - for cmd in $cmds; do
  51809. - IFS="$save_ifs"
  51810. - eval cmd=\"$cmd\"
  51811. - $show "$cmd"
  51812. - $run eval "$cmd" || {
  51813. - lt_exit=$?
  51814. +static void
  51815. +lt_error_core (int exit_status, const char *mode,
  51816. + const char *message, va_list ap)
  51817. +{
  51818. + fprintf (stderr, "%s: %s: ", program_name, mode);
  51819. + vfprintf (stderr, message, ap);
  51820. + fprintf (stderr, ".\n");
  51821. - # Restore the uninstalled library and exit
  51822. - if test "$mode" = relink; then
  51823. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  51824. - fi
  51825. + if (exit_status >= 0)
  51826. + exit (exit_status);
  51827. +}
  51828. - exit $lt_exit
  51829. - }
  51830. - done
  51831. - IFS="$save_ifs"
  51832. +void
  51833. +lt_fatal (const char *message, ...)
  51834. +{
  51835. + va_list ap;
  51836. + va_start (ap, message);
  51837. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  51838. + va_end (ap);
  51839. +}
  51840. - # Restore the uninstalled library and exit
  51841. - if test "$mode" = relink; then
  51842. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  51843. +void
  51844. +lt_setenv (const char *name, const char *value)
  51845. +{
  51846. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  51847. + (name ? name : "<NULL>"),
  51848. + (value ? value : "<NULL>")));
  51849. + {
  51850. +#ifdef HAVE_SETENV
  51851. + /* always make a copy, for consistency with !HAVE_SETENV */
  51852. + char *str = xstrdup (value);
  51853. + setenv (name, str, 1);
  51854. +#else
  51855. + int len = strlen (name) + 1 + strlen (value) + 1;
  51856. + char *str = XMALLOC (char, len);
  51857. + sprintf (str, "%s=%s", name, value);
  51858. + if (putenv (str) != EXIT_SUCCESS)
  51859. + {
  51860. + XFREE (str);
  51861. + }
  51862. +#endif
  51863. + }
  51864. +}
  51865. - if test -n "$convenience"; then
  51866. - if test -z "$whole_archive_flag_spec"; then
  51867. - $show "${rm}r $gentop"
  51868. - $run ${rm}r "$gentop"
  51869. - fi
  51870. - fi
  51871. +char *
  51872. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  51873. +{
  51874. + char *new_value;
  51875. + if (orig_value && *orig_value)
  51876. + {
  51877. + int orig_value_len = strlen (orig_value);
  51878. + int add_len = strlen (add);
  51879. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  51880. + if (to_end)
  51881. + {
  51882. + strcpy (new_value, orig_value);
  51883. + strcpy (new_value + orig_value_len, add);
  51884. + }
  51885. + else
  51886. + {
  51887. + strcpy (new_value, add);
  51888. + strcpy (new_value + add_len, orig_value);
  51889. + }
  51890. + }
  51891. + else
  51892. + {
  51893. + new_value = xstrdup (add);
  51894. + }
  51895. + return new_value;
  51896. +}
  51897. - exit $EXIT_SUCCESS
  51898. - fi
  51899. +int
  51900. +lt_split_name_value (const char *arg, char** name, char** value)
  51901. +{
  51902. + const char *p;
  51903. + int len;
  51904. + if (!arg || !*arg)
  51905. + return 1;
  51906. - # Create links to the real library.
  51907. - for linkname in $linknames; do
  51908. - if test "$realname" != "$linkname"; then
  51909. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  51910. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  51911. - fi
  51912. - done
  51913. + p = strchr (arg, (int)'=');
  51914. - # If -module or -export-dynamic was specified, set the dlname.
  51915. - if test "$module" = yes || test "$export_dynamic" = yes; then
  51916. - # On all known operating systems, these are identical.
  51917. - dlname="$soname"
  51918. - fi
  51919. - fi
  51920. - ;;
  51921. + if (!p)
  51922. + return 1;
  51923. - obj)
  51924. - case " $deplibs" in
  51925. - *\ -l* | *\ -L*)
  51926. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  51927. - esac
  51928. + *value = xstrdup (++p);
  51929. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51930. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  51931. - fi
  51932. + len = strlen (arg) - strlen (*value);
  51933. + *name = XMALLOC (char, len);
  51934. + strncpy (*name, arg, len-1);
  51935. + (*name)[len - 1] = '\0';
  51936. - if test -n "$rpath"; then
  51937. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  51938. - fi
  51939. + return 0;
  51940. +}
  51941. - if test -n "$xrpath"; then
  51942. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  51943. - fi
  51944. +void
  51945. +lt_opt_process_env_set (const char *arg)
  51946. +{
  51947. + char *name = NULL;
  51948. + char *value = NULL;
  51949. - if test -n "$vinfo"; then
  51950. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  51951. - fi
  51952. + if (lt_split_name_value (arg, &name, &value) != 0)
  51953. + {
  51954. + XFREE (name);
  51955. + XFREE (value);
  51956. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  51957. + }
  51958. - if test -n "$release"; then
  51959. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  51960. - fi
  51961. + lt_setenv (name, value);
  51962. + XFREE (name);
  51963. + XFREE (value);
  51964. +}
  51965. - case $output in
  51966. - *.lo)
  51967. - if test -n "$objs$old_deplibs"; then
  51968. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  51969. - exit $EXIT_FAILURE
  51970. - fi
  51971. - libobj="$output"
  51972. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  51973. - ;;
  51974. - *)
  51975. - libobj=
  51976. - obj="$output"
  51977. - ;;
  51978. - esac
  51979. +void
  51980. +lt_opt_process_env_prepend (const char *arg)
  51981. +{
  51982. + char *name = NULL;
  51983. + char *value = NULL;
  51984. + char *new_value = NULL;
  51985. - # Delete the old objects.
  51986. - $run $rm $obj $libobj
  51987. + if (lt_split_name_value (arg, &name, &value) != 0)
  51988. + {
  51989. + XFREE (name);
  51990. + XFREE (value);
  51991. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  51992. + }
  51993. - # Objects from convenience libraries. This assumes
  51994. - # single-version convenience libraries. Whenever we create
  51995. - # different ones for PIC/non-PIC, this we'll have to duplicate
  51996. - # the extraction.
  51997. - reload_conv_objs=
  51998. - gentop=
  51999. - # reload_cmds runs $LD directly, so let us get rid of
  52000. - # -Wl from whole_archive_flag_spec and hope we can get by with
  52001. - # turning comma into space..
  52002. - wl=
  52003. + new_value = lt_extend_str (getenv (name), value, 0);
  52004. + lt_setenv (name, new_value);
  52005. + XFREE (new_value);
  52006. + XFREE (name);
  52007. + XFREE (value);
  52008. +}
  52009. - if test -n "$convenience"; then
  52010. - if test -n "$whole_archive_flag_spec"; then
  52011. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  52012. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  52013. - else
  52014. - gentop="$output_objdir/${obj}x"
  52015. - generated="$generated $gentop"
  52016. +void
  52017. +lt_opt_process_env_append (const char *arg)
  52018. +{
  52019. + char *name = NULL;
  52020. + char *value = NULL;
  52021. + char *new_value = NULL;
  52022. - func_extract_archives $gentop $convenience
  52023. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  52024. - fi
  52025. - fi
  52026. + if (lt_split_name_value (arg, &name, &value) != 0)
  52027. + {
  52028. + XFREE (name);
  52029. + XFREE (value);
  52030. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  52031. + }
  52032. - # Create the old-style object.
  52033. - 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
  52034. + new_value = lt_extend_str (getenv (name), value, 1);
  52035. + lt_setenv (name, new_value);
  52036. + XFREE (new_value);
  52037. + XFREE (name);
  52038. + XFREE (value);
  52039. +}
  52040. - output="$obj"
  52041. - cmds=$reload_cmds
  52042. - save_ifs="$IFS"; IFS='~'
  52043. - for cmd in $cmds; do
  52044. - IFS="$save_ifs"
  52045. - eval cmd=\"$cmd\"
  52046. - $show "$cmd"
  52047. - $run eval "$cmd" || exit $?
  52048. - done
  52049. - IFS="$save_ifs"
  52050. +void
  52051. +lt_update_exe_path (const char *name, const char *value)
  52052. +{
  52053. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  52054. + (name ? name : "<NULL>"),
  52055. + (value ? value : "<NULL>")));
  52056. - # Exit if we aren't doing a library object file.
  52057. - if test -z "$libobj"; then
  52058. - if test -n "$gentop"; then
  52059. - $show "${rm}r $gentop"
  52060. - $run ${rm}r $gentop
  52061. - fi
  52062. + if (name && *name && value && *value)
  52063. + {
  52064. + char *new_value = lt_extend_str (getenv (name), value, 0);
  52065. + /* some systems can't cope with a ':'-terminated path #' */
  52066. + int len = strlen (new_value);
  52067. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  52068. + {
  52069. + new_value[len-1] = '\0';
  52070. + }
  52071. + lt_setenv (name, new_value);
  52072. + XFREE (new_value);
  52073. + }
  52074. +}
  52075. - exit $EXIT_SUCCESS
  52076. - fi
  52077. +void
  52078. +lt_update_lib_path (const char *name, const char *value)
  52079. +{
  52080. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  52081. + (name ? name : "<NULL>"),
  52082. + (value ? value : "<NULL>")));
  52083. - if test "$build_libtool_libs" != yes; then
  52084. - if test -n "$gentop"; then
  52085. - $show "${rm}r $gentop"
  52086. - $run ${rm}r $gentop
  52087. - fi
  52088. + if (name && *name && value && *value)
  52089. + {
  52090. + char *new_value = lt_extend_str (getenv (name), value, 0);
  52091. + lt_setenv (name, new_value);
  52092. + XFREE (new_value);
  52093. + }
  52094. +}
  52095. - # Create an invalid libtool object if no PIC, so that we don't
  52096. - # accidentally link it into a program.
  52097. - # $show "echo timestamp > $libobj"
  52098. - # $run eval "echo timestamp > $libobj" || exit $?
  52099. - exit $EXIT_SUCCESS
  52100. - fi
  52101. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  52102. - # Only do commands if we really have different PIC objects.
  52103. - reload_objs="$libobjs $reload_conv_objs"
  52104. - output="$libobj"
  52105. - cmds=$reload_cmds
  52106. - save_ifs="$IFS"; IFS='~'
  52107. - for cmd in $cmds; do
  52108. - IFS="$save_ifs"
  52109. - eval cmd=\"$cmd\"
  52110. - $show "$cmd"
  52111. - $run eval "$cmd" || exit $?
  52112. - done
  52113. - IFS="$save_ifs"
  52114. - fi
  52115. +EOF
  52116. +}
  52117. +# end: func_emit_cwrapperexe_src
  52118. - if test -n "$gentop"; then
  52119. - $show "${rm}r $gentop"
  52120. - $run ${rm}r $gentop
  52121. - fi
  52122. +# func_mode_link arg...
  52123. +func_mode_link ()
  52124. +{
  52125. + $opt_debug
  52126. + case $host in
  52127. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  52128. + # It is impossible to link a dll without this setting, and
  52129. + # we shouldn't force the makefile maintainer to figure out
  52130. + # which system we are compiling for in order to pass an extra
  52131. + # flag for every libtool invocation.
  52132. + # allow_undefined=no
  52133. - exit $EXIT_SUCCESS
  52134. + # FIXME: Unfortunately, there are problems with the above when trying
  52135. + # to make a dll which has undefined symbols, in which case not
  52136. + # even a static library is built. For now, we need to specify
  52137. + # -no-undefined on the libtool link line when we can be certain
  52138. + # that all symbols are satisfied, otherwise we get a static library.
  52139. + allow_undefined=yes
  52140. ;;
  52141. + *)
  52142. + allow_undefined=yes
  52143. + ;;
  52144. + esac
  52145. + libtool_args=$nonopt
  52146. + base_compile="$nonopt $@"
  52147. + compile_command=$nonopt
  52148. + finalize_command=$nonopt
  52149. - prog)
  52150. - case $host in
  52151. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  52152. - esac
  52153. - if test -n "$vinfo"; then
  52154. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  52155. - fi
  52156. -
  52157. - if test -n "$release"; then
  52158. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  52159. - fi
  52160. + compile_rpath=
  52161. + finalize_rpath=
  52162. + compile_shlibpath=
  52163. + finalize_shlibpath=
  52164. + convenience=
  52165. + old_convenience=
  52166. + deplibs=
  52167. + old_deplibs=
  52168. + compiler_flags=
  52169. + linker_flags=
  52170. + dllsearchpath=
  52171. + lib_search_path=`pwd`
  52172. + inst_prefix_dir=
  52173. + new_inherited_linker_flags=
  52174. - if test "$preload" = yes; then
  52175. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  52176. - test "$dlopen_self_static" = unknown; then
  52177. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  52178. - fi
  52179. - fi
  52180. + avoid_version=no
  52181. + dlfiles=
  52182. + dlprefiles=
  52183. + dlself=no
  52184. + export_dynamic=no
  52185. + export_symbols=
  52186. + export_symbols_regex=
  52187. + generated=
  52188. + libobjs=
  52189. + ltlibs=
  52190. + module=no
  52191. + no_install=no
  52192. + objs=
  52193. + non_pic_objects=
  52194. + precious_files_regex=
  52195. + prefer_static_libs=no
  52196. + preload=no
  52197. + prev=
  52198. + prevarg=
  52199. + release=
  52200. + rpath=
  52201. + xrpath=
  52202. + perm_rpath=
  52203. + temp_rpath=
  52204. + thread_safe=no
  52205. + vinfo=
  52206. + vinfo_number=no
  52207. + weak_libs=
  52208. + single_module="${wl}-single_module"
  52209. + func_infer_tag $base_compile
  52210. - case $host in
  52211. - *-*-rhapsody* | *-*-darwin1.[012])
  52212. - # On Rhapsody replace the C library is the System framework
  52213. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52214. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52215. + # We need to know -static, to get the right output filenames.
  52216. + for arg
  52217. + do
  52218. + case $arg in
  52219. + -shared)
  52220. + test "$build_libtool_libs" != yes && \
  52221. + func_fatal_configuration "can not build a shared library"
  52222. + build_old_libs=no
  52223. + break
  52224. + ;;
  52225. + -all-static | -static | -static-libtool-libs)
  52226. + case $arg in
  52227. + -all-static)
  52228. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  52229. + func_warning "complete static linking is impossible in this configuration"
  52230. + fi
  52231. + if test -n "$link_static_flag"; then
  52232. + dlopen_self=$dlopen_self_static
  52233. + fi
  52234. + prefer_static_libs=yes
  52235. + ;;
  52236. + -static)
  52237. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  52238. + dlopen_self=$dlopen_self_static
  52239. + fi
  52240. + prefer_static_libs=built
  52241. + ;;
  52242. + -static-libtool-libs)
  52243. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  52244. + dlopen_self=$dlopen_self_static
  52245. + fi
  52246. + prefer_static_libs=yes
  52247. + ;;
  52248. + esac
  52249. + build_libtool_libs=no
  52250. + build_old_libs=yes
  52251. + break
  52252. ;;
  52253. esac
  52254. + done
  52255. - case $host in
  52256. - *darwin*)
  52257. - # Don't allow lazy linking, it breaks C++ global constructors
  52258. - if test "$tagname" = CXX ; then
  52259. - compile_command="$compile_command ${wl}-bind_at_load"
  52260. - finalize_command="$finalize_command ${wl}-bind_at_load"
  52261. - fi
  52262. - ;;
  52263. - esac
  52264. + # See if our shared archives depend on static archives.
  52265. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  52266. + # Go through the arguments, transforming them on the way.
  52267. + while test "$#" -gt 0; do
  52268. + arg="$1"
  52269. + shift
  52270. + func_quote_for_eval "$arg"
  52271. + qarg=$func_quote_for_eval_unquoted_result
  52272. + func_append libtool_args " $func_quote_for_eval_result"
  52273. - # move library search paths that coincide with paths to not yet
  52274. - # installed libraries to the beginning of the library search list
  52275. - new_libs=
  52276. - for path in $notinst_path; do
  52277. - case " $new_libs " in
  52278. - *" -L$path/$objdir "*) ;;
  52279. - *)
  52280. - case " $compile_deplibs " in
  52281. - *" -L$path/$objdir "*)
  52282. - new_libs="$new_libs -L$path/$objdir" ;;
  52283. - esac
  52284. - ;;
  52285. - esac
  52286. - done
  52287. - for deplib in $compile_deplibs; do
  52288. - case $deplib in
  52289. - -L*)
  52290. - case " $new_libs " in
  52291. - *" $deplib "*) ;;
  52292. - *) new_libs="$new_libs $deplib" ;;
  52293. - esac
  52294. + # If the previous option needs an argument, assign it.
  52295. + if test -n "$prev"; then
  52296. + case $prev in
  52297. + output)
  52298. + func_append compile_command " @OUTPUT@"
  52299. + func_append finalize_command " @OUTPUT@"
  52300. ;;
  52301. - *) new_libs="$new_libs $deplib" ;;
  52302. esac
  52303. - done
  52304. - compile_deplibs="$new_libs"
  52305. -
  52306. - compile_command="$compile_command $compile_deplibs"
  52307. - finalize_command="$finalize_command $finalize_deplibs"
  52308. -
  52309. - if test -n "$rpath$xrpath"; then
  52310. - # If the user specified any rpath flags, then add them.
  52311. - for libdir in $rpath $xrpath; do
  52312. - # This is the magic to use -rpath.
  52313. - case "$finalize_rpath " in
  52314. - *" $libdir "*) ;;
  52315. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52316. - esac
  52317. - done
  52318. - fi
  52319. -
  52320. - # Now hardcode the library paths
  52321. - rpath=
  52322. - hardcode_libdirs=
  52323. - for libdir in $compile_rpath $finalize_rpath; do
  52324. - if test -n "$hardcode_libdir_flag_spec"; then
  52325. - if test -n "$hardcode_libdir_separator"; then
  52326. - if test -z "$hardcode_libdirs"; then
  52327. - hardcode_libdirs="$libdir"
  52328. + case $prev in
  52329. + dlfiles|dlprefiles)
  52330. + if test "$preload" = no; then
  52331. + # Add the symbol object into the linking commands.
  52332. + func_append compile_command " @SYMFILE@"
  52333. + func_append finalize_command " @SYMFILE@"
  52334. + preload=yes
  52335. + fi
  52336. + case $arg in
  52337. + *.la | *.lo) ;; # We handle these cases below.
  52338. + force)
  52339. + if test "$dlself" = no; then
  52340. + dlself=needless
  52341. + export_dynamic=yes
  52342. + fi
  52343. + prev=
  52344. + continue
  52345. + ;;
  52346. + self)
  52347. + if test "$prev" = dlprefiles; then
  52348. + dlself=yes
  52349. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  52350. + dlself=yes
  52351. else
  52352. - # Just accumulate the unique libdirs.
  52353. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52354. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52355. - ;;
  52356. - *)
  52357. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52358. - ;;
  52359. - esac
  52360. + dlself=needless
  52361. + export_dynamic=yes
  52362. fi
  52363. - else
  52364. - eval flag=\"$hardcode_libdir_flag_spec\"
  52365. - rpath="$rpath $flag"
  52366. - fi
  52367. - elif test -n "$runpath_var"; then
  52368. - case "$perm_rpath " in
  52369. - *" $libdir "*) ;;
  52370. - *) perm_rpath="$perm_rpath $libdir" ;;
  52371. - esac
  52372. - fi
  52373. - case $host in
  52374. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  52375. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  52376. - case :$dllsearchpath: in
  52377. - *":$libdir:"*) ;;
  52378. - *) dllsearchpath="$dllsearchpath:$libdir";;
  52379. - esac
  52380. - case :$dllsearchpath: in
  52381. - *":$testbindir:"*) ;;
  52382. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  52383. + prev=
  52384. + continue
  52385. + ;;
  52386. + *)
  52387. + if test "$prev" = dlfiles; then
  52388. + dlfiles="$dlfiles $arg"
  52389. + else
  52390. + dlprefiles="$dlprefiles $arg"
  52391. + fi
  52392. + prev=
  52393. + continue
  52394. + ;;
  52395. esac
  52396. ;;
  52397. - esac
  52398. - done
  52399. - # Substitute the hardcoded libdirs into the rpath.
  52400. - if test -n "$hardcode_libdir_separator" &&
  52401. - test -n "$hardcode_libdirs"; then
  52402. - libdir="$hardcode_libdirs"
  52403. - eval rpath=\" $hardcode_libdir_flag_spec\"
  52404. - fi
  52405. - compile_rpath="$rpath"
  52406. -
  52407. - rpath=
  52408. - hardcode_libdirs=
  52409. - for libdir in $finalize_rpath; do
  52410. - if test -n "$hardcode_libdir_flag_spec"; then
  52411. - if test -n "$hardcode_libdir_separator"; then
  52412. - if test -z "$hardcode_libdirs"; then
  52413. - hardcode_libdirs="$libdir"
  52414. - else
  52415. - # Just accumulate the unique libdirs.
  52416. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52417. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52418. - ;;
  52419. - *)
  52420. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52421. - ;;
  52422. + expsyms)
  52423. + export_symbols="$arg"
  52424. + test -f "$arg" \
  52425. + || func_fatal_error "symbol file \`$arg' does not exist"
  52426. + prev=
  52427. + continue
  52428. + ;;
  52429. + expsyms_regex)
  52430. + export_symbols_regex="$arg"
  52431. + prev=
  52432. + continue
  52433. + ;;
  52434. + framework)
  52435. + case $host in
  52436. + *-*-darwin*)
  52437. + case "$deplibs " in
  52438. + *" $qarg.ltframework "*) ;;
  52439. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  52440. + ;;
  52441. esac
  52442. - fi
  52443. - else
  52444. - eval flag=\"$hardcode_libdir_flag_spec\"
  52445. - rpath="$rpath $flag"
  52446. - fi
  52447. - elif test -n "$runpath_var"; then
  52448. - case "$finalize_perm_rpath " in
  52449. - *" $libdir "*) ;;
  52450. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  52451. + ;;
  52452. esac
  52453. - fi
  52454. - done
  52455. - # Substitute the hardcoded libdirs into the rpath.
  52456. - if test -n "$hardcode_libdir_separator" &&
  52457. - test -n "$hardcode_libdirs"; then
  52458. - libdir="$hardcode_libdirs"
  52459. - eval rpath=\" $hardcode_libdir_flag_spec\"
  52460. - fi
  52461. - finalize_rpath="$rpath"
  52462. -
  52463. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  52464. - # Transform all the library objects into standard objects.
  52465. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52466. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52467. - fi
  52468. + prev=
  52469. + continue
  52470. + ;;
  52471. + inst_prefix)
  52472. + inst_prefix_dir="$arg"
  52473. + prev=
  52474. + continue
  52475. + ;;
  52476. + objectlist)
  52477. + if test -f "$arg"; then
  52478. + save_arg=$arg
  52479. + moreargs=
  52480. + for fil in `cat "$save_arg"`
  52481. + do
  52482. +# moreargs="$moreargs $fil"
  52483. + arg=$fil
  52484. + # A libtool-controlled object.
  52485. - dlsyms=
  52486. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52487. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  52488. - dlsyms="${outputname}S.c"
  52489. - else
  52490. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  52491. - fi
  52492. - fi
  52493. + # Check to see that this really is a libtool object.
  52494. + if func_lalib_unsafe_p "$arg"; then
  52495. + pic_object=
  52496. + non_pic_object=
  52497. - if test -n "$dlsyms"; then
  52498. - case $dlsyms in
  52499. - "") ;;
  52500. - *.c)
  52501. - # Discover the nlist of each of the dlfiles.
  52502. - nlist="$output_objdir/${outputname}.nm"
  52503. + # Read the .lo file
  52504. + func_source "$arg"
  52505. - $show "$rm $nlist ${nlist}S ${nlist}T"
  52506. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  52507. + if test -z "$pic_object" ||
  52508. + test -z "$non_pic_object" ||
  52509. + test "$pic_object" = none &&
  52510. + test "$non_pic_object" = none; then
  52511. + func_fatal_error "cannot find name of object for \`$arg'"
  52512. + fi
  52513. - # Parse the name list into a source file.
  52514. - $show "creating $output_objdir/$dlsyms"
  52515. + # Extract subdirectory from the argument.
  52516. + func_dirname "$arg" "/" ""
  52517. + xdir="$func_dirname_result"
  52518. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  52519. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  52520. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  52521. + if test "$pic_object" != none; then
  52522. + # Prepend the subdirectory the object is found in.
  52523. + pic_object="$xdir$pic_object"
  52524. -#ifdef __cplusplus
  52525. -extern \"C\" {
  52526. -#endif
  52527. + if test "$prev" = dlfiles; then
  52528. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  52529. + dlfiles="$dlfiles $pic_object"
  52530. + prev=
  52531. + continue
  52532. + else
  52533. + # If libtool objects are unsupported, then we need to preload.
  52534. + prev=dlprefiles
  52535. + fi
  52536. + fi
  52537. -/* Prevent the only kind of declaration conflicts we can make. */
  52538. -#define lt_preloaded_symbols some_other_symbol
  52539. + # CHECK ME: I think I busted this. -Ossama
  52540. + if test "$prev" = dlprefiles; then
  52541. + # Preload the old-style object.
  52542. + dlprefiles="$dlprefiles $pic_object"
  52543. + prev=
  52544. + fi
  52545. -/* External symbol declarations for the compiler. */\
  52546. -"
  52547. + # A PIC object.
  52548. + func_append libobjs " $pic_object"
  52549. + arg="$pic_object"
  52550. + fi
  52551. - if test "$dlself" = yes; then
  52552. - $show "generating symbol list for \`$output'"
  52553. + # Non-PIC object.
  52554. + if test "$non_pic_object" != none; then
  52555. + # Prepend the subdirectory the object is found in.
  52556. + non_pic_object="$xdir$non_pic_object"
  52557. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  52558. + # A standard non-PIC object
  52559. + func_append non_pic_objects " $non_pic_object"
  52560. + if test -z "$pic_object" || test "$pic_object" = none ; then
  52561. + arg="$non_pic_object"
  52562. + fi
  52563. + else
  52564. + # If the PIC object exists, use it instead.
  52565. + # $xdir was prepended to $pic_object above.
  52566. + non_pic_object="$pic_object"
  52567. + func_append non_pic_objects " $non_pic_object"
  52568. + fi
  52569. + else
  52570. + # Only an error if not doing a dry-run.
  52571. + if $opt_dry_run; then
  52572. + # Extract subdirectory from the argument.
  52573. + func_dirname "$arg" "/" ""
  52574. + xdir="$func_dirname_result"
  52575. - # Add our own program objects to the symbol list.
  52576. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52577. - for arg in $progfiles; do
  52578. - $show "extracting global C symbols from \`$arg'"
  52579. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  52580. + func_lo2o "$arg"
  52581. + pic_object=$xdir$objdir/$func_lo2o_result
  52582. + non_pic_object=$xdir$func_lo2o_result
  52583. + func_append libobjs " $pic_object"
  52584. + func_append non_pic_objects " $non_pic_object"
  52585. + else
  52586. + func_fatal_error "\`$arg' is not a valid libtool object"
  52587. + fi
  52588. + fi
  52589. done
  52590. -
  52591. - if test -n "$exclude_expsyms"; then
  52592. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  52593. - $run eval '$mv "$nlist"T "$nlist"'
  52594. - fi
  52595. -
  52596. - if test -n "$export_symbols_regex"; then
  52597. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  52598. - $run eval '$mv "$nlist"T "$nlist"'
  52599. - fi
  52600. -
  52601. - # Prepare the list of exported symbols
  52602. - if test -z "$export_symbols"; then
  52603. - export_symbols="$output_objdir/$outputname.exp"
  52604. - $run $rm $export_symbols
  52605. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  52606. - case $host in
  52607. - *cygwin* | *mingw* )
  52608. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52609. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  52610. - ;;
  52611. - esac
  52612. - else
  52613. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  52614. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  52615. - $run eval 'mv "$nlist"T "$nlist"'
  52616. - case $host in
  52617. - *cygwin* | *mingw* )
  52618. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52619. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  52620. - ;;
  52621. - esac
  52622. - fi
  52623. + else
  52624. + func_fatal_error "link input file \`$arg' does not exist"
  52625. fi
  52626. -
  52627. - for arg in $dlprefiles; do
  52628. - $show "extracting global C symbols from \`$arg'"
  52629. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  52630. - $run eval '$echo ": $name " >> "$nlist"'
  52631. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  52632. - done
  52633. -
  52634. - if test -z "$run"; then
  52635. - # Make sure we have at least an empty file.
  52636. - test -f "$nlist" || : > "$nlist"
  52637. -
  52638. - if test -n "$exclude_expsyms"; then
  52639. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  52640. - $mv "$nlist"T "$nlist"
  52641. - fi
  52642. -
  52643. - # Try sorting and uniquifying the output.
  52644. - if grep -v "^: " < "$nlist" |
  52645. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  52646. - sort -k 3
  52647. - else
  52648. - sort +2
  52649. - fi |
  52650. - uniq > "$nlist"S; then
  52651. - :
  52652. - else
  52653. - grep -v "^: " < "$nlist" > "$nlist"S
  52654. - fi
  52655. -
  52656. - if test -f "$nlist"S; then
  52657. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  52658. - else
  52659. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  52660. - fi
  52661. -
  52662. - $echo >> "$output_objdir/$dlsyms" "\
  52663. -
  52664. -#undef lt_preloaded_symbols
  52665. -
  52666. -#if defined (__STDC__) && __STDC__
  52667. -# define lt_ptr void *
  52668. -#else
  52669. -# define lt_ptr char *
  52670. -# define const
  52671. -#endif
  52672. -
  52673. -/* The mapping between symbol names and symbols. */
  52674. -"
  52675. -
  52676. - case $host in
  52677. - *cygwin* | *mingw* )
  52678. - $echo >> "$output_objdir/$dlsyms" "\
  52679. -/* DATA imports from DLLs on WIN32 can't be const, because
  52680. - runtime relocations are performed -- see ld's documentation
  52681. - on pseudo-relocs */
  52682. -struct {
  52683. -"
  52684. - ;;
  52685. - * )
  52686. - $echo >> "$output_objdir/$dlsyms" "\
  52687. -const struct {
  52688. -"
  52689. - ;;
  52690. - esac
  52691. -
  52692. -
  52693. - $echo >> "$output_objdir/$dlsyms" "\
  52694. - const char *name;
  52695. - lt_ptr address;
  52696. -}
  52697. -lt_preloaded_symbols[] =
  52698. -{\
  52699. -"
  52700. -
  52701. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  52702. -
  52703. - $echo >> "$output_objdir/$dlsyms" "\
  52704. - {0, (lt_ptr) 0}
  52705. -};
  52706. -
  52707. -/* This works around a problem in FreeBSD linker */
  52708. -#ifdef FREEBSD_WORKAROUND
  52709. -static const void *lt_preloaded_setup() {
  52710. - return lt_preloaded_symbols;
  52711. -}
  52712. -#endif
  52713. -
  52714. -#ifdef __cplusplus
  52715. -}
  52716. -#endif\
  52717. -"
  52718. - fi
  52719. -
  52720. - pic_flag_for_symtable=
  52721. - case $host in
  52722. - # compiling the symbol table file with pic_flag works around
  52723. - # a FreeBSD bug that causes programs to crash when -lm is
  52724. - # linked before any other PIC object. But we must not use
  52725. - # pic_flag when linking with -static. The problem exists in
  52726. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  52727. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  52728. - case "$compile_command " in
  52729. - *" -static "*) ;;
  52730. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  52731. - esac;;
  52732. - *-*-hpux*)
  52733. - case "$compile_command " in
  52734. - *" -static "*) ;;
  52735. - *) pic_flag_for_symtable=" $pic_flag";;
  52736. - esac
  52737. + arg=$save_arg
  52738. + prev=
  52739. + continue
  52740. + ;;
  52741. + precious_regex)
  52742. + precious_files_regex="$arg"
  52743. + prev=
  52744. + continue
  52745. + ;;
  52746. + release)
  52747. + release="-$arg"
  52748. + prev=
  52749. + continue
  52750. + ;;
  52751. + rpath | xrpath)
  52752. + # We need an absolute path.
  52753. + case $arg in
  52754. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  52755. + *)
  52756. + func_fatal_error "only absolute run-paths are allowed"
  52757. + ;;
  52758. esac
  52759. -
  52760. - # Now compile the dynamic symbol file.
  52761. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  52762. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  52763. -
  52764. - # Clean up the generated files.
  52765. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  52766. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  52767. -
  52768. - # Transform the symbol file into the correct name.
  52769. - case $host in
  52770. - *cygwin* | *mingw* )
  52771. - if test -f "$output_objdir/${outputname}.def" ; then
  52772. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52773. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52774. - else
  52775. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52776. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52777. - fi
  52778. - ;;
  52779. - * )
  52780. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52781. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  52782. - ;;
  52783. - esac
  52784. + if test "$prev" = rpath; then
  52785. + case "$rpath " in
  52786. + *" $arg "*) ;;
  52787. + *) rpath="$rpath $arg" ;;
  52788. + esac
  52789. + else
  52790. + case "$xrpath " in
  52791. + *" $arg "*) ;;
  52792. + *) xrpath="$xrpath $arg" ;;
  52793. + esac
  52794. + fi
  52795. + prev=
  52796. + continue
  52797. + ;;
  52798. + shrext)
  52799. + shrext_cmds="$arg"
  52800. + prev=
  52801. + continue
  52802. + ;;
  52803. + weak)
  52804. + weak_libs="$weak_libs $arg"
  52805. + prev=
  52806. + continue
  52807. + ;;
  52808. + xcclinker)
  52809. + linker_flags="$linker_flags $qarg"
  52810. + compiler_flags="$compiler_flags $qarg"
  52811. + prev=
  52812. + func_append compile_command " $qarg"
  52813. + func_append finalize_command " $qarg"
  52814. + continue
  52815. + ;;
  52816. + xcompiler)
  52817. + compiler_flags="$compiler_flags $qarg"
  52818. + prev=
  52819. + func_append compile_command " $qarg"
  52820. + func_append finalize_command " $qarg"
  52821. + continue
  52822. + ;;
  52823. + xlinker)
  52824. + linker_flags="$linker_flags $qarg"
  52825. + compiler_flags="$compiler_flags $wl$qarg"
  52826. + prev=
  52827. + func_append compile_command " $wl$qarg"
  52828. + func_append finalize_command " $wl$qarg"
  52829. + continue
  52830. ;;
  52831. *)
  52832. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  52833. - exit $EXIT_FAILURE
  52834. + eval "$prev=\"\$arg\""
  52835. + prev=
  52836. + continue
  52837. ;;
  52838. esac
  52839. - else
  52840. - # We keep going just in case the user didn't refer to
  52841. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  52842. - # really was required.
  52843. -
  52844. - # Nullify the symbol file.
  52845. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  52846. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  52847. - fi
  52848. -
  52849. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  52850. - # Replace the output file specification.
  52851. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  52852. - link_command="$compile_command$compile_rpath"
  52853. + fi # test -n "$prev"
  52854. - # We have no uninstalled library dependencies, so finalize right now.
  52855. - $show "$link_command"
  52856. - $run eval "$link_command"
  52857. - exit_status=$?
  52858. + prevarg="$arg"
  52859. - # Delete the generated files.
  52860. - if test -n "$dlsyms"; then
  52861. - $show "$rm $output_objdir/${outputname}S.${objext}"
  52862. - $run $rm "$output_objdir/${outputname}S.${objext}"
  52863. + case $arg in
  52864. + -all-static)
  52865. + if test -n "$link_static_flag"; then
  52866. + # See comment for -static flag below, for more details.
  52867. + func_append compile_command " $link_static_flag"
  52868. + func_append finalize_command " $link_static_flag"
  52869. fi
  52870. + continue
  52871. + ;;
  52872. - exit $exit_status
  52873. - fi
  52874. -
  52875. - if test -n "$shlibpath_var"; then
  52876. - # We should set the shlibpath_var
  52877. - rpath=
  52878. - for dir in $temp_rpath; do
  52879. - case $dir in
  52880. - [\\/]* | [A-Za-z]:[\\/]*)
  52881. - # Absolute path.
  52882. - rpath="$rpath$dir:"
  52883. - ;;
  52884. - *)
  52885. - # Relative path: add a thisdir entry.
  52886. - rpath="$rpath\$thisdir/$dir:"
  52887. - ;;
  52888. - esac
  52889. - done
  52890. - temp_rpath="$rpath"
  52891. - fi
  52892. + -allow-undefined)
  52893. + # FIXME: remove this flag sometime in the future.
  52894. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  52895. + ;;
  52896. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  52897. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  52898. - fi
  52899. - if test -n "$finalize_shlibpath"; then
  52900. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  52901. - fi
  52902. + -avoid-version)
  52903. + avoid_version=yes
  52904. + continue
  52905. + ;;
  52906. - compile_var=
  52907. - finalize_var=
  52908. - if test -n "$runpath_var"; then
  52909. - if test -n "$perm_rpath"; then
  52910. - # We should set the runpath_var.
  52911. - rpath=
  52912. - for dir in $perm_rpath; do
  52913. - rpath="$rpath$dir:"
  52914. - done
  52915. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  52916. - fi
  52917. - if test -n "$finalize_perm_rpath"; then
  52918. - # We should set the runpath_var.
  52919. - rpath=
  52920. - for dir in $finalize_perm_rpath; do
  52921. - rpath="$rpath$dir:"
  52922. - done
  52923. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  52924. - fi
  52925. - fi
  52926. + -dlopen)
  52927. + prev=dlfiles
  52928. + continue
  52929. + ;;
  52930. - if test "$no_install" = yes; then
  52931. - # We don't need to create a wrapper script.
  52932. - link_command="$compile_var$compile_command$compile_rpath"
  52933. - # Replace the output file specification.
  52934. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  52935. - # Delete the old output file.
  52936. - $run $rm $output
  52937. - # Link the executable and exit
  52938. - $show "$link_command"
  52939. - $run eval "$link_command" || exit $?
  52940. - exit $EXIT_SUCCESS
  52941. - fi
  52942. + -dlpreopen)
  52943. + prev=dlprefiles
  52944. + continue
  52945. + ;;
  52946. - if test "$hardcode_action" = relink; then
  52947. - # Fast installation is not supported
  52948. - link_command="$compile_var$compile_command$compile_rpath"
  52949. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  52950. + -export-dynamic)
  52951. + export_dynamic=yes
  52952. + continue
  52953. + ;;
  52954. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  52955. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  52956. - else
  52957. - if test "$fast_install" != no; then
  52958. - link_command="$finalize_var$compile_command$finalize_rpath"
  52959. - if test "$fast_install" = yes; then
  52960. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  52961. - else
  52962. - # fast_install is set to needless
  52963. - relink_command=
  52964. - fi
  52965. + -export-symbols | -export-symbols-regex)
  52966. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  52967. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  52968. + fi
  52969. + if test "X$arg" = "X-export-symbols"; then
  52970. + prev=expsyms
  52971. else
  52972. - link_command="$compile_var$compile_command$compile_rpath"
  52973. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  52974. + prev=expsyms_regex
  52975. fi
  52976. - fi
  52977. -
  52978. - # Replace the output file specification.
  52979. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  52980. + continue
  52981. + ;;
  52982. - # Delete the old output files.
  52983. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  52984. + -framework)
  52985. + prev=framework
  52986. + continue
  52987. + ;;
  52988. - $show "$link_command"
  52989. - $run eval "$link_command" || exit $?
  52990. + -inst-prefix-dir)
  52991. + prev=inst_prefix
  52992. + continue
  52993. + ;;
  52994. - # Now create the wrapper script.
  52995. - $show "creating $output"
  52996. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  52997. + # so, if we see these flags be careful not to treat them like -L
  52998. + -L[A-Z][A-Z]*:*)
  52999. + case $with_gcc/$host in
  53000. + no/*-*-irix* | /*-*-irix*)
  53001. + func_append compile_command " $arg"
  53002. + func_append finalize_command " $arg"
  53003. + ;;
  53004. + esac
  53005. + continue
  53006. + ;;
  53007. - # Quote the relink command for shipping.
  53008. - if test -n "$relink_command"; then
  53009. - # Preserve any variables that may affect compiler behavior
  53010. - for var in $variables_saved_for_relink; do
  53011. - if eval test -z \"\${$var+set}\"; then
  53012. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  53013. - elif eval var_value=\$$var; test -z "$var_value"; then
  53014. - relink_command="$var=; export $var; $relink_command"
  53015. + -L*)
  53016. + func_stripname '-L' '' "$arg"
  53017. + dir=$func_stripname_result
  53018. + if test -z "$dir"; then
  53019. + if test "$#" -gt 0; then
  53020. + func_fatal_error "require no space between \`-L' and \`$1'"
  53021. else
  53022. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  53023. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  53024. + func_fatal_error "need path for \`-L' option"
  53025. fi
  53026. - done
  53027. - relink_command="(cd `pwd`; $relink_command)"
  53028. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  53029. - fi
  53030. -
  53031. - # Quote $echo for shipping.
  53032. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  53033. - case $progpath in
  53034. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  53035. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  53036. + fi
  53037. + # We need an absolute path.
  53038. + case $dir in
  53039. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53040. + *)
  53041. + absdir=`cd "$dir" && pwd`
  53042. + test -z "$absdir" && \
  53043. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  53044. + dir="$absdir"
  53045. + ;;
  53046. esac
  53047. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  53048. - else
  53049. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  53050. - fi
  53051. -
  53052. - # Only actually do things if our run command is non-null.
  53053. - if test -z "$run"; then
  53054. - # win32 will think the script is a binary if it has
  53055. - # a .exe suffix, so we strip it off here.
  53056. - case $output in
  53057. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  53058. + case "$deplibs " in
  53059. + *" -L$dir "*) ;;
  53060. + *)
  53061. + deplibs="$deplibs -L$dir"
  53062. + lib_search_path="$lib_search_path $dir"
  53063. + ;;
  53064. esac
  53065. - # test for cygwin because mv fails w/o .exe extensions
  53066. case $host in
  53067. - *cygwin*)
  53068. - exeext=.exe
  53069. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  53070. - *) exeext= ;;
  53071. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53072. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  53073. + case :$dllsearchpath: in
  53074. + *":$dir:"*) ;;
  53075. + ::) dllsearchpath=$dir;;
  53076. + *) dllsearchpath="$dllsearchpath:$dir";;
  53077. + esac
  53078. + case :$dllsearchpath: in
  53079. + *":$testbindir:"*) ;;
  53080. + ::) dllsearchpath=$testbindir;;
  53081. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  53082. + esac
  53083. + ;;
  53084. esac
  53085. - case $host in
  53086. - *cygwin* | *mingw* )
  53087. - output_name=`basename $output`
  53088. - output_path=`dirname $output`
  53089. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  53090. - cwrapper="$output_path/$output_name.exe"
  53091. - $rm $cwrappersource $cwrapper
  53092. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  53093. -
  53094. - cat > $cwrappersource <<EOF
  53095. + continue
  53096. + ;;
  53097. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  53098. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53099. + -l*)
  53100. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  53101. + case $host in
  53102. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  53103. + # These systems don't actually have a C or math library (as such)
  53104. + continue
  53105. + ;;
  53106. + *-*-os2*)
  53107. + # These systems don't actually have a C library (as such)
  53108. + test "X$arg" = "X-lc" && continue
  53109. + ;;
  53110. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53111. + # Do not include libc due to us having libc/libc_r.
  53112. + test "X$arg" = "X-lc" && continue
  53113. + ;;
  53114. + *-*-rhapsody* | *-*-darwin1.[012])
  53115. + # Rhapsody C and math libraries are in the System framework
  53116. + deplibs="$deplibs System.ltframework"
  53117. + continue
  53118. + ;;
  53119. + *-*-sco3.2v5* | *-*-sco5v6*)
  53120. + # Causes problems with __ctype
  53121. + test "X$arg" = "X-lc" && continue
  53122. + ;;
  53123. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53124. + # Compiler inserts libc in the correct place for threads to work
  53125. + test "X$arg" = "X-lc" && continue
  53126. + ;;
  53127. + esac
  53128. + elif test "X$arg" = "X-lc_r"; then
  53129. + case $host in
  53130. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53131. + # Do not include libc_r directly, use -pthread flag.
  53132. + continue
  53133. + ;;
  53134. + esac
  53135. + fi
  53136. + deplibs="$deplibs $arg"
  53137. + continue
  53138. + ;;
  53139. - The $output program cannot be directly executed until all the libtool
  53140. - libraries that it depends on are installed.
  53141. + -module)
  53142. + module=yes
  53143. + continue
  53144. + ;;
  53145. - This wrapper executable should never be moved out of the build directory.
  53146. - If it is, it will not operate correctly.
  53147. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  53148. + # classes, name mangling, and exception handling.
  53149. + # Darwin uses the -arch flag to determine output architecture.
  53150. + -model|-arch|-isysroot)
  53151. + compiler_flags="$compiler_flags $arg"
  53152. + func_append compile_command " $arg"
  53153. + func_append finalize_command " $arg"
  53154. + prev=xcompiler
  53155. + continue
  53156. + ;;
  53157. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  53158. - but could eventually absorb all of the scripts functionality and
  53159. - exec $objdir/$outputname directly.
  53160. -*/
  53161. -EOF
  53162. - cat >> $cwrappersource<<"EOF"
  53163. -#include <stdio.h>
  53164. -#include <stdlib.h>
  53165. -#include <unistd.h>
  53166. -#include <malloc.h>
  53167. -#include <stdarg.h>
  53168. -#include <assert.h>
  53169. -#include <string.h>
  53170. -#include <ctype.h>
  53171. -#include <sys/stat.h>
  53172. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  53173. + compiler_flags="$compiler_flags $arg"
  53174. + func_append compile_command " $arg"
  53175. + func_append finalize_command " $arg"
  53176. + case "$new_inherited_linker_flags " in
  53177. + *" $arg "*) ;;
  53178. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  53179. + esac
  53180. + continue
  53181. + ;;
  53182. -#if defined(PATH_MAX)
  53183. -# define LT_PATHMAX PATH_MAX
  53184. -#elif defined(MAXPATHLEN)
  53185. -# define LT_PATHMAX MAXPATHLEN
  53186. -#else
  53187. -# define LT_PATHMAX 1024
  53188. -#endif
  53189. + -multi_module)
  53190. + single_module="${wl}-multi_module"
  53191. + continue
  53192. + ;;
  53193. -#ifndef DIR_SEPARATOR
  53194. -# define DIR_SEPARATOR '/'
  53195. -# define PATH_SEPARATOR ':'
  53196. -#endif
  53197. + -no-fast-install)
  53198. + fast_install=no
  53199. + continue
  53200. + ;;
  53201. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  53202. - defined (__OS2__)
  53203. -# define HAVE_DOS_BASED_FILE_SYSTEM
  53204. -# ifndef DIR_SEPARATOR_2
  53205. -# define DIR_SEPARATOR_2 '\\'
  53206. -# endif
  53207. -# ifndef PATH_SEPARATOR_2
  53208. -# define PATH_SEPARATOR_2 ';'
  53209. -# endif
  53210. -#endif
  53211. + -no-install)
  53212. + case $host in
  53213. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  53214. + # The PATH hackery in wrapper scripts is required on Windows
  53215. + # and Darwin in order for the loader to find any dlls it needs.
  53216. + func_warning "\`-no-install' is ignored for $host"
  53217. + func_warning "assuming \`-no-fast-install' instead"
  53218. + fast_install=no
  53219. + ;;
  53220. + *) no_install=yes ;;
  53221. + esac
  53222. + continue
  53223. + ;;
  53224. -#ifndef DIR_SEPARATOR_2
  53225. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  53226. -#else /* DIR_SEPARATOR_2 */
  53227. -# define IS_DIR_SEPARATOR(ch) \
  53228. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  53229. -#endif /* DIR_SEPARATOR_2 */
  53230. + -no-undefined)
  53231. + allow_undefined=no
  53232. + continue
  53233. + ;;
  53234. -#ifndef PATH_SEPARATOR_2
  53235. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  53236. -#else /* PATH_SEPARATOR_2 */
  53237. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  53238. -#endif /* PATH_SEPARATOR_2 */
  53239. + -objectlist)
  53240. + prev=objectlist
  53241. + continue
  53242. + ;;
  53243. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  53244. -#define XFREE(stale) do { \
  53245. - if (stale) { free ((void *) stale); stale = 0; } \
  53246. -} while (0)
  53247. + -o) prev=output ;;
  53248. -/* -DDEBUG is fairly common in CFLAGS. */
  53249. -#undef DEBUG
  53250. -#if defined DEBUGWRAPPER
  53251. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  53252. -#else
  53253. -# define DEBUG(format, ...)
  53254. -#endif
  53255. + -precious-files-regex)
  53256. + prev=precious_regex
  53257. + continue
  53258. + ;;
  53259. -const char *program_name = NULL;
  53260. + -release)
  53261. + prev=release
  53262. + continue
  53263. + ;;
  53264. -void * xmalloc (size_t num);
  53265. -char * xstrdup (const char *string);
  53266. -const char * base_name (const char *name);
  53267. -char * find_executable(const char *wrapper);
  53268. -int check_executable(const char *path);
  53269. -char * strendzap(char *str, const char *pat);
  53270. -void lt_fatal (const char *message, ...);
  53271. + -rpath)
  53272. + prev=rpath
  53273. + continue
  53274. + ;;
  53275. -int
  53276. -main (int argc, char *argv[])
  53277. -{
  53278. - char **newargz;
  53279. - int i;
  53280. + -R)
  53281. + prev=xrpath
  53282. + continue
  53283. + ;;
  53284. - program_name = (char *) xstrdup (base_name (argv[0]));
  53285. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  53286. - DEBUG("(main) program_name : %s\n",program_name);
  53287. - newargz = XMALLOC(char *, argc+2);
  53288. -EOF
  53289. + -R*)
  53290. + func_stripname '-R' '' "$arg"
  53291. + dir=$func_stripname_result
  53292. + # We need an absolute path.
  53293. + case $dir in
  53294. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  53295. + *)
  53296. + func_fatal_error "only absolute run-paths are allowed"
  53297. + ;;
  53298. + esac
  53299. + case "$xrpath " in
  53300. + *" $dir "*) ;;
  53301. + *) xrpath="$xrpath $dir" ;;
  53302. + esac
  53303. + continue
  53304. + ;;
  53305. - cat >> $cwrappersource <<EOF
  53306. - newargz[0] = (char *) xstrdup("$SHELL");
  53307. -EOF
  53308. + -shared)
  53309. + # The effects of -shared are defined in a previous loop.
  53310. + continue
  53311. + ;;
  53312. - cat >> $cwrappersource <<"EOF"
  53313. - newargz[1] = find_executable(argv[0]);
  53314. - if (newargz[1] == NULL)
  53315. - lt_fatal("Couldn't find %s", argv[0]);
  53316. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  53317. - /* we know the script has the same name, without the .exe */
  53318. - /* so make sure newargz[1] doesn't end in .exe */
  53319. - strendzap(newargz[1],".exe");
  53320. - for (i = 1; i < argc; i++)
  53321. - newargz[i+1] = xstrdup(argv[i]);
  53322. - newargz[argc+1] = NULL;
  53323. + -shrext)
  53324. + prev=shrext
  53325. + continue
  53326. + ;;
  53327. - for (i=0; i<argc+1; i++)
  53328. - {
  53329. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  53330. - ;
  53331. - }
  53332. + -static | -static-libtool-libs)
  53333. + # The effects of -static are defined in a previous loop.
  53334. + # We used to do the same as -all-static on platforms that
  53335. + # didn't have a PIC flag, but the assumption that the effects
  53336. + # would be equivalent was wrong. It would break on at least
  53337. + # Digital Unix and AIX.
  53338. + continue
  53339. + ;;
  53340. -EOF
  53341. + -thread-safe)
  53342. + thread_safe=yes
  53343. + continue
  53344. + ;;
  53345. - case $host_os in
  53346. - mingw*)
  53347. - cat >> $cwrappersource <<EOF
  53348. - execv("$SHELL",(char const **)newargz);
  53349. -EOF
  53350. - ;;
  53351. - *)
  53352. - cat >> $cwrappersource <<EOF
  53353. - execv("$SHELL",newargz);
  53354. -EOF
  53355. - ;;
  53356. - esac
  53357. + -version-info)
  53358. + prev=vinfo
  53359. + continue
  53360. + ;;
  53361. - cat >> $cwrappersource <<"EOF"
  53362. - return 127;
  53363. -}
  53364. + -version-number)
  53365. + prev=vinfo
  53366. + vinfo_number=yes
  53367. + continue
  53368. + ;;
  53369. -void *
  53370. -xmalloc (size_t num)
  53371. -{
  53372. - void * p = (void *) malloc (num);
  53373. - if (!p)
  53374. - lt_fatal ("Memory exhausted");
  53375. + -weak)
  53376. + prev=weak
  53377. + continue
  53378. + ;;
  53379. - return p;
  53380. -}
  53381. + -Wc,*)
  53382. + func_stripname '-Wc,' '' "$arg"
  53383. + args=$func_stripname_result
  53384. + arg=
  53385. + save_ifs="$IFS"; IFS=','
  53386. + for flag in $args; do
  53387. + IFS="$save_ifs"
  53388. + func_quote_for_eval "$flag"
  53389. + arg="$arg $wl$func_quote_for_eval_result"
  53390. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  53391. + done
  53392. + IFS="$save_ifs"
  53393. + func_stripname ' ' '' "$arg"
  53394. + arg=$func_stripname_result
  53395. + ;;
  53396. -char *
  53397. -xstrdup (const char *string)
  53398. -{
  53399. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  53400. -;
  53401. -}
  53402. + -Wl,*)
  53403. + func_stripname '-Wl,' '' "$arg"
  53404. + args=$func_stripname_result
  53405. + arg=
  53406. + save_ifs="$IFS"; IFS=','
  53407. + for flag in $args; do
  53408. + IFS="$save_ifs"
  53409. + func_quote_for_eval "$flag"
  53410. + arg="$arg $wl$func_quote_for_eval_result"
  53411. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  53412. + linker_flags="$linker_flags $func_quote_for_eval_result"
  53413. + done
  53414. + IFS="$save_ifs"
  53415. + func_stripname ' ' '' "$arg"
  53416. + arg=$func_stripname_result
  53417. + ;;
  53418. -const char *
  53419. -base_name (const char *name)
  53420. -{
  53421. - const char *base;
  53422. + -Xcompiler)
  53423. + prev=xcompiler
  53424. + continue
  53425. + ;;
  53426. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53427. - /* Skip over the disk name in MSDOS pathnames. */
  53428. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  53429. - name += 2;
  53430. -#endif
  53431. + -Xlinker)
  53432. + prev=xlinker
  53433. + continue
  53434. + ;;
  53435. - for (base = name; *name; name++)
  53436. - if (IS_DIR_SEPARATOR (*name))
  53437. - base = name + 1;
  53438. - return base;
  53439. -}
  53440. + -XCClinker)
  53441. + prev=xcclinker
  53442. + continue
  53443. + ;;
  53444. -int
  53445. -check_executable(const char * path)
  53446. -{
  53447. - struct stat st;
  53448. + # -msg_* for osf cc
  53449. + -msg_*)
  53450. + func_quote_for_eval "$arg"
  53451. + arg="$func_quote_for_eval_result"
  53452. + ;;
  53453. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  53454. - if ((!path) || (!*path))
  53455. - return 0;
  53456. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  53457. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  53458. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  53459. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  53460. + # -q* pass through compiler args for the IBM compiler
  53461. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  53462. + # compiler args for GCC
  53463. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  53464. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  53465. + # @file GCC response files
  53466. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  53467. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  53468. + func_quote_for_eval "$arg"
  53469. + arg="$func_quote_for_eval_result"
  53470. + func_append compile_command " $arg"
  53471. + func_append finalize_command " $arg"
  53472. + compiler_flags="$compiler_flags $arg"
  53473. + continue
  53474. + ;;
  53475. - if ((stat (path, &st) >= 0) &&
  53476. - (
  53477. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  53478. -#if defined (S_IXOTH)
  53479. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  53480. -#endif
  53481. -#if defined (S_IXGRP)
  53482. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  53483. -#endif
  53484. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  53485. - )
  53486. - return 1;
  53487. - else
  53488. - return 0;
  53489. -}
  53490. + # Some other compiler flag.
  53491. + -* | +*)
  53492. + func_quote_for_eval "$arg"
  53493. + arg="$func_quote_for_eval_result"
  53494. + ;;
  53495. -/* Searches for the full path of the wrapper. Returns
  53496. - newly allocated full path name if found, NULL otherwise */
  53497. -char *
  53498. -find_executable (const char* wrapper)
  53499. -{
  53500. - int has_slash = 0;
  53501. - const char* p;
  53502. - const char* p_next;
  53503. - /* static buffer for getcwd */
  53504. - char tmp[LT_PATHMAX + 1];
  53505. - int tmp_len;
  53506. - char* concat_name;
  53507. + *.$objext)
  53508. + # A standard object.
  53509. + objs="$objs $arg"
  53510. + ;;
  53511. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  53512. + *.lo)
  53513. + # A libtool-controlled object.
  53514. - if ((wrapper == NULL) || (*wrapper == '\0'))
  53515. - return NULL;
  53516. + # Check to see that this really is a libtool object.
  53517. + if func_lalib_unsafe_p "$arg"; then
  53518. + pic_object=
  53519. + non_pic_object=
  53520. - /* Absolute path? */
  53521. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53522. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  53523. - {
  53524. - concat_name = xstrdup (wrapper);
  53525. - if (check_executable(concat_name))
  53526. - return concat_name;
  53527. - XFREE(concat_name);
  53528. - }
  53529. - else
  53530. - {
  53531. -#endif
  53532. - if (IS_DIR_SEPARATOR (wrapper[0]))
  53533. - {
  53534. - concat_name = xstrdup (wrapper);
  53535. - if (check_executable(concat_name))
  53536. - return concat_name;
  53537. - XFREE(concat_name);
  53538. - }
  53539. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53540. - }
  53541. -#endif
  53542. + # Read the .lo file
  53543. + func_source "$arg"
  53544. - for (p = wrapper; *p; p++)
  53545. - if (*p == '/')
  53546. - {
  53547. - has_slash = 1;
  53548. - break;
  53549. - }
  53550. - if (!has_slash)
  53551. - {
  53552. - /* no slashes; search PATH */
  53553. - const char* path = getenv ("PATH");
  53554. - if (path != NULL)
  53555. - {
  53556. - for (p = path; *p; p = p_next)
  53557. - {
  53558. - const char* q;
  53559. - size_t p_len;
  53560. - for (q = p; *q; q++)
  53561. - if (IS_PATH_SEPARATOR(*q))
  53562. - break;
  53563. - p_len = q - p;
  53564. - p_next = (*q == '\0' ? q : q + 1);
  53565. - if (p_len == 0)
  53566. - {
  53567. - /* empty path: current directory */
  53568. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  53569. - lt_fatal ("getcwd failed");
  53570. - tmp_len = strlen(tmp);
  53571. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  53572. - memcpy (concat_name, tmp, tmp_len);
  53573. - concat_name[tmp_len] = '/';
  53574. - strcpy (concat_name + tmp_len + 1, wrapper);
  53575. - }
  53576. - else
  53577. - {
  53578. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  53579. - memcpy (concat_name, p, p_len);
  53580. - concat_name[p_len] = '/';
  53581. - strcpy (concat_name + p_len + 1, wrapper);
  53582. - }
  53583. - if (check_executable(concat_name))
  53584. - return concat_name;
  53585. - XFREE(concat_name);
  53586. - }
  53587. - }
  53588. - /* not found in PATH; assume curdir */
  53589. - }
  53590. - /* Relative path | not found in path: prepend cwd */
  53591. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  53592. - lt_fatal ("getcwd failed");
  53593. - tmp_len = strlen(tmp);
  53594. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  53595. - memcpy (concat_name, tmp, tmp_len);
  53596. - concat_name[tmp_len] = '/';
  53597. - strcpy (concat_name + tmp_len + 1, wrapper);
  53598. + if test -z "$pic_object" ||
  53599. + test -z "$non_pic_object" ||
  53600. + test "$pic_object" = none &&
  53601. + test "$non_pic_object" = none; then
  53602. + func_fatal_error "cannot find name of object for \`$arg'"
  53603. + fi
  53604. - if (check_executable(concat_name))
  53605. - return concat_name;
  53606. - XFREE(concat_name);
  53607. - return NULL;
  53608. -}
  53609. + # Extract subdirectory from the argument.
  53610. + func_dirname "$arg" "/" ""
  53611. + xdir="$func_dirname_result"
  53612. -char *
  53613. -strendzap(char *str, const char *pat)
  53614. -{
  53615. - size_t len, patlen;
  53616. + if test "$pic_object" != none; then
  53617. + # Prepend the subdirectory the object is found in.
  53618. + pic_object="$xdir$pic_object"
  53619. - assert(str != NULL);
  53620. - assert(pat != NULL);
  53621. + if test "$prev" = dlfiles; then
  53622. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  53623. + dlfiles="$dlfiles $pic_object"
  53624. + prev=
  53625. + continue
  53626. + else
  53627. + # If libtool objects are unsupported, then we need to preload.
  53628. + prev=dlprefiles
  53629. + fi
  53630. + fi
  53631. - len = strlen(str);
  53632. - patlen = strlen(pat);
  53633. + # CHECK ME: I think I busted this. -Ossama
  53634. + if test "$prev" = dlprefiles; then
  53635. + # Preload the old-style object.
  53636. + dlprefiles="$dlprefiles $pic_object"
  53637. + prev=
  53638. + fi
  53639. - if (patlen <= len)
  53640. - {
  53641. - str += len - patlen;
  53642. - if (strcmp(str, pat) == 0)
  53643. - *str = '\0';
  53644. - }
  53645. - return str;
  53646. -}
  53647. + # A PIC object.
  53648. + func_append libobjs " $pic_object"
  53649. + arg="$pic_object"
  53650. + fi
  53651. -static void
  53652. -lt_error_core (int exit_status, const char * mode,
  53653. - const char * message, va_list ap)
  53654. -{
  53655. - fprintf (stderr, "%s: %s: ", program_name, mode);
  53656. - vfprintf (stderr, message, ap);
  53657. - fprintf (stderr, ".\n");
  53658. + # Non-PIC object.
  53659. + if test "$non_pic_object" != none; then
  53660. + # Prepend the subdirectory the object is found in.
  53661. + non_pic_object="$xdir$non_pic_object"
  53662. - if (exit_status >= 0)
  53663. - exit (exit_status);
  53664. -}
  53665. + # A standard non-PIC object
  53666. + func_append non_pic_objects " $non_pic_object"
  53667. + if test -z "$pic_object" || test "$pic_object" = none ; then
  53668. + arg="$non_pic_object"
  53669. + fi
  53670. + else
  53671. + # If the PIC object exists, use it instead.
  53672. + # $xdir was prepended to $pic_object above.
  53673. + non_pic_object="$pic_object"
  53674. + func_append non_pic_objects " $non_pic_object"
  53675. + fi
  53676. + else
  53677. + # Only an error if not doing a dry-run.
  53678. + if $opt_dry_run; then
  53679. + # Extract subdirectory from the argument.
  53680. + func_dirname "$arg" "/" ""
  53681. + xdir="$func_dirname_result"
  53682. -void
  53683. -lt_fatal (const char *message, ...)
  53684. -{
  53685. - va_list ap;
  53686. - va_start (ap, message);
  53687. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  53688. - va_end (ap);
  53689. -}
  53690. -EOF
  53691. - # we should really use a build-platform specific compiler
  53692. - # here, but OTOH, the wrappers (shell script and this C one)
  53693. - # are only useful if you want to execute the "real" binary.
  53694. - # Since the "real" binary is built for $host, then this
  53695. - # wrapper might as well be built for $host, too.
  53696. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  53697. - ;;
  53698. - esac
  53699. - $rm $output
  53700. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  53701. + func_lo2o "$arg"
  53702. + pic_object=$xdir$objdir/$func_lo2o_result
  53703. + non_pic_object=$xdir$func_lo2o_result
  53704. + func_append libobjs " $pic_object"
  53705. + func_append non_pic_objects " $non_pic_object"
  53706. + else
  53707. + func_fatal_error "\`$arg' is not a valid libtool object"
  53708. + fi
  53709. + fi
  53710. + ;;
  53711. - $echo > $output "\
  53712. -#! $SHELL
  53713. + *.$libext)
  53714. + # An archive.
  53715. + deplibs="$deplibs $arg"
  53716. + old_deplibs="$old_deplibs $arg"
  53717. + continue
  53718. + ;;
  53719. -# $output - temporary wrapper script for $objdir/$outputname
  53720. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53721. -#
  53722. -# The $output program cannot be directly executed until all the libtool
  53723. -# libraries that it depends on are installed.
  53724. -#
  53725. -# This wrapper script should never be moved out of the build directory.
  53726. -# If it is, it will not operate correctly.
  53727. + *.la)
  53728. + # A libtool-controlled library.
  53729. -# Sed substitution that helps us do robust quoting. It backslashifies
  53730. -# metacharacters that are still active within double-quoted strings.
  53731. -Xsed='${SED} -e 1s/^X//'
  53732. -sed_quote_subst='$sed_quote_subst'
  53733. + if test "$prev" = dlfiles; then
  53734. + # This library was specified with -dlopen.
  53735. + dlfiles="$dlfiles $arg"
  53736. + prev=
  53737. + elif test "$prev" = dlprefiles; then
  53738. + # The library was specified with -dlpreopen.
  53739. + dlprefiles="$dlprefiles $arg"
  53740. + prev=
  53741. + else
  53742. + deplibs="$deplibs $arg"
  53743. + fi
  53744. + continue
  53745. + ;;
  53746. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  53747. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  53748. - emulate sh
  53749. - NULLCMD=:
  53750. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  53751. - # is contrary to our usage. Disable this feature.
  53752. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  53753. - setopt NO_GLOB_SUBST
  53754. -else
  53755. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  53756. -fi
  53757. -BIN_SH=xpg4; export BIN_SH # for Tru64
  53758. -DUALCASE=1; export DUALCASE # for MKS sh
  53759. + # Some other compiler argument.
  53760. + *)
  53761. + # Unknown arguments in both finalize_command and compile_command need
  53762. + # to be aesthetically quoted because they are evaled later.
  53763. + func_quote_for_eval "$arg"
  53764. + arg="$func_quote_for_eval_result"
  53765. + ;;
  53766. + esac # arg
  53767. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  53768. -# if CDPATH is set.
  53769. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  53770. + # Now actually substitute the argument into the commands.
  53771. + if test -n "$arg"; then
  53772. + func_append compile_command " $arg"
  53773. + func_append finalize_command " $arg"
  53774. + fi
  53775. + done # argument parsing loop
  53776. -relink_command=\"$relink_command\"
  53777. + test -n "$prev" && \
  53778. + func_fatal_help "the \`$prevarg' option requires an argument"
  53779. -# This environment variable determines our operation mode.
  53780. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  53781. - # install mode needs the following variable:
  53782. - notinst_deplibs='$notinst_deplibs'
  53783. -else
  53784. - # When we are sourced in execute mode, \$file and \$echo are already set.
  53785. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53786. - echo=\"$qecho\"
  53787. - file=\"\$0\"
  53788. - # Make sure echo works.
  53789. - if test \"X\$1\" = X--no-reexec; then
  53790. - # Discard the --no-reexec flag, and continue.
  53791. - shift
  53792. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  53793. - # Yippee, \$echo works!
  53794. - :
  53795. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  53796. + eval arg=\"$export_dynamic_flag_spec\"
  53797. + func_append compile_command " $arg"
  53798. + func_append finalize_command " $arg"
  53799. + fi
  53800. +
  53801. + oldlibs=
  53802. + # calculate the name of the file, without its directory
  53803. + func_basename "$output"
  53804. + outputname="$func_basename_result"
  53805. + libobjs_save="$libobjs"
  53806. +
  53807. + if test -n "$shlibpath_var"; then
  53808. + # get the directories listed in $shlibpath_var
  53809. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  53810. else
  53811. - # Restart under the correct shell, and then maybe \$echo will work.
  53812. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  53813. + shlib_search_path=
  53814. fi
  53815. - fi\
  53816. -"
  53817. - $echo >> $output "\
  53818. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  53819. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  53820. - # Find the directory that this script lives in.
  53821. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  53822. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  53823. + func_dirname "$output" "/" ""
  53824. + output_objdir="$func_dirname_result$objdir"
  53825. + # Create the object directory.
  53826. + func_mkdir_p "$output_objdir"
  53827. - # Follow symbolic links until we get to the real thisdir.
  53828. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  53829. - while test -n \"\$file\"; do
  53830. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  53831. + # Determine the type of output
  53832. + case $output in
  53833. + "")
  53834. + func_fatal_help "you must specify an output file"
  53835. + ;;
  53836. + *.$libext) linkmode=oldlib ;;
  53837. + *.lo | *.$objext) linkmode=obj ;;
  53838. + *.la) linkmode=lib ;;
  53839. + *) linkmode=prog ;; # Anything else should be a program.
  53840. + esac
  53841. +
  53842. + specialdeplibs=
  53843. +
  53844. + libs=
  53845. + # Find all interdependent deplibs by searching for libraries
  53846. + # that are linked more than once (e.g. -la -lb -la)
  53847. + for deplib in $deplibs; do
  53848. + if $opt_duplicate_deps ; then
  53849. + case "$libs " in
  53850. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  53851. + esac
  53852. + fi
  53853. + libs="$libs $deplib"
  53854. + done
  53855. +
  53856. + if test "$linkmode" = lib; then
  53857. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  53858. +
  53859. + # Compute libraries that are listed more than once in $predeps
  53860. + # $postdeps and mark them as special (i.e., whose duplicates are
  53861. + # not to be eliminated).
  53862. + pre_post_deps=
  53863. + if $opt_duplicate_compiler_generated_deps; then
  53864. + for pre_post_dep in $predeps $postdeps; do
  53865. + case "$pre_post_deps " in
  53866. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  53867. + esac
  53868. + pre_post_deps="$pre_post_deps $pre_post_dep"
  53869. + done
  53870. + fi
  53871. + pre_post_deps=
  53872. + fi
  53873. +
  53874. + deplibs=
  53875. + newdependency_libs=
  53876. + newlib_search_path=
  53877. + need_relink=no # whether we're linking any uninstalled libtool libraries
  53878. + notinst_deplibs= # not-installed libtool libraries
  53879. + notinst_path= # paths that contain not-installed libtool libraries
  53880. +
  53881. + case $linkmode in
  53882. + lib)
  53883. + passes="conv dlpreopen link"
  53884. + for file in $dlfiles $dlprefiles; do
  53885. + case $file in
  53886. + *.la) ;;
  53887. + *)
  53888. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  53889. + ;;
  53890. + esac
  53891. + done
  53892. + ;;
  53893. + prog)
  53894. + compile_deplibs=
  53895. + finalize_deplibs=
  53896. + alldeplibs=no
  53897. + newdlfiles=
  53898. + newdlprefiles=
  53899. + passes="conv scan dlopen dlpreopen link"
  53900. + ;;
  53901. + *) passes="conv"
  53902. + ;;
  53903. + esac
  53904. +
  53905. + for pass in $passes; do
  53906. + # The preopen pass in lib mode reverses $deplibs; put it back here
  53907. + # so that -L comes before libs that need it for instance...
  53908. + if test "$linkmode,$pass" = "lib,link"; then
  53909. + ## FIXME: Find the place where the list is rebuilt in the wrong
  53910. + ## order, and fix it there properly
  53911. + tmp_deplibs=
  53912. + for deplib in $deplibs; do
  53913. + tmp_deplibs="$deplib $tmp_deplibs"
  53914. + done
  53915. + deplibs="$tmp_deplibs"
  53916. + fi
  53917. +
  53918. + if test "$linkmode,$pass" = "lib,link" ||
  53919. + test "$linkmode,$pass" = "prog,scan"; then
  53920. + libs="$deplibs"
  53921. + deplibs=
  53922. + fi
  53923. + if test "$linkmode" = prog; then
  53924. + case $pass in
  53925. + dlopen) libs="$dlfiles" ;;
  53926. + dlpreopen) libs="$dlprefiles" ;;
  53927. + link)
  53928. + libs="$deplibs %DEPLIBS%"
  53929. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  53930. + ;;
  53931. + esac
  53932. + fi
  53933. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  53934. + # Collect and forward deplibs of preopened libtool libs
  53935. + for lib in $dlprefiles; do
  53936. + # Ignore non-libtool-libs
  53937. + dependency_libs=
  53938. + case $lib in
  53939. + *.la) func_source "$lib" ;;
  53940. + esac
  53941. +
  53942. + # Collect preopened libtool deplibs, except any this library
  53943. + # has declared as weak libs
  53944. + for deplib in $dependency_libs; do
  53945. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  53946. + case " $weak_libs " in
  53947. + *" $deplib_base "*) ;;
  53948. + *) deplibs="$deplibs $deplib" ;;
  53949. + esac
  53950. + done
  53951. + done
  53952. + libs="$dlprefiles"
  53953. + fi
  53954. + if test "$pass" = dlopen; then
  53955. + # Collect dlpreopened libraries
  53956. + save_deplibs="$deplibs"
  53957. + deplibs=
  53958. + fi
  53959. +
  53960. + for deplib in $libs; do
  53961. + lib=
  53962. + found=no
  53963. + case $deplib in
  53964. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  53965. + if test "$linkmode,$pass" = "prog,link"; then
  53966. + compile_deplibs="$deplib $compile_deplibs"
  53967. + finalize_deplibs="$deplib $finalize_deplibs"
  53968. + else
  53969. + compiler_flags="$compiler_flags $deplib"
  53970. + if test "$linkmode" = lib ; then
  53971. + case "$new_inherited_linker_flags " in
  53972. + *" $deplib "*) ;;
  53973. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  53974. + esac
  53975. + fi
  53976. + fi
  53977. + continue
  53978. + ;;
  53979. + -l*)
  53980. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  53981. + func_warning "\`-l' is ignored for archives/objects"
  53982. + continue
  53983. + fi
  53984. + func_stripname '-l' '' "$deplib"
  53985. + name=$func_stripname_result
  53986. + if test "$linkmode" = lib; then
  53987. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  53988. + else
  53989. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  53990. + fi
  53991. + for searchdir in $searchdirs; do
  53992. + for search_ext in .la $std_shrext .so .a; do
  53993. + # Search the libtool library
  53994. + lib="$searchdir/lib${name}${search_ext}"
  53995. + if test -f "$lib"; then
  53996. + if test "$search_ext" = ".la"; then
  53997. + found=yes
  53998. + else
  53999. + found=no
  54000. + fi
  54001. + break 2
  54002. + fi
  54003. + done
  54004. + done
  54005. + if test "$found" != yes; then
  54006. + # deplib doesn't seem to be a libtool library
  54007. + if test "$linkmode,$pass" = "prog,link"; then
  54008. + compile_deplibs="$deplib $compile_deplibs"
  54009. + finalize_deplibs="$deplib $finalize_deplibs"
  54010. + else
  54011. + deplibs="$deplib $deplibs"
  54012. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54013. + fi
  54014. + continue
  54015. + else # deplib is a libtool library
  54016. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  54017. + # We need to do some special things here, and not later.
  54018. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54019. + case " $predeps $postdeps " in
  54020. + *" $deplib "*)
  54021. + if func_lalib_p "$lib"; then
  54022. + library_names=
  54023. + old_library=
  54024. + func_source "$lib"
  54025. + for l in $old_library $library_names; do
  54026. + ll="$l"
  54027. + done
  54028. + if test "X$ll" = "X$old_library" ; then # only static version available
  54029. + found=no
  54030. + func_dirname "$lib" "" "."
  54031. + ladir="$func_dirname_result"
  54032. + lib=$ladir/$old_library
  54033. + if test "$linkmode,$pass" = "prog,link"; then
  54034. + compile_deplibs="$deplib $compile_deplibs"
  54035. + finalize_deplibs="$deplib $finalize_deplibs"
  54036. + else
  54037. + deplibs="$deplib $deplibs"
  54038. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  54039. + fi
  54040. + continue
  54041. + fi
  54042. + fi
  54043. + ;;
  54044. + *) ;;
  54045. + esac
  54046. + fi
  54047. + fi
  54048. + ;; # -l
  54049. + *.ltframework)
  54050. + if test "$linkmode,$pass" = "prog,link"; then
  54051. + compile_deplibs="$deplib $compile_deplibs"
  54052. + finalize_deplibs="$deplib $finalize_deplibs"
  54053. + else
  54054. + deplibs="$deplib $deplibs"
  54055. + if test "$linkmode" = lib ; then
  54056. + case "$new_inherited_linker_flags " in
  54057. + *" $deplib "*) ;;
  54058. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  54059. + esac
  54060. + fi
  54061. + fi
  54062. + continue
  54063. + ;;
  54064. + -L*)
  54065. + case $linkmode in
  54066. + lib)
  54067. + deplibs="$deplib $deplibs"
  54068. + test "$pass" = conv && continue
  54069. + newdependency_libs="$deplib $newdependency_libs"
  54070. + func_stripname '-L' '' "$deplib"
  54071. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54072. + ;;
  54073. + prog)
  54074. + if test "$pass" = conv; then
  54075. + deplibs="$deplib $deplibs"
  54076. + continue
  54077. + fi
  54078. + if test "$pass" = scan; then
  54079. + deplibs="$deplib $deplibs"
  54080. + else
  54081. + compile_deplibs="$deplib $compile_deplibs"
  54082. + finalize_deplibs="$deplib $finalize_deplibs"
  54083. + fi
  54084. + func_stripname '-L' '' "$deplib"
  54085. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54086. + ;;
  54087. + *)
  54088. + func_warning "\`-L' is ignored for archives/objects"
  54089. + ;;
  54090. + esac # linkmode
  54091. + continue
  54092. + ;; # -L
  54093. + -R*)
  54094. + if test "$pass" = link; then
  54095. + func_stripname '-R' '' "$deplib"
  54096. + dir=$func_stripname_result
  54097. + # Make sure the xrpath contains only unique directories.
  54098. + case "$xrpath " in
  54099. + *" $dir "*) ;;
  54100. + *) xrpath="$xrpath $dir" ;;
  54101. + esac
  54102. + fi
  54103. + deplibs="$deplib $deplibs"
  54104. + continue
  54105. + ;;
  54106. + *.la) lib="$deplib" ;;
  54107. + *.$libext)
  54108. + if test "$pass" = conv; then
  54109. + deplibs="$deplib $deplibs"
  54110. + continue
  54111. + fi
  54112. + case $linkmode in
  54113. + lib)
  54114. + # Linking convenience modules into shared libraries is allowed,
  54115. + # but linking other static libraries is non-portable.
  54116. + case " $dlpreconveniencelibs " in
  54117. + *" $deplib "*) ;;
  54118. + *)
  54119. + valid_a_lib=no
  54120. + case $deplibs_check_method in
  54121. + match_pattern*)
  54122. + set dummy $deplibs_check_method; shift
  54123. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  54124. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  54125. + | $EGREP "$match_pattern_regex" > /dev/null; then
  54126. + valid_a_lib=yes
  54127. + fi
  54128. + ;;
  54129. + pass_all)
  54130. + valid_a_lib=yes
  54131. + ;;
  54132. + esac
  54133. + if test "$valid_a_lib" != yes; then
  54134. + $ECHO
  54135. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  54136. + $ECHO "*** I have the capability to make that library automatically link in when"
  54137. + $ECHO "*** you link to this library. But I can only do this if you have a"
  54138. + $ECHO "*** shared version of the library, which you do not appear to have"
  54139. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  54140. + $ECHO "*** that it is just a static archive that I should not use here."
  54141. + else
  54142. + $ECHO
  54143. + $ECHO "*** Warning: Linking the shared library $output against the"
  54144. + $ECHO "*** static library $deplib is not portable!"
  54145. + deplibs="$deplib $deplibs"
  54146. + fi
  54147. + ;;
  54148. + esac
  54149. + continue
  54150. + ;;
  54151. + prog)
  54152. + if test "$pass" != link; then
  54153. + deplibs="$deplib $deplibs"
  54154. + else
  54155. + compile_deplibs="$deplib $compile_deplibs"
  54156. + finalize_deplibs="$deplib $finalize_deplibs"
  54157. + fi
  54158. + continue
  54159. + ;;
  54160. + esac # linkmode
  54161. + ;; # *.$libext
  54162. + *.lo | *.$objext)
  54163. + if test "$pass" = conv; then
  54164. + deplibs="$deplib $deplibs"
  54165. + elif test "$linkmode" = prog; then
  54166. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  54167. + # If there is no dlopen support or we're linking statically,
  54168. + # we need to preload.
  54169. + newdlprefiles="$newdlprefiles $deplib"
  54170. + compile_deplibs="$deplib $compile_deplibs"
  54171. + finalize_deplibs="$deplib $finalize_deplibs"
  54172. + else
  54173. + newdlfiles="$newdlfiles $deplib"
  54174. + fi
  54175. + fi
  54176. + continue
  54177. + ;;
  54178. + %DEPLIBS%)
  54179. + alldeplibs=yes
  54180. + continue
  54181. + ;;
  54182. + esac # case $deplib
  54183. +
  54184. + if test "$found" = yes || test -f "$lib"; then :
  54185. + else
  54186. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  54187. + fi
  54188. +
  54189. + # Check to see that this really is a libtool archive.
  54190. + func_lalib_unsafe_p "$lib" \
  54191. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  54192. +
  54193. + func_dirname "$lib" "" "."
  54194. + ladir="$func_dirname_result"
  54195. +
  54196. + dlname=
  54197. + dlopen=
  54198. + dlpreopen=
  54199. + libdir=
  54200. + library_names=
  54201. + old_library=
  54202. + inherited_linker_flags=
  54203. + # If the library was installed with an old release of libtool,
  54204. + # it will not redefine variables installed, or shouldnotlink
  54205. + installed=yes
  54206. + shouldnotlink=no
  54207. + avoidtemprpath=
  54208. +
  54209. +
  54210. + # Read the .la file
  54211. + func_source "$lib"
  54212. +
  54213. + # Convert "-framework foo" to "foo.ltframework"
  54214. + if test -n "$inherited_linker_flags"; then
  54215. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  54216. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  54217. + case " $new_inherited_linker_flags " in
  54218. + *" $tmp_inherited_linker_flag "*) ;;
  54219. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  54220. + esac
  54221. + done
  54222. + fi
  54223. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54224. + if test "$linkmode,$pass" = "lib,link" ||
  54225. + test "$linkmode,$pass" = "prog,scan" ||
  54226. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  54227. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  54228. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  54229. + fi
  54230. +
  54231. + if test "$pass" = conv; then
  54232. + # Only check for convenience libraries
  54233. + deplibs="$lib $deplibs"
  54234. + if test -z "$libdir"; then
  54235. + if test -z "$old_library"; then
  54236. + func_fatal_error "cannot find name of link library for \`$lib'"
  54237. + fi
  54238. + # It is a libtool convenience library, so add in its objects.
  54239. + convenience="$convenience $ladir/$objdir/$old_library"
  54240. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  54241. + tmp_libs=
  54242. + for deplib in $dependency_libs; do
  54243. + deplibs="$deplib $deplibs"
  54244. + if $opt_duplicate_deps ; then
  54245. + case "$tmp_libs " in
  54246. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54247. + esac
  54248. + fi
  54249. + tmp_libs="$tmp_libs $deplib"
  54250. + done
  54251. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  54252. + func_fatal_error "\`$lib' is not a convenience library"
  54253. + fi
  54254. + continue
  54255. + fi # $pass = conv
  54256. +
  54257. +
  54258. + # Get the name of the library we link against.
  54259. + linklib=
  54260. + for l in $old_library $library_names; do
  54261. + linklib="$l"
  54262. + done
  54263. + if test -z "$linklib"; then
  54264. + func_fatal_error "cannot find name of link library for \`$lib'"
  54265. + fi
  54266. +
  54267. + # This library was specified with -dlopen.
  54268. + if test "$pass" = dlopen; then
  54269. + if test -z "$libdir"; then
  54270. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  54271. + fi
  54272. + if test -z "$dlname" ||
  54273. + test "$dlopen_support" != yes ||
  54274. + test "$build_libtool_libs" = no; then
  54275. + # If there is no dlname, no dlopen support or we're linking
  54276. + # statically, we need to preload. We also need to preload any
  54277. + # dependent libraries so libltdl's deplib preloader doesn't
  54278. + # bomb out in the load deplibs phase.
  54279. + dlprefiles="$dlprefiles $lib $dependency_libs"
  54280. + else
  54281. + newdlfiles="$newdlfiles $lib"
  54282. + fi
  54283. + continue
  54284. + fi # $pass = dlopen
  54285. +
  54286. + # We need an absolute path.
  54287. + case $ladir in
  54288. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  54289. + *)
  54290. + abs_ladir=`cd "$ladir" && pwd`
  54291. + if test -z "$abs_ladir"; then
  54292. + func_warning "cannot determine absolute directory name of \`$ladir'"
  54293. + func_warning "passing it literally to the linker, although it might fail"
  54294. + abs_ladir="$ladir"
  54295. + fi
  54296. + ;;
  54297. + esac
  54298. + func_basename "$lib"
  54299. + laname="$func_basename_result"
  54300. +
  54301. + # Find the relevant object directory and library name.
  54302. + if test "X$installed" = Xyes; then
  54303. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  54304. + func_warning "library \`$lib' was moved."
  54305. + dir="$ladir"
  54306. + absdir="$abs_ladir"
  54307. + libdir="$abs_ladir"
  54308. + else
  54309. + dir="$libdir"
  54310. + absdir="$libdir"
  54311. + fi
  54312. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  54313. + else
  54314. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  54315. + dir="$ladir"
  54316. + absdir="$abs_ladir"
  54317. + # Remove this search path later
  54318. + notinst_path="$notinst_path $abs_ladir"
  54319. + else
  54320. + dir="$ladir/$objdir"
  54321. + absdir="$abs_ladir/$objdir"
  54322. + # Remove this search path later
  54323. + notinst_path="$notinst_path $abs_ladir"
  54324. + fi
  54325. + fi # $installed = yes
  54326. + func_stripname 'lib' '.la' "$laname"
  54327. + name=$func_stripname_result
  54328. +
  54329. + # This library was specified with -dlpreopen.
  54330. + if test "$pass" = dlpreopen; then
  54331. + if test -z "$libdir" && test "$linkmode" = prog; then
  54332. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  54333. + fi
  54334. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  54335. + # are required to link).
  54336. + if test -n "$old_library"; then
  54337. + newdlprefiles="$newdlprefiles $dir/$old_library"
  54338. + # Keep a list of preopened convenience libraries to check
  54339. + # that they are being used correctly in the link pass.
  54340. + test -z "$libdir" && \
  54341. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  54342. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  54343. + elif test -n "$dlname"; then
  54344. + newdlprefiles="$newdlprefiles $dir/$dlname"
  54345. + else
  54346. + newdlprefiles="$newdlprefiles $dir/$linklib"
  54347. + fi
  54348. + fi # $pass = dlpreopen
  54349. +
  54350. + if test -z "$libdir"; then
  54351. + # Link the convenience library
  54352. + if test "$linkmode" = lib; then
  54353. + deplibs="$dir/$old_library $deplibs"
  54354. + elif test "$linkmode,$pass" = "prog,link"; then
  54355. + compile_deplibs="$dir/$old_library $compile_deplibs"
  54356. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  54357. + else
  54358. + deplibs="$lib $deplibs" # used for prog,scan pass
  54359. + fi
  54360. + continue
  54361. + fi
  54362. +
  54363. +
  54364. + if test "$linkmode" = prog && test "$pass" != link; then
  54365. + newlib_search_path="$newlib_search_path $ladir"
  54366. + deplibs="$lib $deplibs"
  54367. +
  54368. + linkalldeplibs=no
  54369. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  54370. + test "$build_libtool_libs" = no; then
  54371. + linkalldeplibs=yes
  54372. + fi
  54373. +
  54374. + tmp_libs=
  54375. + for deplib in $dependency_libs; do
  54376. + case $deplib in
  54377. + -L*) func_stripname '-L' '' "$deplib"
  54378. + newlib_search_path="$newlib_search_path $func_stripname_result"
  54379. + ;;
  54380. + esac
  54381. + # Need to link against all dependency_libs?
  54382. + if test "$linkalldeplibs" = yes; then
  54383. + deplibs="$deplib $deplibs"
  54384. + else
  54385. + # Need to hardcode shared library paths
  54386. + # or/and link against static libraries
  54387. + newdependency_libs="$deplib $newdependency_libs"
  54388. + fi
  54389. + if $opt_duplicate_deps ; then
  54390. + case "$tmp_libs " in
  54391. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54392. + esac
  54393. + fi
  54394. + tmp_libs="$tmp_libs $deplib"
  54395. + done # for deplib
  54396. + continue
  54397. + fi # $linkmode = prog...
  54398. +
  54399. + if test "$linkmode,$pass" = "prog,link"; then
  54400. + if test -n "$library_names" &&
  54401. + { { test "$prefer_static_libs" = no ||
  54402. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  54403. + test -z "$old_library"; }; then
  54404. + # We need to hardcode the library path
  54405. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  54406. + # Make sure the rpath contains only unique directories.
  54407. + case "$temp_rpath:" in
  54408. + *"$absdir:"*) ;;
  54409. + *) temp_rpath="$temp_rpath$absdir:" ;;
  54410. + esac
  54411. + fi
  54412. +
  54413. + # Hardcode the library path.
  54414. + # Skip directories that are in the system default run-time
  54415. + # search path.
  54416. + case " $sys_lib_dlsearch_path " in
  54417. + *" $absdir "*) ;;
  54418. + *)
  54419. + case "$compile_rpath " in
  54420. + *" $absdir "*) ;;
  54421. + *) compile_rpath="$compile_rpath $absdir"
  54422. + esac
  54423. + ;;
  54424. + esac
  54425. + case " $sys_lib_dlsearch_path " in
  54426. + *" $libdir "*) ;;
  54427. + *)
  54428. + case "$finalize_rpath " in
  54429. + *" $libdir "*) ;;
  54430. + *) finalize_rpath="$finalize_rpath $libdir"
  54431. + esac
  54432. + ;;
  54433. + esac
  54434. + fi # $linkmode,$pass = prog,link...
  54435. +
  54436. + if test "$alldeplibs" = yes &&
  54437. + { test "$deplibs_check_method" = pass_all ||
  54438. + { test "$build_libtool_libs" = yes &&
  54439. + test -n "$library_names"; }; }; then
  54440. + # We only need to search for static libraries
  54441. + continue
  54442. + fi
  54443. + fi
  54444. +
  54445. + link_static=no # Whether the deplib will be linked statically
  54446. + use_static_libs=$prefer_static_libs
  54447. + if test "$use_static_libs" = built && test "$installed" = yes; then
  54448. + use_static_libs=no
  54449. + fi
  54450. + if test -n "$library_names" &&
  54451. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  54452. + case $host in
  54453. + *cygwin* | *mingw* | *cegcc*)
  54454. + # No point in relinking DLLs because paths are not encoded
  54455. + notinst_deplibs="$notinst_deplibs $lib"
  54456. + need_relink=no
  54457. + ;;
  54458. + *)
  54459. + if test "$installed" = no; then
  54460. + notinst_deplibs="$notinst_deplibs $lib"
  54461. + need_relink=yes
  54462. + fi
  54463. + ;;
  54464. + esac
  54465. + # This is a shared library
  54466. +
  54467. + # Warn about portability, can't link against -module's on some
  54468. + # systems (darwin). Don't bleat about dlopened modules though!
  54469. + dlopenmodule=""
  54470. + for dlpremoduletest in $dlprefiles; do
  54471. + if test "X$dlpremoduletest" = "X$lib"; then
  54472. + dlopenmodule="$dlpremoduletest"
  54473. + break
  54474. + fi
  54475. + done
  54476. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  54477. + $ECHO
  54478. + if test "$linkmode" = prog; then
  54479. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  54480. + else
  54481. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  54482. + fi
  54483. + $ECHO "*** $linklib is not portable!"
  54484. + fi
  54485. + if test "$linkmode" = lib &&
  54486. + test "$hardcode_into_libs" = yes; then
  54487. + # Hardcode the library path.
  54488. + # Skip directories that are in the system default run-time
  54489. + # search path.
  54490. + case " $sys_lib_dlsearch_path " in
  54491. + *" $absdir "*) ;;
  54492. + *)
  54493. + case "$compile_rpath " in
  54494. + *" $absdir "*) ;;
  54495. + *) compile_rpath="$compile_rpath $absdir"
  54496. + esac
  54497. + ;;
  54498. + esac
  54499. + case " $sys_lib_dlsearch_path " in
  54500. + *" $libdir "*) ;;
  54501. + *)
  54502. + case "$finalize_rpath " in
  54503. + *" $libdir "*) ;;
  54504. + *) finalize_rpath="$finalize_rpath $libdir"
  54505. + esac
  54506. + ;;
  54507. + esac
  54508. + fi
  54509. +
  54510. + if test -n "$old_archive_from_expsyms_cmds"; then
  54511. + # figure out the soname
  54512. + set dummy $library_names
  54513. + shift
  54514. + realname="$1"
  54515. + shift
  54516. + libname=`eval "\\$ECHO \"$libname_spec\""`
  54517. + # use dlname if we got it. it's perfectly good, no?
  54518. + if test -n "$dlname"; then
  54519. + soname="$dlname"
  54520. + elif test -n "$soname_spec"; then
  54521. + # bleh windows
  54522. + case $host in
  54523. + *cygwin* | mingw* | *cegcc*)
  54524. + func_arith $current - $age
  54525. + major=$func_arith_result
  54526. + versuffix="-$major"
  54527. + ;;
  54528. + esac
  54529. + eval soname=\"$soname_spec\"
  54530. + else
  54531. + soname="$realname"
  54532. + fi
  54533. +
  54534. + # Make a new name for the extract_expsyms_cmds to use
  54535. + soroot="$soname"
  54536. + func_basename "$soroot"
  54537. + soname="$func_basename_result"
  54538. + func_stripname 'lib' '.dll' "$soname"
  54539. + newlib=libimp-$func_stripname_result.a
  54540. +
  54541. + # If the library has no export list, then create one now
  54542. + if test -f "$output_objdir/$soname-def"; then :
  54543. + else
  54544. + func_verbose "extracting exported symbol list from \`$soname'"
  54545. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  54546. + fi
  54547. +
  54548. + # Create $newlib
  54549. + if test -f "$output_objdir/$newlib"; then :; else
  54550. + func_verbose "generating import library for \`$soname'"
  54551. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  54552. + fi
  54553. + # make sure the library variables are pointing to the new library
  54554. + dir=$output_objdir
  54555. + linklib=$newlib
  54556. + fi # test -n "$old_archive_from_expsyms_cmds"
  54557. +
  54558. + if test "$linkmode" = prog || test "$mode" != relink; then
  54559. + add_shlibpath=
  54560. + add_dir=
  54561. + add=
  54562. + lib_linked=yes
  54563. + case $hardcode_action in
  54564. + immediate | unsupported)
  54565. + if test "$hardcode_direct" = no; then
  54566. + add="$dir/$linklib"
  54567. + case $host in
  54568. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  54569. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  54570. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  54571. + *-*-unixware7*) add_dir="-L$dir" ;;
  54572. + *-*-darwin* )
  54573. + # if the lib is a (non-dlopened) module then we can not
  54574. + # link against it, someone is ignoring the earlier warnings
  54575. + if /usr/bin/file -L $add 2> /dev/null |
  54576. + $GREP ": [^:]* bundle" >/dev/null ; then
  54577. + if test "X$dlopenmodule" != "X$lib"; then
  54578. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  54579. + if test -z "$old_library" ; then
  54580. + $ECHO
  54581. + $ECHO "*** And there doesn't seem to be a static archive available"
  54582. + $ECHO "*** The link will probably fail, sorry"
  54583. + else
  54584. + add="$dir/$old_library"
  54585. + fi
  54586. + elif test -n "$old_library"; then
  54587. + add="$dir/$old_library"
  54588. + fi
  54589. + fi
  54590. + esac
  54591. + elif test "$hardcode_minus_L" = no; then
  54592. + case $host in
  54593. + *-*-sunos*) add_shlibpath="$dir" ;;
  54594. + esac
  54595. + add_dir="-L$dir"
  54596. + add="-l$name"
  54597. + elif test "$hardcode_shlibpath_var" = no; then
  54598. + add_shlibpath="$dir"
  54599. + add="-l$name"
  54600. + else
  54601. + lib_linked=no
  54602. + fi
  54603. + ;;
  54604. + relink)
  54605. + if test "$hardcode_direct" = yes &&
  54606. + test "$hardcode_direct_absolute" = no; then
  54607. + add="$dir/$linklib"
  54608. + elif test "$hardcode_minus_L" = yes; then
  54609. + add_dir="-L$dir"
  54610. + # Try looking first in the location we're being installed to.
  54611. + if test -n "$inst_prefix_dir"; then
  54612. + case $libdir in
  54613. + [\\/]*)
  54614. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54615. + ;;
  54616. + esac
  54617. + fi
  54618. + add="-l$name"
  54619. + elif test "$hardcode_shlibpath_var" = yes; then
  54620. + add_shlibpath="$dir"
  54621. + add="-l$name"
  54622. + else
  54623. + lib_linked=no
  54624. + fi
  54625. + ;;
  54626. + *) lib_linked=no ;;
  54627. + esac
  54628. +
  54629. + if test "$lib_linked" != yes; then
  54630. + func_fatal_configuration "unsupported hardcode properties"
  54631. + fi
  54632. +
  54633. + if test -n "$add_shlibpath"; then
  54634. + case :$compile_shlibpath: in
  54635. + *":$add_shlibpath:"*) ;;
  54636. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  54637. + esac
  54638. + fi
  54639. + if test "$linkmode" = prog; then
  54640. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  54641. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  54642. + else
  54643. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54644. + test -n "$add" && deplibs="$add $deplibs"
  54645. + if test "$hardcode_direct" != yes &&
  54646. + test "$hardcode_minus_L" != yes &&
  54647. + test "$hardcode_shlibpath_var" = yes; then
  54648. + case :$finalize_shlibpath: in
  54649. + *":$libdir:"*) ;;
  54650. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54651. + esac
  54652. + fi
  54653. + fi
  54654. + fi
  54655. +
  54656. + if test "$linkmode" = prog || test "$mode" = relink; then
  54657. + add_shlibpath=
  54658. + add_dir=
  54659. + add=
  54660. + # Finalize command for both is simple: just hardcode it.
  54661. + if test "$hardcode_direct" = yes &&
  54662. + test "$hardcode_direct_absolute" = no; then
  54663. + add="$libdir/$linklib"
  54664. + elif test "$hardcode_minus_L" = yes; then
  54665. + add_dir="-L$libdir"
  54666. + add="-l$name"
  54667. + elif test "$hardcode_shlibpath_var" = yes; then
  54668. + case :$finalize_shlibpath: in
  54669. + *":$libdir:"*) ;;
  54670. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  54671. + esac
  54672. + add="-l$name"
  54673. + elif test "$hardcode_automatic" = yes; then
  54674. + if test -n "$inst_prefix_dir" &&
  54675. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  54676. + add="$inst_prefix_dir$libdir/$linklib"
  54677. + else
  54678. + add="$libdir/$linklib"
  54679. + fi
  54680. + else
  54681. + # We cannot seem to hardcode it, guess we'll fake it.
  54682. + add_dir="-L$libdir"
  54683. + # Try looking first in the location we're being installed to.
  54684. + if test -n "$inst_prefix_dir"; then
  54685. + case $libdir in
  54686. + [\\/]*)
  54687. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  54688. + ;;
  54689. + esac
  54690. + fi
  54691. + add="-l$name"
  54692. + fi
  54693. +
  54694. + if test "$linkmode" = prog; then
  54695. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  54696. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  54697. + else
  54698. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  54699. + test -n "$add" && deplibs="$add $deplibs"
  54700. + fi
  54701. + fi
  54702. + elif test "$linkmode" = prog; then
  54703. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  54704. + # is not unsupported. This is valid on all known static and
  54705. + # shared platforms.
  54706. + if test "$hardcode_direct" != unsupported; then
  54707. + test -n "$old_library" && linklib="$old_library"
  54708. + compile_deplibs="$dir/$linklib $compile_deplibs"
  54709. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  54710. + else
  54711. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  54712. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  54713. + fi
  54714. + elif test "$build_libtool_libs" = yes; then
  54715. + # Not a shared library
  54716. + if test "$deplibs_check_method" != pass_all; then
  54717. + # We're trying link a shared library against a static one
  54718. + # but the system doesn't support it.
  54719. +
  54720. + # Just print a warning and add the library to dependency_libs so
  54721. + # that the program can be linked against the static library.
  54722. + $ECHO
  54723. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  54724. + $ECHO "*** I have the capability to make that library automatically link in when"
  54725. + $ECHO "*** you link to this library. But I can only do this if you have a"
  54726. + $ECHO "*** shared version of the library, which you do not appear to have."
  54727. + if test "$module" = yes; then
  54728. + $ECHO "*** But as you try to build a module library, libtool will still create "
  54729. + $ECHO "*** a static module, that should work as long as the dlopening application"
  54730. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  54731. + if test -z "$global_symbol_pipe"; then
  54732. + $ECHO
  54733. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  54734. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  54735. + $ECHO "*** not find such a program. So, this module is probably useless."
  54736. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  54737. + fi
  54738. + if test "$build_old_libs" = no; then
  54739. + build_libtool_libs=module
  54740. + build_old_libs=yes
  54741. + else
  54742. + build_libtool_libs=no
  54743. + fi
  54744. + fi
  54745. + else
  54746. + deplibs="$dir/$old_library $deplibs"
  54747. + link_static=yes
  54748. + fi
  54749. + fi # link shared/static library?
  54750. +
  54751. + if test "$linkmode" = lib; then
  54752. + if test -n "$dependency_libs" &&
  54753. + { test "$hardcode_into_libs" != yes ||
  54754. + test "$build_old_libs" = yes ||
  54755. + test "$link_static" = yes; }; then
  54756. + # Extract -R from dependency_libs
  54757. + temp_deplibs=
  54758. + for libdir in $dependency_libs; do
  54759. + case $libdir in
  54760. + -R*) func_stripname '-R' '' "$libdir"
  54761. + temp_xrpath=$func_stripname_result
  54762. + case " $xrpath " in
  54763. + *" $temp_xrpath "*) ;;
  54764. + *) xrpath="$xrpath $temp_xrpath";;
  54765. + esac;;
  54766. + *) temp_deplibs="$temp_deplibs $libdir";;
  54767. + esac
  54768. + done
  54769. + dependency_libs="$temp_deplibs"
  54770. + fi
  54771. +
  54772. + newlib_search_path="$newlib_search_path $absdir"
  54773. + # Link against this library
  54774. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  54775. + # ... and its dependency_libs
  54776. + tmp_libs=
  54777. + for deplib in $dependency_libs; do
  54778. + newdependency_libs="$deplib $newdependency_libs"
  54779. + if $opt_duplicate_deps ; then
  54780. + case "$tmp_libs " in
  54781. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  54782. + esac
  54783. + fi
  54784. + tmp_libs="$tmp_libs $deplib"
  54785. + done
  54786. +
  54787. + if test "$link_all_deplibs" != no; then
  54788. + # Add the search paths of all dependency libraries
  54789. + for deplib in $dependency_libs; do
  54790. + path=
  54791. + case $deplib in
  54792. + -L*) path="$deplib" ;;
  54793. + *.la)
  54794. + func_dirname "$deplib" "" "."
  54795. + dir="$func_dirname_result"
  54796. + # We need an absolute path.
  54797. + case $dir in
  54798. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  54799. + *)
  54800. + absdir=`cd "$dir" && pwd`
  54801. + if test -z "$absdir"; then
  54802. + func_warning "cannot determine absolute directory name of \`$dir'"
  54803. + absdir="$dir"
  54804. + fi
  54805. + ;;
  54806. + esac
  54807. + if $GREP "^installed=no" $deplib > /dev/null; then
  54808. + case $host in
  54809. + *-*-darwin*)
  54810. + depdepl=
  54811. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  54812. + if test -n "$deplibrary_names" ; then
  54813. + for tmp in $deplibrary_names ; do
  54814. + depdepl=$tmp
  54815. + done
  54816. + if test -f "$absdir/$objdir/$depdepl" ; then
  54817. + depdepl="$absdir/$objdir/$depdepl"
  54818. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  54819. + if test -z "$darwin_install_name"; then
  54820. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  54821. + fi
  54822. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  54823. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  54824. + path=
  54825. + fi
  54826. + fi
  54827. + ;;
  54828. + *)
  54829. + path="-L$absdir/$objdir"
  54830. + ;;
  54831. + esac
  54832. + else
  54833. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  54834. + test -z "$libdir" && \
  54835. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  54836. + test "$absdir" != "$libdir" && \
  54837. + func_warning "\`$deplib' seems to be moved"
  54838. +
  54839. + path="-L$absdir"
  54840. + fi
  54841. + ;;
  54842. + esac
  54843. + case " $deplibs " in
  54844. + *" $path "*) ;;
  54845. + *) deplibs="$path $deplibs" ;;
  54846. + esac
  54847. + done
  54848. + fi # link_all_deplibs != no
  54849. + fi # linkmode = lib
  54850. + done # for deplib in $libs
  54851. + if test "$pass" = link; then
  54852. + if test "$linkmode" = "prog"; then
  54853. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  54854. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  54855. + else
  54856. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  54857. + fi
  54858. + fi
  54859. + dependency_libs="$newdependency_libs"
  54860. + if test "$pass" = dlpreopen; then
  54861. + # Link the dlpreopened libraries before other libraries
  54862. + for deplib in $save_deplibs; do
  54863. + deplibs="$deplib $deplibs"
  54864. + done
  54865. + fi
  54866. + if test "$pass" != dlopen; then
  54867. + if test "$pass" != conv; then
  54868. + # Make sure lib_search_path contains only unique directories.
  54869. + lib_search_path=
  54870. + for dir in $newlib_search_path; do
  54871. + case "$lib_search_path " in
  54872. + *" $dir "*) ;;
  54873. + *) lib_search_path="$lib_search_path $dir" ;;
  54874. + esac
  54875. + done
  54876. + newlib_search_path=
  54877. + fi
  54878. +
  54879. + if test "$linkmode,$pass" != "prog,link"; then
  54880. + vars="deplibs"
  54881. + else
  54882. + vars="compile_deplibs finalize_deplibs"
  54883. + fi
  54884. + for var in $vars dependency_libs; do
  54885. + # Add libraries to $var in reverse order
  54886. + eval tmp_libs=\"\$$var\"
  54887. + new_libs=
  54888. + for deplib in $tmp_libs; do
  54889. + # FIXME: Pedantically, this is the right thing to do, so
  54890. + # that some nasty dependency loop isn't accidentally
  54891. + # broken:
  54892. + #new_libs="$deplib $new_libs"
  54893. + # Pragmatically, this seems to cause very few problems in
  54894. + # practice:
  54895. + case $deplib in
  54896. + -L*) new_libs="$deplib $new_libs" ;;
  54897. + -R*) ;;
  54898. + *)
  54899. + # And here is the reason: when a library appears more
  54900. + # than once as an explicit dependence of a library, or
  54901. + # is implicitly linked in more than once by the
  54902. + # compiler, it is considered special, and multiple
  54903. + # occurrences thereof are not removed. Compare this
  54904. + # with having the same library being listed as a
  54905. + # dependency of multiple other libraries: in this case,
  54906. + # we know (pedantically, we assume) the library does not
  54907. + # need to be listed more than once, so we keep only the
  54908. + # last copy. This is not always right, but it is rare
  54909. + # enough that we require users that really mean to play
  54910. + # such unportable linking tricks to link the library
  54911. + # using -Wl,-lname, so that libtool does not consider it
  54912. + # for duplicate removal.
  54913. + case " $specialdeplibs " in
  54914. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  54915. + *)
  54916. + case " $new_libs " in
  54917. + *" $deplib "*) ;;
  54918. + *) new_libs="$deplib $new_libs" ;;
  54919. + esac
  54920. + ;;
  54921. + esac
  54922. + ;;
  54923. + esac
  54924. + done
  54925. + tmp_libs=
  54926. + for deplib in $new_libs; do
  54927. + case $deplib in
  54928. + -L*)
  54929. + case " $tmp_libs " in
  54930. + *" $deplib "*) ;;
  54931. + *) tmp_libs="$tmp_libs $deplib" ;;
  54932. + esac
  54933. + ;;
  54934. + *) tmp_libs="$tmp_libs $deplib" ;;
  54935. + esac
  54936. + done
  54937. + eval $var=\"$tmp_libs\"
  54938. + done # for var
  54939. + fi
  54940. + # Last step: remove runtime libs from dependency_libs
  54941. + # (they stay in deplibs)
  54942. + tmp_libs=
  54943. + for i in $dependency_libs ; do
  54944. + case " $predeps $postdeps $compiler_lib_search_path " in
  54945. + *" $i "*)
  54946. + i=""
  54947. + ;;
  54948. + esac
  54949. + if test -n "$i" ; then
  54950. + tmp_libs="$tmp_libs $i"
  54951. + fi
  54952. + done
  54953. + dependency_libs=$tmp_libs
  54954. + done # for pass
  54955. + if test "$linkmode" = prog; then
  54956. + dlfiles="$newdlfiles"
  54957. + fi
  54958. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  54959. + dlprefiles="$newdlprefiles"
  54960. + fi
  54961. +
  54962. + case $linkmode in
  54963. + oldlib)
  54964. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54965. + func_warning "\`-dlopen' is ignored for archives"
  54966. + fi
  54967. +
  54968. + case " $deplibs" in
  54969. + *\ -l* | *\ -L*)
  54970. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  54971. + esac
  54972. +
  54973. + test -n "$rpath" && \
  54974. + func_warning "\`-rpath' is ignored for archives"
  54975. +
  54976. + test -n "$xrpath" && \
  54977. + func_warning "\`-R' is ignored for archives"
  54978. +
  54979. + test -n "$vinfo" && \
  54980. + func_warning "\`-version-info/-version-number' is ignored for archives"
  54981. +
  54982. + test -n "$release" && \
  54983. + func_warning "\`-release' is ignored for archives"
  54984. +
  54985. + test -n "$export_symbols$export_symbols_regex" && \
  54986. + func_warning "\`-export-symbols' is ignored for archives"
  54987. +
  54988. + # Now set the variables for building old libraries.
  54989. + build_libtool_libs=no
  54990. + oldlibs="$output"
  54991. + objs="$objs$old_deplibs"
  54992. + ;;
  54993. +
  54994. + lib)
  54995. + # Make sure we only generate libraries of the form `libNAME.la'.
  54996. + case $outputname in
  54997. + lib*)
  54998. + func_stripname 'lib' '.la' "$outputname"
  54999. + name=$func_stripname_result
  55000. + eval shared_ext=\"$shrext_cmds\"
  55001. + eval libname=\"$libname_spec\"
  55002. + ;;
  55003. + *)
  55004. + test "$module" = no && \
  55005. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  55006. +
  55007. + if test "$need_lib_prefix" != no; then
  55008. + # Add the "lib" prefix for modules if required
  55009. + func_stripname '' '.la' "$outputname"
  55010. + name=$func_stripname_result
  55011. + eval shared_ext=\"$shrext_cmds\"
  55012. + eval libname=\"$libname_spec\"
  55013. + else
  55014. + func_stripname '' '.la' "$outputname"
  55015. + libname=$func_stripname_result
  55016. + fi
  55017. + ;;
  55018. + esac
  55019. +
  55020. + if test -n "$objs"; then
  55021. + if test "$deplibs_check_method" != pass_all; then
  55022. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  55023. + else
  55024. + $ECHO
  55025. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  55026. + $ECHO "*** objects $objs is not portable!"
  55027. + libobjs="$libobjs $objs"
  55028. + fi
  55029. + fi
  55030. +
  55031. + test "$dlself" != no && \
  55032. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  55033. +
  55034. + set dummy $rpath
  55035. + shift
  55036. + test "$#" -gt 1 && \
  55037. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  55038. +
  55039. + install_libdir="$1"
  55040. +
  55041. + oldlibs=
  55042. + if test -z "$rpath"; then
  55043. + if test "$build_libtool_libs" = yes; then
  55044. + # Building a libtool convenience library.
  55045. + # Some compilers have problems with a `.al' extension so
  55046. + # convenience libraries should have the same extension an
  55047. + # archive normally would.
  55048. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  55049. + build_libtool_libs=convenience
  55050. + build_old_libs=yes
  55051. + fi
  55052. +
  55053. + test -n "$vinfo" && \
  55054. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  55055. +
  55056. + test -n "$release" && \
  55057. + func_warning "\`-release' is ignored for convenience libraries"
  55058. + else
  55059. +
  55060. + # Parse the version information argument.
  55061. + save_ifs="$IFS"; IFS=':'
  55062. + set dummy $vinfo 0 0 0
  55063. + shift
  55064. + IFS="$save_ifs"
  55065. +
  55066. + test -n "$7" && \
  55067. + func_fatal_help "too many parameters to \`-version-info'"
  55068. +
  55069. + # convert absolute version numbers to libtool ages
  55070. + # this retains compatibility with .la files and attempts
  55071. + # to make the code below a bit more comprehensible
  55072. +
  55073. + case $vinfo_number in
  55074. + yes)
  55075. + number_major="$1"
  55076. + number_minor="$2"
  55077. + number_revision="$3"
  55078. + #
  55079. + # There are really only two kinds -- those that
  55080. + # use the current revision as the major version
  55081. + # and those that subtract age and use age as
  55082. + # a minor version. But, then there is irix
  55083. + # which has an extra 1 added just for fun
  55084. + #
  55085. + case $version_type in
  55086. + darwin|linux|osf|windows|none)
  55087. + func_arith $number_major + $number_minor
  55088. + current=$func_arith_result
  55089. + age="$number_minor"
  55090. + revision="$number_revision"
  55091. + ;;
  55092. + freebsd-aout|freebsd-elf|sunos)
  55093. + current="$number_major"
  55094. + revision="$number_minor"
  55095. + age="0"
  55096. + ;;
  55097. + irix|nonstopux)
  55098. + func_arith $number_major + $number_minor
  55099. + current=$func_arith_result
  55100. + age="$number_minor"
  55101. + revision="$number_minor"
  55102. + lt_irix_increment=no
  55103. + ;;
  55104. + *)
  55105. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  55106. + ;;
  55107. + esac
  55108. + ;;
  55109. + no)
  55110. + current="$1"
  55111. + revision="$2"
  55112. + age="$3"
  55113. + ;;
  55114. + esac
  55115. +
  55116. + # Check that each of the things are valid numbers.
  55117. + case $current in
  55118. + 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]) ;;
  55119. + *)
  55120. + func_error "CURRENT \`$current' must be a nonnegative integer"
  55121. + func_fatal_error "\`$vinfo' is not valid version information"
  55122. + ;;
  55123. + esac
  55124. +
  55125. + case $revision in
  55126. + 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]) ;;
  55127. + *)
  55128. + func_error "REVISION \`$revision' must be a nonnegative integer"
  55129. + func_fatal_error "\`$vinfo' is not valid version information"
  55130. + ;;
  55131. + esac
  55132. +
  55133. + case $age in
  55134. + 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]) ;;
  55135. + *)
  55136. + func_error "AGE \`$age' must be a nonnegative integer"
  55137. + func_fatal_error "\`$vinfo' is not valid version information"
  55138. + ;;
  55139. + esac
  55140. +
  55141. + if test "$age" -gt "$current"; then
  55142. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  55143. + func_fatal_error "\`$vinfo' is not valid version information"
  55144. + fi
  55145. +
  55146. + # Calculate the version variables.
  55147. + major=
  55148. + versuffix=
  55149. + verstring=
  55150. + case $version_type in
  55151. + none) ;;
  55152. +
  55153. + darwin)
  55154. + # Like Linux, but with the current version available in
  55155. + # verstring for coding it into the library header
  55156. + func_arith $current - $age
  55157. + major=.$func_arith_result
  55158. + versuffix="$major.$age.$revision"
  55159. + # Darwin ld doesn't like 0 for these options...
  55160. + func_arith $current + 1
  55161. + minor_current=$func_arith_result
  55162. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  55163. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  55164. + ;;
  55165. +
  55166. + freebsd-aout)
  55167. + major=".$current"
  55168. + versuffix=".$current.$revision";
  55169. + ;;
  55170. +
  55171. + freebsd-elf)
  55172. + major=".$current"
  55173. + versuffix=".$current"
  55174. + ;;
  55175. +
  55176. + irix | nonstopux)
  55177. + if test "X$lt_irix_increment" = "Xno"; then
  55178. + func_arith $current - $age
  55179. + else
  55180. + func_arith $current - $age + 1
  55181. + fi
  55182. + major=$func_arith_result
  55183. +
  55184. + case $version_type in
  55185. + nonstopux) verstring_prefix=nonstopux ;;
  55186. + *) verstring_prefix=sgi ;;
  55187. + esac
  55188. + verstring="$verstring_prefix$major.$revision"
  55189. +
  55190. + # Add in all the interfaces that we are compatible with.
  55191. + loop=$revision
  55192. + while test "$loop" -ne 0; do
  55193. + func_arith $revision - $loop
  55194. + iface=$func_arith_result
  55195. + func_arith $loop - 1
  55196. + loop=$func_arith_result
  55197. + verstring="$verstring_prefix$major.$iface:$verstring"
  55198. + done
  55199. +
  55200. + # Before this point, $major must not contain `.'.
  55201. + major=.$major
  55202. + versuffix="$major.$revision"
  55203. + ;;
  55204. +
  55205. + linux)
  55206. + func_arith $current - $age
  55207. + major=.$func_arith_result
  55208. + versuffix="$major.$age.$revision"
  55209. + ;;
  55210. +
  55211. + osf)
  55212. + func_arith $current - $age
  55213. + major=.$func_arith_result
  55214. + versuffix=".$current.$age.$revision"
  55215. + verstring="$current.$age.$revision"
  55216. +
  55217. + # Add in all the interfaces that we are compatible with.
  55218. + loop=$age
  55219. + while test "$loop" -ne 0; do
  55220. + func_arith $current - $loop
  55221. + iface=$func_arith_result
  55222. + func_arith $loop - 1
  55223. + loop=$func_arith_result
  55224. + verstring="$verstring:${iface}.0"
  55225. + done
  55226. +
  55227. + # Make executables depend on our current version.
  55228. + verstring="$verstring:${current}.0"
  55229. + ;;
  55230. +
  55231. + qnx)
  55232. + major=".$current"
  55233. + versuffix=".$current"
  55234. + ;;
  55235. +
  55236. + sunos)
  55237. + major=".$current"
  55238. + versuffix=".$current.$revision"
  55239. + ;;
  55240. +
  55241. + windows)
  55242. + # Use '-' rather than '.', since we only want one
  55243. + # extension on DOS 8.3 filesystems.
  55244. + func_arith $current - $age
  55245. + major=$func_arith_result
  55246. + versuffix="-$major"
  55247. + ;;
  55248. +
  55249. + *)
  55250. + func_fatal_configuration "unknown library version type \`$version_type'"
  55251. + ;;
  55252. + esac
  55253. +
  55254. + # Clear the version info if we defaulted, and they specified a release.
  55255. + if test -z "$vinfo" && test -n "$release"; then
  55256. + major=
  55257. + case $version_type in
  55258. + darwin)
  55259. + # we can't check for "0.0" in archive_cmds due to quoting
  55260. + # problems, so we reset it completely
  55261. + verstring=
  55262. + ;;
  55263. + *)
  55264. + verstring="0.0"
  55265. + ;;
  55266. + esac
  55267. + if test "$need_version" = no; then
  55268. + versuffix=
  55269. + else
  55270. + versuffix=".0.0"
  55271. + fi
  55272. + fi
  55273. +
  55274. + # Remove version info from name if versioning should be avoided
  55275. + if test "$avoid_version" = yes && test "$need_version" = no; then
  55276. + major=
  55277. + versuffix=
  55278. + verstring=""
  55279. + fi
  55280. +
  55281. + # Check to see if the archive will have undefined symbols.
  55282. + if test "$allow_undefined" = yes; then
  55283. + if test "$allow_undefined_flag" = unsupported; then
  55284. + func_warning "undefined symbols not allowed in $host shared libraries"
  55285. + build_libtool_libs=no
  55286. + build_old_libs=yes
  55287. + fi
  55288. + else
  55289. + # Don't allow undefined symbols.
  55290. + allow_undefined_flag="$no_undefined_flag"
  55291. + fi
  55292. +
  55293. + fi
  55294. +
  55295. + func_generate_dlsyms "$libname" "$libname" "yes"
  55296. + libobjs="$libobjs $symfileobj"
  55297. + test "X$libobjs" = "X " && libobjs=
  55298. +
  55299. + if test "$mode" != relink; then
  55300. + # Remove our outputs, but don't remove object files since they
  55301. + # may have been created when compiling PIC objects.
  55302. + removelist=
  55303. + tempremovelist=`$ECHO "$output_objdir/*"`
  55304. + for p in $tempremovelist; do
  55305. + case $p in
  55306. + *.$objext | *.gcno)
  55307. + ;;
  55308. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  55309. + if test "X$precious_files_regex" != "X"; then
  55310. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  55311. + then
  55312. + continue
  55313. + fi
  55314. + fi
  55315. + removelist="$removelist $p"
  55316. + ;;
  55317. + *) ;;
  55318. + esac
  55319. + done
  55320. + test -n "$removelist" && \
  55321. + func_show_eval "${RM}r \$removelist"
  55322. + fi
  55323. +
  55324. + # Now set the variables for building old libraries.
  55325. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  55326. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  55327. +
  55328. + # Transform .lo files to .o files.
  55329. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  55330. + fi
  55331. +
  55332. + # Eliminate all temporary directories.
  55333. + #for path in $notinst_path; do
  55334. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  55335. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  55336. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  55337. + #done
  55338. +
  55339. + if test -n "$xrpath"; then
  55340. + # If the user specified any rpath flags, then add them.
  55341. + temp_xrpath=
  55342. + for libdir in $xrpath; do
  55343. + temp_xrpath="$temp_xrpath -R$libdir"
  55344. + case "$finalize_rpath " in
  55345. + *" $libdir "*) ;;
  55346. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  55347. + esac
  55348. + done
  55349. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  55350. + dependency_libs="$temp_xrpath $dependency_libs"
  55351. + fi
  55352. + fi
  55353. +
  55354. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  55355. + old_dlfiles="$dlfiles"
  55356. + dlfiles=
  55357. + for lib in $old_dlfiles; do
  55358. + case " $dlprefiles $dlfiles " in
  55359. + *" $lib "*) ;;
  55360. + *) dlfiles="$dlfiles $lib" ;;
  55361. + esac
  55362. + done
  55363. +
  55364. + # Make sure dlprefiles contains only unique files
  55365. + old_dlprefiles="$dlprefiles"
  55366. + dlprefiles=
  55367. + for lib in $old_dlprefiles; do
  55368. + case "$dlprefiles " in
  55369. + *" $lib "*) ;;
  55370. + *) dlprefiles="$dlprefiles $lib" ;;
  55371. + esac
  55372. + done
  55373. +
  55374. + if test "$build_libtool_libs" = yes; then
  55375. + if test -n "$rpath"; then
  55376. + case $host in
  55377. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  55378. + # these systems don't actually have a c library (as such)!
  55379. + ;;
  55380. + *-*-rhapsody* | *-*-darwin1.[012])
  55381. + # Rhapsody C library is in the System framework
  55382. + deplibs="$deplibs System.ltframework"
  55383. + ;;
  55384. + *-*-netbsd*)
  55385. + # Don't link with libc until the a.out ld.so is fixed.
  55386. + ;;
  55387. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55388. + # Do not include libc due to us having libc/libc_r.
  55389. + ;;
  55390. + *-*-sco3.2v5* | *-*-sco5v6*)
  55391. + # Causes problems with __ctype
  55392. + ;;
  55393. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55394. + # Compiler inserts libc in the correct place for threads to work
  55395. + ;;
  55396. + *)
  55397. + # Add libc to deplibs on all other systems if necessary.
  55398. + if test "$build_libtool_need_lc" = "yes"; then
  55399. + deplibs="$deplibs -lc"
  55400. + fi
  55401. + ;;
  55402. + esac
  55403. + fi
  55404. +
  55405. + # Transform deplibs into only deplibs that can be linked in shared.
  55406. + name_save=$name
  55407. + libname_save=$libname
  55408. + release_save=$release
  55409. + versuffix_save=$versuffix
  55410. + major_save=$major
  55411. + # I'm not sure if I'm treating the release correctly. I think
  55412. + # release should show up in the -l (ie -lgmp5) so we don't want to
  55413. + # add it in twice. Is that correct?
  55414. + release=""
  55415. + versuffix=""
  55416. + major=""
  55417. + newdeplibs=
  55418. + droppeddeps=no
  55419. + case $deplibs_check_method in
  55420. + pass_all)
  55421. + # Don't check for shared/static. Everything works.
  55422. + # This might be a little naive. We might want to check
  55423. + # whether the library exists or not. But this is on
  55424. + # osf3 & osf4 and I'm not really sure... Just
  55425. + # implementing what was already the behavior.
  55426. + newdeplibs=$deplibs
  55427. + ;;
  55428. + test_compile)
  55429. + # This code stresses the "libraries are programs" paradigm to its
  55430. + # limits. Maybe even breaks it. We compile a program, linking it
  55431. + # against the deplibs as a proxy for the library. Then we can check
  55432. + # whether they linked in statically or dynamically with ldd.
  55433. + $opt_dry_run || $RM conftest.c
  55434. + cat > conftest.c <<EOF
  55435. + int main() { return 0; }
  55436. +EOF
  55437. + $opt_dry_run || $RM conftest
  55438. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  55439. + ldd_output=`ldd conftest`
  55440. + for i in $deplibs; do
  55441. + case $i in
  55442. + -l*)
  55443. + func_stripname -l '' "$i"
  55444. + name=$func_stripname_result
  55445. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55446. + case " $predeps $postdeps " in
  55447. + *" $i "*)
  55448. + newdeplibs="$newdeplibs $i"
  55449. + i=""
  55450. + ;;
  55451. + esac
  55452. + fi
  55453. + if test -n "$i" ; then
  55454. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55455. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  55456. + set dummy $deplib_matches; shift
  55457. + deplib_match=$1
  55458. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55459. + newdeplibs="$newdeplibs $i"
  55460. + else
  55461. + droppeddeps=yes
  55462. + $ECHO
  55463. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  55464. + $ECHO "*** I have the capability to make that library automatically link in when"
  55465. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55466. + $ECHO "*** shared version of the library, which I believe you do not have"
  55467. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  55468. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  55469. + fi
  55470. + fi
  55471. + ;;
  55472. + *)
  55473. + newdeplibs="$newdeplibs $i"
  55474. + ;;
  55475. + esac
  55476. + done
  55477. + else
  55478. + # Error occurred in the first compile. Let's try to salvage
  55479. + # the situation: Compile a separate program for each library.
  55480. + for i in $deplibs; do
  55481. + case $i in
  55482. + -l*)
  55483. + func_stripname -l '' "$i"
  55484. + name=$func_stripname_result
  55485. + $opt_dry_run || $RM conftest
  55486. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  55487. + ldd_output=`ldd conftest`
  55488. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55489. + case " $predeps $postdeps " in
  55490. + *" $i "*)
  55491. + newdeplibs="$newdeplibs $i"
  55492. + i=""
  55493. + ;;
  55494. + esac
  55495. + fi
  55496. + if test -n "$i" ; then
  55497. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55498. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  55499. + set dummy $deplib_matches; shift
  55500. + deplib_match=$1
  55501. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  55502. + newdeplibs="$newdeplibs $i"
  55503. + else
  55504. + droppeddeps=yes
  55505. + $ECHO
  55506. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  55507. + $ECHO "*** I have the capability to make that library automatically link in when"
  55508. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55509. + $ECHO "*** shared version of the library, which you do not appear to have"
  55510. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  55511. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  55512. + fi
  55513. + fi
  55514. + else
  55515. + droppeddeps=yes
  55516. + $ECHO
  55517. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  55518. + $ECHO "*** make it link in! You will probably need to install it or some"
  55519. + $ECHO "*** library that it depends on before this library will be fully"
  55520. + $ECHO "*** functional. Installing it before continuing would be even better."
  55521. + fi
  55522. + ;;
  55523. + *)
  55524. + newdeplibs="$newdeplibs $i"
  55525. + ;;
  55526. + esac
  55527. + done
  55528. + fi
  55529. + ;;
  55530. + file_magic*)
  55531. + set dummy $deplibs_check_method; shift
  55532. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55533. + for a_deplib in $deplibs; do
  55534. + case $a_deplib in
  55535. + -l*)
  55536. + func_stripname -l '' "$a_deplib"
  55537. + name=$func_stripname_result
  55538. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55539. + case " $predeps $postdeps " in
  55540. + *" $a_deplib "*)
  55541. + newdeplibs="$newdeplibs $a_deplib"
  55542. + a_deplib=""
  55543. + ;;
  55544. + esac
  55545. + fi
  55546. + if test -n "$a_deplib" ; then
  55547. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55548. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55549. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55550. + for potent_lib in $potential_libs; do
  55551. + # Follow soft links.
  55552. + if ls -lLd "$potent_lib" 2>/dev/null |
  55553. + $GREP " -> " >/dev/null; then
  55554. + continue
  55555. + fi
  55556. + # The statement above tries to avoid entering an
  55557. + # endless loop below, in case of cyclic links.
  55558. + # We might still enter an endless loop, since a link
  55559. + # loop can be closed while we follow links,
  55560. + # but so what?
  55561. + potlib="$potent_lib"
  55562. + while test -h "$potlib" 2>/dev/null; do
  55563. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  55564. + case $potliblink in
  55565. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  55566. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  55567. + esac
  55568. + done
  55569. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  55570. + $SED -e 10q |
  55571. + $EGREP "$file_magic_regex" > /dev/null; then
  55572. + newdeplibs="$newdeplibs $a_deplib"
  55573. + a_deplib=""
  55574. + break 2
  55575. + fi
  55576. + done
  55577. + done
  55578. + fi
  55579. + if test -n "$a_deplib" ; then
  55580. + droppeddeps=yes
  55581. + $ECHO
  55582. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  55583. + $ECHO "*** I have the capability to make that library automatically link in when"
  55584. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55585. + $ECHO "*** shared version of the library, which you do not appear to have"
  55586. + $ECHO "*** because I did check the linker path looking for a file starting"
  55587. + if test -z "$potlib" ; then
  55588. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  55589. + else
  55590. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  55591. + $ECHO "*** using a file magic. Last file checked: $potlib"
  55592. + fi
  55593. + fi
  55594. + ;;
  55595. + *)
  55596. + # Add a -L argument.
  55597. + newdeplibs="$newdeplibs $a_deplib"
  55598. + ;;
  55599. + esac
  55600. + done # Gone through all deplibs.
  55601. + ;;
  55602. + match_pattern*)
  55603. + set dummy $deplibs_check_method; shift
  55604. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  55605. + for a_deplib in $deplibs; do
  55606. + case $a_deplib in
  55607. + -l*)
  55608. + func_stripname -l '' "$a_deplib"
  55609. + name=$func_stripname_result
  55610. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55611. + case " $predeps $postdeps " in
  55612. + *" $a_deplib "*)
  55613. + newdeplibs="$newdeplibs $a_deplib"
  55614. + a_deplib=""
  55615. + ;;
  55616. + esac
  55617. + fi
  55618. + if test -n "$a_deplib" ; then
  55619. + libname=`eval "\\$ECHO \"$libname_spec\""`
  55620. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  55621. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  55622. + for potent_lib in $potential_libs; do
  55623. + potlib="$potent_lib" # see symlink-check above in file_magic test
  55624. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  55625. + $EGREP "$match_pattern_regex" > /dev/null; then
  55626. + newdeplibs="$newdeplibs $a_deplib"
  55627. + a_deplib=""
  55628. + break 2
  55629. + fi
  55630. + done
  55631. + done
  55632. + fi
  55633. + if test -n "$a_deplib" ; then
  55634. + droppeddeps=yes
  55635. + $ECHO
  55636. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  55637. + $ECHO "*** I have the capability to make that library automatically link in when"
  55638. + $ECHO "*** you link to this library. But I can only do this if you have a"
  55639. + $ECHO "*** shared version of the library, which you do not appear to have"
  55640. + $ECHO "*** because I did check the linker path looking for a file starting"
  55641. + if test -z "$potlib" ; then
  55642. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  55643. + else
  55644. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  55645. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  55646. + fi
  55647. + fi
  55648. + ;;
  55649. + *)
  55650. + # Add a -L argument.
  55651. + newdeplibs="$newdeplibs $a_deplib"
  55652. + ;;
  55653. + esac
  55654. + done # Gone through all deplibs.
  55655. + ;;
  55656. + none | unknown | *)
  55657. + newdeplibs=""
  55658. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  55659. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  55660. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  55661. + for i in $predeps $postdeps ; do
  55662. + # can't use Xsed below, because $i might contain '/'
  55663. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  55664. + done
  55665. + fi
  55666. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  55667. + $GREP . >/dev/null; then
  55668. + $ECHO
  55669. + if test "X$deplibs_check_method" = "Xnone"; then
  55670. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  55671. + else
  55672. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  55673. + fi
  55674. + $ECHO "*** All declared inter-library dependencies are being dropped."
  55675. + droppeddeps=yes
  55676. + fi
  55677. + ;;
  55678. + esac
  55679. + versuffix=$versuffix_save
  55680. + major=$major_save
  55681. + release=$release_save
  55682. + libname=$libname_save
  55683. + name=$name_save
  55684. - # If there was a directory component, then change thisdir.
  55685. - if test \"x\$destdir\" != \"x\$file\"; then
  55686. - case \"\$destdir\" in
  55687. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  55688. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  55689. + case $host in
  55690. + *-*-rhapsody* | *-*-darwin1.[012])
  55691. + # On Rhapsody replace the C library with the System framework
  55692. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  55693. + ;;
  55694. + esac
  55695. +
  55696. + if test "$droppeddeps" = yes; then
  55697. + if test "$module" = yes; then
  55698. + $ECHO
  55699. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  55700. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  55701. + $ECHO "*** a static module, that should work as long as the dlopening"
  55702. + $ECHO "*** application is linked with the -dlopen flag."
  55703. + if test -z "$global_symbol_pipe"; then
  55704. + $ECHO
  55705. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  55706. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  55707. + $ECHO "*** not find such a program. So, this module is probably useless."
  55708. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  55709. + fi
  55710. + if test "$build_old_libs" = no; then
  55711. + oldlibs="$output_objdir/$libname.$libext"
  55712. + build_libtool_libs=module
  55713. + build_old_libs=yes
  55714. + else
  55715. + build_libtool_libs=no
  55716. + fi
  55717. + else
  55718. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  55719. + $ECHO "*** automatically added whenever a program is linked with this library"
  55720. + $ECHO "*** or is declared to -dlopen it."
  55721. +
  55722. + if test "$allow_undefined" = no; then
  55723. + $ECHO
  55724. + $ECHO "*** Since this library must not contain undefined symbols,"
  55725. + $ECHO "*** because either the platform does not support them or"
  55726. + $ECHO "*** it was explicitly requested with -no-undefined,"
  55727. + $ECHO "*** libtool will only create a static version of it."
  55728. + if test "$build_old_libs" = no; then
  55729. + oldlibs="$output_objdir/$libname.$libext"
  55730. + build_libtool_libs=module
  55731. + build_old_libs=yes
  55732. + else
  55733. + build_libtool_libs=no
  55734. + fi
  55735. + fi
  55736. + fi
  55737. + fi
  55738. + # Done checking deplibs!
  55739. + deplibs=$newdeplibs
  55740. + fi
  55741. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  55742. + case $host in
  55743. + *-*-darwin*)
  55744. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55745. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55746. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  55747. + ;;
  55748. esac
  55749. - fi
  55750. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  55751. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  55752. - done
  55753. + # move library search paths that coincide with paths to not yet
  55754. + # installed libraries to the beginning of the library search list
  55755. + new_libs=
  55756. + for path in $notinst_path; do
  55757. + case " $new_libs " in
  55758. + *" -L$path/$objdir "*) ;;
  55759. + *)
  55760. + case " $deplibs " in
  55761. + *" -L$path/$objdir "*)
  55762. + new_libs="$new_libs -L$path/$objdir" ;;
  55763. + esac
  55764. + ;;
  55765. + esac
  55766. + done
  55767. + for deplib in $deplibs; do
  55768. + case $deplib in
  55769. + -L*)
  55770. + case " $new_libs " in
  55771. + *" $deplib "*) ;;
  55772. + *) new_libs="$new_libs $deplib" ;;
  55773. + esac
  55774. + ;;
  55775. + *) new_libs="$new_libs $deplib" ;;
  55776. + esac
  55777. + done
  55778. + deplibs="$new_libs"
  55779. - # Try to get the absolute directory name.
  55780. - absdir=\`cd \"\$thisdir\" && pwd\`
  55781. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  55782. -"
  55783. + # All the library-specific variables (install_libdir is set above).
  55784. + library_names=
  55785. + old_library=
  55786. + dlname=
  55787. +
  55788. + # Test again, we may have decided not to build it any more
  55789. + if test "$build_libtool_libs" = yes; then
  55790. + if test "$hardcode_into_libs" = yes; then
  55791. + # Hardcode the library paths
  55792. + hardcode_libdirs=
  55793. + dep_rpath=
  55794. + rpath="$finalize_rpath"
  55795. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  55796. + for libdir in $rpath; do
  55797. + if test -n "$hardcode_libdir_flag_spec"; then
  55798. + if test -n "$hardcode_libdir_separator"; then
  55799. + if test -z "$hardcode_libdirs"; then
  55800. + hardcode_libdirs="$libdir"
  55801. + else
  55802. + # Just accumulate the unique libdirs.
  55803. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55804. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55805. + ;;
  55806. + *)
  55807. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55808. + ;;
  55809. + esac
  55810. + fi
  55811. + else
  55812. + eval flag=\"$hardcode_libdir_flag_spec\"
  55813. + dep_rpath="$dep_rpath $flag"
  55814. + fi
  55815. + elif test -n "$runpath_var"; then
  55816. + case "$perm_rpath " in
  55817. + *" $libdir "*) ;;
  55818. + *) perm_rpath="$perm_rpath $libdir" ;;
  55819. + esac
  55820. + fi
  55821. + done
  55822. + # Substitute the hardcoded libdirs into the rpath.
  55823. + if test -n "$hardcode_libdir_separator" &&
  55824. + test -n "$hardcode_libdirs"; then
  55825. + libdir="$hardcode_libdirs"
  55826. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  55827. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  55828. + else
  55829. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  55830. + fi
  55831. + fi
  55832. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  55833. + # We should set the runpath_var.
  55834. + rpath=
  55835. + for dir in $perm_rpath; do
  55836. + rpath="$rpath$dir:"
  55837. + done
  55838. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  55839. + fi
  55840. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  55841. + fi
  55842. - if test "$fast_install" = yes; then
  55843. - $echo >> $output "\
  55844. - program=lt-'$outputname'$exeext
  55845. - progdir=\"\$thisdir/$objdir\"
  55846. + shlibpath="$finalize_shlibpath"
  55847. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  55848. + if test -n "$shlibpath"; then
  55849. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  55850. + fi
  55851. - if test ! -f \"\$progdir/\$program\" || \\
  55852. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  55853. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  55854. + # Get the real and link names of the library.
  55855. + eval shared_ext=\"$shrext_cmds\"
  55856. + eval library_names=\"$library_names_spec\"
  55857. + set dummy $library_names
  55858. + shift
  55859. + realname="$1"
  55860. + shift
  55861. - file=\"\$\$-\$program\"
  55862. + if test -n "$soname_spec"; then
  55863. + eval soname=\"$soname_spec\"
  55864. + else
  55865. + soname="$realname"
  55866. + fi
  55867. + if test -z "$dlname"; then
  55868. + dlname=$soname
  55869. + fi
  55870. - if test ! -d \"\$progdir\"; then
  55871. - $mkdir \"\$progdir\"
  55872. - else
  55873. - $rm \"\$progdir/\$file\"
  55874. - fi"
  55875. + lib="$output_objdir/$realname"
  55876. + linknames=
  55877. + for link
  55878. + do
  55879. + linknames="$linknames $link"
  55880. + done
  55881. - $echo >> $output "\
  55882. + # Use standard objects if they are pic
  55883. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55884. + test "X$libobjs" = "X " && libobjs=
  55885. - # relink executable if necessary
  55886. - if test -n \"\$relink_command\"; then
  55887. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  55888. - else
  55889. - $echo \"\$relink_command_output\" >&2
  55890. - $rm \"\$progdir/\$file\"
  55891. - exit $EXIT_FAILURE
  55892. - fi
  55893. - fi
  55894. + delfiles=
  55895. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  55896. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  55897. + export_symbols="$output_objdir/$libname.uexp"
  55898. + delfiles="$delfiles $export_symbols"
  55899. + fi
  55900. +
  55901. + orig_export_symbols=
  55902. + case $host_os in
  55903. + cygwin* | mingw* | cegcc*)
  55904. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  55905. + # exporting using user supplied symfile
  55906. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  55907. + # and it's NOT already a .def file. Must figure out
  55908. + # which of the given symbols are data symbols and tag
  55909. + # them as such. So, trigger use of export_symbols_cmds.
  55910. + # export_symbols gets reassigned inside the "prepare
  55911. + # the list of exported symbols" if statement, so the
  55912. + # include_expsyms logic still works.
  55913. + orig_export_symbols="$export_symbols"
  55914. + export_symbols=
  55915. + always_export_symbols=yes
  55916. + fi
  55917. + fi
  55918. + ;;
  55919. + esac
  55920. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  55921. - { $rm \"\$progdir/\$program\";
  55922. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  55923. - $rm \"\$progdir/\$file\"
  55924. - fi"
  55925. - else
  55926. - $echo >> $output "\
  55927. - program='$outputname'
  55928. - progdir=\"\$thisdir/$objdir\"
  55929. -"
  55930. + # Prepare the list of exported symbols
  55931. + if test -z "$export_symbols"; then
  55932. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  55933. + func_verbose "generating symbol list for \`$libname.la'"
  55934. + export_symbols="$output_objdir/$libname.exp"
  55935. + $opt_dry_run || $RM $export_symbols
  55936. + cmds=$export_symbols_cmds
  55937. + save_ifs="$IFS"; IFS='~'
  55938. + for cmd in $cmds; do
  55939. + IFS="$save_ifs"
  55940. + eval cmd=\"$cmd\"
  55941. + func_len " $cmd"
  55942. + len=$func_len_result
  55943. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  55944. + func_show_eval "$cmd" 'exit $?'
  55945. + skipped_export=false
  55946. + else
  55947. + # The command line is too long to execute in one step.
  55948. + func_verbose "using reloadable object file for export list..."
  55949. + skipped_export=:
  55950. + # Break out early, otherwise skipped_export may be
  55951. + # set to false by a later but shorter cmd.
  55952. + break
  55953. + fi
  55954. + done
  55955. + IFS="$save_ifs"
  55956. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  55957. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  55958. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  55959. + fi
  55960. + fi
  55961. fi
  55962. - $echo >> $output "\
  55963. -
  55964. - if test -f \"\$progdir/\$program\"; then"
  55965. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  55966. + tmp_export_symbols="$export_symbols"
  55967. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  55968. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  55969. + fi
  55970. +
  55971. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  55972. + # The given exports_symbols file has to be filtered, so filter it.
  55973. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  55974. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  55975. + # 's' commands which not all seds can handle. GNU sed should be fine
  55976. + # though. Also, the filter scales superlinearly with the number of
  55977. + # global variables. join(1) would be nice here, but unfortunately
  55978. + # isn't a blessed tool.
  55979. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  55980. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  55981. + export_symbols=$output_objdir/$libname.def
  55982. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  55983. + fi
  55984. - # Export our shlibpath_var if we have one.
  55985. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  55986. - $echo >> $output "\
  55987. - # Add our own library path to $shlibpath_var
  55988. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  55989. + tmp_deplibs=
  55990. + for test_deplib in $deplibs; do
  55991. + case " $convenience " in
  55992. + *" $test_deplib "*) ;;
  55993. + *)
  55994. + tmp_deplibs="$tmp_deplibs $test_deplib"
  55995. + ;;
  55996. + esac
  55997. + done
  55998. + deplibs="$tmp_deplibs"
  55999. - # Some systems cannot cope with colon-terminated $shlibpath_var
  56000. - # The second colon is a workaround for a bug in BeOS R4 sed
  56001. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  56002. + if test -n "$convenience"; then
  56003. + if test -n "$whole_archive_flag_spec" &&
  56004. + test "$compiler_needs_object" = yes &&
  56005. + test -z "$libobjs"; then
  56006. + # extract the archives, so we have objects to list.
  56007. + # TODO: could optimize this to just extract one archive.
  56008. + whole_archive_flag_spec=
  56009. + fi
  56010. + if test -n "$whole_archive_flag_spec"; then
  56011. + save_libobjs=$libobjs
  56012. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56013. + test "X$libobjs" = "X " && libobjs=
  56014. + else
  56015. + gentop="$output_objdir/${outputname}x"
  56016. + generated="$generated $gentop"
  56017. - export $shlibpath_var
  56018. -"
  56019. + func_extract_archives $gentop $convenience
  56020. + libobjs="$libobjs $func_extract_archives_result"
  56021. + test "X$libobjs" = "X " && libobjs=
  56022. + fi
  56023. fi
  56024. - # fixup the dll searchpath if we need to.
  56025. - if test -n "$dllsearchpath"; then
  56026. - $echo >> $output "\
  56027. - # Add the dll search path components to the executable PATH
  56028. - PATH=$dllsearchpath:\$PATH
  56029. -"
  56030. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  56031. + eval flag=\"$thread_safe_flag_spec\"
  56032. + linker_flags="$linker_flags $flag"
  56033. fi
  56034. - $echo >> $output "\
  56035. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56036. - # Run the actual program with our arguments.
  56037. -"
  56038. - case $host in
  56039. - # Backslashes separate directories on plain windows
  56040. - *-*-mingw | *-*-os2*)
  56041. - $echo >> $output "\
  56042. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  56043. -"
  56044. - ;;
  56045. -
  56046. - *)
  56047. - $echo >> $output "\
  56048. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  56049. -"
  56050. - ;;
  56051. - esac
  56052. - $echo >> $output "\
  56053. - \$echo \"\$0: cannot exec \$program \$*\"
  56054. - exit $EXIT_FAILURE
  56055. - fi
  56056. - else
  56057. - # The program doesn't exist.
  56058. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  56059. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  56060. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  56061. - exit $EXIT_FAILURE
  56062. - fi
  56063. -fi\
  56064. -"
  56065. - chmod +x $output
  56066. - fi
  56067. - exit $EXIT_SUCCESS
  56068. - ;;
  56069. - esac
  56070. -
  56071. - # See if we need to build an old-fashioned archive.
  56072. - for oldlib in $oldlibs; do
  56073. + # Make a backup of the uninstalled library when relinking
  56074. + if test "$mode" = relink; then
  56075. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  56076. + fi
  56077. - if test "$build_libtool_libs" = convenience; then
  56078. - oldobjs="$libobjs_save"
  56079. - addlibs="$convenience"
  56080. - build_libtool_libs=no
  56081. - else
  56082. - if test "$build_libtool_libs" = module; then
  56083. - oldobjs="$libobjs_save"
  56084. - build_libtool_libs=no
  56085. + # Do each of the archive commands.
  56086. + if test "$module" = yes && test -n "$module_cmds" ; then
  56087. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56088. + eval test_cmds=\"$module_expsym_cmds\"
  56089. + cmds=$module_expsym_cmds
  56090. + else
  56091. + eval test_cmds=\"$module_cmds\"
  56092. + cmds=$module_cmds
  56093. + fi
  56094. else
  56095. - oldobjs="$old_deplibs $non_pic_objects"
  56096. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56097. + eval test_cmds=\"$archive_expsym_cmds\"
  56098. + cmds=$archive_expsym_cmds
  56099. + else
  56100. + eval test_cmds=\"$archive_cmds\"
  56101. + cmds=$archive_cmds
  56102. + fi
  56103. fi
  56104. - addlibs="$old_convenience"
  56105. - fi
  56106. - if test -n "$addlibs"; then
  56107. - gentop="$output_objdir/${outputname}x"
  56108. - generated="$generated $gentop"
  56109. + if test "X$skipped_export" != "X:" &&
  56110. + func_len " $test_cmds" &&
  56111. + len=$func_len_result &&
  56112. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56113. + :
  56114. + else
  56115. + # The command line is too long to link in one step, link piecewise
  56116. + # or, if using GNU ld and skipped_export is not :, use a linker
  56117. + # script.
  56118. - func_extract_archives $gentop $addlibs
  56119. - oldobjs="$oldobjs $func_extract_archives_result"
  56120. - fi
  56121. + # Save the value of $output and $libobjs because we want to
  56122. + # use them later. If we have whole_archive_flag_spec, we
  56123. + # want to use save_libobjs as it was before
  56124. + # whole_archive_flag_spec was expanded, because we can't
  56125. + # assume the linker understands whole_archive_flag_spec.
  56126. + # This may have to be revisited, in case too many
  56127. + # convenience libraries get linked in and end up exceeding
  56128. + # the spec.
  56129. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  56130. + save_libobjs=$libobjs
  56131. + fi
  56132. + save_output=$output
  56133. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  56134. - # Do each command in the archive commands.
  56135. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  56136. - cmds=$old_archive_from_new_cmds
  56137. - else
  56138. - # POSIX demands no paths to be encoded in archives. We have
  56139. - # to avoid creating archives with duplicate basenames if we
  56140. - # might have to extract them afterwards, e.g., when creating a
  56141. - # static archive out of a convenience library, or when linking
  56142. - # the entirety of a libtool archive into another (currently
  56143. - # not supported by libtool).
  56144. - if (for obj in $oldobjs
  56145. + # Clear the reloadable object creation command queue and
  56146. + # initialize k to one.
  56147. + test_cmds=
  56148. + concat_cmds=
  56149. + objlist=
  56150. + last_robj=
  56151. + k=1
  56152. +
  56153. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  56154. + output=${output_objdir}/${output_la}.lnkscript
  56155. + func_verbose "creating GNU ld script: $output"
  56156. + $ECHO 'INPUT (' > $output
  56157. + for obj in $save_libobjs
  56158. do
  56159. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  56160. - done | sort | sort -uc >/dev/null 2>&1); then
  56161. - :
  56162. - else
  56163. - $echo "copying selected object files to avoid basename conflicts..."
  56164. + $ECHO "$obj" >> $output
  56165. + done
  56166. + $ECHO ')' >> $output
  56167. + delfiles="$delfiles $output"
  56168. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  56169. + output=${output_objdir}/${output_la}.lnk
  56170. + func_verbose "creating linker input file list: $output"
  56171. + : > $output
  56172. + set x $save_libobjs
  56173. + shift
  56174. + firstobj=
  56175. + if test "$compiler_needs_object" = yes; then
  56176. + firstobj="$1 "
  56177. + shift
  56178. + fi
  56179. + for obj
  56180. + do
  56181. + $ECHO "$obj" >> $output
  56182. + done
  56183. + delfiles="$delfiles $output"
  56184. + output=$firstobj\"$file_list_spec$output\"
  56185. + else
  56186. + if test -n "$save_libobjs"; then
  56187. + func_verbose "creating reloadable object files..."
  56188. + output=$output_objdir/$output_la-${k}.$objext
  56189. + eval test_cmds=\"$reload_cmds\"
  56190. + func_len " $test_cmds"
  56191. + len0=$func_len_result
  56192. + len=$len0
  56193. +
  56194. + # Loop over the list of objects to be linked.
  56195. + for obj in $save_libobjs
  56196. + do
  56197. + func_len " $obj"
  56198. + func_arith $len + $func_len_result
  56199. + len=$func_arith_result
  56200. + if test "X$objlist" = X ||
  56201. + test "$len" -lt "$max_cmd_len"; then
  56202. + func_append objlist " $obj"
  56203. + else
  56204. + # The command $test_cmds is almost too long, add a
  56205. + # command to the queue.
  56206. + if test "$k" -eq 1 ; then
  56207. + # The first file doesn't have a previous command to add.
  56208. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  56209. + else
  56210. + # All subsequent reloadable object files will link in
  56211. + # the last one created.
  56212. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  56213. + fi
  56214. + last_robj=$output_objdir/$output_la-${k}.$objext
  56215. + func_arith $k + 1
  56216. + k=$func_arith_result
  56217. + output=$output_objdir/$output_la-${k}.$objext
  56218. + objlist=$obj
  56219. + func_len " $last_robj"
  56220. + func_arith $len0 + $func_len_result
  56221. + len=$func_arith_result
  56222. + fi
  56223. + done
  56224. + # Handle the remaining objects by creating one last
  56225. + # reloadable object file. All subsequent reloadable object
  56226. + # files will link in the last one created.
  56227. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56228. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  56229. + if test -n "$last_robj"; then
  56230. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  56231. + fi
  56232. + delfiles="$delfiles $output"
  56233. - if test -z "$gentop"; then
  56234. - gentop="$output_objdir/${outputname}x"
  56235. - generated="$generated $gentop"
  56236. + else
  56237. + output=
  56238. + fi
  56239. +
  56240. + if ${skipped_export-false}; then
  56241. + func_verbose "generating symbol list for \`$libname.la'"
  56242. + export_symbols="$output_objdir/$libname.exp"
  56243. + $opt_dry_run || $RM $export_symbols
  56244. + libobjs=$output
  56245. + # Append the command to create the export file.
  56246. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56247. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  56248. + if test -n "$last_robj"; then
  56249. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  56250. + fi
  56251. + fi
  56252. +
  56253. + test -n "$save_libobjs" &&
  56254. + func_verbose "creating a temporary reloadable object file: $output"
  56255. +
  56256. + # Loop through the commands generated above and execute them.
  56257. + save_ifs="$IFS"; IFS='~'
  56258. + for cmd in $concat_cmds; do
  56259. + IFS="$save_ifs"
  56260. + $opt_silent || {
  56261. + func_quote_for_expand "$cmd"
  56262. + eval "func_echo $func_quote_for_expand_result"
  56263. + }
  56264. + $opt_dry_run || eval "$cmd" || {
  56265. + lt_exit=$?
  56266. +
  56267. + # Restore the uninstalled library and exit
  56268. + if test "$mode" = relink; then
  56269. + ( cd "$output_objdir" && \
  56270. + $RM "${realname}T" && \
  56271. + $MV "${realname}U" "$realname" )
  56272. + fi
  56273. +
  56274. + exit $lt_exit
  56275. + }
  56276. + done
  56277. + IFS="$save_ifs"
  56278. - $show "${rm}r $gentop"
  56279. - $run ${rm}r "$gentop"
  56280. - $show "$mkdir $gentop"
  56281. - $run $mkdir "$gentop"
  56282. - exit_status=$?
  56283. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  56284. - exit $exit_status
  56285. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  56286. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  56287. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  56288. fi
  56289. fi
  56290. - save_oldobjs=$oldobjs
  56291. - oldobjs=
  56292. - counter=1
  56293. - for obj in $save_oldobjs
  56294. - do
  56295. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  56296. - case " $oldobjs " in
  56297. - " ") oldobjs=$obj ;;
  56298. - *[\ /]"$objbase "*)
  56299. - while :; do
  56300. - # Make sure we don't pick an alternate name that also
  56301. - # overlaps.
  56302. - newobj=lt$counter-$objbase
  56303. - counter=`expr $counter + 1`
  56304. - case " $oldobjs " in
  56305. - *[\ /]"$newobj "*) ;;
  56306. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  56307. - esac
  56308. - done
  56309. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  56310. - $run ln "$obj" "$gentop/$newobj" ||
  56311. - $run cp "$obj" "$gentop/$newobj"
  56312. - oldobjs="$oldobjs $gentop/$newobj"
  56313. - ;;
  56314. - *) oldobjs="$oldobjs $obj" ;;
  56315. - esac
  56316. - done
  56317. - fi
  56318. + if ${skipped_export-false}; then
  56319. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  56320. + tmp_export_symbols="$export_symbols"
  56321. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  56322. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  56323. + fi
  56324. +
  56325. + if test -n "$orig_export_symbols"; then
  56326. + # The given exports_symbols file has to be filtered, so filter it.
  56327. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  56328. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  56329. + # 's' commands which not all seds can handle. GNU sed should be fine
  56330. + # though. Also, the filter scales superlinearly with the number of
  56331. + # global variables. join(1) would be nice here, but unfortunately
  56332. + # isn't a blessed tool.
  56333. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  56334. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  56335. + export_symbols=$output_objdir/$libname.def
  56336. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  56337. + fi
  56338. + fi
  56339. - eval cmds=\"$old_archive_cmds\"
  56340. + libobjs=$output
  56341. + # Restore the value of output.
  56342. + output=$save_output
  56343. - if len=`expr "X$cmds" : ".*"` &&
  56344. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  56345. - cmds=$old_archive_cmds
  56346. - else
  56347. - # the command line is too long to link in one step, link in parts
  56348. - $echo "using piecewise archive linking..."
  56349. - save_RANLIB=$RANLIB
  56350. - RANLIB=:
  56351. - objlist=
  56352. - concat_cmds=
  56353. - save_oldobjs=$oldobjs
  56354. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  56355. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  56356. + test "X$libobjs" = "X " && libobjs=
  56357. + fi
  56358. + # Expand the library linking commands again to reset the
  56359. + # value of $libobjs for piecewise linking.
  56360. - # Is there a better way of finding the last object in the list?
  56361. - for obj in $save_oldobjs
  56362. - do
  56363. - last_oldobj=$obj
  56364. - done
  56365. - for obj in $save_oldobjs
  56366. - do
  56367. - oldobjs="$objlist $obj"
  56368. - objlist="$objlist $obj"
  56369. - eval test_cmds=\"$old_archive_cmds\"
  56370. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  56371. - test "$len" -le "$max_cmd_len"; then
  56372. - :
  56373. + # Do each of the archive commands.
  56374. + if test "$module" = yes && test -n "$module_cmds" ; then
  56375. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  56376. + cmds=$module_expsym_cmds
  56377. else
  56378. - # the above command should be used before it gets too long
  56379. - oldobjs=$objlist
  56380. - if test "$obj" = "$last_oldobj" ; then
  56381. - RANLIB=$save_RANLIB
  56382. - fi
  56383. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  56384. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  56385. - objlist=
  56386. + cmds=$module_cmds
  56387. fi
  56388. - done
  56389. - RANLIB=$save_RANLIB
  56390. - oldobjs=$objlist
  56391. - if test "X$oldobjs" = "X" ; then
  56392. - eval cmds=\"\$concat_cmds\"
  56393. else
  56394. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  56395. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  56396. + cmds=$archive_expsym_cmds
  56397. + else
  56398. + cmds=$archive_cmds
  56399. + fi
  56400. fi
  56401. fi
  56402. - fi
  56403. - save_ifs="$IFS"; IFS='~'
  56404. - for cmd in $cmds; do
  56405. - eval cmd=\"$cmd\"
  56406. - IFS="$save_ifs"
  56407. - $show "$cmd"
  56408. - $run eval "$cmd" || exit $?
  56409. - done
  56410. - IFS="$save_ifs"
  56411. - done
  56412. - if test -n "$generated"; then
  56413. - $show "${rm}r$generated"
  56414. - $run ${rm}r$generated
  56415. - fi
  56416. + if test -n "$delfiles"; then
  56417. + # Append the command to remove temporary files to $cmds.
  56418. + eval cmds=\"\$cmds~\$RM $delfiles\"
  56419. + fi
  56420. - # Now create the libtool archive.
  56421. - case $output in
  56422. - *.la)
  56423. - old_library=
  56424. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  56425. - $show "creating $output"
  56426. + # Add any objects from preloaded convenience libraries
  56427. + if test -n "$dlprefiles"; then
  56428. + gentop="$output_objdir/${outputname}x"
  56429. + generated="$generated $gentop"
  56430. - # Preserve any variables that may affect compiler behavior
  56431. - for var in $variables_saved_for_relink; do
  56432. - if eval test -z \"\${$var+set}\"; then
  56433. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  56434. - elif eval var_value=\$$var; test -z "$var_value"; then
  56435. - relink_command="$var=; export $var; $relink_command"
  56436. - else
  56437. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  56438. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  56439. + func_extract_archives $gentop $dlprefiles
  56440. + libobjs="$libobjs $func_extract_archives_result"
  56441. + test "X$libobjs" = "X " && libobjs=
  56442. fi
  56443. - done
  56444. - # Quote the link command for shipping.
  56445. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  56446. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  56447. - if test "$hardcode_automatic" = yes ; then
  56448. - relink_command=
  56449. - fi
  56450. + save_ifs="$IFS"; IFS='~'
  56451. + for cmd in $cmds; do
  56452. + IFS="$save_ifs"
  56453. + eval cmd=\"$cmd\"
  56454. + $opt_silent || {
  56455. + func_quote_for_expand "$cmd"
  56456. + eval "func_echo $func_quote_for_expand_result"
  56457. + }
  56458. + $opt_dry_run || eval "$cmd" || {
  56459. + lt_exit=$?
  56460. - # Only create the output if not a dry run.
  56461. - if test -z "$run"; then
  56462. - for installed in no yes; do
  56463. - if test "$installed" = yes; then
  56464. - if test -z "$install_libdir"; then
  56465. - break
  56466. + # Restore the uninstalled library and exit
  56467. + if test "$mode" = relink; then
  56468. + ( cd "$output_objdir" && \
  56469. + $RM "${realname}T" && \
  56470. + $MV "${realname}U" "$realname" )
  56471. fi
  56472. - output="$output_objdir/$outputname"i
  56473. - # Replace all uninstalled libtool libraries with the installed ones
  56474. - newdependency_libs=
  56475. - for deplib in $dependency_libs; do
  56476. - case $deplib in
  56477. - *.la)
  56478. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  56479. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  56480. - if test -z "$libdir"; then
  56481. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  56482. - exit $EXIT_FAILURE
  56483. - fi
  56484. - newdependency_libs="$newdependency_libs $libdir/$name"
  56485. - ;;
  56486. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  56487. - esac
  56488. - done
  56489. - dependency_libs="$newdependency_libs"
  56490. - newdlfiles=
  56491. - for lib in $dlfiles; do
  56492. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  56493. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56494. - if test -z "$libdir"; then
  56495. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56496. - exit $EXIT_FAILURE
  56497. - fi
  56498. - newdlfiles="$newdlfiles $libdir/$name"
  56499. - done
  56500. - dlfiles="$newdlfiles"
  56501. - newdlprefiles=
  56502. - for lib in $dlprefiles; do
  56503. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  56504. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  56505. - if test -z "$libdir"; then
  56506. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  56507. - exit $EXIT_FAILURE
  56508. - fi
  56509. - newdlprefiles="$newdlprefiles $libdir/$name"
  56510. - done
  56511. - dlprefiles="$newdlprefiles"
  56512. - else
  56513. - newdlfiles=
  56514. - for lib in $dlfiles; do
  56515. - case $lib in
  56516. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56517. - *) abs=`pwd`"/$lib" ;;
  56518. - esac
  56519. - newdlfiles="$newdlfiles $abs"
  56520. - done
  56521. - dlfiles="$newdlfiles"
  56522. - newdlprefiles=
  56523. - for lib in $dlprefiles; do
  56524. - case $lib in
  56525. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  56526. - *) abs=`pwd`"/$lib" ;;
  56527. - esac
  56528. - newdlprefiles="$newdlprefiles $abs"
  56529. - done
  56530. - dlprefiles="$newdlprefiles"
  56531. - fi
  56532. - $rm $output
  56533. - # place dlname in correct position for cygwin
  56534. - tdlname=$dlname
  56535. - case $host,$output,$installed,$module,$dlname in
  56536. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  56537. - esac
  56538. - $echo > $output "\
  56539. -# $outputname - a libtool library file
  56540. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56541. -#
  56542. -# Please DO NOT delete this file!
  56543. -# It is necessary for linking the library.
  56544. -# The name that we can dlopen(3).
  56545. -dlname='$tdlname'
  56546. + exit $lt_exit
  56547. + }
  56548. + done
  56549. + IFS="$save_ifs"
  56550. -# Names of this library.
  56551. -library_names='$library_names'
  56552. + # Restore the uninstalled library and exit
  56553. + if test "$mode" = relink; then
  56554. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  56555. -# The name of the static archive.
  56556. -old_library='$old_library'
  56557. + if test -n "$convenience"; then
  56558. + if test -z "$whole_archive_flag_spec"; then
  56559. + func_show_eval '${RM}r "$gentop"'
  56560. + fi
  56561. + fi
  56562. -# Libraries that this one depends upon.
  56563. -dependency_libs='$dependency_libs'
  56564. + exit $EXIT_SUCCESS
  56565. + fi
  56566. -# Version information for $libname.
  56567. -current=$current
  56568. -age=$age
  56569. -revision=$revision
  56570. + # Create links to the real library.
  56571. + for linkname in $linknames; do
  56572. + if test "$realname" != "$linkname"; then
  56573. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  56574. + fi
  56575. + done
  56576. -# Is this an already installed library?
  56577. -installed=$installed
  56578. + # If -module or -export-dynamic was specified, set the dlname.
  56579. + if test "$module" = yes || test "$export_dynamic" = yes; then
  56580. + # On all known operating systems, these are identical.
  56581. + dlname="$soname"
  56582. + fi
  56583. + fi
  56584. + ;;
  56585. -# Should we warn about portability when linking against -modules?
  56586. -shouldnotlink=$module
  56587. + obj)
  56588. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  56589. + func_warning "\`-dlopen' is ignored for objects"
  56590. + fi
  56591. -# Files to dlopen/dlpreopen
  56592. -dlopen='$dlfiles'
  56593. -dlpreopen='$dlprefiles'
  56594. + case " $deplibs" in
  56595. + *\ -l* | *\ -L*)
  56596. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  56597. + esac
  56598. -# Directory that this library needs to be installed in:
  56599. -libdir='$install_libdir'"
  56600. - if test "$installed" = no && test "$need_relink" = yes; then
  56601. - $echo >> $output "\
  56602. -relink_command=\"$relink_command\""
  56603. - fi
  56604. - done
  56605. - fi
  56606. + test -n "$rpath" && \
  56607. + func_warning "\`-rpath' is ignored for objects"
  56608. - # Do a symbolic link so that the libtool archive can be found in
  56609. - # LD_LIBRARY_PATH before the program is installed.
  56610. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  56611. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  56612. - ;;
  56613. - esac
  56614. - exit $EXIT_SUCCESS
  56615. - ;;
  56616. + test -n "$xrpath" && \
  56617. + func_warning "\`-R' is ignored for objects"
  56618. - # libtool install mode
  56619. - install)
  56620. - modename="$modename: install"
  56621. + test -n "$vinfo" && \
  56622. + func_warning "\`-version-info' is ignored for objects"
  56623. - # There may be an optional sh(1) argument at the beginning of
  56624. - # install_prog (especially on Windows NT).
  56625. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  56626. - # Allow the use of GNU shtool's install command.
  56627. - $echo "X$nonopt" | grep shtool > /dev/null; then
  56628. - # Aesthetically quote it.
  56629. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  56630. - case $arg in
  56631. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56632. - arg="\"$arg\""
  56633. + test -n "$release" && \
  56634. + func_warning "\`-release' is ignored for objects"
  56635. +
  56636. + case $output in
  56637. + *.lo)
  56638. + test -n "$objs$old_deplibs" && \
  56639. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  56640. +
  56641. + libobj=$output
  56642. + func_lo2o "$libobj"
  56643. + obj=$func_lo2o_result
  56644. + ;;
  56645. + *)
  56646. + libobj=
  56647. + obj="$output"
  56648. ;;
  56649. esac
  56650. - install_prog="$arg "
  56651. - arg="$1"
  56652. - shift
  56653. - else
  56654. - install_prog=
  56655. - arg=$nonopt
  56656. - fi
  56657. - # The real first argument should be the name of the installation program.
  56658. - # Aesthetically quote it.
  56659. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56660. - case $arg in
  56661. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56662. - arg="\"$arg\""
  56663. - ;;
  56664. - esac
  56665. - install_prog="$install_prog$arg"
  56666. + # Delete the old objects.
  56667. + $opt_dry_run || $RM $obj $libobj
  56668. - # We need to accept at least all the BSD install flags.
  56669. - dest=
  56670. - files=
  56671. - opts=
  56672. - prev=
  56673. - install_type=
  56674. - isdir=no
  56675. - stripme=
  56676. - for arg
  56677. - do
  56678. - if test -n "$dest"; then
  56679. - files="$files $dest"
  56680. - dest=$arg
  56681. - continue
  56682. - fi
  56683. + # Objects from convenience libraries. This assumes
  56684. + # single-version convenience libraries. Whenever we create
  56685. + # different ones for PIC/non-PIC, this we'll have to duplicate
  56686. + # the extraction.
  56687. + reload_conv_objs=
  56688. + gentop=
  56689. + # reload_cmds runs $LD directly, so let us get rid of
  56690. + # -Wl from whole_archive_flag_spec and hope we can get by with
  56691. + # turning comma into space..
  56692. + wl=
  56693. - case $arg in
  56694. - -d) isdir=yes ;;
  56695. - -f)
  56696. - case " $install_prog " in
  56697. - *[\\\ /]cp\ *) ;;
  56698. - *) prev=$arg ;;
  56699. - esac
  56700. - ;;
  56701. - -g | -m | -o) prev=$arg ;;
  56702. - -s)
  56703. - stripme=" -s"
  56704. - continue
  56705. - ;;
  56706. - -*)
  56707. - ;;
  56708. - *)
  56709. - # If the previous option needed an argument, then skip it.
  56710. - if test -n "$prev"; then
  56711. - prev=
  56712. + if test -n "$convenience"; then
  56713. + if test -n "$whole_archive_flag_spec"; then
  56714. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  56715. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  56716. else
  56717. - dest=$arg
  56718. - continue
  56719. + gentop="$output_objdir/${obj}x"
  56720. + generated="$generated $gentop"
  56721. +
  56722. + func_extract_archives $gentop $convenience
  56723. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  56724. fi
  56725. - ;;
  56726. - esac
  56727. + fi
  56728. - # Aesthetically quote the argument.
  56729. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  56730. - case $arg in
  56731. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  56732. - arg="\"$arg\""
  56733. - ;;
  56734. - esac
  56735. - install_prog="$install_prog $arg"
  56736. - done
  56737. + # Create the old-style object.
  56738. + 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
  56739. - if test -z "$install_prog"; then
  56740. - $echo "$modename: you must specify an install program" 1>&2
  56741. - $echo "$help" 1>&2
  56742. - exit $EXIT_FAILURE
  56743. - fi
  56744. + output="$obj"
  56745. + func_execute_cmds "$reload_cmds" 'exit $?'
  56746. - if test -n "$prev"; then
  56747. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  56748. - $echo "$help" 1>&2
  56749. - exit $EXIT_FAILURE
  56750. - fi
  56751. + # Exit if we aren't doing a library object file.
  56752. + if test -z "$libobj"; then
  56753. + if test -n "$gentop"; then
  56754. + func_show_eval '${RM}r "$gentop"'
  56755. + fi
  56756. - if test -z "$files"; then
  56757. - if test -z "$dest"; then
  56758. - $echo "$modename: no file or destination specified" 1>&2
  56759. - else
  56760. - $echo "$modename: you must specify a destination" 1>&2
  56761. + exit $EXIT_SUCCESS
  56762. fi
  56763. - $echo "$help" 1>&2
  56764. - exit $EXIT_FAILURE
  56765. - fi
  56766. - # Strip any trailing slash from the destination.
  56767. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  56768. + if test "$build_libtool_libs" != yes; then
  56769. + if test -n "$gentop"; then
  56770. + func_show_eval '${RM}r "$gentop"'
  56771. + fi
  56772. - # Check to see that the destination is a directory.
  56773. - test -d "$dest" && isdir=yes
  56774. - if test "$isdir" = yes; then
  56775. - destdir="$dest"
  56776. - destname=
  56777. - else
  56778. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  56779. - test "X$destdir" = "X$dest" && destdir=.
  56780. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  56781. + # Create an invalid libtool object if no PIC, so that we don't
  56782. + # accidentally link it into a program.
  56783. + # $show "echo timestamp > $libobj"
  56784. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  56785. + exit $EXIT_SUCCESS
  56786. + fi
  56787. - # Not a directory, so check to see that there is only one file specified.
  56788. - set dummy $files
  56789. - if test "$#" -gt 2; then
  56790. - $echo "$modename: \`$dest' is not a directory" 1>&2
  56791. - $echo "$help" 1>&2
  56792. - exit $EXIT_FAILURE
  56793. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  56794. + # Only do commands if we really have different PIC objects.
  56795. + reload_objs="$libobjs $reload_conv_objs"
  56796. + output="$libobj"
  56797. + func_execute_cmds "$reload_cmds" 'exit $?'
  56798. fi
  56799. - fi
  56800. - case $destdir in
  56801. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  56802. - *)
  56803. - for file in $files; do
  56804. - case $file in
  56805. - *.lo) ;;
  56806. - *)
  56807. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  56808. - $echo "$help" 1>&2
  56809. - exit $EXIT_FAILURE
  56810. - ;;
  56811. - esac
  56812. - done
  56813. +
  56814. + if test -n "$gentop"; then
  56815. + func_show_eval '${RM}r "$gentop"'
  56816. + fi
  56817. +
  56818. + exit $EXIT_SUCCESS
  56819. ;;
  56820. - esac
  56821. - # This variable tells wrapper scripts just to set variables rather
  56822. - # than running their programs.
  56823. - libtool_install_magic="$magic"
  56824. + prog)
  56825. + case $host in
  56826. + *cygwin*) func_stripname '' '.exe' "$output"
  56827. + output=$func_stripname_result.exe;;
  56828. + esac
  56829. + test -n "$vinfo" && \
  56830. + func_warning "\`-version-info' is ignored for programs"
  56831. - staticlibs=
  56832. - future_libdirs=
  56833. - current_libdirs=
  56834. - for file in $files; do
  56835. + test -n "$release" && \
  56836. + func_warning "\`-release' is ignored for programs"
  56837. - # Do each installation.
  56838. - case $file in
  56839. - *.$libext)
  56840. - # Do the static libraries later.
  56841. - staticlibs="$staticlibs $file"
  56842. + test "$preload" = yes \
  56843. + && test "$dlopen_support" = unknown \
  56844. + && test "$dlopen_self" = unknown \
  56845. + && test "$dlopen_self_static" = unknown && \
  56846. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  56847. +
  56848. + case $host in
  56849. + *-*-rhapsody* | *-*-darwin1.[012])
  56850. + # On Rhapsody replace the C library is the System framework
  56851. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  56852. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  56853. ;;
  56854. + esac
  56855. - *.la)
  56856. - # Check to see that this really is a libtool archive.
  56857. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  56858. - else
  56859. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  56860. - $echo "$help" 1>&2
  56861. - exit $EXIT_FAILURE
  56862. + case $host in
  56863. + *-*-darwin*)
  56864. + # Don't allow lazy linking, it breaks C++ global constructors
  56865. + # But is supposedly fixed on 10.4 or later (yay!).
  56866. + if test "$tagname" = CXX ; then
  56867. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  56868. + 10.[0123])
  56869. + compile_command="$compile_command ${wl}-bind_at_load"
  56870. + finalize_command="$finalize_command ${wl}-bind_at_load"
  56871. + ;;
  56872. + esac
  56873. fi
  56874. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  56875. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56876. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56877. + ;;
  56878. + esac
  56879. - library_names=
  56880. - old_library=
  56881. - relink_command=
  56882. - # If there is no directory component, then add one.
  56883. - case $file in
  56884. - */* | *\\*) . $file ;;
  56885. - *) . ./$file ;;
  56886. - esac
  56887. - # Add the libdir to current_libdirs if it is the destination.
  56888. - if test "X$destdir" = "X$libdir"; then
  56889. - case "$current_libdirs " in
  56890. - *" $libdir "*) ;;
  56891. - *) current_libdirs="$current_libdirs $libdir" ;;
  56892. + # move library search paths that coincide with paths to not yet
  56893. + # installed libraries to the beginning of the library search list
  56894. + new_libs=
  56895. + for path in $notinst_path; do
  56896. + case " $new_libs " in
  56897. + *" -L$path/$objdir "*) ;;
  56898. + *)
  56899. + case " $compile_deplibs " in
  56900. + *" -L$path/$objdir "*)
  56901. + new_libs="$new_libs -L$path/$objdir" ;;
  56902. esac
  56903. - else
  56904. - # Note the libdir as a future libdir.
  56905. - case "$future_libdirs " in
  56906. - *" $libdir "*) ;;
  56907. - *) future_libdirs="$future_libdirs $libdir" ;;
  56908. + ;;
  56909. + esac
  56910. + done
  56911. + for deplib in $compile_deplibs; do
  56912. + case $deplib in
  56913. + -L*)
  56914. + case " $new_libs " in
  56915. + *" $deplib "*) ;;
  56916. + *) new_libs="$new_libs $deplib" ;;
  56917. esac
  56918. - fi
  56919. + ;;
  56920. + *) new_libs="$new_libs $deplib" ;;
  56921. + esac
  56922. + done
  56923. + compile_deplibs="$new_libs"
  56924. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  56925. - test "X$dir" = "X$file/" && dir=
  56926. - dir="$dir$objdir"
  56927. - if test -n "$relink_command"; then
  56928. - # Determine the prefix the user has applied to our future dir.
  56929. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  56930. + compile_command="$compile_command $compile_deplibs"
  56931. + finalize_command="$finalize_command $finalize_deplibs"
  56932. - # Don't allow the user to place us outside of our expected
  56933. - # location b/c this prevents finding dependent libraries that
  56934. - # are installed to the same prefix.
  56935. - # At present, this check doesn't affect windows .dll's that
  56936. - # are installed into $libdir/../bin (currently, that works fine)
  56937. - # but it's something to keep an eye on.
  56938. - if test "$inst_prefix_dir" = "$destdir"; then
  56939. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  56940. - exit $EXIT_FAILURE
  56941. - fi
  56942. + if test -n "$rpath$xrpath"; then
  56943. + # If the user specified any rpath flags, then add them.
  56944. + for libdir in $rpath $xrpath; do
  56945. + # This is the magic to use -rpath.
  56946. + case "$finalize_rpath " in
  56947. + *" $libdir "*) ;;
  56948. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  56949. + esac
  56950. + done
  56951. + fi
  56952. - if test -n "$inst_prefix_dir"; then
  56953. - # Stick the inst_prefix_dir data into the link command.
  56954. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  56955. + # Now hardcode the library paths
  56956. + rpath=
  56957. + hardcode_libdirs=
  56958. + for libdir in $compile_rpath $finalize_rpath; do
  56959. + if test -n "$hardcode_libdir_flag_spec"; then
  56960. + if test -n "$hardcode_libdir_separator"; then
  56961. + if test -z "$hardcode_libdirs"; then
  56962. + hardcode_libdirs="$libdir"
  56963. + else
  56964. + # Just accumulate the unique libdirs.
  56965. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  56966. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  56967. + ;;
  56968. + *)
  56969. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  56970. + ;;
  56971. + esac
  56972. + fi
  56973. else
  56974. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  56975. + eval flag=\"$hardcode_libdir_flag_spec\"
  56976. + rpath="$rpath $flag"
  56977. fi
  56978. + elif test -n "$runpath_var"; then
  56979. + case "$perm_rpath " in
  56980. + *" $libdir "*) ;;
  56981. + *) perm_rpath="$perm_rpath $libdir" ;;
  56982. + esac
  56983. + fi
  56984. + case $host in
  56985. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  56986. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  56987. + case :$dllsearchpath: in
  56988. + *":$libdir:"*) ;;
  56989. + ::) dllsearchpath=$libdir;;
  56990. + *) dllsearchpath="$dllsearchpath:$libdir";;
  56991. + esac
  56992. + case :$dllsearchpath: in
  56993. + *":$testbindir:"*) ;;
  56994. + ::) dllsearchpath=$testbindir;;
  56995. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  56996. + esac
  56997. + ;;
  56998. + esac
  56999. + done
  57000. + # Substitute the hardcoded libdirs into the rpath.
  57001. + if test -n "$hardcode_libdir_separator" &&
  57002. + test -n "$hardcode_libdirs"; then
  57003. + libdir="$hardcode_libdirs"
  57004. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57005. + fi
  57006. + compile_rpath="$rpath"
  57007. - $echo "$modename: warning: relinking \`$file'" 1>&2
  57008. - $show "$relink_command"
  57009. - if $run eval "$relink_command"; then :
  57010. + rpath=
  57011. + hardcode_libdirs=
  57012. + for libdir in $finalize_rpath; do
  57013. + if test -n "$hardcode_libdir_flag_spec"; then
  57014. + if test -n "$hardcode_libdir_separator"; then
  57015. + if test -z "$hardcode_libdirs"; then
  57016. + hardcode_libdirs="$libdir"
  57017. + else
  57018. + # Just accumulate the unique libdirs.
  57019. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  57020. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  57021. + ;;
  57022. + *)
  57023. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  57024. + ;;
  57025. + esac
  57026. + fi
  57027. else
  57028. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  57029. - exit $EXIT_FAILURE
  57030. + eval flag=\"$hardcode_libdir_flag_spec\"
  57031. + rpath="$rpath $flag"
  57032. fi
  57033. + elif test -n "$runpath_var"; then
  57034. + case "$finalize_perm_rpath " in
  57035. + *" $libdir "*) ;;
  57036. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  57037. + esac
  57038. fi
  57039. + done
  57040. + # Substitute the hardcoded libdirs into the rpath.
  57041. + if test -n "$hardcode_libdir_separator" &&
  57042. + test -n "$hardcode_libdirs"; then
  57043. + libdir="$hardcode_libdirs"
  57044. + eval rpath=\" $hardcode_libdir_flag_spec\"
  57045. + fi
  57046. + finalize_rpath="$rpath"
  57047. - # See the names of the shared library.
  57048. - set dummy $library_names
  57049. - if test -n "$2"; then
  57050. - realname="$2"
  57051. - shift
  57052. - shift
  57053. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  57054. + # Transform all the library objects into standard objects.
  57055. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57056. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  57057. + fi
  57058. - srcname="$realname"
  57059. - test -n "$relink_command" && srcname="$realname"T
  57060. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  57061. - # Install the shared library and build the symlinks.
  57062. - $show "$install_prog $dir/$srcname $destdir/$realname"
  57063. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  57064. - if test -n "$stripme" && test -n "$striplib"; then
  57065. - $show "$striplib $destdir/$realname"
  57066. - $run eval "$striplib $destdir/$realname" || exit $?
  57067. - fi
  57068. + # template prelinking step
  57069. + if test -n "$prelink_cmds"; then
  57070. + func_execute_cmds "$prelink_cmds" 'exit $?'
  57071. + fi
  57072. - if test "$#" -gt 0; then
  57073. - # Delete the old symlinks, and create new ones.
  57074. - # Try `ln -sf' first, because the `ln' binary might depend on
  57075. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  57076. - # so we also need to try rm && ln -s.
  57077. - for linkname
  57078. - do
  57079. - if test "$linkname" != "$realname"; then
  57080. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57081. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  57082. - fi
  57083. - done
  57084. - fi
  57085. + wrappers_required=yes
  57086. + case $host in
  57087. + *cygwin* | *mingw* )
  57088. + if test "$build_libtool_libs" != yes; then
  57089. + wrappers_required=no
  57090. + fi
  57091. + ;;
  57092. + *cegcc)
  57093. + # Disable wrappers for cegcc, we are cross compiling anyway.
  57094. + wrappers_required=no
  57095. + ;;
  57096. + *)
  57097. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  57098. + wrappers_required=no
  57099. + fi
  57100. + ;;
  57101. + esac
  57102. + if test "$wrappers_required" = no; then
  57103. + # Replace the output file specification.
  57104. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57105. + link_command="$compile_command$compile_rpath"
  57106. - # Do each command in the postinstall commands.
  57107. - lib="$destdir/$realname"
  57108. - cmds=$postinstall_cmds
  57109. - save_ifs="$IFS"; IFS='~'
  57110. - for cmd in $cmds; do
  57111. - IFS="$save_ifs"
  57112. - eval cmd=\"$cmd\"
  57113. - $show "$cmd"
  57114. - $run eval "$cmd" || {
  57115. - lt_exit=$?
  57116. -
  57117. - # Restore the uninstalled library and exit
  57118. - if test "$mode" = relink; then
  57119. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  57120. - fi
  57121. + # We have no uninstalled library dependencies, so finalize right now.
  57122. + exit_status=0
  57123. + func_show_eval "$link_command" 'exit_status=$?'
  57124. - exit $lt_exit
  57125. - }
  57126. - done
  57127. - IFS="$save_ifs"
  57128. + # Delete the generated files.
  57129. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  57130. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  57131. fi
  57132. - # Install the pseudo-library for information purposes.
  57133. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57134. - instname="$dir/$name"i
  57135. - $show "$install_prog $instname $destdir/$name"
  57136. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  57137. -
  57138. - # Maybe install the static library, too.
  57139. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  57140. - ;;
  57141. + exit $exit_status
  57142. + fi
  57143. - *.lo)
  57144. - # Install (i.e. copy) a libtool object.
  57145. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  57146. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  57147. + fi
  57148. + if test -n "$finalize_shlibpath"; then
  57149. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  57150. + fi
  57151. - # Figure out destination file name, if it wasn't already specified.
  57152. - if test -n "$destname"; then
  57153. - destfile="$destdir/$destname"
  57154. - else
  57155. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57156. - destfile="$destdir/$destfile"
  57157. + compile_var=
  57158. + finalize_var=
  57159. + if test -n "$runpath_var"; then
  57160. + if test -n "$perm_rpath"; then
  57161. + # We should set the runpath_var.
  57162. + rpath=
  57163. + for dir in $perm_rpath; do
  57164. + rpath="$rpath$dir:"
  57165. + done
  57166. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57167. fi
  57168. -
  57169. - # Deduce the name of the destination old-style object file.
  57170. - case $destfile in
  57171. - *.lo)
  57172. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  57173. - ;;
  57174. - *.$objext)
  57175. - staticdest="$destfile"
  57176. - destfile=
  57177. - ;;
  57178. - *)
  57179. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  57180. - $echo "$help" 1>&2
  57181. - exit $EXIT_FAILURE
  57182. - ;;
  57183. - esac
  57184. -
  57185. - # Install the libtool object if requested.
  57186. - if test -n "$destfile"; then
  57187. - $show "$install_prog $file $destfile"
  57188. - $run eval "$install_prog $file $destfile" || exit $?
  57189. + if test -n "$finalize_perm_rpath"; then
  57190. + # We should set the runpath_var.
  57191. + rpath=
  57192. + for dir in $finalize_perm_rpath; do
  57193. + rpath="$rpath$dir:"
  57194. + done
  57195. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  57196. fi
  57197. + fi
  57198. - # Install the old object if enabled.
  57199. - if test "$build_old_libs" = yes; then
  57200. - # Deduce the name of the old-style object file.
  57201. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  57202. -
  57203. - $show "$install_prog $staticobj $staticdest"
  57204. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  57205. - fi
  57206. + if test "$no_install" = yes; then
  57207. + # We don't need to create a wrapper script.
  57208. + link_command="$compile_var$compile_command$compile_rpath"
  57209. + # Replace the output file specification.
  57210. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  57211. + # Delete the old output file.
  57212. + $opt_dry_run || $RM $output
  57213. + # Link the executable and exit
  57214. + func_show_eval "$link_command" 'exit $?'
  57215. exit $EXIT_SUCCESS
  57216. - ;;
  57217. + fi
  57218. - *)
  57219. - # Figure out destination file name, if it wasn't already specified.
  57220. - if test -n "$destname"; then
  57221. - destfile="$destdir/$destname"
  57222. + if test "$hardcode_action" = relink; then
  57223. + # Fast installation is not supported
  57224. + link_command="$compile_var$compile_command$compile_rpath"
  57225. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  57226. +
  57227. + func_warning "this platform does not like uninstalled shared libraries"
  57228. + func_warning "\`$output' will be relinked during installation"
  57229. + else
  57230. + if test "$fast_install" != no; then
  57231. + link_command="$finalize_var$compile_command$finalize_rpath"
  57232. + if test "$fast_install" = yes; then
  57233. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  57234. + else
  57235. + # fast_install is set to needless
  57236. + relink_command=
  57237. + fi
  57238. else
  57239. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57240. - destfile="$destdir/$destfile"
  57241. + link_command="$compile_var$compile_command$compile_rpath"
  57242. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  57243. fi
  57244. + fi
  57245. - # If the file is missing, and there is a .exe on the end, strip it
  57246. - # because it is most likely a libtool script we actually want to
  57247. - # install
  57248. - stripped_ext=""
  57249. - case $file in
  57250. - *.exe)
  57251. - if test ! -f "$file"; then
  57252. - file=`$echo $file|${SED} 's,.exe$,,'`
  57253. - stripped_ext=".exe"
  57254. - fi
  57255. - ;;
  57256. - esac
  57257. -
  57258. - # Do a test to see if this is really a libtool program.
  57259. - case $host in
  57260. - *cygwin*|*mingw*)
  57261. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  57262. - ;;
  57263. - *)
  57264. - wrapper=$file
  57265. - ;;
  57266. - esac
  57267. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  57268. - notinst_deplibs=
  57269. - relink_command=
  57270. -
  57271. - # Note that it is not necessary on cygwin/mingw to append a dot to
  57272. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  57273. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  57274. - # `FILE.' does not work on cygwin managed mounts.
  57275. - #
  57276. - # If there is no directory component, then add one.
  57277. - case $wrapper in
  57278. - */* | *\\*) . ${wrapper} ;;
  57279. - *) . ./${wrapper} ;;
  57280. - esac
  57281. -
  57282. - # Check the variables that should have been set.
  57283. - if test -z "$notinst_deplibs"; then
  57284. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  57285. - exit $EXIT_FAILURE
  57286. - fi
  57287. + # Replace the output file specification.
  57288. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  57289. - finalize=yes
  57290. - for lib in $notinst_deplibs; do
  57291. - # Check to see that each library is installed.
  57292. - libdir=
  57293. - if test -f "$lib"; then
  57294. - # If there is no directory component, then add one.
  57295. - case $lib in
  57296. - */* | *\\*) . $lib ;;
  57297. - *) . ./$lib ;;
  57298. - esac
  57299. - fi
  57300. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  57301. - if test -n "$libdir" && test ! -f "$libfile"; then
  57302. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  57303. - finalize=no
  57304. - fi
  57305. - done
  57306. + # Delete the old output files.
  57307. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  57308. - relink_command=
  57309. - # Note that it is not necessary on cygwin/mingw to append a dot to
  57310. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  57311. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  57312. - # `FILE.' does not work on cygwin managed mounts.
  57313. - #
  57314. - # If there is no directory component, then add one.
  57315. - case $wrapper in
  57316. - */* | *\\*) . ${wrapper} ;;
  57317. - *) . ./${wrapper} ;;
  57318. - esac
  57319. + func_show_eval "$link_command" 'exit $?'
  57320. - outputname=
  57321. - if test "$fast_install" = no && test -n "$relink_command"; then
  57322. - if test "$finalize" = yes && test -z "$run"; then
  57323. - tmpdir=`func_mktempdir`
  57324. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  57325. - outputname="$tmpdir/$file"
  57326. - # Replace the output file specification.
  57327. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  57328. + # Now create the wrapper script.
  57329. + func_verbose "creating $output"
  57330. - $show "$relink_command"
  57331. - if $run eval "$relink_command"; then :
  57332. - else
  57333. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  57334. - ${rm}r "$tmpdir"
  57335. - continue
  57336. - fi
  57337. - file="$outputname"
  57338. - else
  57339. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  57340. - fi
  57341. + # Quote the relink command for shipping.
  57342. + if test -n "$relink_command"; then
  57343. + # Preserve any variables that may affect compiler behavior
  57344. + for var in $variables_saved_for_relink; do
  57345. + if eval test -z \"\${$var+set}\"; then
  57346. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  57347. + elif eval var_value=\$$var; test -z "$var_value"; then
  57348. + relink_command="$var=; export $var; $relink_command"
  57349. else
  57350. - # Install the binary that we compiled earlier.
  57351. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  57352. + func_quote_for_eval "$var_value"
  57353. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  57354. fi
  57355. - fi
  57356. + done
  57357. + relink_command="(cd `pwd`; $relink_command)"
  57358. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57359. + fi
  57360. - # remove .exe since cygwin /usr/bin/install will append another
  57361. - # one anyway
  57362. - case $install_prog,$host in
  57363. - */usr/bin/install*,*cygwin*)
  57364. - case $file:$destfile in
  57365. - *.exe:*.exe)
  57366. - # this is ok
  57367. - ;;
  57368. - *.exe:*)
  57369. - destfile=$destfile.exe
  57370. - ;;
  57371. - *:*.exe)
  57372. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  57373. - ;;
  57374. - esac
  57375. - ;;
  57376. + # Quote $ECHO for shipping.
  57377. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  57378. + case $progpath in
  57379. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  57380. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  57381. + esac
  57382. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  57383. + else
  57384. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  57385. + fi
  57386. +
  57387. + # Only actually do things if not in dry run mode.
  57388. + $opt_dry_run || {
  57389. + # win32 will think the script is a binary if it has
  57390. + # a .exe suffix, so we strip it off here.
  57391. + case $output in
  57392. + *.exe) func_stripname '' '.exe' "$output"
  57393. + output=$func_stripname_result ;;
  57394. + esac
  57395. + # test for cygwin because mv fails w/o .exe extensions
  57396. + case $host in
  57397. + *cygwin*)
  57398. + exeext=.exe
  57399. + func_stripname '' '.exe' "$outputname"
  57400. + outputname=$func_stripname_result ;;
  57401. + *) exeext= ;;
  57402. esac
  57403. - $show "$install_prog$stripme $file $destfile"
  57404. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  57405. - test -n "$outputname" && ${rm}r "$tmpdir"
  57406. - ;;
  57407. - esac
  57408. - done
  57409. + case $host in
  57410. + *cygwin* | *mingw* )
  57411. + func_dirname_and_basename "$output" "" "."
  57412. + output_name=$func_basename_result
  57413. + output_path=$func_dirname_result
  57414. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  57415. + cwrapper="$output_path/$output_name.exe"
  57416. + $RM $cwrappersource $cwrapper
  57417. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  57418. +
  57419. + func_emit_cwrapperexe_src > $cwrappersource
  57420. +
  57421. + # The wrapper executable is built using the $host compiler,
  57422. + # because it contains $host paths and files. If cross-
  57423. + # compiling, it, like the target executable, must be
  57424. + # executed on the $host or under an emulation environment.
  57425. + $opt_dry_run || {
  57426. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  57427. + $STRIP $cwrapper
  57428. + }
  57429. - for file in $staticlibs; do
  57430. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  57431. + # Now, create the wrapper script for func_source use:
  57432. + func_ltwrapper_scriptname $cwrapper
  57433. + $RM $func_ltwrapper_scriptname_result
  57434. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  57435. + $opt_dry_run || {
  57436. + # note: this script will not be executed, so do not chmod.
  57437. + if test "x$build" = "x$host" ; then
  57438. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  57439. + else
  57440. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  57441. + fi
  57442. + }
  57443. + ;;
  57444. + * )
  57445. + $RM $output
  57446. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  57447. - # Set up the ranlib parameters.
  57448. - oldlib="$destdir/$name"
  57449. + func_emit_wrapper no > $output
  57450. + chmod +x $output
  57451. + ;;
  57452. + esac
  57453. + }
  57454. + exit $EXIT_SUCCESS
  57455. + ;;
  57456. + esac
  57457. - $show "$install_prog $file $oldlib"
  57458. - $run eval "$install_prog \$file \$oldlib" || exit $?
  57459. + # See if we need to build an old-fashioned archive.
  57460. + for oldlib in $oldlibs; do
  57461. - if test -n "$stripme" && test -n "$old_striplib"; then
  57462. - $show "$old_striplib $oldlib"
  57463. - $run eval "$old_striplib $oldlib" || exit $?
  57464. + if test "$build_libtool_libs" = convenience; then
  57465. + oldobjs="$libobjs_save $symfileobj"
  57466. + addlibs="$convenience"
  57467. + build_libtool_libs=no
  57468. + else
  57469. + if test "$build_libtool_libs" = module; then
  57470. + oldobjs="$libobjs_save"
  57471. + build_libtool_libs=no
  57472. + else
  57473. + oldobjs="$old_deplibs $non_pic_objects"
  57474. + if test "$preload" = yes && test -f "$symfileobj"; then
  57475. + oldobjs="$oldobjs $symfileobj"
  57476. + fi
  57477. + fi
  57478. + addlibs="$old_convenience"
  57479. fi
  57480. - # Do each command in the postinstall commands.
  57481. - cmds=$old_postinstall_cmds
  57482. - save_ifs="$IFS"; IFS='~'
  57483. - for cmd in $cmds; do
  57484. - IFS="$save_ifs"
  57485. - eval cmd=\"$cmd\"
  57486. - $show "$cmd"
  57487. - $run eval "$cmd" || exit $?
  57488. - done
  57489. - IFS="$save_ifs"
  57490. - done
  57491. + if test -n "$addlibs"; then
  57492. + gentop="$output_objdir/${outputname}x"
  57493. + generated="$generated $gentop"
  57494. - if test -n "$future_libdirs"; then
  57495. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  57496. - fi
  57497. + func_extract_archives $gentop $addlibs
  57498. + oldobjs="$oldobjs $func_extract_archives_result"
  57499. + fi
  57500. - if test -n "$current_libdirs"; then
  57501. - # Maybe just do a dry run.
  57502. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  57503. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  57504. - else
  57505. - exit $EXIT_SUCCESS
  57506. - fi
  57507. - ;;
  57508. + # Do each command in the archive commands.
  57509. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  57510. + cmds=$old_archive_from_new_cmds
  57511. + else
  57512. - # libtool finish mode
  57513. - finish)
  57514. - modename="$modename: finish"
  57515. - libdirs="$nonopt"
  57516. - admincmds=
  57517. + # Add any objects from preloaded convenience libraries
  57518. + if test -n "$dlprefiles"; then
  57519. + gentop="$output_objdir/${outputname}x"
  57520. + generated="$generated $gentop"
  57521. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  57522. - for dir
  57523. - do
  57524. - libdirs="$libdirs $dir"
  57525. - done
  57526. + func_extract_archives $gentop $dlprefiles
  57527. + oldobjs="$oldobjs $func_extract_archives_result"
  57528. + fi
  57529. - for libdir in $libdirs; do
  57530. - if test -n "$finish_cmds"; then
  57531. - # Do each command in the finish commands.
  57532. - cmds=$finish_cmds
  57533. - save_ifs="$IFS"; IFS='~'
  57534. - for cmd in $cmds; do
  57535. - IFS="$save_ifs"
  57536. - eval cmd=\"$cmd\"
  57537. - $show "$cmd"
  57538. - $run eval "$cmd" || admincmds="$admincmds
  57539. - $cmd"
  57540. + # POSIX demands no paths to be encoded in archives. We have
  57541. + # to avoid creating archives with duplicate basenames if we
  57542. + # might have to extract them afterwards, e.g., when creating a
  57543. + # static archive out of a convenience library, or when linking
  57544. + # the entirety of a libtool archive into another (currently
  57545. + # not supported by libtool).
  57546. + if (for obj in $oldobjs
  57547. + do
  57548. + func_basename "$obj"
  57549. + $ECHO "$func_basename_result"
  57550. + done | sort | sort -uc >/dev/null 2>&1); then
  57551. + :
  57552. + else
  57553. + $ECHO "copying selected object files to avoid basename conflicts..."
  57554. + gentop="$output_objdir/${outputname}x"
  57555. + generated="$generated $gentop"
  57556. + func_mkdir_p "$gentop"
  57557. + save_oldobjs=$oldobjs
  57558. + oldobjs=
  57559. + counter=1
  57560. + for obj in $save_oldobjs
  57561. + do
  57562. + func_basename "$obj"
  57563. + objbase="$func_basename_result"
  57564. + case " $oldobjs " in
  57565. + " ") oldobjs=$obj ;;
  57566. + *[\ /]"$objbase "*)
  57567. + while :; do
  57568. + # Make sure we don't pick an alternate name that also
  57569. + # overlaps.
  57570. + newobj=lt$counter-$objbase
  57571. + func_arith $counter + 1
  57572. + counter=$func_arith_result
  57573. + case " $oldobjs " in
  57574. + *[\ /]"$newobj "*) ;;
  57575. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  57576. + esac
  57577. + done
  57578. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  57579. + oldobjs="$oldobjs $gentop/$newobj"
  57580. + ;;
  57581. + *) oldobjs="$oldobjs $obj" ;;
  57582. + esac
  57583. done
  57584. - IFS="$save_ifs"
  57585. - fi
  57586. - if test -n "$finish_eval"; then
  57587. - # Do the single finish_eval.
  57588. - eval cmds=\"$finish_eval\"
  57589. - $run eval "$cmds" || admincmds="$admincmds
  57590. - $cmds"
  57591. fi
  57592. - done
  57593. - fi
  57594. -
  57595. - # Exit here if they wanted silent mode.
  57596. - test "$show" = : && exit $EXIT_SUCCESS
  57597. + eval cmds=\"$old_archive_cmds\"
  57598. - $echo "X----------------------------------------------------------------------" | $Xsed
  57599. - $echo "Libraries have been installed in:"
  57600. - for libdir in $libdirs; do
  57601. - $echo " $libdir"
  57602. + func_len " $cmds"
  57603. + len=$func_len_result
  57604. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  57605. + cmds=$old_archive_cmds
  57606. + else
  57607. + # the command line is too long to link in one step, link in parts
  57608. + func_verbose "using piecewise archive linking..."
  57609. + save_RANLIB=$RANLIB
  57610. + RANLIB=:
  57611. + objlist=
  57612. + concat_cmds=
  57613. + save_oldobjs=$oldobjs
  57614. + oldobjs=
  57615. + # Is there a better way of finding the last object in the list?
  57616. + for obj in $save_oldobjs
  57617. + do
  57618. + last_oldobj=$obj
  57619. + done
  57620. + eval test_cmds=\"$old_archive_cmds\"
  57621. + func_len " $test_cmds"
  57622. + len0=$func_len_result
  57623. + len=$len0
  57624. + for obj in $save_oldobjs
  57625. + do
  57626. + func_len " $obj"
  57627. + func_arith $len + $func_len_result
  57628. + len=$func_arith_result
  57629. + func_append objlist " $obj"
  57630. + if test "$len" -lt "$max_cmd_len"; then
  57631. + :
  57632. + else
  57633. + # the above command should be used before it gets too long
  57634. + oldobjs=$objlist
  57635. + if test "$obj" = "$last_oldobj" ; then
  57636. + RANLIB=$save_RANLIB
  57637. + fi
  57638. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  57639. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  57640. + objlist=
  57641. + len=$len0
  57642. + fi
  57643. + done
  57644. + RANLIB=$save_RANLIB
  57645. + oldobjs=$objlist
  57646. + if test "X$oldobjs" = "X" ; then
  57647. + eval cmds=\"\$concat_cmds\"
  57648. + else
  57649. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  57650. + fi
  57651. + fi
  57652. + fi
  57653. + func_execute_cmds "$cmds" 'exit $?'
  57654. done
  57655. - $echo
  57656. - $echo "If you ever happen to want to link against installed libraries"
  57657. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  57658. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  57659. - $echo "flag during linking and do at least one of the following:"
  57660. - if test -n "$shlibpath_var"; then
  57661. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  57662. - $echo " during execution"
  57663. - fi
  57664. - if test -n "$runpath_var"; then
  57665. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  57666. - $echo " during linking"
  57667. - fi
  57668. - if test -n "$hardcode_libdir_flag_spec"; then
  57669. - libdir=LIBDIR
  57670. - eval flag=\"$hardcode_libdir_flag_spec\"
  57671. -
  57672. - $echo " - use the \`$flag' linker flag"
  57673. - fi
  57674. - if test -n "$admincmds"; then
  57675. - $echo " - have your system administrator run these commands:$admincmds"
  57676. - fi
  57677. - if test -f /etc/ld.so.conf; then
  57678. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  57679. - fi
  57680. - $echo
  57681. - $echo "See any operating system documentation about shared libraries for"
  57682. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  57683. - $echo "X----------------------------------------------------------------------" | $Xsed
  57684. - exit $EXIT_SUCCESS
  57685. - ;;
  57686. -
  57687. - # libtool execute mode
  57688. - execute)
  57689. - modename="$modename: execute"
  57690. - # The first argument is the command name.
  57691. - cmd="$nonopt"
  57692. - if test -z "$cmd"; then
  57693. - $echo "$modename: you must specify a COMMAND" 1>&2
  57694. - $echo "$help"
  57695. - exit $EXIT_FAILURE
  57696. - fi
  57697. + test -n "$generated" && \
  57698. + func_show_eval "${RM}r$generated"
  57699. - # Handle -dlopen flags immediately.
  57700. - for file in $execute_dlfiles; do
  57701. - if test ! -f "$file"; then
  57702. - $echo "$modename: \`$file' is not a file" 1>&2
  57703. - $echo "$help" 1>&2
  57704. - exit $EXIT_FAILURE
  57705. - fi
  57706. + # Now create the libtool archive.
  57707. + case $output in
  57708. + *.la)
  57709. + old_library=
  57710. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  57711. + func_verbose "creating $output"
  57712. - dir=
  57713. - case $file in
  57714. - *.la)
  57715. - # Check to see that this really is a libtool archive.
  57716. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  57717. + # Preserve any variables that may affect compiler behavior
  57718. + for var in $variables_saved_for_relink; do
  57719. + if eval test -z \"\${$var+set}\"; then
  57720. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  57721. + elif eval var_value=\$$var; test -z "$var_value"; then
  57722. + relink_command="$var=; export $var; $relink_command"
  57723. else
  57724. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  57725. - $echo "$help" 1>&2
  57726. - exit $EXIT_FAILURE
  57727. + func_quote_for_eval "$var_value"
  57728. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  57729. fi
  57730. + done
  57731. + # Quote the link command for shipping.
  57732. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  57733. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  57734. + if test "$hardcode_automatic" = yes ; then
  57735. + relink_command=
  57736. + fi
  57737. - # Read the libtool library.
  57738. - dlname=
  57739. - library_names=
  57740. + # Only create the output if not a dry run.
  57741. + $opt_dry_run || {
  57742. + for installed in no yes; do
  57743. + if test "$installed" = yes; then
  57744. + if test -z "$install_libdir"; then
  57745. + break
  57746. + fi
  57747. + output="$output_objdir/$outputname"i
  57748. + # Replace all uninstalled libtool libraries with the installed ones
  57749. + newdependency_libs=
  57750. + for deplib in $dependency_libs; do
  57751. + case $deplib in
  57752. + *.la)
  57753. + func_basename "$deplib"
  57754. + name="$func_basename_result"
  57755. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57756. + test -z "$libdir" && \
  57757. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57758. + newdependency_libs="$newdependency_libs $libdir/$name"
  57759. + ;;
  57760. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  57761. + esac
  57762. + done
  57763. + dependency_libs="$newdependency_libs"
  57764. + newdlfiles=
  57765. +
  57766. + for lib in $dlfiles; do
  57767. + case $lib in
  57768. + *.la)
  57769. + func_basename "$lib"
  57770. + name="$func_basename_result"
  57771. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57772. + test -z "$libdir" && \
  57773. + func_fatal_error "\`$lib' is not a valid libtool archive"
  57774. + newdlfiles="$newdlfiles $libdir/$name"
  57775. + ;;
  57776. + *) newdlfiles="$newdlfiles $lib" ;;
  57777. + esac
  57778. + done
  57779. + dlfiles="$newdlfiles"
  57780. + newdlprefiles=
  57781. + for lib in $dlprefiles; do
  57782. + case $lib in
  57783. + *.la)
  57784. + # Only pass preopened files to the pseudo-archive (for
  57785. + # eventual linking with the app. that links it) if we
  57786. + # didn't already link the preopened objects directly into
  57787. + # the library:
  57788. + func_basename "$lib"
  57789. + name="$func_basename_result"
  57790. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  57791. + test -z "$libdir" && \
  57792. + func_fatal_error "\`$lib' is not a valid libtool archive"
  57793. + newdlprefiles="$newdlprefiles $libdir/$name"
  57794. + ;;
  57795. + esac
  57796. + done
  57797. + dlprefiles="$newdlprefiles"
  57798. + else
  57799. + newdlfiles=
  57800. + for lib in $dlfiles; do
  57801. + case $lib in
  57802. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57803. + *) abs=`pwd`"/$lib" ;;
  57804. + esac
  57805. + newdlfiles="$newdlfiles $abs"
  57806. + done
  57807. + dlfiles="$newdlfiles"
  57808. + newdlprefiles=
  57809. + for lib in $dlprefiles; do
  57810. + case $lib in
  57811. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  57812. + *) abs=`pwd`"/$lib" ;;
  57813. + esac
  57814. + newdlprefiles="$newdlprefiles $abs"
  57815. + done
  57816. + dlprefiles="$newdlprefiles"
  57817. + fi
  57818. + $RM $output
  57819. + # place dlname in correct position for cygwin
  57820. + tdlname=$dlname
  57821. + case $host,$output,$installed,$module,$dlname in
  57822. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  57823. + esac
  57824. + $ECHO > $output "\
  57825. +# $outputname - a libtool library file
  57826. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  57827. +#
  57828. +# Please DO NOT delete this file!
  57829. +# It is necessary for linking the library.
  57830. - # If there is no directory component, then add one.
  57831. - case $file in
  57832. - */* | *\\*) . $file ;;
  57833. - *) . ./$file ;;
  57834. - esac
  57835. +# The name that we can dlopen(3).
  57836. +dlname='$tdlname'
  57837. - # Skip this library if it cannot be dlopened.
  57838. - if test -z "$dlname"; then
  57839. - # Warn if it was a shared library.
  57840. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  57841. - continue
  57842. - fi
  57843. +# Names of this library.
  57844. +library_names='$library_names'
  57845. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  57846. - test "X$dir" = "X$file" && dir=.
  57847. +# The name of the static archive.
  57848. +old_library='$old_library'
  57849. - if test -f "$dir/$objdir/$dlname"; then
  57850. - dir="$dir/$objdir"
  57851. - else
  57852. - if test ! -f "$dir/$dlname"; then
  57853. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  57854. - exit $EXIT_FAILURE
  57855. - fi
  57856. - fi
  57857. - ;;
  57858. +# Linker flags that can not go in dependency_libs.
  57859. +inherited_linker_flags='$new_inherited_linker_flags'
  57860. - *.lo)
  57861. - # Just add the directory containing the .lo file.
  57862. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  57863. - test "X$dir" = "X$file" && dir=.
  57864. - ;;
  57865. +# Libraries that this one depends upon.
  57866. +dependency_libs='$dependency_libs'
  57867. - *)
  57868. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  57869. - continue
  57870. - ;;
  57871. - esac
  57872. +# Names of additional weak libraries provided by this library
  57873. +weak_library_names='$weak_libs'
  57874. - # Get the absolute pathname.
  57875. - absdir=`cd "$dir" && pwd`
  57876. - test -n "$absdir" && dir="$absdir"
  57877. +# Version information for $libname.
  57878. +current=$current
  57879. +age=$age
  57880. +revision=$revision
  57881. - # Now add the directory to shlibpath_var.
  57882. - if eval "test -z \"\$$shlibpath_var\""; then
  57883. - eval "$shlibpath_var=\"\$dir\""
  57884. - else
  57885. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  57886. - fi
  57887. - done
  57888. +# Is this an already installed library?
  57889. +installed=$installed
  57890. - # This variable tells wrapper scripts just to set shlibpath_var
  57891. - # rather than running their programs.
  57892. - libtool_execute_magic="$magic"
  57893. +# Should we warn about portability when linking against -modules?
  57894. +shouldnotlink=$module
  57895. - # Check if any of the arguments is a wrapper script.
  57896. - args=
  57897. - for file
  57898. - do
  57899. - case $file in
  57900. - -*) ;;
  57901. - *)
  57902. - # Do a test to see if this is really a libtool program.
  57903. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  57904. - # If there is no directory component, then add one.
  57905. - case $file in
  57906. - */* | *\\*) . $file ;;
  57907. - *) . ./$file ;;
  57908. - esac
  57909. +# Files to dlopen/dlpreopen
  57910. +dlopen='$dlfiles'
  57911. +dlpreopen='$dlprefiles'
  57912. - # Transform arg to wrapped name.
  57913. - file="$progdir/$program"
  57914. - fi
  57915. - ;;
  57916. - esac
  57917. - # Quote arguments (to preserve shell metacharacters).
  57918. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  57919. - args="$args \"$file\""
  57920. - done
  57921. +# Directory that this library needs to be installed in:
  57922. +libdir='$install_libdir'"
  57923. + if test "$installed" = no && test "$need_relink" = yes; then
  57924. + $ECHO >> $output "\
  57925. +relink_command=\"$relink_command\""
  57926. + fi
  57927. + done
  57928. + }
  57929. - if test -z "$run"; then
  57930. - if test -n "$shlibpath_var"; then
  57931. - # Export the shlibpath_var.
  57932. - eval "export $shlibpath_var"
  57933. - fi
  57934. + # Do a symbolic link so that the libtool archive can be found in
  57935. + # LD_LIBRARY_PATH before the program is installed.
  57936. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  57937. + ;;
  57938. + esac
  57939. + exit $EXIT_SUCCESS
  57940. +}
  57941. - # Restore saved environment variables
  57942. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  57943. - do
  57944. - eval "if test \"\${save_$lt_var+set}\" = set; then
  57945. - $lt_var=\$save_$lt_var; export $lt_var
  57946. - fi"
  57947. - done
  57948. +{ test "$mode" = link || test "$mode" = relink; } &&
  57949. + func_mode_link ${1+"$@"}
  57950. - # Now prepare to actually exec the command.
  57951. - exec_cmd="\$cmd$args"
  57952. - else
  57953. - # Display what would be done.
  57954. - if test -n "$shlibpath_var"; then
  57955. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  57956. - $echo "export $shlibpath_var"
  57957. - fi
  57958. - $echo "$cmd$args"
  57959. - exit $EXIT_SUCCESS
  57960. - fi
  57961. - ;;
  57962. - # libtool clean and uninstall mode
  57963. - clean | uninstall)
  57964. - modename="$modename: $mode"
  57965. - rm="$nonopt"
  57966. +# func_mode_uninstall arg...
  57967. +func_mode_uninstall ()
  57968. +{
  57969. + $opt_debug
  57970. + RM="$nonopt"
  57971. files=
  57972. rmforce=
  57973. exit_status=0
  57974. @@ -6539,30 +8209,28 @@
  57975. for arg
  57976. do
  57977. case $arg in
  57978. - -f) rm="$rm $arg"; rmforce=yes ;;
  57979. - -*) rm="$rm $arg" ;;
  57980. + -f) RM="$RM $arg"; rmforce=yes ;;
  57981. + -*) RM="$RM $arg" ;;
  57982. *) files="$files $arg" ;;
  57983. esac
  57984. done
  57985. - if test -z "$rm"; then
  57986. - $echo "$modename: you must specify an RM program" 1>&2
  57987. - $echo "$help" 1>&2
  57988. - exit $EXIT_FAILURE
  57989. - fi
  57990. + test -z "$RM" && \
  57991. + func_fatal_help "you must specify an RM program"
  57992. rmdirs=
  57993. origobjdir="$objdir"
  57994. for file in $files; do
  57995. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  57996. - if test "X$dir" = "X$file"; then
  57997. - dir=.
  57998. + func_dirname "$file" "" "."
  57999. + dir="$func_dirname_result"
  58000. + if test "X$dir" = X.; then
  58001. objdir="$origobjdir"
  58002. else
  58003. objdir="$dir/$origobjdir"
  58004. fi
  58005. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  58006. + func_basename "$file"
  58007. + name="$func_basename_result"
  58008. test "$mode" = uninstall && objdir="$dir"
  58009. # Remember objdir for removal later, being careful to avoid duplicates
  58010. @@ -6574,9 +8242,9 @@
  58011. fi
  58012. # Don't error if the file doesn't exist and rm -f was used.
  58013. - if (test -L "$file") >/dev/null 2>&1 \
  58014. - || (test -h "$file") >/dev/null 2>&1 \
  58015. - || test -f "$file"; then
  58016. + if { test -L "$file"; } >/dev/null 2>&1 ||
  58017. + { test -h "$file"; } >/dev/null 2>&1 ||
  58018. + test -f "$file"; then
  58019. :
  58020. elif test -d "$file"; then
  58021. exit_status=1
  58022. @@ -6590,8 +8258,8 @@
  58023. case $name in
  58024. *.la)
  58025. # Possibly a libtool archive, so verify it.
  58026. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58027. - . $dir/$name
  58028. + if func_lalib_p "$file"; then
  58029. + func_source $dir/$name
  58030. # Delete the libtool libraries and symlinks.
  58031. for n in $library_names; do
  58032. @@ -6606,39 +8274,17 @@
  58033. *" $dlname "*) ;;
  58034. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  58035. esac
  58036. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58037. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  58038. ;;
  58039. uninstall)
  58040. if test -n "$library_names"; then
  58041. # Do each command in the postuninstall commands.
  58042. - cmds=$postuninstall_cmds
  58043. - save_ifs="$IFS"; IFS='~'
  58044. - for cmd in $cmds; do
  58045. - IFS="$save_ifs"
  58046. - eval cmd=\"$cmd\"
  58047. - $show "$cmd"
  58048. - $run eval "$cmd"
  58049. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58050. - exit_status=1
  58051. - fi
  58052. - done
  58053. - IFS="$save_ifs"
  58054. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58055. fi
  58056. if test -n "$old_library"; then
  58057. # Do each command in the old_postuninstall commands.
  58058. - cmds=$old_postuninstall_cmds
  58059. - save_ifs="$IFS"; IFS='~'
  58060. - for cmd in $cmds; do
  58061. - IFS="$save_ifs"
  58062. - eval cmd=\"$cmd\"
  58063. - $show "$cmd"
  58064. - $run eval "$cmd"
  58065. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  58066. - exit_status=1
  58067. - fi
  58068. - done
  58069. - IFS="$save_ifs"
  58070. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  58071. fi
  58072. # FIXME: should reinstall the best remaining shared library.
  58073. ;;
  58074. @@ -6648,20 +8294,20 @@
  58075. *.lo)
  58076. # Possibly a libtool object, so verify it.
  58077. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58078. + if func_lalib_p "$file"; then
  58079. # Read the .lo file
  58080. - . $dir/$name
  58081. + func_source $dir/$name
  58082. # Add PIC object to the list of files to remove.
  58083. - if test -n "$pic_object" \
  58084. - && test "$pic_object" != none; then
  58085. + if test -n "$pic_object" &&
  58086. + test "$pic_object" != none; then
  58087. rmfiles="$rmfiles $dir/$pic_object"
  58088. fi
  58089. # Add non-PIC object to the list of files to remove.
  58090. - if test -n "$non_pic_object" \
  58091. - && test "$non_pic_object" != none; then
  58092. + if test -n "$non_pic_object" &&
  58093. + test "$non_pic_object" != none; then
  58094. rmfiles="$rmfiles $dir/$non_pic_object"
  58095. fi
  58096. fi
  58097. @@ -6672,17 +8318,26 @@
  58098. noexename=$name
  58099. case $file in
  58100. *.exe)
  58101. - file=`$echo $file|${SED} 's,.exe$,,'`
  58102. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  58103. + func_stripname '' '.exe' "$file"
  58104. + file=$func_stripname_result
  58105. + func_stripname '' '.exe' "$name"
  58106. + noexename=$func_stripname_result
  58107. # $file with .exe has already been added to rmfiles,
  58108. # add $file without .exe
  58109. rmfiles="$rmfiles $file"
  58110. ;;
  58111. esac
  58112. # Do a test to see if this is a libtool program.
  58113. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  58114. - relink_command=
  58115. - . $dir/$noexename
  58116. + if func_ltwrapper_p "$file"; then
  58117. + if func_ltwrapper_executable_p "$file"; then
  58118. + func_ltwrapper_scriptname "$file"
  58119. + relink_command=
  58120. + func_source $func_ltwrapper_scriptname_result
  58121. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  58122. + else
  58123. + relink_command=
  58124. + func_source $dir/$noexename
  58125. + fi
  58126. # note $name still contains .exe if it was in $file originally
  58127. # as does the version of $file that was added into $rmfiles
  58128. @@ -6697,239 +8352,38 @@
  58129. fi
  58130. ;;
  58131. esac
  58132. - $show "$rm $rmfiles"
  58133. - $run $rm $rmfiles || exit_status=1
  58134. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  58135. done
  58136. objdir="$origobjdir"
  58137. # Try to remove the ${objdir}s in the directories where we deleted files
  58138. for dir in $rmdirs; do
  58139. if test -d "$dir"; then
  58140. - $show "rmdir $dir"
  58141. - $run rmdir $dir >/dev/null 2>&1
  58142. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  58143. fi
  58144. done
  58145. exit $exit_status
  58146. - ;;
  58147. +}
  58148. - "")
  58149. - $echo "$modename: you must specify a MODE" 1>&2
  58150. - $echo "$generic_help" 1>&2
  58151. - exit $EXIT_FAILURE
  58152. - ;;
  58153. - esac
  58154. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  58155. + func_mode_uninstall ${1+"$@"}
  58156. - if test -z "$exec_cmd"; then
  58157. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  58158. - $echo "$generic_help" 1>&2
  58159. - exit $EXIT_FAILURE
  58160. - fi
  58161. -fi # test -z "$show_help"
  58162. +test -z "$mode" && {
  58163. + help="$generic_help"
  58164. + func_fatal_help "you must specify a MODE"
  58165. +}
  58166. +
  58167. +test -z "$exec_cmd" && \
  58168. + func_fatal_help "invalid operation mode \`$mode'"
  58169. if test -n "$exec_cmd"; then
  58170. - eval exec $exec_cmd
  58171. + eval exec "$exec_cmd"
  58172. exit $EXIT_FAILURE
  58173. fi
  58174. -# We need to display help for each of the modes.
  58175. -case $mode in
  58176. -"") $echo \
  58177. -"Usage: $modename [OPTION]... [MODE-ARG]...
  58178. -
  58179. -Provide generalized library-building support services.
  58180. -
  58181. - --config show all configuration variables
  58182. - --debug enable verbose shell tracing
  58183. --n, --dry-run display commands without modifying any files
  58184. - --features display basic configuration information and exit
  58185. - --finish same as \`--mode=finish'
  58186. - --help display this help message and exit
  58187. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  58188. - --quiet same as \`--silent'
  58189. - --silent don't print informational messages
  58190. - --tag=TAG use configuration variables from tag TAG
  58191. - --version print version information
  58192. -
  58193. -MODE must be one of the following:
  58194. -
  58195. - clean remove files from the build directory
  58196. - compile compile a source file into a libtool object
  58197. - execute automatically set library path, then run a program
  58198. - finish complete the installation of libtool libraries
  58199. - install install libraries or executables
  58200. - link create a library or an executable
  58201. - uninstall remove libraries from an installed directory
  58202. -
  58203. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  58204. -a more detailed description of MODE.
  58205. -
  58206. -Report bugs to <bug-libtool@gnu.org>."
  58207. - exit $EXIT_SUCCESS
  58208. - ;;
  58209. -
  58210. -clean)
  58211. - $echo \
  58212. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  58213. -
  58214. -Remove files from the build directory.
  58215. -
  58216. -RM is the name of the program to use to delete files associated with each FILE
  58217. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  58218. -to RM.
  58219. -
  58220. -If FILE is a libtool library, object or program, all the files associated
  58221. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  58222. - ;;
  58223. -
  58224. -compile)
  58225. - $echo \
  58226. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  58227. -
  58228. -Compile a source file into a libtool library object.
  58229. -
  58230. -This mode accepts the following additional options:
  58231. -
  58232. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  58233. - -prefer-pic try to building PIC objects only
  58234. - -prefer-non-pic try to building non-PIC objects only
  58235. - -static always build a \`.o' file suitable for static linking
  58236. -
  58237. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  58238. -from the given SOURCEFILE.
  58239. -
  58240. -The output file name is determined by removing the directory component from
  58241. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  58242. -library object suffix, \`.lo'."
  58243. - ;;
  58244. -
  58245. -execute)
  58246. - $echo \
  58247. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  58248. -
  58249. -Automatically set library path, then run a program.
  58250. -
  58251. -This mode accepts the following additional options:
  58252. -
  58253. - -dlopen FILE add the directory containing FILE to the library path
  58254. -
  58255. -This mode sets the library path environment variable according to \`-dlopen'
  58256. -flags.
  58257. -
  58258. -If any of the ARGS are libtool executable wrappers, then they are translated
  58259. -into their corresponding uninstalled binary, and any of their required library
  58260. -directories are added to the library path.
  58261. -
  58262. -Then, COMMAND is executed, with ARGS as arguments."
  58263. - ;;
  58264. -
  58265. -finish)
  58266. - $echo \
  58267. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  58268. -
  58269. -Complete the installation of libtool libraries.
  58270. -
  58271. -Each LIBDIR is a directory that contains libtool libraries.
  58272. -
  58273. -The commands that this mode executes may require superuser privileges. Use
  58274. -the \`--dry-run' option if you just want to see what would be executed."
  58275. - ;;
  58276. -
  58277. -install)
  58278. - $echo \
  58279. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  58280. -
  58281. -Install executables or libraries.
  58282. -
  58283. -INSTALL-COMMAND is the installation command. The first component should be
  58284. -either the \`install' or \`cp' program.
  58285. -
  58286. -The rest of the components are interpreted as arguments to that command (only
  58287. -BSD-compatible install options are recognized)."
  58288. - ;;
  58289. -
  58290. -link)
  58291. - $echo \
  58292. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  58293. -
  58294. -Link object files or libraries together to form another library, or to
  58295. -create an executable program.
  58296. +exit $exit_status
  58297. -LINK-COMMAND is a command using the C compiler that you would use to create
  58298. -a program from several object files.
  58299. -
  58300. -The following components of LINK-COMMAND are treated specially:
  58301. -
  58302. - -all-static do not do any dynamic linking at all
  58303. - -avoid-version do not add a version suffix if possible
  58304. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  58305. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  58306. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  58307. - -export-symbols SYMFILE
  58308. - try to export only the symbols listed in SYMFILE
  58309. - -export-symbols-regex REGEX
  58310. - try to export only the symbols matching REGEX
  58311. - -LLIBDIR search LIBDIR for required installed libraries
  58312. - -lNAME OUTPUT-FILE requires the installed library libNAME
  58313. - -module build a library that can dlopened
  58314. - -no-fast-install disable the fast-install mode
  58315. - -no-install link a not-installable executable
  58316. - -no-undefined declare that a library does not refer to external symbols
  58317. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  58318. - -objectlist FILE Use a list of object files found in FILE to specify objects
  58319. - -precious-files-regex REGEX
  58320. - don't remove output files matching REGEX
  58321. - -release RELEASE specify package release information
  58322. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  58323. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  58324. - -static do not do any dynamic linking of uninstalled libtool libraries
  58325. - -static-libtool-libs
  58326. - do not do any dynamic linking of libtool libraries
  58327. - -version-info CURRENT[:REVISION[:AGE]]
  58328. - specify library version info [each variable defaults to 0]
  58329. -
  58330. -All other options (arguments beginning with \`-') are ignored.
  58331. -
  58332. -Every other argument is treated as a filename. Files ending in \`.la' are
  58333. -treated as uninstalled libtool libraries, other files are standard or library
  58334. -object files.
  58335. -
  58336. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  58337. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  58338. -required, except when creating a convenience library.
  58339. -
  58340. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  58341. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  58342. -
  58343. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  58344. -is created, otherwise an executable program is created."
  58345. - ;;
  58346. -
  58347. -uninstall)
  58348. - $echo \
  58349. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  58350. -
  58351. -Remove libraries from an installation directory.
  58352. -
  58353. -RM is the name of the program to use to delete files associated with each FILE
  58354. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  58355. -to RM.
  58356. -
  58357. -If FILE is a libtool library, all the files associated with it are deleted.
  58358. -Otherwise, only FILE itself is deleted using RM."
  58359. - ;;
  58360. -
  58361. -*)
  58362. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  58363. - $echo "$help" 1>&2
  58364. - exit $EXIT_FAILURE
  58365. - ;;
  58366. -esac
  58367. -
  58368. -$echo
  58369. -$echo "Try \`$modename --help' for more information about other modes."
  58370. -
  58371. -exit $?
  58372. # The TAGs below are defined such that we never get into a situation
  58373. # in which we disable both kinds of libraries. Given conflicting
  58374. @@ -6943,14 +8397,17 @@
  58375. # configuration. But we'll never go from static-only to shared-only.
  58376. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  58377. -disable_libs=shared
  58378. +build_libtool_libs=no
  58379. +build_old_libs=yes
  58380. # ### END LIBTOOL TAG CONFIG: disable-shared
  58381. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  58382. -disable_libs=static
  58383. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  58384. # ### END LIBTOOL TAG CONFIG: disable-static
  58385. # Local Variables:
  58386. # mode:shell-script
  58387. # sh-indentation:2
  58388. # End:
  58389. +# vi:sw=2
  58390. +
  58391. diff -Nur libxkbfile-1.0.6.orig/Makefile.in libxkbfile-1.0.6/Makefile.in
  58392. --- libxkbfile-1.0.6.orig/Makefile.in 2009-10-07 02:09:32.000000000 +0200
  58393. +++ libxkbfile-1.0.6/Makefile.in 2011-02-19 11:59:15.493694336 +0100
  58394. @@ -1,4 +1,4 @@
  58395. -# Makefile.in generated by automake 1.11 from Makefile.am.
  58396. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  58397. # @configure_input@
  58398. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  58399. @@ -152,6 +152,7 @@
  58400. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  58401. GZIP_ENV = --best
  58402. distuninstallcheck_listfiles = find . -type f -print
  58403. +distcleancheck_listfiles = find . -type f -print
  58404. ACLOCAL = @ACLOCAL@
  58405. ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
  58406. ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
  58407. @@ -171,38 +172,36 @@
  58408. CPP = @CPP@
  58409. CPPFLAGS = @CPPFLAGS@
  58410. CWARNFLAGS = @CWARNFLAGS@
  58411. -CXX = @CXX@
  58412. -CXXCPP = @CXXCPP@
  58413. -CXXDEPMODE = @CXXDEPMODE@
  58414. -CXXFLAGS = @CXXFLAGS@
  58415. CYGPATH_W = @CYGPATH_W@
  58416. DEFS = @DEFS@
  58417. DEPDIR = @DEPDIR@
  58418. DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
  58419. DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
  58420. DSYMUTIL = @DSYMUTIL@
  58421. -ECHO = @ECHO@
  58422. +DUMPBIN = @DUMPBIN@
  58423. ECHO_C = @ECHO_C@
  58424. ECHO_N = @ECHO_N@
  58425. ECHO_T = @ECHO_T@
  58426. EGREP = @EGREP@
  58427. EXEEXT = @EXEEXT@
  58428. -F77 = @F77@
  58429. -FFLAGS = @FFLAGS@
  58430. +FGREP = @FGREP@
  58431. FILE_MAN_DIR = @FILE_MAN_DIR@
  58432. FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
  58433. GREP = @GREP@
  58434. INSTALL = @INSTALL@
  58435. +INSTALL_CMD = @INSTALL_CMD@
  58436. INSTALL_DATA = @INSTALL_DATA@
  58437. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  58438. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  58439. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  58440. +LD = @LD@
  58441. LDFLAGS = @LDFLAGS@
  58442. LIBOBJS = @LIBOBJS@
  58443. LIBS = @LIBS@
  58444. LIBTOOL = @LIBTOOL@
  58445. LIB_MAN_DIR = @LIB_MAN_DIR@
  58446. LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
  58447. +LIPO = @LIPO@
  58448. LN_S = @LN_S@
  58449. LTLIBOBJS = @LTLIBOBJS@
  58450. MAINT = @MAINT@
  58451. @@ -210,13 +209,18 @@
  58452. MISC_MAN_DIR = @MISC_MAN_DIR@
  58453. MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
  58454. MKDIR_P = @MKDIR_P@
  58455. +NM = @NM@
  58456. NMEDIT = @NMEDIT@
  58457. +OBJDUMP = @OBJDUMP@
  58458. OBJEXT = @OBJEXT@
  58459. +OTOOL = @OTOOL@
  58460. +OTOOL64 = @OTOOL64@
  58461. PACKAGE = @PACKAGE@
  58462. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  58463. PACKAGE_NAME = @PACKAGE_NAME@
  58464. PACKAGE_STRING = @PACKAGE_STRING@
  58465. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  58466. +PACKAGE_URL = @PACKAGE_URL@
  58467. PACKAGE_VERSION = @PACKAGE_VERSION@
  58468. PATH_SEPARATOR = @PATH_SEPARATOR@
  58469. PKG_CONFIG = @PKG_CONFIG@
  58470. @@ -233,8 +237,7 @@
  58471. abs_top_builddir = @abs_top_builddir@
  58472. abs_top_srcdir = @abs_top_srcdir@
  58473. ac_ct_CC = @ac_ct_CC@
  58474. -ac_ct_CXX = @ac_ct_CXX@
  58475. -ac_ct_F77 = @ac_ct_F77@
  58476. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  58477. am__include = @am__include@
  58478. am__leading_dot = @am__leading_dot@
  58479. am__quote = @am__quote@
  58480. @@ -249,7 +252,6 @@
  58481. builddir = @builddir@
  58482. datadir = @datadir@
  58483. datarootdir = @datarootdir@
  58484. -distcleancheck_listfiles = @distcleancheck_listfiles@
  58485. docdir = @docdir@
  58486. dvidir = @dvidir@
  58487. exec_prefix = @exec_prefix@
  58488. @@ -266,6 +268,7 @@
  58489. libexecdir = @libexecdir@
  58490. localedir = @localedir@
  58491. localstatedir = @localstatedir@
  58492. +lt_ECHO = @lt_ECHO@
  58493. mandir = @mandir@
  58494. mkdir_p = @mkdir_p@
  58495. oldincludedir = @oldincludedir@
  58496. @@ -380,7 +383,7 @@
  58497. # (which will cause the Makefiles to be regenerated when you run `make');
  58498. # (2) otherwise, pass the desired values on the `make' command line.
  58499. $(RECURSIVE_TARGETS):
  58500. - @failcom='exit 1'; \
  58501. + @fail= failcom='exit 1'; \
  58502. for f in x $$MAKEFLAGS; do \
  58503. case $$f in \
  58504. *=* | --[!k]*);; \
  58505. @@ -405,7 +408,7 @@
  58506. fi; test -z "$$fail"
  58507. $(RECURSIVE_CLEAN_TARGETS):
  58508. - @failcom='exit 1'; \
  58509. + @fail= failcom='exit 1'; \
  58510. for f in x $$MAKEFLAGS; do \
  58511. case $$f in \
  58512. *=* | --[!k]*);; \
  58513. @@ -572,7 +575,8 @@
  58514. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  58515. dist-hook
  58516. -test -n "$(am__skip_mode_fix)" \
  58517. - || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  58518. + || find "$(distdir)" -type d ! -perm -755 \
  58519. + -exec chmod u+rwx,go+rx {} \; -o \
  58520. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  58521. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  58522. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  58523. @@ -616,17 +620,17 @@
  58524. distcheck: dist
  58525. case '$(DIST_ARCHIVES)' in \
  58526. *.tar.gz*) \
  58527. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  58528. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  58529. *.tar.bz2*) \
  58530. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  58531. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  58532. *.tar.lzma*) \
  58533. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  58534. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  58535. *.tar.xz*) \
  58536. xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  58537. *.tar.Z*) \
  58538. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  58539. *.shar.gz*) \
  58540. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  58541. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  58542. *.zip*) \
  58543. unzip $(distdir).zip ;;\
  58544. esac
  58545. diff -Nur libxkbfile-1.0.6.orig/src/Makefile.in libxkbfile-1.0.6/src/Makefile.in
  58546. --- libxkbfile-1.0.6.orig/src/Makefile.in 2009-10-07 02:09:31.000000000 +0200
  58547. +++ libxkbfile-1.0.6/src/Makefile.in 2011-02-19 11:59:15.393567867 +0100
  58548. @@ -1,4 +1,4 @@
  58549. -# Makefile.in generated by automake 1.11 from Makefile.am.
  58550. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  58551. # @configure_input@
  58552. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  58553. @@ -132,38 +132,36 @@
  58554. CPP = @CPP@
  58555. CPPFLAGS = @CPPFLAGS@
  58556. CWARNFLAGS = @CWARNFLAGS@
  58557. -CXX = @CXX@
  58558. -CXXCPP = @CXXCPP@
  58559. -CXXDEPMODE = @CXXDEPMODE@
  58560. -CXXFLAGS = @CXXFLAGS@
  58561. CYGPATH_W = @CYGPATH_W@
  58562. DEFS = @DEFS@
  58563. DEPDIR = @DEPDIR@
  58564. DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
  58565. DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
  58566. DSYMUTIL = @DSYMUTIL@
  58567. -ECHO = @ECHO@
  58568. +DUMPBIN = @DUMPBIN@
  58569. ECHO_C = @ECHO_C@
  58570. ECHO_N = @ECHO_N@
  58571. ECHO_T = @ECHO_T@
  58572. EGREP = @EGREP@
  58573. EXEEXT = @EXEEXT@
  58574. -F77 = @F77@
  58575. -FFLAGS = @FFLAGS@
  58576. +FGREP = @FGREP@
  58577. FILE_MAN_DIR = @FILE_MAN_DIR@
  58578. FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
  58579. GREP = @GREP@
  58580. INSTALL = @INSTALL@
  58581. +INSTALL_CMD = @INSTALL_CMD@
  58582. INSTALL_DATA = @INSTALL_DATA@
  58583. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  58584. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  58585. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  58586. +LD = @LD@
  58587. LDFLAGS = @LDFLAGS@
  58588. LIBOBJS = @LIBOBJS@
  58589. LIBS = @LIBS@
  58590. LIBTOOL = @LIBTOOL@
  58591. LIB_MAN_DIR = @LIB_MAN_DIR@
  58592. LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
  58593. +LIPO = @LIPO@
  58594. LN_S = @LN_S@
  58595. LTLIBOBJS = @LTLIBOBJS@
  58596. MAINT = @MAINT@
  58597. @@ -171,13 +169,18 @@
  58598. MISC_MAN_DIR = @MISC_MAN_DIR@
  58599. MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
  58600. MKDIR_P = @MKDIR_P@
  58601. +NM = @NM@
  58602. NMEDIT = @NMEDIT@
  58603. +OBJDUMP = @OBJDUMP@
  58604. OBJEXT = @OBJEXT@
  58605. +OTOOL = @OTOOL@
  58606. +OTOOL64 = @OTOOL64@
  58607. PACKAGE = @PACKAGE@
  58608. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  58609. PACKAGE_NAME = @PACKAGE_NAME@
  58610. PACKAGE_STRING = @PACKAGE_STRING@
  58611. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  58612. +PACKAGE_URL = @PACKAGE_URL@
  58613. PACKAGE_VERSION = @PACKAGE_VERSION@
  58614. PATH_SEPARATOR = @PATH_SEPARATOR@
  58615. PKG_CONFIG = @PKG_CONFIG@
  58616. @@ -194,8 +197,7 @@
  58617. abs_top_builddir = @abs_top_builddir@
  58618. abs_top_srcdir = @abs_top_srcdir@
  58619. ac_ct_CC = @ac_ct_CC@
  58620. -ac_ct_CXX = @ac_ct_CXX@
  58621. -ac_ct_F77 = @ac_ct_F77@
  58622. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  58623. am__include = @am__include@
  58624. am__leading_dot = @am__leading_dot@
  58625. am__quote = @am__quote@
  58626. @@ -210,7 +212,6 @@
  58627. builddir = @builddir@
  58628. datadir = @datadir@
  58629. datarootdir = @datarootdir@
  58630. -distcleancheck_listfiles = @distcleancheck_listfiles@
  58631. docdir = @docdir@
  58632. dvidir = @dvidir@
  58633. exec_prefix = @exec_prefix@
  58634. @@ -227,6 +228,7 @@
  58635. libexecdir = @libexecdir@
  58636. localedir = @localedir@
  58637. localstatedir = @localstatedir@
  58638. +lt_ECHO = @lt_ECHO@
  58639. mandir = @mandir@
  58640. mkdir_p = @mkdir_p@
  58641. oldincludedir = @oldincludedir@