autotool.patch 1.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279
  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 rpcbind-0.2.0.orig/aclocal.m4 rpcbind-0.2.0/aclocal.m4
  6. --- rpcbind-0.2.0.orig/aclocal.m4 2009-05-29 18:37:49.000000000 +0200
  7. +++ rpcbind-0.2.0/aclocal.m4 2011-02-17 19:38:35.953558696 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -13,108 +13,194 @@
  18. m4_ifndef([AC_AUTOCONF_VERSION],
  19. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. -m4_if(AC_AUTOCONF_VERSION, [2.63],,
  21. -[m4_warning([this file was generated for autoconf 2.63.
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. You have another version of autoconf. It may work, but is not guaranteed to.
  25. If you have problems, you may need to regenerate the build system entirely.
  26. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. +#
  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. -# serial 52 AC_PROG_LIBTOOL
  66. +# serial 56 LT_INIT
  67. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  68. -# -----------------------------------------------------------
  69. -# If this macro is not defined by Autoconf, define it here.
  70. -m4_ifdef([AC_PROVIDE_IFELSE],
  71. - [],
  72. - [m4_define([AC_PROVIDE_IFELSE],
  73. - [m4_ifdef([AC_PROVIDE_$1],
  74. - [$2], [$3])])])
  75. +# LT_PREREQ(VERSION)
  76. +# ------------------
  77. +# Complain and exit if this libtool version is less that VERSION.
  78. +m4_defun([LT_PREREQ],
  79. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  80. + [m4_default([$3],
  81. + [m4_fatal([Libtool version $1 or higher is required],
  82. + 63)])],
  83. + [$2])])
  84. -# AC_PROG_LIBTOOL
  85. -# ---------------
  86. -AC_DEFUN([AC_PROG_LIBTOOL],
  87. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  88. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  89. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  90. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  91. - [AC_LIBTOOL_CXX],
  92. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  93. - ])])
  94. -dnl And a similar setup for Fortran 77 support
  95. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  96. - [AC_LIBTOOL_F77],
  97. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  98. -])])
  99. -
  100. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  101. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  102. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  103. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  104. - [AC_LIBTOOL_GCJ],
  105. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [ifdef([AC_PROG_GCJ],
  110. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  111. - ifdef([A][M_PROG_GCJ],
  112. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([LT_AC_PROG_GCJ],
  114. - [define([LT_AC_PROG_GCJ],
  115. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  116. -])])# AC_PROG_LIBTOOL
  117. +# _LT_CHECK_BUILDDIR
  118. +# ------------------
  119. +# Complain if the absolute build directory name contains unusual characters
  120. +m4_defun([_LT_CHECK_BUILDDIR],
  121. +[case `pwd` in
  122. + *\ * | *\ *)
  123. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  124. +esac
  125. +])
  126. -# _AC_PROG_LIBTOOL
  127. -# ----------------
  128. -AC_DEFUN([_AC_PROG_LIBTOOL],
  129. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  130. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  133. +# LT_INIT([OPTIONS])
  134. +# ------------------
  135. +AC_DEFUN([LT_INIT],
  136. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  137. +AC_BEFORE([$0], [LT_LANG])dnl
  138. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  139. +AC_BEFORE([$0], [LTDL_INIT])dnl
  140. +m4_require([_LT_CHECK_BUILDDIR])dnl
  141. +
  142. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  143. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  144. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  145. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  146. +dnl unless we require an AC_DEFUNed macro:
  147. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  148. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  149. +AC_REQUIRE([LTVERSION_VERSION])dnl
  150. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  151. +m4_require([_LT_PROG_LTMAIN])dnl
  152. +
  153. +dnl Parse OPTIONS
  154. +_LT_SET_OPTIONS([$0], [$1])
  155. # This can be used to rebuild libtool when needed
  156. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  157. +LIBTOOL_DEPS="$ltmain"
  158. # Always use our own libtool.
  159. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  160. AC_SUBST(LIBTOOL)dnl
  161. -# Prevent multiple expansion
  162. -define([AC_PROG_LIBTOOL], [])
  163. -])# _AC_PROG_LIBTOOL
  164. +_LT_SETUP
  165. +# Only expand once:
  166. +m4_define([LT_INIT])
  167. +])# LT_INIT
  168. +
  169. +# Old names:
  170. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  171. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  172. +dnl aclocal-1.4 backwards compatibility:
  173. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  174. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  175. -# AC_LIBTOOL_SETUP
  176. -# ----------------
  177. -AC_DEFUN([AC_LIBTOOL_SETUP],
  178. -[AC_PREREQ(2.50)dnl
  179. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  180. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  181. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  182. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  183. +
  184. +# _LT_CC_BASENAME(CC)
  185. +# -------------------
  186. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  187. +m4_defun([_LT_CC_BASENAME],
  188. +[for cc_temp in $1""; do
  189. + case $cc_temp in
  190. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  191. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  192. + \-*) ;;
  193. + *) break;;
  194. + esac
  195. +done
  196. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  197. +])
  198. +
  199. +
  200. +# _LT_FILEUTILS_DEFAULTS
  201. +# ----------------------
  202. +# It is okay to use these file commands and assume they have been set
  203. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  204. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  205. +[: ${CP="cp -f"}
  206. +: ${MV="mv -f"}
  207. +: ${RM="rm -f"}
  208. +])# _LT_FILEUTILS_DEFAULTS
  209. +
  210. +
  211. +# _LT_SETUP
  212. +# ---------
  213. +m4_defun([_LT_SETUP],
  214. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  215. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  216. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  217. +_LT_DECL([], [host], [0])dnl
  218. +_LT_DECL([], [host_os], [0])dnl
  219. +dnl
  220. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  221. +_LT_DECL([], [build], [0])dnl
  222. +_LT_DECL([], [build_os], [0])dnl
  223. +dnl
  224. AC_REQUIRE([AC_PROG_CC])dnl
  225. -AC_REQUIRE([AC_PROG_LD])dnl
  226. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  227. -AC_REQUIRE([AC_PROG_NM])dnl
  228. -
  229. +AC_REQUIRE([LT_PATH_LD])dnl
  230. +AC_REQUIRE([LT_PATH_NM])dnl
  231. +dnl
  232. AC_REQUIRE([AC_PROG_LN_S])dnl
  233. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  234. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  235. -AC_REQUIRE([AC_OBJEXT])dnl
  236. -AC_REQUIRE([AC_EXEEXT])dnl
  237. +test -z "$LN_S" && LN_S="ln -s"
  238. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  239. dnl
  240. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  241. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  242. -AC_LIBTOOL_OBJDIR
  243. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  244. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  245. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  246. +dnl
  247. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  248. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  249. +m4_require([_LT_CMD_RELOAD])dnl
  250. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  251. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  252. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  253. +
  254. +_LT_CONFIG_LIBTOOL_INIT([
  255. +# See if we are running on zsh, and set the options which allow our
  256. +# commands through without removal of \ escapes INIT.
  257. +if test -n "\${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +])
  261. +if test -n "${ZSH_VERSION+set}" ; then
  262. + setopt NO_GLOB_SUBST
  263. +fi
  264. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  265. -_LT_AC_PROG_ECHO_BACKSLASH
  266. +_LT_CHECK_OBJDIR
  267. +
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -130,116 +216,653 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. # All known linkers require a `.a' archive for static linking (except MSVC,
  297. # which needs '.lib').
  298. libext=a
  299. -ltmain="$ac_aux_dir/ltmain.sh"
  300. -ofile="$default_ofile"
  301. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  302. -AC_CHECK_TOOL(AR, ar, false)
  303. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  304. -AC_CHECK_TOOL(STRIP, strip, :)
  305. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. old_CC="$CC"
  307. old_CFLAGS="$CFLAGS"
  308. # Set sane defaults for various variables
  309. -test -z "$AR" && AR=ar
  310. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  311. -test -z "$AS" && AS=as
  312. test -z "$CC" && CC=cc
  313. test -z "$LTCC" && LTCC=$CC
  314. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. test -z "$LD" && LD=ld
  317. -test -z "$LN_S" && LN_S="ln -s"
  318. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  319. -test -z "$NM" && NM=nm
  320. -test -z "$SED" && SED=sed
  321. -test -z "$OBJDUMP" && OBJDUMP=objdump
  322. -test -z "$RANLIB" && RANLIB=:
  323. -test -z "$STRIP" && STRIP=:
  324. test -z "$ac_objext" && ac_objext=o
  325. -# Determine commands to create old-style static archives.
  326. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  327. -old_postinstall_cmds='chmod 644 $oldlib'
  328. -old_postuninstall_cmds=
  329. -
  330. -if test -n "$RANLIB"; then
  331. - case $host_os in
  332. - openbsd*)
  333. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  334. - ;;
  335. - *)
  336. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  337. - ;;
  338. - esac
  339. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  340. -fi
  341. -
  342. _LT_CC_BASENAME([$compiler])
  343. # Only perform the check for file, if the check method requires it
  344. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  345. case $deplibs_check_method in
  346. file_magic*)
  347. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  348. - AC_PATH_MAGIC
  349. + _LT_PATH_MAGIC
  350. fi
  351. ;;
  352. esac
  353. -_LT_REQUIRED_DARWIN_CHECKS
  354. +# Use C for the default configuration in the libtool script
  355. +LT_SUPPORTED_TAG([CC])
  356. +_LT_LANG_C_CONFIG
  357. +_LT_LANG_DEFAULT_CONFIG
  358. +_LT_CONFIG_COMMANDS
  359. +])# _LT_SETUP
  360. +
  361. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  362. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  363. -enable_win32_dll=yes, enable_win32_dll=no)
  364. -
  365. -AC_ARG_ENABLE([libtool-lock],
  366. - [AC_HELP_STRING([--disable-libtool-lock],
  367. - [avoid locking (might break parallel builds)])])
  368. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  369. +# _LT_PROG_LTMAIN
  370. +# ---------------
  371. +# Note that this code is called both from `configure', and `config.status'
  372. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  373. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  374. +# so we pass a copy along to make sure it has a sensible value anyway.
  375. +m4_defun([_LT_PROG_LTMAIN],
  376. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  377. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  378. +ltmain="$ac_aux_dir/ltmain.sh"
  379. +])# _LT_PROG_LTMAIN
  380. -AC_ARG_WITH([pic],
  381. - [AC_HELP_STRING([--with-pic],
  382. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  383. - [pic_mode="$withval"],
  384. - [pic_mode=default])
  385. -test -z "$pic_mode" && pic_mode=default
  386. -# Use C for the default configuration in the libtool script
  387. -tagname=
  388. -AC_LIBTOOL_LANG_C_CONFIG
  389. -_LT_AC_TAGCONFIG
  390. -])# AC_LIBTOOL_SETUP
  391. +
  392. +# So that we can recreate a full libtool script including additional
  393. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  394. +# in macros and then make a single call at the end using the `libtool'
  395. +# label.
  396. +
  397. +
  398. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  399. +# ----------------------------------------
  400. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  401. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  402. +[m4_ifval([$1],
  403. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  404. + [$1
  405. +])])])
  406. +
  407. +# Initialize.
  408. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  409. +
  410. +
  411. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  412. +# ------------------------------
  413. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  414. +m4_define([_LT_CONFIG_LIBTOOL],
  415. +[m4_ifval([$1],
  416. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  417. + [$1
  418. +])])])
  419. +
  420. +# Initialize.
  421. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  422. +
  423. +
  424. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  425. +# -----------------------------------------------------
  426. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  427. +[_LT_CONFIG_LIBTOOL([$1])
  428. +_LT_CONFIG_LIBTOOL_INIT([$2])
  429. +])
  430. +
  431. +
  432. +# _LT_FORMAT_COMMENT([COMMENT])
  433. +# -----------------------------
  434. +# Add leading comment marks to the start of each line, and a trailing
  435. +# full-stop to the whole comment if one is not present already.
  436. +m4_define([_LT_FORMAT_COMMENT],
  437. +[m4_ifval([$1], [
  438. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  439. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  440. +)])
  441. +
  442. +
  443. +
  444. +
  445. +
  446. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  447. +# -------------------------------------------------------------------
  448. +# CONFIGNAME is the name given to the value in the libtool script.
  449. +# VARNAME is the (base) name used in the configure script.
  450. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  451. +# VARNAME. Any other value will be used directly.
  452. +m4_define([_LT_DECL],
  453. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  454. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  455. + [m4_ifval([$1], [$1], [$2])])
  456. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  457. + m4_ifval([$4],
  458. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  459. + lt_dict_add_subkey([lt_decl_dict], [$2],
  460. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  461. +])
  462. +
  463. +
  464. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  465. +# --------------------------------------------------------
  466. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  467. +
  468. +
  469. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  470. +# ------------------------------------------------
  471. +m4_define([lt_decl_tag_varnames],
  472. +[_lt_decl_filter([tagged?], [yes], $@)])
  473. +
  474. +
  475. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  476. +# ---------------------------------------------------------
  477. +m4_define([_lt_decl_filter],
  478. +[m4_case([$#],
  479. + [0], [m4_fatal([$0: too few arguments: $#])],
  480. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  481. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  482. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  483. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  484. +])
  485. +
  486. +
  487. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  488. +# --------------------------------------------------
  489. +m4_define([lt_decl_quote_varnames],
  490. +[_lt_decl_filter([value], [1], $@)])
  491. +
  492. +
  493. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  494. +# ---------------------------------------------------
  495. +m4_define([lt_decl_dquote_varnames],
  496. +[_lt_decl_filter([value], [2], $@)])
  497. +
  498. +
  499. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  500. +# ---------------------------------------------------
  501. +m4_define([lt_decl_varnames_tagged],
  502. +[m4_assert([$# <= 2])dnl
  503. +_$0(m4_quote(m4_default([$1], [[, ]])),
  504. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  505. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  506. +m4_define([_lt_decl_varnames_tagged],
  507. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  508. +
  509. +
  510. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  511. +# ------------------------------------------------
  512. +m4_define([lt_decl_all_varnames],
  513. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  514. + m4_if([$2], [],
  515. + m4_quote(lt_decl_varnames),
  516. + m4_quote(m4_shift($@))))[]dnl
  517. +])
  518. +m4_define([_lt_decl_all_varnames],
  519. +[lt_join($@, lt_decl_varnames_tagged([$1],
  520. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  521. +])
  522. +
  523. +
  524. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  525. +# ------------------------------------
  526. +# Quote a variable value, and forward it to `config.status' so that its
  527. +# declaration there will have the same value as in `configure'. VARNAME
  528. +# must have a single quote delimited value for this to work.
  529. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  530. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  531. +
  532. +
  533. +# _LT_CONFIG_STATUS_DECLARATIONS
  534. +# ------------------------------
  535. +# We delimit libtool config variables with single quotes, so when
  536. +# we write them to config.status, we have to be sure to quote all
  537. +# embedded single quotes properly. In configure, this macro expands
  538. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  539. +#
  540. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  541. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  542. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  543. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  544. +
  545. +
  546. +# _LT_LIBTOOL_TAGS
  547. +# ----------------
  548. +# Output comment and list of tags supported by the script
  549. +m4_defun([_LT_LIBTOOL_TAGS],
  550. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  551. +available_tags="_LT_TAGS"dnl
  552. +])
  553. +
  554. +
  555. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  556. +# -----------------------------------
  557. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  558. +# expand to a commented shell variable setting:
  559. +#
  560. +# # Some comment about what VAR is for.
  561. +# visible_name=$lt_internal_name
  562. +m4_define([_LT_LIBTOOL_DECLARE],
  563. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  564. + [description])))[]dnl
  565. +m4_pushdef([_libtool_name],
  566. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  567. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  568. + [0], [_libtool_name=[$]$1],
  569. + [1], [_libtool_name=$lt_[]$1],
  570. + [2], [_libtool_name=$lt_[]$1],
  571. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  572. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  573. +])
  574. +
  575. +
  576. +# _LT_LIBTOOL_CONFIG_VARS
  577. +# -----------------------
  578. +# Produce commented declarations of non-tagged libtool config variables
  579. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  580. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  581. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  582. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  583. +[m4_foreach([_lt_var],
  584. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  585. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  586. +
  587. +
  588. +# _LT_LIBTOOL_TAG_VARS(TAG)
  589. +# -------------------------
  590. +m4_define([_LT_LIBTOOL_TAG_VARS],
  591. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  592. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  593. +
  594. +
  595. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  596. +# ------------------------------
  597. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  598. -# _LT_AC_SYS_COMPILER
  599. +# _LT_CONFIG_COMMANDS
  600. # -------------------
  601. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  602. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  603. +# variables for single and double quote escaping we saved from calls
  604. +# to _LT_DECL, we can put quote escaped variables declarations
  605. +# into `config.status', and then the shell code to quote escape them in
  606. +# for loops in `config.status'. Finally, any additional code accumulated
  607. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  608. +m4_defun([_LT_CONFIG_COMMANDS],
  609. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  610. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  611. + dnl instead of duplicating it all over again into config.status,
  612. + dnl then we will have config.status run $CONFIG_LT later, so it
  613. + dnl needs to know what name is stored there:
  614. + [AC_CONFIG_COMMANDS([libtool],
  615. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  616. + dnl If the libtool generation code is destined for config.status,
  617. + dnl expand the accumulated commands and init code now:
  618. + [AC_CONFIG_COMMANDS([libtool],
  619. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  620. +])#_LT_CONFIG_COMMANDS
  621. +
  622. +
  623. +# Initialize.
  624. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  625. +[
  626. +
  627. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  628. +# if CDPATH is set.
  629. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  630. +
  631. +sed_quote_subst='$sed_quote_subst'
  632. +double_quote_subst='$double_quote_subst'
  633. +delay_variable_subst='$delay_variable_subst'
  634. +_LT_CONFIG_STATUS_DECLARATIONS
  635. +LTCC='$LTCC'
  636. +LTCFLAGS='$LTCFLAGS'
  637. +compiler='$compiler_DEFAULT'
  638. +
  639. +# Quote evaled strings.
  640. +for var in lt_decl_all_varnames([[ \
  641. +]], lt_decl_quote_varnames); do
  642. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  643. + *[[\\\\\\\`\\"\\\$]]*)
  644. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  645. + ;;
  646. + *)
  647. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  648. + ;;
  649. + esac
  650. +done
  651. +
  652. +# Double-quote double-evaled strings.
  653. +for var in lt_decl_all_varnames([[ \
  654. +]], lt_decl_dquote_varnames); do
  655. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  656. + *[[\\\\\\\`\\"\\\$]]*)
  657. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  658. + ;;
  659. + *)
  660. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  661. + ;;
  662. + esac
  663. +done
  664. +
  665. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  666. +case \$lt_ECHO in
  667. +*'\\\[$]0 --fallback-echo"')dnl "
  668. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  669. + ;;
  670. +esac
  671. +
  672. +_LT_OUTPUT_LIBTOOL_INIT
  673. +])
  674. +
  675. +
  676. +# LT_OUTPUT
  677. +# ---------
  678. +# This macro allows early generation of the libtool script (before
  679. +# AC_OUTPUT is called), incase it is used in configure for compilation
  680. +# tests.
  681. +AC_DEFUN([LT_OUTPUT],
  682. +[: ${CONFIG_LT=./config.lt}
  683. +AC_MSG_NOTICE([creating $CONFIG_LT])
  684. +cat >"$CONFIG_LT" <<_LTEOF
  685. +#! $SHELL
  686. +# Generated by $as_me.
  687. +# Run this file to recreate a libtool stub with the current configuration.
  688. +
  689. +lt_cl_silent=false
  690. +SHELL=\${CONFIG_SHELL-$SHELL}
  691. +_LTEOF
  692. +
  693. +cat >>"$CONFIG_LT" <<\_LTEOF
  694. +AS_SHELL_SANITIZE
  695. +_AS_PREPARE
  696. +
  697. +exec AS_MESSAGE_FD>&1
  698. +exec AS_MESSAGE_LOG_FD>>config.log
  699. +{
  700. + echo
  701. + AS_BOX([Running $as_me.])
  702. +} >&AS_MESSAGE_LOG_FD
  703. +
  704. +lt_cl_help="\
  705. +\`$as_me' creates a local libtool stub from the current configuration,
  706. +for use in further configure time tests before the real libtool is
  707. +generated.
  708. +
  709. +Usage: $[0] [[OPTIONS]]
  710. +
  711. + -h, --help print this help, then exit
  712. + -V, --version print version number, then exit
  713. + -q, --quiet do not print progress messages
  714. + -d, --debug don't remove temporary files
  715. +
  716. +Report bugs to <bug-libtool@gnu.org>."
  717. +
  718. +lt_cl_version="\
  719. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  720. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  721. +configured by $[0], generated by m4_PACKAGE_STRING.
  722. +
  723. +Copyright (C) 2008 Free Software Foundation, Inc.
  724. +This config.lt script is free software; the Free Software Foundation
  725. +gives unlimited permision to copy, distribute and modify it."
  726. +
  727. +while test $[#] != 0
  728. +do
  729. + case $[1] in
  730. + --version | --v* | -V )
  731. + echo "$lt_cl_version"; exit 0 ;;
  732. + --help | --h* | -h )
  733. + echo "$lt_cl_help"; exit 0 ;;
  734. + --debug | --d* | -d )
  735. + debug=: ;;
  736. + --quiet | --q* | --silent | --s* | -q )
  737. + lt_cl_silent=: ;;
  738. +
  739. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  740. +Try \`$[0] --help' for more information.]) ;;
  741. +
  742. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  743. +Try \`$[0] --help' for more information.]) ;;
  744. + esac
  745. + shift
  746. +done
  747. +
  748. +if $lt_cl_silent; then
  749. + exec AS_MESSAGE_FD>/dev/null
  750. +fi
  751. +_LTEOF
  752. +
  753. +cat >>"$CONFIG_LT" <<_LTEOF
  754. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  755. +_LTEOF
  756. +
  757. +cat >>"$CONFIG_LT" <<\_LTEOF
  758. +AC_MSG_NOTICE([creating $ofile])
  759. +_LT_OUTPUT_LIBTOOL_COMMANDS
  760. +AS_EXIT(0)
  761. +_LTEOF
  762. +chmod +x "$CONFIG_LT"
  763. +
  764. +# configure is writing to config.log, but config.lt does its own redirection,
  765. +# appending to config.log, which fails on DOS, as config.log is still kept
  766. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  767. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  768. +if test "$no_create" != yes; then
  769. + lt_cl_success=:
  770. + test "$silent" = yes &&
  771. + lt_config_lt_args="$lt_config_lt_args --quiet"
  772. + exec AS_MESSAGE_LOG_FD>/dev/null
  773. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  774. + exec AS_MESSAGE_LOG_FD>>config.log
  775. + $lt_cl_success || AS_EXIT(1)
  776. +fi
  777. +])# LT_OUTPUT
  778. +
  779. +
  780. +# _LT_CONFIG(TAG)
  781. +# ---------------
  782. +# If TAG is the built-in tag, create an initial libtool script with a
  783. +# default configuration from the untagged config vars. Otherwise add code
  784. +# to config.status for appending the configuration named by TAG from the
  785. +# matching tagged config vars.
  786. +m4_defun([_LT_CONFIG],
  787. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  788. +_LT_CONFIG_SAVE_COMMANDS([
  789. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  790. + m4_if(_LT_TAG, [C], [
  791. + # See if we are running on zsh, and set the options which allow our
  792. + # commands through without removal of \ escapes.
  793. + if test -n "${ZSH_VERSION+set}" ; then
  794. + setopt NO_GLOB_SUBST
  795. + fi
  796. +
  797. + cfgfile="${ofile}T"
  798. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  799. + $RM "$cfgfile"
  800. +
  801. + cat <<_LT_EOF >> "$cfgfile"
  802. +#! $SHELL
  803. +
  804. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  805. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  806. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  807. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  808. +#
  809. +_LT_COPYING
  810. +_LT_LIBTOOL_TAGS
  811. +
  812. +# ### BEGIN LIBTOOL CONFIG
  813. +_LT_LIBTOOL_CONFIG_VARS
  814. +_LT_LIBTOOL_TAG_VARS
  815. +# ### END LIBTOOL CONFIG
  816. +
  817. +_LT_EOF
  818. +
  819. + case $host_os in
  820. + aix3*)
  821. + cat <<\_LT_EOF >> "$cfgfile"
  822. +# AIX sometimes has problems with the GCC collect2 program. For some
  823. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  824. +# vanish in a puff of smoke.
  825. +if test "X${COLLECT_NAMES+set}" != Xset; then
  826. + COLLECT_NAMES=
  827. + export COLLECT_NAMES
  828. +fi
  829. +_LT_EOF
  830. + ;;
  831. + esac
  832. +
  833. + _LT_PROG_LTMAIN
  834. +
  835. + # We use sed instead of cat because bash on DJGPP gets confused if
  836. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  837. + # text mode, it properly converts lines to CR/LF. This bash problem
  838. + # is reportedly fixed, but why not run on old versions too?
  839. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  840. + || (rm -f "$cfgfile"; exit 1)
  841. +
  842. + _LT_PROG_XSI_SHELLFNS
  843. +
  844. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  845. + || (rm -f "$cfgfile"; exit 1)
  846. +
  847. + mv -f "$cfgfile" "$ofile" ||
  848. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  849. + chmod +x "$ofile"
  850. +],
  851. +[cat <<_LT_EOF >> "$ofile"
  852. +
  853. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  854. +dnl in a comment (ie after a #).
  855. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  856. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  857. +# ### END LIBTOOL TAG CONFIG: $1
  858. +_LT_EOF
  859. +])dnl /m4_if
  860. +],
  861. +[m4_if([$1], [], [
  862. + PACKAGE='$PACKAGE'
  863. + VERSION='$VERSION'
  864. + TIMESTAMP='$TIMESTAMP'
  865. + RM='$RM'
  866. + ofile='$ofile'], [])
  867. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  868. +])# _LT_CONFIG
  869. +
  870. +
  871. +# LT_SUPPORTED_TAG(TAG)
  872. +# ---------------------
  873. +# Trace this macro to discover what tags are supported by the libtool
  874. +# --tag option, using:
  875. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  876. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  877. +
  878. +
  879. +# C support is built-in for now
  880. +m4_define([_LT_LANG_C_enabled], [])
  881. +m4_define([_LT_TAGS], [])
  882. +
  883. +
  884. +# LT_LANG(LANG)
  885. +# -------------
  886. +# Enable libtool support for the given language if not already enabled.
  887. +AC_DEFUN([LT_LANG],
  888. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  889. +m4_case([$1],
  890. + [C], [_LT_LANG(C)],
  891. + [C++], [_LT_LANG(CXX)],
  892. + [Java], [_LT_LANG(GCJ)],
  893. + [Fortran 77], [_LT_LANG(F77)],
  894. + [Fortran], [_LT_LANG(FC)],
  895. + [Windows Resource], [_LT_LANG(RC)],
  896. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  897. + [_LT_LANG($1)],
  898. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  899. +])# LT_LANG
  900. +
  901. +
  902. +# _LT_LANG(LANGNAME)
  903. +# ------------------
  904. +m4_defun([_LT_LANG],
  905. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  906. + [LT_SUPPORTED_TAG([$1])dnl
  907. + m4_append([_LT_TAGS], [$1 ])dnl
  908. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  909. + _LT_LANG_$1_CONFIG($1)])dnl
  910. +])# _LT_LANG
  911. +
  912. +
  913. +# _LT_LANG_DEFAULT_CONFIG
  914. +# -----------------------
  915. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  916. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  917. + [LT_LANG(CXX)],
  918. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  919. +
  920. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  921. + [LT_LANG(F77)],
  922. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  923. +
  924. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  925. + [LT_LANG(FC)],
  926. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  927. +
  928. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  929. +dnl pulling things in needlessly.
  930. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  931. + [LT_LANG(GCJ)],
  932. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  933. + [LT_LANG(GCJ)],
  934. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  935. + [LT_LANG(GCJ)],
  936. + [m4_ifdef([AC_PROG_GCJ],
  937. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  938. + m4_ifdef([A][M_PROG_GCJ],
  939. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  940. + m4_ifdef([LT_PROG_GCJ],
  941. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  942. +
  943. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  944. + [LT_LANG(RC)],
  945. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  946. +])# _LT_LANG_DEFAULT_CONFIG
  947. +
  948. +# Obsolete macros:
  949. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  950. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  951. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  952. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  953. +dnl aclocal-1.4 backwards compatibility:
  954. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  955. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  956. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  957. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  958. +
  959. +
  960. +# _LT_TAG_COMPILER
  961. +# ----------------
  962. +m4_defun([_LT_TAG_COMPILER],
  963. [AC_REQUIRE([AC_PROG_CC])dnl
  964. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  965. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  966. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  967. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  968. +
  969. # If no C compiler was specified, use CC.
  970. LTCC=${LTCC-"$CC"}
  971. @@ -248,36 +871,20 @@
  972. # Allow CC to be a program name with arguments.
  973. compiler=$CC
  974. -])# _LT_AC_SYS_COMPILER
  975. -
  976. -
  977. -# _LT_CC_BASENAME(CC)
  978. -# -------------------
  979. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  980. -AC_DEFUN([_LT_CC_BASENAME],
  981. -[for cc_temp in $1""; do
  982. - case $cc_temp in
  983. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  984. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  985. - \-*) ;;
  986. - *) break;;
  987. - esac
  988. -done
  989. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  990. -])
  991. +])# _LT_TAG_COMPILER
  992. # _LT_COMPILER_BOILERPLATE
  993. # ------------------------
  994. # Check for compiler boilerplate output or warnings with
  995. # the simple compiler test code.
  996. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  997. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  998. +m4_defun([_LT_COMPILER_BOILERPLATE],
  999. +[m4_require([_LT_DECL_SED])dnl
  1000. ac_outfile=conftest.$ac_objext
  1001. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1003. _lt_compiler_boilerplate=`cat conftest.err`
  1004. -$rm conftest*
  1005. +$RM conftest*
  1006. ])# _LT_COMPILER_BOILERPLATE
  1007. @@ -285,39 +892,57 @@
  1008. # ----------------------
  1009. # Check for linker boilerplate output or warnings with
  1010. # the simple link test code.
  1011. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1012. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1013. +m4_defun([_LT_LINKER_BOILERPLATE],
  1014. +[m4_require([_LT_DECL_SED])dnl
  1015. ac_outfile=conftest.$ac_objext
  1016. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1017. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1018. _lt_linker_boilerplate=`cat conftest.err`
  1019. -$rm -r conftest*
  1020. +$RM -r conftest*
  1021. ])# _LT_LINKER_BOILERPLATE
  1022. # _LT_REQUIRED_DARWIN_CHECKS
  1023. -# --------------------------
  1024. -# Check for some things on darwin
  1025. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1026. +# -------------------------
  1027. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1028. case $host_os in
  1029. rhapsody* | darwin*)
  1030. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1031. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1032. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1033. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1034. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1035. + _LT_DECL([], [DSYMUTIL], [1],
  1036. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1037. + _LT_DECL([], [NMEDIT], [1],
  1038. + [Tool to change global to local symbols on Mac OS X])
  1039. + _LT_DECL([], [LIPO], [1],
  1040. + [Tool to manipulate fat objects and archives on Mac OS X])
  1041. + _LT_DECL([], [OTOOL], [1],
  1042. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1043. + _LT_DECL([], [OTOOL64], [1],
  1044. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1045. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1046. [lt_cv_apple_cc_single_mod=no
  1047. if test -z "${LT_MULTI_MODULE}"; then
  1048. - # By default we will add the -single_module flag. You can override
  1049. - # by either setting the environment variable LT_MULTI_MODULE
  1050. - # non-empty at configure time, or by adding -multi_module to the
  1051. - # link flags.
  1052. - echo "int foo(void){return 1;}" > conftest.c
  1053. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1054. - -dynamiclib ${wl}-single_module conftest.c
  1055. - if test -f libconftest.dylib; then
  1056. - lt_cv_apple_cc_single_mod=yes
  1057. - rm -rf libconftest.dylib*
  1058. - fi
  1059. - rm conftest.c
  1060. + # By default we will add the -single_module flag. You can override
  1061. + # by either setting the environment variable LT_MULTI_MODULE
  1062. + # non-empty at configure time, or by adding -multi_module to the
  1063. + # link flags.
  1064. + rm -rf libconftest.dylib*
  1065. + echo "int foo(void){return 1;}" > conftest.c
  1066. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1067. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1068. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1069. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1070. + _lt_result=$?
  1071. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1072. + lt_cv_apple_cc_single_mod=yes
  1073. + else
  1074. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1075. + fi
  1076. + rm -rf libconftest.dylib*
  1077. + rm -f conftest.*
  1078. fi])
  1079. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1080. [lt_cv_ld_exported_symbols_list],
  1081. @@ -326,26 +951,26 @@
  1082. echo "_main" > conftest.sym
  1083. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1084. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1085. - [lt_cv_ld_exported_symbols_list=yes],
  1086. - [lt_cv_ld_exported_symbols_list=no])
  1087. - LDFLAGS="$save_LDFLAGS"
  1088. + [lt_cv_ld_exported_symbols_list=yes],
  1089. + [lt_cv_ld_exported_symbols_list=no])
  1090. + LDFLAGS="$save_LDFLAGS"
  1091. ])
  1092. case $host_os in
  1093. - rhapsody* | darwin1.[[0123]])
  1094. + rhapsody* | darwin1.[[012]])
  1095. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1096. darwin1.*)
  1097. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1098. - darwin*)
  1099. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1100. + darwin*) # darwin 5.x on
  1101. # if running on 10.5 or later, the deployment target defaults
  1102. # to the OS version, if on x86, and 10.4, the deployment
  1103. # target defaults to 10.4. Don't you love it?
  1104. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1105. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1106. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1107. - 10.[[012]]*)
  1108. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1109. - 10.*)
  1110. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1111. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1112. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1113. + 10.[[012]]*)
  1114. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1115. + 10.*)
  1116. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1117. esac
  1118. ;;
  1119. esac
  1120. @@ -355,10 +980,10 @@
  1121. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1122. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1123. else
  1124. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1125. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1126. fi
  1127. if test "$DSYMUTIL" != ":"; then
  1128. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1129. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1130. else
  1131. _lt_dsymutil=
  1132. fi
  1133. @@ -366,16 +991,51 @@
  1134. esac
  1135. ])
  1136. -# _LT_AC_SYS_LIBPATH_AIX
  1137. -# ----------------------
  1138. -# Links a minimal program and checks the executable
  1139. +
  1140. +# _LT_DARWIN_LINKER_FEATURES
  1141. +# --------------------------
  1142. +# Checks for linker and compiler features on darwin
  1143. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1144. +[
  1145. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1146. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1147. + _LT_TAGVAR(hardcode_direct, $1)=no
  1148. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1149. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1150. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1151. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1152. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1153. + case $cc_basename in
  1154. + ifort*) _lt_dar_can_shared=yes ;;
  1155. + *) _lt_dar_can_shared=$GCC ;;
  1156. + esac
  1157. + if test "$_lt_dar_can_shared" = "yes"; then
  1158. + output_verbose_link_cmd=echo
  1159. + _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}"
  1160. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1161. + _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}"
  1162. + _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}"
  1163. + m4_if([$1], [CXX],
  1164. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1165. + _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}"
  1166. + _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}"
  1167. + fi
  1168. +],[])
  1169. + else
  1170. + _LT_TAGVAR(ld_shlibs, $1)=no
  1171. + fi
  1172. +])
  1173. +
  1174. +# _LT_SYS_MODULE_PATH_AIX
  1175. +# -----------------------
  1176. +# Links a minimal program and checks the executable
  1177. # for the system default hardcoded library path. In most cases,
  1178. # this is /usr/lib:/lib, but when the MPI compilers are used
  1179. # the location of the communication and MPI libs are included too.
  1180. # If we don't find anything, use the default library path according
  1181. # to the aix ld manual.
  1182. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1183. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1184. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1185. +[m4_require([_LT_DECL_SED])dnl
  1186. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1187. lt_aix_libpath_sed='
  1188. /Import File Strings/,/^$/ {
  1189. @@ -390,45 +1050,45 @@
  1190. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1191. fi],[])
  1192. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1193. -])# _LT_AC_SYS_LIBPATH_AIX
  1194. +])# _LT_SYS_MODULE_PATH_AIX
  1195. -# _LT_AC_SHELL_INIT(ARG)
  1196. -# ----------------------
  1197. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1198. +# _LT_SHELL_INIT(ARG)
  1199. +# -------------------
  1200. +m4_define([_LT_SHELL_INIT],
  1201. [ifdef([AC_DIVERSION_NOTICE],
  1202. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1203. [AC_DIVERT_PUSH(NOTICE)])
  1204. $1
  1205. AC_DIVERT_POP
  1206. -])# _LT_AC_SHELL_INIT
  1207. +])# _LT_SHELL_INIT
  1208. -# _LT_AC_PROG_ECHO_BACKSLASH
  1209. -# --------------------------
  1210. +# _LT_PROG_ECHO_BACKSLASH
  1211. +# -----------------------
  1212. # Add some code to the start of the generated configure script which
  1213. # will find an echo command which doesn't interpret backslashes.
  1214. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1215. -[_LT_AC_SHELL_INIT([
  1216. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1217. +[_LT_SHELL_INIT([
  1218. # Check that we are running under the correct shell.
  1219. SHELL=${CONFIG_SHELL-/bin/sh}
  1220. -case X$ECHO in
  1221. +case X$lt_ECHO in
  1222. X*--fallback-echo)
  1223. # Remove one level of quotation (which was required for Make).
  1224. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1225. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1226. ;;
  1227. esac
  1228. -echo=${ECHO-echo}
  1229. +ECHO=${lt_ECHO-echo}
  1230. if test "X[$]1" = X--no-reexec; then
  1231. # Discard the --no-reexec flag, and continue.
  1232. shift
  1233. elif test "X[$]1" = X--fallback-echo; then
  1234. # Avoid inline document here, it may be left over
  1235. :
  1236. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1237. - # Yippee, $echo works!
  1238. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1239. + # Yippee, $ECHO works!
  1240. :
  1241. else
  1242. # Restart under the correct shell.
  1243. @@ -438,9 +1098,9 @@
  1244. if test "X[$]1" = X--fallback-echo; then
  1245. # used as fallback echo
  1246. shift
  1247. - cat <<EOF
  1248. + cat <<_LT_EOF
  1249. [$]*
  1250. -EOF
  1251. +_LT_EOF
  1252. exit 0
  1253. fi
  1254. @@ -448,124 +1108,127 @@
  1255. # if CDPATH is set.
  1256. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1257. -if test -z "$ECHO"; then
  1258. -if test "X${echo_test_string+set}" != Xset; then
  1259. -# find a string as large as possible, as long as the shell can cope with it
  1260. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1261. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1262. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1263. - echo_test_string=`eval $cmd` &&
  1264. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1265. - then
  1266. - break
  1267. - fi
  1268. - done
  1269. -fi
  1270. +if test -z "$lt_ECHO"; then
  1271. + if test "X${echo_test_string+set}" != Xset; then
  1272. + # find a string as large as possible, as long as the shell can cope with it
  1273. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1274. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1275. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1276. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1277. + then
  1278. + break
  1279. + fi
  1280. + done
  1281. + fi
  1282. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1283. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1284. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1285. - :
  1286. -else
  1287. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1288. - # backslashes. This makes it impossible to quote backslashes using
  1289. - # echo "$something" | sed 's/\\/\\\\/g'
  1290. - #
  1291. - # So, first we look for a working echo in the user's PATH.
  1292. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1293. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1295. + :
  1296. + else
  1297. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1298. + # backslashes. This makes it impossible to quote backslashes using
  1299. + # echo "$something" | sed 's/\\/\\\\/g'
  1300. + #
  1301. + # So, first we look for a working echo in the user's PATH.
  1302. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1303. - for dir in $PATH /usr/ucb; do
  1304. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1305. + for dir in $PATH /usr/ucb; do
  1306. + IFS="$lt_save_ifs"
  1307. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1308. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1309. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1310. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1311. + ECHO="$dir/echo"
  1312. + break
  1313. + fi
  1314. + done
  1315. IFS="$lt_save_ifs"
  1316. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1317. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1318. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1319. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1320. - echo="$dir/echo"
  1321. - break
  1322. - fi
  1323. - done
  1324. - IFS="$lt_save_ifs"
  1325. - if test "X$echo" = Xecho; then
  1326. - # We didn't find a better echo, so look for alternatives.
  1327. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1328. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1329. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1330. - # This shell has a builtin print -r that does the trick.
  1331. - echo='print -r'
  1332. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1333. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1334. - # If we have ksh, try running configure again with it.
  1335. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1336. - export ORIGINAL_CONFIG_SHELL
  1337. - CONFIG_SHELL=/bin/ksh
  1338. - export CONFIG_SHELL
  1339. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1340. - else
  1341. - # Try using printf.
  1342. - echo='printf %s\n'
  1343. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1344. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1345. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1346. - # Cool, printf works
  1347. - :
  1348. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1349. - test "X$echo_testing_string" = 'X\t' &&
  1350. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1351. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1352. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1353. - export CONFIG_SHELL
  1354. - SHELL="$CONFIG_SHELL"
  1355. - export SHELL
  1356. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1357. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1358. - test "X$echo_testing_string" = 'X\t' &&
  1359. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1360. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1361. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1362. + if test "X$ECHO" = Xecho; then
  1363. + # We didn't find a better echo, so look for alternatives.
  1364. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1365. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1366. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1367. + # This shell has a builtin print -r that does the trick.
  1368. + ECHO='print -r'
  1369. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1370. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1371. + # If we have ksh, try running configure again with it.
  1372. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1373. + export ORIGINAL_CONFIG_SHELL
  1374. + CONFIG_SHELL=/bin/ksh
  1375. + export CONFIG_SHELL
  1376. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1377. else
  1378. - # maybe with a smaller string...
  1379. - prev=:
  1380. + # Try using printf.
  1381. + ECHO='printf %s\n'
  1382. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1383. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1384. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1385. + # Cool, printf works
  1386. + :
  1387. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1388. + test "X$echo_testing_string" = 'X\t' &&
  1389. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1390. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1391. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1392. + export CONFIG_SHELL
  1393. + SHELL="$CONFIG_SHELL"
  1394. + export SHELL
  1395. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1396. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1397. + test "X$echo_testing_string" = 'X\t' &&
  1398. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1399. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1400. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1401. + else
  1402. + # maybe with a smaller string...
  1403. + prev=:
  1404. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1405. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1406. - then
  1407. - break
  1408. - fi
  1409. - prev="$cmd"
  1410. - done
  1411. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1412. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1413. + then
  1414. + break
  1415. + fi
  1416. + prev="$cmd"
  1417. + done
  1418. - if test "$prev" != 'sed 50q "[$]0"'; then
  1419. - echo_test_string=`eval $prev`
  1420. - export echo_test_string
  1421. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1422. - else
  1423. - # Oops. We lost completely, so just stick with echo.
  1424. - echo=echo
  1425. - fi
  1426. + if test "$prev" != 'sed 50q "[$]0"'; then
  1427. + echo_test_string=`eval $prev`
  1428. + export echo_test_string
  1429. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1430. + else
  1431. + # Oops. We lost completely, so just stick with echo.
  1432. + ECHO=echo
  1433. + fi
  1434. + fi
  1435. fi
  1436. fi
  1437. fi
  1438. fi
  1439. -fi
  1440. # Copy echo and quote the copy suitably for passing to libtool from
  1441. # the Makefile, instead of quoting the original, which is used later.
  1442. -ECHO=$echo
  1443. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1444. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1445. +lt_ECHO=$ECHO
  1446. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1447. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1448. fi
  1449. -AC_SUBST(ECHO)
  1450. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1451. +AC_SUBST(lt_ECHO)
  1452. +])
  1453. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1454. +_LT_DECL([], [ECHO], [1],
  1455. + [An echo program that does not interpret backslashes])
  1456. +])# _LT_PROG_ECHO_BACKSLASH
  1457. -# _LT_AC_LOCK
  1458. -# -----------
  1459. -AC_DEFUN([_LT_AC_LOCK],
  1460. +# _LT_ENABLE_LOCK
  1461. +# ---------------
  1462. +m4_defun([_LT_ENABLE_LOCK],
  1463. [AC_ARG_ENABLE([libtool-lock],
  1464. - [AC_HELP_STRING([--disable-libtool-lock],
  1465. - [avoid locking (might break parallel builds)])])
  1466. + [AS_HELP_STRING([--disable-libtool-lock],
  1467. + [avoid locking (might break parallel builds)])])
  1468. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1469. # Some flags need to be propagated to the compiler or linker for good
  1470. @@ -576,12 +1239,12 @@
  1471. echo 'int i;' > conftest.$ac_ext
  1472. if AC_TRY_EVAL(ac_compile); then
  1473. case `/usr/bin/file conftest.$ac_objext` in
  1474. - *ELF-32*)
  1475. - HPUX_IA64_MODE="32"
  1476. - ;;
  1477. - *ELF-64*)
  1478. - HPUX_IA64_MODE="64"
  1479. - ;;
  1480. + *ELF-32*)
  1481. + HPUX_IA64_MODE="32"
  1482. + ;;
  1483. + *ELF-64*)
  1484. + HPUX_IA64_MODE="64"
  1485. + ;;
  1486. esac
  1487. fi
  1488. rm -rf conftest*
  1489. @@ -590,80 +1253,79 @@
  1490. # Find out which ABI we are using.
  1491. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1492. if AC_TRY_EVAL(ac_compile); then
  1493. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1494. - case `/usr/bin/file conftest.$ac_objext` in
  1495. - *32-bit*)
  1496. - LD="${LD-ld} -melf32bsmip"
  1497. - ;;
  1498. - *N32*)
  1499. - LD="${LD-ld} -melf32bmipn32"
  1500. - ;;
  1501. - *64-bit*)
  1502. - LD="${LD-ld} -melf64bmip"
  1503. - ;;
  1504. - esac
  1505. - else
  1506. - case `/usr/bin/file conftest.$ac_objext` in
  1507. - *32-bit*)
  1508. - LD="${LD-ld} -32"
  1509. - ;;
  1510. - *N32*)
  1511. - LD="${LD-ld} -n32"
  1512. - ;;
  1513. - *64-bit*)
  1514. - LD="${LD-ld} -64"
  1515. - ;;
  1516. - esac
  1517. - fi
  1518. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1519. + case `/usr/bin/file conftest.$ac_objext` in
  1520. + *32-bit*)
  1521. + LD="${LD-ld} -melf32bsmip"
  1522. + ;;
  1523. + *N32*)
  1524. + LD="${LD-ld} -melf32bmipn32"
  1525. + ;;
  1526. + *64-bit*)
  1527. + LD="${LD-ld} -melf64bmip"
  1528. + ;;
  1529. + esac
  1530. + else
  1531. + case `/usr/bin/file conftest.$ac_objext` in
  1532. + *32-bit*)
  1533. + LD="${LD-ld} -32"
  1534. + ;;
  1535. + *N32*)
  1536. + LD="${LD-ld} -n32"
  1537. + ;;
  1538. + *64-bit*)
  1539. + LD="${LD-ld} -64"
  1540. + ;;
  1541. + esac
  1542. + fi
  1543. fi
  1544. rm -rf conftest*
  1545. ;;
  1546. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1547. -s390*-*linux*|sparc*-*linux*)
  1548. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1549. # Find out which ABI we are using.
  1550. echo 'int i;' > conftest.$ac_ext
  1551. if AC_TRY_EVAL(ac_compile); then
  1552. case `/usr/bin/file conftest.o` in
  1553. - *32-bit*)
  1554. - case $host in
  1555. - x86_64-*kfreebsd*-gnu)
  1556. - LD="${LD-ld} -m elf_i386_fbsd"
  1557. - ;;
  1558. - x86_64-*linux*)
  1559. - LD="${LD-ld} -m elf_i386"
  1560. - ;;
  1561. - ppc64-*linux*|powerpc64-*linux*)
  1562. - LD="${LD-ld} -m elf32ppclinux"
  1563. - ;;
  1564. - s390x-*linux*)
  1565. - LD="${LD-ld} -m elf_s390"
  1566. - ;;
  1567. - sparc64-*linux*)
  1568. - LD="${LD-ld} -m elf32_sparc"
  1569. - ;;
  1570. - esac
  1571. - ;;
  1572. - *64-bit*)
  1573. - libsuff=64
  1574. - case $host in
  1575. - x86_64-*kfreebsd*-gnu)
  1576. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1577. - ;;
  1578. - x86_64-*linux*)
  1579. - LD="${LD-ld} -m elf_x86_64"
  1580. - ;;
  1581. - ppc*-*linux*|powerpc*-*linux*)
  1582. - LD="${LD-ld} -m elf64ppc"
  1583. - ;;
  1584. - s390*-*linux*)
  1585. - LD="${LD-ld} -m elf64_s390"
  1586. - ;;
  1587. - sparc*-*linux*)
  1588. - LD="${LD-ld} -m elf64_sparc"
  1589. - ;;
  1590. - esac
  1591. - ;;
  1592. + *32-bit*)
  1593. + case $host in
  1594. + x86_64-*kfreebsd*-gnu)
  1595. + LD="${LD-ld} -m elf_i386_fbsd"
  1596. + ;;
  1597. + x86_64-*linux*)
  1598. + LD="${LD-ld} -m elf_i386"
  1599. + ;;
  1600. + ppc64-*linux*|powerpc64-*linux*)
  1601. + LD="${LD-ld} -m elf32ppclinux"
  1602. + ;;
  1603. + s390x-*linux*)
  1604. + LD="${LD-ld} -m elf_s390"
  1605. + ;;
  1606. + sparc64-*linux*)
  1607. + LD="${LD-ld} -m elf32_sparc"
  1608. + ;;
  1609. + esac
  1610. + ;;
  1611. + *64-bit*)
  1612. + case $host in
  1613. + x86_64-*kfreebsd*-gnu)
  1614. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1615. + ;;
  1616. + x86_64-*linux*)
  1617. + LD="${LD-ld} -m elf_x86_64"
  1618. + ;;
  1619. + ppc*-*linux*|powerpc*-*linux*)
  1620. + LD="${LD-ld} -m elf64ppc"
  1621. + ;;
  1622. + s390*-*linux*|s390*-*tpf*)
  1623. + LD="${LD-ld} -m elf64_s390"
  1624. + ;;
  1625. + sparc*-*linux*)
  1626. + LD="${LD-ld} -m elf64_sparc"
  1627. + ;;
  1628. + esac
  1629. + ;;
  1630. esac
  1631. fi
  1632. rm -rf conftest*
  1633. @@ -675,7 +1337,7 @@
  1634. CFLAGS="$CFLAGS -belf"
  1635. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1636. [AC_LANG_PUSH(C)
  1637. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1638. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1639. AC_LANG_POP])
  1640. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1641. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1642. @@ -691,7 +1353,7 @@
  1643. case $lt_cv_prog_gnu_ld in
  1644. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1645. *)
  1646. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1647. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1648. LD="${LD-ld} -64"
  1649. fi
  1650. ;;
  1651. @@ -701,30 +1363,63 @@
  1652. fi
  1653. rm -rf conftest*
  1654. ;;
  1655. -
  1656. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1657. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1658. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1659. - AC_CHECK_TOOL(AS, as, false)
  1660. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1661. - ;;
  1662. - ])
  1663. esac
  1664. need_locks="$enable_libtool_lock"
  1665. +])# _LT_ENABLE_LOCK
  1666. +
  1667. +
  1668. +# _LT_CMD_OLD_ARCHIVE
  1669. +# -------------------
  1670. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1671. +[AC_CHECK_TOOL(AR, ar, false)
  1672. +test -z "$AR" && AR=ar
  1673. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1674. +_LT_DECL([], [AR], [1], [The archiver])
  1675. +_LT_DECL([], [AR_FLAGS], [1])
  1676. +
  1677. +AC_CHECK_TOOL(STRIP, strip, :)
  1678. +test -z "$STRIP" && STRIP=:
  1679. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1680. +
  1681. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1682. +test -z "$RANLIB" && RANLIB=:
  1683. +_LT_DECL([], [RANLIB], [1],
  1684. + [Commands used to install an old-style archive])
  1685. +
  1686. +# Determine commands to create old-style static archives.
  1687. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1688. +old_postinstall_cmds='chmod 644 $oldlib'
  1689. +old_postuninstall_cmds=
  1690. -])# _LT_AC_LOCK
  1691. +if test -n "$RANLIB"; then
  1692. + case $host_os in
  1693. + openbsd*)
  1694. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1695. + ;;
  1696. + *)
  1697. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1698. + ;;
  1699. + esac
  1700. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1701. +fi
  1702. +_LT_DECL([], [old_postinstall_cmds], [2])
  1703. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1704. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1705. + [Commands used to build an old-style archive])
  1706. +])# _LT_CMD_OLD_ARCHIVE
  1707. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1708. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1709. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1710. # ----------------------------------------------------------------
  1711. # Check whether the given compiler option works
  1712. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1713. -[AC_REQUIRE([LT_AC_PROG_SED])
  1714. +AC_DEFUN([_LT_COMPILER_OPTION],
  1715. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1716. +m4_require([_LT_DECL_SED])dnl
  1717. AC_CACHE_CHECK([$1], [$2],
  1718. [$2=no
  1719. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1720. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1722. lt_compiler_flag="$3"
  1723. # Insert the option either (1) after the last *FLAGS variable, or
  1724. @@ -744,29 +1439,35 @@
  1725. if (exit $ac_status) && test -s "$ac_outfile"; then
  1726. # The compiler can only warn and ignore the option if not recognized
  1727. # So say no if there are warnings other than the usual output.
  1728. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1729. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1730. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1731. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1732. $2=yes
  1733. fi
  1734. fi
  1735. - $rm conftest*
  1736. + $RM conftest*
  1737. ])
  1738. if test x"[$]$2" = xyes; then
  1739. - ifelse([$5], , :, [$5])
  1740. + m4_if([$5], , :, [$5])
  1741. else
  1742. - ifelse([$6], , :, [$6])
  1743. + m4_if([$6], , :, [$6])
  1744. fi
  1745. -])# AC_LIBTOOL_COMPILER_OPTION
  1746. +])# _LT_COMPILER_OPTION
  1747. -
  1748. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1749. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1750. -# ------------------------------------------------------------
  1751. -# Check whether the given compiler option works
  1752. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1753. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1754. +# Old name:
  1755. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1756. +dnl aclocal-1.4 backwards compatibility:
  1757. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1758. +
  1759. +
  1760. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1761. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1762. +# ----------------------------------------------------
  1763. +# Check whether the given linker option works
  1764. +AC_DEFUN([_LT_LINKER_OPTION],
  1765. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1766. +m4_require([_LT_DECL_SED])dnl
  1767. AC_CACHE_CHECK([$1], [$2],
  1768. [$2=no
  1769. save_LDFLAGS="$LDFLAGS"
  1770. @@ -778,7 +1479,7 @@
  1771. if test -s conftest.err; then
  1772. # Append any errors to the config.log.
  1773. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1774. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1775. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1776. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1777. if diff conftest.exp conftest.er2 >/dev/null; then
  1778. $2=yes
  1779. @@ -787,22 +1488,28 @@
  1780. $2=yes
  1781. fi
  1782. fi
  1783. - $rm -r conftest*
  1784. + $RM -r conftest*
  1785. LDFLAGS="$save_LDFLAGS"
  1786. ])
  1787. if test x"[$]$2" = xyes; then
  1788. - ifelse([$4], , :, [$4])
  1789. + m4_if([$4], , :, [$4])
  1790. else
  1791. - ifelse([$5], , :, [$5])
  1792. + m4_if([$5], , :, [$5])
  1793. fi
  1794. -])# AC_LIBTOOL_LINKER_OPTION
  1795. +])# _LT_LINKER_OPTION
  1796. +# Old name:
  1797. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1798. +dnl aclocal-1.4 backwards compatibility:
  1799. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1800. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1801. -# --------------------------
  1802. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1803. -[# find the maximum length of command line arguments
  1804. +
  1805. +# LT_CMD_MAX_LEN
  1806. +#---------------
  1807. +AC_DEFUN([LT_CMD_MAX_LEN],
  1808. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1809. +# find the maximum length of command line arguments
  1810. AC_MSG_CHECKING([the maximum length of command line arguments])
  1811. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1812. i=0
  1813. @@ -824,7 +1531,7 @@
  1814. lt_cv_sys_max_cmd_len=-1;
  1815. ;;
  1816. - cygwin* | mingw*)
  1817. + cygwin* | mingw* | cegcc*)
  1818. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1819. # about 5 minutes as the teststring grows exponentially.
  1820. # Worse, since 9x/ME are not pre-emptively multitasking,
  1821. @@ -879,7 +1586,7 @@
  1822. sysv5* | sco5v6* | sysv4.2uw2*)
  1823. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1824. if test -n "$kargmax"; then
  1825. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1826. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1827. else
  1828. lt_cv_sys_max_cmd_len=32768
  1829. fi
  1830. @@ -890,20 +1597,28 @@
  1831. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1832. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1833. else
  1834. + # Make teststring a little bigger before we do anything with it.
  1835. + # a 1K string should be a reasonable start.
  1836. + for i in 1 2 3 4 5 6 7 8 ; do
  1837. + teststring=$teststring$teststring
  1838. + done
  1839. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1840. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1841. - = "XX$teststring") >/dev/null 2>&1 &&
  1842. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1843. - lt_cv_sys_max_cmd_len=$new_result &&
  1844. + # If test is not a shell built-in, we'll probably end up computing a
  1845. + # maximum length that is only half of the actual maximum length, but
  1846. + # we can't tell.
  1847. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1848. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1849. test $i != 17 # 1/2 MB should be enough
  1850. do
  1851. i=`expr $i + 1`
  1852. teststring=$teststring$teststring
  1853. done
  1854. + # Only check the string length outside the loop.
  1855. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1856. teststring=
  1857. - # Add a significant safety factor because C++ compilers can tack on massive
  1858. - # amounts of additional arguments before passing them to the linker.
  1859. - # It appears as though 1/2 is a usable value.
  1860. + # Add a significant safety factor because C++ compilers can tack on
  1861. + # massive amounts of additional arguments before passing them to the
  1862. + # linker. It appears as though 1/2 is a usable value.
  1863. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1864. fi
  1865. ;;
  1866. @@ -914,27 +1629,35 @@
  1867. else
  1868. AC_MSG_RESULT(none)
  1869. fi
  1870. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1871. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1872. +_LT_DECL([], [max_cmd_len], [0],
  1873. + [What is the maximum length of a command?])
  1874. +])# LT_CMD_MAX_LEN
  1875. +# Old name:
  1876. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1877. +dnl aclocal-1.4 backwards compatibility:
  1878. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1879. -# _LT_AC_CHECK_DLFCN
  1880. -# ------------------
  1881. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1882. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1883. -])# _LT_AC_CHECK_DLFCN
  1884. +
  1885. +# _LT_HEADER_DLFCN
  1886. +# ----------------
  1887. +m4_defun([_LT_HEADER_DLFCN],
  1888. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1889. +])# _LT_HEADER_DLFCN
  1890. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1891. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1892. -# ---------------------------------------------------------------------
  1893. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1894. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1895. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1896. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1897. +# ----------------------------------------------------------------
  1898. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1899. +[m4_require([_LT_HEADER_DLFCN])dnl
  1900. if test "$cross_compiling" = yes; then :
  1901. [$4]
  1902. else
  1903. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1904. lt_status=$lt_dlunknown
  1905. - cat > conftest.$ac_ext <<EOF
  1906. + cat > conftest.$ac_ext <<_LT_EOF
  1907. [#line __oline__ "configure"
  1908. #include "confdefs.h"
  1909. @@ -976,10 +1699,6 @@
  1910. # endif
  1911. #endif
  1912. -#ifdef __cplusplus
  1913. -extern "C" void exit (int);
  1914. -#endif
  1915. -
  1916. void fnord() { int i=42;}
  1917. int main ()
  1918. {
  1919. @@ -995,9 +1714,9 @@
  1920. else
  1921. puts (dlerror ());
  1922. - exit (status);
  1923. + return status;
  1924. }]
  1925. -EOF
  1926. +_LT_EOF
  1927. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1928. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1929. lt_status=$?
  1930. @@ -1012,13 +1731,13 @@
  1931. fi
  1932. fi
  1933. rm -fr conftest*
  1934. -])# _LT_AC_TRY_DLOPEN_SELF
  1935. +])# _LT_TRY_DLOPEN_SELF
  1936. -# AC_LIBTOOL_DLOPEN_SELF
  1937. -# ----------------------
  1938. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1939. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1940. +# LT_SYS_DLOPEN_SELF
  1941. +# ------------------
  1942. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1943. +[m4_require([_LT_HEADER_DLFCN])dnl
  1944. if test "x$enable_dlopen" != xyes; then
  1945. enable_dlopen=unknown
  1946. enable_dlopen_self=unknown
  1947. @@ -1034,15 +1753,15 @@
  1948. lt_cv_dlopen_self=yes
  1949. ;;
  1950. - mingw* | pw32*)
  1951. + mingw* | pw32* | cegcc*)
  1952. lt_cv_dlopen="LoadLibrary"
  1953. lt_cv_dlopen_libs=
  1954. - ;;
  1955. + ;;
  1956. cygwin*)
  1957. lt_cv_dlopen="dlopen"
  1958. lt_cv_dlopen_libs=
  1959. - ;;
  1960. + ;;
  1961. darwin*)
  1962. # if libdl is installed we need to link against it
  1963. @@ -1052,7 +1771,7 @@
  1964. lt_cv_dlopen_libs=
  1965. lt_cv_dlopen_self=yes
  1966. ])
  1967. - ;;
  1968. + ;;
  1969. *)
  1970. AC_CHECK_FUNC([shl_load],
  1971. @@ -1094,7 +1813,7 @@
  1972. AC_CACHE_CHECK([whether a program can dlopen itself],
  1973. lt_cv_dlopen_self, [dnl
  1974. - _LT_AC_TRY_DLOPEN_SELF(
  1975. + _LT_TRY_DLOPEN_SELF(
  1976. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1977. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1978. ])
  1979. @@ -1102,8 +1821,8 @@
  1980. if test "x$lt_cv_dlopen_self" = xyes; then
  1981. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1982. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1983. - lt_cv_dlopen_self_static, [dnl
  1984. - _LT_AC_TRY_DLOPEN_SELF(
  1985. + lt_cv_dlopen_self_static, [dnl
  1986. + _LT_TRY_DLOPEN_SELF(
  1987. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1988. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1989. ])
  1990. @@ -1125,19 +1844,32 @@
  1991. *) enable_dlopen_self_static=unknown ;;
  1992. esac
  1993. fi
  1994. -])# AC_LIBTOOL_DLOPEN_SELF
  1995. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1996. + [Whether dlopen is supported])
  1997. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1998. + [Whether dlopen of programs is supported])
  1999. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2000. + [Whether dlopen of statically linked programs is supported])
  2001. +])# LT_SYS_DLOPEN_SELF
  2002. +
  2003. +# Old name:
  2004. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2005. +dnl aclocal-1.4 backwards compatibility:
  2006. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2007. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2008. -# ---------------------------------
  2009. -# Check to see if options -c and -o are simultaneously supported by compiler
  2010. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2011. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2012. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2013. +# _LT_COMPILER_C_O([TAGNAME])
  2014. +# ---------------------------
  2015. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2016. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2017. +m4_defun([_LT_COMPILER_C_O],
  2018. +[m4_require([_LT_DECL_SED])dnl
  2019. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2020. +m4_require([_LT_TAG_COMPILER])dnl
  2021. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2022. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2023. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2024. - $rm -r conftest 2>/dev/null
  2025. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2026. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2027. + $RM -r conftest 2>/dev/null
  2028. mkdir conftest
  2029. cd conftest
  2030. mkdir out
  2031. @@ -1161,37 +1893,41 @@
  2032. then
  2033. # The compiler can only warn and ignore the option if not recognized
  2034. # So say no if there are warnings
  2035. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2036. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2037. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2038. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2039. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2040. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2041. fi
  2042. fi
  2043. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2044. - $rm conftest*
  2045. + $RM conftest*
  2046. # SGI C++ compiler will create directory out/ii_files/ for
  2047. # template instantiation
  2048. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2049. - $rm out/* && rmdir out
  2050. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2051. + $RM out/* && rmdir out
  2052. cd ..
  2053. - rmdir conftest
  2054. - $rm conftest*
  2055. + $RM -r conftest
  2056. + $RM conftest*
  2057. ])
  2058. -])# AC_LIBTOOL_PROG_CC_C_O
  2059. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2060. + [Does compiler simultaneously support -c and -o options?])
  2061. +])# _LT_COMPILER_C_O
  2062. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2063. -# -----------------------------------------
  2064. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2065. +# ----------------------------------
  2066. # Check to see if we can do hard links to lock some files if needed
  2067. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2068. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2069. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2070. +[m4_require([_LT_ENABLE_LOCK])dnl
  2071. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2072. +_LT_COMPILER_C_O([$1])
  2073. hard_links="nottested"
  2074. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2075. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2076. # do not overwrite the value of need_locks provided by the user
  2077. AC_MSG_CHECKING([if we can lock with hard links])
  2078. hard_links=yes
  2079. - $rm conftest*
  2080. + $RM conftest*
  2081. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2082. touch conftest.a
  2083. ln conftest.a conftest.b 2>&5 || hard_links=no
  2084. @@ -1204,12 +1940,13 @@
  2085. else
  2086. need_locks=no
  2087. fi
  2088. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2089. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2090. +])# _LT_COMPILER_FILE_LOCKS
  2091. -# AC_LIBTOOL_OBJDIR
  2092. -# -----------------
  2093. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2094. +# _LT_CHECK_OBJDIR
  2095. +# ----------------
  2096. +m4_defun([_LT_CHECK_OBJDIR],
  2097. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2098. [rm -f .libs 2>/dev/null
  2099. mkdir .libs 2>/dev/null
  2100. @@ -1221,40 +1958,46 @@
  2101. fi
  2102. rmdir .libs 2>/dev/null])
  2103. objdir=$lt_cv_objdir
  2104. -])# AC_LIBTOOL_OBJDIR
  2105. +_LT_DECL([], [objdir], [0],
  2106. + [The name of the directory that contains temporary libtool files])dnl
  2107. +m4_pattern_allow([LT_OBJDIR])dnl
  2108. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2109. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2110. +])# _LT_CHECK_OBJDIR
  2111. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2112. -# ----------------------------------------------
  2113. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2114. +# --------------------------------------
  2115. # Check hardcoding attributes.
  2116. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2117. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2118. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2119. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2120. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2121. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2122. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2123. +_LT_TAGVAR(hardcode_action, $1)=
  2124. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2125. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2126. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2127. - # We can hardcode non-existant directories.
  2128. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2129. + # We can hardcode non-existent directories.
  2130. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2131. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2132. # have to relink, otherwise we might link with an installed library
  2133. # when we should be linking with a yet-to-be-installed one
  2134. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2135. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2136. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2137. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2138. # Linking always hardcodes the temporary library directory.
  2139. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2140. + _LT_TAGVAR(hardcode_action, $1)=relink
  2141. else
  2142. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2143. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2144. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2145. fi
  2146. else
  2147. # We cannot hardcode anything, or else we can only hardcode existing
  2148. # directories.
  2149. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2150. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2151. fi
  2152. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2153. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2154. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2155. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2156. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2157. # Fast installation is not supported
  2158. enable_fast_install=no
  2159. elif test "$shlibpath_overrides_runpath" = yes ||
  2160. @@ -1262,73 +2005,70 @@
  2161. # Fast installation is not necessary
  2162. enable_fast_install=needless
  2163. fi
  2164. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2165. +_LT_TAGDECL([], [hardcode_action], [0],
  2166. + [How to hardcode a shared library path into an executable])
  2167. +])# _LT_LINKER_HARDCODE_LIBPATH
  2168. -# AC_LIBTOOL_SYS_LIB_STRIP
  2169. -# ------------------------
  2170. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2171. -[striplib=
  2172. +# _LT_CMD_STRIPLIB
  2173. +# ----------------
  2174. +m4_defun([_LT_CMD_STRIPLIB],
  2175. +[m4_require([_LT_DECL_EGREP])
  2176. +striplib=
  2177. old_striplib=
  2178. AC_MSG_CHECKING([whether stripping libraries is possible])
  2179. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2180. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2181. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2182. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2183. AC_MSG_RESULT([yes])
  2184. else
  2185. # FIXME - insert some real tests, host_os isn't really good enough
  2186. case $host_os in
  2187. - darwin*)
  2188. - if test -n "$STRIP" ; then
  2189. - striplib="$STRIP -x"
  2190. - old_striplib="$STRIP -S"
  2191. - AC_MSG_RESULT([yes])
  2192. - else
  2193. - AC_MSG_RESULT([no])
  2194. -fi
  2195. - ;;
  2196. - *)
  2197. - AC_MSG_RESULT([no])
  2198. + darwin*)
  2199. + if test -n "$STRIP" ; then
  2200. + striplib="$STRIP -x"
  2201. + old_striplib="$STRIP -S"
  2202. + AC_MSG_RESULT([yes])
  2203. + else
  2204. + AC_MSG_RESULT([no])
  2205. + fi
  2206. + ;;
  2207. + *)
  2208. + AC_MSG_RESULT([no])
  2209. ;;
  2210. esac
  2211. fi
  2212. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2213. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2214. +_LT_DECL([], [striplib], [1])
  2215. +])# _LT_CMD_STRIPLIB
  2216. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2217. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2218. # -----------------------------
  2219. # PORTME Fill in your ld.so characteristics
  2220. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2221. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2222. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2223. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2224. +m4_require([_LT_DECL_EGREP])dnl
  2225. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2226. +m4_require([_LT_DECL_OBJDUMP])dnl
  2227. +m4_require([_LT_DECL_SED])dnl
  2228. AC_MSG_CHECKING([dynamic linker characteristics])
  2229. -library_names_spec=
  2230. -libname_spec='lib$name'
  2231. -soname_spec=
  2232. -shrext_cmds=".so"
  2233. -postinstall_cmds=
  2234. -postuninstall_cmds=
  2235. -finish_cmds=
  2236. -finish_eval=
  2237. -shlibpath_var=
  2238. -shlibpath_overrides_runpath=unknown
  2239. -version_type=none
  2240. -dynamic_linker="$host_os ld.so"
  2241. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2242. -m4_if($1,[],[
  2243. +m4_if([$1],
  2244. + [], [
  2245. if test "$GCC" = yes; then
  2246. case $host_os in
  2247. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2248. *) lt_awk_arg="/^libraries:/" ;;
  2249. esac
  2250. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2251. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2252. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2253. # if the path contains ";" then we assume it to be the separator
  2254. # otherwise default to the standard path separator (i.e. ":") - it is
  2255. # assumed that no part of a normal pathname contains ";" but that should
  2256. # okay in the real world where ";" in dirpaths is itself problematic.
  2257. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2258. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2259. else
  2260. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2261. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2262. fi
  2263. # Ok, now we have the path, separated by spaces, we can step through it
  2264. # and add multilib dir if necessary.
  2265. @@ -1342,7 +2082,7 @@
  2266. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2267. fi
  2268. done
  2269. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2270. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2271. BEGIN {RS=" "; FS="/|\n";} {
  2272. lt_foo="";
  2273. lt_count=0;
  2274. @@ -1362,10 +2102,23 @@
  2275. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2276. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2277. }'`
  2278. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2279. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2280. else
  2281. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2282. fi])
  2283. +library_names_spec=
  2284. +libname_spec='lib$name'
  2285. +soname_spec=
  2286. +shrext_cmds=".so"
  2287. +postinstall_cmds=
  2288. +postuninstall_cmds=
  2289. +finish_cmds=
  2290. +finish_eval=
  2291. +shlibpath_var=
  2292. +shlibpath_overrides_runpath=unknown
  2293. +version_type=none
  2294. +dynamic_linker="$host_os ld.so"
  2295. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2296. need_lib_prefix=unknown
  2297. hardcode_into_libs=no
  2298. @@ -1402,7 +2155,7 @@
  2299. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2300. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2301. echo ' yes '
  2302. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2303. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2304. :
  2305. else
  2306. can_build_shared=no
  2307. @@ -1428,9 +2181,18 @@
  2308. ;;
  2309. amigaos*)
  2310. - library_names_spec='$libname.ixlibrary $libname.a'
  2311. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2312. - 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'
  2313. + case $host_cpu in
  2314. + powerpc)
  2315. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2316. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2317. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2318. + ;;
  2319. + m68k)
  2320. + library_names_spec='$libname.ixlibrary $libname.a'
  2321. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2322. + 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'
  2323. + ;;
  2324. + esac
  2325. ;;
  2326. beos*)
  2327. @@ -1453,25 +2215,28 @@
  2328. # libtool to hard-code these into programs
  2329. ;;
  2330. -cygwin* | mingw* | pw32*)
  2331. +cygwin* | mingw* | pw32* | cegcc*)
  2332. version_type=windows
  2333. shrext_cmds=".dll"
  2334. need_version=no
  2335. need_lib_prefix=no
  2336. case $GCC,$host_os in
  2337. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2338. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2339. library_names_spec='$libname.dll.a'
  2340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2341. postinstall_cmds='base_file=`basename \${file}`~
  2342. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2343. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2344. dldir=$destdir/`dirname \$dlpath`~
  2345. test -d \$dldir || mkdir -p \$dldir~
  2346. $install_prog $dir/$dlname \$dldir/$dlname~
  2347. - chmod a+x \$dldir/$dlname'
  2348. + chmod a+x \$dldir/$dlname~
  2349. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2350. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2351. + fi'
  2352. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2353. dlpath=$dir/\$dldll~
  2354. - $rm \$dlpath'
  2355. + $RM \$dlpath'
  2356. shlibpath_overrides_runpath=yes
  2357. case $host_os in
  2358. @@ -1480,20 +2245,20 @@
  2359. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2360. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2361. ;;
  2362. - mingw*)
  2363. + mingw* | cegcc*)
  2364. # MinGW DLLs use traditional 'lib' prefix
  2365. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2366. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2367. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2368. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2369. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2370. # It is most probably a Windows format PATH printed by
  2371. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2372. # path with ; separators, and with drive letters. We can handle the
  2373. # drive letters (cygwin fileutils understands them), so leave them,
  2374. # especially as we might pass files found there to a mingw objdump,
  2375. # which wouldn't understand a cygwinified path. Ahh.
  2376. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2377. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2378. else
  2379. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2380. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2381. fi
  2382. ;;
  2383. pw32*)
  2384. @@ -1517,13 +2282,13 @@
  2385. version_type=darwin
  2386. need_lib_prefix=no
  2387. need_version=no
  2388. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2389. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2390. soname_spec='${libname}${release}${major}$shared_ext'
  2391. shlibpath_overrides_runpath=yes
  2392. shlibpath_var=DYLD_LIBRARY_PATH
  2393. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2394. - m4_if([$1], [],[
  2395. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2396. +m4_if([$1], [],[
  2397. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2398. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2399. ;;
  2400. @@ -1616,18 +2381,18 @@
  2401. fi
  2402. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2403. ;;
  2404. - hppa*64*)
  2405. - shrext_cmds='.sl'
  2406. - hardcode_into_libs=yes
  2407. - dynamic_linker="$host_os dld.sl"
  2408. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2409. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2411. - soname_spec='${libname}${release}${shared_ext}$major'
  2412. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2413. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2414. - ;;
  2415. - *)
  2416. + hppa*64*)
  2417. + shrext_cmds='.sl'
  2418. + hardcode_into_libs=yes
  2419. + dynamic_linker="$host_os dld.sl"
  2420. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2421. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2422. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2423. + soname_spec='${libname}${release}${shared_ext}$major'
  2424. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2425. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2426. + ;;
  2427. + *)
  2428. shrext_cmds='.sl'
  2429. dynamic_linker="$host_os dld.sl"
  2430. shlibpath_var=SHLIB_PATH
  2431. @@ -1695,7 +2460,7 @@
  2432. ;;
  2433. # This must be Linux ELF.
  2434. -linux* | k*bsd*-gnu)
  2435. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2436. version_type=linux
  2437. need_lib_prefix=no
  2438. need_version=no
  2439. @@ -1704,17 +2469,26 @@
  2440. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2441. shlibpath_var=LD_LIBRARY_PATH
  2442. shlibpath_overrides_runpath=no
  2443. + # Some binutils ld are patched to set DT_RUNPATH
  2444. + save_LDFLAGS=$LDFLAGS
  2445. + save_libdir=$libdir
  2446. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2447. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2448. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2449. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2450. + [shlibpath_overrides_runpath=yes])])
  2451. + LDFLAGS=$save_LDFLAGS
  2452. + libdir=$save_libdir
  2453. +
  2454. # This implies no fast_install, which is unacceptable.
  2455. # Some rework will be needed to allow for fast_install
  2456. # before this can be enabled.
  2457. hardcode_into_libs=yes
  2458. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2459. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2460. # Append ld.so.conf contents to the search path
  2461. if test -f /etc/ld.so.conf; then
  2462. - 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' ' '`
  2463. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2464. + 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' ' '`
  2465. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2466. fi
  2467. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2468. @@ -1726,11 +2500,23 @@
  2469. dynamic_linker='GNU/Linux ld.so'
  2470. ;;
  2471. +netbsdelf*-gnu)
  2472. + version_type=linux
  2473. + need_lib_prefix=no
  2474. + need_version=no
  2475. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2476. + soname_spec='${libname}${release}${shared_ext}$major'
  2477. + shlibpath_var=LD_LIBRARY_PATH
  2478. + shlibpath_overrides_runpath=no
  2479. + hardcode_into_libs=yes
  2480. + dynamic_linker='NetBSD ld.elf_so'
  2481. + ;;
  2482. +
  2483. netbsd*)
  2484. version_type=sunos
  2485. need_lib_prefix=no
  2486. need_version=no
  2487. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2488. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2490. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2491. dynamic_linker='NetBSD (a.out) ld.so'
  2492. @@ -1751,14 +2537,16 @@
  2493. shlibpath_overrides_runpath=yes
  2494. ;;
  2495. -nto-qnx*)
  2496. - version_type=linux
  2497. +*nto* | *qnx*)
  2498. + version_type=qnx
  2499. need_lib_prefix=no
  2500. need_version=no
  2501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2502. soname_spec='${libname}${release}${shared_ext}$major'
  2503. shlibpath_var=LD_LIBRARY_PATH
  2504. - shlibpath_overrides_runpath=yes
  2505. + shlibpath_overrides_runpath=no
  2506. + hardcode_into_libs=yes
  2507. + dynamic_linker='ldqnx.so'
  2508. ;;
  2509. openbsd*)
  2510. @@ -1767,13 +2555,13 @@
  2511. need_lib_prefix=no
  2512. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2513. case $host_os in
  2514. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2515. - *) need_version=no ;;
  2516. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2517. + *) need_version=no ;;
  2518. esac
  2519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2520. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2521. shlibpath_var=LD_LIBRARY_PATH
  2522. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2523. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2524. case $host_os in
  2525. openbsd2.[[89]] | openbsd2.[[89]].*)
  2526. shlibpath_overrides_runpath=no
  2527. @@ -1845,7 +2633,6 @@
  2528. sni)
  2529. shlibpath_overrides_runpath=no
  2530. need_lib_prefix=no
  2531. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2532. runpath_var=LD_RUN_PATH
  2533. ;;
  2534. siemens)
  2535. @@ -1876,13 +2663,12 @@
  2536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2537. soname_spec='${libname}${release}${shared_ext}$major'
  2538. shlibpath_var=LD_LIBRARY_PATH
  2539. + shlibpath_overrides_runpath=yes
  2540. hardcode_into_libs=yes
  2541. if test "$with_gnu_ld" = yes; then
  2542. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2543. - shlibpath_overrides_runpath=no
  2544. else
  2545. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2546. - shlibpath_overrides_runpath=yes
  2547. case $host_os in
  2548. sco3.2v5*)
  2549. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2550. @@ -1892,6 +2678,17 @@
  2551. sys_lib_dlsearch_path_spec='/usr/lib'
  2552. ;;
  2553. +tpf*)
  2554. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2555. + version_type=linux
  2556. + need_lib_prefix=no
  2557. + need_version=no
  2558. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2559. + shlibpath_var=LD_LIBRARY_PATH
  2560. + shlibpath_overrides_runpath=no
  2561. + hardcode_into_libs=yes
  2562. + ;;
  2563. +
  2564. uts4*)
  2565. version_type=linux
  2566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2567. @@ -1906,288 +2703,58 @@
  2568. AC_MSG_RESULT([$dynamic_linker])
  2569. test "$dynamic_linker" = no && can_build_shared=no
  2570. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2571. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2572. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2573. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2574. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2575. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2576. -
  2577. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2578. if test "$GCC" = yes; then
  2579. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2580. fi
  2581. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2582. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2583. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2584. +fi
  2585. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2586. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2587. +fi
  2588. -# _LT_AC_TAGCONFIG
  2589. -# ----------------
  2590. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2591. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2592. -AC_ARG_WITH([tags],
  2593. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2594. - [include additional configurations @<:@automatic@:>@])],
  2595. - [tagnames="$withval"])
  2596. -
  2597. -if test -f "$ltmain" && test -n "$tagnames"; then
  2598. - if test ! -f "${ofile}"; then
  2599. - AC_MSG_WARN([output file `$ofile' does not exist])
  2600. - fi
  2601. -
  2602. - if test -z "$LTCC"; then
  2603. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2604. - if test -z "$LTCC"; then
  2605. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2606. - else
  2607. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2608. - fi
  2609. - fi
  2610. - if test -z "$LTCFLAGS"; then
  2611. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2612. - fi
  2613. -
  2614. - # Extract list of available tagged configurations in $ofile.
  2615. - # Note that this assumes the entire list is on one line.
  2616. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2617. -
  2618. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2619. - for tagname in $tagnames; do
  2620. - IFS="$lt_save_ifs"
  2621. - # Check whether tagname contains only valid characters
  2622. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2623. - "") ;;
  2624. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2625. - ;;
  2626. - esac
  2627. -
  2628. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2629. - then
  2630. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2631. - fi
  2632. -
  2633. - # Update the list of available tags.
  2634. - if test -n "$tagname"; then
  2635. - echo appending configuration tag \"$tagname\" to $ofile
  2636. -
  2637. - case $tagname in
  2638. - CXX)
  2639. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2640. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2641. - (test "X$CXX" != "Xg++"))) ; then
  2642. - AC_LIBTOOL_LANG_CXX_CONFIG
  2643. - else
  2644. - tagname=""
  2645. - fi
  2646. - ;;
  2647. -
  2648. - F77)
  2649. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2650. - AC_LIBTOOL_LANG_F77_CONFIG
  2651. - else
  2652. - tagname=""
  2653. - fi
  2654. - ;;
  2655. -
  2656. - GCJ)
  2657. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2658. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2659. - else
  2660. - tagname=""
  2661. - fi
  2662. - ;;
  2663. -
  2664. - RC)
  2665. - AC_LIBTOOL_LANG_RC_CONFIG
  2666. - ;;
  2667. -
  2668. - *)
  2669. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2670. - ;;
  2671. - esac
  2672. -
  2673. - # Append the new tag name to the list of available tags.
  2674. - if test -n "$tagname" ; then
  2675. - available_tags="$available_tags $tagname"
  2676. - fi
  2677. - fi
  2678. - done
  2679. - IFS="$lt_save_ifs"
  2680. -
  2681. - # Now substitute the updated list of available tags.
  2682. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2683. - mv "${ofile}T" "$ofile"
  2684. - chmod +x "$ofile"
  2685. - else
  2686. - rm -f "${ofile}T"
  2687. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2688. - fi
  2689. -fi
  2690. -])# _LT_AC_TAGCONFIG
  2691. -
  2692. -
  2693. -# AC_LIBTOOL_DLOPEN
  2694. -# -----------------
  2695. -# enable checks for dlopen support
  2696. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2697. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2698. -])# AC_LIBTOOL_DLOPEN
  2699. -
  2700. -
  2701. -# AC_LIBTOOL_WIN32_DLL
  2702. -# --------------------
  2703. -# declare package support for building win32 DLLs
  2704. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2705. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2706. -])# AC_LIBTOOL_WIN32_DLL
  2707. -
  2708. -
  2709. -# AC_ENABLE_SHARED([DEFAULT])
  2710. -# ---------------------------
  2711. -# implement the --enable-shared flag
  2712. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2713. -AC_DEFUN([AC_ENABLE_SHARED],
  2714. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2715. -AC_ARG_ENABLE([shared],
  2716. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2717. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2718. - [p=${PACKAGE-default}
  2719. - case $enableval in
  2720. - yes) enable_shared=yes ;;
  2721. - no) enable_shared=no ;;
  2722. - *)
  2723. - enable_shared=no
  2724. - # Look at the argument we got. We use all the common list separators.
  2725. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2726. - for pkg in $enableval; do
  2727. - IFS="$lt_save_ifs"
  2728. - if test "X$pkg" = "X$p"; then
  2729. - enable_shared=yes
  2730. - fi
  2731. - done
  2732. - IFS="$lt_save_ifs"
  2733. - ;;
  2734. - esac],
  2735. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2736. -])# AC_ENABLE_SHARED
  2737. -
  2738. -
  2739. -# AC_DISABLE_SHARED
  2740. -# -----------------
  2741. -# set the default shared flag to --disable-shared
  2742. -AC_DEFUN([AC_DISABLE_SHARED],
  2743. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2744. -AC_ENABLE_SHARED(no)
  2745. -])# AC_DISABLE_SHARED
  2746. -
  2747. -
  2748. -# AC_ENABLE_STATIC([DEFAULT])
  2749. -# ---------------------------
  2750. -# implement the --enable-static flag
  2751. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2752. -AC_DEFUN([AC_ENABLE_STATIC],
  2753. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2754. -AC_ARG_ENABLE([static],
  2755. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2756. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2757. - [p=${PACKAGE-default}
  2758. - case $enableval in
  2759. - yes) enable_static=yes ;;
  2760. - no) enable_static=no ;;
  2761. - *)
  2762. - enable_static=no
  2763. - # Look at the argument we got. We use all the common list separators.
  2764. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2765. - for pkg in $enableval; do
  2766. - IFS="$lt_save_ifs"
  2767. - if test "X$pkg" = "X$p"; then
  2768. - enable_static=yes
  2769. - fi
  2770. - done
  2771. - IFS="$lt_save_ifs"
  2772. - ;;
  2773. - esac],
  2774. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2775. -])# AC_ENABLE_STATIC
  2776. -
  2777. -
  2778. -# AC_DISABLE_STATIC
  2779. -# -----------------
  2780. -# set the default static flag to --disable-static
  2781. -AC_DEFUN([AC_DISABLE_STATIC],
  2782. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2783. -AC_ENABLE_STATIC(no)
  2784. -])# AC_DISABLE_STATIC
  2785. -
  2786. -
  2787. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2788. -# ---------------------------------
  2789. -# implement the --enable-fast-install flag
  2790. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2791. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2792. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2793. -AC_ARG_ENABLE([fast-install],
  2794. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2795. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2796. - [p=${PACKAGE-default}
  2797. - case $enableval in
  2798. - yes) enable_fast_install=yes ;;
  2799. - no) enable_fast_install=no ;;
  2800. - *)
  2801. - enable_fast_install=no
  2802. - # Look at the argument we got. We use all the common list separators.
  2803. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2804. - for pkg in $enableval; do
  2805. - IFS="$lt_save_ifs"
  2806. - if test "X$pkg" = "X$p"; then
  2807. - enable_fast_install=yes
  2808. - fi
  2809. - done
  2810. - IFS="$lt_save_ifs"
  2811. - ;;
  2812. - esac],
  2813. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2814. -])# AC_ENABLE_FAST_INSTALL
  2815. +_LT_DECL([], [variables_saved_for_relink], [1],
  2816. + [Variables whose values should be saved in libtool wrapper scripts and
  2817. + restored at link time])
  2818. +_LT_DECL([], [need_lib_prefix], [0],
  2819. + [Do we need the "lib" prefix for modules?])
  2820. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2821. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2822. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2823. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2824. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2825. + [Is shlibpath searched before the hard-coded library search path?])
  2826. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2827. +_LT_DECL([], [library_names_spec], [1],
  2828. + [[List of archive names. First name is the real one, the rest are links.
  2829. + The last name is the one that the linker finds with -lNAME]])
  2830. +_LT_DECL([], [soname_spec], [1],
  2831. + [[The coded name of the library, if different from the real name]])
  2832. +_LT_DECL([], [postinstall_cmds], [2],
  2833. + [Command to use after installation of a shared archive])
  2834. +_LT_DECL([], [postuninstall_cmds], [2],
  2835. + [Command to use after uninstallation of a shared archive])
  2836. +_LT_DECL([], [finish_cmds], [2],
  2837. + [Commands used to finish a libtool library installation in a directory])
  2838. +_LT_DECL([], [finish_eval], [1],
  2839. + [[As "finish_cmds", except a single script fragment to be evaled but
  2840. + not shown]])
  2841. +_LT_DECL([], [hardcode_into_libs], [0],
  2842. + [Whether we should hardcode library paths into libraries])
  2843. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2844. + [Compile-time system search path for libraries])
  2845. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2846. + [Run-time system search path for libraries])
  2847. +])# _LT_SYS_DYNAMIC_LINKER
  2848. -# AC_DISABLE_FAST_INSTALL
  2849. -# -----------------------
  2850. -# set the default to --disable-fast-install
  2851. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2852. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2853. -AC_ENABLE_FAST_INSTALL(no)
  2854. -])# AC_DISABLE_FAST_INSTALL
  2855. -
  2856. -
  2857. -# AC_LIBTOOL_PICMODE([MODE])
  2858. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2859. # --------------------------
  2860. -# implement the --with-pic flag
  2861. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2862. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2863. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2864. -pic_mode=ifelse($#,1,$1,default)
  2865. -])# AC_LIBTOOL_PICMODE
  2866. -
  2867. -
  2868. -# AC_PROG_EGREP
  2869. -# -------------
  2870. -# This is predefined starting with Autoconf 2.54, so this conditional
  2871. -# definition can be removed once we require Autoconf 2.54 or later.
  2872. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2873. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2874. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2875. - then ac_cv_prog_egrep='grep -E'
  2876. - else ac_cv_prog_egrep='egrep'
  2877. - fi])
  2878. - EGREP=$ac_cv_prog_egrep
  2879. - AC_SUBST([EGREP])
  2880. -])])
  2881. -
  2882. -
  2883. -# AC_PATH_TOOL_PREFIX
  2884. -# -------------------
  2885. # find a file program which can recognize shared library
  2886. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2887. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2888. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2889. +[m4_require([_LT_DECL_EGREP])dnl
  2890. AC_MSG_CHECKING([for $1])
  2891. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2892. [case $MAGIC_CMD in
  2893. @@ -2200,7 +2767,7 @@
  2894. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2895. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2896. dnl not every word. This closes a longstanding sh security hole.
  2897. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2898. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2899. for ac_dir in $ac_dummy; do
  2900. IFS="$lt_save_ifs"
  2901. test -z "$ac_dir" && ac_dir=.
  2902. @@ -2215,7 +2782,7 @@
  2903. $EGREP "$file_magic_regex" > /dev/null; then
  2904. :
  2905. else
  2906. - cat <<EOF 1>&2
  2907. + cat <<_LT_EOF 1>&2
  2908. *** Warning: the command libtool uses to detect shared libraries,
  2909. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2910. @@ -2226,7 +2793,7 @@
  2911. *** may want to report the problem to your system manager and/or to
  2912. *** bug-libtool@gnu.org
  2913. -EOF
  2914. +_LT_EOF
  2915. fi ;;
  2916. esac
  2917. fi
  2918. @@ -2243,37 +2810,47 @@
  2919. else
  2920. AC_MSG_RESULT(no)
  2921. fi
  2922. -])# AC_PATH_TOOL_PREFIX
  2923. +_LT_DECL([], [MAGIC_CMD], [0],
  2924. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2925. +])# _LT_PATH_TOOL_PREFIX
  2926. +# Old name:
  2927. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2928. +dnl aclocal-1.4 backwards compatibility:
  2929. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2930. -# AC_PATH_MAGIC
  2931. -# -------------
  2932. +
  2933. +# _LT_PATH_MAGIC
  2934. +# --------------
  2935. # find a file program which can recognize a shared library
  2936. -AC_DEFUN([AC_PATH_MAGIC],
  2937. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2938. +m4_defun([_LT_PATH_MAGIC],
  2939. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2940. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2941. if test -n "$ac_tool_prefix"; then
  2942. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2943. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2944. else
  2945. MAGIC_CMD=:
  2946. fi
  2947. fi
  2948. -])# AC_PATH_MAGIC
  2949. +])# _LT_PATH_MAGIC
  2950. -# AC_PROG_LD
  2951. +# LT_PATH_LD
  2952. # ----------
  2953. # find the pathname to the GNU or non-GNU linker
  2954. -AC_DEFUN([AC_PROG_LD],
  2955. -[AC_ARG_WITH([gnu-ld],
  2956. - [AC_HELP_STRING([--with-gnu-ld],
  2957. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2958. - [test "$withval" = no || with_gnu_ld=yes],
  2959. - [with_gnu_ld=no])
  2960. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2961. -AC_REQUIRE([AC_PROG_CC])dnl
  2962. +AC_DEFUN([LT_PATH_LD],
  2963. +[AC_REQUIRE([AC_PROG_CC])dnl
  2964. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2965. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2966. +m4_require([_LT_DECL_SED])dnl
  2967. +m4_require([_LT_DECL_EGREP])dnl
  2968. +
  2969. +AC_ARG_WITH([gnu-ld],
  2970. + [AS_HELP_STRING([--with-gnu-ld],
  2971. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2972. + [test "$withval" = no || with_gnu_ld=yes],
  2973. + [with_gnu_ld=no])dnl
  2974. +
  2975. ac_prog=ld
  2976. if test "$GCC" = yes; then
  2977. # Check if gcc -print-prog-name=ld gives a path.
  2978. @@ -2290,9 +2867,9 @@
  2979. [[\\/]]* | ?:[[\\/]]*)
  2980. re_direlt='/[[^/]][[^/]]*/\.\./'
  2981. # Canonicalize the pathname of ld
  2982. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2983. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2984. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2985. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2986. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2987. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2988. done
  2989. test -z "$LD" && LD="$ac_prog"
  2990. ;;
  2991. @@ -2342,15 +2919,24 @@
  2992. AC_MSG_RESULT(no)
  2993. fi
  2994. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2995. -AC_PROG_LD_GNU
  2996. -])# AC_PROG_LD
  2997. +_LT_PATH_LD_GNU
  2998. +AC_SUBST([LD])
  2999. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3000. +])# LT_PATH_LD
  3001. -# AC_PROG_LD_GNU
  3002. -# --------------
  3003. -AC_DEFUN([AC_PROG_LD_GNU],
  3004. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3005. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3006. +# Old names:
  3007. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3008. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3009. +dnl aclocal-1.4 backwards compatibility:
  3010. +dnl AC_DEFUN([AM_PROG_LD], [])
  3011. +dnl AC_DEFUN([AC_PROG_LD], [])
  3012. +
  3013. +
  3014. +# _LT_PATH_LD_GNU
  3015. +#- --------------
  3016. +m4_defun([_LT_PATH_LD_GNU],
  3017. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3018. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3019. case `$LD -v 2>&1 </dev/null` in
  3020. *GNU* | *'with BFD'*)
  3021. @@ -2361,14 +2947,14 @@
  3022. ;;
  3023. esac])
  3024. with_gnu_ld=$lt_cv_prog_gnu_ld
  3025. -])# AC_PROG_LD_GNU
  3026. +])# _LT_PATH_LD_GNU
  3027. -# AC_PROG_LD_RELOAD_FLAG
  3028. -# ----------------------
  3029. +# _LT_CMD_RELOAD
  3030. +# --------------
  3031. # find reload flag for linker
  3032. # -- PORTME Some linkers may need a different reload flag.
  3033. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3034. +m4_defun([_LT_CMD_RELOAD],
  3035. [AC_CACHE_CHECK([for $LD option to reload object files],
  3036. lt_cv_ld_reload_flag,
  3037. [lt_cv_ld_reload_flag='-r'])
  3038. @@ -2387,15 +2973,19 @@
  3039. fi
  3040. ;;
  3041. esac
  3042. -])# AC_PROG_LD_RELOAD_FLAG
  3043. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3044. +_LT_DECL([], [reload_cmds], [2])dnl
  3045. +])# _LT_CMD_RELOAD
  3046. -# AC_DEPLIBS_CHECK_METHOD
  3047. -# -----------------------
  3048. +# _LT_CHECK_MAGIC_METHOD
  3049. +# ----------------------
  3050. # how to check for library dependencies
  3051. # -- PORTME fill in with the dynamic library characteristics
  3052. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3053. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3054. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3055. +[m4_require([_LT_DECL_EGREP])
  3056. +m4_require([_LT_DECL_OBJDUMP])
  3057. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3058. lt_cv_deplibs_check_method,
  3059. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3060. lt_cv_file_magic_test_file=
  3061. @@ -2445,12 +3035,18 @@
  3062. fi
  3063. ;;
  3064. +cegcc)
  3065. + # use the weaker test based on 'objdump'. See mingw*.
  3066. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3067. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3068. + ;;
  3069. +
  3070. darwin* | rhapsody*)
  3071. lt_cv_deplibs_check_method=pass_all
  3072. ;;
  3073. freebsd* | dragonfly*)
  3074. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3075. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3076. case $host_cpu in
  3077. i*86 )
  3078. # Not sure whether the presence of OpenBSD here was a mistake.
  3079. @@ -2503,12 +3099,12 @@
  3080. ;;
  3081. # This must be Linux ELF.
  3082. -linux* | k*bsd*-gnu)
  3083. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3084. lt_cv_deplibs_check_method=pass_all
  3085. ;;
  3086. -netbsd*)
  3087. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3088. +netbsd* | netbsdelf*-gnu)
  3089. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3090. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3091. else
  3092. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3093. @@ -2521,12 +3117,12 @@
  3094. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3095. ;;
  3096. -nto-qnx*)
  3097. - lt_cv_deplibs_check_method=unknown
  3098. +*nto* | *qnx*)
  3099. + lt_cv_deplibs_check_method=pass_all
  3100. ;;
  3101. openbsd*)
  3102. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3103. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3104. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3105. else
  3106. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3107. @@ -2545,6 +3141,10 @@
  3108. lt_cv_deplibs_check_method=pass_all
  3109. ;;
  3110. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3111. + lt_cv_deplibs_check_method=pass_all
  3112. + ;;
  3113. +
  3114. sysv4 | sysv4.3*)
  3115. case $host_vendor in
  3116. motorola)
  3117. @@ -2572,7 +3172,7 @@
  3118. esac
  3119. ;;
  3120. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3121. +tpf*)
  3122. lt_cv_deplibs_check_method=pass_all
  3123. ;;
  3124. esac
  3125. @@ -2580,14 +3180,20 @@
  3126. file_magic_cmd=$lt_cv_file_magic_cmd
  3127. deplibs_check_method=$lt_cv_deplibs_check_method
  3128. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3129. -])# AC_DEPLIBS_CHECK_METHOD
  3130. +_LT_DECL([], [deplibs_check_method], [1],
  3131. + [Method to check whether dependent libraries are shared objects])
  3132. +_LT_DECL([], [file_magic_cmd], [1],
  3133. + [Command to use when deplibs_check_method == "file_magic"])
  3134. +])# _LT_CHECK_MAGIC_METHOD
  3135. -# AC_PROG_NM
  3136. +
  3137. +# LT_PATH_NM
  3138. # ----------
  3139. -# find the pathname to a BSD-compatible name lister
  3140. -AC_DEFUN([AC_PROG_NM],
  3141. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3142. +# find the pathname to a BSD- or MS-compatible name lister
  3143. +AC_DEFUN([LT_PATH_NM],
  3144. +[AC_REQUIRE([AC_PROG_CC])dnl
  3145. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3146. [if test -n "$NM"; then
  3147. # Let the user override the test.
  3148. lt_cv_path_NM="$NM"
  3149. @@ -2629,16 +3235,51 @@
  3150. done
  3151. IFS="$lt_save_ifs"
  3152. done
  3153. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3154. + : ${lt_cv_path_NM=no}
  3155. fi])
  3156. -NM="$lt_cv_path_NM"
  3157. -])# AC_PROG_NM
  3158. +if test "$lt_cv_path_NM" != "no"; then
  3159. + NM="$lt_cv_path_NM"
  3160. +else
  3161. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3162. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3163. + AC_SUBST([DUMPBIN])
  3164. + if test "$DUMPBIN" != ":"; then
  3165. + NM="$DUMPBIN"
  3166. + fi
  3167. +fi
  3168. +test -z "$NM" && NM=nm
  3169. +AC_SUBST([NM])
  3170. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3171. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3172. + [lt_cv_nm_interface="BSD nm"
  3173. + echo "int some_variable = 0;" > conftest.$ac_ext
  3174. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3175. + (eval "$ac_compile" 2>conftest.err)
  3176. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3177. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3178. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3179. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3180. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3181. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3182. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3183. + lt_cv_nm_interface="MS dumpbin"
  3184. + fi
  3185. + rm -f conftest*])
  3186. +])# LT_PATH_NM
  3187. +
  3188. +# Old names:
  3189. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3190. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3191. +dnl aclocal-1.4 backwards compatibility:
  3192. +dnl AC_DEFUN([AM_PROG_NM], [])
  3193. +dnl AC_DEFUN([AC_PROG_NM], [])
  3194. -# AC_CHECK_LIBM
  3195. -# -------------
  3196. +
  3197. +# LT_LIB_M
  3198. +# --------
  3199. # check for math library
  3200. -AC_DEFUN([AC_CHECK_LIBM],
  3201. +AC_DEFUN([LT_LIB_M],
  3202. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3203. LIBM=
  3204. case $host in
  3205. @@ -2653,4012 +3294,4698 @@
  3206. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3207. ;;
  3208. esac
  3209. -])# AC_CHECK_LIBM
  3210. +AC_SUBST([LIBM])
  3211. +])# LT_LIB_M
  3212. +# Old name:
  3213. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3214. +dnl aclocal-1.4 backwards compatibility:
  3215. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3216. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3217. -# -----------------------------------
  3218. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3219. -# LTDLINCL to the include flags for the libltdl header and adds
  3220. -# --enable-ltdl-convenience to the configure arguments. Note that
  3221. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3222. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3223. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3224. -# (note the single quotes!). If your package is not flat and you're not
  3225. -# using automake, define top_builddir and top_srcdir appropriately in
  3226. -# the Makefiles.
  3227. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3228. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3229. - case $enable_ltdl_convenience in
  3230. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3231. - "") enable_ltdl_convenience=yes
  3232. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3233. - esac
  3234. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3235. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3236. - # For backwards non-gettext consistent compatibility...
  3237. - INCLTDL="$LTDLINCL"
  3238. -])# AC_LIBLTDL_CONVENIENCE
  3239. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3240. +# -------------------------------
  3241. +m4_defun([_LT_COMPILER_NO_RTTI],
  3242. +[m4_require([_LT_TAG_COMPILER])dnl
  3243. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3244. -# -----------------------------------
  3245. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3246. -# LTDLINCL to the include flags for the libltdl header and adds
  3247. -# --enable-ltdl-install to the configure arguments. Note that
  3248. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3249. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3250. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3251. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3252. -# flat and you're not using automake, define top_builddir and top_srcdir
  3253. -# appropriately in the Makefiles.
  3254. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3255. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3256. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3257. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3258. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3259. - [if test x"$enable_ltdl_install" = xno; then
  3260. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3261. - else
  3262. - enable_ltdl_install=yes
  3263. - fi
  3264. - ])
  3265. - if test x"$enable_ltdl_install" = x"yes"; then
  3266. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3267. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3268. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3269. - else
  3270. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3271. - LIBLTDL="-lltdl"
  3272. - LTDLINCL=
  3273. - fi
  3274. - # For backwards non-gettext consistent compatibility...
  3275. - INCLTDL="$LTDLINCL"
  3276. -])# AC_LIBLTDL_INSTALLABLE
  3277. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3278. +if test "$GCC" = yes; then
  3279. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3280. -# AC_LIBTOOL_CXX
  3281. -# --------------
  3282. -# enable support for C++ libraries
  3283. -AC_DEFUN([AC_LIBTOOL_CXX],
  3284. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3285. -])# AC_LIBTOOL_CXX
  3286. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3287. + lt_cv_prog_compiler_rtti_exceptions,
  3288. + [-fno-rtti -fno-exceptions], [],
  3289. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3290. +fi
  3291. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3292. + [Compiler flag to turn off builtin functions])
  3293. +])# _LT_COMPILER_NO_RTTI
  3294. -# _LT_AC_LANG_CXX
  3295. -# ---------------
  3296. -AC_DEFUN([_LT_AC_LANG_CXX],
  3297. -[AC_REQUIRE([AC_PROG_CXX])
  3298. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3299. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3300. -])# _LT_AC_LANG_CXX
  3301. +# _LT_CMD_GLOBAL_SYMBOLS
  3302. +# ----------------------
  3303. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3304. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3305. +AC_REQUIRE([AC_PROG_CC])dnl
  3306. +AC_REQUIRE([LT_PATH_NM])dnl
  3307. +AC_REQUIRE([LT_PATH_LD])dnl
  3308. +m4_require([_LT_DECL_SED])dnl
  3309. +m4_require([_LT_DECL_EGREP])dnl
  3310. +m4_require([_LT_TAG_COMPILER])dnl
  3311. -# _LT_AC_PROG_CXXCPP
  3312. -# ------------------
  3313. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3314. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3315. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3316. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3317. [
  3318. -AC_REQUIRE([AC_PROG_CXX])
  3319. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3320. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3321. - (test "X$CXX" != "Xg++"))) ; then
  3322. - AC_PROG_CXXCPP
  3323. -fi
  3324. -])# _LT_AC_PROG_CXXCPP
  3325. -
  3326. -# AC_LIBTOOL_F77
  3327. -# --------------
  3328. -# enable support for Fortran 77 libraries
  3329. -AC_DEFUN([AC_LIBTOOL_F77],
  3330. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3331. -])# AC_LIBTOOL_F77
  3332. +# These are sane defaults that work on at least a few old systems.
  3333. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3334. +# Character class describing NM global symbol codes.
  3335. +symcode='[[BCDEGRST]]'
  3336. -# _LT_AC_LANG_F77
  3337. -# ---------------
  3338. -AC_DEFUN([_LT_AC_LANG_F77],
  3339. -[AC_REQUIRE([AC_PROG_F77])
  3340. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3341. -])# _LT_AC_LANG_F77
  3342. +# Regexp to match symbols that can be accessed directly from C.
  3343. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3344. +# Define system-specific variables.
  3345. +case $host_os in
  3346. +aix*)
  3347. + symcode='[[BCDT]]'
  3348. + ;;
  3349. +cygwin* | mingw* | pw32* | cegcc*)
  3350. + symcode='[[ABCDGISTW]]'
  3351. + ;;
  3352. +hpux*)
  3353. + if test "$host_cpu" = ia64; then
  3354. + symcode='[[ABCDEGRST]]'
  3355. + fi
  3356. + ;;
  3357. +irix* | nonstopux*)
  3358. + symcode='[[BCDEGRST]]'
  3359. + ;;
  3360. +osf*)
  3361. + symcode='[[BCDEGQRST]]'
  3362. + ;;
  3363. +solaris*)
  3364. + symcode='[[BDRT]]'
  3365. + ;;
  3366. +sco3.2v5*)
  3367. + symcode='[[DT]]'
  3368. + ;;
  3369. +sysv4.2uw2*)
  3370. + symcode='[[DT]]'
  3371. + ;;
  3372. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3373. + symcode='[[ABDT]]'
  3374. + ;;
  3375. +sysv4)
  3376. + symcode='[[DFNSTU]]'
  3377. + ;;
  3378. +esac
  3379. -# AC_LIBTOOL_GCJ
  3380. -# --------------
  3381. -# enable support for GCJ libraries
  3382. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3383. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3384. -])# AC_LIBTOOL_GCJ
  3385. +# If we're using GNU nm, then use its standard symbol codes.
  3386. +case `$NM -V 2>&1` in
  3387. +*GNU* | *'with BFD'*)
  3388. + symcode='[[ABCDGIRSTW]]' ;;
  3389. +esac
  3390. +# Transform an extracted symbol line into a proper C declaration.
  3391. +# Some systems (esp. on ia64) link data and code symbols differently,
  3392. +# so use this general approach.
  3393. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3394. -# _LT_AC_LANG_GCJ
  3395. -# ---------------
  3396. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3397. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3398. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3399. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3400. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3401. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3402. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3403. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3404. -])# _LT_AC_LANG_GCJ
  3405. +# Transform an extracted symbol line into symbol name and symbol address
  3406. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3407. +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'"
  3408. +# Handle CRLF in mingw tool chain
  3409. +opt_cr=
  3410. +case $build_os in
  3411. +mingw*)
  3412. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3413. + ;;
  3414. +esac
  3415. -# AC_LIBTOOL_RC
  3416. -# -------------
  3417. -# enable support for Windows resource files
  3418. -AC_DEFUN([AC_LIBTOOL_RC],
  3419. -[AC_REQUIRE([LT_AC_PROG_RC])
  3420. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3421. -])# AC_LIBTOOL_RC
  3422. +# Try without a prefix underscore, then with it.
  3423. +for ac_symprfx in "" "_"; do
  3424. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3425. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3426. -# AC_LIBTOOL_LANG_C_CONFIG
  3427. -# ------------------------
  3428. -# Ensure that the configuration vars for the C compiler are
  3429. -# suitably defined. Those variables are subsequently used by
  3430. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3431. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3432. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3433. -[lt_save_CC="$CC"
  3434. -AC_LANG_PUSH(C)
  3435. + # Write the raw and C identifiers.
  3436. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3437. + # Fake it for dumpbin and say T for any non-static function
  3438. + # and D for any global variable.
  3439. + # Also find C++ and __fastcall symbols from MSVC++,
  3440. + # which start with @ or ?.
  3441. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3442. +" {last_section=section; section=\$ 3};"\
  3443. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3444. +" \$ 0!~/External *\|/{next};"\
  3445. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3446. +" {if(hide[section]) next};"\
  3447. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3448. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3449. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3450. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3451. +" ' prfx=^$ac_symprfx]"
  3452. + else
  3453. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3454. + fi
  3455. -# Source file extension for C test sources.
  3456. -ac_ext=c
  3457. -
  3458. -# Object file extension for compiled C test sources.
  3459. -objext=o
  3460. -_LT_AC_TAGVAR(objext, $1)=$objext
  3461. -
  3462. -# Code to be used in simple compile tests
  3463. -lt_simple_compile_test_code="int some_variable = 0;"
  3464. -
  3465. -# Code to be used in simple link tests
  3466. -lt_simple_link_test_code='int main(){return(0);}'
  3467. -
  3468. -_LT_AC_SYS_COMPILER
  3469. -
  3470. -# save warnings/boilerplate of simple test code
  3471. -_LT_COMPILER_BOILERPLATE
  3472. -_LT_LINKER_BOILERPLATE
  3473. -
  3474. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3475. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3476. -AC_LIBTOOL_PROG_CC_C_O($1)
  3477. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3478. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3479. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3480. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3481. -AC_LIBTOOL_SYS_LIB_STRIP
  3482. -AC_LIBTOOL_DLOPEN_SELF
  3483. -
  3484. -# Report which library types will actually be built
  3485. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3486. -AC_MSG_RESULT([$can_build_shared])
  3487. -
  3488. -AC_MSG_CHECKING([whether to build shared libraries])
  3489. -test "$can_build_shared" = "no" && enable_shared=no
  3490. -
  3491. -# On AIX, shared libraries and static libraries use the same namespace, and
  3492. -# are all built from PIC.
  3493. -case $host_os in
  3494. -aix3*)
  3495. - test "$enable_shared" = yes && enable_static=no
  3496. - if test -n "$RANLIB"; then
  3497. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3498. - postinstall_cmds='$RANLIB $lib'
  3499. - fi
  3500. - ;;
  3501. -
  3502. -aix[[4-9]]*)
  3503. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3504. - test "$enable_shared" = yes && enable_static=no
  3505. - fi
  3506. - ;;
  3507. -esac
  3508. -AC_MSG_RESULT([$enable_shared])
  3509. -
  3510. -AC_MSG_CHECKING([whether to build static libraries])
  3511. -# Make sure either enable_shared or enable_static is yes.
  3512. -test "$enable_shared" = yes || enable_static=yes
  3513. -AC_MSG_RESULT([$enable_static])
  3514. -
  3515. -AC_LIBTOOL_CONFIG($1)
  3516. -
  3517. -AC_LANG_POP
  3518. -CC="$lt_save_CC"
  3519. -])# AC_LIBTOOL_LANG_C_CONFIG
  3520. -
  3521. -
  3522. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3523. -# --------------------------
  3524. -# Ensure that the configuration vars for the C compiler are
  3525. -# suitably defined. Those variables are subsequently used by
  3526. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3527. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3528. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3529. -[AC_LANG_PUSH(C++)
  3530. -AC_REQUIRE([AC_PROG_CXX])
  3531. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3532. -
  3533. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3534. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3535. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3536. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3537. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3538. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3539. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3540. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3541. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3542. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3543. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3544. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3545. -_LT_AC_TAGVAR(module_cmds, $1)=
  3546. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3547. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3548. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3549. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3550. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3551. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3552. -
  3553. -# Dependencies to place before and after the object being linked:
  3554. -_LT_AC_TAGVAR(predep_objects, $1)=
  3555. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3556. -_LT_AC_TAGVAR(predeps, $1)=
  3557. -_LT_AC_TAGVAR(postdeps, $1)=
  3558. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3559. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3560. -
  3561. -# Source file extension for C++ test sources.
  3562. -ac_ext=cpp
  3563. -
  3564. -# Object file extension for compiled C++ test sources.
  3565. -objext=o
  3566. -_LT_AC_TAGVAR(objext, $1)=$objext
  3567. -
  3568. -# Code to be used in simple compile tests
  3569. -lt_simple_compile_test_code="int some_variable = 0;"
  3570. -
  3571. -# Code to be used in simple link tests
  3572. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3573. -
  3574. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3575. -_LT_AC_SYS_COMPILER
  3576. -
  3577. -# save warnings/boilerplate of simple test code
  3578. -_LT_COMPILER_BOILERPLATE
  3579. -_LT_LINKER_BOILERPLATE
  3580. + # Check to see that the pipe works correctly.
  3581. + pipe_works=no
  3582. -# Allow CC to be a program name with arguments.
  3583. -lt_save_CC=$CC
  3584. -lt_save_LD=$LD
  3585. -lt_save_GCC=$GCC
  3586. -GCC=$GXX
  3587. -lt_save_with_gnu_ld=$with_gnu_ld
  3588. -lt_save_path_LD=$lt_cv_path_LD
  3589. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3590. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3591. -else
  3592. - $as_unset lt_cv_prog_gnu_ld
  3593. -fi
  3594. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3595. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3596. -else
  3597. - $as_unset lt_cv_path_LD
  3598. -fi
  3599. -test -z "${LDCXX+set}" || LD=$LDCXX
  3600. -CC=${CXX-"c++"}
  3601. -compiler=$CC
  3602. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3603. -_LT_CC_BASENAME([$compiler])
  3604. + rm -f conftest*
  3605. + cat > conftest.$ac_ext <<_LT_EOF
  3606. +#ifdef __cplusplus
  3607. +extern "C" {
  3608. +#endif
  3609. +char nm_test_var;
  3610. +void nm_test_func(void);
  3611. +void nm_test_func(void){}
  3612. +#ifdef __cplusplus
  3613. +}
  3614. +#endif
  3615. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3616. +_LT_EOF
  3617. -# We don't want -fno-exception wen compiling C++ code, so set the
  3618. -# no_builtin_flag separately
  3619. -if test "$GXX" = yes; then
  3620. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3621. -else
  3622. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3623. -fi
  3624. + if AC_TRY_EVAL(ac_compile); then
  3625. + # Now try to grab the symbols.
  3626. + nlist=conftest.nm
  3627. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3628. + # Try sorting and uniquifying the output.
  3629. + if sort "$nlist" | uniq > "$nlist"T; then
  3630. + mv -f "$nlist"T "$nlist"
  3631. + else
  3632. + rm -f "$nlist"T
  3633. + fi
  3634. -if test "$GXX" = yes; then
  3635. - # Set up default GNU C++ configuration
  3636. + # Make sure that we snagged all the symbols we need.
  3637. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3638. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3639. + cat <<_LT_EOF > conftest.$ac_ext
  3640. +#ifdef __cplusplus
  3641. +extern "C" {
  3642. +#endif
  3643. - AC_PROG_LD
  3644. +_LT_EOF
  3645. + # Now generate the symbol file.
  3646. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3647. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3648. - # archiving commands below assume that GNU ld is being used.
  3649. - if test "$with_gnu_ld" = yes; then
  3650. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3651. - _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'
  3652. + cat <<_LT_EOF >> conftest.$ac_ext
  3653. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3654. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3655. +/* The mapping between symbol names and symbols. */
  3656. +const struct {
  3657. + const char *name;
  3658. + void *address;
  3659. +}
  3660. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3661. +{
  3662. + { "@PROGRAM@", (void *) 0 },
  3663. +_LT_EOF
  3664. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3665. + cat <<\_LT_EOF >> conftest.$ac_ext
  3666. + {0, (void *) 0}
  3667. +};
  3668. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3669. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3670. - # investigate it a little bit more. (MM)
  3671. - wlarc='${wl}'
  3672. +/* This works around a problem in FreeBSD linker */
  3673. +#ifdef FREEBSD_WORKAROUND
  3674. +static const void *lt_preloaded_setup() {
  3675. + return lt__PROGRAM__LTX_preloaded_symbols;
  3676. +}
  3677. +#endif
  3678. - # ancient GNU ld didn't support --whole-archive et. al.
  3679. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3680. - grep 'no-whole-archive' > /dev/null; then
  3681. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3682. +#ifdef __cplusplus
  3683. +}
  3684. +#endif
  3685. +_LT_EOF
  3686. + # Now try linking the two files.
  3687. + mv conftest.$ac_objext conftstm.$ac_objext
  3688. + lt_save_LIBS="$LIBS"
  3689. + lt_save_CFLAGS="$CFLAGS"
  3690. + LIBS="conftstm.$ac_objext"
  3691. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3692. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3693. + pipe_works=yes
  3694. + fi
  3695. + LIBS="$lt_save_LIBS"
  3696. + CFLAGS="$lt_save_CFLAGS"
  3697. + else
  3698. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3699. + fi
  3700. + else
  3701. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3702. + fi
  3703. else
  3704. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3705. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3706. fi
  3707. else
  3708. - with_gnu_ld=no
  3709. - wlarc=
  3710. -
  3711. - # A generic and very simple default shared library creation
  3712. - # command for GNU C++ for the case where it uses the native
  3713. - # linker, instead of GNU ld. If possible, this setting should
  3714. - # overridden to take advantage of the native linker features on
  3715. - # the platform it is being used on.
  3716. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3717. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3718. + cat conftest.$ac_ext >&5
  3719. fi
  3720. + rm -rf conftest* conftst*
  3721. - # Commands to make compiler produce verbose output that lists
  3722. - # what "hidden" libraries, object files and flags are used when
  3723. - # linking a shared library.
  3724. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3725. -
  3726. + # Do not use the global_symbol_pipe unless it works.
  3727. + if test "$pipe_works" = yes; then
  3728. + break
  3729. + else
  3730. + lt_cv_sys_global_symbol_pipe=
  3731. + fi
  3732. +done
  3733. +])
  3734. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3735. + lt_cv_sys_global_symbol_to_cdecl=
  3736. +fi
  3737. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3738. + AC_MSG_RESULT(failed)
  3739. else
  3740. - GXX=no
  3741. - with_gnu_ld=no
  3742. - wlarc=
  3743. + AC_MSG_RESULT(ok)
  3744. fi
  3745. -# PORTME: fill in a description of your system's C++ link characteristics
  3746. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3747. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3748. -case $host_os in
  3749. - aix3*)
  3750. - # FIXME: insert proper C++ library support
  3751. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3752. - ;;
  3753. - aix[[4-9]]*)
  3754. - if test "$host_cpu" = ia64; then
  3755. - # On IA64, the linker does run time linking by default, so we don't
  3756. - # have to do anything special.
  3757. - aix_use_runtimelinking=no
  3758. - exp_sym_flag='-Bexport'
  3759. - no_entry_flag=""
  3760. - else
  3761. - aix_use_runtimelinking=no
  3762. -
  3763. - # Test if we are trying to use run time linking or normal
  3764. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3765. - # need to do runtime linking.
  3766. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3767. - for ld_flag in $LDFLAGS; do
  3768. - case $ld_flag in
  3769. - *-brtl*)
  3770. - aix_use_runtimelinking=yes
  3771. - break
  3772. - ;;
  3773. - esac
  3774. - done
  3775. - ;;
  3776. - esac
  3777. -
  3778. - exp_sym_flag='-bexport'
  3779. - no_entry_flag='-bnoentry'
  3780. - fi
  3781. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3782. + [Take the output of nm and produce a listing of raw symbols and C names])
  3783. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3784. + [Transform the output of nm in a proper C declaration])
  3785. +_LT_DECL([global_symbol_to_c_name_address],
  3786. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3787. + [Transform the output of nm in a C name address pair])
  3788. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3789. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3790. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3791. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3792. - # When large executables or shared objects are built, AIX ld can
  3793. - # have problems creating the table of contents. If linking a library
  3794. - # or program results in "error TOC overflow" add -mminimal-toc to
  3795. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3796. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3797. -
  3798. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3799. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3800. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3801. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3802. - if test "$GXX" = yes; then
  3803. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3804. - # We only want to do this on AIX 4.2 and lower, the check
  3805. - # below for broken collect2 doesn't work under 4.3+
  3806. - collect2name=`${CC} -print-prog-name=collect2`
  3807. - if test -f "$collect2name" && \
  3808. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3809. - then
  3810. - # We have reworked collect2
  3811. - :
  3812. - else
  3813. - # We have old collect2
  3814. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3815. - # It fails to find uninstalled libraries when the uninstalled
  3816. - # path is not listed in the libpath. Setting hardcode_minus_L
  3817. - # to unsupported forces relinking
  3818. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3819. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3820. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3821. - fi
  3822. - ;;
  3823. - esac
  3824. - shared_flag='-shared'
  3825. - if test "$aix_use_runtimelinking" = yes; then
  3826. - shared_flag="$shared_flag "'${wl}-G'
  3827. - fi
  3828. - else
  3829. - # not using gcc
  3830. - if test "$host_cpu" = ia64; then
  3831. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3832. - # chokes on -Wl,-G. The following line is correct:
  3833. - shared_flag='-G'
  3834. - else
  3835. - if test "$aix_use_runtimelinking" = yes; then
  3836. - shared_flag='${wl}-G'
  3837. - else
  3838. - shared_flag='${wl}-bM:SRE'
  3839. - fi
  3840. - fi
  3841. - fi
  3842. +# _LT_COMPILER_PIC([TAGNAME])
  3843. +# ---------------------------
  3844. +m4_defun([_LT_COMPILER_PIC],
  3845. +[m4_require([_LT_TAG_COMPILER])dnl
  3846. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3847. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3848. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3849. - # It seems that -bexpall does not export symbols beginning with
  3850. - # underscore (_), so it is better to generate a list of symbols to export.
  3851. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3852. - if test "$aix_use_runtimelinking" = yes; then
  3853. - # Warning - without using the other runtime loading flags (-brtl),
  3854. - # -berok will link without error, but may produce a broken library.
  3855. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3856. - # Determine the default libpath from the value encoded in an empty executable.
  3857. - _LT_AC_SYS_LIBPATH_AIX
  3858. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3859. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3860. +m4_if([$1], [CXX], [
  3861. + # C++ specific cases for pic, static, wl, etc.
  3862. + if test "$GXX" = yes; then
  3863. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3864. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3865. - _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"
  3866. - else
  3867. + case $host_os in
  3868. + aix*)
  3869. + # All AIX code is PIC.
  3870. if test "$host_cpu" = ia64; then
  3871. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3872. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3873. - _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"
  3874. - else
  3875. - # Determine the default libpath from the value encoded in an empty executable.
  3876. - _LT_AC_SYS_LIBPATH_AIX
  3877. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3878. - # Warning - without using the other run time loading flags,
  3879. - # -berok will link without error, but may produce a broken library.
  3880. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3881. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3882. - # Exported symbols can be pulled into shared objects from archives
  3883. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3884. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3885. - # This is similar to how AIX traditionally builds its shared libraries.
  3886. - _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'
  3887. - fi
  3888. - fi
  3889. - ;;
  3890. -
  3891. - beos*)
  3892. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3893. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3894. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3895. - # support --undefined. This deserves some investigation. FIXME
  3896. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3897. - else
  3898. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3899. - fi
  3900. - ;;
  3901. -
  3902. - chorus*)
  3903. - case $cc_basename in
  3904. - *)
  3905. - # FIXME: insert proper C++ library support
  3906. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3907. - ;;
  3908. - esac
  3909. - ;;
  3910. -
  3911. - cygwin* | mingw* | pw32*)
  3912. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3913. - # as there is no search path for DLLs.
  3914. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3915. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3916. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3917. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3918. -
  3919. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3920. - _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'
  3921. - # If the export-symbols file already is a .def file (1st line
  3922. - # is EXPORTS), use it as is; otherwise, prepend...
  3923. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3924. - cp $export_symbols $output_objdir/$soname.def;
  3925. - else
  3926. - echo EXPORTS > $output_objdir/$soname.def;
  3927. - cat $export_symbols >> $output_objdir/$soname.def;
  3928. - fi~
  3929. - $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'
  3930. - else
  3931. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3932. - fi
  3933. - ;;
  3934. - darwin* | rhapsody*)
  3935. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3936. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3937. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3938. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3939. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3940. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3941. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3942. - if test "$GXX" = yes ; then
  3943. - output_verbose_link_cmd='echo'
  3944. - _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}"
  3945. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3946. - _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}"
  3947. - _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}"
  3948. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3949. - _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}"
  3950. - _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}"
  3951. - fi
  3952. - else
  3953. - case $cc_basename in
  3954. - xlc*)
  3955. - output_verbose_link_cmd='echo'
  3956. - _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'
  3957. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3958. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3959. - _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}'
  3960. - _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}'
  3961. - ;;
  3962. - *)
  3963. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3964. - ;;
  3965. - esac
  3966. - fi
  3967. - ;;
  3968. -
  3969. - dgux*)
  3970. - case $cc_basename in
  3971. - ec++*)
  3972. - # FIXME: insert proper C++ library support
  3973. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3974. - ;;
  3975. - ghcx*)
  3976. - # Green Hills C++ Compiler
  3977. - # FIXME: insert proper C++ library support
  3978. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3979. - ;;
  3980. - *)
  3981. - # FIXME: insert proper C++ library support
  3982. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3983. - ;;
  3984. - esac
  3985. - ;;
  3986. - freebsd[[12]]*)
  3987. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3988. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3989. - ;;
  3990. - freebsd-elf*)
  3991. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3992. - ;;
  3993. - freebsd* | dragonfly*)
  3994. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3995. - # conventions
  3996. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3997. - ;;
  3998. - gnu*)
  3999. - ;;
  4000. - hpux9*)
  4001. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4002. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4003. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4004. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4005. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4006. - # but as the default
  4007. - # location of the library.
  4008. -
  4009. - case $cc_basename in
  4010. - CC*)
  4011. - # FIXME: insert proper C++ library support
  4012. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4013. - ;;
  4014. - aCC*)
  4015. - _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'
  4016. - # Commands to make compiler produce verbose output that lists
  4017. - # what "hidden" libraries, object files and flags are used when
  4018. - # linking a shared library.
  4019. - #
  4020. - # There doesn't appear to be a way to prevent this compiler from
  4021. - # explicitly linking system object files so we need to strip them
  4022. - # from the output so that they don't get included in the library
  4023. - # dependencies.
  4024. - 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'
  4025. - ;;
  4026. - *)
  4027. - if test "$GXX" = yes; then
  4028. - _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'
  4029. - else
  4030. - # FIXME: insert proper C++ library support
  4031. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4032. + # AIX 5 now supports IA64 processor
  4033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4034. fi
  4035. ;;
  4036. - esac
  4037. - ;;
  4038. - hpux10*|hpux11*)
  4039. - if test $with_gnu_ld = no; then
  4040. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4041. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4042. + amigaos*)
  4043. case $host_cpu in
  4044. - hppa*64*|ia64*) ;;
  4045. - *)
  4046. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4047. + powerpc)
  4048. + # see comment about AmigaOS4 .so support
  4049. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4050. + ;;
  4051. + m68k)
  4052. + # FIXME: we need at least 68020 code to build shared libraries, but
  4053. + # adding the `-m68020' flag to GCC prevents building anything better,
  4054. + # like `-m68040'.
  4055. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4056. ;;
  4057. esac
  4058. - fi
  4059. - case $host_cpu in
  4060. - hppa*64*|ia64*)
  4061. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4062. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4063. - ;;
  4064. - *)
  4065. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4066. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4067. - # but as the default
  4068. - # location of the library.
  4069. ;;
  4070. - esac
  4071. - case $cc_basename in
  4072. - CC*)
  4073. - # FIXME: insert proper C++ library support
  4074. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4075. - ;;
  4076. - aCC*)
  4077. - case $host_cpu in
  4078. - hppa*64*)
  4079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4080. - ;;
  4081. - ia64*)
  4082. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4083. - ;;
  4084. - *)
  4085. - _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'
  4086. - ;;
  4087. - esac
  4088. - # Commands to make compiler produce verbose output that lists
  4089. - # what "hidden" libraries, object files and flags are used when
  4090. - # linking a shared library.
  4091. - #
  4092. - # There doesn't appear to be a way to prevent this compiler from
  4093. - # explicitly linking system object files so we need to strip them
  4094. - # from the output so that they don't get included in the library
  4095. - # dependencies.
  4096. - 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'
  4097. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4098. + # PIC is the default for these OSes.
  4099. + ;;
  4100. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4101. + # This hack is so that the source file can tell whether it is being
  4102. + # built for inclusion in a dll (and should export symbols for example).
  4103. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4104. + # (--disable-auto-import) libraries
  4105. + m4_if([$1], [GCJ], [],
  4106. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4107. + ;;
  4108. + darwin* | rhapsody*)
  4109. + # PIC is the default on this platform
  4110. + # Common symbols not allowed in MH_DYLIB files
  4111. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4112. + ;;
  4113. + *djgpp*)
  4114. + # DJGPP does not support shared libraries at all
  4115. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4116. + ;;
  4117. + interix[[3-9]]*)
  4118. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4119. + # Instead, we relocate shared libraries at runtime.
  4120. + ;;
  4121. + sysv4*MP*)
  4122. + if test -d /usr/nec; then
  4123. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4124. + fi
  4125. + ;;
  4126. + hpux*)
  4127. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4128. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4129. + # sets the default TLS model and affects inlining.
  4130. + case $host_cpu in
  4131. + hppa*64*)
  4132. ;;
  4133. *)
  4134. - if test "$GXX" = yes; then
  4135. - if test $with_gnu_ld = no; then
  4136. - case $host_cpu in
  4137. - hppa*64*)
  4138. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4139. - ;;
  4140. - ia64*)
  4141. - _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'
  4142. - ;;
  4143. - *)
  4144. - _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'
  4145. - ;;
  4146. - esac
  4147. - fi
  4148. - else
  4149. - # FIXME: insert proper C++ library support
  4150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4151. - fi
  4152. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4153. ;;
  4154. + esac
  4155. + ;;
  4156. + *qnx* | *nto*)
  4157. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4158. + # it will coredump.
  4159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4160. + ;;
  4161. + *)
  4162. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4163. + ;;
  4164. esac
  4165. - ;;
  4166. - interix[[3-9]]*)
  4167. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4168. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4169. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4170. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4171. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4172. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  4173. - # default) and relocated if they conflict, which is a slow very memory
  4174. - # consuming and fragmenting process. To avoid this, we pick a random,
  4175. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4176. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4177. - _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'
  4178. - _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'
  4179. - ;;
  4180. - irix5* | irix6*)
  4181. - case $cc_basename in
  4182. - CC*)
  4183. - # SGI C++
  4184. - _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'
  4185. -
  4186. - # Archives containing C++ object files must be created using
  4187. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4188. - # necessary to make sure instantiated templates are included
  4189. - # in the archive.
  4190. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4191. - ;;
  4192. - *)
  4193. - if test "$GXX" = yes; then
  4194. - if test "$with_gnu_ld" = no; then
  4195. - _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'
  4196. - else
  4197. - _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'
  4198. - fi
  4199. + else
  4200. + case $host_os in
  4201. + aix[[4-9]]*)
  4202. + # All AIX code is PIC.
  4203. + if test "$host_cpu" = ia64; then
  4204. + # AIX 5 now supports IA64 processor
  4205. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4206. + else
  4207. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4208. fi
  4209. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4210. ;;
  4211. - esac
  4212. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4213. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4214. - ;;
  4215. - linux* | k*bsd*-gnu)
  4216. - case $cc_basename in
  4217. - KCC*)
  4218. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4219. -
  4220. - # KCC will only create a shared library if the output file
  4221. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4222. - # to its proper name (with version) after linking.
  4223. - _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'
  4224. - _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'
  4225. - # Commands to make compiler produce verbose output that lists
  4226. - # what "hidden" libraries, object files and flags are used when
  4227. - # linking a shared library.
  4228. - #
  4229. - # There doesn't appear to be a way to prevent this compiler from
  4230. - # explicitly linking system object files so we need to strip them
  4231. - # from the output so that they don't get included in the library
  4232. - # dependencies.
  4233. - 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'
  4234. -
  4235. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4236. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4237. -
  4238. - # Archives containing C++ object files must be created using
  4239. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4240. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4241. - ;;
  4242. - icpc*)
  4243. - # Intel C++
  4244. - with_gnu_ld=yes
  4245. - # version 8.0 and above of icpc choke on multiply defined symbols
  4246. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  4247. - # earlier do not add the objects themselves.
  4248. - case `$CC -V 2>&1` in
  4249. - *"Version 7."*)
  4250. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4251. - _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'
  4252. - ;;
  4253. - *) # Version 8.0 or newer
  4254. - tmp_idyn=
  4255. - case $host_cpu in
  4256. - ia64*) tmp_idyn=' -i_dynamic';;
  4257. - esac
  4258. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4259. - _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'
  4260. + chorus*)
  4261. + case $cc_basename in
  4262. + cxch68*)
  4263. + # Green Hills C++ Compiler
  4264. + # _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"
  4265. ;;
  4266. esac
  4267. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4268. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4269. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4270. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4271. - ;;
  4272. - pgCC* | pgcpp*)
  4273. - # Portland Group C++ compiler
  4274. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  4275. - _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'
  4276. -
  4277. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4278. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4279. - _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'
  4280. - ;;
  4281. - cxx*)
  4282. - # Compaq C++
  4283. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4284. - _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'
  4285. -
  4286. - runpath_var=LD_RUN_PATH
  4287. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4288. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4289. -
  4290. - # Commands to make compiler produce verbose output that lists
  4291. - # what "hidden" libraries, object files and flags are used when
  4292. - # linking a shared library.
  4293. - #
  4294. - # There doesn't appear to be a way to prevent this compiler from
  4295. - # explicitly linking system object files so we need to strip them
  4296. - # from the output so that they don't get included in the library
  4297. - # dependencies.
  4298. - 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'
  4299. ;;
  4300. - *)
  4301. - case `$CC -V 2>&1 | sed 5q` in
  4302. - *Sun\ C*)
  4303. - # Sun C++ 5.9
  4304. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4305. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4306. - _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'
  4307. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4308. - _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'
  4309. -
  4310. - # Not sure whether something based on
  4311. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4312. - # would be better.
  4313. - output_verbose_link_cmd='echo'
  4314. -
  4315. - # Archives containing C++ object files must be created using
  4316. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4317. - # necessary to make sure instantiated templates are included
  4318. - # in the archive.
  4319. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4320. - ;;
  4321. + dgux*)
  4322. + case $cc_basename in
  4323. + ec++*)
  4324. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4325. + ;;
  4326. + ghcx*)
  4327. + # Green Hills C++ Compiler
  4328. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4329. + ;;
  4330. + *)
  4331. + ;;
  4332. esac
  4333. ;;
  4334. - esac
  4335. - ;;
  4336. - lynxos*)
  4337. - # FIXME: insert proper C++ library support
  4338. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4339. - ;;
  4340. - m88k*)
  4341. - # FIXME: insert proper C++ library support
  4342. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4343. - ;;
  4344. - mvs*)
  4345. - case $cc_basename in
  4346. - cxx*)
  4347. - # FIXME: insert proper C++ library support
  4348. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4349. - ;;
  4350. - *)
  4351. - # FIXME: insert proper C++ library support
  4352. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4353. + freebsd* | dragonfly*)
  4354. + # FreeBSD uses GNU C++
  4355. ;;
  4356. - esac
  4357. - ;;
  4358. - netbsd*)
  4359. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4360. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4361. - wlarc=
  4362. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4363. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4364. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4365. - fi
  4366. - # Workaround some broken pre-1.5 toolchains
  4367. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4368. - ;;
  4369. - openbsd2*)
  4370. - # C++ shared libraries are fairly broken
  4371. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4372. - ;;
  4373. - openbsd*)
  4374. - if test -f /usr/libexec/ld.so; then
  4375. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4376. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4377. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4378. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4379. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4380. - _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'
  4381. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4382. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4383. - fi
  4384. - output_verbose_link_cmd='echo'
  4385. - else
  4386. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4387. - fi
  4388. - ;;
  4389. - osf3*)
  4390. - case $cc_basename in
  4391. - KCC*)
  4392. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4393. -
  4394. - # KCC will only create a shared library if the output file
  4395. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4396. - # to its proper name (with version) after linking.
  4397. - _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'
  4398. -
  4399. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4400. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4401. -
  4402. - # Archives containing C++ object files must be created using
  4403. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4404. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4405. -
  4406. - ;;
  4407. - RCC*)
  4408. - # Rational C++ 2.4.1
  4409. - # FIXME: insert proper C++ library support
  4410. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4411. - ;;
  4412. - cxx*)
  4413. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4414. - _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'
  4415. -
  4416. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4417. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4418. -
  4419. - # Commands to make compiler produce verbose output that lists
  4420. - # what "hidden" libraries, object files and flags are used when
  4421. - # linking a shared library.
  4422. - #
  4423. - # There doesn't appear to be a way to prevent this compiler from
  4424. - # explicitly linking system object files so we need to strip them
  4425. - # from the output so that they don't get included in the library
  4426. - # dependencies.
  4427. - 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'
  4428. + hpux9* | hpux10* | hpux11*)
  4429. + case $cc_basename in
  4430. + CC*)
  4431. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4432. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4433. + if test "$host_cpu" != ia64; then
  4434. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4435. + fi
  4436. + ;;
  4437. + aCC*)
  4438. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4439. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4440. + case $host_cpu in
  4441. + hppa*64*|ia64*)
  4442. + # +Z the default
  4443. + ;;
  4444. + *)
  4445. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4446. + ;;
  4447. + esac
  4448. + ;;
  4449. + *)
  4450. + ;;
  4451. + esac
  4452. ;;
  4453. - *)
  4454. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4455. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4456. - _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'
  4457. -
  4458. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4459. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4460. -
  4461. - # Commands to make compiler produce verbose output that lists
  4462. - # what "hidden" libraries, object files and flags are used when
  4463. - # linking a shared library.
  4464. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4465. -
  4466. - else
  4467. - # FIXME: insert proper C++ library support
  4468. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4469. - fi
  4470. + interix*)
  4471. + # This is c89, which is MS Visual C++ (no shared libs)
  4472. + # Anyone wants to do a port?
  4473. ;;
  4474. - esac
  4475. - ;;
  4476. - osf4* | osf5*)
  4477. - case $cc_basename in
  4478. - KCC*)
  4479. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4480. -
  4481. - # KCC will only create a shared library if the output file
  4482. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4483. - # to its proper name (with version) after linking.
  4484. - _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'
  4485. -
  4486. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4487. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4488. -
  4489. - # Archives containing C++ object files must be created using
  4490. - # the KAI C++ compiler.
  4491. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4492. - ;;
  4493. - RCC*)
  4494. - # Rational C++ 2.4.1
  4495. - # FIXME: insert proper C++ library support
  4496. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4497. - ;;
  4498. - cxx*)
  4499. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4500. - _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'
  4501. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4502. - echo "-hidden">> $lib.exp~
  4503. - $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~
  4504. - $rm $lib.exp'
  4505. -
  4506. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4507. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4508. -
  4509. - # Commands to make compiler produce verbose output that lists
  4510. - # what "hidden" libraries, object files and flags are used when
  4511. - # linking a shared library.
  4512. - #
  4513. - # There doesn't appear to be a way to prevent this compiler from
  4514. - # explicitly linking system object files so we need to strip them
  4515. - # from the output so that they don't get included in the library
  4516. - # dependencies.
  4517. - 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'
  4518. + irix5* | irix6* | nonstopux*)
  4519. + case $cc_basename in
  4520. + CC*)
  4521. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4522. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4523. + # CC pic flag -KPIC is the default.
  4524. + ;;
  4525. + *)
  4526. + ;;
  4527. + esac
  4528. ;;
  4529. - *)
  4530. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4531. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4532. - _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'
  4533. -
  4534. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4535. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4536. -
  4537. - # Commands to make compiler produce verbose output that lists
  4538. - # what "hidden" libraries, object files and flags are used when
  4539. - # linking a shared library.
  4540. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4541. -
  4542. - else
  4543. - # FIXME: insert proper C++ library support
  4544. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4545. - fi
  4546. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4547. + case $cc_basename in
  4548. + KCC*)
  4549. + # KAI C++ Compiler
  4550. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4552. + ;;
  4553. + ecpc* )
  4554. + # old Intel C++ for x86_64 which still supported -KPIC.
  4555. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4556. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4557. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4558. + ;;
  4559. + icpc* )
  4560. + # Intel C++, used to be incompatible with GCC.
  4561. + # ICC 10 doesn't accept -KPIC any more.
  4562. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4563. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4564. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4565. + ;;
  4566. + pgCC* | pgcpp*)
  4567. + # Portland Group C++ compiler
  4568. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4569. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4570. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4571. + ;;
  4572. + cxx*)
  4573. + # Compaq C++
  4574. + # Make sure the PIC flag is empty. It appears that all Alpha
  4575. + # Linux and Compaq Tru64 Unix objects are PIC.
  4576. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4577. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4578. + ;;
  4579. + xlc* | xlC*)
  4580. + # IBM XL 8.0 on PPC
  4581. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4582. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4583. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4584. + ;;
  4585. + *)
  4586. + case `$CC -V 2>&1 | sed 5q` in
  4587. + *Sun\ C*)
  4588. + # Sun C++ 5.9
  4589. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4591. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4592. + ;;
  4593. + esac
  4594. + ;;
  4595. + esac
  4596. ;;
  4597. - esac
  4598. - ;;
  4599. - psos*)
  4600. - # FIXME: insert proper C++ library support
  4601. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4602. - ;;
  4603. - sunos4*)
  4604. - case $cc_basename in
  4605. - CC*)
  4606. - # Sun C++ 4.x
  4607. - # FIXME: insert proper C++ library support
  4608. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4609. - ;;
  4610. - lcc*)
  4611. - # Lucid
  4612. - # FIXME: insert proper C++ library support
  4613. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4614. + lynxos*)
  4615. ;;
  4616. - *)
  4617. - # FIXME: insert proper C++ library support
  4618. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4619. + m88k*)
  4620. ;;
  4621. - esac
  4622. - ;;
  4623. - solaris*)
  4624. - case $cc_basename in
  4625. - CC*)
  4626. - # Sun C++ 4.2, 5.x and Centerline C++
  4627. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4628. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4629. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4630. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4631. - $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'
  4632. -
  4633. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4634. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4635. - case $host_os in
  4636. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4637. + mvs*)
  4638. + case $cc_basename in
  4639. + cxx*)
  4640. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4641. + ;;
  4642. *)
  4643. - # The compiler driver will combine and reorder linker options,
  4644. - # but understands `-z linker_flag'.
  4645. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4646. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4647. ;;
  4648. esac
  4649. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4650. -
  4651. - output_verbose_link_cmd='echo'
  4652. -
  4653. - # Archives containing C++ object files must be created using
  4654. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4655. - # necessary to make sure instantiated templates are included
  4656. - # in the archive.
  4657. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4658. - ;;
  4659. - gcx*)
  4660. - # Green Hills C++ Compiler
  4661. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4662. -
  4663. - # The C++ compiler must be used to create the archive.
  4664. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4665. ;;
  4666. - *)
  4667. - # GNU C++ compiler with Solaris linker
  4668. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4669. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4670. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4671. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4672. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4673. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4674. -
  4675. - # Commands to make compiler produce verbose output that lists
  4676. - # what "hidden" libraries, object files and flags are used when
  4677. - # linking a shared library.
  4678. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4679. - else
  4680. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4681. - # platform.
  4682. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4683. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4684. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4685. -
  4686. - # Commands to make compiler produce verbose output that lists
  4687. - # what "hidden" libraries, object files and flags are used when
  4688. - # linking a shared library.
  4689. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4690. - fi
  4691. -
  4692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4693. - case $host_os in
  4694. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4695. + netbsd* | netbsdelf*-gnu)
  4696. + ;;
  4697. + *qnx* | *nto*)
  4698. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4699. + # it will coredump.
  4700. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4701. + ;;
  4702. + osf3* | osf4* | osf5*)
  4703. + case $cc_basename in
  4704. + KCC*)
  4705. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4706. + ;;
  4707. + RCC*)
  4708. + # Rational C++ 2.4.1
  4709. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4710. + ;;
  4711. + cxx*)
  4712. + # Digital/Compaq C++
  4713. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4714. + # Make sure the PIC flag is empty. It appears that all Alpha
  4715. + # Linux and Compaq Tru64 Unix objects are PIC.
  4716. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4717. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4718. + ;;
  4719. *)
  4720. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4721. ;;
  4722. - esac
  4723. - fi
  4724. + esac
  4725. ;;
  4726. - esac
  4727. - ;;
  4728. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4729. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4730. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4731. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4732. - runpath_var='LD_RUN_PATH'
  4733. -
  4734. - case $cc_basename in
  4735. - CC*)
  4736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4737. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4738. + psos*)
  4739. ;;
  4740. - *)
  4741. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4742. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4743. + solaris*)
  4744. + case $cc_basename in
  4745. + CC*)
  4746. + # Sun C++ 4.2, 5.x and Centerline C++
  4747. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4748. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4749. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4750. + ;;
  4751. + gcx*)
  4752. + # Green Hills C++ Compiler
  4753. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4754. + ;;
  4755. + *)
  4756. + ;;
  4757. + esac
  4758. ;;
  4759. - esac
  4760. - ;;
  4761. - sysv5* | sco3.2v5* | sco5v6*)
  4762. - # Note: We can NOT use -z defs as we might desire, because we do not
  4763. - # link with -lc, and that would cause any symbols used from libc to
  4764. - # always be unresolved, which means just about no library would
  4765. - # ever link correctly. If we're not using GNU ld we use -z text
  4766. - # though, which does catch some bad symbols but isn't as heavy-handed
  4767. - # as -z defs.
  4768. - # For security reasons, it is highly recommended that you always
  4769. - # use absolute paths for naming shared libraries, and exclude the
  4770. - # DT_RUNPATH tag from executables and libraries. But doing so
  4771. - # requires that you compile everything twice, which is a pain.
  4772. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4773. - # non-empty value in the environment. Most likely only useful for
  4774. - # creating official distributions of packages.
  4775. - # This is a hack until libtool officially supports absolute path
  4776. - # names for shared libraries.
  4777. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4778. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4779. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4780. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4781. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4782. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4783. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4784. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4785. - runpath_var='LD_RUN_PATH'
  4786. -
  4787. - case $cc_basename in
  4788. - CC*)
  4789. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4790. - _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'
  4791. + sunos4*)
  4792. + case $cc_basename in
  4793. + CC*)
  4794. + # Sun C++ 4.x
  4795. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4796. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4797. + ;;
  4798. + lcc*)
  4799. + # Lucid
  4800. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4801. + ;;
  4802. + *)
  4803. + ;;
  4804. + esac
  4805. ;;
  4806. - *)
  4807. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4808. - _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'
  4809. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4810. + case $cc_basename in
  4811. + CC*)
  4812. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4813. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4814. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4815. + ;;
  4816. + esac
  4817. ;;
  4818. - esac
  4819. - ;;
  4820. - tandem*)
  4821. - case $cc_basename in
  4822. - NCC*)
  4823. - # NonStop-UX NCC 3.20
  4824. - # FIXME: insert proper C++ library support
  4825. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4826. + tandem*)
  4827. + case $cc_basename in
  4828. + NCC*)
  4829. + # NonStop-UX NCC 3.20
  4830. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4831. + ;;
  4832. + *)
  4833. + ;;
  4834. + esac
  4835. + ;;
  4836. + vxworks*)
  4837. ;;
  4838. *)
  4839. - # FIXME: insert proper C++ library support
  4840. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4841. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4842. ;;
  4843. esac
  4844. - ;;
  4845. - vxworks*)
  4846. - # FIXME: insert proper C++ library support
  4847. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4848. - ;;
  4849. - *)
  4850. - # FIXME: insert proper C++ library support
  4851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4852. - ;;
  4853. -esac
  4854. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4855. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4856. -
  4857. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4858. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4859. -
  4860. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4861. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4862. -AC_LIBTOOL_PROG_CC_C_O($1)
  4863. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4864. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4865. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4866. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4867. -
  4868. -AC_LIBTOOL_CONFIG($1)
  4869. + fi
  4870. +],
  4871. +[
  4872. + if test "$GCC" = yes; then
  4873. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4874. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4875. -AC_LANG_POP
  4876. -CC=$lt_save_CC
  4877. -LDCXX=$LD
  4878. -LD=$lt_save_LD
  4879. -GCC=$lt_save_GCC
  4880. -with_gnu_ldcxx=$with_gnu_ld
  4881. -with_gnu_ld=$lt_save_with_gnu_ld
  4882. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4883. -lt_cv_path_LD=$lt_save_path_LD
  4884. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4885. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4886. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4887. + case $host_os in
  4888. + aix*)
  4889. + # All AIX code is PIC.
  4890. + if test "$host_cpu" = ia64; then
  4891. + # AIX 5 now supports IA64 processor
  4892. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4893. + fi
  4894. + ;;
  4895. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4896. -# ------------------------------------
  4897. -# Figure out "hidden" library dependencies from verbose
  4898. -# compiler output when linking a shared library.
  4899. -# Parse the compiler output and extract the necessary
  4900. -# objects, libraries and library flags.
  4901. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4902. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4903. -dnl we can't use the lt_simple_compile_test_code here,
  4904. -dnl because it contains code intended for an executable,
  4905. -dnl not a library. It's possible we should let each
  4906. -dnl tag define a new lt_????_link_test_code variable,
  4907. -dnl but it's only used here...
  4908. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4909. -int a;
  4910. -void foo (void) { a = 0; }
  4911. -EOF
  4912. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4913. -class Foo
  4914. -{
  4915. -public:
  4916. - Foo (void) { a = 0; }
  4917. -private:
  4918. - int a;
  4919. -};
  4920. -EOF
  4921. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4922. - subroutine foo
  4923. - implicit none
  4924. - integer*4 a
  4925. - a=0
  4926. - return
  4927. - end
  4928. -EOF
  4929. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4930. -public class foo {
  4931. - private int a;
  4932. - public void bar (void) {
  4933. - a = 0;
  4934. - }
  4935. -};
  4936. -EOF
  4937. -])
  4938. -dnl Parse the compiler output and extract the necessary
  4939. -dnl objects, libraries and library flags.
  4940. -if AC_TRY_EVAL(ac_compile); then
  4941. - # Parse the compiler output and extract the necessary
  4942. - # objects, libraries and library flags.
  4943. + amigaos*)
  4944. + case $host_cpu in
  4945. + powerpc)
  4946. + # see comment about AmigaOS4 .so support
  4947. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4948. + ;;
  4949. + m68k)
  4950. + # FIXME: we need at least 68020 code to build shared libraries, but
  4951. + # adding the `-m68020' flag to GCC prevents building anything better,
  4952. + # like `-m68040'.
  4953. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4954. + ;;
  4955. + esac
  4956. + ;;
  4957. - # Sentinel used to keep track of whether or not we are before
  4958. - # the conftest object file.
  4959. - pre_test_object_deps_done=no
  4960. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4961. + # PIC is the default for these OSes.
  4962. + ;;
  4963. - # The `*' in the case matches for architectures that use `case' in
  4964. - # $output_verbose_cmd can trigger glob expansion during the loop
  4965. - # eval without this substitution.
  4966. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4967. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4968. + # This hack is so that the source file can tell whether it is being
  4969. + # built for inclusion in a dll (and should export symbols for example).
  4970. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4971. + # (--disable-auto-import) libraries
  4972. + m4_if([$1], [GCJ], [],
  4973. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4974. + ;;
  4975. - for p in `eval $output_verbose_link_cmd`; do
  4976. - case $p in
  4977. + darwin* | rhapsody*)
  4978. + # PIC is the default on this platform
  4979. + # Common symbols not allowed in MH_DYLIB files
  4980. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4981. + ;;
  4982. - -L* | -R* | -l*)
  4983. - # Some compilers place space between "-{L,R}" and the path.
  4984. - # Remove the space.
  4985. - if test $p = "-L" \
  4986. - || test $p = "-R"; then
  4987. - prev=$p
  4988. - continue
  4989. - else
  4990. - prev=
  4991. - fi
  4992. + hpux*)
  4993. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4994. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4995. + # sets the default TLS model and affects inlining.
  4996. + case $host_cpu in
  4997. + hppa*64*)
  4998. + # +Z the default
  4999. + ;;
  5000. + *)
  5001. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5002. + ;;
  5003. + esac
  5004. + ;;
  5005. - if test "$pre_test_object_deps_done" = no; then
  5006. - case $p in
  5007. - -L* | -R*)
  5008. - # Internal compiler library paths should come after those
  5009. - # provided the user. The postdeps already come after the
  5010. - # user supplied libs so there is no need to process them.
  5011. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5012. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5013. - else
  5014. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5015. - fi
  5016. - ;;
  5017. - # The "-l" case would never come before the object being
  5018. - # linked, so don't bother handling this case.
  5019. - esac
  5020. - else
  5021. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5022. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5023. - else
  5024. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5025. - fi
  5026. - fi
  5027. - ;;
  5028. + interix[[3-9]]*)
  5029. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5030. + # Instead, we relocate shared libraries at runtime.
  5031. + ;;
  5032. - *.$objext)
  5033. - # This assumes that the test object file only shows up
  5034. - # once in the compiler output.
  5035. - if test "$p" = "conftest.$objext"; then
  5036. - pre_test_object_deps_done=yes
  5037. - continue
  5038. - fi
  5039. + msdosdjgpp*)
  5040. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5041. + # on systems that don't support them.
  5042. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5043. + enable_shared=no
  5044. + ;;
  5045. - if test "$pre_test_object_deps_done" = no; then
  5046. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5047. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5048. - else
  5049. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5050. - fi
  5051. - else
  5052. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5053. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5054. - else
  5055. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5056. - fi
  5057. - fi
  5058. - ;;
  5059. + *nto* | *qnx*)
  5060. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5061. + # it will coredump.
  5062. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5063. + ;;
  5064. - *) ;; # Ignore the rest.
  5065. + sysv4*MP*)
  5066. + if test -d /usr/nec; then
  5067. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5068. + fi
  5069. + ;;
  5070. + *)
  5071. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5072. + ;;
  5073. esac
  5074. - done
  5075. -
  5076. - # Clean up.
  5077. - rm -f a.out a.exe
  5078. -else
  5079. - echo "libtool.m4: error: problem compiling $1 test program"
  5080. -fi
  5081. + else
  5082. + # PORTME Check for flag to pass linker flags through the system compiler.
  5083. + case $host_os in
  5084. + aix*)
  5085. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5086. + if test "$host_cpu" = ia64; then
  5087. + # AIX 5 now supports IA64 processor
  5088. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5089. + else
  5090. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5091. + fi
  5092. + ;;
  5093. -$rm -f confest.$objext
  5094. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5095. + # This hack is so that the source file can tell whether it is being
  5096. + # built for inclusion in a dll (and should export symbols for example).
  5097. + m4_if([$1], [GCJ], [],
  5098. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5099. + ;;
  5100. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  5101. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5102. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  5103. -fi
  5104. + hpux9* | hpux10* | hpux11*)
  5105. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5106. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5107. + # not for PA HP-UX.
  5108. + case $host_cpu in
  5109. + hppa*64*|ia64*)
  5110. + # +Z the default
  5111. + ;;
  5112. + *)
  5113. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5114. + ;;
  5115. + esac
  5116. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5118. + ;;
  5119. -# PORTME: override above test on systems where it is broken
  5120. -ifelse([$1],[CXX],
  5121. -[case $host_os in
  5122. -interix[[3-9]]*)
  5123. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  5124. - # hack all around it, let's just trust "g++" to DTRT.
  5125. - _LT_AC_TAGVAR(predep_objects,$1)=
  5126. - _LT_AC_TAGVAR(postdep_objects,$1)=
  5127. - _LT_AC_TAGVAR(postdeps,$1)=
  5128. - ;;
  5129. + irix5* | irix6* | nonstopux*)
  5130. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5131. + # PIC (with -KPIC) is the default.
  5132. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5133. + ;;
  5134. -linux*)
  5135. - case `$CC -V 2>&1 | sed 5q` in
  5136. - *Sun\ C*)
  5137. - # Sun C++ 5.9
  5138. - #
  5139. - # The more standards-conforming stlport4 library is
  5140. - # incompatible with the Cstd library. Avoid specifying
  5141. - # it if it's in CXXFLAGS. Ignore libCrun as
  5142. - # -library=stlport4 depends on it.
  5143. - case " $CXX $CXXFLAGS " in
  5144. - *" -library=stlport4 "*)
  5145. - solaris_use_stlport4=yes
  5146. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5147. + case $cc_basename in
  5148. + # old Intel for x86_64 which still supported -KPIC.
  5149. + ecc*)
  5150. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5152. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5153. + ;;
  5154. + # icc used to be incompatible with GCC.
  5155. + # ICC 10 doesn't accept -KPIC any more.
  5156. + icc* | ifort*)
  5157. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5158. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5159. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5160. + ;;
  5161. + # Lahey Fortran 8.1.
  5162. + lf95*)
  5163. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5164. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5165. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5166. + ;;
  5167. + pgcc* | pgf77* | pgf90* | pgf95*)
  5168. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5169. + # which looks to be a dead project)
  5170. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5171. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5172. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5173. + ;;
  5174. + ccc*)
  5175. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5176. + # All Alpha code is PIC.
  5177. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5178. + ;;
  5179. + xl*)
  5180. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5181. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5182. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5183. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5184. + ;;
  5185. + *)
  5186. + case `$CC -V 2>&1 | sed 5q` in
  5187. + *Sun\ C*)
  5188. + # Sun C 5.9
  5189. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5190. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5191. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5192. + ;;
  5193. + *Sun\ F*)
  5194. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5195. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5196. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5197. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5198. + ;;
  5199. + esac
  5200. + ;;
  5201. + esac
  5202. ;;
  5203. - esac
  5204. - if test "$solaris_use_stlport4" != yes; then
  5205. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5206. - fi
  5207. - ;;
  5208. - esac
  5209. - ;;
  5210. -solaris*)
  5211. - case $cc_basename in
  5212. - CC*)
  5213. - # The more standards-conforming stlport4 library is
  5214. - # incompatible with the Cstd library. Avoid specifying
  5215. - # it if it's in CXXFLAGS. Ignore libCrun as
  5216. - # -library=stlport4 depends on it.
  5217. - case " $CXX $CXXFLAGS " in
  5218. - *" -library=stlport4 "*)
  5219. - solaris_use_stlport4=yes
  5220. + newsos6)
  5221. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5222. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5223. ;;
  5224. - esac
  5225. - # Adding this requires a known-good setup of shared libraries for
  5226. - # Sun compiler versions before 5.6, else PIC objects from an old
  5227. - # archive will be linked into the output, leading to subtle bugs.
  5228. - if test "$solaris_use_stlport4" != yes; then
  5229. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  5230. - fi
  5231. - ;;
  5232. - esac
  5233. - ;;
  5234. -esac
  5235. -])
  5236. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5237. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5238. -esac
  5239. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5240. + *nto* | *qnx*)
  5241. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5242. + # it will coredump.
  5243. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5244. + ;;
  5245. -# AC_LIBTOOL_LANG_F77_CONFIG
  5246. -# --------------------------
  5247. -# Ensure that the configuration vars for the C compiler are
  5248. -# suitably defined. Those variables are subsequently used by
  5249. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5250. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5251. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5252. -[AC_REQUIRE([AC_PROG_F77])
  5253. -AC_LANG_PUSH(Fortran 77)
  5254. + osf3* | osf4* | osf5*)
  5255. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5256. + # All OSF/1 code is PIC.
  5257. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5258. + ;;
  5259. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5260. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5261. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5262. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5263. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5264. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5265. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5266. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5267. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5268. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5269. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5270. -_LT_AC_TAGVAR(module_cmds, $1)=
  5271. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5272. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5273. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5274. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5275. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5276. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5277. + rdos*)
  5278. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5279. + ;;
  5280. -# Source file extension for f77 test sources.
  5281. -ac_ext=f
  5282. -
  5283. -# Object file extension for compiled f77 test sources.
  5284. -objext=o
  5285. -_LT_AC_TAGVAR(objext, $1)=$objext
  5286. -
  5287. -# Code to be used in simple compile tests
  5288. -lt_simple_compile_test_code="\
  5289. - subroutine t
  5290. - return
  5291. - end
  5292. -"
  5293. + solaris*)
  5294. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5295. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5296. + case $cc_basename in
  5297. + f77* | f90* | f95*)
  5298. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5299. + *)
  5300. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5301. + esac
  5302. + ;;
  5303. -# Code to be used in simple link tests
  5304. -lt_simple_link_test_code="\
  5305. - program t
  5306. - end
  5307. -"
  5308. + sunos4*)
  5309. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5310. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5311. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5312. + ;;
  5313. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5314. -_LT_AC_SYS_COMPILER
  5315. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5316. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5317. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5318. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5319. + ;;
  5320. -# save warnings/boilerplate of simple test code
  5321. -_LT_COMPILER_BOILERPLATE
  5322. -_LT_LINKER_BOILERPLATE
  5323. + sysv4*MP*)
  5324. + if test -d /usr/nec ;then
  5325. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5326. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5327. + fi
  5328. + ;;
  5329. -# Allow CC to be a program name with arguments.
  5330. -lt_save_CC="$CC"
  5331. -CC=${F77-"f77"}
  5332. -compiler=$CC
  5333. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5334. -_LT_CC_BASENAME([$compiler])
  5335. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5336. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5337. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5338. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5339. + ;;
  5340. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5341. -AC_MSG_RESULT([$can_build_shared])
  5342. + unicos*)
  5343. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5344. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5345. + ;;
  5346. -AC_MSG_CHECKING([whether to build shared libraries])
  5347. -test "$can_build_shared" = "no" && enable_shared=no
  5348. + uts4*)
  5349. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5350. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5351. + ;;
  5352. -# On AIX, shared libraries and static libraries use the same namespace, and
  5353. -# are all built from PIC.
  5354. -case $host_os in
  5355. -aix3*)
  5356. - test "$enable_shared" = yes && enable_static=no
  5357. - if test -n "$RANLIB"; then
  5358. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5359. - postinstall_cmds='$RANLIB $lib'
  5360. - fi
  5361. - ;;
  5362. -aix[[4-9]]*)
  5363. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5364. - test "$enable_shared" = yes && enable_static=no
  5365. + *)
  5366. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5367. + ;;
  5368. + esac
  5369. fi
  5370. - ;;
  5371. +])
  5372. +case $host_os in
  5373. + # For platforms which do not support PIC, -DPIC is meaningless:
  5374. + *djgpp*)
  5375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5376. + ;;
  5377. + *)
  5378. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5379. + ;;
  5380. esac
  5381. -AC_MSG_RESULT([$enable_shared])
  5382. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5383. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5384. + [How to pass a linker flag through the compiler])
  5385. -AC_MSG_CHECKING([whether to build static libraries])
  5386. -# Make sure either enable_shared or enable_static is yes.
  5387. -test "$enable_shared" = yes || enable_static=yes
  5388. -AC_MSG_RESULT([$enable_static])
  5389. -
  5390. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5391. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5392. -
  5393. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5394. -AC_LIBTOOL_PROG_CC_C_O($1)
  5395. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5396. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5397. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5398. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5399. +#
  5400. +# Check to make sure the PIC flag actually works.
  5401. +#
  5402. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5403. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5404. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5405. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5406. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5407. + "" | " "*) ;;
  5408. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5409. + esac],
  5410. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5411. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5412. +fi
  5413. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5414. + [Additional compiler flags for building library objects])
  5415. -AC_LIBTOOL_CONFIG($1)
  5416. +#
  5417. +# Check to make sure the static flag actually works.
  5418. +#
  5419. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5420. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5421. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5422. + $lt_tmp_static_flag,
  5423. + [],
  5424. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5425. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5426. + [Compiler flag to prevent dynamic linking])
  5427. +])# _LT_COMPILER_PIC
  5428. -AC_LANG_POP
  5429. -CC="$lt_save_CC"
  5430. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5431. +# _LT_LINKER_SHLIBS([TAGNAME])
  5432. +# ----------------------------
  5433. +# See if the linker supports building shared libraries.
  5434. +m4_defun([_LT_LINKER_SHLIBS],
  5435. +[AC_REQUIRE([LT_PATH_LD])dnl
  5436. +AC_REQUIRE([LT_PATH_NM])dnl
  5437. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5438. +m4_require([_LT_DECL_EGREP])dnl
  5439. +m4_require([_LT_DECL_SED])dnl
  5440. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5441. +m4_require([_LT_TAG_COMPILER])dnl
  5442. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5443. +m4_if([$1], [CXX], [
  5444. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5445. + case $host_os in
  5446. + aix[[4-9]]*)
  5447. + # If we're using GNU nm, then we don't want the "-C" option.
  5448. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5449. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5450. + _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'
  5451. + else
  5452. + _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'
  5453. + fi
  5454. + ;;
  5455. + pw32*)
  5456. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5457. + ;;
  5458. + cygwin* | mingw* | cegcc*)
  5459. + _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'
  5460. + ;;
  5461. + linux* | k*bsd*-gnu)
  5462. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5463. + ;;
  5464. + *)
  5465. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5466. + ;;
  5467. + esac
  5468. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5469. +], [
  5470. + runpath_var=
  5471. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5472. + _LT_TAGVAR(always_export_symbols, $1)=no
  5473. + _LT_TAGVAR(archive_cmds, $1)=
  5474. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5475. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5476. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5477. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5478. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5479. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5480. + _LT_TAGVAR(hardcode_direct, $1)=no
  5481. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5482. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5483. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5484. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5485. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5486. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5487. + _LT_TAGVAR(inherit_rpath, $1)=no
  5488. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5489. + _LT_TAGVAR(module_cmds, $1)=
  5490. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5491. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5492. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5493. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5494. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5495. + # include_expsyms should be a list of space-separated symbols to be *always*
  5496. + # included in the symbol list
  5497. + _LT_TAGVAR(include_expsyms, $1)=
  5498. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5499. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5500. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5501. + # as well as any symbol that contains `d'.
  5502. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5503. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5504. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5505. + # the symbol is explicitly referenced. Since portable code cannot
  5506. + # rely on this symbol name, it's probably fine to never include it in
  5507. + # preloaded symbol tables.
  5508. + # Exclude shared library initialization/finalization symbols.
  5509. +dnl Note also adjust exclude_expsyms for C++ above.
  5510. + extract_expsyms_cmds=
  5511. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5512. -# --------------------------
  5513. -# Ensure that the configuration vars for the C compiler are
  5514. -# suitably defined. Those variables are subsequently used by
  5515. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5516. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5517. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5518. -[AC_LANG_SAVE
  5519. + case $host_os in
  5520. + cygwin* | mingw* | pw32* | cegcc*)
  5521. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5522. + # When not using gcc, we currently assume that we are using
  5523. + # Microsoft Visual C++.
  5524. + if test "$GCC" != yes; then
  5525. + with_gnu_ld=no
  5526. + fi
  5527. + ;;
  5528. + interix*)
  5529. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5530. + with_gnu_ld=yes
  5531. + ;;
  5532. + openbsd*)
  5533. + with_gnu_ld=no
  5534. + ;;
  5535. + linux* | k*bsd*-gnu)
  5536. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5537. + ;;
  5538. + esac
  5539. -# Source file extension for Java test sources.
  5540. -ac_ext=java
  5541. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5542. + if test "$with_gnu_ld" = yes; then
  5543. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5544. + wlarc='${wl}'
  5545. -# Object file extension for compiled Java test sources.
  5546. -objext=o
  5547. -_LT_AC_TAGVAR(objext, $1)=$objext
  5548. + # Set some defaults for GNU ld with shared library support. These
  5549. + # are reset later if shared libraries are not supported. Putting them
  5550. + # here allows them to be overridden if necessary.
  5551. + runpath_var=LD_RUN_PATH
  5552. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5553. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5554. + # ancient GNU ld didn't support --whole-archive et. al.
  5555. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5556. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5557. + else
  5558. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5559. + fi
  5560. + supports_anon_versioning=no
  5561. + case `$LD -v 2>&1` in
  5562. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5563. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5564. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5565. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5566. + *\ 2.11.*) ;; # other 2.11 versions
  5567. + *) supports_anon_versioning=yes ;;
  5568. + esac
  5569. -# Code to be used in simple compile tests
  5570. -lt_simple_compile_test_code="class foo {}"
  5571. + # See if GNU ld supports shared libraries.
  5572. + case $host_os in
  5573. + aix[[3-9]]*)
  5574. + # On AIX/PPC, the GNU linker is very broken
  5575. + if test "$host_cpu" != ia64; then
  5576. + _LT_TAGVAR(ld_shlibs, $1)=no
  5577. + cat <<_LT_EOF 1>&2
  5578. -# Code to be used in simple link tests
  5579. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  5580. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5581. +*** to be unable to reliably create shared libraries on AIX.
  5582. +*** Therefore, libtool is disabling shared libraries support. If you
  5583. +*** really care for shared libraries, you may want to modify your PATH
  5584. +*** so that a non-GNU linker is found, and then restart.
  5585. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5586. -_LT_AC_SYS_COMPILER
  5587. +_LT_EOF
  5588. + fi
  5589. + ;;
  5590. -# save warnings/boilerplate of simple test code
  5591. -_LT_COMPILER_BOILERPLATE
  5592. -_LT_LINKER_BOILERPLATE
  5593. + amigaos*)
  5594. + case $host_cpu in
  5595. + powerpc)
  5596. + # see comment about AmigaOS4 .so support
  5597. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5598. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5599. + ;;
  5600. + m68k)
  5601. + _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)'
  5602. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5603. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5604. + ;;
  5605. + esac
  5606. + ;;
  5607. -# Allow CC to be a program name with arguments.
  5608. -lt_save_CC="$CC"
  5609. -CC=${GCJ-"gcj"}
  5610. -compiler=$CC
  5611. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5612. -_LT_CC_BASENAME([$compiler])
  5613. + beos*)
  5614. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5615. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5616. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5617. + # support --undefined. This deserves some investigation. FIXME
  5618. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5619. + else
  5620. + _LT_TAGVAR(ld_shlibs, $1)=no
  5621. + fi
  5622. + ;;
  5623. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5624. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5625. + cygwin* | mingw* | pw32* | cegcc*)
  5626. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5627. + # as there is no search path for DLLs.
  5628. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5629. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5630. + _LT_TAGVAR(always_export_symbols, $1)=no
  5631. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5632. + _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'
  5633. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5634. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5635. + _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'
  5636. + # If the export-symbols file already is a .def file (1st line
  5637. + # is EXPORTS), use it as is; otherwise, prepend...
  5638. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5639. + cp $export_symbols $output_objdir/$soname.def;
  5640. + else
  5641. + echo EXPORTS > $output_objdir/$soname.def;
  5642. + cat $export_symbols >> $output_objdir/$soname.def;
  5643. + fi~
  5644. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5645. + else
  5646. + _LT_TAGVAR(ld_shlibs, $1)=no
  5647. + fi
  5648. + ;;
  5649. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5650. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5651. -AC_LIBTOOL_PROG_CC_C_O($1)
  5652. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5653. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5654. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5655. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5656. + interix[[3-9]]*)
  5657. + _LT_TAGVAR(hardcode_direct, $1)=no
  5658. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5659. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5660. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5661. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5662. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5663. + # default) and relocated if they conflict, which is a slow very memory
  5664. + # consuming and fragmenting process. To avoid this, we pick a random,
  5665. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5666. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5667. + _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'
  5668. + _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'
  5669. + ;;
  5670. -AC_LIBTOOL_CONFIG($1)
  5671. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5672. + tmp_diet=no
  5673. + if test "$host_os" = linux-dietlibc; then
  5674. + case $cc_basename in
  5675. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5676. + esac
  5677. + fi
  5678. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5679. + && test "$tmp_diet" = no
  5680. + then
  5681. + tmp_addflag=
  5682. + tmp_sharedflag='-shared'
  5683. + case $cc_basename,$host_cpu in
  5684. + pgcc*) # Portland Group C compiler
  5685. + _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'
  5686. + tmp_addflag=' $pic_flag'
  5687. + ;;
  5688. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5689. + _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'
  5690. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5691. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5692. + tmp_addflag=' -i_dynamic' ;;
  5693. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5694. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5695. + ifc* | ifort*) # Intel Fortran compiler
  5696. + tmp_addflag=' -nofor_main' ;;
  5697. + lf95*) # Lahey Fortran 8.1
  5698. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5699. + tmp_sharedflag='--shared' ;;
  5700. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5701. + tmp_sharedflag='-qmkshrobj'
  5702. + tmp_addflag= ;;
  5703. + esac
  5704. + case `$CC -V 2>&1 | sed 5q` in
  5705. + *Sun\ C*) # Sun C 5.9
  5706. + _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'
  5707. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5708. + tmp_sharedflag='-G' ;;
  5709. + *Sun\ F*) # Sun Fortran 8.3
  5710. + tmp_sharedflag='-G' ;;
  5711. + esac
  5712. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5713. -AC_LANG_RESTORE
  5714. -CC="$lt_save_CC"
  5715. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5716. + if test "x$supports_anon_versioning" = xyes; then
  5717. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5718. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5719. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5720. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5721. + fi
  5722. + case $cc_basename in
  5723. + xlf*)
  5724. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5725. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5726. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5727. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5728. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5729. + if test "x$supports_anon_versioning" = xyes; then
  5730. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5731. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5732. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5733. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5734. + fi
  5735. + ;;
  5736. + esac
  5737. + else
  5738. + _LT_TAGVAR(ld_shlibs, $1)=no
  5739. + fi
  5740. + ;;
  5741. -# AC_LIBTOOL_LANG_RC_CONFIG
  5742. -# -------------------------
  5743. -# Ensure that the configuration vars for the Windows resource compiler are
  5744. -# suitably defined. Those variables are subsequently used by
  5745. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5746. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5747. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5748. -[AC_LANG_SAVE
  5749. + netbsd* | netbsdelf*-gnu)
  5750. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5751. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5752. + wlarc=
  5753. + else
  5754. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5755. + _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'
  5756. + fi
  5757. + ;;
  5758. -# Source file extension for RC test sources.
  5759. -ac_ext=rc
  5760. + solaris*)
  5761. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5762. + _LT_TAGVAR(ld_shlibs, $1)=no
  5763. + cat <<_LT_EOF 1>&2
  5764. -# Object file extension for compiled RC test sources.
  5765. -objext=o
  5766. -_LT_AC_TAGVAR(objext, $1)=$objext
  5767. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5768. +*** create shared libraries on Solaris systems. Therefore, libtool
  5769. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5770. +*** binutils to release 2.9.1 or newer. Another option is to modify
  5771. +*** your PATH or compiler configuration so that the native linker is
  5772. +*** used, and then restart.
  5773. -# Code to be used in simple compile tests
  5774. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  5775. -
  5776. -# Code to be used in simple link tests
  5777. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  5778. -
  5779. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5780. -_LT_AC_SYS_COMPILER
  5781. -
  5782. -# save warnings/boilerplate of simple test code
  5783. -_LT_COMPILER_BOILERPLATE
  5784. -_LT_LINKER_BOILERPLATE
  5785. -
  5786. -# Allow CC to be a program name with arguments.
  5787. -lt_save_CC="$CC"
  5788. -CC=${RC-"windres"}
  5789. -compiler=$CC
  5790. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5791. -_LT_CC_BASENAME([$compiler])
  5792. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  5793. +_LT_EOF
  5794. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5795. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5796. + _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'
  5797. + else
  5798. + _LT_TAGVAR(ld_shlibs, $1)=no
  5799. + fi
  5800. + ;;
  5801. -AC_LIBTOOL_CONFIG($1)
  5802. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5803. + case `$LD -v 2>&1` in
  5804. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5805. + _LT_TAGVAR(ld_shlibs, $1)=no
  5806. + cat <<_LT_EOF 1>&2
  5807. -AC_LANG_RESTORE
  5808. -CC="$lt_save_CC"
  5809. -])# AC_LIBTOOL_LANG_RC_CONFIG
  5810. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5811. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  5812. +*** is disabling shared libraries support. We urge you to upgrade GNU
  5813. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5814. +*** your PATH or compiler configuration so that the native linker is
  5815. +*** used, and then restart.
  5816. +_LT_EOF
  5817. + ;;
  5818. + *)
  5819. + # For security reasons, it is highly recommended that you always
  5820. + # use absolute paths for naming shared libraries, and exclude the
  5821. + # DT_RUNPATH tag from executables and libraries. But doing so
  5822. + # requires that you compile everything twice, which is a pain.
  5823. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5824. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5825. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5826. + _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'
  5827. + else
  5828. + _LT_TAGVAR(ld_shlibs, $1)=no
  5829. + fi
  5830. + ;;
  5831. + esac
  5832. + ;;
  5833. -# AC_LIBTOOL_CONFIG([TAGNAME])
  5834. -# ----------------------------
  5835. -# If TAGNAME is not passed, then create an initial libtool script
  5836. -# with a default configuration from the untagged config vars. Otherwise
  5837. -# add code to config.status for appending the configuration named by
  5838. -# TAGNAME from the matching tagged config vars.
  5839. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  5840. -[# The else clause should only fire when bootstrapping the
  5841. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  5842. -# with your package, and you will get complaints that there are
  5843. -# no rules to generate ltmain.sh.
  5844. -if test -f "$ltmain"; then
  5845. - # See if we are running on zsh, and set the options which allow our commands through
  5846. - # without removal of \ escapes.
  5847. - if test -n "${ZSH_VERSION+set}" ; then
  5848. - setopt NO_GLOB_SUBST
  5849. - fi
  5850. - # Now quote all the things that may contain metacharacters while being
  5851. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  5852. - # variables and quote the copies for generation of the libtool script.
  5853. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  5854. - SED SHELL STRIP \
  5855. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  5856. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  5857. - deplibs_check_method reload_flag reload_cmds need_locks \
  5858. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  5859. - lt_cv_sys_global_symbol_to_c_name_address \
  5860. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  5861. - old_postinstall_cmds old_postuninstall_cmds \
  5862. - _LT_AC_TAGVAR(compiler, $1) \
  5863. - _LT_AC_TAGVAR(CC, $1) \
  5864. - _LT_AC_TAGVAR(LD, $1) \
  5865. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  5866. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  5867. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  5868. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  5869. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  5870. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  5871. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  5872. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  5873. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  5874. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  5875. - _LT_AC_TAGVAR(predep_objects, $1) \
  5876. - _LT_AC_TAGVAR(postdep_objects, $1) \
  5877. - _LT_AC_TAGVAR(predeps, $1) \
  5878. - _LT_AC_TAGVAR(postdeps, $1) \
  5879. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  5880. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  5881. - _LT_AC_TAGVAR(archive_cmds, $1) \
  5882. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  5883. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  5884. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  5885. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  5886. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  5887. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  5888. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  5889. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  5890. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  5891. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  5892. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  5893. - _LT_AC_TAGVAR(module_cmds, $1) \
  5894. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  5895. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  5896. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  5897. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  5898. - _LT_AC_TAGVAR(include_expsyms, $1); do
  5899. -
  5900. - case $var in
  5901. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  5902. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  5903. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  5904. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  5905. - _LT_AC_TAGVAR(module_cmds, $1) | \
  5906. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  5907. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  5908. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  5909. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  5910. - postinstall_cmds | postuninstall_cmds | \
  5911. - old_postinstall_cmds | old_postuninstall_cmds | \
  5912. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  5913. - # Double-quote double-evaled strings.
  5914. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  5915. + sunos4*)
  5916. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5917. + wlarc=
  5918. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5919. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5920. ;;
  5921. +
  5922. *)
  5923. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  5924. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5925. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5926. + _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'
  5927. + else
  5928. + _LT_TAGVAR(ld_shlibs, $1)=no
  5929. + fi
  5930. ;;
  5931. esac
  5932. - done
  5933. -
  5934. - case $lt_echo in
  5935. - *'\[$]0 --fallback-echo"')
  5936. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  5937. - ;;
  5938. - esac
  5939. -
  5940. -ifelse([$1], [],
  5941. - [cfgfile="${ofile}T"
  5942. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  5943. - $rm -f "$cfgfile"
  5944. - AC_MSG_NOTICE([creating $ofile])],
  5945. - [cfgfile="$ofile"])
  5946. -
  5947. - cat <<__EOF__ >> "$cfgfile"
  5948. -ifelse([$1], [],
  5949. -[#! $SHELL
  5950. -
  5951. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  5952. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  5953. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  5954. -#
  5955. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5956. -# Free Software Foundation, Inc.
  5957. -#
  5958. -# This file is part of GNU Libtool:
  5959. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  5960. -#
  5961. -# This program is free software; you can redistribute it and/or modify
  5962. -# it under the terms of the GNU General Public License as published by
  5963. -# the Free Software Foundation; either version 2 of the License, or
  5964. -# (at your option) any later version.
  5965. -#
  5966. -# This program is distributed in the hope that it will be useful, but
  5967. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  5968. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  5969. -# General Public License for more details.
  5970. -#
  5971. -# You should have received a copy of the GNU General Public License
  5972. -# along with this program; if not, write to the Free Software
  5973. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  5974. -#
  5975. -# As a special exception to the GNU General Public License, if you
  5976. -# distribute this file as part of a program that contains a
  5977. -# configuration script generated by Autoconf, you may include it under
  5978. -# the same distribution terms that you use for the rest of that program.
  5979. -# A sed program that does not truncate output.
  5980. -SED=$lt_SED
  5981. -
  5982. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  5983. -Xsed="$SED -e 1s/^X//"
  5984. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5985. + runpath_var=
  5986. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5987. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5988. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5989. + fi
  5990. + else
  5991. + # PORTME fill in a description of your system's linker (not GNU ld)
  5992. + case $host_os in
  5993. + aix3*)
  5994. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5995. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5996. + _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'
  5997. + # Note: this linker hardcodes the directories in LIBPATH if there
  5998. + # are no directories specified by -L.
  5999. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6000. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6001. + # Neither direct hardcoding nor static linking is supported with a
  6002. + # broken collect2.
  6003. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6004. + fi
  6005. + ;;
  6006. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6007. -# if CDPATH is set.
  6008. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6009. + aix[[4-9]]*)
  6010. + if test "$host_cpu" = ia64; then
  6011. + # On IA64, the linker does run time linking by default, so we don't
  6012. + # have to do anything special.
  6013. + aix_use_runtimelinking=no
  6014. + exp_sym_flag='-Bexport'
  6015. + no_entry_flag=""
  6016. + else
  6017. + # If we're using GNU nm, then we don't want the "-C" option.
  6018. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6019. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6020. + _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'
  6021. + else
  6022. + _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'
  6023. + fi
  6024. + aix_use_runtimelinking=no
  6025. -# The names of the tagged configurations supported by this script.
  6026. -available_tags=
  6027. + # Test if we are trying to use run time linking or normal
  6028. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6029. + # need to do runtime linking.
  6030. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6031. + for ld_flag in $LDFLAGS; do
  6032. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6033. + aix_use_runtimelinking=yes
  6034. + break
  6035. + fi
  6036. + done
  6037. + ;;
  6038. + esac
  6039. -# ### BEGIN LIBTOOL CONFIG],
  6040. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6041. + exp_sym_flag='-bexport'
  6042. + no_entry_flag='-bnoentry'
  6043. + fi
  6044. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6045. + # When large executables or shared objects are built, AIX ld can
  6046. + # have problems creating the table of contents. If linking a library
  6047. + # or program results in "error TOC overflow" add -mminimal-toc to
  6048. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6049. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6050. -# Shell to use when invoking shell scripts.
  6051. -SHELL=$lt_SHELL
  6052. + _LT_TAGVAR(archive_cmds, $1)=''
  6053. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6054. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6055. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6056. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6057. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6058. -# Whether or not to build shared libraries.
  6059. -build_libtool_libs=$enable_shared
  6060. + if test "$GCC" = yes; then
  6061. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6062. + # We only want to do this on AIX 4.2 and lower, the check
  6063. + # below for broken collect2 doesn't work under 4.3+
  6064. + collect2name=`${CC} -print-prog-name=collect2`
  6065. + if test -f "$collect2name" &&
  6066. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6067. + then
  6068. + # We have reworked collect2
  6069. + :
  6070. + else
  6071. + # We have old collect2
  6072. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6073. + # It fails to find uninstalled libraries when the uninstalled
  6074. + # path is not listed in the libpath. Setting hardcode_minus_L
  6075. + # to unsupported forces relinking
  6076. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6077. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6078. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6079. + fi
  6080. + ;;
  6081. + esac
  6082. + shared_flag='-shared'
  6083. + if test "$aix_use_runtimelinking" = yes; then
  6084. + shared_flag="$shared_flag "'${wl}-G'
  6085. + fi
  6086. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6087. + else
  6088. + # not using gcc
  6089. + if test "$host_cpu" = ia64; then
  6090. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6091. + # chokes on -Wl,-G. The following line is correct:
  6092. + shared_flag='-G'
  6093. + else
  6094. + if test "$aix_use_runtimelinking" = yes; then
  6095. + shared_flag='${wl}-G'
  6096. + else
  6097. + shared_flag='${wl}-bM:SRE'
  6098. + fi
  6099. + fi
  6100. + fi
  6101. -# Whether or not to build static libraries.
  6102. -build_old_libs=$enable_static
  6103. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6104. + # It seems that -bexpall does not export symbols beginning with
  6105. + # underscore (_), so it is better to generate a list of symbols to export.
  6106. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6107. + if test "$aix_use_runtimelinking" = yes; then
  6108. + # Warning - without using the other runtime loading flags (-brtl),
  6109. + # -berok will link without error, but may produce a broken library.
  6110. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6111. + # Determine the default libpath from the value encoded in an
  6112. + # empty executable.
  6113. + _LT_SYS_MODULE_PATH_AIX
  6114. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6115. + _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"
  6116. + else
  6117. + if test "$host_cpu" = ia64; then
  6118. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6119. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6120. + _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"
  6121. + else
  6122. + # Determine the default libpath from the value encoded in an
  6123. + # empty executable.
  6124. + _LT_SYS_MODULE_PATH_AIX
  6125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6126. + # Warning - without using the other run time loading flags,
  6127. + # -berok will link without error, but may produce a broken library.
  6128. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6129. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6130. + # Exported symbols can be pulled into shared objects from archives
  6131. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6132. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6133. + # This is similar to how AIX traditionally builds its shared libraries.
  6134. + _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'
  6135. + fi
  6136. + fi
  6137. + ;;
  6138. -# Whether or not to add -lc for building shared libraries.
  6139. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6140. + amigaos*)
  6141. + case $host_cpu in
  6142. + powerpc)
  6143. + # see comment about AmigaOS4 .so support
  6144. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6145. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6146. + ;;
  6147. + m68k)
  6148. + _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)'
  6149. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6150. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6151. + ;;
  6152. + esac
  6153. + ;;
  6154. -# Whether or not to disallow shared libs when runtime libs are static
  6155. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6156. + bsdi[[45]]*)
  6157. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6158. + ;;
  6159. -# Whether or not to optimize for fast installation.
  6160. -fast_install=$enable_fast_install
  6161. + cygwin* | mingw* | pw32* | cegcc*)
  6162. + # When not using gcc, we currently assume that we are using
  6163. + # Microsoft Visual C++.
  6164. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6165. + # no search path for DLLs.
  6166. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6167. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6168. + # Tell ltmain to make .lib files, not .a files.
  6169. + libext=lib
  6170. + # Tell ltmain to make .dll files, not .so files.
  6171. + shrext_cmds=".dll"
  6172. + # FIXME: Setting linknames here is a bad hack.
  6173. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6174. + # The linker will automatically build a .lib file if we build a DLL.
  6175. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6176. + # FIXME: Should let the user specify the lib program.
  6177. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6178. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6179. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6180. + ;;
  6181. -# The host system.
  6182. -host_alias=$host_alias
  6183. -host=$host
  6184. -host_os=$host_os
  6185. + darwin* | rhapsody*)
  6186. + _LT_DARWIN_LINKER_FEATURES($1)
  6187. + ;;
  6188. -# The build system.
  6189. -build_alias=$build_alias
  6190. -build=$build
  6191. -build_os=$build_os
  6192. + dgux*)
  6193. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6194. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6195. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6196. + ;;
  6197. -# An echo program that does not interpret backslashes.
  6198. -echo=$lt_echo
  6199. + freebsd1*)
  6200. + _LT_TAGVAR(ld_shlibs, $1)=no
  6201. + ;;
  6202. -# The archiver.
  6203. -AR=$lt_AR
  6204. -AR_FLAGS=$lt_AR_FLAGS
  6205. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6206. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6207. + # does not break anything, and helps significantly (at the cost of a little
  6208. + # extra space).
  6209. + freebsd2.2*)
  6210. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6211. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6212. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6213. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6214. + ;;
  6215. -# A C compiler.
  6216. -LTCC=$lt_LTCC
  6217. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6218. + freebsd2*)
  6219. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6220. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6221. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6222. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6223. + ;;
  6224. -# LTCC compiler flags.
  6225. -LTCFLAGS=$lt_LTCFLAGS
  6226. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6227. + freebsd* | dragonfly*)
  6228. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6229. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6230. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6231. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6232. + ;;
  6233. -# A language-specific compiler.
  6234. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6235. + hpux9*)
  6236. + if test "$GCC" = yes; then
  6237. + _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'
  6238. + else
  6239. + _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'
  6240. + fi
  6241. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6242. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6243. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6244. -# Is the compiler the GNU C compiler?
  6245. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6246. + # hardcode_minus_L: Not really in the search PATH,
  6247. + # but as the default location of the library.
  6248. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6249. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6250. + ;;
  6251. -# An ERE matcher.
  6252. -EGREP=$lt_EGREP
  6253. + hpux10*)
  6254. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6255. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6256. + else
  6257. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6258. + fi
  6259. + if test "$with_gnu_ld" = no; then
  6260. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6261. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6262. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6263. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6264. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6265. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6266. + # hardcode_minus_L: Not really in the search PATH,
  6267. + # but as the default location of the library.
  6268. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6269. + fi
  6270. + ;;
  6271. -# The linker used to build libraries.
  6272. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6273. + hpux11*)
  6274. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6275. + case $host_cpu in
  6276. + hppa*64*)
  6277. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6278. + ;;
  6279. + ia64*)
  6280. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6281. + ;;
  6282. + *)
  6283. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6284. + ;;
  6285. + esac
  6286. + else
  6287. + case $host_cpu in
  6288. + hppa*64*)
  6289. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6290. + ;;
  6291. + ia64*)
  6292. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6293. + ;;
  6294. + *)
  6295. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6296. + ;;
  6297. + esac
  6298. + fi
  6299. + if test "$with_gnu_ld" = no; then
  6300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6301. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6302. -# Whether we need hard or soft links.
  6303. -LN_S=$lt_LN_S
  6304. + case $host_cpu in
  6305. + hppa*64*|ia64*)
  6306. + _LT_TAGVAR(hardcode_direct, $1)=no
  6307. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6308. + ;;
  6309. + *)
  6310. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6311. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6312. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6313. -# A BSD-compatible nm program.
  6314. -NM=$lt_NM
  6315. + # hardcode_minus_L: Not really in the search PATH,
  6316. + # but as the default location of the library.
  6317. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6318. + ;;
  6319. + esac
  6320. + fi
  6321. + ;;
  6322. -# A symbol stripping program
  6323. -STRIP=$lt_STRIP
  6324. + irix5* | irix6* | nonstopux*)
  6325. + if test "$GCC" = yes; then
  6326. + _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'
  6327. + # Try to use the -exported_symbol ld option, if it does not
  6328. + # work, assume that -exports_file does not work either and
  6329. + # implicitly export all symbols.
  6330. + save_LDFLAGS="$LDFLAGS"
  6331. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6332. + AC_LINK_IFELSE(int foo(void) {},
  6333. + _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'
  6334. + )
  6335. + LDFLAGS="$save_LDFLAGS"
  6336. + else
  6337. + _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'
  6338. + _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'
  6339. + fi
  6340. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6341. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6342. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6343. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6344. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6345. + ;;
  6346. -# Used to examine libraries when file_magic_cmd begins "file"
  6347. -MAGIC_CMD=$MAGIC_CMD
  6348. + netbsd* | netbsdelf*-gnu)
  6349. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6350. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6351. + else
  6352. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6353. + fi
  6354. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6355. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6356. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6357. + ;;
  6358. -# Used on cygwin: DLL creation program.
  6359. -DLLTOOL="$DLLTOOL"
  6360. + newsos6)
  6361. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6362. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6363. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6364. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6365. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6366. + ;;
  6367. -# Used on cygwin: object dumper.
  6368. -OBJDUMP="$OBJDUMP"
  6369. + *nto* | *qnx*)
  6370. + ;;
  6371. -# Used on cygwin: assembler.
  6372. -AS="$AS"
  6373. -
  6374. -# The name of the directory that contains temporary libtool files.
  6375. -objdir=$objdir
  6376. -
  6377. -# How to create reloadable object files.
  6378. -reload_flag=$lt_reload_flag
  6379. -reload_cmds=$lt_reload_cmds
  6380. -
  6381. -# How to pass a linker flag through the compiler.
  6382. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6383. -
  6384. -# Object file suffix (normally "o").
  6385. -objext="$ac_objext"
  6386. -
  6387. -# Old archive suffix (normally "a").
  6388. -libext="$libext"
  6389. + openbsd*)
  6390. + if test -f /usr/libexec/ld.so; then
  6391. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6392. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6393. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6394. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6395. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6396. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6397. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6398. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6399. + else
  6400. + case $host_os in
  6401. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6402. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6403. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6404. + ;;
  6405. + *)
  6406. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6407. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6408. + ;;
  6409. + esac
  6410. + fi
  6411. + else
  6412. + _LT_TAGVAR(ld_shlibs, $1)=no
  6413. + fi
  6414. + ;;
  6415. -# Shared library suffix (normally ".so").
  6416. -shrext_cmds='$shrext_cmds'
  6417. + os2*)
  6418. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6419. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6420. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6421. + _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'
  6422. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6423. + ;;
  6424. -# Executable file suffix (normally "").
  6425. -exeext="$exeext"
  6426. + osf3*)
  6427. + if test "$GCC" = yes; then
  6428. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6429. + _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'
  6430. + else
  6431. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6432. + _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'
  6433. + fi
  6434. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6435. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6436. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6437. + ;;
  6438. -# Additional compiler flags for building library objects.
  6439. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6440. -pic_mode=$pic_mode
  6441. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6442. + if test "$GCC" = yes; then
  6443. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6444. + _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'
  6445. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6446. + else
  6447. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6448. + _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'
  6449. + _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~
  6450. + $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'
  6451. -# What is the maximum length of a command?
  6452. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6453. + # Both c and cxx compiler support -rpath directly
  6454. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6455. + fi
  6456. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6457. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6458. + ;;
  6459. -# Does compiler simultaneously support -c and -o options?
  6460. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6461. + solaris*)
  6462. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6463. + if test "$GCC" = yes; then
  6464. + wlarc='${wl}'
  6465. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6466. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6467. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6468. + else
  6469. + case `$CC -V 2>&1` in
  6470. + *"Compilers 5.0"*)
  6471. + wlarc=''
  6472. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6473. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6474. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6475. + ;;
  6476. + *)
  6477. + wlarc='${wl}'
  6478. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6479. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6480. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6481. + ;;
  6482. + esac
  6483. + fi
  6484. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6485. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6486. + case $host_os in
  6487. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6488. + *)
  6489. + # The compiler driver will combine and reorder linker options,
  6490. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6491. + # but is careful enough not to reorder.
  6492. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6493. + if test "$GCC" = yes; then
  6494. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6495. + else
  6496. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6497. + fi
  6498. + ;;
  6499. + esac
  6500. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6501. + ;;
  6502. -# Must we lock files when doing compilation?
  6503. -need_locks=$lt_need_locks
  6504. + sunos4*)
  6505. + if test "x$host_vendor" = xsequent; then
  6506. + # Use $CC to link under sequent, because it throws in some extra .o
  6507. + # files that make .init and .fini sections work.
  6508. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6509. + else
  6510. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6511. + fi
  6512. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6513. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6514. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6515. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6516. + ;;
  6517. -# Do we need the lib prefix for modules?
  6518. -need_lib_prefix=$need_lib_prefix
  6519. + sysv4)
  6520. + case $host_vendor in
  6521. + sni)
  6522. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6523. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6524. + ;;
  6525. + siemens)
  6526. + ## LD is ld it makes a PLAMLIB
  6527. + ## CC just makes a GrossModule.
  6528. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6529. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6530. + _LT_TAGVAR(hardcode_direct, $1)=no
  6531. + ;;
  6532. + motorola)
  6533. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6534. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6535. + ;;
  6536. + esac
  6537. + runpath_var='LD_RUN_PATH'
  6538. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6539. + ;;
  6540. -# Do we need a version for libraries?
  6541. -need_version=$need_version
  6542. + sysv4.3*)
  6543. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6544. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6545. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6546. + ;;
  6547. -# Whether dlopen is supported.
  6548. -dlopen_support=$enable_dlopen
  6549. + sysv4*MP*)
  6550. + if test -d /usr/nec; then
  6551. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6552. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6553. + runpath_var=LD_RUN_PATH
  6554. + hardcode_runpath_var=yes
  6555. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6556. + fi
  6557. + ;;
  6558. -# Whether dlopen of programs is supported.
  6559. -dlopen_self=$enable_dlopen_self
  6560. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6561. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6562. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6563. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6564. + runpath_var='LD_RUN_PATH'
  6565. -# Whether dlopen of statically linked programs is supported.
  6566. -dlopen_self_static=$enable_dlopen_self_static
  6567. + if test "$GCC" = yes; then
  6568. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6569. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6570. + else
  6571. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6572. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6573. + fi
  6574. + ;;
  6575. -# Compiler flag to prevent dynamic linking.
  6576. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6577. + sysv5* | sco3.2v5* | sco5v6*)
  6578. + # Note: We can NOT use -z defs as we might desire, because we do not
  6579. + # link with -lc, and that would cause any symbols used from libc to
  6580. + # always be unresolved, which means just about no library would
  6581. + # ever link correctly. If we're not using GNU ld we use -z text
  6582. + # though, which does catch some bad symbols but isn't as heavy-handed
  6583. + # as -z defs.
  6584. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6585. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6586. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6587. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6588. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6589. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6590. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6591. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6592. + runpath_var='LD_RUN_PATH'
  6593. -# Compiler flag to turn off builtin functions.
  6594. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6595. + if test "$GCC" = yes; then
  6596. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6597. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6598. + else
  6599. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6600. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6601. + fi
  6602. + ;;
  6603. -# Compiler flag to allow reflexive dlopens.
  6604. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6605. + uts4*)
  6606. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6607. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6608. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6609. + ;;
  6610. -# Compiler flag to generate shared objects directly from archives.
  6611. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6612. + *)
  6613. + _LT_TAGVAR(ld_shlibs, $1)=no
  6614. + ;;
  6615. + esac
  6616. -# Compiler flag to generate thread-safe objects.
  6617. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6618. + if test x$host_vendor = xsni; then
  6619. + case $host in
  6620. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6621. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6622. + ;;
  6623. + esac
  6624. + fi
  6625. + fi
  6626. +])
  6627. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6628. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6629. -# Library versioning type.
  6630. -version_type=$version_type
  6631. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6632. -# Format of library name prefix.
  6633. -libname_spec=$lt_libname_spec
  6634. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6635. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6636. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6637. + [The commands to extract the exported symbol list from a shared archive])
  6638. -# List of archive names. First name is the real one, the rest are links.
  6639. -# The last name is the one that the linker finds with -lNAME.
  6640. -library_names_spec=$lt_library_names_spec
  6641. +#
  6642. +# Do we need to explicitly link libc?
  6643. +#
  6644. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6645. +x|xyes)
  6646. + # Assume -lc should be added
  6647. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6648. -# The coded name of the library, if different from the real name.
  6649. -soname_spec=$lt_soname_spec
  6650. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6651. + case $_LT_TAGVAR(archive_cmds, $1) in
  6652. + *'~'*)
  6653. + # FIXME: we may have to deal with multi-command sequences.
  6654. + ;;
  6655. + '$CC '*)
  6656. + # Test whether the compiler implicitly links with -lc since on some
  6657. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6658. + # to ld, don't add -lc before -lgcc.
  6659. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6660. + $RM conftest*
  6661. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6662. -# Commands used to build and install an old-style archive.
  6663. -RANLIB=$lt_RANLIB
  6664. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6665. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6666. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6667. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6668. + soname=conftest
  6669. + lib=conftest
  6670. + libobjs=conftest.$ac_objext
  6671. + deplibs=
  6672. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6673. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6674. + compiler_flags=-v
  6675. + linker_flags=-v
  6676. + verstring=
  6677. + output_objdir=.
  6678. + libname=conftest
  6679. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6680. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6681. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6682. + then
  6683. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6684. + else
  6685. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6686. + fi
  6687. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6688. + else
  6689. + cat conftest.err 1>&5
  6690. + fi
  6691. + $RM conftest*
  6692. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6693. + ;;
  6694. + esac
  6695. + fi
  6696. + ;;
  6697. +esac
  6698. -# Create an old-style archive from a shared archive.
  6699. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6700. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6701. + [Whether or not to add -lc for building shared libraries])
  6702. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6703. + [enable_shared_with_static_runtimes], [0],
  6704. + [Whether or not to disallow shared libs when runtime libs are static])
  6705. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6706. + [Compiler flag to allow reflexive dlopens])
  6707. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6708. + [Compiler flag to generate shared objects directly from archives])
  6709. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6710. + [Whether the compiler copes with passing no objects directly])
  6711. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6712. + [Create an old-style archive from a shared archive])
  6713. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6714. + [Create a temporary old-style archive to link instead of a shared archive])
  6715. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6716. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6717. +_LT_TAGDECL([], [module_cmds], [2],
  6718. + [Commands used to build a loadable module if different from building
  6719. + a shared archive.])
  6720. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6721. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6722. + [Whether we are building with GNU ld or not])
  6723. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6724. + [Flag that allows shared libraries with undefined symbols to be built])
  6725. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6726. + [Flag that enforces no undefined symbols])
  6727. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6728. + [Flag to hardcode $libdir into a binary during linking.
  6729. + This must work even if $libdir does not exist])
  6730. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6731. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6732. + during linking. This must work even if $libdir does not exist]])
  6733. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6734. + [Whether we need a single "-rpath" flag with a separated argument])
  6735. +_LT_TAGDECL([], [hardcode_direct], [0],
  6736. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6737. + DIR into the resulting binary])
  6738. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6739. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6740. + DIR into the resulting binary and the resulting library dependency is
  6741. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6742. + library is relocated])
  6743. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6744. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6745. + into the resulting binary])
  6746. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6747. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6748. + into the resulting binary])
  6749. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6750. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6751. + into the library and all subsequent libraries and executables linked
  6752. + against it])
  6753. +_LT_TAGDECL([], [inherit_rpath], [0],
  6754. + [Set to yes if linker adds runtime paths of dependent libraries
  6755. + to runtime path list])
  6756. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6757. + [Whether libtool must link a program against all its dependency libraries])
  6758. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6759. + [Fix the shell variable $srcfile for the compiler])
  6760. +_LT_TAGDECL([], [always_export_symbols], [0],
  6761. + [Set to "yes" if exported symbols are required])
  6762. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6763. + [The commands to list exported symbols])
  6764. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6765. + [Symbols that should not be listed in the preloaded symbols])
  6766. +_LT_TAGDECL([], [include_expsyms], [1],
  6767. + [Symbols that must always be exported])
  6768. +_LT_TAGDECL([], [prelink_cmds], [2],
  6769. + [Commands necessary for linking programs (against libraries) with templates])
  6770. +_LT_TAGDECL([], [file_list_spec], [1],
  6771. + [Specify filename containing input files])
  6772. +dnl FIXME: Not yet implemented
  6773. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6774. +dnl [Compiler flag to generate thread safe objects])
  6775. +])# _LT_LINKER_SHLIBS
  6776. -# Create a temporary old-style archive to link instead of a shared archive.
  6777. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6778. -# Commands used to build and install a shared archive.
  6779. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6780. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6781. -postinstall_cmds=$lt_postinstall_cmds
  6782. -postuninstall_cmds=$lt_postuninstall_cmds
  6783. +# _LT_LANG_C_CONFIG([TAG])
  6784. +# ------------------------
  6785. +# Ensure that the configuration variables for a C compiler are suitably
  6786. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6787. +# the compiler configuration to `libtool'.
  6788. +m4_defun([_LT_LANG_C_CONFIG],
  6789. +[m4_require([_LT_DECL_EGREP])dnl
  6790. +lt_save_CC="$CC"
  6791. +AC_LANG_PUSH(C)
  6792. -# Commands used to build a loadable module (assumed same as above if empty)
  6793. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6794. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6795. +# Source file extension for C test sources.
  6796. +ac_ext=c
  6797. -# Commands to strip libraries.
  6798. -old_striplib=$lt_old_striplib
  6799. -striplib=$lt_striplib
  6800. +# Object file extension for compiled C test sources.
  6801. +objext=o
  6802. +_LT_TAGVAR(objext, $1)=$objext
  6803. -# Dependencies to place before the objects being linked to create a
  6804. -# shared library.
  6805. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6806. +# Code to be used in simple compile tests
  6807. +lt_simple_compile_test_code="int some_variable = 0;"
  6808. -# Dependencies to place after the objects being linked to create a
  6809. -# shared library.
  6810. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6811. +# Code to be used in simple link tests
  6812. +lt_simple_link_test_code='int main(){return(0);}'
  6813. -# Dependencies to place before the objects being linked to create a
  6814. -# shared library.
  6815. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6816. +_LT_TAG_COMPILER
  6817. +# Save the default compiler, since it gets overwritten when the other
  6818. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6819. +compiler_DEFAULT=$CC
  6820. -# Dependencies to place after the objects being linked to create a
  6821. -# shared library.
  6822. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6823. +# save warnings/boilerplate of simple test code
  6824. +_LT_COMPILER_BOILERPLATE
  6825. +_LT_LINKER_BOILERPLATE
  6826. -# The directories searched by this compiler when creating a shared
  6827. -# library
  6828. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  6829. +if test -n "$compiler"; then
  6830. + _LT_COMPILER_NO_RTTI($1)
  6831. + _LT_COMPILER_PIC($1)
  6832. + _LT_COMPILER_C_O($1)
  6833. + _LT_COMPILER_FILE_LOCKS($1)
  6834. + _LT_LINKER_SHLIBS($1)
  6835. + _LT_SYS_DYNAMIC_LINKER($1)
  6836. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6837. + LT_SYS_DLOPEN_SELF
  6838. + _LT_CMD_STRIPLIB
  6839. +
  6840. + # Report which library types will actually be built
  6841. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6842. + AC_MSG_RESULT([$can_build_shared])
  6843. -# The library search path used internally by the compiler when linking
  6844. -# a shared library.
  6845. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6846. + AC_MSG_CHECKING([whether to build shared libraries])
  6847. + test "$can_build_shared" = "no" && enable_shared=no
  6848. -# Method to check whether dependent libraries are shared objects.
  6849. -deplibs_check_method=$lt_deplibs_check_method
  6850. + # On AIX, shared libraries and static libraries use the same namespace, and
  6851. + # are all built from PIC.
  6852. + case $host_os in
  6853. + aix3*)
  6854. + test "$enable_shared" = yes && enable_static=no
  6855. + if test -n "$RANLIB"; then
  6856. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6857. + postinstall_cmds='$RANLIB $lib'
  6858. + fi
  6859. + ;;
  6860. -# Command to use when deplibs_check_method == file_magic.
  6861. -file_magic_cmd=$lt_file_magic_cmd
  6862. + aix[[4-9]]*)
  6863. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6864. + test "$enable_shared" = yes && enable_static=no
  6865. + fi
  6866. + ;;
  6867. + esac
  6868. + AC_MSG_RESULT([$enable_shared])
  6869. -# Flag that allows shared libraries with undefined symbols to be built.
  6870. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6871. + AC_MSG_CHECKING([whether to build static libraries])
  6872. + # Make sure either enable_shared or enable_static is yes.
  6873. + test "$enable_shared" = yes || enable_static=yes
  6874. + AC_MSG_RESULT([$enable_static])
  6875. -# Flag that forces no undefined symbols.
  6876. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6877. + _LT_CONFIG($1)
  6878. +fi
  6879. +AC_LANG_POP
  6880. +CC="$lt_save_CC"
  6881. +])# _LT_LANG_C_CONFIG
  6882. -# Commands used to finish a libtool library installation in a directory.
  6883. -finish_cmds=$lt_finish_cmds
  6884. -# Same as above, but a single script fragment to be evaled but not shown.
  6885. -finish_eval=$lt_finish_eval
  6886. +# _LT_PROG_CXX
  6887. +# ------------
  6888. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6889. +# compiler, we have our own version here.
  6890. +m4_defun([_LT_PROG_CXX],
  6891. +[
  6892. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6893. +AC_PROG_CXX
  6894. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6895. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6896. + (test "X$CXX" != "Xg++"))) ; then
  6897. + AC_PROG_CXXCPP
  6898. +else
  6899. + _lt_caught_CXX_error=yes
  6900. +fi
  6901. +popdef([AC_MSG_ERROR])
  6902. +])# _LT_PROG_CXX
  6903. -# Take the output of nm and produce a listing of raw symbols and C names.
  6904. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6905. +dnl aclocal-1.4 backwards compatibility:
  6906. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  6907. -# Transform the output of nm in a proper C declaration
  6908. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6909. -# Transform the output of nm in a C name address pair
  6910. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6911. +# _LT_LANG_CXX_CONFIG([TAG])
  6912. +# --------------------------
  6913. +# Ensure that the configuration variables for a C++ compiler are suitably
  6914. +# defined. These variables are subsequently used by _LT_CONFIG to write
  6915. +# the compiler configuration to `libtool'.
  6916. +m4_defun([_LT_LANG_CXX_CONFIG],
  6917. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  6918. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6919. +m4_require([_LT_DECL_EGREP])dnl
  6920. +
  6921. +AC_LANG_PUSH(C++)
  6922. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6923. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6924. +_LT_TAGVAR(always_export_symbols, $1)=no
  6925. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6926. +_LT_TAGVAR(compiler_needs_object, $1)=no
  6927. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6928. +_LT_TAGVAR(hardcode_direct, $1)=no
  6929. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6930. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6931. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6932. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6933. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6934. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6935. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6936. +_LT_TAGVAR(inherit_rpath, $1)=no
  6937. +_LT_TAGVAR(module_cmds, $1)=
  6938. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6939. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6940. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6941. +_LT_TAGVAR(no_undefined_flag, $1)=
  6942. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6943. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6944. -# This is the shared library runtime path variable.
  6945. -runpath_var=$runpath_var
  6946. +# Source file extension for C++ test sources.
  6947. +ac_ext=cpp
  6948. -# This is the shared library path variable.
  6949. -shlibpath_var=$shlibpath_var
  6950. +# Object file extension for compiled C++ test sources.
  6951. +objext=o
  6952. +_LT_TAGVAR(objext, $1)=$objext
  6953. -# Is shlibpath searched before the hard-coded library search path?
  6954. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6955. +# No sense in running all these tests if we already determined that
  6956. +# the CXX compiler isn't working. Some variables (like enable_shared)
  6957. +# are currently assumed to apply to all compilers on this platform,
  6958. +# and will be corrupted by setting them based on a non-working compiler.
  6959. +if test "$_lt_caught_CXX_error" != yes; then
  6960. + # Code to be used in simple compile tests
  6961. + lt_simple_compile_test_code="int some_variable = 0;"
  6962. +
  6963. + # Code to be used in simple link tests
  6964. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6965. +
  6966. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6967. + _LT_TAG_COMPILER
  6968. +
  6969. + # save warnings/boilerplate of simple test code
  6970. + _LT_COMPILER_BOILERPLATE
  6971. + _LT_LINKER_BOILERPLATE
  6972. +
  6973. + # Allow CC to be a program name with arguments.
  6974. + lt_save_CC=$CC
  6975. + lt_save_LD=$LD
  6976. + lt_save_GCC=$GCC
  6977. + GCC=$GXX
  6978. + lt_save_with_gnu_ld=$with_gnu_ld
  6979. + lt_save_path_LD=$lt_cv_path_LD
  6980. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6981. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6982. + else
  6983. + $as_unset lt_cv_prog_gnu_ld
  6984. + fi
  6985. + if test -n "${lt_cv_path_LDCXX+set}"; then
  6986. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6987. + else
  6988. + $as_unset lt_cv_path_LD
  6989. + fi
  6990. + test -z "${LDCXX+set}" || LD=$LDCXX
  6991. + CC=${CXX-"c++"}
  6992. + compiler=$CC
  6993. + _LT_TAGVAR(compiler, $1)=$CC
  6994. + _LT_CC_BASENAME([$compiler])
  6995. -# How to hardcode a shared library path into an executable.
  6996. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6997. + if test -n "$compiler"; then
  6998. + # We don't want -fno-exception when compiling C++ code, so set the
  6999. + # no_builtin_flag separately
  7000. + if test "$GXX" = yes; then
  7001. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7002. + else
  7003. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7004. + fi
  7005. -# Whether we should hardcode library paths into libraries.
  7006. -hardcode_into_libs=$hardcode_into_libs
  7007. + if test "$GXX" = yes; then
  7008. + # Set up default GNU C++ configuration
  7009. -# Flag to hardcode \$libdir into a binary during linking.
  7010. -# This must work even if \$libdir does not exist.
  7011. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7012. + LT_PATH_LD
  7013. -# If ld is used when linking, flag to hardcode \$libdir into
  7014. -# a binary during linking. This must work even if \$libdir does
  7015. -# not exist.
  7016. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7017. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7018. + # archiving commands below assume that GNU ld is being used.
  7019. + if test "$with_gnu_ld" = yes; then
  7020. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7021. + _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'
  7022. +
  7023. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7024. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7025. +
  7026. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7027. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7028. + # investigate it a little bit more. (MM)
  7029. + wlarc='${wl}'
  7030. +
  7031. + # ancient GNU ld didn't support --whole-archive et. al.
  7032. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7033. + $GREP 'no-whole-archive' > /dev/null; then
  7034. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7035. + else
  7036. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7037. + fi
  7038. + else
  7039. + with_gnu_ld=no
  7040. + wlarc=
  7041. -# Whether we need a single -rpath flag with a separated argument.
  7042. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7043. + # A generic and very simple default shared library creation
  7044. + # command for GNU C++ for the case where it uses the native
  7045. + # linker, instead of GNU ld. If possible, this setting should
  7046. + # overridden to take advantage of the native linker features on
  7047. + # the platform it is being used on.
  7048. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7049. + fi
  7050. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7051. -# resulting binary.
  7052. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7053. + # Commands to make compiler produce verbose output that lists
  7054. + # what "hidden" libraries, object files and flags are used when
  7055. + # linking a shared library.
  7056. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7057. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7058. -# resulting binary.
  7059. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7060. + else
  7061. + GXX=no
  7062. + with_gnu_ld=no
  7063. + wlarc=
  7064. + fi
  7065. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7066. -# the resulting binary.
  7067. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7068. + # PORTME: fill in a description of your system's C++ link characteristics
  7069. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7070. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7071. + case $host_os in
  7072. + aix3*)
  7073. + # FIXME: insert proper C++ library support
  7074. + _LT_TAGVAR(ld_shlibs, $1)=no
  7075. + ;;
  7076. + aix[[4-9]]*)
  7077. + if test "$host_cpu" = ia64; then
  7078. + # On IA64, the linker does run time linking by default, so we don't
  7079. + # have to do anything special.
  7080. + aix_use_runtimelinking=no
  7081. + exp_sym_flag='-Bexport'
  7082. + no_entry_flag=""
  7083. + else
  7084. + aix_use_runtimelinking=no
  7085. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7086. -# and all subsequent libraries and executables linked against it.
  7087. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7088. + # Test if we are trying to use run time linking or normal
  7089. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7090. + # need to do runtime linking.
  7091. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7092. + for ld_flag in $LDFLAGS; do
  7093. + case $ld_flag in
  7094. + *-brtl*)
  7095. + aix_use_runtimelinking=yes
  7096. + break
  7097. + ;;
  7098. + esac
  7099. + done
  7100. + ;;
  7101. + esac
  7102. -# Variables whose values should be saved in libtool wrapper scripts and
  7103. -# restored at relink time.
  7104. -variables_saved_for_relink="$variables_saved_for_relink"
  7105. + exp_sym_flag='-bexport'
  7106. + no_entry_flag='-bnoentry'
  7107. + fi
  7108. -# Whether libtool must link a program against all its dependency libraries.
  7109. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7110. + # When large executables or shared objects are built, AIX ld can
  7111. + # have problems creating the table of contents. If linking a library
  7112. + # or program results in "error TOC overflow" add -mminimal-toc to
  7113. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7114. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7115. +
  7116. + _LT_TAGVAR(archive_cmds, $1)=''
  7117. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7118. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7119. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7120. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7121. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7122. +
  7123. + if test "$GXX" = yes; then
  7124. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7125. + # We only want to do this on AIX 4.2 and lower, the check
  7126. + # below for broken collect2 doesn't work under 4.3+
  7127. + collect2name=`${CC} -print-prog-name=collect2`
  7128. + if test -f "$collect2name" &&
  7129. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7130. + then
  7131. + # We have reworked collect2
  7132. + :
  7133. + else
  7134. + # We have old collect2
  7135. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7136. + # It fails to find uninstalled libraries when the uninstalled
  7137. + # path is not listed in the libpath. Setting hardcode_minus_L
  7138. + # to unsupported forces relinking
  7139. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7140. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7141. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7142. + fi
  7143. + esac
  7144. + shared_flag='-shared'
  7145. + if test "$aix_use_runtimelinking" = yes; then
  7146. + shared_flag="$shared_flag "'${wl}-G'
  7147. + fi
  7148. + else
  7149. + # not using gcc
  7150. + if test "$host_cpu" = ia64; then
  7151. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7152. + # chokes on -Wl,-G. The following line is correct:
  7153. + shared_flag='-G'
  7154. + else
  7155. + if test "$aix_use_runtimelinking" = yes; then
  7156. + shared_flag='${wl}-G'
  7157. + else
  7158. + shared_flag='${wl}-bM:SRE'
  7159. + fi
  7160. + fi
  7161. + fi
  7162. -# Compile-time system search path for libraries
  7163. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7164. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7165. + # It seems that -bexpall does not export symbols beginning with
  7166. + # underscore (_), so it is better to generate a list of symbols to
  7167. + # export.
  7168. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7169. + if test "$aix_use_runtimelinking" = yes; then
  7170. + # Warning - without using the other runtime loading flags (-brtl),
  7171. + # -berok will link without error, but may produce a broken library.
  7172. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7173. + # Determine the default libpath from the value encoded in an empty
  7174. + # executable.
  7175. + _LT_SYS_MODULE_PATH_AIX
  7176. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7177. -# Run-time system search path for libraries
  7178. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7179. + _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"
  7180. + else
  7181. + if test "$host_cpu" = ia64; then
  7182. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7183. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7184. + _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"
  7185. + else
  7186. + # Determine the default libpath from the value encoded in an
  7187. + # empty executable.
  7188. + _LT_SYS_MODULE_PATH_AIX
  7189. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7190. + # Warning - without using the other run time loading flags,
  7191. + # -berok will link without error, but may produce a broken library.
  7192. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7193. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7194. + # Exported symbols can be pulled into shared objects from archives
  7195. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7196. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7197. + # This is similar to how AIX traditionally builds its shared
  7198. + # libraries.
  7199. + _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'
  7200. + fi
  7201. + fi
  7202. + ;;
  7203. -# Fix the shell variable \$srcfile for the compiler.
  7204. -fix_srcfile_path=$lt_fix_srcfile_path
  7205. + beos*)
  7206. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7207. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7208. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7209. + # support --undefined. This deserves some investigation. FIXME
  7210. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7211. + else
  7212. + _LT_TAGVAR(ld_shlibs, $1)=no
  7213. + fi
  7214. + ;;
  7215. -# Set to yes if exported symbols are required.
  7216. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7217. + chorus*)
  7218. + case $cc_basename in
  7219. + *)
  7220. + # FIXME: insert proper C++ library support
  7221. + _LT_TAGVAR(ld_shlibs, $1)=no
  7222. + ;;
  7223. + esac
  7224. + ;;
  7225. -# The commands to list exported symbols.
  7226. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7227. + cygwin* | mingw* | pw32* | cegcc*)
  7228. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7229. + # as there is no search path for DLLs.
  7230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7231. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7232. + _LT_TAGVAR(always_export_symbols, $1)=no
  7233. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7234. +
  7235. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7236. + _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'
  7237. + # If the export-symbols file already is a .def file (1st line
  7238. + # is EXPORTS), use it as is; otherwise, prepend...
  7239. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7240. + cp $export_symbols $output_objdir/$soname.def;
  7241. + else
  7242. + echo EXPORTS > $output_objdir/$soname.def;
  7243. + cat $export_symbols >> $output_objdir/$soname.def;
  7244. + fi~
  7245. + $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'
  7246. + else
  7247. + _LT_TAGVAR(ld_shlibs, $1)=no
  7248. + fi
  7249. + ;;
  7250. + darwin* | rhapsody*)
  7251. + _LT_DARWIN_LINKER_FEATURES($1)
  7252. + ;;
  7253. -# The commands to extract the exported symbol list from a shared archive.
  7254. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7255. + dgux*)
  7256. + case $cc_basename in
  7257. + ec++*)
  7258. + # FIXME: insert proper C++ library support
  7259. + _LT_TAGVAR(ld_shlibs, $1)=no
  7260. + ;;
  7261. + ghcx*)
  7262. + # Green Hills C++ Compiler
  7263. + # FIXME: insert proper C++ library support
  7264. + _LT_TAGVAR(ld_shlibs, $1)=no
  7265. + ;;
  7266. + *)
  7267. + # FIXME: insert proper C++ library support
  7268. + _LT_TAGVAR(ld_shlibs, $1)=no
  7269. + ;;
  7270. + esac
  7271. + ;;
  7272. -# Symbols that should not be listed in the preloaded symbols.
  7273. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7274. + freebsd[[12]]*)
  7275. + # C++ shared libraries reported to be fairly broken before
  7276. + # switch to ELF
  7277. + _LT_TAGVAR(ld_shlibs, $1)=no
  7278. + ;;
  7279. -# Symbols that must always be exported.
  7280. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7281. + freebsd-elf*)
  7282. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7283. + ;;
  7284. -ifelse([$1],[],
  7285. -[# ### END LIBTOOL CONFIG],
  7286. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7287. + freebsd* | dragonfly*)
  7288. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7289. + # conventions
  7290. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7291. + ;;
  7292. -__EOF__
  7293. + gnu*)
  7294. + ;;
  7295. -ifelse([$1],[], [
  7296. - case $host_os in
  7297. - aix3*)
  7298. - cat <<\EOF >> "$cfgfile"
  7299. + hpux9*)
  7300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7301. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7302. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7303. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7304. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7305. + # but as the default
  7306. + # location of the library.
  7307. +
  7308. + case $cc_basename in
  7309. + CC*)
  7310. + # FIXME: insert proper C++ library support
  7311. + _LT_TAGVAR(ld_shlibs, $1)=no
  7312. + ;;
  7313. + aCC*)
  7314. + _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'
  7315. + # Commands to make compiler produce verbose output that lists
  7316. + # what "hidden" libraries, object files and flags are used when
  7317. + # linking a shared library.
  7318. + #
  7319. + # There doesn't appear to be a way to prevent this compiler from
  7320. + # explicitly linking system object files so we need to strip them
  7321. + # from the output so that they don't get included in the library
  7322. + # dependencies.
  7323. + 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'
  7324. + ;;
  7325. + *)
  7326. + if test "$GXX" = yes; then
  7327. + _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'
  7328. + else
  7329. + # FIXME: insert proper C++ library support
  7330. + _LT_TAGVAR(ld_shlibs, $1)=no
  7331. + fi
  7332. + ;;
  7333. + esac
  7334. + ;;
  7335. -# AIX sometimes has problems with the GCC collect2 program. For some
  7336. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7337. -# vanish in a puff of smoke.
  7338. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7339. - COLLECT_NAMES=
  7340. - export COLLECT_NAMES
  7341. -fi
  7342. -EOF
  7343. - ;;
  7344. - esac
  7345. + hpux10*|hpux11*)
  7346. + if test $with_gnu_ld = no; then
  7347. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7348. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7349. +
  7350. + case $host_cpu in
  7351. + hppa*64*|ia64*)
  7352. + ;;
  7353. + *)
  7354. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7355. + ;;
  7356. + esac
  7357. + fi
  7358. + case $host_cpu in
  7359. + hppa*64*|ia64*)
  7360. + _LT_TAGVAR(hardcode_direct, $1)=no
  7361. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7362. + ;;
  7363. + *)
  7364. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7365. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7366. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7367. + # but as the default
  7368. + # location of the library.
  7369. + ;;
  7370. + esac
  7371. +
  7372. + case $cc_basename in
  7373. + CC*)
  7374. + # FIXME: insert proper C++ library support
  7375. + _LT_TAGVAR(ld_shlibs, $1)=no
  7376. + ;;
  7377. + aCC*)
  7378. + case $host_cpu in
  7379. + hppa*64*)
  7380. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7381. + ;;
  7382. + ia64*)
  7383. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7384. + ;;
  7385. + *)
  7386. + _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'
  7387. + ;;
  7388. + esac
  7389. + # Commands to make compiler produce verbose output that lists
  7390. + # what "hidden" libraries, object files and flags are used when
  7391. + # linking a shared library.
  7392. + #
  7393. + # There doesn't appear to be a way to prevent this compiler from
  7394. + # explicitly linking system object files so we need to strip them
  7395. + # from the output so that they don't get included in the library
  7396. + # dependencies.
  7397. + 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'
  7398. + ;;
  7399. + *)
  7400. + if test "$GXX" = yes; then
  7401. + if test $with_gnu_ld = no; then
  7402. + case $host_cpu in
  7403. + hppa*64*)
  7404. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7405. + ;;
  7406. + ia64*)
  7407. + _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'
  7408. + ;;
  7409. + *)
  7410. + _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'
  7411. + ;;
  7412. + esac
  7413. + fi
  7414. + else
  7415. + # FIXME: insert proper C++ library support
  7416. + _LT_TAGVAR(ld_shlibs, $1)=no
  7417. + fi
  7418. + ;;
  7419. + esac
  7420. + ;;
  7421. - # We use sed instead of cat because bash on DJGPP gets confused if
  7422. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7423. - # text mode, it properly converts lines to CR/LF. This bash problem
  7424. - # is reportedly fixed, but why not run on old versions too?
  7425. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7426. + interix[[3-9]]*)
  7427. + _LT_TAGVAR(hardcode_direct, $1)=no
  7428. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7429. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7430. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7431. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7432. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7433. + # default) and relocated if they conflict, which is a slow very memory
  7434. + # consuming and fragmenting process. To avoid this, we pick a random,
  7435. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7436. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7437. + _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'
  7438. + _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'
  7439. + ;;
  7440. + irix5* | irix6*)
  7441. + case $cc_basename in
  7442. + CC*)
  7443. + # SGI C++
  7444. + _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'
  7445. +
  7446. + # Archives containing C++ object files must be created using
  7447. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7448. + # necessary to make sure instantiated templates are included
  7449. + # in the archive.
  7450. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7451. + ;;
  7452. + *)
  7453. + if test "$GXX" = yes; then
  7454. + if test "$with_gnu_ld" = no; then
  7455. + _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'
  7456. + else
  7457. + _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'
  7458. + fi
  7459. + fi
  7460. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7461. + ;;
  7462. + esac
  7463. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7464. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7465. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7466. + ;;
  7467. - mv -f "$cfgfile" "$ofile" || \
  7468. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7469. - chmod +x "$ofile"
  7470. -])
  7471. -else
  7472. - # If there is no Makefile yet, we rely on a make rule to execute
  7473. - # `config.status --recheck' to rerun these tests and create the
  7474. - # libtool script then.
  7475. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7476. - if test -f "$ltmain_in"; then
  7477. - test -f Makefile && make "$ltmain"
  7478. - fi
  7479. -fi
  7480. -])# AC_LIBTOOL_CONFIG
  7481. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7482. + case $cc_basename in
  7483. + KCC*)
  7484. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7485. +
  7486. + # KCC will only create a shared library if the output file
  7487. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7488. + # to its proper name (with version) after linking.
  7489. + _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'
  7490. + _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'
  7491. + # Commands to make compiler produce verbose output that lists
  7492. + # what "hidden" libraries, object files and flags are used when
  7493. + # linking a shared library.
  7494. + #
  7495. + # There doesn't appear to be a way to prevent this compiler from
  7496. + # explicitly linking system object files so we need to strip them
  7497. + # from the output so that they don't get included in the library
  7498. + # dependencies.
  7499. + 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'
  7500. +
  7501. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7502. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7503. +
  7504. + # Archives containing C++ object files must be created using
  7505. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7506. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7507. + ;;
  7508. + icpc* | ecpc* )
  7509. + # Intel C++
  7510. + with_gnu_ld=yes
  7511. + # version 8.0 and above of icpc choke on multiply defined symbols
  7512. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7513. + # earlier do not add the objects themselves.
  7514. + case `$CC -V 2>&1` in
  7515. + *"Version 7."*)
  7516. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7517. + _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'
  7518. + ;;
  7519. + *) # Version 8.0 or newer
  7520. + tmp_idyn=
  7521. + case $host_cpu in
  7522. + ia64*) tmp_idyn=' -i_dynamic';;
  7523. + esac
  7524. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7525. + _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'
  7526. + ;;
  7527. + esac
  7528. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7529. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7530. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7531. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7532. + ;;
  7533. + pgCC* | pgcpp*)
  7534. + # Portland Group C++ compiler
  7535. + case `$CC -V` in
  7536. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7537. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7538. + rm -rf $tpldir~
  7539. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7540. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7541. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7542. + rm -rf $tpldir~
  7543. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7544. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7545. + $RANLIB $oldlib'
  7546. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7547. + rm -rf $tpldir~
  7548. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7549. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7550. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7551. + rm -rf $tpldir~
  7552. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7553. + $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'
  7554. + ;;
  7555. + *) # Version 6 will use weak symbols
  7556. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7557. + _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'
  7558. + ;;
  7559. + esac
  7560. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7561. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7562. + _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'
  7563. + ;;
  7564. + cxx*)
  7565. + # Compaq C++
  7566. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7567. + _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'
  7568. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7569. -# -------------------------------------------
  7570. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7571. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7572. + runpath_var=LD_RUN_PATH
  7573. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7574. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7575. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7576. + # Commands to make compiler produce verbose output that lists
  7577. + # what "hidden" libraries, object files and flags are used when
  7578. + # linking a shared library.
  7579. + #
  7580. + # There doesn't appear to be a way to prevent this compiler from
  7581. + # explicitly linking system object files so we need to strip them
  7582. + # from the output so that they don't get included in the library
  7583. + # dependencies.
  7584. + 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'
  7585. + ;;
  7586. + xl*)
  7587. + # IBM XL 8.0 on PPC, with GNU ld
  7588. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7589. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7590. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7591. + if test "x$supports_anon_versioning" = xyes; then
  7592. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7593. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7594. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7595. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7596. + fi
  7597. + ;;
  7598. + *)
  7599. + case `$CC -V 2>&1 | sed 5q` in
  7600. + *Sun\ C*)
  7601. + # Sun C++ 5.9
  7602. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7603. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7604. + _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'
  7605. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7606. + _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'
  7607. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7608. +
  7609. + # Not sure whether something based on
  7610. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7611. + # would be better.
  7612. + output_verbose_link_cmd='echo'
  7613. +
  7614. + # Archives containing C++ object files must be created using
  7615. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7616. + # necessary to make sure instantiated templates are included
  7617. + # in the archive.
  7618. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7619. + ;;
  7620. + esac
  7621. + ;;
  7622. + esac
  7623. + ;;
  7624. -if test "$GCC" = yes; then
  7625. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7626. + lynxos*)
  7627. + # FIXME: insert proper C++ library support
  7628. + _LT_TAGVAR(ld_shlibs, $1)=no
  7629. + ;;
  7630. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7631. - lt_cv_prog_compiler_rtti_exceptions,
  7632. - [-fno-rtti -fno-exceptions], [],
  7633. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7634. -fi
  7635. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7636. + m88k*)
  7637. + # FIXME: insert proper C++ library support
  7638. + _LT_TAGVAR(ld_shlibs, $1)=no
  7639. + ;;
  7640. + mvs*)
  7641. + case $cc_basename in
  7642. + cxx*)
  7643. + # FIXME: insert proper C++ library support
  7644. + _LT_TAGVAR(ld_shlibs, $1)=no
  7645. + ;;
  7646. + *)
  7647. + # FIXME: insert proper C++ library support
  7648. + _LT_TAGVAR(ld_shlibs, $1)=no
  7649. + ;;
  7650. + esac
  7651. + ;;
  7652. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7653. -# ---------------------------------
  7654. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7655. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7656. -AC_REQUIRE([LT_AC_PROG_SED])
  7657. -AC_REQUIRE([AC_PROG_NM])
  7658. -AC_REQUIRE([AC_OBJEXT])
  7659. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7660. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7661. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7662. -[
  7663. -# These are sane defaults that work on at least a few old systems.
  7664. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7665. + netbsd*)
  7666. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7667. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7668. + wlarc=
  7669. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7670. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7671. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7672. + fi
  7673. + # Workaround some broken pre-1.5 toolchains
  7674. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7675. + ;;
  7676. -# Character class describing NM global symbol codes.
  7677. -symcode='[[BCDEGRST]]'
  7678. + *nto* | *qnx*)
  7679. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7680. + ;;
  7681. -# Regexp to match symbols that can be accessed directly from C.
  7682. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7683. + openbsd2*)
  7684. + # C++ shared libraries are fairly broken
  7685. + _LT_TAGVAR(ld_shlibs, $1)=no
  7686. + ;;
  7687. +
  7688. + openbsd*)
  7689. + if test -f /usr/libexec/ld.so; then
  7690. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7691. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7692. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7693. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7694. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7695. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7696. + _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'
  7697. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7698. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7699. + fi
  7700. + output_verbose_link_cmd=echo
  7701. + else
  7702. + _LT_TAGVAR(ld_shlibs, $1)=no
  7703. + fi
  7704. + ;;
  7705. -# Transform an extracted symbol line into a proper C declaration
  7706. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7707. + osf3* | osf4* | osf5*)
  7708. + case $cc_basename in
  7709. + KCC*)
  7710. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7711. +
  7712. + # KCC will only create a shared library if the output file
  7713. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7714. + # to its proper name (with version) after linking.
  7715. + _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'
  7716. +
  7717. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7718. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7719. +
  7720. + # Archives containing C++ object files must be created using
  7721. + # the KAI C++ compiler.
  7722. + case $host in
  7723. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7724. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7725. + esac
  7726. + ;;
  7727. + RCC*)
  7728. + # Rational C++ 2.4.1
  7729. + # FIXME: insert proper C++ library support
  7730. + _LT_TAGVAR(ld_shlibs, $1)=no
  7731. + ;;
  7732. + cxx*)
  7733. + case $host in
  7734. + osf3*)
  7735. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7736. + _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'
  7737. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7738. + ;;
  7739. + *)
  7740. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7741. + _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'
  7742. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7743. + echo "-hidden">> $lib.exp~
  7744. + $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~
  7745. + $RM $lib.exp'
  7746. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7747. + ;;
  7748. + esac
  7749. -# Transform an extracted symbol line into symbol name and symbol address
  7750. -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'"
  7751. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7752. -# Define system-specific variables.
  7753. -case $host_os in
  7754. -aix*)
  7755. - symcode='[[BCDT]]'
  7756. - ;;
  7757. -cygwin* | mingw* | pw32*)
  7758. - symcode='[[ABCDGISTW]]'
  7759. - ;;
  7760. -hpux*) # Its linker distinguishes data from code symbols
  7761. - if test "$host_cpu" = ia64; then
  7762. - symcode='[[ABCDEGRST]]'
  7763. - fi
  7764. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7765. - 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'"
  7766. - ;;
  7767. -linux* | k*bsd*-gnu)
  7768. - if test "$host_cpu" = ia64; then
  7769. - symcode='[[ABCDGIRSTW]]'
  7770. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7771. - 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'"
  7772. - fi
  7773. - ;;
  7774. -irix* | nonstopux*)
  7775. - symcode='[[BCDEGRST]]'
  7776. - ;;
  7777. -osf*)
  7778. - symcode='[[BCDEGQRST]]'
  7779. - ;;
  7780. -solaris*)
  7781. - symcode='[[BDRT]]'
  7782. - ;;
  7783. -sco3.2v5*)
  7784. - symcode='[[DT]]'
  7785. - ;;
  7786. -sysv4.2uw2*)
  7787. - symcode='[[DT]]'
  7788. - ;;
  7789. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7790. - symcode='[[ABDT]]'
  7791. - ;;
  7792. -sysv4)
  7793. - symcode='[[DFNSTU]]'
  7794. - ;;
  7795. -esac
  7796. + # Commands to make compiler produce verbose output that lists
  7797. + # what "hidden" libraries, object files and flags are used when
  7798. + # linking a shared library.
  7799. + #
  7800. + # There doesn't appear to be a way to prevent this compiler from
  7801. + # explicitly linking system object files so we need to strip them
  7802. + # from the output so that they don't get included in the library
  7803. + # dependencies.
  7804. + 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'
  7805. + ;;
  7806. + *)
  7807. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7808. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7809. + case $host in
  7810. + osf3*)
  7811. + _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'
  7812. + ;;
  7813. + *)
  7814. + _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'
  7815. + ;;
  7816. + esac
  7817. +
  7818. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7819. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7820. +
  7821. + # Commands to make compiler produce verbose output that lists
  7822. + # what "hidden" libraries, object files and flags are used when
  7823. + # linking a shared library.
  7824. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7825. +
  7826. + else
  7827. + # FIXME: insert proper C++ library support
  7828. + _LT_TAGVAR(ld_shlibs, $1)=no
  7829. + fi
  7830. + ;;
  7831. + esac
  7832. + ;;
  7833. -# Handle CRLF in mingw tool chain
  7834. -opt_cr=
  7835. -case $build_os in
  7836. -mingw*)
  7837. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7838. - ;;
  7839. -esac
  7840. + psos*)
  7841. + # FIXME: insert proper C++ library support
  7842. + _LT_TAGVAR(ld_shlibs, $1)=no
  7843. + ;;
  7844. -# If we're using GNU nm, then use its standard symbol codes.
  7845. -case `$NM -V 2>&1` in
  7846. -*GNU* | *'with BFD'*)
  7847. - symcode='[[ABCDGIRSTW]]' ;;
  7848. -esac
  7849. + sunos4*)
  7850. + case $cc_basename in
  7851. + CC*)
  7852. + # Sun C++ 4.x
  7853. + # FIXME: insert proper C++ library support
  7854. + _LT_TAGVAR(ld_shlibs, $1)=no
  7855. + ;;
  7856. + lcc*)
  7857. + # Lucid
  7858. + # FIXME: insert proper C++ library support
  7859. + _LT_TAGVAR(ld_shlibs, $1)=no
  7860. + ;;
  7861. + *)
  7862. + # FIXME: insert proper C++ library support
  7863. + _LT_TAGVAR(ld_shlibs, $1)=no
  7864. + ;;
  7865. + esac
  7866. + ;;
  7867. -# Try without a prefix undercore, then with it.
  7868. -for ac_symprfx in "" "_"; do
  7869. + solaris*)
  7870. + case $cc_basename in
  7871. + CC*)
  7872. + # Sun C++ 4.2, 5.x and Centerline C++
  7873. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7874. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7875. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7876. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7877. + $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'
  7878. +
  7879. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7880. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7881. + case $host_os in
  7882. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7883. + *)
  7884. + # The compiler driver will combine and reorder linker options,
  7885. + # but understands `-z linker_flag'.
  7886. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7887. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7888. + ;;
  7889. + esac
  7890. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7891. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7892. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  7893. + output_verbose_link_cmd='echo'
  7894. - # Write the raw and C identifiers.
  7895. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7896. + # Archives containing C++ object files must be created using
  7897. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7898. + # necessary to make sure instantiated templates are included
  7899. + # in the archive.
  7900. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7901. + ;;
  7902. + gcx*)
  7903. + # Green Hills C++ Compiler
  7904. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7905. - # Check to see that the pipe works correctly.
  7906. - pipe_works=no
  7907. + # The C++ compiler must be used to create the archive.
  7908. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7909. + ;;
  7910. + *)
  7911. + # GNU C++ compiler with Solaris linker
  7912. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7913. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7914. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7915. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7916. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7917. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7918. +
  7919. + # Commands to make compiler produce verbose output that lists
  7920. + # what "hidden" libraries, object files and flags are used when
  7921. + # linking a shared library.
  7922. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7923. + else
  7924. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7925. + # platform.
  7926. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7927. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7928. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7929. +
  7930. + # Commands to make compiler produce verbose output that lists
  7931. + # what "hidden" libraries, object files and flags are used when
  7932. + # linking a shared library.
  7933. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7934. + fi
  7935. +
  7936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7937. + case $host_os in
  7938. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7939. + *)
  7940. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7941. + ;;
  7942. + esac
  7943. + fi
  7944. + ;;
  7945. + esac
  7946. + ;;
  7947. - rm -f conftest*
  7948. - cat > conftest.$ac_ext <<EOF
  7949. -#ifdef __cplusplus
  7950. -extern "C" {
  7951. -#endif
  7952. -char nm_test_var;
  7953. -void nm_test_func(){}
  7954. -#ifdef __cplusplus
  7955. -}
  7956. -#endif
  7957. -int main(){nm_test_var='a';nm_test_func();return(0);}
  7958. -EOF
  7959. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7960. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7961. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7962. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7963. + runpath_var='LD_RUN_PATH'
  7964. - if AC_TRY_EVAL(ac_compile); then
  7965. - # Now try to grab the symbols.
  7966. - nlist=conftest.nm
  7967. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  7968. - # Try sorting and uniquifying the output.
  7969. - if sort "$nlist" | uniq > "$nlist"T; then
  7970. - mv -f "$nlist"T "$nlist"
  7971. - else
  7972. - rm -f "$nlist"T
  7973. - fi
  7974. + case $cc_basename in
  7975. + CC*)
  7976. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7978. + ;;
  7979. + *)
  7980. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7981. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7982. + ;;
  7983. + esac
  7984. + ;;
  7985. - # Make sure that we snagged all the symbols we need.
  7986. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7987. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7988. - cat <<EOF > conftest.$ac_ext
  7989. -#ifdef __cplusplus
  7990. -extern "C" {
  7991. -#endif
  7992. + sysv5* | sco3.2v5* | sco5v6*)
  7993. + # Note: We can NOT use -z defs as we might desire, because we do not
  7994. + # link with -lc, and that would cause any symbols used from libc to
  7995. + # always be unresolved, which means just about no library would
  7996. + # ever link correctly. If we're not using GNU ld we use -z text
  7997. + # though, which does catch some bad symbols but isn't as heavy-handed
  7998. + # as -z defs.
  7999. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8000. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8001. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8002. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8003. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8004. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8005. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8006. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8007. + runpath_var='LD_RUN_PATH'
  8008. -EOF
  8009. - # Now generate the symbol file.
  8010. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8011. + case $cc_basename in
  8012. + CC*)
  8013. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8014. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8015. + ;;
  8016. + *)
  8017. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8018. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8019. + ;;
  8020. + esac
  8021. + ;;
  8022. - cat <<EOF >> conftest.$ac_ext
  8023. -#if defined (__STDC__) && __STDC__
  8024. -# define lt_ptr_t void *
  8025. -#else
  8026. -# define lt_ptr_t char *
  8027. -# define const
  8028. -#endif
  8029. + tandem*)
  8030. + case $cc_basename in
  8031. + NCC*)
  8032. + # NonStop-UX NCC 3.20
  8033. + # FIXME: insert proper C++ library support
  8034. + _LT_TAGVAR(ld_shlibs, $1)=no
  8035. + ;;
  8036. + *)
  8037. + # FIXME: insert proper C++ library support
  8038. + _LT_TAGVAR(ld_shlibs, $1)=no
  8039. + ;;
  8040. + esac
  8041. + ;;
  8042. -/* The mapping between symbol names and symbols. */
  8043. -const struct {
  8044. - const char *name;
  8045. - lt_ptr_t address;
  8046. -}
  8047. -lt_preloaded_symbols[[]] =
  8048. -{
  8049. -EOF
  8050. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8051. - cat <<\EOF >> conftest.$ac_ext
  8052. - {0, (lt_ptr_t) 0}
  8053. -};
  8054. + vxworks*)
  8055. + # FIXME: insert proper C++ library support
  8056. + _LT_TAGVAR(ld_shlibs, $1)=no
  8057. + ;;
  8058. -#ifdef __cplusplus
  8059. -}
  8060. -#endif
  8061. -EOF
  8062. - # Now try linking the two files.
  8063. - mv conftest.$ac_objext conftstm.$ac_objext
  8064. - lt_save_LIBS="$LIBS"
  8065. - lt_save_CFLAGS="$CFLAGS"
  8066. - LIBS="conftstm.$ac_objext"
  8067. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8068. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8069. - pipe_works=yes
  8070. - fi
  8071. - LIBS="$lt_save_LIBS"
  8072. - CFLAGS="$lt_save_CFLAGS"
  8073. - else
  8074. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8075. - fi
  8076. - else
  8077. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8078. - fi
  8079. - else
  8080. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8081. - fi
  8082. - else
  8083. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8084. - cat conftest.$ac_ext >&5
  8085. - fi
  8086. - rm -rf conftest* conftst*
  8087. + *)
  8088. + # FIXME: insert proper C++ library support
  8089. + _LT_TAGVAR(ld_shlibs, $1)=no
  8090. + ;;
  8091. + esac
  8092. - # Do not use the global_symbol_pipe unless it works.
  8093. - if test "$pipe_works" = yes; then
  8094. - break
  8095. - else
  8096. - lt_cv_sys_global_symbol_pipe=
  8097. - fi
  8098. -done
  8099. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8100. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8101. +
  8102. + _LT_TAGVAR(GCC, $1)="$GXX"
  8103. + _LT_TAGVAR(LD, $1)="$LD"
  8104. +
  8105. + ## CAVEAT EMPTOR:
  8106. + ## There is no encapsulation within the following macros, do not change
  8107. + ## the running order or otherwise move them around unless you know exactly
  8108. + ## what you are doing...
  8109. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8110. + _LT_COMPILER_PIC($1)
  8111. + _LT_COMPILER_C_O($1)
  8112. + _LT_COMPILER_FILE_LOCKS($1)
  8113. + _LT_LINKER_SHLIBS($1)
  8114. + _LT_SYS_DYNAMIC_LINKER($1)
  8115. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8116. +
  8117. + _LT_CONFIG($1)
  8118. + fi # test -n "$compiler"
  8119. +
  8120. + CC=$lt_save_CC
  8121. + LDCXX=$LD
  8122. + LD=$lt_save_LD
  8123. + GCC=$lt_save_GCC
  8124. + with_gnu_ld=$lt_save_with_gnu_ld
  8125. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8126. + lt_cv_path_LD=$lt_save_path_LD
  8127. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8128. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8129. +fi # test "$_lt_caught_CXX_error" != yes
  8130. +
  8131. +AC_LANG_POP
  8132. +])# _LT_LANG_CXX_CONFIG
  8133. +
  8134. +
  8135. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8136. +# ---------------------------------
  8137. +# Figure out "hidden" library dependencies from verbose
  8138. +# compiler output when linking a shared library.
  8139. +# Parse the compiler output and extract the necessary
  8140. +# objects, libraries and library flags.
  8141. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8142. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8143. +# Dependencies to place before and after the object being linked:
  8144. +_LT_TAGVAR(predep_objects, $1)=
  8145. +_LT_TAGVAR(postdep_objects, $1)=
  8146. +_LT_TAGVAR(predeps, $1)=
  8147. +_LT_TAGVAR(postdeps, $1)=
  8148. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8149. +
  8150. +dnl we can't use the lt_simple_compile_test_code here,
  8151. +dnl because it contains code intended for an executable,
  8152. +dnl not a library. It's possible we should let each
  8153. +dnl tag define a new lt_????_link_test_code variable,
  8154. +dnl but it's only used here...
  8155. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8156. +int a;
  8157. +void foo (void) { a = 0; }
  8158. +_LT_EOF
  8159. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8160. +class Foo
  8161. +{
  8162. +public:
  8163. + Foo (void) { a = 0; }
  8164. +private:
  8165. + int a;
  8166. +};
  8167. +_LT_EOF
  8168. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8169. + subroutine foo
  8170. + implicit none
  8171. + integer*4 a
  8172. + a=0
  8173. + return
  8174. + end
  8175. +_LT_EOF
  8176. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8177. + subroutine foo
  8178. + implicit none
  8179. + integer a
  8180. + a=0
  8181. + return
  8182. + end
  8183. +_LT_EOF
  8184. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8185. +public class foo {
  8186. + private int a;
  8187. + public void bar (void) {
  8188. + a = 0;
  8189. + }
  8190. +};
  8191. +_LT_EOF
  8192. ])
  8193. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8194. - lt_cv_sys_global_symbol_to_cdecl=
  8195. -fi
  8196. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8197. - AC_MSG_RESULT(failed)
  8198. +dnl Parse the compiler output and extract the necessary
  8199. +dnl objects, libraries and library flags.
  8200. +if AC_TRY_EVAL(ac_compile); then
  8201. + # Parse the compiler output and extract the necessary
  8202. + # objects, libraries and library flags.
  8203. +
  8204. + # Sentinel used to keep track of whether or not we are before
  8205. + # the conftest object file.
  8206. + pre_test_object_deps_done=no
  8207. +
  8208. + for p in `eval "$output_verbose_link_cmd"`; do
  8209. + case $p in
  8210. +
  8211. + -L* | -R* | -l*)
  8212. + # Some compilers place space between "-{L,R}" and the path.
  8213. + # Remove the space.
  8214. + if test $p = "-L" ||
  8215. + test $p = "-R"; then
  8216. + prev=$p
  8217. + continue
  8218. + else
  8219. + prev=
  8220. + fi
  8221. +
  8222. + if test "$pre_test_object_deps_done" = no; then
  8223. + case $p in
  8224. + -L* | -R*)
  8225. + # Internal compiler library paths should come after those
  8226. + # provided the user. The postdeps already come after the
  8227. + # user supplied libs so there is no need to process them.
  8228. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8229. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8230. + else
  8231. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8232. + fi
  8233. + ;;
  8234. + # The "-l" case would never come before the object being
  8235. + # linked, so don't bother handling this case.
  8236. + esac
  8237. + else
  8238. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8239. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8240. + else
  8241. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8242. + fi
  8243. + fi
  8244. + ;;
  8245. +
  8246. + *.$objext)
  8247. + # This assumes that the test object file only shows up
  8248. + # once in the compiler output.
  8249. + if test "$p" = "conftest.$objext"; then
  8250. + pre_test_object_deps_done=yes
  8251. + continue
  8252. + fi
  8253. +
  8254. + if test "$pre_test_object_deps_done" = no; then
  8255. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8256. + _LT_TAGVAR(predep_objects, $1)="$p"
  8257. + else
  8258. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8259. + fi
  8260. + else
  8261. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8262. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8263. + else
  8264. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8265. + fi
  8266. + fi
  8267. + ;;
  8268. +
  8269. + *) ;; # Ignore the rest.
  8270. +
  8271. + esac
  8272. + done
  8273. +
  8274. + # Clean up.
  8275. + rm -f a.out a.exe
  8276. else
  8277. - AC_MSG_RESULT(ok)
  8278. + echo "libtool.m4: error: problem compiling $1 test program"
  8279. fi
  8280. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8281. +$RM -f confest.$objext
  8282. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8283. -# ---------------------------------------
  8284. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8285. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8286. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8287. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8288. +# PORTME: override above test on systems where it is broken
  8289. +m4_if([$1], [CXX],
  8290. +[case $host_os in
  8291. +interix[[3-9]]*)
  8292. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8293. + # hack all around it, let's just trust "g++" to DTRT.
  8294. + _LT_TAGVAR(predep_objects,$1)=
  8295. + _LT_TAGVAR(postdep_objects,$1)=
  8296. + _LT_TAGVAR(postdeps,$1)=
  8297. + ;;
  8298. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8299. - ifelse([$1],[CXX],[
  8300. - # C++ specific cases for pic, static, wl, etc.
  8301. - if test "$GXX" = yes; then
  8302. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8303. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8304. +linux*)
  8305. + case `$CC -V 2>&1 | sed 5q` in
  8306. + *Sun\ C*)
  8307. + # Sun C++ 5.9
  8308. - case $host_os in
  8309. - aix*)
  8310. - # All AIX code is PIC.
  8311. - if test "$host_cpu" = ia64; then
  8312. - # AIX 5 now supports IA64 processor
  8313. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8314. - fi
  8315. - ;;
  8316. - amigaos*)
  8317. - # FIXME: we need at least 68020 code to build shared libraries, but
  8318. - # adding the `-m68020' flag to GCC prevents building anything better,
  8319. - # like `-m68040'.
  8320. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8321. - ;;
  8322. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8323. - # PIC is the default for these OSes.
  8324. - ;;
  8325. - mingw* | cygwin* | os2* | pw32*)
  8326. - # This hack is so that the source file can tell whether it is being
  8327. - # built for inclusion in a dll (and should export symbols for example).
  8328. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8329. - # (--disable-auto-import) libraries
  8330. - m4_if([$1], [GCJ], [],
  8331. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  8332. - ;;
  8333. - darwin* | rhapsody*)
  8334. - # PIC is the default on this platform
  8335. - # Common symbols not allowed in MH_DYLIB files
  8336. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8337. - ;;
  8338. - *djgpp*)
  8339. - # DJGPP does not support shared libraries at all
  8340. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8341. - ;;
  8342. - interix[[3-9]]*)
  8343. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8344. - # Instead, we relocate shared libraries at runtime.
  8345. - ;;
  8346. - sysv4*MP*)
  8347. - if test -d /usr/nec; then
  8348. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8349. - fi
  8350. - ;;
  8351. - hpux*)
  8352. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8353. - # not for PA HP-UX.
  8354. - case $host_cpu in
  8355. - hppa*64*|ia64*)
  8356. - ;;
  8357. - *)
  8358. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8359. - ;;
  8360. - esac
  8361. + # The more standards-conforming stlport4 library is
  8362. + # incompatible with the Cstd library. Avoid specifying
  8363. + # it if it's in CXXFLAGS. Ignore libCrun as
  8364. + # -library=stlport4 depends on it.
  8365. + case " $CXX $CXXFLAGS " in
  8366. + *" -library=stlport4 "*)
  8367. + solaris_use_stlport4=yes
  8368. ;;
  8369. - *)
  8370. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8371. + esac
  8372. +
  8373. + if test "$solaris_use_stlport4" != yes; then
  8374. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8375. + fi
  8376. + ;;
  8377. + esac
  8378. + ;;
  8379. +
  8380. +solaris*)
  8381. + case $cc_basename in
  8382. + CC*)
  8383. + # The more standards-conforming stlport4 library is
  8384. + # incompatible with the Cstd library. Avoid specifying
  8385. + # it if it's in CXXFLAGS. Ignore libCrun as
  8386. + # -library=stlport4 depends on it.
  8387. + case " $CXX $CXXFLAGS " in
  8388. + *" -library=stlport4 "*)
  8389. + solaris_use_stlport4=yes
  8390. ;;
  8391. esac
  8392. - else
  8393. +
  8394. + # Adding this requires a known-good setup of shared libraries for
  8395. + # Sun compiler versions before 5.6, else PIC objects from an old
  8396. + # archive will be linked into the output, leading to subtle bugs.
  8397. + if test "$solaris_use_stlport4" != yes; then
  8398. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8399. + fi
  8400. + ;;
  8401. + esac
  8402. + ;;
  8403. +esac
  8404. +])
  8405. +
  8406. +case " $_LT_TAGVAR(postdeps, $1) " in
  8407. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8408. +esac
  8409. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8410. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8411. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8412. +fi
  8413. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8414. + [The directories searched by this compiler when creating a shared library])
  8415. +_LT_TAGDECL([], [predep_objects], [1],
  8416. + [Dependencies to place before and after the objects being linked to
  8417. + create a shared library])
  8418. +_LT_TAGDECL([], [postdep_objects], [1])
  8419. +_LT_TAGDECL([], [predeps], [1])
  8420. +_LT_TAGDECL([], [postdeps], [1])
  8421. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8422. + [The library search path used internally by the compiler when linking
  8423. + a shared library])
  8424. +])# _LT_SYS_HIDDEN_LIBDEPS
  8425. +
  8426. +
  8427. +# _LT_PROG_F77
  8428. +# ------------
  8429. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8430. +# if there is no fortran compiler, we have our own version here.
  8431. +m4_defun([_LT_PROG_F77],
  8432. +[
  8433. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8434. +AC_PROG_F77
  8435. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8436. + _lt_disable_F77=yes
  8437. +fi
  8438. +popdef([AC_MSG_ERROR])
  8439. +])# _LT_PROG_F77
  8440. +
  8441. +dnl aclocal-1.4 backwards compatibility:
  8442. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8443. +
  8444. +
  8445. +# _LT_LANG_F77_CONFIG([TAG])
  8446. +# --------------------------
  8447. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8448. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8449. +# to write the compiler configuration to `libtool'.
  8450. +m4_defun([_LT_LANG_F77_CONFIG],
  8451. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8452. +AC_LANG_PUSH(Fortran 77)
  8453. +
  8454. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8455. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8456. +_LT_TAGVAR(always_export_symbols, $1)=no
  8457. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8458. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8459. +_LT_TAGVAR(hardcode_direct, $1)=no
  8460. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8461. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8462. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8463. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8464. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8465. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8466. +_LT_TAGVAR(inherit_rpath, $1)=no
  8467. +_LT_TAGVAR(module_cmds, $1)=
  8468. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8469. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8470. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8471. +_LT_TAGVAR(no_undefined_flag, $1)=
  8472. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8473. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8474. +
  8475. +# Source file extension for f77 test sources.
  8476. +ac_ext=f
  8477. +
  8478. +# Object file extension for compiled f77 test sources.
  8479. +objext=o
  8480. +_LT_TAGVAR(objext, $1)=$objext
  8481. +
  8482. +# No sense in running all these tests if we already determined that
  8483. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8484. +# are currently assumed to apply to all compilers on this platform,
  8485. +# and will be corrupted by setting them based on a non-working compiler.
  8486. +if test "$_lt_disable_F77" != yes; then
  8487. + # Code to be used in simple compile tests
  8488. + lt_simple_compile_test_code="\
  8489. + subroutine t
  8490. + return
  8491. + end
  8492. +"
  8493. +
  8494. + # Code to be used in simple link tests
  8495. + lt_simple_link_test_code="\
  8496. + program t
  8497. + end
  8498. +"
  8499. +
  8500. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8501. + _LT_TAG_COMPILER
  8502. +
  8503. + # save warnings/boilerplate of simple test code
  8504. + _LT_COMPILER_BOILERPLATE
  8505. + _LT_LINKER_BOILERPLATE
  8506. +
  8507. + # Allow CC to be a program name with arguments.
  8508. + lt_save_CC="$CC"
  8509. + lt_save_GCC=$GCC
  8510. + CC=${F77-"f77"}
  8511. + compiler=$CC
  8512. + _LT_TAGVAR(compiler, $1)=$CC
  8513. + _LT_CC_BASENAME([$compiler])
  8514. + GCC=$G77
  8515. + if test -n "$compiler"; then
  8516. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8517. + AC_MSG_RESULT([$can_build_shared])
  8518. +
  8519. + AC_MSG_CHECKING([whether to build shared libraries])
  8520. + test "$can_build_shared" = "no" && enable_shared=no
  8521. +
  8522. + # On AIX, shared libraries and static libraries use the same namespace, and
  8523. + # are all built from PIC.
  8524. case $host_os in
  8525. + aix3*)
  8526. + test "$enable_shared" = yes && enable_static=no
  8527. + if test -n "$RANLIB"; then
  8528. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8529. + postinstall_cmds='$RANLIB $lib'
  8530. + fi
  8531. + ;;
  8532. aix[[4-9]]*)
  8533. - # All AIX code is PIC.
  8534. - if test "$host_cpu" = ia64; then
  8535. - # AIX 5 now supports IA64 processor
  8536. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8537. - else
  8538. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8539. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8540. + test "$enable_shared" = yes && enable_static=no
  8541. fi
  8542. - ;;
  8543. - chorus*)
  8544. - case $cc_basename in
  8545. - cxch68*)
  8546. - # Green Hills C++ Compiler
  8547. - # _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"
  8548. - ;;
  8549. - esac
  8550. - ;;
  8551. - darwin*)
  8552. - # PIC is the default on this platform
  8553. - # Common symbols not allowed in MH_DYLIB files
  8554. - case $cc_basename in
  8555. - xlc*)
  8556. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  8557. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8558. - ;;
  8559. - esac
  8560. - ;;
  8561. - dgux*)
  8562. - case $cc_basename in
  8563. - ec++*)
  8564. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8565. - ;;
  8566. - ghcx*)
  8567. - # Green Hills C++ Compiler
  8568. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8569. - ;;
  8570. - *)
  8571. - ;;
  8572. - esac
  8573. - ;;
  8574. - freebsd* | dragonfly*)
  8575. - # FreeBSD uses GNU C++
  8576. - ;;
  8577. - hpux9* | hpux10* | hpux11*)
  8578. - case $cc_basename in
  8579. - CC*)
  8580. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8581. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8582. - if test "$host_cpu" != ia64; then
  8583. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8584. - fi
  8585. - ;;
  8586. - aCC*)
  8587. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8588. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8589. - case $host_cpu in
  8590. - hppa*64*|ia64*)
  8591. - # +Z the default
  8592. - ;;
  8593. - *)
  8594. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8595. - ;;
  8596. - esac
  8597. - ;;
  8598. - *)
  8599. - ;;
  8600. - esac
  8601. - ;;
  8602. - interix*)
  8603. - # This is c89, which is MS Visual C++ (no shared libs)
  8604. - # Anyone wants to do a port?
  8605. - ;;
  8606. - irix5* | irix6* | nonstopux*)
  8607. - case $cc_basename in
  8608. - CC*)
  8609. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8610. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8611. - # CC pic flag -KPIC is the default.
  8612. - ;;
  8613. - *)
  8614. - ;;
  8615. - esac
  8616. - ;;
  8617. - linux* | k*bsd*-gnu)
  8618. - case $cc_basename in
  8619. - KCC*)
  8620. - # KAI C++ Compiler
  8621. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8622. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8623. - ;;
  8624. - icpc* | ecpc*)
  8625. - # Intel C++
  8626. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8627. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8628. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8629. - ;;
  8630. - pgCC* | pgcpp*)
  8631. - # Portland Group C++ compiler.
  8632. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8633. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8634. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8635. - ;;
  8636. - cxx*)
  8637. - # Compaq C++
  8638. - # Make sure the PIC flag is empty. It appears that all Alpha
  8639. - # Linux and Compaq Tru64 Unix objects are PIC.
  8640. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8641. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8642. - ;;
  8643. - *)
  8644. - case `$CC -V 2>&1 | sed 5q` in
  8645. - *Sun\ C*)
  8646. - # Sun C++ 5.9
  8647. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8648. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8649. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8650. - ;;
  8651. - esac
  8652. - ;;
  8653. - esac
  8654. - ;;
  8655. - lynxos*)
  8656. - ;;
  8657. - m88k*)
  8658. - ;;
  8659. - mvs*)
  8660. - case $cc_basename in
  8661. - cxx*)
  8662. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8663. - ;;
  8664. - *)
  8665. - ;;
  8666. - esac
  8667. - ;;
  8668. - netbsd*)
  8669. - ;;
  8670. - osf3* | osf4* | osf5*)
  8671. - case $cc_basename in
  8672. - KCC*)
  8673. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8674. - ;;
  8675. - RCC*)
  8676. - # Rational C++ 2.4.1
  8677. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8678. - ;;
  8679. - cxx*)
  8680. - # Digital/Compaq C++
  8681. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8682. - # Make sure the PIC flag is empty. It appears that all Alpha
  8683. - # Linux and Compaq Tru64 Unix objects are PIC.
  8684. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8685. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8686. - ;;
  8687. - *)
  8688. - ;;
  8689. - esac
  8690. - ;;
  8691. - psos*)
  8692. - ;;
  8693. - solaris*)
  8694. - case $cc_basename in
  8695. - CC*)
  8696. - # Sun C++ 4.2, 5.x and Centerline C++
  8697. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8698. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8699. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8700. - ;;
  8701. - gcx*)
  8702. - # Green Hills C++ Compiler
  8703. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8704. - ;;
  8705. - *)
  8706. - ;;
  8707. - esac
  8708. - ;;
  8709. - sunos4*)
  8710. - case $cc_basename in
  8711. - CC*)
  8712. - # Sun C++ 4.x
  8713. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8714. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8715. - ;;
  8716. - lcc*)
  8717. - # Lucid
  8718. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8719. - ;;
  8720. - *)
  8721. - ;;
  8722. - esac
  8723. - ;;
  8724. - tandem*)
  8725. - case $cc_basename in
  8726. - NCC*)
  8727. - # NonStop-UX NCC 3.20
  8728. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8729. - ;;
  8730. - *)
  8731. - ;;
  8732. - esac
  8733. - ;;
  8734. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8735. - case $cc_basename in
  8736. - CC*)
  8737. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8738. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8739. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8740. - ;;
  8741. - esac
  8742. - ;;
  8743. - vxworks*)
  8744. - ;;
  8745. - *)
  8746. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8747. - ;;
  8748. + ;;
  8749. esac
  8750. - fi
  8751. -],
  8752. + AC_MSG_RESULT([$enable_shared])
  8753. +
  8754. + AC_MSG_CHECKING([whether to build static libraries])
  8755. + # Make sure either enable_shared or enable_static is yes.
  8756. + test "$enable_shared" = yes || enable_static=yes
  8757. + AC_MSG_RESULT([$enable_static])
  8758. +
  8759. + _LT_TAGVAR(GCC, $1)="$G77"
  8760. + _LT_TAGVAR(LD, $1)="$LD"
  8761. +
  8762. + ## CAVEAT EMPTOR:
  8763. + ## There is no encapsulation within the following macros, do not change
  8764. + ## the running order or otherwise move them around unless you know exactly
  8765. + ## what you are doing...
  8766. + _LT_COMPILER_PIC($1)
  8767. + _LT_COMPILER_C_O($1)
  8768. + _LT_COMPILER_FILE_LOCKS($1)
  8769. + _LT_LINKER_SHLIBS($1)
  8770. + _LT_SYS_DYNAMIC_LINKER($1)
  8771. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8772. +
  8773. + _LT_CONFIG($1)
  8774. + fi # test -n "$compiler"
  8775. +
  8776. + GCC=$lt_save_GCC
  8777. + CC="$lt_save_CC"
  8778. +fi # test "$_lt_disable_F77" != yes
  8779. +
  8780. +AC_LANG_POP
  8781. +])# _LT_LANG_F77_CONFIG
  8782. +
  8783. +
  8784. +# _LT_PROG_FC
  8785. +# -----------
  8786. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8787. +# if there is no fortran compiler, we have our own version here.
  8788. +m4_defun([_LT_PROG_FC],
  8789. [
  8790. - if test "$GCC" = yes; then
  8791. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8792. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8793. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8794. +AC_PROG_FC
  8795. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8796. + _lt_disable_FC=yes
  8797. +fi
  8798. +popdef([AC_MSG_ERROR])
  8799. +])# _LT_PROG_FC
  8800. +
  8801. +dnl aclocal-1.4 backwards compatibility:
  8802. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8803. +
  8804. +
  8805. +# _LT_LANG_FC_CONFIG([TAG])
  8806. +# -------------------------
  8807. +# Ensure that the configuration variables for a Fortran compiler are
  8808. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8809. +# to write the compiler configuration to `libtool'.
  8810. +m4_defun([_LT_LANG_FC_CONFIG],
  8811. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8812. +AC_LANG_PUSH(Fortran)
  8813. +
  8814. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8815. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8816. +_LT_TAGVAR(always_export_symbols, $1)=no
  8817. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8818. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8819. +_LT_TAGVAR(hardcode_direct, $1)=no
  8820. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8821. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8822. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8823. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8824. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8825. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8826. +_LT_TAGVAR(inherit_rpath, $1)=no
  8827. +_LT_TAGVAR(module_cmds, $1)=
  8828. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8829. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8830. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8831. +_LT_TAGVAR(no_undefined_flag, $1)=
  8832. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8833. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8834. +
  8835. +# Source file extension for fc test sources.
  8836. +ac_ext=${ac_fc_srcext-f}
  8837. +
  8838. +# Object file extension for compiled fc test sources.
  8839. +objext=o
  8840. +_LT_TAGVAR(objext, $1)=$objext
  8841. +
  8842. +# No sense in running all these tests if we already determined that
  8843. +# the FC compiler isn't working. Some variables (like enable_shared)
  8844. +# are currently assumed to apply to all compilers on this platform,
  8845. +# and will be corrupted by setting them based on a non-working compiler.
  8846. +if test "$_lt_disable_FC" != yes; then
  8847. + # Code to be used in simple compile tests
  8848. + lt_simple_compile_test_code="\
  8849. + subroutine t
  8850. + return
  8851. + end
  8852. +"
  8853. +
  8854. + # Code to be used in simple link tests
  8855. + lt_simple_link_test_code="\
  8856. + program t
  8857. + end
  8858. +"
  8859. +
  8860. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8861. + _LT_TAG_COMPILER
  8862. +
  8863. + # save warnings/boilerplate of simple test code
  8864. + _LT_COMPILER_BOILERPLATE
  8865. + _LT_LINKER_BOILERPLATE
  8866. +
  8867. + # Allow CC to be a program name with arguments.
  8868. + lt_save_CC="$CC"
  8869. + lt_save_GCC=$GCC
  8870. + CC=${FC-"f95"}
  8871. + compiler=$CC
  8872. + GCC=$ac_cv_fc_compiler_gnu
  8873. +
  8874. + _LT_TAGVAR(compiler, $1)=$CC
  8875. + _LT_CC_BASENAME([$compiler])
  8876. +
  8877. + if test -n "$compiler"; then
  8878. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8879. + AC_MSG_RESULT([$can_build_shared])
  8880. +
  8881. + AC_MSG_CHECKING([whether to build shared libraries])
  8882. + test "$can_build_shared" = "no" && enable_shared=no
  8883. +
  8884. + # On AIX, shared libraries and static libraries use the same namespace, and
  8885. + # are all built from PIC.
  8886. + case $host_os in
  8887. + aix3*)
  8888. + test "$enable_shared" = yes && enable_static=no
  8889. + if test -n "$RANLIB"; then
  8890. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8891. + postinstall_cmds='$RANLIB $lib'
  8892. + fi
  8893. + ;;
  8894. + aix[[4-9]]*)
  8895. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8896. + test "$enable_shared" = yes && enable_static=no
  8897. + fi
  8898. + ;;
  8899. + esac
  8900. + AC_MSG_RESULT([$enable_shared])
  8901. +
  8902. + AC_MSG_CHECKING([whether to build static libraries])
  8903. + # Make sure either enable_shared or enable_static is yes.
  8904. + test "$enable_shared" = yes || enable_static=yes
  8905. + AC_MSG_RESULT([$enable_static])
  8906. +
  8907. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8908. + _LT_TAGVAR(LD, $1)="$LD"
  8909. +
  8910. + ## CAVEAT EMPTOR:
  8911. + ## There is no encapsulation within the following macros, do not change
  8912. + ## the running order or otherwise move them around unless you know exactly
  8913. + ## what you are doing...
  8914. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8915. + _LT_COMPILER_PIC($1)
  8916. + _LT_COMPILER_C_O($1)
  8917. + _LT_COMPILER_FILE_LOCKS($1)
  8918. + _LT_LINKER_SHLIBS($1)
  8919. + _LT_SYS_DYNAMIC_LINKER($1)
  8920. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8921. +
  8922. + _LT_CONFIG($1)
  8923. + fi # test -n "$compiler"
  8924. +
  8925. + GCC=$lt_save_GCC
  8926. + CC="$lt_save_CC"
  8927. +fi # test "$_lt_disable_FC" != yes
  8928. +
  8929. +AC_LANG_POP
  8930. +])# _LT_LANG_FC_CONFIG
  8931. +
  8932. +
  8933. +# _LT_LANG_GCJ_CONFIG([TAG])
  8934. +# --------------------------
  8935. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  8936. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  8937. +# to write the compiler configuration to `libtool'.
  8938. +m4_defun([_LT_LANG_GCJ_CONFIG],
  8939. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  8940. +AC_LANG_SAVE
  8941. +
  8942. +# Source file extension for Java test sources.
  8943. +ac_ext=java
  8944. +
  8945. +# Object file extension for compiled Java test sources.
  8946. +objext=o
  8947. +_LT_TAGVAR(objext, $1)=$objext
  8948. +
  8949. +# Code to be used in simple compile tests
  8950. +lt_simple_compile_test_code="class foo {}"
  8951. +
  8952. +# Code to be used in simple link tests
  8953. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8954. +
  8955. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8956. +_LT_TAG_COMPILER
  8957. +
  8958. +# save warnings/boilerplate of simple test code
  8959. +_LT_COMPILER_BOILERPLATE
  8960. +_LT_LINKER_BOILERPLATE
  8961. +
  8962. +# Allow CC to be a program name with arguments.
  8963. +lt_save_CC="$CC"
  8964. +lt_save_GCC=$GCC
  8965. +GCC=yes
  8966. +CC=${GCJ-"gcj"}
  8967. +compiler=$CC
  8968. +_LT_TAGVAR(compiler, $1)=$CC
  8969. +_LT_TAGVAR(LD, $1)="$LD"
  8970. +_LT_CC_BASENAME([$compiler])
  8971. +
  8972. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  8973. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8974. +
  8975. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8976. +
  8977. +if test -n "$compiler"; then
  8978. + _LT_COMPILER_NO_RTTI($1)
  8979. + _LT_COMPILER_PIC($1)
  8980. + _LT_COMPILER_C_O($1)
  8981. + _LT_COMPILER_FILE_LOCKS($1)
  8982. + _LT_LINKER_SHLIBS($1)
  8983. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8984. +
  8985. + _LT_CONFIG($1)
  8986. +fi
  8987. - case $host_os in
  8988. - aix*)
  8989. - # All AIX code is PIC.
  8990. - if test "$host_cpu" = ia64; then
  8991. - # AIX 5 now supports IA64 processor
  8992. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8993. - fi
  8994. - ;;
  8995. +AC_LANG_RESTORE
  8996. - amigaos*)
  8997. - # FIXME: we need at least 68020 code to build shared libraries, but
  8998. - # adding the `-m68020' flag to GCC prevents building anything better,
  8999. - # like `-m68040'.
  9000. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9001. - ;;
  9002. +GCC=$lt_save_GCC
  9003. +CC="$lt_save_CC"
  9004. +])# _LT_LANG_GCJ_CONFIG
  9005. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9006. - # PIC is the default for these OSes.
  9007. - ;;
  9008. - mingw* | cygwin* | pw32* | os2*)
  9009. - # This hack is so that the source file can tell whether it is being
  9010. - # built for inclusion in a dll (and should export symbols for example).
  9011. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9012. - # (--disable-auto-import) libraries
  9013. - m4_if([$1], [GCJ], [],
  9014. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9015. - ;;
  9016. +# _LT_LANG_RC_CONFIG([TAG])
  9017. +# -------------------------
  9018. +# Ensure that the configuration variables for the Windows resource compiler
  9019. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9020. +# to write the compiler configuration to `libtool'.
  9021. +m4_defun([_LT_LANG_RC_CONFIG],
  9022. +[AC_REQUIRE([LT_PROG_RC])dnl
  9023. +AC_LANG_SAVE
  9024. - darwin* | rhapsody*)
  9025. - # PIC is the default on this platform
  9026. - # Common symbols not allowed in MH_DYLIB files
  9027. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9028. - ;;
  9029. +# Source file extension for RC test sources.
  9030. +ac_ext=rc
  9031. - interix[[3-9]]*)
  9032. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9033. - # Instead, we relocate shared libraries at runtime.
  9034. - ;;
  9035. +# Object file extension for compiled RC test sources.
  9036. +objext=o
  9037. +_LT_TAGVAR(objext, $1)=$objext
  9038. - msdosdjgpp*)
  9039. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  9040. - # on systems that don't support them.
  9041. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9042. - enable_shared=no
  9043. - ;;
  9044. +# Code to be used in simple compile tests
  9045. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9046. - sysv4*MP*)
  9047. - if test -d /usr/nec; then
  9048. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9049. - fi
  9050. - ;;
  9051. +# Code to be used in simple link tests
  9052. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9053. - hpux*)
  9054. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9055. - # not for PA HP-UX.
  9056. - case $host_cpu in
  9057. - hppa*64*|ia64*)
  9058. - # +Z the default
  9059. - ;;
  9060. - *)
  9061. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9062. - ;;
  9063. - esac
  9064. - ;;
  9065. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9066. +_LT_TAG_COMPILER
  9067. - *)
  9068. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9069. - ;;
  9070. - esac
  9071. - else
  9072. - # PORTME Check for flag to pass linker flags through the system compiler.
  9073. - case $host_os in
  9074. - aix*)
  9075. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9076. - if test "$host_cpu" = ia64; then
  9077. - # AIX 5 now supports IA64 processor
  9078. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9079. - else
  9080. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9081. - fi
  9082. - ;;
  9083. - darwin*)
  9084. - # PIC is the default on this platform
  9085. - # Common symbols not allowed in MH_DYLIB files
  9086. - case $cc_basename in
  9087. - xlc*)
  9088. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9089. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9090. - ;;
  9091. - esac
  9092. - ;;
  9093. +# save warnings/boilerplate of simple test code
  9094. +_LT_COMPILER_BOILERPLATE
  9095. +_LT_LINKER_BOILERPLATE
  9096. - mingw* | cygwin* | pw32* | os2*)
  9097. - # This hack is so that the source file can tell whether it is being
  9098. - # built for inclusion in a dll (and should export symbols for example).
  9099. - m4_if([$1], [GCJ], [],
  9100. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  9101. - ;;
  9102. +# Allow CC to be a program name with arguments.
  9103. +lt_save_CC="$CC"
  9104. +lt_save_GCC=$GCC
  9105. +GCC=
  9106. +CC=${RC-"windres"}
  9107. +compiler=$CC
  9108. +_LT_TAGVAR(compiler, $1)=$CC
  9109. +_LT_CC_BASENAME([$compiler])
  9110. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9111. - hpux9* | hpux10* | hpux11*)
  9112. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9113. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9114. - # not for PA HP-UX.
  9115. - case $host_cpu in
  9116. - hppa*64*|ia64*)
  9117. - # +Z the default
  9118. - ;;
  9119. - *)
  9120. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9121. - ;;
  9122. - esac
  9123. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9124. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9125. - ;;
  9126. +if test -n "$compiler"; then
  9127. + :
  9128. + _LT_CONFIG($1)
  9129. +fi
  9130. - irix5* | irix6* | nonstopux*)
  9131. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9132. - # PIC (with -KPIC) is the default.
  9133. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9134. - ;;
  9135. +GCC=$lt_save_GCC
  9136. +AC_LANG_RESTORE
  9137. +CC="$lt_save_CC"
  9138. +])# _LT_LANG_RC_CONFIG
  9139. - newsos6)
  9140. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9141. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9142. - ;;
  9143. - linux* | k*bsd*-gnu)
  9144. - case $cc_basename in
  9145. - icc* | ecc*)
  9146. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9147. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9148. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9149. - ;;
  9150. - pgcc* | pgf77* | pgf90* | pgf95*)
  9151. - # Portland Group compilers (*not* the Pentium gcc compiler,
  9152. - # which looks to be a dead project)
  9153. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9154. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9155. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9156. - ;;
  9157. - ccc*)
  9158. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9159. - # All Alpha code is PIC.
  9160. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9161. - ;;
  9162. - *)
  9163. - case `$CC -V 2>&1 | sed 5q` in
  9164. - *Sun\ C*)
  9165. - # Sun C 5.9
  9166. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9167. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9168. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9169. - ;;
  9170. - *Sun\ F*)
  9171. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9172. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9173. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9174. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  9175. - ;;
  9176. - esac
  9177. - ;;
  9178. - esac
  9179. - ;;
  9180. +# LT_PROG_GCJ
  9181. +# -----------
  9182. +AC_DEFUN([LT_PROG_GCJ],
  9183. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9184. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9185. + [AC_CHECK_TOOL(GCJ, gcj,)
  9186. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9187. + AC_SUBST(GCJFLAGS)])])[]dnl
  9188. +])
  9189. - osf3* | osf4* | osf5*)
  9190. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9191. - # All OSF/1 code is PIC.
  9192. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9193. - ;;
  9194. +# Old name:
  9195. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9196. +dnl aclocal-1.4 backwards compatibility:
  9197. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9198. - rdos*)
  9199. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9200. - ;;
  9201. - solaris*)
  9202. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9203. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9204. - case $cc_basename in
  9205. - f77* | f90* | f95*)
  9206. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  9207. - *)
  9208. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  9209. - esac
  9210. - ;;
  9211. +# LT_PROG_RC
  9212. +# ----------
  9213. +AC_DEFUN([LT_PROG_RC],
  9214. +[AC_CHECK_TOOL(RC, windres,)
  9215. +])
  9216. - sunos4*)
  9217. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9218. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9219. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9220. - ;;
  9221. +# Old name:
  9222. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9223. +dnl aclocal-1.4 backwards compatibility:
  9224. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9225. - sysv4 | sysv4.2uw2* | sysv4.3*)
  9226. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9227. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9228. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9229. - ;;
  9230. - sysv4*MP*)
  9231. - if test -d /usr/nec ;then
  9232. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9233. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9234. +# _LT_DECL_EGREP
  9235. +# --------------
  9236. +# If we don't have a new enough Autoconf to choose the best grep
  9237. +# available, choose the one first in the user's PATH.
  9238. +m4_defun([_LT_DECL_EGREP],
  9239. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9240. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9241. +test -z "$GREP" && GREP=grep
  9242. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9243. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9244. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9245. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9246. +AC_SUBST([GREP])
  9247. +])
  9248. +
  9249. +
  9250. +# _LT_DECL_OBJDUMP
  9251. +# --------------
  9252. +# If we don't have a new enough Autoconf to choose the best objdump
  9253. +# available, choose the one first in the user's PATH.
  9254. +m4_defun([_LT_DECL_OBJDUMP],
  9255. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9256. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9257. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9258. +AC_SUBST([OBJDUMP])
  9259. +])
  9260. +
  9261. +
  9262. +# _LT_DECL_SED
  9263. +# ------------
  9264. +# Check for a fully-functional sed program, that truncates
  9265. +# as few characters as possible. Prefer GNU sed if found.
  9266. +m4_defun([_LT_DECL_SED],
  9267. +[AC_PROG_SED
  9268. +test -z "$SED" && SED=sed
  9269. +Xsed="$SED -e 1s/^X//"
  9270. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9271. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9272. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9273. +])# _LT_DECL_SED
  9274. +
  9275. +m4_ifndef([AC_PROG_SED], [
  9276. +# NOTE: This macro has been submitted for inclusion into #
  9277. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9278. +# a released version of Autoconf we should remove this #
  9279. +# macro and use it instead. #
  9280. +
  9281. +m4_defun([AC_PROG_SED],
  9282. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9283. +AC_CACHE_VAL(lt_cv_path_SED,
  9284. +[# Loop through the user's path and test for sed and gsed.
  9285. +# Then use that list of sed's as ones to test for truncation.
  9286. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9287. +for as_dir in $PATH
  9288. +do
  9289. + IFS=$as_save_IFS
  9290. + test -z "$as_dir" && as_dir=.
  9291. + for lt_ac_prog in sed gsed; do
  9292. + for ac_exec_ext in '' $ac_executable_extensions; do
  9293. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9294. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9295. fi
  9296. - ;;
  9297. + done
  9298. + done
  9299. +done
  9300. +IFS=$as_save_IFS
  9301. +lt_ac_max=0
  9302. +lt_ac_count=0
  9303. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9304. +# along with /bin/sed that truncates output.
  9305. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9306. + test ! -f $lt_ac_sed && continue
  9307. + cat /dev/null > conftest.in
  9308. + lt_ac_count=0
  9309. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9310. + # Check for GNU sed and select it if it is found.
  9311. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9312. + lt_cv_path_SED=$lt_ac_sed
  9313. + break
  9314. + fi
  9315. + while true; do
  9316. + cat conftest.in conftest.in >conftest.tmp
  9317. + mv conftest.tmp conftest.in
  9318. + cp conftest.in conftest.nl
  9319. + echo >>conftest.nl
  9320. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9321. + cmp -s conftest.out conftest.nl || break
  9322. + # 10000 chars as input seems more than enough
  9323. + test $lt_ac_count -gt 10 && break
  9324. + lt_ac_count=`expr $lt_ac_count + 1`
  9325. + if test $lt_ac_count -gt $lt_ac_max; then
  9326. + lt_ac_max=$lt_ac_count
  9327. + lt_cv_path_SED=$lt_ac_sed
  9328. + fi
  9329. + done
  9330. +done
  9331. +])
  9332. +SED=$lt_cv_path_SED
  9333. +AC_SUBST([SED])
  9334. +AC_MSG_RESULT([$SED])
  9335. +])#AC_PROG_SED
  9336. +])#m4_ifndef
  9337. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9338. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9339. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9340. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9341. - ;;
  9342. +# Old name:
  9343. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9344. +dnl aclocal-1.4 backwards compatibility:
  9345. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9346. - unicos*)
  9347. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9348. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9349. - ;;
  9350. - uts4*)
  9351. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9352. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9353. - ;;
  9354. +# _LT_CHECK_SHELL_FEATURES
  9355. +# ------------------------
  9356. +# Find out whether the shell is Bourne or XSI compatible,
  9357. +# or has some other useful features.
  9358. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9359. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9360. +# Try some XSI features
  9361. +xsi_shell=no
  9362. +( _lt_dummy="a/b/c"
  9363. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9364. + = c,a/b,, \
  9365. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9366. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9367. + && xsi_shell=yes
  9368. +AC_MSG_RESULT([$xsi_shell])
  9369. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9370. +
  9371. +AC_MSG_CHECKING([whether the shell understands "+="])
  9372. +lt_shell_append=no
  9373. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9374. + >/dev/null 2>&1 \
  9375. + && lt_shell_append=yes
  9376. +AC_MSG_RESULT([$lt_shell_append])
  9377. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9378. +
  9379. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9380. + lt_unset=unset
  9381. +else
  9382. + lt_unset=false
  9383. +fi
  9384. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9385. +
  9386. +# test EBCDIC or ASCII
  9387. +case `echo X|tr X '\101'` in
  9388. + A) # ASCII based system
  9389. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9390. + lt_SP2NL='tr \040 \012'
  9391. + lt_NL2SP='tr \015\012 \040\040'
  9392. + ;;
  9393. + *) # EBCDIC based system
  9394. + lt_SP2NL='tr \100 \n'
  9395. + lt_NL2SP='tr \r\n \100\100'
  9396. + ;;
  9397. +esac
  9398. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9399. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9400. +])# _LT_CHECK_SHELL_FEATURES
  9401. +
  9402. +
  9403. +# _LT_PROG_XSI_SHELLFNS
  9404. +# ---------------------
  9405. +# Bourne and XSI compatible variants of some useful shell functions.
  9406. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9407. +[case $xsi_shell in
  9408. + yes)
  9409. + cat << \_LT_EOF >> "$cfgfile"
  9410. +
  9411. +# func_dirname file append nondir_replacement
  9412. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9413. +# otherwise set result to NONDIR_REPLACEMENT.
  9414. +func_dirname ()
  9415. +{
  9416. + case ${1} in
  9417. + */*) func_dirname_result="${1%/*}${2}" ;;
  9418. + * ) func_dirname_result="${3}" ;;
  9419. + esac
  9420. +}
  9421. +
  9422. +# func_basename file
  9423. +func_basename ()
  9424. +{
  9425. + func_basename_result="${1##*/}"
  9426. +}
  9427. +
  9428. +# func_dirname_and_basename file append nondir_replacement
  9429. +# perform func_basename and func_dirname in a single function
  9430. +# call:
  9431. +# dirname: Compute the dirname of FILE. If nonempty,
  9432. +# add APPEND to the result, otherwise set result
  9433. +# to NONDIR_REPLACEMENT.
  9434. +# value returned in "$func_dirname_result"
  9435. +# basename: Compute filename of FILE.
  9436. +# value retuned in "$func_basename_result"
  9437. +# Implementation must be kept synchronized with func_dirname
  9438. +# and func_basename. For efficiency, we do not delegate to
  9439. +# those functions but instead duplicate the functionality here.
  9440. +func_dirname_and_basename ()
  9441. +{
  9442. + case ${1} in
  9443. + */*) func_dirname_result="${1%/*}${2}" ;;
  9444. + * ) func_dirname_result="${3}" ;;
  9445. + esac
  9446. + func_basename_result="${1##*/}"
  9447. +}
  9448. +
  9449. +# func_stripname prefix suffix name
  9450. +# strip PREFIX and SUFFIX off of NAME.
  9451. +# PREFIX and SUFFIX must not contain globbing or regex special
  9452. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9453. +# dot (in which case that matches only a dot).
  9454. +func_stripname ()
  9455. +{
  9456. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9457. + # positional parameters, so assign one to ordinary parameter first.
  9458. + func_stripname_result=${3}
  9459. + func_stripname_result=${func_stripname_result#"${1}"}
  9460. + func_stripname_result=${func_stripname_result%"${2}"}
  9461. +}
  9462. +
  9463. +# func_opt_split
  9464. +func_opt_split ()
  9465. +{
  9466. + func_opt_split_opt=${1%%=*}
  9467. + func_opt_split_arg=${1#*=}
  9468. +}
  9469. +
  9470. +# func_lo2o object
  9471. +func_lo2o ()
  9472. +{
  9473. + case ${1} in
  9474. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9475. + *) func_lo2o_result=${1} ;;
  9476. + esac
  9477. +}
  9478. +
  9479. +# func_xform libobj-or-source
  9480. +func_xform ()
  9481. +{
  9482. + func_xform_result=${1%.*}.lo
  9483. +}
  9484. +
  9485. +# func_arith arithmetic-term...
  9486. +func_arith ()
  9487. +{
  9488. + func_arith_result=$(( $[*] ))
  9489. +}
  9490. - *)
  9491. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9492. - ;;
  9493. - esac
  9494. - fi
  9495. -])
  9496. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9497. +# func_len string
  9498. +# STRING may not start with a hyphen.
  9499. +func_len ()
  9500. +{
  9501. + func_len_result=${#1}
  9502. +}
  9503. -#
  9504. -# Check to make sure the PIC flag actually works.
  9505. -#
  9506. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9507. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9508. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  9509. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9510. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9511. - "" | " "*) ;;
  9512. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9513. - esac],
  9514. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9515. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9516. -fi
  9517. -case $host_os in
  9518. - # For platforms which do not support PIC, -DPIC is meaningless:
  9519. - *djgpp*)
  9520. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9521. - ;;
  9522. - *)
  9523. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9524. +_LT_EOF
  9525. ;;
  9526. -esac
  9527. + *) # Bourne compatible functions.
  9528. + cat << \_LT_EOF >> "$cfgfile"
  9529. -#
  9530. -# Check to make sure the static flag actually works.
  9531. -#
  9532. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  9533. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  9534. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  9535. - $lt_tmp_static_flag,
  9536. - [],
  9537. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  9538. -])
  9539. +# func_dirname file append nondir_replacement
  9540. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9541. +# otherwise set result to NONDIR_REPLACEMENT.
  9542. +func_dirname ()
  9543. +{
  9544. + # Extract subdirectory from the argument.
  9545. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9546. + if test "X$func_dirname_result" = "X${1}"; then
  9547. + func_dirname_result="${3}"
  9548. + else
  9549. + func_dirname_result="$func_dirname_result${2}"
  9550. + fi
  9551. +}
  9552. +# func_basename file
  9553. +func_basename ()
  9554. +{
  9555. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9556. +}
  9557. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9558. -# ------------------------------------
  9559. -# See if the linker supports building shared libraries.
  9560. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9561. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  9562. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9563. -ifelse([$1],[CXX],[
  9564. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9565. - case $host_os in
  9566. - aix[[4-9]]*)
  9567. - # If we're using GNU nm, then we don't want the "-C" option.
  9568. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9569. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9570. - _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'
  9571. - else
  9572. - _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'
  9573. - fi
  9574. - ;;
  9575. - pw32*)
  9576. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9577. - ;;
  9578. - cygwin* | mingw*)
  9579. - _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'
  9580. - ;;
  9581. - *)
  9582. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9583. - ;;
  9584. - esac
  9585. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9586. -],[
  9587. - runpath_var=
  9588. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9589. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9590. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9591. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9592. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9593. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9594. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9595. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9596. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9597. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9598. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9599. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9600. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9601. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9602. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9603. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9604. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9605. - _LT_AC_TAGVAR(module_cmds, $1)=
  9606. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9607. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9608. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9609. - # include_expsyms should be a list of space-separated symbols to be *always*
  9610. - # included in the symbol list
  9611. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9612. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9613. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9614. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9615. - # as well as any symbol that contains `d'.
  9616. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  9617. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9618. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9619. - # the symbol is explicitly referenced. Since portable code cannot
  9620. - # rely on this symbol name, it's probably fine to never include it in
  9621. - # preloaded symbol tables.
  9622. - # Exclude shared library initialization/finalization symbols.
  9623. -dnl Note also adjust exclude_expsyms for C++ above.
  9624. - extract_expsyms_cmds=
  9625. - # Just being paranoid about ensuring that cc_basename is set.
  9626. - _LT_CC_BASENAME([$compiler])
  9627. - case $host_os in
  9628. - cygwin* | mingw* | pw32*)
  9629. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9630. - # When not using gcc, we currently assume that we are using
  9631. - # Microsoft Visual C++.
  9632. - if test "$GCC" != yes; then
  9633. - with_gnu_ld=no
  9634. - fi
  9635. - ;;
  9636. - interix*)
  9637. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  9638. - with_gnu_ld=yes
  9639. - ;;
  9640. - openbsd*)
  9641. - with_gnu_ld=no
  9642. - ;;
  9643. +dnl func_dirname_and_basename
  9644. +dnl A portable version of this function is already defined in general.m4sh
  9645. +dnl so there is no need for it here.
  9646. +
  9647. +# func_stripname prefix suffix name
  9648. +# strip PREFIX and SUFFIX off of NAME.
  9649. +# PREFIX and SUFFIX must not contain globbing or regex special
  9650. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9651. +# dot (in which case that matches only a dot).
  9652. +# func_strip_suffix prefix name
  9653. +func_stripname ()
  9654. +{
  9655. + case ${2} in
  9656. + .*) func_stripname_result=`$ECHO "X${3}" \
  9657. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9658. + *) func_stripname_result=`$ECHO "X${3}" \
  9659. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9660. esac
  9661. +}
  9662. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9663. - if test "$with_gnu_ld" = yes; then
  9664. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9665. - wlarc='${wl}'
  9666. +# sed scripts:
  9667. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9668. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9669. - # Set some defaults for GNU ld with shared library support. These
  9670. - # are reset later if shared libraries are not supported. Putting them
  9671. - # here allows them to be overridden if necessary.
  9672. - runpath_var=LD_RUN_PATH
  9673. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9674. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9675. - # ancient GNU ld didn't support --whole-archive et. al.
  9676. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9677. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9678. - else
  9679. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9680. - fi
  9681. - supports_anon_versioning=no
  9682. - case `$LD -v 2>/dev/null` in
  9683. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  9684. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9685. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9686. - *\ 2.11.*) ;; # other 2.11 versions
  9687. - *) supports_anon_versioning=yes ;;
  9688. - esac
  9689. +# func_opt_split
  9690. +func_opt_split ()
  9691. +{
  9692. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9693. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9694. +}
  9695. - # See if GNU ld supports shared libraries.
  9696. - case $host_os in
  9697. - aix[[3-9]]*)
  9698. - # On AIX/PPC, the GNU linker is very broken
  9699. - if test "$host_cpu" != ia64; then
  9700. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9701. - cat <<EOF 1>&2
  9702. +# func_lo2o object
  9703. +func_lo2o ()
  9704. +{
  9705. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9706. +}
  9707. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9708. -*** to be unable to reliably create shared libraries on AIX.
  9709. -*** Therefore, libtool is disabling shared libraries support. If you
  9710. -*** really care for shared libraries, you may want to modify your PATH
  9711. -*** so that a non-GNU linker is found, and then restart.
  9712. +# func_xform libobj-or-source
  9713. +func_xform ()
  9714. +{
  9715. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9716. +}
  9717. -EOF
  9718. - fi
  9719. - ;;
  9720. +# func_arith arithmetic-term...
  9721. +func_arith ()
  9722. +{
  9723. + func_arith_result=`expr "$[@]"`
  9724. +}
  9725. - amigaos*)
  9726. - _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)'
  9727. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9728. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9729. -
  9730. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9731. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9732. - # to version 4, is to share data among multiple programs linked
  9733. - # with the same dynamic library. Since this doesn't match the
  9734. - # behavior of shared libraries on other platforms, we can't use
  9735. - # them.
  9736. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9737. - ;;
  9738. +# func_len string
  9739. +# STRING may not start with a hyphen.
  9740. +func_len ()
  9741. +{
  9742. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9743. +}
  9744. - beos*)
  9745. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9746. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9747. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9748. - # support --undefined. This deserves some investigation. FIXME
  9749. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9750. - else
  9751. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9752. - fi
  9753. - ;;
  9754. +_LT_EOF
  9755. +esac
  9756. - cygwin* | mingw* | pw32*)
  9757. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9758. - # as there is no search path for DLLs.
  9759. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9760. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9761. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9762. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9763. - _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'
  9764. +case $lt_shell_append in
  9765. + yes)
  9766. + cat << \_LT_EOF >> "$cfgfile"
  9767. +
  9768. +# func_append var value
  9769. +# Append VALUE to the end of shell variable VAR.
  9770. +func_append ()
  9771. +{
  9772. + eval "$[1]+=\$[2]"
  9773. +}
  9774. +_LT_EOF
  9775. + ;;
  9776. + *)
  9777. + cat << \_LT_EOF >> "$cfgfile"
  9778. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9779. - _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'
  9780. - # If the export-symbols file already is a .def file (1st line
  9781. - # is EXPORTS), use it as is; otherwise, prepend...
  9782. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9783. - cp $export_symbols $output_objdir/$soname.def;
  9784. - else
  9785. - echo EXPORTS > $output_objdir/$soname.def;
  9786. - cat $export_symbols >> $output_objdir/$soname.def;
  9787. - fi~
  9788. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9789. - else
  9790. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9791. - fi
  9792. - ;;
  9793. +# func_append var value
  9794. +# Append VALUE to the end of shell variable VAR.
  9795. +func_append ()
  9796. +{
  9797. + eval "$[1]=\$$[1]\$[2]"
  9798. +}
  9799. - interix[[3-9]]*)
  9800. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9801. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9802. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9803. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9804. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9805. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  9806. - # default) and relocated if they conflict, which is a slow very memory
  9807. - # consuming and fragmenting process. To avoid this, we pick a random,
  9808. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9809. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9810. - _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'
  9811. - _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'
  9812. - ;;
  9813. +_LT_EOF
  9814. + ;;
  9815. + esac
  9816. +])
  9817. - gnu* | linux* | k*bsd*-gnu)
  9818. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9819. - tmp_addflag=
  9820. - case $cc_basename,$host_cpu in
  9821. - pgcc*) # Portland Group C compiler
  9822. - _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'
  9823. - tmp_addflag=' $pic_flag'
  9824. - ;;
  9825. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9826. - _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'
  9827. - tmp_addflag=' $pic_flag -Mnomain' ;;
  9828. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9829. - tmp_addflag=' -i_dynamic' ;;
  9830. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9831. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  9832. - ifc* | ifort*) # Intel Fortran compiler
  9833. - tmp_addflag=' -nofor_main' ;;
  9834. - esac
  9835. - case `$CC -V 2>&1 | sed 5q` in
  9836. - *Sun\ C*) # Sun C 5.9
  9837. - _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'
  9838. - tmp_sharedflag='-G' ;;
  9839. - *Sun\ F*) # Sun Fortran 8.3
  9840. - tmp_sharedflag='-G' ;;
  9841. - *)
  9842. - tmp_sharedflag='-shared' ;;
  9843. - esac
  9844. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9845. +# Helper functions for option handling. -*- Autoconf -*-
  9846. +#
  9847. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9848. +# Written by Gary V. Vaughan, 2004
  9849. +#
  9850. +# This file is free software; the Free Software Foundation gives
  9851. +# unlimited permission to copy and/or distribute it, with or without
  9852. +# modifications, as long as this notice is preserved.
  9853. - if test $supports_anon_versioning = yes; then
  9854. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  9855. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9856. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  9857. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9858. - fi
  9859. - else
  9860. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9861. - fi
  9862. - ;;
  9863. +# serial 6 ltoptions.m4
  9864. - netbsd*)
  9865. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9866. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9867. - wlarc=
  9868. - else
  9869. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9870. - _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'
  9871. - fi
  9872. - ;;
  9873. +# This is to help aclocal find these macros, as it can't see m4_define.
  9874. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9875. - solaris*)
  9876. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9877. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9878. - cat <<EOF 1>&2
  9879. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9880. -*** create shared libraries on Solaris systems. Therefore, libtool
  9881. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9882. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9883. -*** your PATH or compiler configuration so that the native linker is
  9884. -*** used, and then restart.
  9885. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9886. +# ------------------------------------------
  9887. +m4_define([_LT_MANGLE_OPTION],
  9888. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9889. -EOF
  9890. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9891. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9892. - _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'
  9893. - else
  9894. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9895. - fi
  9896. - ;;
  9897. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9898. - case `$LD -v 2>&1` in
  9899. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  9900. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9901. - cat <<_LT_EOF 1>&2
  9902. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9903. +# ---------------------------------------
  9904. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9905. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9906. +# saved as a flag.
  9907. +m4_define([_LT_SET_OPTION],
  9908. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9909. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9910. + _LT_MANGLE_DEFUN([$1], [$2]),
  9911. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9912. +])
  9913. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9914. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  9915. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9916. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9917. -*** your PATH or compiler configuration so that the native linker is
  9918. -*** used, and then restart.
  9919. -_LT_EOF
  9920. - ;;
  9921. - *)
  9922. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9923. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  9924. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  9925. - _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'
  9926. - else
  9927. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9928. - fi
  9929. - ;;
  9930. - esac
  9931. - ;;
  9932. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9933. +# ------------------------------------------------------------
  9934. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9935. +m4_define([_LT_IF_OPTION],
  9936. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9937. - sunos4*)
  9938. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9939. - wlarc=
  9940. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9941. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9942. - ;;
  9943. - *)
  9944. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9945. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9946. - _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'
  9947. - else
  9948. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9949. - fi
  9950. - ;;
  9951. - esac
  9952. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9953. +# -------------------------------------------------------
  9954. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9955. +# are set.
  9956. +m4_define([_LT_UNLESS_OPTIONS],
  9957. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9958. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9959. + [m4_define([$0_found])])])[]dnl
  9960. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9961. +])[]dnl
  9962. +])
  9963. +
  9964. +
  9965. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9966. +# ----------------------------------------
  9967. +# OPTION-LIST is a space-separated list of Libtool options associated
  9968. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  9969. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  9970. +# the unknown option and exit.
  9971. +m4_defun([_LT_SET_OPTIONS],
  9972. +[# Set options
  9973. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9974. + [_LT_SET_OPTION([$1], _LT_Option)])
  9975. +
  9976. +m4_if([$1],[LT_INIT],[
  9977. + dnl
  9978. + dnl Simply set some default values (i.e off) if boolean options were not
  9979. + dnl specified:
  9980. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  9981. + ])
  9982. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  9983. + ])
  9984. + dnl
  9985. + dnl If no reference was made to various pairs of opposing options, then
  9986. + dnl we run the default mode handler for the pair. For example, if neither
  9987. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  9988. + dnl archives by default:
  9989. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  9990. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  9991. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  9992. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  9993. + [_LT_ENABLE_FAST_INSTALL])
  9994. + ])
  9995. +])# _LT_SET_OPTIONS
  9996. +
  9997. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  9998. - runpath_var=
  9999. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10000. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  10001. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  10002. - fi
  10003. - else
  10004. - # PORTME fill in a description of your system's linker (not GNU ld)
  10005. - case $host_os in
  10006. - aix3*)
  10007. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10008. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10009. - _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'
  10010. - # Note: this linker hardcodes the directories in LIBPATH if there
  10011. - # are no directories specified by -L.
  10012. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10013. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10014. - # Neither direct hardcoding nor static linking is supported with a
  10015. - # broken collect2.
  10016. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10017. - fi
  10018. - ;;
  10019. - aix[[4-9]]*)
  10020. - if test "$host_cpu" = ia64; then
  10021. - # On IA64, the linker does run time linking by default, so we don't
  10022. - # have to do anything special.
  10023. - aix_use_runtimelinking=no
  10024. - exp_sym_flag='-Bexport'
  10025. - no_entry_flag=""
  10026. - else
  10027. - # If we're using GNU nm, then we don't want the "-C" option.
  10028. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10029. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10030. - _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'
  10031. - else
  10032. - _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'
  10033. - fi
  10034. - aix_use_runtimelinking=no
  10035. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10036. +# -----------------------------------------
  10037. +m4_define([_LT_MANGLE_DEFUN],
  10038. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10039. - # Test if we are trying to use run time linking or normal
  10040. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10041. - # need to do runtime linking.
  10042. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  10043. - for ld_flag in $LDFLAGS; do
  10044. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10045. - aix_use_runtimelinking=yes
  10046. - break
  10047. - fi
  10048. - done
  10049. - ;;
  10050. - esac
  10051. - exp_sym_flag='-bexport'
  10052. - no_entry_flag='-bnoentry'
  10053. - fi
  10054. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10055. +# -----------------------------------------------
  10056. +m4_define([LT_OPTION_DEFINE],
  10057. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10058. +])# LT_OPTION_DEFINE
  10059. - # When large executables or shared objects are built, AIX ld can
  10060. - # have problems creating the table of contents. If linking a library
  10061. - # or program results in "error TOC overflow" add -mminimal-toc to
  10062. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10063. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10064. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  10065. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10066. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10067. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10068. +# dlopen
  10069. +# ------
  10070. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10071. +])
  10072. - if test "$GCC" = yes; then
  10073. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  10074. - # We only want to do this on AIX 4.2 and lower, the check
  10075. - # below for broken collect2 doesn't work under 4.3+
  10076. - collect2name=`${CC} -print-prog-name=collect2`
  10077. - if test -f "$collect2name" && \
  10078. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10079. - then
  10080. - # We have reworked collect2
  10081. - :
  10082. - else
  10083. - # We have old collect2
  10084. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10085. - # It fails to find uninstalled libraries when the uninstalled
  10086. - # path is not listed in the libpath. Setting hardcode_minus_L
  10087. - # to unsupported forces relinking
  10088. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10089. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10090. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10091. - fi
  10092. - ;;
  10093. - esac
  10094. - shared_flag='-shared'
  10095. - if test "$aix_use_runtimelinking" = yes; then
  10096. - shared_flag="$shared_flag "'${wl}-G'
  10097. - fi
  10098. - else
  10099. - # not using gcc
  10100. - if test "$host_cpu" = ia64; then
  10101. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10102. - # chokes on -Wl,-G. The following line is correct:
  10103. - shared_flag='-G'
  10104. - else
  10105. - if test "$aix_use_runtimelinking" = yes; then
  10106. - shared_flag='${wl}-G'
  10107. - else
  10108. - shared_flag='${wl}-bM:SRE'
  10109. - fi
  10110. - fi
  10111. - fi
  10112. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10113. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10114. +AC_DIAGNOSE([obsolete],
  10115. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10116. +put the `dlopen' option into LT_INIT's first parameter.])
  10117. +])
  10118. - # It seems that -bexpall does not export symbols beginning with
  10119. - # underscore (_), so it is better to generate a list of symbols to export.
  10120. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10121. - if test "$aix_use_runtimelinking" = yes; then
  10122. - # Warning - without using the other runtime loading flags (-brtl),
  10123. - # -berok will link without error, but may produce a broken library.
  10124. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10125. - # Determine the default libpath from the value encoded in an empty executable.
  10126. - _LT_AC_SYS_LIBPATH_AIX
  10127. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10128. - _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"
  10129. - else
  10130. - if test "$host_cpu" = ia64; then
  10131. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10132. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10133. - _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"
  10134. - else
  10135. - # Determine the default libpath from the value encoded in an empty executable.
  10136. - _LT_AC_SYS_LIBPATH_AIX
  10137. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10138. - # Warning - without using the other run time loading flags,
  10139. - # -berok will link without error, but may produce a broken library.
  10140. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10141. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10142. - # Exported symbols can be pulled into shared objects from archives
  10143. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  10144. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10145. - # This is similar to how AIX traditionally builds its shared libraries.
  10146. - _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'
  10147. - fi
  10148. - fi
  10149. - ;;
  10150. +dnl aclocal-1.4 backwards compatibility:
  10151. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10152. - amigaos*)
  10153. - _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)'
  10154. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10155. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10156. - # see comment about different semantics on the GNU ld section
  10157. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10158. - ;;
  10159. - bsdi[[45]]*)
  10160. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10161. - ;;
  10162. +# win32-dll
  10163. +# ---------
  10164. +# Declare package support for building win32 dll's.
  10165. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10166. +[enable_win32_dll=yes
  10167. - cygwin* | mingw* | pw32*)
  10168. - # When not using gcc, we currently assume that we are using
  10169. - # Microsoft Visual C++.
  10170. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10171. - # no search path for DLLs.
  10172. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10173. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10174. - # Tell ltmain to make .lib files, not .a files.
  10175. - libext=lib
  10176. - # Tell ltmain to make .dll files, not .so files.
  10177. - shrext_cmds=".dll"
  10178. - # FIXME: Setting linknames here is a bad hack.
  10179. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10180. - # The linker will automatically build a .lib file if we build a DLL.
  10181. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10182. - # FIXME: Should let the user specify the lib program.
  10183. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10184. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  10185. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10186. - ;;
  10187. +case $host in
  10188. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10189. + AC_CHECK_TOOL(AS, as, false)
  10190. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10191. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10192. + ;;
  10193. +esac
  10194. - darwin* | rhapsody*)
  10195. - case $host_os in
  10196. - rhapsody* | darwin1.[[012]])
  10197. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  10198. - ;;
  10199. - *) # Darwin 1.3 on
  10200. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10201. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10202. - else
  10203. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10204. - 10.[[012]])
  10205. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10206. - ;;
  10207. - 10.*)
  10208. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  10209. - ;;
  10210. - esac
  10211. - fi
  10212. - ;;
  10213. - esac
  10214. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10215. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10216. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10217. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10218. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  10219. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10220. - if test "$GCC" = yes ; then
  10221. - output_verbose_link_cmd='echo'
  10222. - _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}"
  10223. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10224. - _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}"
  10225. - _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}"
  10226. - else
  10227. - case $cc_basename in
  10228. - xlc*)
  10229. - output_verbose_link_cmd='echo'
  10230. - _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'
  10231. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10232. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10233. - _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}'
  10234. - _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}'
  10235. - ;;
  10236. - *)
  10237. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10238. - ;;
  10239. - esac
  10240. - fi
  10241. - ;;
  10242. +test -z "$AS" && AS=as
  10243. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10244. - dgux*)
  10245. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10247. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10248. - ;;
  10249. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10250. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10251. - freebsd1*)
  10252. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10253. - ;;
  10254. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10255. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10256. +])# win32-dll
  10257. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10258. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10259. - # does not break anything, and helps significantly (at the cost of a little
  10260. - # extra space).
  10261. - freebsd2.2*)
  10262. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10263. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10264. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10265. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10266. - ;;
  10267. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10268. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10269. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10270. +AC_DIAGNOSE([obsolete],
  10271. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10272. +put the `win32-dll' option into LT_INIT's first parameter.])
  10273. +])
  10274. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10275. - freebsd2*)
  10276. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10277. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10278. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10279. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10280. - ;;
  10281. +dnl aclocal-1.4 backwards compatibility:
  10282. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10283. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10284. - freebsd* | dragonfly*)
  10285. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10286. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10287. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10288. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10289. +
  10290. +# _LT_ENABLE_SHARED([DEFAULT])
  10291. +# ----------------------------
  10292. +# implement the --enable-shared flag, and supports the `shared' and
  10293. +# `disable-shared' LT_INIT options.
  10294. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10295. +m4_define([_LT_ENABLE_SHARED],
  10296. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10297. +AC_ARG_ENABLE([shared],
  10298. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10299. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10300. + [p=${PACKAGE-default}
  10301. + case $enableval in
  10302. + yes) enable_shared=yes ;;
  10303. + no) enable_shared=no ;;
  10304. + *)
  10305. + enable_shared=no
  10306. + # Look at the argument we got. We use all the common list separators.
  10307. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10308. + for pkg in $enableval; do
  10309. + IFS="$lt_save_ifs"
  10310. + if test "X$pkg" = "X$p"; then
  10311. + enable_shared=yes
  10312. + fi
  10313. + done
  10314. + IFS="$lt_save_ifs"
  10315. ;;
  10316. + esac],
  10317. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10318. - hpux9*)
  10319. - if test "$GCC" = yes; then
  10320. - _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'
  10321. - else
  10322. - _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'
  10323. - fi
  10324. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10325. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10326. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10327. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10328. + [Whether or not to build shared libraries])
  10329. +])# _LT_ENABLE_SHARED
  10330. - # hardcode_minus_L: Not really in the search PATH,
  10331. - # but as the default location of the library.
  10332. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10333. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10334. - ;;
  10335. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10336. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10337. - hpux10*)
  10338. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10339. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10340. - else
  10341. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10342. - fi
  10343. - if test "$with_gnu_ld" = no; then
  10344. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10345. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10346. +# Old names:
  10347. +AC_DEFUN([AC_ENABLE_SHARED],
  10348. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10349. +])
  10350. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10351. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10352. +AC_DEFUN([AC_DISABLE_SHARED],
  10353. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10354. +])
  10355. - # hardcode_minus_L: Not really in the search PATH,
  10356. - # but as the default location of the library.
  10357. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10358. - fi
  10359. - ;;
  10360. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10361. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10362. - hpux11*)
  10363. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10364. - case $host_cpu in
  10365. - hppa*64*)
  10366. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10367. - ;;
  10368. - ia64*)
  10369. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10370. - ;;
  10371. - *)
  10372. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10373. - ;;
  10374. - esac
  10375. - else
  10376. - case $host_cpu in
  10377. - hppa*64*)
  10378. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10379. - ;;
  10380. - ia64*)
  10381. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10382. - ;;
  10383. - *)
  10384. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10385. - ;;
  10386. - esac
  10387. - fi
  10388. - if test "$with_gnu_ld" = no; then
  10389. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10390. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10391. +dnl aclocal-1.4 backwards compatibility:
  10392. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10393. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10394. - case $host_cpu in
  10395. - hppa*64*|ia64*)
  10396. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10397. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10398. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10399. - ;;
  10400. - *)
  10401. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10402. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10403. - # hardcode_minus_L: Not really in the search PATH,
  10404. - # but as the default location of the library.
  10405. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10406. - ;;
  10407. - esac
  10408. - fi
  10409. - ;;
  10410. - irix5* | irix6* | nonstopux*)
  10411. - if test "$GCC" = yes; then
  10412. - _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'
  10413. - else
  10414. - _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'
  10415. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10416. - fi
  10417. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10418. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10419. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10420. +# _LT_ENABLE_STATIC([DEFAULT])
  10421. +# ----------------------------
  10422. +# implement the --enable-static flag, and support the `static' and
  10423. +# `disable-static' LT_INIT options.
  10424. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10425. +m4_define([_LT_ENABLE_STATIC],
  10426. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10427. +AC_ARG_ENABLE([static],
  10428. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10429. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10430. + [p=${PACKAGE-default}
  10431. + case $enableval in
  10432. + yes) enable_static=yes ;;
  10433. + no) enable_static=no ;;
  10434. + *)
  10435. + enable_static=no
  10436. + # Look at the argument we got. We use all the common list separators.
  10437. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10438. + for pkg in $enableval; do
  10439. + IFS="$lt_save_ifs"
  10440. + if test "X$pkg" = "X$p"; then
  10441. + enable_static=yes
  10442. + fi
  10443. + done
  10444. + IFS="$lt_save_ifs"
  10445. ;;
  10446. + esac],
  10447. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10448. - netbsd*)
  10449. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10450. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10451. - else
  10452. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10453. - fi
  10454. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10455. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10456. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10457. - ;;
  10458. + _LT_DECL([build_old_libs], [enable_static], [0],
  10459. + [Whether or not to build static libraries])
  10460. +])# _LT_ENABLE_STATIC
  10461. - newsos6)
  10462. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10463. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10464. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10465. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10466. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10467. - ;;
  10468. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10469. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10470. - openbsd*)
  10471. - if test -f /usr/libexec/ld.so; then
  10472. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10473. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10474. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10475. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10476. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10477. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10478. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10479. - else
  10480. - case $host_os in
  10481. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10482. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10483. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10484. - ;;
  10485. - *)
  10486. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10487. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10488. - ;;
  10489. - esac
  10490. - fi
  10491. - else
  10492. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10493. - fi
  10494. - ;;
  10495. +# Old names:
  10496. +AC_DEFUN([AC_ENABLE_STATIC],
  10497. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10498. +])
  10499. - os2*)
  10500. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10501. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10502. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10503. - _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'
  10504. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10505. - ;;
  10506. +AC_DEFUN([AC_DISABLE_STATIC],
  10507. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10508. +])
  10509. - osf3*)
  10510. - if test "$GCC" = yes; then
  10511. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10512. - _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'
  10513. - else
  10514. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10515. - _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'
  10516. - fi
  10517. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10518. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10519. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10520. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10521. +
  10522. +dnl aclocal-1.4 backwards compatibility:
  10523. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10524. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10525. +
  10526. +
  10527. +
  10528. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10529. +# ----------------------------------
  10530. +# implement the --enable-fast-install flag, and support the `fast-install'
  10531. +# and `disable-fast-install' LT_INIT options.
  10532. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10533. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10534. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10535. +AC_ARG_ENABLE([fast-install],
  10536. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10537. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10538. + [p=${PACKAGE-default}
  10539. + case $enableval in
  10540. + yes) enable_fast_install=yes ;;
  10541. + no) enable_fast_install=no ;;
  10542. + *)
  10543. + enable_fast_install=no
  10544. + # Look at the argument we got. We use all the common list separators.
  10545. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10546. + for pkg in $enableval; do
  10547. + IFS="$lt_save_ifs"
  10548. + if test "X$pkg" = "X$p"; then
  10549. + enable_fast_install=yes
  10550. + fi
  10551. + done
  10552. + IFS="$lt_save_ifs"
  10553. ;;
  10554. + esac],
  10555. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10556. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10557. - if test "$GCC" = yes; then
  10558. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10559. - _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'
  10560. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10561. - else
  10562. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10563. - _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'
  10564. - _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~
  10565. - $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'
  10566. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10567. + [Whether or not to optimize for fast installation])dnl
  10568. +])# _LT_ENABLE_FAST_INSTALL
  10569. +
  10570. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10571. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10572. +
  10573. +# Old names:
  10574. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10575. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10576. +AC_DIAGNOSE([obsolete],
  10577. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10578. +the `fast-install' option into LT_INIT's first parameter.])
  10579. +])
  10580. - # Both c and cxx compiler support -rpath directly
  10581. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10582. - fi
  10583. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10584. - ;;
  10585. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10586. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10587. +AC_DIAGNOSE([obsolete],
  10588. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10589. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10590. +])
  10591. - solaris*)
  10592. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10593. - if test "$GCC" = yes; then
  10594. - wlarc='${wl}'
  10595. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10596. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10597. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10598. - else
  10599. - wlarc=''
  10600. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10601. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10602. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10603. - fi
  10604. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10605. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10606. - case $host_os in
  10607. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10608. - *)
  10609. - # The compiler driver will combine and reorder linker options,
  10610. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  10611. - # but is careful enough not to reorder.
  10612. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10613. - if test "$GCC" = yes; then
  10614. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10615. - else
  10616. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10617. - fi
  10618. - ;;
  10619. - esac
  10620. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10621. - ;;
  10622. +dnl aclocal-1.4 backwards compatibility:
  10623. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10624. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10625. - sunos4*)
  10626. - if test "x$host_vendor" = xsequent; then
  10627. - # Use $CC to link under sequent, because it throws in some extra .o
  10628. - # files that make .init and .fini sections work.
  10629. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10630. - else
  10631. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10632. - fi
  10633. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10634. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10635. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10636. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10637. - ;;
  10638. - sysv4)
  10639. - case $host_vendor in
  10640. - sni)
  10641. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10642. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10643. - ;;
  10644. - siemens)
  10645. - ## LD is ld it makes a PLAMLIB
  10646. - ## CC just makes a GrossModule.
  10647. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10648. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10649. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10650. - ;;
  10651. - motorola)
  10652. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10653. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10654. - ;;
  10655. - esac
  10656. - runpath_var='LD_RUN_PATH'
  10657. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10658. - ;;
  10659. +# _LT_WITH_PIC([MODE])
  10660. +# --------------------
  10661. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10662. +# LT_INIT options.
  10663. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10664. +m4_define([_LT_WITH_PIC],
  10665. +[AC_ARG_WITH([pic],
  10666. + [AS_HELP_STRING([--with-pic],
  10667. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10668. + [pic_mode="$withval"],
  10669. + [pic_mode=default])
  10670. - sysv4.3*)
  10671. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10672. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10673. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10674. - ;;
  10675. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10676. - sysv4*MP*)
  10677. - if test -d /usr/nec; then
  10678. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10679. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10680. - runpath_var=LD_RUN_PATH
  10681. - hardcode_runpath_var=yes
  10682. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10683. - fi
  10684. - ;;
  10685. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10686. +])# _LT_WITH_PIC
  10687. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10688. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10689. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10690. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10691. - runpath_var='LD_RUN_PATH'
  10692. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10693. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10694. - if test "$GCC" = yes; then
  10695. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10696. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10697. - else
  10698. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10699. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10700. - fi
  10701. - ;;
  10702. +# Old name:
  10703. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10704. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10705. +AC_DIAGNOSE([obsolete],
  10706. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10707. +put the `pic-only' option into LT_INIT's first parameter.])
  10708. +])
  10709. - sysv5* | sco3.2v5* | sco5v6*)
  10710. - # Note: We can NOT use -z defs as we might desire, because we do not
  10711. - # link with -lc, and that would cause any symbols used from libc to
  10712. - # always be unresolved, which means just about no library would
  10713. - # ever link correctly. If we're not using GNU ld we use -z text
  10714. - # though, which does catch some bad symbols but isn't as heavy-handed
  10715. - # as -z defs.
  10716. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10717. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10718. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10719. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10720. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10721. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10722. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10723. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10724. - runpath_var='LD_RUN_PATH'
  10725. +dnl aclocal-1.4 backwards compatibility:
  10726. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10727. - if test "$GCC" = yes; then
  10728. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10729. - _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'
  10730. - else
  10731. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10732. - _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'
  10733. - fi
  10734. - ;;
  10735. - uts4*)
  10736. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10737. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10738. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10739. - ;;
  10740. +m4_define([_LTDL_MODE], [])
  10741. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10742. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10743. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10744. + [m4_define([_LTDL_MODE], [recursive])])
  10745. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10746. + [m4_define([_LTDL_MODE], [subproject])])
  10747. - *)
  10748. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10749. - ;;
  10750. - esac
  10751. - fi
  10752. -])
  10753. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10754. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10755. +m4_define([_LTDL_TYPE], [])
  10756. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10757. + [m4_define([_LTDL_TYPE], [installable])])
  10758. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10759. + [m4_define([_LTDL_TYPE], [convenience])])
  10760. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10761. #
  10762. -# Do we need to explicitly link libc?
  10763. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10764. +# Written by Gary V. Vaughan, 2004
  10765. #
  10766. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10767. -x|xyes)
  10768. - # Assume -lc should be added
  10769. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10770. +# This file is free software; the Free Software Foundation gives
  10771. +# unlimited permission to copy and/or distribute it, with or without
  10772. +# modifications, as long as this notice is preserved.
  10773. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10774. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10775. - *'~'*)
  10776. - # FIXME: we may have to deal with multi-command sequences.
  10777. - ;;
  10778. - '$CC '*)
  10779. - # Test whether the compiler implicitly links with -lc since on some
  10780. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10781. - # to ld, don't add -lc before -lgcc.
  10782. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10783. - $rm conftest*
  10784. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10785. +# serial 6 ltsugar.m4
  10786. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10787. - soname=conftest
  10788. - lib=conftest
  10789. - libobjs=conftest.$ac_objext
  10790. - deplibs=
  10791. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10792. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  10793. - compiler_flags=-v
  10794. - linker_flags=-v
  10795. - verstring=
  10796. - output_objdir=.
  10797. - libname=conftest
  10798. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10799. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10800. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10801. - then
  10802. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10803. - else
  10804. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10805. - fi
  10806. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10807. - else
  10808. - cat conftest.err 1>&5
  10809. - fi
  10810. - $rm conftest*
  10811. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10812. - ;;
  10813. - esac
  10814. - fi
  10815. - ;;
  10816. -esac
  10817. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10818. +# This is to help aclocal find these macros, as it can't see m4_define.
  10819. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10820. -# _LT_AC_FILE_LTDLL_C
  10821. -# -------------------
  10822. -# Be careful that the start marker always follows a newline.
  10823. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10824. -# /* ltdll.c starts here */
  10825. -# #define WIN32_LEAN_AND_MEAN
  10826. -# #include <windows.h>
  10827. -# #undef WIN32_LEAN_AND_MEAN
  10828. -# #include <stdio.h>
  10829. -#
  10830. -# #ifndef __CYGWIN__
  10831. -# # ifdef __CYGWIN32__
  10832. -# # define __CYGWIN__ __CYGWIN32__
  10833. -# # endif
  10834. -# #endif
  10835. -#
  10836. -# #ifdef __cplusplus
  10837. -# extern "C" {
  10838. -# #endif
  10839. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10840. -# #ifdef __cplusplus
  10841. -# }
  10842. -# #endif
  10843. -#
  10844. -# #ifdef __CYGWIN__
  10845. -# #include <cygwin/cygwin_dll.h>
  10846. -# DECLARE_CYGWIN_DLL( DllMain );
  10847. -# #endif
  10848. -# HINSTANCE __hDllInstance_base;
  10849. -#
  10850. -# BOOL APIENTRY
  10851. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10852. -# {
  10853. -# __hDllInstance_base = hInst;
  10854. -# return TRUE;
  10855. -# }
  10856. -# /* ltdll.c ends here */
  10857. -])# _LT_AC_FILE_LTDLL_C
  10858. +# lt_join(SEP, ARG1, [ARG2...])
  10859. +# -----------------------------
  10860. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10861. +# associated separator.
  10862. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10863. +# versions in m4sugar had bugs.
  10864. +m4_define([lt_join],
  10865. +[m4_if([$#], [1], [],
  10866. + [$#], [2], [[$2]],
  10867. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10868. +m4_define([_lt_join],
  10869. +[m4_if([$#$2], [2], [],
  10870. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10871. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10872. -# ---------------------------------
  10873. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10874. +# lt_car(LIST)
  10875. +# lt_cdr(LIST)
  10876. +# ------------
  10877. +# Manipulate m4 lists.
  10878. +# These macros are necessary as long as will still need to support
  10879. +# Autoconf-2.59 which quotes differently.
  10880. +m4_define([lt_car], [[$1]])
  10881. +m4_define([lt_cdr],
  10882. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10883. + [$#], 1, [],
  10884. + [m4_dquote(m4_shift($@))])])
  10885. +m4_define([lt_unquote], $1)
  10886. +
  10887. +
  10888. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10889. +# ------------------------------------------
  10890. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10891. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10892. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10893. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10894. +# than defined and empty).
  10895. +#
  10896. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10897. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10898. +m4_define([lt_append],
  10899. +[m4_define([$1],
  10900. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10901. -# old names
  10902. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10903. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10904. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10905. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10906. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10907. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10908. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10909. -# This is just to silence aclocal about the macro not being used
  10910. -ifelse([AC_DISABLE_FAST_INSTALL])
  10911. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10912. +# ----------------------------------------------------------
  10913. +# Produce a SEP delimited list of all paired combinations of elements of
  10914. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10915. +# has the form PREFIXmINFIXSUFFIXn.
  10916. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10917. +m4_define([lt_combine],
  10918. +[m4_if(m4_eval([$# > 3]), [1],
  10919. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10920. +[[m4_foreach([_Lt_prefix], [$2],
  10921. + [m4_foreach([_Lt_suffix],
  10922. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10923. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10924. +
  10925. +
  10926. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10927. +# -----------------------------------------------------------------------
  10928. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10929. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10930. +m4_define([lt_if_append_uniq],
  10931. +[m4_ifdef([$1],
  10932. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10933. + [lt_append([$1], [$2], [$3])$4],
  10934. + [$5])],
  10935. + [lt_append([$1], [$2], [$3])$4])])
  10936. -AC_DEFUN([LT_AC_PROG_GCJ],
  10937. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10938. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10939. - AC_SUBST(GCJFLAGS)
  10940. -])
  10941. -AC_DEFUN([LT_AC_PROG_RC],
  10942. -[AC_CHECK_TOOL(RC, windres, no)
  10943. +# lt_dict_add(DICT, KEY, VALUE)
  10944. +# -----------------------------
  10945. +m4_define([lt_dict_add],
  10946. +[m4_define([$1($2)], [$3])])
  10947. +
  10948. +
  10949. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10950. +# --------------------------------------------
  10951. +m4_define([lt_dict_add_subkey],
  10952. +[m4_define([$1($2:$3)], [$4])])
  10953. +
  10954. +
  10955. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10956. +# ----------------------------------
  10957. +m4_define([lt_dict_fetch],
  10958. +[m4_ifval([$3],
  10959. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10960. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10961. +
  10962. +
  10963. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  10964. +# -----------------------------------------------------------------
  10965. +m4_define([lt_if_dict_fetch],
  10966. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  10967. + [$5],
  10968. + [$6])])
  10969. +
  10970. +
  10971. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  10972. +# --------------------------------------------------------------
  10973. +m4_define([lt_dict_filter],
  10974. +[m4_if([$5], [], [],
  10975. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  10976. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  10977. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  10978. ])
  10979. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  10980. +#
  10981. +# Copyright (C) 2004 Free Software Foundation, Inc.
  10982. +# Written by Scott James Remnant, 2004
  10983. +#
  10984. +# This file is free software; the Free Software Foundation gives
  10985. +# unlimited permission to copy and/or distribute it, with or without
  10986. +# modifications, as long as this notice is preserved.
  10987. -# Cheap backport of AS_EXECUTABLE_P and required macros
  10988. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  10989. +# Generated from ltversion.in.
  10990. -# _AS_TEST_PREPARE
  10991. -# ----------------
  10992. -m4_ifndef([_AS_TEST_PREPARE],
  10993. -[m4_defun([_AS_TEST_PREPARE],
  10994. -[if test -x / >/dev/null 2>&1; then
  10995. - as_executable_p='test -x'
  10996. -else
  10997. - as_executable_p='test -f'
  10998. -fi
  10999. -])])# _AS_TEST_PREPARE
  11000. +# serial 3017 ltversion.m4
  11001. +# This file is part of GNU Libtool
  11002. -# AS_EXECUTABLE_P
  11003. -# ---------------
  11004. -# Check whether a file is executable.
  11005. -m4_ifndef([AS_EXECUTABLE_P],
  11006. -[m4_defun([AS_EXECUTABLE_P],
  11007. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  11008. -$as_executable_p $1[]dnl
  11009. -])])# AS_EXECUTABLE_P
  11010. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11011. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11012. -# NOTE: This macro has been submitted for inclusion into #
  11013. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  11014. -# a released version of Autoconf we should remove this #
  11015. -# macro and use it instead. #
  11016. -# LT_AC_PROG_SED
  11017. -# --------------
  11018. -# Check for a fully-functional sed program, that truncates
  11019. -# as few characters as possible. Prefer GNU sed if found.
  11020. -AC_DEFUN([LT_AC_PROG_SED],
  11021. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  11022. -AC_CACHE_VAL(lt_cv_path_SED,
  11023. -[# Loop through the user's path and test for sed and gsed.
  11024. -# Then use that list of sed's as ones to test for truncation.
  11025. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11026. -for as_dir in $PATH
  11027. -do
  11028. - IFS=$as_save_IFS
  11029. - test -z "$as_dir" && as_dir=.
  11030. - for lt_ac_prog in sed gsed; do
  11031. - for ac_exec_ext in '' $ac_executable_extensions; do
  11032. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  11033. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11034. - fi
  11035. - done
  11036. - done
  11037. -done
  11038. -IFS=$as_save_IFS
  11039. -lt_ac_max=0
  11040. -lt_ac_count=0
  11041. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11042. -# along with /bin/sed that truncates output.
  11043. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11044. - test ! -f $lt_ac_sed && continue
  11045. - cat /dev/null > conftest.in
  11046. - lt_ac_count=0
  11047. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11048. - # Check for GNU sed and select it if it is found.
  11049. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11050. - lt_cv_path_SED=$lt_ac_sed
  11051. - break
  11052. - fi
  11053. - while true; do
  11054. - cat conftest.in conftest.in >conftest.tmp
  11055. - mv conftest.tmp conftest.in
  11056. - cp conftest.in conftest.nl
  11057. - echo >>conftest.nl
  11058. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11059. - cmp -s conftest.out conftest.nl || break
  11060. - # 10000 chars as input seems more than enough
  11061. - test $lt_ac_count -gt 10 && break
  11062. - lt_ac_count=`expr $lt_ac_count + 1`
  11063. - if test $lt_ac_count -gt $lt_ac_max; then
  11064. - lt_ac_max=$lt_ac_count
  11065. - lt_cv_path_SED=$lt_ac_sed
  11066. - fi
  11067. - done
  11068. -done
  11069. -])
  11070. -SED=$lt_cv_path_SED
  11071. -AC_SUBST([SED])
  11072. -AC_MSG_RESULT([$SED])
  11073. +AC_DEFUN([LTVERSION_VERSION],
  11074. +[macro_version='2.2.6b'
  11075. +macro_revision='1.3017'
  11076. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11077. +_LT_DECL(, macro_revision, 0)
  11078. ])
  11079. -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  11080. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11081. +#
  11082. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11083. +# Written by Scott James Remnant, 2004.
  11084. +#
  11085. +# This file is free software; the Free Software Foundation gives
  11086. +# unlimited permission to copy and/or distribute it, with or without
  11087. +# modifications, as long as this notice is preserved.
  11088. +
  11089. +# serial 4 lt~obsolete.m4
  11090. +
  11091. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11092. +#
  11093. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11094. +# which have later been changed to m4_define as they aren't part of the
  11095. +# exported API, or moved to Autoconf or Automake where they belong.
  11096. +#
  11097. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11098. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11099. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11100. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11101. +# and doesn't know about Autoconf macros at all.)
  11102. +#
  11103. +# So we provide this file, which has a silly filename so it's always
  11104. +# included after everything else. This provides aclocal with the
  11105. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11106. +# because those macros already exist, or will be overwritten later.
  11107. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11108. +#
  11109. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11110. +# Yes, that means every name once taken will need to remain here until
  11111. +# we give up compatibility with versions before 1.7, at which point
  11112. +# we need to keep only those names which we still refer to.
  11113. +
  11114. +# This is to help aclocal find these macros, as it can't see m4_define.
  11115. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11116. +
  11117. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11118. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11119. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11120. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11121. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11122. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11123. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11124. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11125. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11126. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11127. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11128. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11129. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11130. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11131. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11132. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11133. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11134. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11135. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11136. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11137. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11138. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11139. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11140. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11141. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11142. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11143. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11144. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11145. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11146. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11147. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11148. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11149. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11150. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11151. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11152. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11153. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11154. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11155. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11156. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11157. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11158. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11159. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11160. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11161. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11162. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11163. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11164. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11165. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11166. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11167. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11168. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11169. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11170. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11171. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11172. +
  11173. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11174. #
  11175. # This file is free software; the Free Software Foundation
  11176. # gives unlimited permission to copy and/or distribute it,
  11177. @@ -6670,10 +7997,10 @@
  11178. # generated from the m4 files accompanying Automake X.Y.
  11179. # (This private macro should not be called outside this file.)
  11180. AC_DEFUN([AM_AUTOMAKE_VERSION],
  11181. -[am__api_version='1.10'
  11182. +[am__api_version='1.11'
  11183. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11184. dnl require some minimum version. Point them to the right macro.
  11185. -m4_if([$1], [1.10.1], [],
  11186. +m4_if([$1], [1.11.1], [],
  11187. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11188. ])
  11189. @@ -6687,12 +8014,12 @@
  11190. # AM_SET_CURRENT_AUTOMAKE_VERSION
  11191. # -------------------------------
  11192. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11193. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11194. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11195. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11196. -[AM_AUTOMAKE_VERSION([1.10.1])dnl
  11197. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11198. m4_ifndef([AC_AUTOCONF_VERSION],
  11199. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11200. -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  11201. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11202. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11203. @@ -6749,14 +8076,14 @@
  11204. # AM_CONDITIONAL -*- Autoconf -*-
  11205. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  11206. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11207. # Free Software Foundation, Inc.
  11208. #
  11209. # This file is free software; the Free Software Foundation
  11210. # gives unlimited permission to copy and/or distribute it,
  11211. # with or without modifications, as long as this notice is preserved.
  11212. -# serial 8
  11213. +# serial 9
  11214. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11215. # -------------------------------------
  11216. @@ -6769,6 +8096,7 @@
  11217. AC_SUBST([$1_FALSE])dnl
  11218. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11219. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11220. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11221. if $2; then
  11222. $1_TRUE=
  11223. $1_FALSE='#'
  11224. @@ -6782,14 +8110,14 @@
  11225. Usually this means the macro was only invoked conditionally.]])
  11226. fi])])
  11227. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  11228. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11229. # Free Software Foundation, Inc.
  11230. #
  11231. # This file is free software; the Free Software Foundation
  11232. # gives unlimited permission to copy and/or distribute it,
  11233. # with or without modifications, as long as this notice is preserved.
  11234. -# serial 9
  11235. +# serial 10
  11236. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11237. # written in clear, in which case automake, when reading aclocal.m4,
  11238. @@ -6846,6 +8174,16 @@
  11239. if test "$am_compiler_list" = ""; then
  11240. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11241. fi
  11242. + am__universal=false
  11243. + m4_case([$1], [CC],
  11244. + [case " $depcc " in #(
  11245. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11246. + esac],
  11247. + [CXX],
  11248. + [case " $depcc " in #(
  11249. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11250. + esac])
  11251. +
  11252. for depmode in $am_compiler_list; do
  11253. # Setup a source with many dependencies, because some compilers
  11254. # like to wrap large dependency lists on column 80 (with \), and
  11255. @@ -6863,7 +8201,17 @@
  11256. done
  11257. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11258. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11259. + # mode. It turns out that the SunPro C++ compiler does not properly
  11260. + # handle `-M -o', and we need to detect this. Also, some Intel
  11261. + # versions had trouble with output in subdirs
  11262. + am__obj=sub/conftest.${OBJEXT-o}
  11263. + am__minus_obj="-o $am__obj"
  11264. case $depmode in
  11265. + gcc)
  11266. + # This depmode causes a compiler race in universal mode.
  11267. + test "$am__universal" = false || continue
  11268. + ;;
  11269. nosideeffect)
  11270. # after this tag, mechanisms are not by side-effect, so they'll
  11271. # only be used when explicitly requested
  11272. @@ -6873,19 +8221,23 @@
  11273. break
  11274. fi
  11275. ;;
  11276. + msvisualcpp | msvcmsys)
  11277. + # This compiler won't grok `-c -o', but also, the minuso test has
  11278. + # not run yet. These depmodes are late enough in the game, and
  11279. + # so weak that their functioning should not be impacted.
  11280. + am__obj=conftest.${OBJEXT-o}
  11281. + am__minus_obj=
  11282. + ;;
  11283. none) break ;;
  11284. esac
  11285. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11286. - # mode. It turns out that the SunPro C++ compiler does not properly
  11287. - # handle `-M -o', and we need to detect this.
  11288. if depmode=$depmode \
  11289. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  11290. + source=sub/conftest.c object=$am__obj \
  11291. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11292. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  11293. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11294. >/dev/null 2>conftest.err &&
  11295. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11296. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11297. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  11298. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11299. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11300. # icc doesn't choke on unknown options, it will just issue warnings
  11301. # or remarks (even with -Werror). So we grep stderr for any message
  11302. @@ -6942,57 +8294,68 @@
  11303. # Generate code to set up dependency tracking. -*- Autoconf -*-
  11304. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11305. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11306. # Free Software Foundation, Inc.
  11307. #
  11308. # This file is free software; the Free Software Foundation
  11309. # gives unlimited permission to copy and/or distribute it,
  11310. # with or without modifications, as long as this notice is preserved.
  11311. -#serial 3
  11312. +#serial 5
  11313. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  11314. # ------------------------------
  11315. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11316. -[for mf in $CONFIG_FILES; do
  11317. - # Strip MF so we end up with the name of the file.
  11318. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  11319. - # Check whether this is an Automake generated Makefile or not.
  11320. - # We used to match only the files named `Makefile.in', but
  11321. - # some people rename them; so instead we look at the file content.
  11322. - # Grep'ing the first line is not enough: some people post-process
  11323. - # each Makefile.in and add a new line on top of each file to say so.
  11324. - # Grep'ing the whole file is not good either: AIX grep has a line
  11325. - # limit of 2048, but all sed's we know have understand at least 4000.
  11326. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11327. - dirpart=`AS_DIRNAME("$mf")`
  11328. - else
  11329. - continue
  11330. - fi
  11331. - # Extract the definition of DEPDIR, am__include, and am__quote
  11332. - # from the Makefile without running `make'.
  11333. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11334. - test -z "$DEPDIR" && continue
  11335. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11336. - test -z "am__include" && continue
  11337. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11338. - # When using ansi2knr, U may be empty or an underscore; expand it
  11339. - U=`sed -n 's/^U = //p' < "$mf"`
  11340. - # Find all dependency output files, they are included files with
  11341. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  11342. - # simplest approach to changing $(DEPDIR) to its actual value in the
  11343. - # expansion.
  11344. - for file in `sed -n "
  11345. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11346. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11347. - # Make sure the directory exists.
  11348. - test -f "$dirpart/$file" && continue
  11349. - fdir=`AS_DIRNAME(["$file"])`
  11350. - AS_MKDIR_P([$dirpart/$fdir])
  11351. - # echo "creating $dirpart/$file"
  11352. - echo '# dummy' > "$dirpart/$file"
  11353. +[{
  11354. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11355. + # are listed without --file. Let's play safe and only enable the eval
  11356. + # if we detect the quoting.
  11357. + case $CONFIG_FILES in
  11358. + *\'*) eval set x "$CONFIG_FILES" ;;
  11359. + *) set x $CONFIG_FILES ;;
  11360. + esac
  11361. + shift
  11362. + for mf
  11363. + do
  11364. + # Strip MF so we end up with the name of the file.
  11365. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11366. + # Check whether this is an Automake generated Makefile or not.
  11367. + # We used to match only the files named `Makefile.in', but
  11368. + # some people rename them; so instead we look at the file content.
  11369. + # Grep'ing the first line is not enough: some people post-process
  11370. + # each Makefile.in and add a new line on top of each file to say so.
  11371. + # Grep'ing the whole file is not good either: AIX grep has a line
  11372. + # limit of 2048, but all sed's we know have understand at least 4000.
  11373. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11374. + dirpart=`AS_DIRNAME("$mf")`
  11375. + else
  11376. + continue
  11377. + fi
  11378. + # Extract the definition of DEPDIR, am__include, and am__quote
  11379. + # from the Makefile without running `make'.
  11380. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11381. + test -z "$DEPDIR" && continue
  11382. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11383. + test -z "am__include" && continue
  11384. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11385. + # When using ansi2knr, U may be empty or an underscore; expand it
  11386. + U=`sed -n 's/^U = //p' < "$mf"`
  11387. + # Find all dependency output files, they are included files with
  11388. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11389. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11390. + # expansion.
  11391. + for file in `sed -n "
  11392. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11393. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11394. + # Make sure the directory exists.
  11395. + test -f "$dirpart/$file" && continue
  11396. + fdir=`AS_DIRNAME(["$file"])`
  11397. + AS_MKDIR_P([$dirpart/$fdir])
  11398. + # echo "creating $dirpart/$file"
  11399. + echo '# dummy' > "$dirpart/$file"
  11400. + done
  11401. done
  11402. -done
  11403. +}
  11404. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11405. @@ -7024,13 +8387,13 @@
  11406. # Do all the work for Automake. -*- Autoconf -*-
  11407. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11408. -# 2005, 2006, 2008 Free Software Foundation, Inc.
  11409. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11410. #
  11411. # This file is free software; the Free Software Foundation
  11412. # gives unlimited permission to copy and/or distribute it,
  11413. # with or without modifications, as long as this notice is preserved.
  11414. -# serial 13
  11415. +# serial 16
  11416. # This macro actually does too much. Some checks are only needed if
  11417. # your package does certain things. But this isn't really a big deal.
  11418. @@ -7047,7 +8410,7 @@
  11419. # arguments mandatory, and then we can depend on a new Autoconf
  11420. # release and drop the old call support.
  11421. AC_DEFUN([AM_INIT_AUTOMAKE],
  11422. -[AC_PREREQ([2.60])dnl
  11423. +[AC_PREREQ([2.62])dnl
  11424. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11425. dnl the ones we care about.
  11426. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11427. @@ -7098,8 +8461,8 @@
  11428. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11429. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11430. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11431. -AM_PROG_INSTALL_SH
  11432. -AM_PROG_INSTALL_STRIP
  11433. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11434. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11435. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11436. # We need awk for the "check" target. The system "awk" is bad on
  11437. # some platforms.
  11438. @@ -7107,24 +8470,37 @@
  11439. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11440. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11441. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11442. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11443. - [_AM_PROG_TAR([v7])])])
  11444. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11445. + [_AM_PROG_TAR([v7])])])
  11446. _AM_IF_OPTION([no-dependencies],,
  11447. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11448. - [_AM_DEPENDENCIES(CC)],
  11449. - [define([AC_PROG_CC],
  11450. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11451. + [_AM_DEPENDENCIES(CC)],
  11452. + [define([AC_PROG_CC],
  11453. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11454. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11455. - [_AM_DEPENDENCIES(CXX)],
  11456. - [define([AC_PROG_CXX],
  11457. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11458. + [_AM_DEPENDENCIES(CXX)],
  11459. + [define([AC_PROG_CXX],
  11460. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11461. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11462. - [_AM_DEPENDENCIES(OBJC)],
  11463. - [define([AC_PROG_OBJC],
  11464. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11465. + [_AM_DEPENDENCIES(OBJC)],
  11466. + [define([AC_PROG_OBJC],
  11467. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11468. ])
  11469. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11470. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11471. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11472. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11473. +AC_CONFIG_COMMANDS_PRE(dnl
  11474. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11475. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11476. ])
  11477. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11478. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11479. +dnl mangled by Autoconf and run in a shell conditional statement.
  11480. +m4_define([_AC_COMPILER_EXEEXT],
  11481. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11482. +
  11483. # When config.status generates a header, we must update the stamp-h file.
  11484. # This file resides in the same directory as the config header
  11485. @@ -7147,7 +8523,7 @@
  11486. done
  11487. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11488. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11489. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11490. #
  11491. # This file is free software; the Free Software Foundation
  11492. # gives unlimited permission to copy and/or distribute it,
  11493. @@ -7158,7 +8534,14 @@
  11494. # Define $install_sh.
  11495. AC_DEFUN([AM_PROG_INSTALL_SH],
  11496. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11497. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  11498. +if test x"${install_sh}" != xset; then
  11499. + case $am_aux_dir in
  11500. + *\ * | *\ *)
  11501. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11502. + *)
  11503. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11504. + esac
  11505. +fi
  11506. AC_SUBST(install_sh)])
  11507. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11508. @@ -7184,13 +8567,13 @@
  11509. # Check to see how 'make' treats includes. -*- Autoconf -*-
  11510. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11511. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  11512. #
  11513. # This file is free software; the Free Software Foundation
  11514. # gives unlimited permission to copy and/or distribute it,
  11515. # with or without modifications, as long as this notice is preserved.
  11516. -# serial 3
  11517. +# serial 4
  11518. # AM_MAKE_INCLUDE()
  11519. # -----------------
  11520. @@ -7199,7 +8582,7 @@
  11521. [am_make=${MAKE-make}
  11522. cat > confinc << 'END'
  11523. am__doit:
  11524. - @echo done
  11525. + @echo this is the am__doit target
  11526. .PHONY: am__doit
  11527. END
  11528. # If we don't find an include directive, just comment out the code.
  11529. @@ -7209,24 +8592,24 @@
  11530. _am_result=none
  11531. # First try GNU make style include.
  11532. echo "include confinc" > confmf
  11533. -# We grep out `Entering directory' and `Leaving directory'
  11534. -# messages which can occur if `w' ends up in MAKEFLAGS.
  11535. -# In particular we don't look at `^make:' because GNU make might
  11536. -# be invoked under some other name (usually "gmake"), in which
  11537. -# case it prints its new name instead of `make'.
  11538. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  11539. - am__include=include
  11540. - am__quote=
  11541. - _am_result=GNU
  11542. -fi
  11543. +# Ignore all kinds of additional output from `make'.
  11544. +case `$am_make -s -f confmf 2> /dev/null` in #(
  11545. +*the\ am__doit\ target*)
  11546. + am__include=include
  11547. + am__quote=
  11548. + _am_result=GNU
  11549. + ;;
  11550. +esac
  11551. # Now try BSD make style include.
  11552. if test "$am__include" = "#"; then
  11553. echo '.include "confinc"' > confmf
  11554. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  11555. - am__include=.include
  11556. - am__quote="\""
  11557. - _am_result=BSD
  11558. - fi
  11559. + case `$am_make -s -f confmf 2> /dev/null` in #(
  11560. + *the\ am__doit\ target*)
  11561. + am__include=.include
  11562. + am__quote="\""
  11563. + _am_result=BSD
  11564. + ;;
  11565. + esac
  11566. fi
  11567. AC_SUBST([am__include])
  11568. AC_SUBST([am__quote])
  11569. @@ -7236,14 +8619,14 @@
  11570. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11571. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  11572. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11573. # Free Software Foundation, Inc.
  11574. #
  11575. # This file is free software; the Free Software Foundation
  11576. # gives unlimited permission to copy and/or distribute it,
  11577. # with or without modifications, as long as this notice is preserved.
  11578. -# serial 5
  11579. +# serial 6
  11580. # AM_MISSING_PROG(NAME, PROGRAM)
  11581. # ------------------------------
  11582. @@ -7260,7 +8643,14 @@
  11583. AC_DEFUN([AM_MISSING_HAS_RUN],
  11584. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11585. AC_REQUIRE_AUX_FILE([missing])dnl
  11586. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11587. +if test x"${MISSING+set}" != xset; then
  11588. + case $am_aux_dir in
  11589. + *\ * | *\ *)
  11590. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11591. + *)
  11592. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11593. + esac
  11594. +fi
  11595. # Use eval to expand $SHELL
  11596. if eval "$MISSING --run true"; then
  11597. am_missing_run="$MISSING --run "
  11598. @@ -7298,13 +8688,13 @@
  11599. # Helper functions for option handling. -*- Autoconf -*-
  11600. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11601. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11602. #
  11603. # This file is free software; the Free Software Foundation
  11604. # gives unlimited permission to copy and/or distribute it,
  11605. # with or without modifications, as long as this notice is preserved.
  11606. -# serial 3
  11607. +# serial 4
  11608. # _AM_MANGLE_OPTION(NAME)
  11609. # -----------------------
  11610. @@ -7321,7 +8711,7 @@
  11611. # ----------------------------------
  11612. # OPTIONS is a space-separated list of Automake options.
  11613. AC_DEFUN([_AM_SET_OPTIONS],
  11614. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11615. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11616. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11617. # -------------------------------------------
  11618. @@ -7331,14 +8721,14 @@
  11619. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  11620. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11621. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11622. # Free Software Foundation, Inc.
  11623. #
  11624. # This file is free software; the Free Software Foundation
  11625. # gives unlimited permission to copy and/or distribute it,
  11626. # with or without modifications, as long as this notice is preserved.
  11627. -# serial 4
  11628. +# serial 5
  11629. # AM_SANITY_CHECK
  11630. # ---------------
  11631. @@ -7347,16 +8737,29 @@
  11632. # Just in case
  11633. sleep 1
  11634. echo timestamp > conftest.file
  11635. +# Reject unsafe characters in $srcdir or the absolute working directory
  11636. +# name. Accept space and tab only in the latter.
  11637. +am_lf='
  11638. +'
  11639. +case `pwd` in
  11640. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11641. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11642. +esac
  11643. +case $srcdir in
  11644. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11645. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11646. +esac
  11647. +
  11648. # Do `set' in a subshell so we don't clobber the current shell's
  11649. # arguments. Must try -L first in case configure is actually a
  11650. # symlink; some systems play weird games with the mod time of symlinks
  11651. # (eg FreeBSD returns the mod time of the symlink's containing
  11652. # directory).
  11653. if (
  11654. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11655. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11656. if test "$[*]" = "X"; then
  11657. # -L didn't work.
  11658. - set X `ls -t $srcdir/configure conftest.file`
  11659. + set X `ls -t "$srcdir/configure" conftest.file`
  11660. fi
  11661. rm -f conftest.file
  11662. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11663. @@ -7409,18 +8812,25 @@
  11664. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11665. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11666. -# Copyright (C) 2006 Free Software Foundation, Inc.
  11667. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11668. #
  11669. # This file is free software; the Free Software Foundation
  11670. # gives unlimited permission to copy and/or distribute it,
  11671. # with or without modifications, as long as this notice is preserved.
  11672. +# serial 2
  11673. +
  11674. # _AM_SUBST_NOTMAKE(VARIABLE)
  11675. # ---------------------------
  11676. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11677. # This macro is traced by Automake.
  11678. AC_DEFUN([_AM_SUBST_NOTMAKE])
  11679. +# AM_SUBST_NOTMAKE(VARIABLE)
  11680. +# ---------------------------
  11681. +# Public sister of _AM_SUBST_NOTMAKE.
  11682. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11683. +
  11684. # Check how to create a tarball. -*- Autoconf -*-
  11685. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11686. diff -Nur rpcbind-0.2.0.orig/config.guess rpcbind-0.2.0/config.guess
  11687. --- rpcbind-0.2.0.orig/config.guess 2008-08-30 00:27:25.000000000 +0200
  11688. +++ rpcbind-0.2.0/config.guess 2011-02-17 19:38:37.573557751 +0100
  11689. @@ -1,10 +1,10 @@
  11690. #! /bin/sh
  11691. # Attempt to guess a canonical system name.
  11692. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11693. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  11694. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11695. # Free Software Foundation, Inc.
  11696. -timestamp='2008-01-23'
  11697. +timestamp='2009-06-10'
  11698. # This file is free software; you can redistribute it and/or modify it
  11699. # under the terms of the GNU General Public License as published by
  11700. @@ -170,7 +170,7 @@
  11701. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11702. eval $set_cc_for_build
  11703. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11704. - | grep __ELF__ >/dev/null
  11705. + | grep -q __ELF__
  11706. then
  11707. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11708. # Return netbsd for either. FIX?
  11709. @@ -324,6 +324,9 @@
  11710. case `/usr/bin/uname -p` in
  11711. sparc) echo sparc-icl-nx7; exit ;;
  11712. esac ;;
  11713. + s390x:SunOS:*:*)
  11714. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11715. + exit ;;
  11716. sun4H:SunOS:5.*:*)
  11717. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11718. exit ;;
  11719. @@ -331,7 +334,20 @@
  11720. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11721. exit ;;
  11722. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  11723. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11724. + eval $set_cc_for_build
  11725. + SUN_ARCH="i386"
  11726. + # If there is a compiler, see if it is configured for 64-bit objects.
  11727. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  11728. + # This test works for both compilers.
  11729. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  11730. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  11731. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  11732. + grep IS_64BIT_ARCH >/dev/null
  11733. + then
  11734. + SUN_ARCH="x86_64"
  11735. + fi
  11736. + fi
  11737. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  11738. exit ;;
  11739. sun4*:SunOS:6*:*)
  11740. # According to config.sub, this is the proper way to canonicalize
  11741. @@ -640,7 +656,7 @@
  11742. # => hppa64-hp-hpux11.23
  11743. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  11744. - grep __LP64__ >/dev/null
  11745. + grep -q __LP64__
  11746. then
  11747. HP_ARCH="hppa2.0w"
  11748. else
  11749. @@ -796,7 +812,7 @@
  11750. x86)
  11751. echo i586-pc-interix${UNAME_RELEASE}
  11752. exit ;;
  11753. - EM64T | authenticamd)
  11754. + EM64T | authenticamd | genuineintel)
  11755. echo x86_64-unknown-interix${UNAME_RELEASE}
  11756. exit ;;
  11757. IA64)
  11758. @@ -806,6 +822,9 @@
  11759. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  11760. echo i${UNAME_MACHINE}-pc-mks
  11761. exit ;;
  11762. + 8664:Windows_NT:*)
  11763. + echo x86_64-pc-mks
  11764. + exit ;;
  11765. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  11766. # How do we know it's Interix rather than the generic POSIX subsystem?
  11767. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  11768. @@ -866,40 +885,17 @@
  11769. m68*:Linux:*:*)
  11770. echo ${UNAME_MACHINE}-unknown-linux-gnu
  11771. exit ;;
  11772. - mips:Linux:*:*)
  11773. + mips:Linux:*:* | mips64:Linux:*:*)
  11774. eval $set_cc_for_build
  11775. sed 's/^ //' << EOF >$dummy.c
  11776. #undef CPU
  11777. - #undef mips
  11778. - #undef mipsel
  11779. + #undef ${UNAME_MACHINE}
  11780. + #undef ${UNAME_MACHINE}el
  11781. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11782. - CPU=mipsel
  11783. + CPU=${UNAME_MACHINE}el
  11784. #else
  11785. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11786. - CPU=mips
  11787. - #else
  11788. - CPU=
  11789. - #endif
  11790. - #endif
  11791. -EOF
  11792. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  11793. - /^CPU/{
  11794. - s: ::g
  11795. - p
  11796. - }'`"
  11797. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  11798. - ;;
  11799. - mips64:Linux:*:*)
  11800. - eval $set_cc_for_build
  11801. - sed 's/^ //' << EOF >$dummy.c
  11802. - #undef CPU
  11803. - #undef mips64
  11804. - #undef mips64el
  11805. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  11806. - CPU=mips64el
  11807. - #else
  11808. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  11809. - CPU=mips64
  11810. + CPU=${UNAME_MACHINE}
  11811. #else
  11812. CPU=
  11813. #endif
  11814. @@ -931,10 +927,13 @@
  11815. EV67) UNAME_MACHINE=alphaev67 ;;
  11816. EV68*) UNAME_MACHINE=alphaev68 ;;
  11817. esac
  11818. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  11819. + objdump --private-headers /bin/sh | grep -q ld.so.1
  11820. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  11821. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  11822. exit ;;
  11823. + padre:Linux:*:*)
  11824. + echo sparc-unknown-linux-gnu
  11825. + exit ;;
  11826. parisc:Linux:*:* | hppa:Linux:*:*)
  11827. # Look for CPU level
  11828. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  11829. @@ -982,17 +981,6 @@
  11830. elf32-i386)
  11831. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  11832. ;;
  11833. - a.out-i386-linux)
  11834. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  11835. - exit ;;
  11836. - coff-i386)
  11837. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  11838. - exit ;;
  11839. - "")
  11840. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  11841. - # one that does not give us useful --help.
  11842. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  11843. - exit ;;
  11844. esac
  11845. # Determine whether the default compiler is a.out or elf
  11846. eval $set_cc_for_build
  11847. @@ -1058,7 +1046,7 @@
  11848. i*86:syllable:*:*)
  11849. echo ${UNAME_MACHINE}-pc-syllable
  11850. exit ;;
  11851. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  11852. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  11853. echo i386-unknown-lynxos${UNAME_RELEASE}
  11854. exit ;;
  11855. i*86:*DOS:*:*)
  11856. @@ -1102,8 +1090,11 @@
  11857. pc:*:*:*)
  11858. # Left here for compatibility:
  11859. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  11860. - # the processor, so we play safe by assuming i386.
  11861. - echo i386-pc-msdosdjgpp
  11862. + # the processor, so we play safe by assuming i586.
  11863. + # Note: whatever this is, it MUST be the same as what config.sub
  11864. + # prints for the "djgpp" host, or else GDB configury will decide that
  11865. + # this is a cross-build.
  11866. + echo i586-pc-msdosdjgpp
  11867. exit ;;
  11868. Intel:Mach:3*:*)
  11869. echo i386-pc-mach3
  11870. @@ -1141,6 +1132,16 @@
  11871. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  11872. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11873. && { echo i486-ncr-sysv4; exit; } ;;
  11874. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  11875. + OS_REL='.3'
  11876. + test -r /etc/.relid \
  11877. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  11878. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  11879. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  11880. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  11881. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  11882. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  11883. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  11884. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  11885. echo m68k-unknown-lynxos${UNAME_RELEASE}
  11886. exit ;;
  11887. @@ -1153,7 +1154,7 @@
  11888. rs6000:LynxOS:2.*:*)
  11889. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  11890. exit ;;
  11891. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  11892. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  11893. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  11894. exit ;;
  11895. SM[BE]S:UNIX_SV:*:*)
  11896. @@ -1216,6 +1217,9 @@
  11897. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  11898. echo i586-pc-beos
  11899. exit ;;
  11900. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  11901. + echo i586-pc-haiku
  11902. + exit ;;
  11903. SX-4:SUPER-UX:*:*)
  11904. echo sx4-nec-superux${UNAME_RELEASE}
  11905. exit ;;
  11906. @@ -1324,6 +1328,9 @@
  11907. i*86:rdos:*:*)
  11908. echo ${UNAME_MACHINE}-pc-rdos
  11909. exit ;;
  11910. + i*86:AROS:*:*)
  11911. + echo ${UNAME_MACHINE}-pc-aros
  11912. + exit ;;
  11913. esac
  11914. #echo '(No uname command or uname output not recognized.)' 1>&2
  11915. diff -Nur rpcbind-0.2.0.orig/config.h.in rpcbind-0.2.0/config.h.in
  11916. --- rpcbind-0.2.0.orig/config.h.in 2009-05-29 18:37:50.000000000 +0200
  11917. +++ rpcbind-0.2.0/config.h.in 2011-02-17 19:38:37.000000000 +0100
  11918. @@ -81,6 +81,10 @@
  11919. /* Define to 1 if you have the <unistd.h> header file. */
  11920. #undef HAVE_UNISTD_H
  11921. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  11922. + */
  11923. +#undef LT_OBJDIR
  11924. +
  11925. /* Name of package */
  11926. #undef PACKAGE
  11927. @@ -96,6 +100,9 @@
  11928. /* Define to the one symbol short name of this package. */
  11929. #undef PACKAGE_TARNAME
  11930. +/* Define to the home page for this package. */
  11931. +#undef PACKAGE_URL
  11932. +
  11933. /* Define to the version of this package. */
  11934. #undef PACKAGE_VERSION
  11935. diff -Nur rpcbind-0.2.0.orig/config.h.in~ rpcbind-0.2.0/config.h.in~
  11936. --- rpcbind-0.2.0.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  11937. +++ rpcbind-0.2.0/config.h.in~ 2009-05-29 18:37:50.000000000 +0200
  11938. @@ -0,0 +1,113 @@
  11939. +/* config.h.in. Generated from configure.in by autoheader. */
  11940. +
  11941. +/* Define to 1 if you have the <arpa/inet.h> header file. */
  11942. +#undef HAVE_ARPA_INET_H
  11943. +
  11944. +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  11945. + */
  11946. +#undef HAVE_DIRENT_H
  11947. +
  11948. +/* Define to 1 if you have the <dlfcn.h> header file. */
  11949. +#undef HAVE_DLFCN_H
  11950. +
  11951. +/* Define to 1 if you have the <fcntl.h> header file. */
  11952. +#undef HAVE_FCNTL_H
  11953. +
  11954. +/* Define to 1 if you have the <inttypes.h> header file. */
  11955. +#undef HAVE_INTTYPES_H
  11956. +
  11957. +/* Define to 1 if you have the `pthread' library (-lpthread). */
  11958. +#undef HAVE_LIBPTHREAD
  11959. +
  11960. +/* Define to 1 if you have the `tirpc' library (-ltirpc). */
  11961. +#undef HAVE_LIBTIRPC
  11962. +
  11963. +/* Define to 1 if you have the `wrap' library (-lwrap). */
  11964. +#undef HAVE_LIBWRAP
  11965. +
  11966. +/* Define to 1 if you have the <memory.h> header file. */
  11967. +#undef HAVE_MEMORY_H
  11968. +
  11969. +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  11970. +#undef HAVE_NDIR_H
  11971. +
  11972. +/* Define to 1 if you have the <netdb.h> header file. */
  11973. +#undef HAVE_NETDB_H
  11974. +
  11975. +/* Define to 1 if you have the <netinet/in.h> header file. */
  11976. +#undef HAVE_NETINET_IN_H
  11977. +
  11978. +/* Define to 1 if you have the <nss.h> header file. */
  11979. +#undef HAVE_NSS_H
  11980. +
  11981. +/* Define to 1 if you have the <stdint.h> header file. */
  11982. +#undef HAVE_STDINT_H
  11983. +
  11984. +/* Define to 1 if you have the <stdlib.h> header file. */
  11985. +#undef HAVE_STDLIB_H
  11986. +
  11987. +/* Define to 1 if you have the <strings.h> header file. */
  11988. +#undef HAVE_STRINGS_H
  11989. +
  11990. +/* Define to 1 if you have the <string.h> header file. */
  11991. +#undef HAVE_STRING_H
  11992. +
  11993. +/* Define to 1 if you have the <syslog.h> header file. */
  11994. +#undef HAVE_SYSLOG_H
  11995. +
  11996. +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  11997. + */
  11998. +#undef HAVE_SYS_DIR_H
  11999. +
  12000. +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  12001. + */
  12002. +#undef HAVE_SYS_NDIR_H
  12003. +
  12004. +/* Define to 1 if you have the <sys/param.h> header file. */
  12005. +#undef HAVE_SYS_PARAM_H
  12006. +
  12007. +/* Define to 1 if you have the <sys/socket.h> header file. */
  12008. +#undef HAVE_SYS_SOCKET_H
  12009. +
  12010. +/* Define to 1 if you have the <sys/stat.h> header file. */
  12011. +#undef HAVE_SYS_STAT_H
  12012. +
  12013. +/* Define to 1 if you have the <sys/time.h> header file. */
  12014. +#undef HAVE_SYS_TIME_H
  12015. +
  12016. +/* Define to 1 if you have the <sys/types.h> header file. */
  12017. +#undef HAVE_SYS_TYPES_H
  12018. +
  12019. +/* Define to 1 if you have the <unistd.h> header file. */
  12020. +#undef HAVE_UNISTD_H
  12021. +
  12022. +/* Name of package */
  12023. +#undef PACKAGE
  12024. +
  12025. +/* Define to the address where bug reports for this package should be sent. */
  12026. +#undef PACKAGE_BUGREPORT
  12027. +
  12028. +/* Define to the full name of this package. */
  12029. +#undef PACKAGE_NAME
  12030. +
  12031. +/* Define to the full name and version of this package. */
  12032. +#undef PACKAGE_STRING
  12033. +
  12034. +/* Define to the one symbol short name of this package. */
  12035. +#undef PACKAGE_TARNAME
  12036. +
  12037. +/* Define to the version of this package. */
  12038. +#undef PACKAGE_VERSION
  12039. +
  12040. +/* This defines the location where the state files will be kept for warm
  12041. + starts */
  12042. +#undef RPCBIND_STATEDIR
  12043. +
  12044. +/* This defines the uid to run as */
  12045. +#undef RPCBIND_USER
  12046. +
  12047. +/* Define to 1 if you have the ANSI C header files. */
  12048. +#undef STDC_HEADERS
  12049. +
  12050. +/* Version number of package */
  12051. +#undef VERSION
  12052. diff -Nur rpcbind-0.2.0.orig/config.sub rpcbind-0.2.0/config.sub
  12053. --- rpcbind-0.2.0.orig/config.sub 2008-08-30 00:27:25.000000000 +0200
  12054. +++ rpcbind-0.2.0/config.sub 2011-02-17 19:38:37.573557751 +0100
  12055. @@ -1,10 +1,10 @@
  12056. #! /bin/sh
  12057. # Configuration validation subroutine script.
  12058. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  12059. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  12060. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  12061. # Free Software Foundation, Inc.
  12062. -timestamp='2008-01-16'
  12063. +timestamp='2009-06-11'
  12064. # This file is (in principle) common to ALL GNU software.
  12065. # The presence of a machine in this file suggests that SOME GNU software
  12066. @@ -122,6 +122,7 @@
  12067. case $maybe_os in
  12068. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  12069. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  12070. + kopensolaris*-gnu* | \
  12071. storm-chaos* | os2-emx* | rtmk-nova*)
  12072. os=-$maybe_os
  12073. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  12074. @@ -152,6 +153,9 @@
  12075. os=
  12076. basic_machine=$1
  12077. ;;
  12078. + -bluegene*)
  12079. + os=-cnk
  12080. + ;;
  12081. -sim | -cisco | -oki | -wec | -winbond)
  12082. os=
  12083. basic_machine=$1
  12084. @@ -249,13 +253,16 @@
  12085. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  12086. | i370 | i860 | i960 | ia64 \
  12087. | ip2k | iq2000 \
  12088. + | lm32 \
  12089. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  12090. - | maxq | mb | microblaze | mcore | mep \
  12091. + | maxq | mb | microblaze | mcore | mep | metag \
  12092. | mips | mipsbe | mipseb | mipsel | mipsle \
  12093. | mips16 \
  12094. | mips64 | mips64el \
  12095. - | mips64vr | mips64vrel \
  12096. + | mips64octeon | mips64octeonel \
  12097. | mips64orion | mips64orionel \
  12098. + | mips64r5900 | mips64r5900el \
  12099. + | mips64vr | mips64vrel \
  12100. | mips64vr4100 | mips64vr4100el \
  12101. | mips64vr4300 | mips64vr4300el \
  12102. | mips64vr5000 | mips64vr5000el \
  12103. @@ -268,6 +275,7 @@
  12104. | mipsisa64sr71k | mipsisa64sr71kel \
  12105. | mipstx39 | mipstx39el \
  12106. | mn10200 | mn10300 \
  12107. + | moxie \
  12108. | mt \
  12109. | msp430 \
  12110. | nios | nios2 \
  12111. @@ -277,7 +285,7 @@
  12112. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  12113. | pyramid \
  12114. | score \
  12115. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12116. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  12117. | sh64 | sh64le \
  12118. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  12119. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  12120. @@ -286,7 +294,7 @@
  12121. | v850 | v850e \
  12122. | we32k \
  12123. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  12124. - | z8k)
  12125. + | z8k | z80)
  12126. basic_machine=$basic_machine-unknown
  12127. ;;
  12128. m6811 | m68hc11 | m6812 | m68hc12)
  12129. @@ -329,14 +337,17 @@
  12130. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  12131. | i*86-* | i860-* | i960-* | ia64-* \
  12132. | ip2k-* | iq2000-* \
  12133. + | lm32-* \
  12134. | m32c-* | m32r-* | m32rle-* \
  12135. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  12136. - | m88110-* | m88k-* | maxq-* | mcore-* \
  12137. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  12138. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  12139. | mips16-* \
  12140. | mips64-* | mips64el-* \
  12141. - | mips64vr-* | mips64vrel-* \
  12142. + | mips64octeon-* | mips64octeonel-* \
  12143. | mips64orion-* | mips64orionel-* \
  12144. + | mips64r5900-* | mips64r5900el-* \
  12145. + | mips64vr-* | mips64vrel-* \
  12146. | mips64vr4100-* | mips64vr4100el-* \
  12147. | mips64vr4300-* | mips64vr4300el-* \
  12148. | mips64vr5000-* | mips64vr5000el-* \
  12149. @@ -358,20 +369,20 @@
  12150. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  12151. | pyramid-* \
  12152. | romp-* | rs6000-* \
  12153. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12154. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  12155. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  12156. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  12157. | sparclite-* \
  12158. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  12159. | tahoe-* | thumb-* \
  12160. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  12161. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  12162. | tron-* \
  12163. | v850-* | v850e-* | vax-* \
  12164. | we32k-* \
  12165. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  12166. | xstormy16-* | xtensa*-* \
  12167. | ymp-* \
  12168. - | z8k-*)
  12169. + | z8k-* | z80-*)
  12170. ;;
  12171. # Recognize the basic CPU types without company name, with glob match.
  12172. xtensa*)
  12173. @@ -439,6 +450,10 @@
  12174. basic_machine=m68k-apollo
  12175. os=-bsd
  12176. ;;
  12177. + aros)
  12178. + basic_machine=i386-pc
  12179. + os=-aros
  12180. + ;;
  12181. aux)
  12182. basic_machine=m68k-apple
  12183. os=-aux
  12184. @@ -455,10 +470,18 @@
  12185. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  12186. os=-linux
  12187. ;;
  12188. + bluegene*)
  12189. + basic_machine=powerpc-ibm
  12190. + os=-cnk
  12191. + ;;
  12192. c90)
  12193. basic_machine=c90-cray
  12194. os=-unicos
  12195. ;;
  12196. + cegcc)
  12197. + basic_machine=arm-unknown
  12198. + os=-cegcc
  12199. + ;;
  12200. convex-c1)
  12201. basic_machine=c1-convex
  12202. os=-bsd
  12203. @@ -526,6 +549,10 @@
  12204. basic_machine=m88k-motorola
  12205. os=-sysv3
  12206. ;;
  12207. + dicos)
  12208. + basic_machine=i686-pc
  12209. + os=-dicos
  12210. + ;;
  12211. djgpp)
  12212. basic_machine=i586-pc
  12213. os=-msdosdjgpp
  12214. @@ -1128,6 +1155,10 @@
  12215. basic_machine=z8k-unknown
  12216. os=-sim
  12217. ;;
  12218. + z80-*-coff)
  12219. + basic_machine=z80-unknown
  12220. + os=-sim
  12221. + ;;
  12222. none)
  12223. basic_machine=none-none
  12224. os=-none
  12225. @@ -1166,7 +1197,7 @@
  12226. we32k)
  12227. basic_machine=we32k-att
  12228. ;;
  12229. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  12230. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  12231. basic_machine=sh-unknown
  12232. ;;
  12233. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  12234. @@ -1236,10 +1267,11 @@
  12235. # Each alternative MUST END IN A *, to match a version number.
  12236. # -sysv* is not here because it comes later, after sysvr4.
  12237. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  12238. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  12239. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  12240. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  12241. + | -kopensolaris* \
  12242. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  12243. - | -aos* \
  12244. + | -aos* | -aros* \
  12245. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  12246. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  12247. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  12248. @@ -1248,7 +1280,7 @@
  12249. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  12250. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  12251. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  12252. - | -chorusos* | -chorusrdb* \
  12253. + | -chorusos* | -chorusrdb* | -cegcc* \
  12254. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  12255. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  12256. | -uxpv* | -beos* | -mpeix* | -udk* \
  12257. @@ -1388,6 +1420,9 @@
  12258. -zvmoe)
  12259. os=-zvmoe
  12260. ;;
  12261. + -dicos*)
  12262. + os=-dicos
  12263. + ;;
  12264. -none)
  12265. ;;
  12266. *)
  12267. @@ -1585,7 +1620,7 @@
  12268. -sunos*)
  12269. vendor=sun
  12270. ;;
  12271. - -aix*)
  12272. + -cnk*|-aix*)
  12273. vendor=ibm
  12274. ;;
  12275. -beos*)
  12276. diff -Nur rpcbind-0.2.0.orig/configure rpcbind-0.2.0/configure
  12277. --- rpcbind-0.2.0.orig/configure 2009-05-29 18:37:51.000000000 +0200
  12278. +++ rpcbind-0.2.0/configure 2011-02-17 19:38:36.543562939 +0100
  12279. @@ -1,18 +1,22 @@
  12280. #! /bin/sh
  12281. # Guess values for system-dependent variables and create Makefiles.
  12282. -# Generated by GNU Autoconf 2.63 for rpcbind 0.2.0.
  12283. +# Generated by GNU Autoconf 2.65 for rpcbind 0.2.0.
  12284. +#
  12285. #
  12286. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  12287. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12288. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  12289. +# Inc.
  12290. +#
  12291. +#
  12292. # This configure script is free software; the Free Software Foundation
  12293. # gives unlimited permission to copy, distribute and modify it.
  12294. -## --------------------- ##
  12295. -## M4sh Initialization. ##
  12296. -## --------------------- ##
  12297. +## -------------------- ##
  12298. +## M4sh Initialization. ##
  12299. +## -------------------- ##
  12300. # Be more Bourne compatible
  12301. DUALCASE=1; export DUALCASE # for MKS sh
  12302. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12303. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12304. emulate sh
  12305. NULLCMD=:
  12306. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12307. @@ -20,23 +24,15 @@
  12308. alias -g '${1+"$@"}'='"$@"'
  12309. setopt NO_GLOB_SUBST
  12310. else
  12311. - case `(set -o) 2>/dev/null` in
  12312. - *posix*) set -o posix ;;
  12313. + case `(set -o) 2>/dev/null` in #(
  12314. + *posix*) :
  12315. + set -o posix ;; #(
  12316. + *) :
  12317. + ;;
  12318. esac
  12319. -
  12320. fi
  12321. -
  12322. -
  12323. -# PATH needs CR
  12324. -# Avoid depending upon Character Ranges.
  12325. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12326. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12327. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12328. -as_cr_digits='0123456789'
  12329. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  12330. -
  12331. as_nl='
  12332. '
  12333. export as_nl
  12334. @@ -44,7 +40,13 @@
  12335. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12336. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12337. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12338. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12339. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  12340. +# but without wasting forks for bash or zsh.
  12341. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  12342. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12343. + as_echo='print -r --'
  12344. + as_echo_n='print -rn --'
  12345. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12346. as_echo='printf %s\n'
  12347. as_echo_n='printf %s'
  12348. else
  12349. @@ -55,7 +57,7 @@
  12350. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12351. as_echo_n_body='eval
  12352. arg=$1;
  12353. - case $arg in
  12354. + case $arg in #(
  12355. *"$as_nl"*)
  12356. expr "X$arg" : "X\\(.*\\)$as_nl";
  12357. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12358. @@ -78,13 +80,6 @@
  12359. }
  12360. fi
  12361. -# Support unset when possible.
  12362. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12363. - as_unset=unset
  12364. -else
  12365. - as_unset=false
  12366. -fi
  12367. -
  12368. # IFS
  12369. # We need space, tab and new line, in precisely that order. Quoting is
  12370. @@ -94,15 +89,15 @@
  12371. IFS=" "" $as_nl"
  12372. # Find who we are. Look in the path if we contain no directory separator.
  12373. -case $0 in
  12374. +case $0 in #((
  12375. *[\\/]* ) as_myself=$0 ;;
  12376. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12377. for as_dir in $PATH
  12378. do
  12379. IFS=$as_save_IFS
  12380. test -z "$as_dir" && as_dir=.
  12381. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12382. -done
  12383. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12384. + done
  12385. IFS=$as_save_IFS
  12386. ;;
  12387. @@ -114,12 +109,16 @@
  12388. fi
  12389. if test ! -f "$as_myself"; then
  12390. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12391. - { (exit 1); exit 1; }
  12392. + exit 1
  12393. fi
  12394. -# Work around bugs in pre-3.0 UWIN ksh.
  12395. -for as_var in ENV MAIL MAILPATH
  12396. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12397. +# Unset variables that we do not need and which cause bugs (e.g. in
  12398. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12399. +# suppresses any "Segmentation fault" message there. '((' could
  12400. +# trigger a bug in pdksh 5.2.14.
  12401. +for as_var in BASH_ENV ENV MAIL MAILPATH
  12402. +do eval test x\${$as_var+set} = xset \
  12403. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12404. done
  12405. PS1='$ '
  12406. PS2='> '
  12407. @@ -131,330 +130,299 @@
  12408. LANGUAGE=C
  12409. export LANGUAGE
  12410. -# Required to use basename.
  12411. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  12412. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12413. - as_expr=expr
  12414. -else
  12415. - as_expr=false
  12416. -fi
  12417. -
  12418. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12419. - as_basename=basename
  12420. -else
  12421. - as_basename=false
  12422. -fi
  12423. -
  12424. -
  12425. -# Name of the executable.
  12426. -as_me=`$as_basename -- "$0" ||
  12427. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12428. - X"$0" : 'X\(//\)$' \| \
  12429. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12430. -$as_echo X/"$0" |
  12431. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  12432. - s//\1/
  12433. - q
  12434. - }
  12435. - /^X\/\(\/\/\)$/{
  12436. - s//\1/
  12437. - q
  12438. - }
  12439. - /^X\/\(\/\).*/{
  12440. - s//\1/
  12441. - q
  12442. - }
  12443. - s/.*/./; q'`
  12444. -
  12445. # CDPATH.
  12446. -$as_unset CDPATH
  12447. -
  12448. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12449. if test "x$CONFIG_SHELL" = x; then
  12450. - if (eval ":") 2>/dev/null; then
  12451. - as_have_required=yes
  12452. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  12453. + emulate sh
  12454. + NULLCMD=:
  12455. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  12456. + # is contrary to our usage. Disable this feature.
  12457. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  12458. + setopt NO_GLOB_SUBST
  12459. else
  12460. - as_have_required=no
  12461. + case \`(set -o) 2>/dev/null\` in #(
  12462. + *posix*) :
  12463. + set -o posix ;; #(
  12464. + *) :
  12465. + ;;
  12466. +esac
  12467. fi
  12468. -
  12469. - if test $as_have_required = yes && (eval ":
  12470. -(as_func_return () {
  12471. - (exit \$1)
  12472. -}
  12473. -as_func_success () {
  12474. - as_func_return 0
  12475. -}
  12476. -as_func_failure () {
  12477. - as_func_return 1
  12478. -}
  12479. -as_func_ret_success () {
  12480. - return 0
  12481. -}
  12482. -as_func_ret_failure () {
  12483. - return 1
  12484. -}
  12485. +"
  12486. + as_required="as_fn_return () { (exit \$1); }
  12487. +as_fn_success () { as_fn_return 0; }
  12488. +as_fn_failure () { as_fn_return 1; }
  12489. +as_fn_ret_success () { return 0; }
  12490. +as_fn_ret_failure () { return 1; }
  12491. exitcode=0
  12492. -if as_func_success; then
  12493. - :
  12494. -else
  12495. - exitcode=1
  12496. - echo as_func_success failed.
  12497. -fi
  12498. -
  12499. -if as_func_failure; then
  12500. - exitcode=1
  12501. - echo as_func_failure succeeded.
  12502. -fi
  12503. -
  12504. -if as_func_ret_success; then
  12505. - :
  12506. -else
  12507. - exitcode=1
  12508. - echo as_func_ret_success failed.
  12509. -fi
  12510. -
  12511. -if as_func_ret_failure; then
  12512. - exitcode=1
  12513. - echo as_func_ret_failure succeeded.
  12514. -fi
  12515. -
  12516. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  12517. - :
  12518. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  12519. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  12520. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  12521. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  12522. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  12523. +
  12524. +else
  12525. + exitcode=1; echo positional parameters were not saved.
  12526. +fi
  12527. +test x\$exitcode = x0 || exit 1"
  12528. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  12529. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  12530. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  12531. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  12532. +test \$(( 1 + 1 )) = 2 || exit 1"
  12533. + if (eval "$as_required") 2>/dev/null; then :
  12534. + as_have_required=yes
  12535. else
  12536. - exitcode=1
  12537. - echo positional parameters were not saved.
  12538. + as_have_required=no
  12539. fi
  12540. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  12541. -test \$exitcode = 0) || { (exit 1); exit 1; }
  12542. -
  12543. -(
  12544. - as_lineno_1=\$LINENO
  12545. - as_lineno_2=\$LINENO
  12546. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  12547. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  12548. -") 2> /dev/null; then
  12549. - :
  12550. else
  12551. - as_candidate_shells=
  12552. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12553. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12554. +as_found=false
  12555. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12556. do
  12557. IFS=$as_save_IFS
  12558. test -z "$as_dir" && as_dir=.
  12559. - case $as_dir in
  12560. + as_found=:
  12561. + case $as_dir in #(
  12562. /*)
  12563. for as_base in sh bash ksh sh5; do
  12564. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  12565. + # Try only shells that exist, to save several forks.
  12566. + as_shell=$as_dir/$as_base
  12567. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12568. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12569. + CONFIG_SHELL=$as_shell as_have_required=yes
  12570. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  12571. + break 2
  12572. +fi
  12573. +fi
  12574. done;;
  12575. esac
  12576. + as_found=false
  12577. done
  12578. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  12579. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  12580. + CONFIG_SHELL=$SHELL as_have_required=yes
  12581. +fi; }
  12582. IFS=$as_save_IFS
  12583. - for as_shell in $as_candidate_shells $SHELL; do
  12584. - # Try only shells that exist, to save several forks.
  12585. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  12586. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  12587. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12588. - emulate sh
  12589. - NULLCMD=:
  12590. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12591. - # is contrary to our usage. Disable this feature.
  12592. - alias -g '${1+"$@"}'='"$@"'
  12593. - setopt NO_GLOB_SUBST
  12594. -else
  12595. - case `(set -o) 2>/dev/null` in
  12596. - *posix*) set -o posix ;;
  12597. -esac
  12598. -
  12599. -fi
  12600. -
  12601. -
  12602. -:
  12603. -_ASEOF
  12604. -}; then
  12605. - CONFIG_SHELL=$as_shell
  12606. - as_have_required=yes
  12607. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  12608. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12609. - emulate sh
  12610. - NULLCMD=:
  12611. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12612. - # is contrary to our usage. Disable this feature.
  12613. - alias -g '${1+"$@"}'='"$@"'
  12614. - setopt NO_GLOB_SUBST
  12615. -else
  12616. - case `(set -o) 2>/dev/null` in
  12617. - *posix*) set -o posix ;;
  12618. -esac
  12619. -
  12620. -fi
  12621. -
  12622. -
  12623. -:
  12624. -(as_func_return () {
  12625. - (exit $1)
  12626. -}
  12627. -as_func_success () {
  12628. - as_func_return 0
  12629. -}
  12630. -as_func_failure () {
  12631. - as_func_return 1
  12632. -}
  12633. -as_func_ret_success () {
  12634. - return 0
  12635. -}
  12636. -as_func_ret_failure () {
  12637. - return 1
  12638. -}
  12639. -
  12640. -exitcode=0
  12641. -if as_func_success; then
  12642. - :
  12643. -else
  12644. - exitcode=1
  12645. - echo as_func_success failed.
  12646. -fi
  12647. -
  12648. -if as_func_failure; then
  12649. - exitcode=1
  12650. - echo as_func_failure succeeded.
  12651. -fi
  12652. -
  12653. -if as_func_ret_success; then
  12654. - :
  12655. -else
  12656. - exitcode=1
  12657. - echo as_func_ret_success failed.
  12658. -fi
  12659. -
  12660. -if as_func_ret_failure; then
  12661. - exitcode=1
  12662. - echo as_func_ret_failure succeeded.
  12663. -fi
  12664. -
  12665. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  12666. - :
  12667. -else
  12668. - exitcode=1
  12669. - echo positional parameters were not saved.
  12670. -fi
  12671. -
  12672. -test $exitcode = 0) || { (exit 1); exit 1; }
  12673. -
  12674. -(
  12675. - as_lineno_1=$LINENO
  12676. - as_lineno_2=$LINENO
  12677. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  12678. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  12679. -
  12680. -_ASEOF
  12681. -}; then
  12682. - break
  12683. -fi
  12684. -
  12685. -fi
  12686. -
  12687. - done
  12688. -
  12689. - if test "x$CONFIG_SHELL" != x; then
  12690. - for as_var in BASH_ENV ENV
  12691. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12692. - done
  12693. + if test "x$CONFIG_SHELL" != x; then :
  12694. + # We cannot yet assume a decent shell, so we have to provide a
  12695. + # neutralization value for shells without unset; and this also
  12696. + # works around shells that cannot unset nonexistent variables.
  12697. + BASH_ENV=/dev/null
  12698. + ENV=/dev/null
  12699. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  12700. export CONFIG_SHELL
  12701. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  12702. fi
  12703. -
  12704. - if test $as_have_required = no; then
  12705. - echo This script requires a shell more modern than all the
  12706. - echo shells that I found on your system. Please install a
  12707. - echo modern shell, or manually run the script under such a
  12708. - echo shell if you do have one.
  12709. - { (exit 1); exit 1; }
  12710. + if test x$as_have_required = xno; then :
  12711. + $as_echo "$0: This script requires a shell more modern than all"
  12712. + $as_echo "$0: the shells that I found on your system."
  12713. + if test x${ZSH_VERSION+set} = xset ; then
  12714. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  12715. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  12716. + else
  12717. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  12718. +$0: including any error possibly output before this
  12719. +$0: message. Then install a modern shell, or manually run
  12720. +$0: the script under such a shell if you do have one."
  12721. + fi
  12722. + exit 1
  12723. fi
  12724. -
  12725. -
  12726. fi
  12727. -
  12728. fi
  12729. +SHELL=${CONFIG_SHELL-/bin/sh}
  12730. +export SHELL
  12731. +# Unset more variables known to interfere with behavior of common tools.
  12732. +CLICOLOR_FORCE= GREP_OPTIONS=
  12733. +unset CLICOLOR_FORCE GREP_OPTIONS
  12734. +
  12735. +## --------------------- ##
  12736. +## M4sh Shell Functions. ##
  12737. +## --------------------- ##
  12738. +# as_fn_unset VAR
  12739. +# ---------------
  12740. +# Portably unset VAR.
  12741. +as_fn_unset ()
  12742. +{
  12743. + { eval $1=; unset $1;}
  12744. +}
  12745. +as_unset=as_fn_unset
  12746. +
  12747. +# as_fn_set_status STATUS
  12748. +# -----------------------
  12749. +# Set $? to STATUS, without forking.
  12750. +as_fn_set_status ()
  12751. +{
  12752. + return $1
  12753. +} # as_fn_set_status
  12754. +
  12755. +# as_fn_exit STATUS
  12756. +# -----------------
  12757. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12758. +as_fn_exit ()
  12759. +{
  12760. + set +e
  12761. + as_fn_set_status $1
  12762. + exit $1
  12763. +} # as_fn_exit
  12764. +
  12765. +# as_fn_mkdir_p
  12766. +# -------------
  12767. +# Create "$as_dir" as a directory, including parents if necessary.
  12768. +as_fn_mkdir_p ()
  12769. +{
  12770. + case $as_dir in #(
  12771. + -*) as_dir=./$as_dir;;
  12772. + esac
  12773. + test -d "$as_dir" || eval $as_mkdir_p || {
  12774. + as_dirs=
  12775. + while :; do
  12776. + case $as_dir in #(
  12777. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12778. + *) as_qdir=$as_dir;;
  12779. + esac
  12780. + as_dirs="'$as_qdir' $as_dirs"
  12781. + as_dir=`$as_dirname -- "$as_dir" ||
  12782. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12783. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12784. + X"$as_dir" : 'X\(//\)$' \| \
  12785. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12786. +$as_echo X"$as_dir" |
  12787. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12788. + s//\1/
  12789. + q
  12790. + }
  12791. + /^X\(\/\/\)[^/].*/{
  12792. + s//\1/
  12793. + q
  12794. + }
  12795. + /^X\(\/\/\)$/{
  12796. + s//\1/
  12797. + q
  12798. + }
  12799. + /^X\(\/\).*/{
  12800. + s//\1/
  12801. + q
  12802. + }
  12803. + s/.*/./; q'`
  12804. + test -d "$as_dir" && break
  12805. + done
  12806. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  12807. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12808. -(eval "as_func_return () {
  12809. - (exit \$1)
  12810. -}
  12811. -as_func_success () {
  12812. - as_func_return 0
  12813. -}
  12814. -as_func_failure () {
  12815. - as_func_return 1
  12816. -}
  12817. -as_func_ret_success () {
  12818. - return 0
  12819. -}
  12820. -as_func_ret_failure () {
  12821. - return 1
  12822. -}
  12823. +} # as_fn_mkdir_p
  12824. +# as_fn_append VAR VALUE
  12825. +# ----------------------
  12826. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  12827. +# advantage of any shell optimizations that allow amortized linear growth over
  12828. +# repeated appends, instead of the typical quadratic growth present in naive
  12829. +# implementations.
  12830. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12831. + eval 'as_fn_append ()
  12832. + {
  12833. + eval $1+=\$2
  12834. + }'
  12835. +else
  12836. + as_fn_append ()
  12837. + {
  12838. + eval $1=\$$1\$2
  12839. + }
  12840. +fi # as_fn_append
  12841. -exitcode=0
  12842. -if as_func_success; then
  12843. - :
  12844. +# as_fn_arith ARG...
  12845. +# ------------------
  12846. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  12847. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  12848. +# must be portable across $(()) and expr.
  12849. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12850. + eval 'as_fn_arith ()
  12851. + {
  12852. + as_val=$(( $* ))
  12853. + }'
  12854. else
  12855. - exitcode=1
  12856. - echo as_func_success failed.
  12857. -fi
  12858. + as_fn_arith ()
  12859. + {
  12860. + as_val=`expr "$@" || test $? -eq 1`
  12861. + }
  12862. +fi # as_fn_arith
  12863. -if as_func_failure; then
  12864. - exitcode=1
  12865. - echo as_func_failure succeeded.
  12866. -fi
  12867. -if as_func_ret_success; then
  12868. - :
  12869. +# as_fn_error ERROR [LINENO LOG_FD]
  12870. +# ---------------------------------
  12871. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12872. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12873. +# script with status $?, using 1 if that was 0.
  12874. +as_fn_error ()
  12875. +{
  12876. + as_status=$?; test $as_status -eq 0 && as_status=1
  12877. + if test "$3"; then
  12878. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12879. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12880. + fi
  12881. + $as_echo "$as_me: error: $1" >&2
  12882. + as_fn_exit $as_status
  12883. +} # as_fn_error
  12884. +
  12885. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  12886. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12887. + as_expr=expr
  12888. else
  12889. - exitcode=1
  12890. - echo as_func_ret_success failed.
  12891. + as_expr=false
  12892. fi
  12893. -if as_func_ret_failure; then
  12894. - exitcode=1
  12895. - echo as_func_ret_failure succeeded.
  12896. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12897. + as_basename=basename
  12898. +else
  12899. + as_basename=false
  12900. fi
  12901. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  12902. - :
  12903. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12904. + as_dirname=dirname
  12905. else
  12906. - exitcode=1
  12907. - echo positional parameters were not saved.
  12908. + as_dirname=false
  12909. fi
  12910. -test \$exitcode = 0") || {
  12911. - echo No shell found that supports shell functions.
  12912. - echo Please tell bug-autoconf@gnu.org about your system,
  12913. - echo including any error possibly output before this message.
  12914. - echo This can help us improve future autoconf versions.
  12915. - echo Configuration will now proceed without shell functions.
  12916. -}
  12917. +as_me=`$as_basename -- "$0" ||
  12918. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12919. + X"$0" : 'X\(//\)$' \| \
  12920. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12921. +$as_echo X/"$0" |
  12922. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  12923. + s//\1/
  12924. + q
  12925. + }
  12926. + /^X\/\(\/\/\)$/{
  12927. + s//\1/
  12928. + q
  12929. + }
  12930. + /^X\/\(\/\).*/{
  12931. + s//\1/
  12932. + q
  12933. + }
  12934. + s/.*/./; q'`
  12935. +# Avoid depending upon Character Ranges.
  12936. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12937. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12938. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12939. +as_cr_digits='0123456789'
  12940. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  12941. - as_lineno_1=$LINENO
  12942. - as_lineno_2=$LINENO
  12943. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  12944. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12945. -
  12946. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12947. - # uniformly replaced by the line number. The first 'sed' inserts a
  12948. - # line-number line after each line using $LINENO; the second 'sed'
  12949. - # does the real work. The second script uses 'N' to pair each
  12950. - # line-number line with the line containing $LINENO, and appends
  12951. - # trailing '-' during substitution so that $LINENO is not a special
  12952. - # case at line end.
  12953. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12954. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  12955. - # E. McMahon (1931-1989) for sed's syntax. :-)
  12956. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  12957. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  12958. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  12959. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  12960. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  12961. sed -n '
  12962. p
  12963. /[$]LINENO/=
  12964. @@ -471,8 +439,7 @@
  12965. s/-\n.*//
  12966. ' >$as_me.lineno &&
  12967. chmod +x "$as_me.lineno" ||
  12968. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12969. - { (exit 1); exit 1; }; }
  12970. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  12971. # Don't try to exec as it changes $[0], causing all sort of problems
  12972. # (the dirname of $[0] is not the place where we might find the
  12973. @@ -482,29 +449,18 @@
  12974. exit
  12975. }
  12976. -
  12977. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12978. - as_dirname=dirname
  12979. -else
  12980. - as_dirname=false
  12981. -fi
  12982. -
  12983. ECHO_C= ECHO_N= ECHO_T=
  12984. -case `echo -n x` in
  12985. +case `echo -n x` in #(((((
  12986. -n*)
  12987. - case `echo 'x\c'` in
  12988. + case `echo 'xy\c'` in
  12989. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12990. - *) ECHO_C='\c';;
  12991. + xy) ECHO_C='\c';;
  12992. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12993. + ECHO_T=' ';;
  12994. esac;;
  12995. *)
  12996. ECHO_N='-n';;
  12997. esac
  12998. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  12999. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13000. - as_expr=expr
  13001. -else
  13002. - as_expr=false
  13003. -fi
  13004. rm -f conf$$ conf$$.exe conf$$.file
  13005. if test -d conf$$.dir; then
  13006. @@ -534,7 +490,7 @@
  13007. rmdir conf$$.dir 2>/dev/null
  13008. if mkdir -p . 2>/dev/null; then
  13009. - as_mkdir_p=:
  13010. + as_mkdir_p='mkdir -p "$as_dir"'
  13011. else
  13012. test -d ./-p && rmdir ./-p
  13013. as_mkdir_p=false
  13014. @@ -553,10 +509,10 @@
  13015. if test -d "$1"; then
  13016. test -d "$1/.";
  13017. else
  13018. - case $1 in
  13019. + case $1 in #(
  13020. -*)set "./$1";;
  13021. esac;
  13022. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13023. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13024. ???[sx]*):;;*)false;;esac;fi
  13025. '\'' sh
  13026. '
  13027. @@ -571,26 +527,25 @@
  13028. -
  13029. # Check that we are running under the correct shell.
  13030. SHELL=${CONFIG_SHELL-/bin/sh}
  13031. -case X$ECHO in
  13032. +case X$lt_ECHO in
  13033. X*--fallback-echo)
  13034. # Remove one level of quotation (which was required for Make).
  13035. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13036. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13037. ;;
  13038. esac
  13039. -echo=${ECHO-echo}
  13040. +ECHO=${lt_ECHO-echo}
  13041. if test "X$1" = X--no-reexec; then
  13042. # Discard the --no-reexec flag, and continue.
  13043. shift
  13044. elif test "X$1" = X--fallback-echo; then
  13045. # Avoid inline document here, it may be left over
  13046. :
  13047. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13048. - # Yippee, $echo works!
  13049. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13050. + # Yippee, $ECHO works!
  13051. :
  13052. else
  13053. # Restart under the correct shell.
  13054. @@ -600,9 +555,9 @@
  13055. if test "X$1" = X--fallback-echo; then
  13056. # used as fallback echo
  13057. shift
  13058. - cat <<EOF
  13059. + cat <<_LT_EOF
  13060. $*
  13061. -EOF
  13062. +_LT_EOF
  13063. exit 0
  13064. fi
  13065. @@ -610,122 +565,118 @@
  13066. # if CDPATH is set.
  13067. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13068. -if test -z "$ECHO"; then
  13069. -if test "X${echo_test_string+set}" != Xset; then
  13070. -# find a string as large as possible, as long as the shell can cope with it
  13071. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13072. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13073. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13074. - echo_test_string=`eval $cmd` &&
  13075. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13076. - then
  13077. - break
  13078. - fi
  13079. - done
  13080. -fi
  13081. +if test -z "$lt_ECHO"; then
  13082. + if test "X${echo_test_string+set}" != Xset; then
  13083. + # find a string as large as possible, as long as the shell can cope with it
  13084. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13085. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13086. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  13087. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  13088. + then
  13089. + break
  13090. + fi
  13091. + done
  13092. + fi
  13093. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13094. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13095. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13096. - :
  13097. -else
  13098. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13099. - # backslashes. This makes it impossible to quote backslashes using
  13100. - # echo "$something" | sed 's/\\/\\\\/g'
  13101. - #
  13102. - # So, first we look for a working echo in the user's PATH.
  13103. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13104. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13105. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13106. + :
  13107. + else
  13108. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  13109. + # backslashes. This makes it impossible to quote backslashes using
  13110. + # echo "$something" | sed 's/\\/\\\\/g'
  13111. + #
  13112. + # So, first we look for a working echo in the user's PATH.
  13113. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13114. - for dir in $PATH /usr/ucb; do
  13115. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13116. + for dir in $PATH /usr/ucb; do
  13117. + IFS="$lt_save_ifs"
  13118. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13119. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13120. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13121. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13122. + ECHO="$dir/echo"
  13123. + break
  13124. + fi
  13125. + done
  13126. IFS="$lt_save_ifs"
  13127. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13128. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13129. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13130. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13131. - echo="$dir/echo"
  13132. - break
  13133. - fi
  13134. - done
  13135. - IFS="$lt_save_ifs"
  13136. - if test "X$echo" = Xecho; then
  13137. - # We didn't find a better echo, so look for alternatives.
  13138. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13139. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13140. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13141. - # This shell has a builtin print -r that does the trick.
  13142. - echo='print -r'
  13143. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13144. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13145. - # If we have ksh, try running configure again with it.
  13146. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13147. - export ORIGINAL_CONFIG_SHELL
  13148. - CONFIG_SHELL=/bin/ksh
  13149. - export CONFIG_SHELL
  13150. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13151. - else
  13152. - # Try using printf.
  13153. - echo='printf %s\n'
  13154. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13155. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13156. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13157. - # Cool, printf works
  13158. - :
  13159. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13160. - test "X$echo_testing_string" = 'X\t' &&
  13161. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13162. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13163. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13164. - export CONFIG_SHELL
  13165. - SHELL="$CONFIG_SHELL"
  13166. - export SHELL
  13167. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13168. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13169. - test "X$echo_testing_string" = 'X\t' &&
  13170. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13171. + if test "X$ECHO" = Xecho; then
  13172. + # We didn't find a better echo, so look for alternatives.
  13173. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  13174. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  13175. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13176. + # This shell has a builtin print -r that does the trick.
  13177. + ECHO='print -r'
  13178. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  13179. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  13180. + # If we have ksh, try running configure again with it.
  13181. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13182. + export ORIGINAL_CONFIG_SHELL
  13183. + CONFIG_SHELL=/bin/ksh
  13184. + export CONFIG_SHELL
  13185. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13186. + else
  13187. + # Try using printf.
  13188. + ECHO='printf %s\n'
  13189. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13190. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13191. test "X$echo_testing_string" = "X$echo_test_string"; then
  13192. - echo="$CONFIG_SHELL $0 --fallback-echo"
  13193. - else
  13194. - # maybe with a smaller string...
  13195. - prev=:
  13196. + # Cool, printf works
  13197. + :
  13198. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13199. + test "X$echo_testing_string" = 'X\t' &&
  13200. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13201. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13202. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13203. + export CONFIG_SHELL
  13204. + SHELL="$CONFIG_SHELL"
  13205. + export SHELL
  13206. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13207. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13208. + test "X$echo_testing_string" = 'X\t' &&
  13209. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13210. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13211. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13212. + else
  13213. + # maybe with a smaller string...
  13214. + prev=:
  13215. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13216. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13217. - then
  13218. - break
  13219. - fi
  13220. - prev="$cmd"
  13221. - done
  13222. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13223. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  13224. + then
  13225. + break
  13226. + fi
  13227. + prev="$cmd"
  13228. + done
  13229. - if test "$prev" != 'sed 50q "$0"'; then
  13230. - echo_test_string=`eval $prev`
  13231. - export echo_test_string
  13232. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13233. - else
  13234. - # Oops. We lost completely, so just stick with echo.
  13235. - echo=echo
  13236. - fi
  13237. + if test "$prev" != 'sed 50q "$0"'; then
  13238. + echo_test_string=`eval $prev`
  13239. + export echo_test_string
  13240. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13241. + else
  13242. + # Oops. We lost completely, so just stick with echo.
  13243. + ECHO=echo
  13244. + fi
  13245. + fi
  13246. fi
  13247. fi
  13248. fi
  13249. fi
  13250. -fi
  13251. # Copy echo and quote the copy suitably for passing to libtool from
  13252. # the Makefile, instead of quoting the original, which is used later.
  13253. -ECHO=$echo
  13254. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13255. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13256. +lt_ECHO=$ECHO
  13257. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13258. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13259. fi
  13260. -tagnames=${tagnames+${tagnames},}CXX
  13261. -
  13262. -tagnames=${tagnames+${tagnames},}F77
  13263. -
  13264. -exec 7<&0 </dev/null 6>&1
  13265. +test -n "$DJDIR" || exec 7<&0 </dev/null
  13266. +exec 6>&1
  13267. # Name of the host.
  13268. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  13269. @@ -743,7 +694,6 @@
  13270. subdirs=
  13271. MFLAGS=
  13272. MAKEFLAGS=
  13273. -SHELL=${CONFIG_SHELL-/bin/sh}
  13274. # Identity of this package.
  13275. PACKAGE_NAME='rpcbind'
  13276. @@ -751,6 +701,7 @@
  13277. PACKAGE_VERSION='0.2.0'
  13278. PACKAGE_STRING='rpcbind 0.2.0'
  13279. PACKAGE_BUGREPORT=''
  13280. +PACKAGE_URL=''
  13281. ac_unique_file="src/rpcbind.c"
  13282. ac_default_prefix=/usr
  13283. @@ -791,7 +742,9 @@
  13284. # include <unistd.h>
  13285. #endif"
  13286. -ac_subst_vars='LTLIBOBJS
  13287. +ac_subst_vars='am__EXEEXT_FALSE
  13288. +am__EXEEXT_TRUE
  13289. +LTLIBOBJS
  13290. LIBOBJS
  13291. LIBWRAP_FALSE
  13292. LIBWRAP_TRUE
  13293. @@ -801,24 +754,22 @@
  13294. WARMSTART_TRUE
  13295. DEBUG_FALSE
  13296. DEBUG_TRUE
  13297. -LIBTOOL
  13298. -ac_ct_F77
  13299. -FFLAGS
  13300. -F77
  13301. -CXXCPP
  13302. -am__fastdepCXX_FALSE
  13303. -am__fastdepCXX_TRUE
  13304. -CXXDEPMODE
  13305. -ac_ct_CXX
  13306. -CXXFLAGS
  13307. -CXX
  13308. CPP
  13309. +OTOOL64
  13310. +OTOOL
  13311. +LIPO
  13312. NMEDIT
  13313. DSYMUTIL
  13314. +lt_ECHO
  13315. RANLIB
  13316. AR
  13317. -ECHO
  13318. +OBJDUMP
  13319. LN_S
  13320. +NM
  13321. +ac_ct_DUMPBIN
  13322. +DUMPBIN
  13323. +LD
  13324. +FGREP
  13325. EGREP
  13326. GREP
  13327. SED
  13328. @@ -830,6 +781,7 @@
  13329. build_vendor
  13330. build_cpu
  13331. build
  13332. +LIBTOOL
  13333. am__fastdepCC_FALSE
  13334. am__fastdepCC_TRUE
  13335. CCDEPMODE
  13336. @@ -899,6 +851,7 @@
  13337. program_transform_name
  13338. prefix
  13339. exec_prefix
  13340. +PACKAGE_URL
  13341. PACKAGE_BUGREPORT
  13342. PACKAGE_STRING
  13343. PACKAGE_VERSION
  13344. @@ -912,11 +865,10 @@
  13345. enable_dependency_tracking
  13346. enable_shared
  13347. enable_static
  13348. +with_pic
  13349. enable_fast_install
  13350. with_gnu_ld
  13351. enable_libtool_lock
  13352. -with_pic
  13353. -with_tags
  13354. enable_debug
  13355. enable_warmstarts
  13356. with_statedir
  13357. @@ -931,13 +883,7 @@
  13358. LDFLAGS
  13359. LIBS
  13360. CPPFLAGS
  13361. -CPP
  13362. -CXX
  13363. -CXXFLAGS
  13364. -CCC
  13365. -CXXCPP
  13366. -F77
  13367. -FFLAGS'
  13368. +CPP'
  13369. # Initialize some variables set by options.
  13370. @@ -1046,8 +992,7 @@
  13371. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  13372. # Reject names that are not valid shell variable names.
  13373. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13374. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  13375. - { (exit 1); exit 1; }; }
  13376. + as_fn_error "invalid feature name: $ac_useropt"
  13377. ac_useropt_orig=$ac_useropt
  13378. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13379. case $ac_user_opts in
  13380. @@ -1073,8 +1018,7 @@
  13381. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  13382. # Reject names that are not valid shell variable names.
  13383. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13384. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  13385. - { (exit 1); exit 1; }; }
  13386. + as_fn_error "invalid feature name: $ac_useropt"
  13387. ac_useropt_orig=$ac_useropt
  13388. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13389. case $ac_user_opts in
  13390. @@ -1278,8 +1222,7 @@
  13391. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  13392. # Reject names that are not valid shell variable names.
  13393. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13394. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  13395. - { (exit 1); exit 1; }; }
  13396. + as_fn_error "invalid package name: $ac_useropt"
  13397. ac_useropt_orig=$ac_useropt
  13398. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13399. case $ac_user_opts in
  13400. @@ -1295,8 +1238,7 @@
  13401. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  13402. # Reject names that are not valid shell variable names.
  13403. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  13404. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  13405. - { (exit 1); exit 1; }; }
  13406. + as_fn_error "invalid package name: $ac_useropt"
  13407. ac_useropt_orig=$ac_useropt
  13408. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  13409. case $ac_user_opts in
  13410. @@ -1326,17 +1268,17 @@
  13411. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  13412. x_libraries=$ac_optarg ;;
  13413. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  13414. -Try \`$0 --help' for more information." >&2
  13415. - { (exit 1); exit 1; }; }
  13416. + -*) as_fn_error "unrecognized option: \`$ac_option'
  13417. +Try \`$0 --help' for more information."
  13418. ;;
  13419. *=*)
  13420. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  13421. # Reject names that are not valid shell variable names.
  13422. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  13423. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  13424. - { (exit 1); exit 1; }; }
  13425. + case $ac_envvar in #(
  13426. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  13427. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  13428. + esac
  13429. eval $ac_envvar=\$ac_optarg
  13430. export $ac_envvar ;;
  13431. @@ -1353,15 +1295,13 @@
  13432. if test -n "$ac_prev"; then
  13433. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  13434. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  13435. - { (exit 1); exit 1; }; }
  13436. + as_fn_error "missing argument to $ac_option"
  13437. fi
  13438. if test -n "$ac_unrecognized_opts"; then
  13439. case $enable_option_checking in
  13440. no) ;;
  13441. - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  13442. - { (exit 1); exit 1; }; } ;;
  13443. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  13444. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  13445. esac
  13446. fi
  13447. @@ -1384,8 +1324,7 @@
  13448. [\\/$]* | ?:[\\/]* ) continue;;
  13449. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  13450. esac
  13451. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  13452. - { (exit 1); exit 1; }; }
  13453. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  13454. done
  13455. # There might be people who depend on the old broken behavior: `$host'
  13456. @@ -1415,11 +1354,9 @@
  13457. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  13458. ac_ls_di=`ls -di .` &&
  13459. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  13460. - { $as_echo "$as_me: error: working directory cannot be determined" >&2
  13461. - { (exit 1); exit 1; }; }
  13462. + as_fn_error "working directory cannot be determined"
  13463. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  13464. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  13465. - { (exit 1); exit 1; }; }
  13466. + as_fn_error "pwd does not report name of working directory"
  13467. # Find the source files, if location was not specified.
  13468. @@ -1458,13 +1395,11 @@
  13469. fi
  13470. if test ! -r "$srcdir/$ac_unique_file"; then
  13471. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  13472. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  13473. - { (exit 1); exit 1; }; }
  13474. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  13475. fi
  13476. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  13477. ac_abs_confdir=`(
  13478. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  13479. - { (exit 1); exit 1; }; }
  13480. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  13481. pwd)`
  13482. # When building in place, set srcdir=.
  13483. if test "$ac_abs_confdir" = "$ac_pwd"; then
  13484. @@ -1582,10 +1517,9 @@
  13485. Optional Packages:
  13486. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  13487. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  13488. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13489. --with-pic try to use only PIC/non-PIC objects [default=use
  13490. both]
  13491. - --with-tags[=TAGS] include additional configurations [automatic]
  13492. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13493. --with-statedir=/foo use state dir /foo /tmp
  13494. --with-rpcuser=user uid to use root
  13495. @@ -1595,18 +1529,14 @@
  13496. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  13497. nonstandard directory <lib dir>
  13498. LIBS libraries to pass to the linker, e.g. -l<library>
  13499. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  13500. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  13501. you have headers in a nonstandard directory <include dir>
  13502. CPP C preprocessor
  13503. - CXX C++ compiler command
  13504. - CXXFLAGS C++ compiler flags
  13505. - CXXCPP C++ preprocessor
  13506. - F77 Fortran 77 compiler command
  13507. - FFLAGS Fortran 77 compiler flags
  13508. Use these variables to override the choices made by `configure' or to help
  13509. it to find libraries and programs with nonstandard names/locations.
  13510. +Report bugs to the package provider.
  13511. _ACEOF
  13512. ac_status=$?
  13513. fi
  13514. @@ -1670,21 +1600,372 @@
  13515. if $ac_init_version; then
  13516. cat <<\_ACEOF
  13517. rpcbind configure 0.2.0
  13518. -generated by GNU Autoconf 2.63
  13519. +generated by GNU Autoconf 2.65
  13520. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13521. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13522. +Copyright (C) 2009 Free Software Foundation, Inc.
  13523. This configure script is free software; the Free Software Foundation
  13524. gives unlimited permission to copy, distribute and modify it.
  13525. _ACEOF
  13526. exit
  13527. fi
  13528. +
  13529. +## ------------------------ ##
  13530. +## Autoconf initialization. ##
  13531. +## ------------------------ ##
  13532. +
  13533. +# ac_fn_c_try_compile LINENO
  13534. +# --------------------------
  13535. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  13536. +ac_fn_c_try_compile ()
  13537. +{
  13538. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13539. + rm -f conftest.$ac_objext
  13540. + if { { ac_try="$ac_compile"
  13541. +case "(($ac_try" in
  13542. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13543. + *) ac_try_echo=$ac_try;;
  13544. +esac
  13545. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13546. +$as_echo "$ac_try_echo"; } >&5
  13547. + (eval "$ac_compile") 2>conftest.err
  13548. + ac_status=$?
  13549. + if test -s conftest.err; then
  13550. + grep -v '^ *+' conftest.err >conftest.er1
  13551. + cat conftest.er1 >&5
  13552. + mv -f conftest.er1 conftest.err
  13553. + fi
  13554. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13555. + test $ac_status = 0; } && {
  13556. + test -z "$ac_c_werror_flag" ||
  13557. + test ! -s conftest.err
  13558. + } && test -s conftest.$ac_objext; then :
  13559. + ac_retval=0
  13560. +else
  13561. + $as_echo "$as_me: failed program was:" >&5
  13562. +sed 's/^/| /' conftest.$ac_ext >&5
  13563. +
  13564. + ac_retval=1
  13565. +fi
  13566. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13567. + as_fn_set_status $ac_retval
  13568. +
  13569. +} # ac_fn_c_try_compile
  13570. +
  13571. +# ac_fn_c_try_link LINENO
  13572. +# -----------------------
  13573. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  13574. +ac_fn_c_try_link ()
  13575. +{
  13576. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13577. + rm -f conftest.$ac_objext conftest$ac_exeext
  13578. + if { { ac_try="$ac_link"
  13579. +case "(($ac_try" in
  13580. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13581. + *) ac_try_echo=$ac_try;;
  13582. +esac
  13583. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13584. +$as_echo "$ac_try_echo"; } >&5
  13585. + (eval "$ac_link") 2>conftest.err
  13586. + ac_status=$?
  13587. + if test -s conftest.err; then
  13588. + grep -v '^ *+' conftest.err >conftest.er1
  13589. + cat conftest.er1 >&5
  13590. + mv -f conftest.er1 conftest.err
  13591. + fi
  13592. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13593. + test $ac_status = 0; } && {
  13594. + test -z "$ac_c_werror_flag" ||
  13595. + test ! -s conftest.err
  13596. + } && test -s conftest$ac_exeext && {
  13597. + test "$cross_compiling" = yes ||
  13598. + $as_test_x conftest$ac_exeext
  13599. + }; then :
  13600. + ac_retval=0
  13601. +else
  13602. + $as_echo "$as_me: failed program was:" >&5
  13603. +sed 's/^/| /' conftest.$ac_ext >&5
  13604. +
  13605. + ac_retval=1
  13606. +fi
  13607. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  13608. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  13609. + # interfere with the next link command; also delete a directory that is
  13610. + # left behind by Apple's compiler. We do this before executing the actions.
  13611. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  13612. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13613. + as_fn_set_status $ac_retval
  13614. +
  13615. +} # ac_fn_c_try_link
  13616. +
  13617. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  13618. +# -------------------------------------------------------
  13619. +# Tests whether HEADER exists and can be compiled using the include files in
  13620. +# INCLUDES, setting the cache variable VAR accordingly.
  13621. +ac_fn_c_check_header_compile ()
  13622. +{
  13623. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13624. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13625. +$as_echo_n "checking for $2... " >&6; }
  13626. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13627. + $as_echo_n "(cached) " >&6
  13628. +else
  13629. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13630. +/* end confdefs.h. */
  13631. +$4
  13632. +#include <$2>
  13633. +_ACEOF
  13634. +if ac_fn_c_try_compile "$LINENO"; then :
  13635. + eval "$3=yes"
  13636. +else
  13637. + eval "$3=no"
  13638. +fi
  13639. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13640. +fi
  13641. +eval ac_res=\$$3
  13642. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13643. +$as_echo "$ac_res" >&6; }
  13644. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13645. +
  13646. +} # ac_fn_c_check_header_compile
  13647. +
  13648. +# ac_fn_c_try_cpp LINENO
  13649. +# ----------------------
  13650. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  13651. +ac_fn_c_try_cpp ()
  13652. +{
  13653. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13654. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  13655. +case "(($ac_try" in
  13656. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13657. + *) ac_try_echo=$ac_try;;
  13658. +esac
  13659. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13660. +$as_echo "$ac_try_echo"; } >&5
  13661. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  13662. + ac_status=$?
  13663. + if test -s conftest.err; then
  13664. + grep -v '^ *+' conftest.err >conftest.er1
  13665. + cat conftest.er1 >&5
  13666. + mv -f conftest.er1 conftest.err
  13667. + fi
  13668. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13669. + test $ac_status = 0; } >/dev/null && {
  13670. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13671. + test ! -s conftest.err
  13672. + }; then :
  13673. + ac_retval=0
  13674. +else
  13675. + $as_echo "$as_me: failed program was:" >&5
  13676. +sed 's/^/| /' conftest.$ac_ext >&5
  13677. +
  13678. + ac_retval=1
  13679. +fi
  13680. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13681. + as_fn_set_status $ac_retval
  13682. +
  13683. +} # ac_fn_c_try_cpp
  13684. +
  13685. +# ac_fn_c_try_run LINENO
  13686. +# ----------------------
  13687. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  13688. +# that executables *can* be run.
  13689. +ac_fn_c_try_run ()
  13690. +{
  13691. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13692. + if { { ac_try="$ac_link"
  13693. +case "(($ac_try" in
  13694. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13695. + *) ac_try_echo=$ac_try;;
  13696. +esac
  13697. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13698. +$as_echo "$ac_try_echo"; } >&5
  13699. + (eval "$ac_link") 2>&5
  13700. + ac_status=$?
  13701. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13702. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  13703. + { { case "(($ac_try" in
  13704. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13705. + *) ac_try_echo=$ac_try;;
  13706. +esac
  13707. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13708. +$as_echo "$ac_try_echo"; } >&5
  13709. + (eval "$ac_try") 2>&5
  13710. + ac_status=$?
  13711. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13712. + test $ac_status = 0; }; }; then :
  13713. + ac_retval=0
  13714. +else
  13715. + $as_echo "$as_me: program exited with status $ac_status" >&5
  13716. + $as_echo "$as_me: failed program was:" >&5
  13717. +sed 's/^/| /' conftest.$ac_ext >&5
  13718. +
  13719. + ac_retval=$ac_status
  13720. +fi
  13721. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  13722. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13723. + as_fn_set_status $ac_retval
  13724. +
  13725. +} # ac_fn_c_try_run
  13726. +
  13727. +# ac_fn_c_check_func LINENO FUNC VAR
  13728. +# ----------------------------------
  13729. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  13730. +ac_fn_c_check_func ()
  13731. +{
  13732. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13733. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13734. +$as_echo_n "checking for $2... " >&6; }
  13735. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13736. + $as_echo_n "(cached) " >&6
  13737. +else
  13738. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13739. +/* end confdefs.h. */
  13740. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  13741. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13742. +#define $2 innocuous_$2
  13743. +
  13744. +/* System header to define __stub macros and hopefully few prototypes,
  13745. + which can conflict with char $2 (); below.
  13746. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13747. + <limits.h> exists even on freestanding compilers. */
  13748. +
  13749. +#ifdef __STDC__
  13750. +# include <limits.h>
  13751. +#else
  13752. +# include <assert.h>
  13753. +#endif
  13754. +
  13755. +#undef $2
  13756. +
  13757. +/* Override any GCC internal prototype to avoid an error.
  13758. + Use char because int might match the return type of a GCC
  13759. + builtin and then its argument prototype would still apply. */
  13760. +#ifdef __cplusplus
  13761. +extern "C"
  13762. +#endif
  13763. +char $2 ();
  13764. +/* The GNU C library defines this for functions which it implements
  13765. + to always fail with ENOSYS. Some functions are actually named
  13766. + something starting with __ and the normal name is an alias. */
  13767. +#if defined __stub_$2 || defined __stub___$2
  13768. +choke me
  13769. +#endif
  13770. +
  13771. +int
  13772. +main ()
  13773. +{
  13774. +return $2 ();
  13775. + ;
  13776. + return 0;
  13777. +}
  13778. +_ACEOF
  13779. +if ac_fn_c_try_link "$LINENO"; then :
  13780. + eval "$3=yes"
  13781. +else
  13782. + eval "$3=no"
  13783. +fi
  13784. +rm -f core conftest.err conftest.$ac_objext \
  13785. + conftest$ac_exeext conftest.$ac_ext
  13786. +fi
  13787. +eval ac_res=\$$3
  13788. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13789. +$as_echo "$ac_res" >&6; }
  13790. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13791. +
  13792. +} # ac_fn_c_check_func
  13793. +
  13794. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  13795. +# -------------------------------------------------------
  13796. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  13797. +# the include files in INCLUDES and setting the cache variable VAR
  13798. +# accordingly.
  13799. +ac_fn_c_check_header_mongrel ()
  13800. +{
  13801. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13802. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13803. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13804. +$as_echo_n "checking for $2... " >&6; }
  13805. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13806. + $as_echo_n "(cached) " >&6
  13807. +fi
  13808. +eval ac_res=\$$3
  13809. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13810. +$as_echo "$ac_res" >&6; }
  13811. +else
  13812. + # Is the header compilable?
  13813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  13814. +$as_echo_n "checking $2 usability... " >&6; }
  13815. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13816. +/* end confdefs.h. */
  13817. +$4
  13818. +#include <$2>
  13819. +_ACEOF
  13820. +if ac_fn_c_try_compile "$LINENO"; then :
  13821. + ac_header_compiler=yes
  13822. +else
  13823. + ac_header_compiler=no
  13824. +fi
  13825. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13826. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  13827. +$as_echo "$ac_header_compiler" >&6; }
  13828. +
  13829. +# Is the header present?
  13830. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  13831. +$as_echo_n "checking $2 presence... " >&6; }
  13832. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13833. +/* end confdefs.h. */
  13834. +#include <$2>
  13835. +_ACEOF
  13836. +if ac_fn_c_try_cpp "$LINENO"; then :
  13837. + ac_header_preproc=yes
  13838. +else
  13839. + ac_header_preproc=no
  13840. +fi
  13841. +rm -f conftest.err conftest.$ac_ext
  13842. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  13843. +$as_echo "$ac_header_preproc" >&6; }
  13844. +
  13845. +# So? What about this header?
  13846. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  13847. + yes:no: )
  13848. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  13849. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13850. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  13851. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  13852. + ;;
  13853. + no:yes:* )
  13854. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  13855. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  13856. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  13857. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  13858. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  13859. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  13860. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  13861. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  13862. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  13863. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  13864. + ;;
  13865. +esac
  13866. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13867. +$as_echo_n "checking for $2... " >&6; }
  13868. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13869. + $as_echo_n "(cached) " >&6
  13870. +else
  13871. + eval "$3=\$ac_header_compiler"
  13872. +fi
  13873. +eval ac_res=\$$3
  13874. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13875. +$as_echo "$ac_res" >&6; }
  13876. +fi
  13877. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13878. +
  13879. +} # ac_fn_c_check_header_mongrel
  13880. cat >config.log <<_ACEOF
  13881. This file contains any messages produced by compilers while
  13882. running configure, to aid debugging if configure makes a mistake.
  13883. It was created by rpcbind $as_me 0.2.0, which was
  13884. -generated by GNU Autoconf 2.63. Invocation command line was
  13885. +generated by GNU Autoconf 2.65. Invocation command line was
  13886. $ $0 $@
  13887. @@ -1720,8 +2001,8 @@
  13888. do
  13889. IFS=$as_save_IFS
  13890. test -z "$as_dir" && as_dir=.
  13891. - $as_echo "PATH: $as_dir"
  13892. -done
  13893. + $as_echo "PATH: $as_dir"
  13894. + done
  13895. IFS=$as_save_IFS
  13896. } >&5
  13897. @@ -1758,9 +2039,9 @@
  13898. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13899. esac
  13900. case $ac_pass in
  13901. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  13902. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  13903. 2)
  13904. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  13905. + as_fn_append ac_configure_args1 " '$ac_arg'"
  13906. if test $ac_must_keep_next = true; then
  13907. ac_must_keep_next=false # Got value, back to normal.
  13908. else
  13909. @@ -1776,13 +2057,13 @@
  13910. -* ) ac_must_keep_next=true ;;
  13911. esac
  13912. fi
  13913. - ac_configure_args="$ac_configure_args '$ac_arg'"
  13914. + as_fn_append ac_configure_args " '$ac_arg'"
  13915. ;;
  13916. esac
  13917. done
  13918. done
  13919. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  13920. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  13921. +{ ac_configure_args0=; unset ac_configure_args0;}
  13922. +{ ac_configure_args1=; unset ac_configure_args1;}
  13923. # When interrupted or exit'd, cleanup temporary files, and complete
  13924. # config.log. We remove comments because anyway the quotes in there
  13925. @@ -1807,13 +2088,13 @@
  13926. case $ac_val in #(
  13927. *${as_nl}*)
  13928. case $ac_var in #(
  13929. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  13930. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13931. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13932. esac
  13933. case $ac_var in #(
  13934. _ | IFS | as_nl) ;; #(
  13935. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13936. - *) $as_unset $ac_var ;;
  13937. + *) { eval $ac_var=; unset $ac_var;} ;;
  13938. esac ;;
  13939. esac
  13940. done
  13941. @@ -1885,39 +2166,41 @@
  13942. exit $exit_status
  13943. ' 0
  13944. for ac_signal in 1 2 13 15; do
  13945. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  13946. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  13947. done
  13948. ac_signal=0
  13949. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  13950. rm -f -r conftest* confdefs.h
  13951. +$as_echo "/* confdefs.h */" > confdefs.h
  13952. +
  13953. # Predefined preprocessor variables.
  13954. cat >>confdefs.h <<_ACEOF
  13955. #define PACKAGE_NAME "$PACKAGE_NAME"
  13956. _ACEOF
  13957. -
  13958. cat >>confdefs.h <<_ACEOF
  13959. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  13960. _ACEOF
  13961. -
  13962. cat >>confdefs.h <<_ACEOF
  13963. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  13964. _ACEOF
  13965. -
  13966. cat >>confdefs.h <<_ACEOF
  13967. #define PACKAGE_STRING "$PACKAGE_STRING"
  13968. _ACEOF
  13969. -
  13970. cat >>confdefs.h <<_ACEOF
  13971. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  13972. _ACEOF
  13973. +cat >>confdefs.h <<_ACEOF
  13974. +#define PACKAGE_URL "$PACKAGE_URL"
  13975. +_ACEOF
  13976. +
  13977. # Let the site file select an alternate cache file if it wants to.
  13978. # Prefer an explicitly selected file to automatically selected ones.
  13979. @@ -1935,8 +2218,8 @@
  13980. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  13981. do
  13982. test "x$ac_site_file" = xNONE && continue
  13983. - if test -r "$ac_site_file"; then
  13984. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  13985. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  13986. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  13987. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  13988. sed 's/^/| /' "$ac_site_file" >&5
  13989. . "$ac_site_file"
  13990. @@ -1944,10 +2227,10 @@
  13991. done
  13992. if test -r "$cache_file"; then
  13993. - # Some versions of bash will fail to source /dev/null (special
  13994. - # files actually), so we avoid doing that.
  13995. - if test -f "$cache_file"; then
  13996. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  13997. + # Some versions of bash will fail to source /dev/null (special files
  13998. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  13999. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  14000. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  14001. $as_echo "$as_me: loading cache $cache_file" >&6;}
  14002. case $cache_file in
  14003. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  14004. @@ -1955,7 +2238,7 @@
  14005. esac
  14006. fi
  14007. else
  14008. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  14009. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  14010. $as_echo "$as_me: creating cache $cache_file" >&6;}
  14011. >$cache_file
  14012. fi
  14013. @@ -1970,11 +2253,11 @@
  14014. eval ac_new_val=\$ac_env_${ac_var}_value
  14015. case $ac_old_set,$ac_new_set in
  14016. set,)
  14017. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14018. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  14019. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  14020. ac_cache_corrupted=: ;;
  14021. ,set)
  14022. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  14023. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  14024. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  14025. ac_cache_corrupted=: ;;
  14026. ,);;
  14027. @@ -1984,17 +2267,17 @@
  14028. ac_old_val_w=`echo x $ac_old_val`
  14029. ac_new_val_w=`echo x $ac_new_val`
  14030. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  14031. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  14032. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  14033. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  14034. ac_cache_corrupted=:
  14035. else
  14036. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14037. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  14038. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  14039. eval $ac_var=\$ac_old_val
  14040. fi
  14041. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  14042. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  14043. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  14044. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  14045. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  14046. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  14047. fi;;
  14048. esac
  14049. @@ -2006,75 +2289,44 @@
  14050. esac
  14051. case " $ac_configure_args " in
  14052. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  14053. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  14054. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  14055. esac
  14056. fi
  14057. done
  14058. if $ac_cache_corrupted; then
  14059. - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14060. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14062. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  14063. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  14064. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  14065. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  14066. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  14067. - { (exit 1); exit 1; }; }
  14068. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  14069. fi
  14070. +## -------------------- ##
  14071. +## Main body of script. ##
  14072. +## -------------------- ##
  14073. +ac_ext=c
  14074. +ac_cpp='$CPP $CPPFLAGS'
  14075. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14076. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14077. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14078. + am__api_version='1.11'
  14079. -
  14080. -
  14081. -
  14082. -
  14083. -
  14084. -
  14085. -
  14086. -
  14087. -
  14088. -
  14089. -
  14090. -
  14091. -
  14092. -
  14093. -
  14094. -
  14095. -
  14096. -
  14097. -
  14098. -
  14099. -ac_ext=c
  14100. -ac_cpp='$CPP $CPPFLAGS'
  14101. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14102. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14103. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14104. -
  14105. -
  14106. -
  14107. - am__api_version='1.10'
  14108. -
  14109. -ac_aux_dir=
  14110. -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  14111. - if test -f "$ac_dir/install-sh"; then
  14112. - ac_aux_dir=$ac_dir
  14113. - ac_install_sh="$ac_aux_dir/install-sh -c"
  14114. - break
  14115. - elif test -f "$ac_dir/install.sh"; then
  14116. - ac_aux_dir=$ac_dir
  14117. - ac_install_sh="$ac_aux_dir/install.sh -c"
  14118. - break
  14119. - elif test -f "$ac_dir/shtool"; then
  14120. - ac_aux_dir=$ac_dir
  14121. - ac_install_sh="$ac_aux_dir/shtool install -c"
  14122. - break
  14123. - fi
  14124. -done
  14125. -if test -z "$ac_aux_dir"; then
  14126. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  14127. -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  14128. - { (exit 1); exit 1; }; }
  14129. -fi
  14130. +ac_aux_dir=
  14131. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  14132. + for ac_t in install-sh install.sh shtool; do
  14133. + if test -f "$ac_dir/$ac_t"; then
  14134. + ac_aux_dir=$ac_dir
  14135. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  14136. + break 2
  14137. + fi
  14138. + done
  14139. +done
  14140. +if test -z "$ac_aux_dir"; then
  14141. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  14142. +fi
  14143. # These three variables are undocumented and unsupported,
  14144. # and are intended to be withdrawn in a future Autoconf release.
  14145. @@ -2099,10 +2351,10 @@
  14146. # OS/2's system install, which has a completely different semantic
  14147. # ./install, which can be erroneously created by make from ./install.sh.
  14148. # Reject install programs that cannot install multiple files.
  14149. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  14150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14151. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14152. if test -z "$INSTALL"; then
  14153. -if test "${ac_cv_path_install+set}" = set; then
  14154. +if test "${ac_cv_path_install+set}" = set; then :
  14155. $as_echo_n "(cached) " >&6
  14156. else
  14157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14158. @@ -2110,11 +2362,11 @@
  14159. do
  14160. IFS=$as_save_IFS
  14161. test -z "$as_dir" && as_dir=.
  14162. - # Account for people who put trailing slashes in PATH elements.
  14163. -case $as_dir/ in
  14164. - ./ | .// | /cC/* | \
  14165. + # Account for people who put trailing slashes in PATH elements.
  14166. +case $as_dir/ in #((
  14167. + ./ | .// | /[cC]/* | \
  14168. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14169. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  14170. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14171. /usr/ucb/* ) ;;
  14172. *)
  14173. # OSF1 and SCO ODT 3.0 have their own names for install.
  14174. @@ -2151,7 +2403,7 @@
  14175. ;;
  14176. esac
  14177. -done
  14178. + done
  14179. IFS=$as_save_IFS
  14180. rm -rf conftest.one conftest.two conftest.dir
  14181. @@ -2167,7 +2419,7 @@
  14182. INSTALL=$ac_install_sh
  14183. fi
  14184. fi
  14185. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  14186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14187. $as_echo "$INSTALL" >&6; }
  14188. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14189. @@ -2178,21 +2430,34 @@
  14190. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14191. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  14192. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  14193. $as_echo_n "checking whether build environment is sane... " >&6; }
  14194. # Just in case
  14195. sleep 1
  14196. echo timestamp > conftest.file
  14197. +# Reject unsafe characters in $srcdir or the absolute working directory
  14198. +# name. Accept space and tab only in the latter.
  14199. +am_lf='
  14200. +'
  14201. +case `pwd` in
  14202. + *[\\\"\#\$\&\'\`$am_lf]*)
  14203. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  14204. +esac
  14205. +case $srcdir in
  14206. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  14207. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  14208. +esac
  14209. +
  14210. # Do `set' in a subshell so we don't clobber the current shell's
  14211. # arguments. Must try -L first in case configure is actually a
  14212. # symlink; some systems play weird games with the mod time of symlinks
  14213. # (eg FreeBSD returns the mod time of the symlink's containing
  14214. # directory).
  14215. if (
  14216. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  14217. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  14218. if test "$*" = "X"; then
  14219. # -L didn't work.
  14220. - set X `ls -t $srcdir/configure conftest.file`
  14221. + set X `ls -t "$srcdir/configure" conftest.file`
  14222. fi
  14223. rm -f conftest.file
  14224. if test "$*" != "X $srcdir/configure conftest.file" \
  14225. @@ -2202,11 +2467,8 @@
  14226. # if, for instance, CONFIG_SHELL is bash and it inherits a
  14227. # broken ls alias from the environment. This has actually
  14228. # happened. Such a system could not be considered "sane".
  14229. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  14230. -alias in your environment" >&5
  14231. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  14232. -alias in your environment" >&2;}
  14233. - { (exit 1); exit 1; }; }
  14234. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  14235. +alias in your environment" "$LINENO" 5
  14236. fi
  14237. test "$2" = conftest.file
  14238. @@ -2215,13 +2477,10 @@
  14239. # Ok.
  14240. :
  14241. else
  14242. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  14243. -Check your system clock" >&5
  14244. -$as_echo "$as_me: error: newly created file is older than distributed files!
  14245. -Check your system clock" >&2;}
  14246. - { (exit 1); exit 1; }; }
  14247. + as_fn_error "newly created file is older than distributed files!
  14248. +Check your system clock" "$LINENO" 5
  14249. fi
  14250. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  14251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14252. $as_echo "yes" >&6; }
  14253. test "$program_prefix" != NONE &&
  14254. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  14255. @@ -2236,20 +2495,136 @@
  14256. # expand $ac_aux_dir to an absolute path
  14257. am_aux_dir=`cd $ac_aux_dir && pwd`
  14258. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  14259. +if test x"${MISSING+set}" != xset; then
  14260. + case $am_aux_dir in
  14261. + *\ * | *\ *)
  14262. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  14263. + *)
  14264. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  14265. + esac
  14266. +fi
  14267. # Use eval to expand $SHELL
  14268. if eval "$MISSING --run true"; then
  14269. am_missing_run="$MISSING --run "
  14270. else
  14271. am_missing_run=
  14272. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  14273. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  14274. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  14275. fi
  14276. -{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  14277. +if test x"${install_sh}" != xset; then
  14278. + case $am_aux_dir in
  14279. + *\ * | *\ *)
  14280. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  14281. + *)
  14282. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  14283. + esac
  14284. +fi
  14285. +
  14286. +# Installed binaries are usually stripped using `strip' when the user
  14287. +# run `make install-strip'. However `strip' might not be the right
  14288. +# tool to use in cross-compilation environments, therefore Automake
  14289. +# will honor the `STRIP' environment variable to overrule this program.
  14290. +if test "$cross_compiling" != no; then
  14291. + if test -n "$ac_tool_prefix"; then
  14292. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14293. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14294. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14295. +$as_echo_n "checking for $ac_word... " >&6; }
  14296. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  14297. + $as_echo_n "(cached) " >&6
  14298. +else
  14299. + if test -n "$STRIP"; then
  14300. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14301. +else
  14302. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14303. +for as_dir in $PATH
  14304. +do
  14305. + IFS=$as_save_IFS
  14306. + test -z "$as_dir" && as_dir=.
  14307. + for ac_exec_ext in '' $ac_executable_extensions; do
  14308. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14309. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14310. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14311. + break 2
  14312. + fi
  14313. +done
  14314. + done
  14315. +IFS=$as_save_IFS
  14316. +
  14317. +fi
  14318. +fi
  14319. +STRIP=$ac_cv_prog_STRIP
  14320. +if test -n "$STRIP"; then
  14321. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  14322. +$as_echo "$STRIP" >&6; }
  14323. +else
  14324. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14325. +$as_echo "no" >&6; }
  14326. +fi
  14327. +
  14328. +
  14329. +fi
  14330. +if test -z "$ac_cv_prog_STRIP"; then
  14331. + ac_ct_STRIP=$STRIP
  14332. + # Extract the first word of "strip", so it can be a program name with args.
  14333. +set dummy strip; ac_word=$2
  14334. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14335. +$as_echo_n "checking for $ac_word... " >&6; }
  14336. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  14337. + $as_echo_n "(cached) " >&6
  14338. +else
  14339. + if test -n "$ac_ct_STRIP"; then
  14340. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14341. +else
  14342. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14343. +for as_dir in $PATH
  14344. +do
  14345. + IFS=$as_save_IFS
  14346. + test -z "$as_dir" && as_dir=.
  14347. + for ac_exec_ext in '' $ac_executable_extensions; do
  14348. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14349. + ac_cv_prog_ac_ct_STRIP="strip"
  14350. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14351. + break 2
  14352. + fi
  14353. +done
  14354. + done
  14355. +IFS=$as_save_IFS
  14356. +
  14357. +fi
  14358. +fi
  14359. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14360. +if test -n "$ac_ct_STRIP"; then
  14361. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  14362. +$as_echo "$ac_ct_STRIP" >&6; }
  14363. +else
  14364. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14365. +$as_echo "no" >&6; }
  14366. +fi
  14367. +
  14368. + if test "x$ac_ct_STRIP" = x; then
  14369. + STRIP=":"
  14370. + else
  14371. + case $cross_compiling:$ac_tool_warned in
  14372. +yes:)
  14373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14374. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14375. +ac_tool_warned=yes ;;
  14376. +esac
  14377. + STRIP=$ac_ct_STRIP
  14378. + fi
  14379. +else
  14380. + STRIP="$ac_cv_prog_STRIP"
  14381. +fi
  14382. +
  14383. +fi
  14384. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  14385. +
  14386. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  14387. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  14388. if test -z "$MKDIR_P"; then
  14389. - if test "${ac_cv_path_mkdir+set}" = set; then
  14390. + if test "${ac_cv_path_mkdir+set}" = set; then :
  14391. $as_echo_n "(cached) " >&6
  14392. else
  14393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14394. @@ -2257,7 +2632,7 @@
  14395. do
  14396. IFS=$as_save_IFS
  14397. test -z "$as_dir" && as_dir=.
  14398. - for ac_prog in mkdir gmkdir; do
  14399. + for ac_prog in mkdir gmkdir; do
  14400. for ac_exec_ext in '' $ac_executable_extensions; do
  14401. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  14402. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  14403. @@ -2269,11 +2644,12 @@
  14404. esac
  14405. done
  14406. done
  14407. -done
  14408. + done
  14409. IFS=$as_save_IFS
  14410. fi
  14411. + test -d ./--version && rmdir ./--version
  14412. if test "${ac_cv_path_mkdir+set}" = set; then
  14413. MKDIR_P="$ac_cv_path_mkdir -p"
  14414. else
  14415. @@ -2281,11 +2657,10 @@
  14416. # value for MKDIR_P within a source directory, because that will
  14417. # break other packages using the cache if that directory is
  14418. # removed, or if the value is a relative name.
  14419. - test -d ./--version && rmdir ./--version
  14420. MKDIR_P="$ac_install_sh -d"
  14421. fi
  14422. fi
  14423. -{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  14424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  14425. $as_echo "$MKDIR_P" >&6; }
  14426. mkdir_p="$MKDIR_P"
  14427. @@ -2298,9 +2673,9 @@
  14428. do
  14429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14430. set dummy $ac_prog; ac_word=$2
  14431. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14433. $as_echo_n "checking for $ac_word... " >&6; }
  14434. -if test "${ac_cv_prog_AWK+set}" = set; then
  14435. +if test "${ac_cv_prog_AWK+set}" = set; then :
  14436. $as_echo_n "(cached) " >&6
  14437. else
  14438. if test -n "$AWK"; then
  14439. @@ -2311,24 +2686,24 @@
  14440. do
  14441. IFS=$as_save_IFS
  14442. test -z "$as_dir" && as_dir=.
  14443. - for ac_exec_ext in '' $ac_executable_extensions; do
  14444. + for ac_exec_ext in '' $ac_executable_extensions; do
  14445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14446. ac_cv_prog_AWK="$ac_prog"
  14447. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14448. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14449. break 2
  14450. fi
  14451. done
  14452. -done
  14453. + done
  14454. IFS=$as_save_IFS
  14455. fi
  14456. fi
  14457. AWK=$ac_cv_prog_AWK
  14458. if test -n "$AWK"; then
  14459. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  14460. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  14461. $as_echo "$AWK" >&6; }
  14462. else
  14463. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14464. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14465. $as_echo "no" >&6; }
  14466. fi
  14467. @@ -2336,11 +2711,11 @@
  14468. test -n "$AWK" && break
  14469. done
  14470. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14471. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14472. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14473. set x ${MAKE-make}
  14474. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14475. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  14476. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  14477. $as_echo_n "(cached) " >&6
  14478. else
  14479. cat >conftest.make <<\_ACEOF
  14480. @@ -2358,11 +2733,11 @@
  14481. rm -f conftest.make
  14482. fi
  14483. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14484. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  14485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14486. $as_echo "yes" >&6; }
  14487. SET_MAKE=
  14488. else
  14489. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14490. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14491. $as_echo "no" >&6; }
  14492. SET_MAKE="MAKE=${MAKE-make}"
  14493. fi
  14494. @@ -2382,9 +2757,7 @@
  14495. am__isrc=' -I$(srcdir)'
  14496. # test to see if srcdir already configured
  14497. if test -f $srcdir/config.status; then
  14498. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  14499. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  14500. - { (exit 1); exit 1; }; }
  14501. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  14502. fi
  14503. fi
  14504. @@ -2428,108 +2801,6 @@
  14505. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  14506. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  14507. -
  14508. -# Installed binaries are usually stripped using `strip' when the user
  14509. -# run `make install-strip'. However `strip' might not be the right
  14510. -# tool to use in cross-compilation environments, therefore Automake
  14511. -# will honor the `STRIP' environment variable to overrule this program.
  14512. -if test "$cross_compiling" != no; then
  14513. - if test -n "$ac_tool_prefix"; then
  14514. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14515. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  14516. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14517. -$as_echo_n "checking for $ac_word... " >&6; }
  14518. -if test "${ac_cv_prog_STRIP+set}" = set; then
  14519. - $as_echo_n "(cached) " >&6
  14520. -else
  14521. - if test -n "$STRIP"; then
  14522. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14523. -else
  14524. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14525. -for as_dir in $PATH
  14526. -do
  14527. - IFS=$as_save_IFS
  14528. - test -z "$as_dir" && as_dir=.
  14529. - for ac_exec_ext in '' $ac_executable_extensions; do
  14530. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14531. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14532. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14533. - break 2
  14534. - fi
  14535. -done
  14536. -done
  14537. -IFS=$as_save_IFS
  14538. -
  14539. -fi
  14540. -fi
  14541. -STRIP=$ac_cv_prog_STRIP
  14542. -if test -n "$STRIP"; then
  14543. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  14544. -$as_echo "$STRIP" >&6; }
  14545. -else
  14546. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14547. -$as_echo "no" >&6; }
  14548. -fi
  14549. -
  14550. -
  14551. -fi
  14552. -if test -z "$ac_cv_prog_STRIP"; then
  14553. - ac_ct_STRIP=$STRIP
  14554. - # Extract the first word of "strip", so it can be a program name with args.
  14555. -set dummy strip; ac_word=$2
  14556. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14557. -$as_echo_n "checking for $ac_word... " >&6; }
  14558. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  14559. - $as_echo_n "(cached) " >&6
  14560. -else
  14561. - if test -n "$ac_ct_STRIP"; then
  14562. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14563. -else
  14564. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14565. -for as_dir in $PATH
  14566. -do
  14567. - IFS=$as_save_IFS
  14568. - test -z "$as_dir" && as_dir=.
  14569. - for ac_exec_ext in '' $ac_executable_extensions; do
  14570. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14571. - ac_cv_prog_ac_ct_STRIP="strip"
  14572. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14573. - break 2
  14574. - fi
  14575. -done
  14576. -done
  14577. -IFS=$as_save_IFS
  14578. -
  14579. -fi
  14580. -fi
  14581. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14582. -if test -n "$ac_ct_STRIP"; then
  14583. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  14584. -$as_echo "$ac_ct_STRIP" >&6; }
  14585. -else
  14586. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14587. -$as_echo "no" >&6; }
  14588. -fi
  14589. -
  14590. - if test "x$ac_ct_STRIP" = x; then
  14591. - STRIP=":"
  14592. - else
  14593. - case $cross_compiling:$ac_tool_warned in
  14594. -yes:)
  14595. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  14596. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14597. -ac_tool_warned=yes ;;
  14598. -esac
  14599. - STRIP=$ac_ct_STRIP
  14600. - fi
  14601. -else
  14602. - STRIP="$ac_cv_prog_STRIP"
  14603. -fi
  14604. -
  14605. -fi
  14606. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  14607. -
  14608. # We need awk for the "check" target. The system "awk" is bad on
  14609. # some platforms.
  14610. # Always define AMTAR for backward compatibility.
  14611. @@ -2552,9 +2823,9 @@
  14612. if test -n "$ac_tool_prefix"; then
  14613. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  14614. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  14615. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14617. $as_echo_n "checking for $ac_word... " >&6; }
  14618. -if test "${ac_cv_prog_CC+set}" = set; then
  14619. +if test "${ac_cv_prog_CC+set}" = set; then :
  14620. $as_echo_n "(cached) " >&6
  14621. else
  14622. if test -n "$CC"; then
  14623. @@ -2565,24 +2836,24 @@
  14624. do
  14625. IFS=$as_save_IFS
  14626. test -z "$as_dir" && as_dir=.
  14627. - for ac_exec_ext in '' $ac_executable_extensions; do
  14628. + for ac_exec_ext in '' $ac_executable_extensions; do
  14629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14630. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  14631. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14632. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14633. break 2
  14634. fi
  14635. done
  14636. -done
  14637. + done
  14638. IFS=$as_save_IFS
  14639. fi
  14640. fi
  14641. CC=$ac_cv_prog_CC
  14642. if test -n "$CC"; then
  14643. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  14644. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14645. $as_echo "$CC" >&6; }
  14646. else
  14647. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14648. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14649. $as_echo "no" >&6; }
  14650. fi
  14651. @@ -2592,9 +2863,9 @@
  14652. ac_ct_CC=$CC
  14653. # Extract the first word of "gcc", so it can be a program name with args.
  14654. set dummy gcc; ac_word=$2
  14655. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14657. $as_echo_n "checking for $ac_word... " >&6; }
  14658. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  14659. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  14660. $as_echo_n "(cached) " >&6
  14661. else
  14662. if test -n "$ac_ct_CC"; then
  14663. @@ -2605,24 +2876,24 @@
  14664. do
  14665. IFS=$as_save_IFS
  14666. test -z "$as_dir" && as_dir=.
  14667. - for ac_exec_ext in '' $ac_executable_extensions; do
  14668. + for ac_exec_ext in '' $ac_executable_extensions; do
  14669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14670. ac_cv_prog_ac_ct_CC="gcc"
  14671. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14672. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14673. break 2
  14674. fi
  14675. done
  14676. -done
  14677. + done
  14678. IFS=$as_save_IFS
  14679. fi
  14680. fi
  14681. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14682. if test -n "$ac_ct_CC"; then
  14683. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  14684. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14685. $as_echo "$ac_ct_CC" >&6; }
  14686. else
  14687. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14688. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14689. $as_echo "no" >&6; }
  14690. fi
  14691. @@ -2631,7 +2902,7 @@
  14692. else
  14693. case $cross_compiling:$ac_tool_warned in
  14694. yes:)
  14695. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  14696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14698. ac_tool_warned=yes ;;
  14699. esac
  14700. @@ -2645,9 +2916,9 @@
  14701. if test -n "$ac_tool_prefix"; then
  14702. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  14703. set dummy ${ac_tool_prefix}cc; ac_word=$2
  14704. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14705. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14706. $as_echo_n "checking for $ac_word... " >&6; }
  14707. -if test "${ac_cv_prog_CC+set}" = set; then
  14708. +if test "${ac_cv_prog_CC+set}" = set; then :
  14709. $as_echo_n "(cached) " >&6
  14710. else
  14711. if test -n "$CC"; then
  14712. @@ -2658,24 +2929,24 @@
  14713. do
  14714. IFS=$as_save_IFS
  14715. test -z "$as_dir" && as_dir=.
  14716. - for ac_exec_ext in '' $ac_executable_extensions; do
  14717. + for ac_exec_ext in '' $ac_executable_extensions; do
  14718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14719. ac_cv_prog_CC="${ac_tool_prefix}cc"
  14720. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14721. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14722. break 2
  14723. fi
  14724. done
  14725. -done
  14726. + done
  14727. IFS=$as_save_IFS
  14728. fi
  14729. fi
  14730. CC=$ac_cv_prog_CC
  14731. if test -n "$CC"; then
  14732. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  14733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14734. $as_echo "$CC" >&6; }
  14735. else
  14736. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14738. $as_echo "no" >&6; }
  14739. fi
  14740. @@ -2685,9 +2956,9 @@
  14741. if test -z "$CC"; then
  14742. # Extract the first word of "cc", so it can be a program name with args.
  14743. set dummy cc; ac_word=$2
  14744. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14746. $as_echo_n "checking for $ac_word... " >&6; }
  14747. -if test "${ac_cv_prog_CC+set}" = set; then
  14748. +if test "${ac_cv_prog_CC+set}" = set; then :
  14749. $as_echo_n "(cached) " >&6
  14750. else
  14751. if test -n "$CC"; then
  14752. @@ -2699,18 +2970,18 @@
  14753. do
  14754. IFS=$as_save_IFS
  14755. test -z "$as_dir" && as_dir=.
  14756. - for ac_exec_ext in '' $ac_executable_extensions; do
  14757. + for ac_exec_ext in '' $ac_executable_extensions; do
  14758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14759. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  14760. ac_prog_rejected=yes
  14761. continue
  14762. fi
  14763. ac_cv_prog_CC="cc"
  14764. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14765. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14766. break 2
  14767. fi
  14768. done
  14769. -done
  14770. + done
  14771. IFS=$as_save_IFS
  14772. if test $ac_prog_rejected = yes; then
  14773. @@ -2729,10 +3000,10 @@
  14774. fi
  14775. CC=$ac_cv_prog_CC
  14776. if test -n "$CC"; then
  14777. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  14778. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14779. $as_echo "$CC" >&6; }
  14780. else
  14781. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14783. $as_echo "no" >&6; }
  14784. fi
  14785. @@ -2744,9 +3015,9 @@
  14786. do
  14787. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14788. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14789. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14791. $as_echo_n "checking for $ac_word... " >&6; }
  14792. -if test "${ac_cv_prog_CC+set}" = set; then
  14793. +if test "${ac_cv_prog_CC+set}" = set; then :
  14794. $as_echo_n "(cached) " >&6
  14795. else
  14796. if test -n "$CC"; then
  14797. @@ -2757,24 +3028,24 @@
  14798. do
  14799. IFS=$as_save_IFS
  14800. test -z "$as_dir" && as_dir=.
  14801. - for ac_exec_ext in '' $ac_executable_extensions; do
  14802. + for ac_exec_ext in '' $ac_executable_extensions; do
  14803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14804. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  14805. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14806. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14807. break 2
  14808. fi
  14809. done
  14810. -done
  14811. + done
  14812. IFS=$as_save_IFS
  14813. fi
  14814. fi
  14815. CC=$ac_cv_prog_CC
  14816. if test -n "$CC"; then
  14817. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  14818. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14819. $as_echo "$CC" >&6; }
  14820. else
  14821. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14823. $as_echo "no" >&6; }
  14824. fi
  14825. @@ -2788,9 +3059,9 @@
  14826. do
  14827. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14828. set dummy $ac_prog; ac_word=$2
  14829. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14830. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14831. $as_echo_n "checking for $ac_word... " >&6; }
  14832. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  14833. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  14834. $as_echo_n "(cached) " >&6
  14835. else
  14836. if test -n "$ac_ct_CC"; then
  14837. @@ -2801,24 +3072,24 @@
  14838. do
  14839. IFS=$as_save_IFS
  14840. test -z "$as_dir" && as_dir=.
  14841. - for ac_exec_ext in '' $ac_executable_extensions; do
  14842. + for ac_exec_ext in '' $ac_executable_extensions; do
  14843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14844. ac_cv_prog_ac_ct_CC="$ac_prog"
  14845. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14846. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14847. break 2
  14848. fi
  14849. done
  14850. -done
  14851. + done
  14852. IFS=$as_save_IFS
  14853. fi
  14854. fi
  14855. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14856. if test -n "$ac_ct_CC"; then
  14857. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  14858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14859. $as_echo "$ac_ct_CC" >&6; }
  14860. else
  14861. - { $as_echo "$as_me:$LINENO: result: no" >&5
  14862. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14863. $as_echo "no" >&6; }
  14864. fi
  14865. @@ -2831,7 +3102,7 @@
  14866. else
  14867. case $cross_compiling:$ac_tool_warned in
  14868. yes:)
  14869. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  14870. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14872. ac_tool_warned=yes ;;
  14873. esac
  14874. @@ -2842,57 +3113,37 @@
  14875. fi
  14876. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14877. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14879. -{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  14880. -See \`config.log' for more details." >&5
  14881. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  14882. -See \`config.log' for more details." >&2;}
  14883. - { (exit 1); exit 1; }; }; }
  14884. +as_fn_error "no acceptable C compiler found in \$PATH
  14885. +See \`config.log' for more details." "$LINENO" 5; }
  14886. # Provide some information about the compiler.
  14887. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  14888. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  14889. set X $ac_compile
  14890. ac_compiler=$2
  14891. -{ (ac_try="$ac_compiler --version >&5"
  14892. -case "(($ac_try" in
  14893. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14894. - *) ac_try_echo=$ac_try;;
  14895. -esac
  14896. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14897. -$as_echo "$ac_try_echo") >&5
  14898. - (eval "$ac_compiler --version >&5") 2>&5
  14899. - ac_status=$?
  14900. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14901. - (exit $ac_status); }
  14902. -{ (ac_try="$ac_compiler -v >&5"
  14903. +for ac_option in --version -v -V -qversion; do
  14904. + { { ac_try="$ac_compiler $ac_option >&5"
  14905. case "(($ac_try" in
  14906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14907. *) ac_try_echo=$ac_try;;
  14908. esac
  14909. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14910. -$as_echo "$ac_try_echo") >&5
  14911. - (eval "$ac_compiler -v >&5") 2>&5
  14912. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14913. +$as_echo "$ac_try_echo"; } >&5
  14914. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  14915. ac_status=$?
  14916. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14917. - (exit $ac_status); }
  14918. -{ (ac_try="$ac_compiler -V >&5"
  14919. -case "(($ac_try" in
  14920. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14921. - *) ac_try_echo=$ac_try;;
  14922. -esac
  14923. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14924. -$as_echo "$ac_try_echo") >&5
  14925. - (eval "$ac_compiler -V >&5") 2>&5
  14926. - ac_status=$?
  14927. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14928. - (exit $ac_status); }
  14929. + if test -s conftest.err; then
  14930. + sed '10a\
  14931. +... rest of stderr output deleted ...
  14932. + 10q' conftest.err >conftest.er1
  14933. + cat conftest.er1 >&5
  14934. + fi
  14935. + rm -f conftest.er1 conftest.err
  14936. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14937. + test $ac_status = 0; }
  14938. +done
  14939. -cat >conftest.$ac_ext <<_ACEOF
  14940. -/* confdefs.h. */
  14941. -_ACEOF
  14942. -cat confdefs.h >>conftest.$ac_ext
  14943. -cat >>conftest.$ac_ext <<_ACEOF
  14944. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14945. /* end confdefs.h. */
  14946. int
  14947. @@ -2908,8 +3159,8 @@
  14948. # Try to create an executable without -o first, disregard a.out.
  14949. # It will help us diagnose broken compilers, and finding out an intuition
  14950. # of exeext.
  14951. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  14952. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  14953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  14954. +$as_echo_n "checking whether the C compiler works... " >&6; }
  14955. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  14956. # The possible output files:
  14957. @@ -2925,17 +3176,17 @@
  14958. done
  14959. rm -f $ac_rmfiles
  14960. -if { (ac_try="$ac_link_default"
  14961. +if { { ac_try="$ac_link_default"
  14962. case "(($ac_try" in
  14963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14964. *) ac_try_echo=$ac_try;;
  14965. esac
  14966. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14967. -$as_echo "$ac_try_echo") >&5
  14968. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14969. +$as_echo "$ac_try_echo"; } >&5
  14970. (eval "$ac_link_default") 2>&5
  14971. ac_status=$?
  14972. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14973. - (exit $ac_status); }; then
  14974. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14975. + test $ac_status = 0; }; then :
  14976. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  14977. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  14978. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  14979. @@ -2952,7 +3203,7 @@
  14980. # certainly right.
  14981. break;;
  14982. *.* )
  14983. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  14984. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  14985. then :; else
  14986. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  14987. fi
  14988. @@ -2971,84 +3222,42 @@
  14989. else
  14990. ac_file=''
  14991. fi
  14992. -
  14993. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  14994. -$as_echo "$ac_file" >&6; }
  14995. -if test -z "$ac_file"; then
  14996. - $as_echo "$as_me: failed program was:" >&5
  14997. +if test -z "$ac_file"; then :
  14998. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14999. +$as_echo "no" >&6; }
  15000. +$as_echo "$as_me: failed program was:" >&5
  15001. sed 's/^/| /' conftest.$ac_ext >&5
  15002. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15003. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15005. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  15006. -See \`config.log' for more details." >&5
  15007. -$as_echo "$as_me: error: C compiler cannot create executables
  15008. -See \`config.log' for more details." >&2;}
  15009. - { (exit 77); exit 77; }; }; }
  15010. +{ as_fn_set_status 77
  15011. +as_fn_error "C compiler cannot create executables
  15012. +See \`config.log' for more details." "$LINENO" 5; }; }
  15013. +else
  15014. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15015. +$as_echo "yes" >&6; }
  15016. fi
  15017. -
  15018. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  15019. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  15020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  15021. +$as_echo "$ac_file" >&6; }
  15022. ac_exeext=$ac_cv_exeext
  15023. -# Check that the compiler produces executables we can run. If not, either
  15024. -# the compiler is broken, or we cross compile.
  15025. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  15026. -$as_echo_n "checking whether the C compiler works... " >&6; }
  15027. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  15028. -# If not cross compiling, check that we can run a simple program.
  15029. -if test "$cross_compiling" != yes; then
  15030. - if { ac_try='./$ac_file'
  15031. - { (case "(($ac_try" in
  15032. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15033. - *) ac_try_echo=$ac_try;;
  15034. -esac
  15035. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15036. -$as_echo "$ac_try_echo") >&5
  15037. - (eval "$ac_try") 2>&5
  15038. - ac_status=$?
  15039. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15040. - (exit $ac_status); }; }; then
  15041. - cross_compiling=no
  15042. - else
  15043. - if test "$cross_compiling" = maybe; then
  15044. - cross_compiling=yes
  15045. - else
  15046. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15047. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15048. -{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  15049. -If you meant to cross compile, use \`--host'.
  15050. -See \`config.log' for more details." >&5
  15051. -$as_echo "$as_me: error: cannot run C compiled programs.
  15052. -If you meant to cross compile, use \`--host'.
  15053. -See \`config.log' for more details." >&2;}
  15054. - { (exit 1); exit 1; }; }; }
  15055. - fi
  15056. - fi
  15057. -fi
  15058. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  15059. -$as_echo "yes" >&6; }
  15060. -
  15061. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  15062. ac_clean_files=$ac_clean_files_save
  15063. -# Check that the compiler produces executables we can run. If not, either
  15064. -# the compiler is broken, or we cross compile.
  15065. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  15066. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  15067. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  15068. -$as_echo "$cross_compiling" >&6; }
  15069. -
  15070. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  15071. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  15072. $as_echo_n "checking for suffix of executables... " >&6; }
  15073. -if { (ac_try="$ac_link"
  15074. +if { { ac_try="$ac_link"
  15075. case "(($ac_try" in
  15076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15077. *) ac_try_echo=$ac_try;;
  15078. esac
  15079. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15080. -$as_echo "$ac_try_echo") >&5
  15081. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15082. +$as_echo "$ac_try_echo"; } >&5
  15083. (eval "$ac_link") 2>&5
  15084. ac_status=$?
  15085. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15086. - (exit $ac_status); }; then
  15087. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15088. + test $ac_status = 0; }; then :
  15089. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  15090. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  15091. # work properly (i.e., refer to `conftest.exe'), while it won't with
  15092. @@ -3063,32 +3272,83 @@
  15093. esac
  15094. done
  15095. else
  15096. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15097. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15099. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  15100. -See \`config.log' for more details." >&5
  15101. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  15102. -See \`config.log' for more details." >&2;}
  15103. - { (exit 1); exit 1; }; }; }
  15104. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  15105. +See \`config.log' for more details." "$LINENO" 5; }
  15106. fi
  15107. -
  15108. -rm -f conftest$ac_cv_exeext
  15109. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  15110. +rm -f conftest conftest$ac_cv_exeext
  15111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  15112. $as_echo "$ac_cv_exeext" >&6; }
  15113. rm -f conftest.$ac_ext
  15114. EXEEXT=$ac_cv_exeext
  15115. ac_exeext=$EXEEXT
  15116. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  15117. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15118. +/* end confdefs.h. */
  15119. +#include <stdio.h>
  15120. +int
  15121. +main ()
  15122. +{
  15123. +FILE *f = fopen ("conftest.out", "w");
  15124. + return ferror (f) || fclose (f) != 0;
  15125. +
  15126. + ;
  15127. + return 0;
  15128. +}
  15129. +_ACEOF
  15130. +ac_clean_files="$ac_clean_files conftest.out"
  15131. +# Check that the compiler produces executables we can run. If not, either
  15132. +# the compiler is broken, or we cross compile.
  15133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  15134. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  15135. +if test "$cross_compiling" != yes; then
  15136. + { { ac_try="$ac_link"
  15137. +case "(($ac_try" in
  15138. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15139. + *) ac_try_echo=$ac_try;;
  15140. +esac
  15141. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15142. +$as_echo "$ac_try_echo"; } >&5
  15143. + (eval "$ac_link") 2>&5
  15144. + ac_status=$?
  15145. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15146. + test $ac_status = 0; }
  15147. + if { ac_try='./conftest$ac_cv_exeext'
  15148. + { { case "(($ac_try" in
  15149. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15150. + *) ac_try_echo=$ac_try;;
  15151. +esac
  15152. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15153. +$as_echo "$ac_try_echo"; } >&5
  15154. + (eval "$ac_try") 2>&5
  15155. + ac_status=$?
  15156. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15157. + test $ac_status = 0; }; }; then
  15158. + cross_compiling=no
  15159. + else
  15160. + if test "$cross_compiling" = maybe; then
  15161. + cross_compiling=yes
  15162. + else
  15163. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15164. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15165. +as_fn_error "cannot run C compiled programs.
  15166. +If you meant to cross compile, use \`--host'.
  15167. +See \`config.log' for more details." "$LINENO" 5; }
  15168. + fi
  15169. + fi
  15170. +fi
  15171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  15172. +$as_echo "$cross_compiling" >&6; }
  15173. +
  15174. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  15175. +ac_clean_files=$ac_clean_files_save
  15176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  15177. $as_echo_n "checking for suffix of object files... " >&6; }
  15178. -if test "${ac_cv_objext+set}" = set; then
  15179. +if test "${ac_cv_objext+set}" = set; then :
  15180. $as_echo_n "(cached) " >&6
  15181. else
  15182. - cat >conftest.$ac_ext <<_ACEOF
  15183. -/* confdefs.h. */
  15184. -_ACEOF
  15185. -cat confdefs.h >>conftest.$ac_ext
  15186. -cat >>conftest.$ac_ext <<_ACEOF
  15187. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15188. /* end confdefs.h. */
  15189. int
  15190. @@ -3100,17 +3360,17 @@
  15191. }
  15192. _ACEOF
  15193. rm -f conftest.o conftest.obj
  15194. -if { (ac_try="$ac_compile"
  15195. +if { { ac_try="$ac_compile"
  15196. case "(($ac_try" in
  15197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15198. *) ac_try_echo=$ac_try;;
  15199. esac
  15200. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15201. -$as_echo "$ac_try_echo") >&5
  15202. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15203. +$as_echo "$ac_try_echo"; } >&5
  15204. (eval "$ac_compile") 2>&5
  15205. ac_status=$?
  15206. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15207. - (exit $ac_status); }; then
  15208. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15209. + test $ac_status = 0; }; then :
  15210. for ac_file in conftest.o conftest.obj conftest.*; do
  15211. test -f "$ac_file" || continue;
  15212. case $ac_file in
  15213. @@ -3123,31 +3383,23 @@
  15214. $as_echo "$as_me: failed program was:" >&5
  15215. sed 's/^/| /' conftest.$ac_ext >&5
  15216. -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15217. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15219. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  15220. -See \`config.log' for more details." >&5
  15221. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  15222. -See \`config.log' for more details." >&2;}
  15223. - { (exit 1); exit 1; }; }; }
  15224. +as_fn_error "cannot compute suffix of object files: cannot compile
  15225. +See \`config.log' for more details." "$LINENO" 5; }
  15226. fi
  15227. -
  15228. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  15229. fi
  15230. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  15231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  15232. $as_echo "$ac_cv_objext" >&6; }
  15233. OBJEXT=$ac_cv_objext
  15234. ac_objext=$OBJEXT
  15235. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  15236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  15237. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  15238. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  15239. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  15240. $as_echo_n "(cached) " >&6
  15241. else
  15242. - cat >conftest.$ac_ext <<_ACEOF
  15243. -/* confdefs.h. */
  15244. -_ACEOF
  15245. -cat confdefs.h >>conftest.$ac_ext
  15246. -cat >>conftest.$ac_ext <<_ACEOF
  15247. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15248. /* end confdefs.h. */
  15249. int
  15250. @@ -3161,37 +3413,16 @@
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. -rm -f conftest.$ac_objext
  15255. -if { (ac_try="$ac_compile"
  15256. -case "(($ac_try" in
  15257. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15258. - *) ac_try_echo=$ac_try;;
  15259. -esac
  15260. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15261. -$as_echo "$ac_try_echo") >&5
  15262. - (eval "$ac_compile") 2>conftest.er1
  15263. - ac_status=$?
  15264. - grep -v '^ *+' conftest.er1 >conftest.err
  15265. - rm -f conftest.er1
  15266. - cat conftest.err >&5
  15267. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15268. - (exit $ac_status); } && {
  15269. - test -z "$ac_c_werror_flag" ||
  15270. - test ! -s conftest.err
  15271. - } && test -s conftest.$ac_objext; then
  15272. +if ac_fn_c_try_compile "$LINENO"; then :
  15273. ac_compiler_gnu=yes
  15274. else
  15275. - $as_echo "$as_me: failed program was:" >&5
  15276. -sed 's/^/| /' conftest.$ac_ext >&5
  15277. -
  15278. - ac_compiler_gnu=no
  15279. + ac_compiler_gnu=no
  15280. fi
  15281. -
  15282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15283. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  15284. fi
  15285. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  15286. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  15287. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  15288. if test $ac_compiler_gnu = yes; then
  15289. GCC=yes
  15290. @@ -3200,20 +3431,16 @@
  15291. fi
  15292. ac_test_CFLAGS=${CFLAGS+set}
  15293. ac_save_CFLAGS=$CFLAGS
  15294. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  15295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  15296. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  15297. -if test "${ac_cv_prog_cc_g+set}" = set; then
  15298. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  15299. $as_echo_n "(cached) " >&6
  15300. else
  15301. ac_save_c_werror_flag=$ac_c_werror_flag
  15302. ac_c_werror_flag=yes
  15303. ac_cv_prog_cc_g=no
  15304. CFLAGS="-g"
  15305. - cat >conftest.$ac_ext <<_ACEOF
  15306. -/* confdefs.h. */
  15307. -_ACEOF
  15308. -cat confdefs.h >>conftest.$ac_ext
  15309. -cat >>conftest.$ac_ext <<_ACEOF
  15310. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15311. /* end confdefs.h. */
  15312. int
  15313. @@ -3224,35 +3451,11 @@
  15314. return 0;
  15315. }
  15316. _ACEOF
  15317. -rm -f conftest.$ac_objext
  15318. -if { (ac_try="$ac_compile"
  15319. -case "(($ac_try" in
  15320. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15321. - *) ac_try_echo=$ac_try;;
  15322. -esac
  15323. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15324. -$as_echo "$ac_try_echo") >&5
  15325. - (eval "$ac_compile") 2>conftest.er1
  15326. - ac_status=$?
  15327. - grep -v '^ *+' conftest.er1 >conftest.err
  15328. - rm -f conftest.er1
  15329. - cat conftest.err >&5
  15330. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15331. - (exit $ac_status); } && {
  15332. - test -z "$ac_c_werror_flag" ||
  15333. - test ! -s conftest.err
  15334. - } && test -s conftest.$ac_objext; then
  15335. +if ac_fn_c_try_compile "$LINENO"; then :
  15336. ac_cv_prog_cc_g=yes
  15337. else
  15338. - $as_echo "$as_me: failed program was:" >&5
  15339. -sed 's/^/| /' conftest.$ac_ext >&5
  15340. -
  15341. - CFLAGS=""
  15342. - cat >conftest.$ac_ext <<_ACEOF
  15343. -/* confdefs.h. */
  15344. -_ACEOF
  15345. -cat confdefs.h >>conftest.$ac_ext
  15346. -cat >>conftest.$ac_ext <<_ACEOF
  15347. + CFLAGS=""
  15348. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15349. /* end confdefs.h. */
  15350. int
  15351. @@ -3263,36 +3466,12 @@
  15352. return 0;
  15353. }
  15354. _ACEOF
  15355. -rm -f conftest.$ac_objext
  15356. -if { (ac_try="$ac_compile"
  15357. -case "(($ac_try" in
  15358. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15359. - *) ac_try_echo=$ac_try;;
  15360. -esac
  15361. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15362. -$as_echo "$ac_try_echo") >&5
  15363. - (eval "$ac_compile") 2>conftest.er1
  15364. - ac_status=$?
  15365. - grep -v '^ *+' conftest.er1 >conftest.err
  15366. - rm -f conftest.er1
  15367. - cat conftest.err >&5
  15368. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15369. - (exit $ac_status); } && {
  15370. - test -z "$ac_c_werror_flag" ||
  15371. - test ! -s conftest.err
  15372. - } && test -s conftest.$ac_objext; then
  15373. - :
  15374. -else
  15375. - $as_echo "$as_me: failed program was:" >&5
  15376. -sed 's/^/| /' conftest.$ac_ext >&5
  15377. +if ac_fn_c_try_compile "$LINENO"; then :
  15378. - ac_c_werror_flag=$ac_save_c_werror_flag
  15379. +else
  15380. + ac_c_werror_flag=$ac_save_c_werror_flag
  15381. CFLAGS="-g"
  15382. - cat >conftest.$ac_ext <<_ACEOF
  15383. -/* confdefs.h. */
  15384. -_ACEOF
  15385. -cat confdefs.h >>conftest.$ac_ext
  15386. -cat >>conftest.$ac_ext <<_ACEOF
  15387. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15388. /* end confdefs.h. */
  15389. int
  15390. @@ -3303,42 +3482,17 @@
  15391. return 0;
  15392. }
  15393. _ACEOF
  15394. -rm -f conftest.$ac_objext
  15395. -if { (ac_try="$ac_compile"
  15396. -case "(($ac_try" in
  15397. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15398. - *) ac_try_echo=$ac_try;;
  15399. -esac
  15400. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15401. -$as_echo "$ac_try_echo") >&5
  15402. - (eval "$ac_compile") 2>conftest.er1
  15403. - ac_status=$?
  15404. - grep -v '^ *+' conftest.er1 >conftest.err
  15405. - rm -f conftest.er1
  15406. - cat conftest.err >&5
  15407. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15408. - (exit $ac_status); } && {
  15409. - test -z "$ac_c_werror_flag" ||
  15410. - test ! -s conftest.err
  15411. - } && test -s conftest.$ac_objext; then
  15412. +if ac_fn_c_try_compile "$LINENO"; then :
  15413. ac_cv_prog_cc_g=yes
  15414. -else
  15415. - $as_echo "$as_me: failed program was:" >&5
  15416. -sed 's/^/| /' conftest.$ac_ext >&5
  15417. -
  15418. -
  15419. fi
  15420. -
  15421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15422. fi
  15423. -
  15424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15425. fi
  15426. -
  15427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15428. ac_c_werror_flag=$ac_save_c_werror_flag
  15429. fi
  15430. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  15431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  15432. $as_echo "$ac_cv_prog_cc_g" >&6; }
  15433. if test "$ac_test_CFLAGS" = set; then
  15434. CFLAGS=$ac_save_CFLAGS
  15435. @@ -3355,18 +3509,14 @@
  15436. CFLAGS=
  15437. fi
  15438. fi
  15439. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  15440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  15441. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  15442. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  15443. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  15444. $as_echo_n "(cached) " >&6
  15445. else
  15446. ac_cv_prog_cc_c89=no
  15447. ac_save_CC=$CC
  15448. -cat >conftest.$ac_ext <<_ACEOF
  15449. -/* confdefs.h. */
  15450. -_ACEOF
  15451. -cat confdefs.h >>conftest.$ac_ext
  15452. -cat >>conftest.$ac_ext <<_ACEOF
  15453. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15454. /* end confdefs.h. */
  15455. #include <stdarg.h>
  15456. #include <stdio.h>
  15457. @@ -3423,32 +3573,9 @@
  15458. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  15459. do
  15460. CC="$ac_save_CC $ac_arg"
  15461. - rm -f conftest.$ac_objext
  15462. -if { (ac_try="$ac_compile"
  15463. -case "(($ac_try" in
  15464. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15465. - *) ac_try_echo=$ac_try;;
  15466. -esac
  15467. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15468. -$as_echo "$ac_try_echo") >&5
  15469. - (eval "$ac_compile") 2>conftest.er1
  15470. - ac_status=$?
  15471. - grep -v '^ *+' conftest.er1 >conftest.err
  15472. - rm -f conftest.er1
  15473. - cat conftest.err >&5
  15474. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15475. - (exit $ac_status); } && {
  15476. - test -z "$ac_c_werror_flag" ||
  15477. - test ! -s conftest.err
  15478. - } && test -s conftest.$ac_objext; then
  15479. + if ac_fn_c_try_compile "$LINENO"; then :
  15480. ac_cv_prog_cc_c89=$ac_arg
  15481. -else
  15482. - $as_echo "$as_me: failed program was:" >&5
  15483. -sed 's/^/| /' conftest.$ac_ext >&5
  15484. -
  15485. -
  15486. fi
  15487. -
  15488. rm -f core conftest.err conftest.$ac_objext
  15489. test "x$ac_cv_prog_cc_c89" != "xno" && break
  15490. done
  15491. @@ -3459,17 +3586,19 @@
  15492. # AC_CACHE_VAL
  15493. case "x$ac_cv_prog_cc_c89" in
  15494. x)
  15495. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  15496. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  15497. $as_echo "none needed" >&6; } ;;
  15498. xno)
  15499. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  15500. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  15501. $as_echo "unsupported" >&6; } ;;
  15502. *)
  15503. CC="$CC $ac_cv_prog_cc_c89"
  15504. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  15505. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  15506. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  15507. esac
  15508. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  15509. +fi
  15510. ac_ext=c
  15511. ac_cpp='$CPP $CPPFLAGS'
  15512. @@ -3484,44 +3613,44 @@
  15513. am_make=${MAKE-make}
  15514. cat > confinc << 'END'
  15515. am__doit:
  15516. - @echo done
  15517. + @echo this is the am__doit target
  15518. .PHONY: am__doit
  15519. END
  15520. # If we don't find an include directive, just comment out the code.
  15521. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  15522. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  15523. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  15524. am__include="#"
  15525. am__quote=
  15526. _am_result=none
  15527. # First try GNU make style include.
  15528. echo "include confinc" > confmf
  15529. -# We grep out `Entering directory' and `Leaving directory'
  15530. -# messages which can occur if `w' ends up in MAKEFLAGS.
  15531. -# In particular we don't look at `^make:' because GNU make might
  15532. -# be invoked under some other name (usually "gmake"), in which
  15533. -# case it prints its new name instead of `make'.
  15534. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  15535. - am__include=include
  15536. - am__quote=
  15537. - _am_result=GNU
  15538. -fi
  15539. +# Ignore all kinds of additional output from `make'.
  15540. +case `$am_make -s -f confmf 2> /dev/null` in #(
  15541. +*the\ am__doit\ target*)
  15542. + am__include=include
  15543. + am__quote=
  15544. + _am_result=GNU
  15545. + ;;
  15546. +esac
  15547. # Now try BSD make style include.
  15548. if test "$am__include" = "#"; then
  15549. echo '.include "confinc"' > confmf
  15550. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  15551. - am__include=.include
  15552. - am__quote="\""
  15553. - _am_result=BSD
  15554. - fi
  15555. + case `$am_make -s -f confmf 2> /dev/null` in #(
  15556. + *the\ am__doit\ target*)
  15557. + am__include=.include
  15558. + am__quote="\""
  15559. + _am_result=BSD
  15560. + ;;
  15561. + esac
  15562. fi
  15563. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  15564. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  15565. $as_echo "$_am_result" >&6; }
  15566. rm -f confinc confmf
  15567. # Check whether --enable-dependency-tracking was given.
  15568. -if test "${enable_dependency_tracking+set}" = set; then
  15569. +if test "${enable_dependency_tracking+set}" = set; then :
  15570. enableval=$enable_dependency_tracking;
  15571. fi
  15572. @@ -3541,9 +3670,9 @@
  15573. depcc="$CC" am_compiler_list=
  15574. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  15575. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  15576. $as_echo_n "checking dependency style of $depcc... " >&6; }
  15577. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  15578. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  15579. $as_echo_n "(cached) " >&6
  15580. else
  15581. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  15582. @@ -3569,6 +3698,11 @@
  15583. if test "$am_compiler_list" = ""; then
  15584. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  15585. fi
  15586. + am__universal=false
  15587. + case " $depcc " in #(
  15588. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  15589. + esac
  15590. +
  15591. for depmode in $am_compiler_list; do
  15592. # Setup a source with many dependencies, because some compilers
  15593. # like to wrap large dependency lists on column 80 (with \), and
  15594. @@ -3586,7 +3720,17 @@
  15595. done
  15596. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  15597. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  15598. + # mode. It turns out that the SunPro C++ compiler does not properly
  15599. + # handle `-M -o', and we need to detect this. Also, some Intel
  15600. + # versions had trouble with output in subdirs
  15601. + am__obj=sub/conftest.${OBJEXT-o}
  15602. + am__minus_obj="-o $am__obj"
  15603. case $depmode in
  15604. + gcc)
  15605. + # This depmode causes a compiler race in universal mode.
  15606. + test "$am__universal" = false || continue
  15607. + ;;
  15608. nosideeffect)
  15609. # after this tag, mechanisms are not by side-effect, so they'll
  15610. # only be used when explicitly requested
  15611. @@ -3596,19 +3740,23 @@
  15612. break
  15613. fi
  15614. ;;
  15615. + msvisualcpp | msvcmsys)
  15616. + # This compiler won't grok `-c -o', but also, the minuso test has
  15617. + # not run yet. These depmodes are late enough in the game, and
  15618. + # so weak that their functioning should not be impacted.
  15619. + am__obj=conftest.${OBJEXT-o}
  15620. + am__minus_obj=
  15621. + ;;
  15622. none) break ;;
  15623. esac
  15624. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  15625. - # mode. It turns out that the SunPro C++ compiler does not properly
  15626. - # handle `-M -o', and we need to detect this.
  15627. if depmode=$depmode \
  15628. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  15629. + source=sub/conftest.c object=$am__obj \
  15630. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  15631. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  15632. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  15633. >/dev/null 2>conftest.err &&
  15634. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  15635. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  15636. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  15637. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  15638. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  15639. # icc doesn't choke on unknown options, it will just issue warnings
  15640. # or remarks (even with -Werror). So we grep stderr for any message
  15641. @@ -3632,7 +3780,7 @@
  15642. fi
  15643. fi
  15644. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  15645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  15646. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  15647. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  15648. @@ -3650,24 +3798,15 @@
  15649. ac_config_headers="$ac_config_headers config.h"
  15650. -
  15651. -
  15652. -
  15653. -
  15654. -
  15655. ac_header_dirent=no
  15656. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  15657. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  15658. -{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  15659. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  15660. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  15661. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15662. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  15663. $as_echo_n "(cached) " >&6
  15664. else
  15665. - cat >conftest.$ac_ext <<_ACEOF
  15666. -/* confdefs.h. */
  15667. -_ACEOF
  15668. -cat confdefs.h >>conftest.$ac_ext
  15669. -cat >>conftest.$ac_ext <<_ACEOF
  15670. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15671. /* end confdefs.h. */
  15672. #include <sys/types.h>
  15673. #include <$ac_hdr>
  15674. @@ -3681,41 +3820,18 @@
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. -rm -f conftest.$ac_objext
  15679. -if { (ac_try="$ac_compile"
  15680. -case "(($ac_try" in
  15681. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15682. - *) ac_try_echo=$ac_try;;
  15683. -esac
  15684. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15685. -$as_echo "$ac_try_echo") >&5
  15686. - (eval "$ac_compile") 2>conftest.er1
  15687. - ac_status=$?
  15688. - grep -v '^ *+' conftest.er1 >conftest.err
  15689. - rm -f conftest.er1
  15690. - cat conftest.err >&5
  15691. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15692. - (exit $ac_status); } && {
  15693. - test -z "$ac_c_werror_flag" ||
  15694. - test ! -s conftest.err
  15695. - } && test -s conftest.$ac_objext; then
  15696. +if ac_fn_c_try_compile "$LINENO"; then :
  15697. eval "$as_ac_Header=yes"
  15698. else
  15699. - $as_echo "$as_me: failed program was:" >&5
  15700. -sed 's/^/| /' conftest.$ac_ext >&5
  15701. -
  15702. - eval "$as_ac_Header=no"
  15703. + eval "$as_ac_Header=no"
  15704. fi
  15705. -
  15706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15707. fi
  15708. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  15709. - $as_echo "$as_val"'`
  15710. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15711. +eval ac_res=\$$as_ac_Header
  15712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15713. $as_echo "$ac_res" >&6; }
  15714. -as_val=`eval 'as_val=${'$as_ac_Header'}
  15715. - $as_echo "$as_val"'`
  15716. - if test "x$as_val" = x""yes; then
  15717. +eval as_val=\$$as_ac_Header
  15718. + if test "x$as_val" = x""yes; then :
  15719. cat >>confdefs.h <<_ACEOF
  15720. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  15721. _ACEOF
  15722. @@ -3726,17 +3842,13 @@
  15723. done
  15724. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  15725. if test $ac_header_dirent = dirent.h; then
  15726. - { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  15727. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  15728. $as_echo_n "checking for library containing opendir... " >&6; }
  15729. -if test "${ac_cv_search_opendir+set}" = set; then
  15730. +if test "${ac_cv_search_opendir+set}" = set; then :
  15731. $as_echo_n "(cached) " >&6
  15732. else
  15733. ac_func_search_save_LIBS=$LIBS
  15734. -cat >conftest.$ac_ext <<_ACEOF
  15735. -/* confdefs.h. */
  15736. -_ACEOF
  15737. -cat confdefs.h >>conftest.$ac_ext
  15738. -cat >>conftest.$ac_ext <<_ACEOF
  15739. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15740. /* end confdefs.h. */
  15741. /* Override any GCC internal prototype to avoid an error.
  15742. @@ -3761,70 +3873,39 @@
  15743. ac_res=-l$ac_lib
  15744. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15745. fi
  15746. - rm -f conftest.$ac_objext conftest$ac_exeext
  15747. -if { (ac_try="$ac_link"
  15748. -case "(($ac_try" in
  15749. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15750. - *) ac_try_echo=$ac_try;;
  15751. -esac
  15752. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15753. -$as_echo "$ac_try_echo") >&5
  15754. - (eval "$ac_link") 2>conftest.er1
  15755. - ac_status=$?
  15756. - grep -v '^ *+' conftest.er1 >conftest.err
  15757. - rm -f conftest.er1
  15758. - cat conftest.err >&5
  15759. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15760. - (exit $ac_status); } && {
  15761. - test -z "$ac_c_werror_flag" ||
  15762. - test ! -s conftest.err
  15763. - } && test -s conftest$ac_exeext && {
  15764. - test "$cross_compiling" = yes ||
  15765. - $as_test_x conftest$ac_exeext
  15766. - }; then
  15767. + if ac_fn_c_try_link "$LINENO"; then :
  15768. ac_cv_search_opendir=$ac_res
  15769. -else
  15770. - $as_echo "$as_me: failed program was:" >&5
  15771. -sed 's/^/| /' conftest.$ac_ext >&5
  15772. -
  15773. -
  15774. fi
  15775. -
  15776. -rm -rf conftest.dSYM
  15777. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15778. - conftest$ac_exeext
  15779. - if test "${ac_cv_search_opendir+set}" = set; then
  15780. +rm -f core conftest.err conftest.$ac_objext \
  15781. + conftest$ac_exeext
  15782. + if test "${ac_cv_search_opendir+set}" = set; then :
  15783. break
  15784. fi
  15785. done
  15786. -if test "${ac_cv_search_opendir+set}" = set; then
  15787. - :
  15788. +if test "${ac_cv_search_opendir+set}" = set; then :
  15789. +
  15790. else
  15791. ac_cv_search_opendir=no
  15792. fi
  15793. rm conftest.$ac_ext
  15794. LIBS=$ac_func_search_save_LIBS
  15795. fi
  15796. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  15797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  15798. $as_echo "$ac_cv_search_opendir" >&6; }
  15799. ac_res=$ac_cv_search_opendir
  15800. -if test "$ac_res" != no; then
  15801. +if test "$ac_res" != no; then :
  15802. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15803. fi
  15804. else
  15805. - { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  15806. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  15807. $as_echo_n "checking for library containing opendir... " >&6; }
  15808. -if test "${ac_cv_search_opendir+set}" = set; then
  15809. +if test "${ac_cv_search_opendir+set}" = set; then :
  15810. $as_echo_n "(cached) " >&6
  15811. else
  15812. ac_func_search_save_LIBS=$LIBS
  15813. -cat >conftest.$ac_ext <<_ACEOF
  15814. -/* confdefs.h. */
  15815. -_ACEOF
  15816. -cat confdefs.h >>conftest.$ac_ext
  15817. -cat >>conftest.$ac_ext <<_ACEOF
  15818. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15819. /* end confdefs.h. */
  15820. /* Override any GCC internal prototype to avoid an error.
  15821. @@ -3849,54 +3930,27 @@
  15822. ac_res=-l$ac_lib
  15823. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15824. fi
  15825. - rm -f conftest.$ac_objext conftest$ac_exeext
  15826. -if { (ac_try="$ac_link"
  15827. -case "(($ac_try" in
  15828. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15829. - *) ac_try_echo=$ac_try;;
  15830. -esac
  15831. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15832. -$as_echo "$ac_try_echo") >&5
  15833. - (eval "$ac_link") 2>conftest.er1
  15834. - ac_status=$?
  15835. - grep -v '^ *+' conftest.er1 >conftest.err
  15836. - rm -f conftest.er1
  15837. - cat conftest.err >&5
  15838. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15839. - (exit $ac_status); } && {
  15840. - test -z "$ac_c_werror_flag" ||
  15841. - test ! -s conftest.err
  15842. - } && test -s conftest$ac_exeext && {
  15843. - test "$cross_compiling" = yes ||
  15844. - $as_test_x conftest$ac_exeext
  15845. - }; then
  15846. + if ac_fn_c_try_link "$LINENO"; then :
  15847. ac_cv_search_opendir=$ac_res
  15848. -else
  15849. - $as_echo "$as_me: failed program was:" >&5
  15850. -sed 's/^/| /' conftest.$ac_ext >&5
  15851. -
  15852. -
  15853. fi
  15854. -
  15855. -rm -rf conftest.dSYM
  15856. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15857. - conftest$ac_exeext
  15858. - if test "${ac_cv_search_opendir+set}" = set; then
  15859. +rm -f core conftest.err conftest.$ac_objext \
  15860. + conftest$ac_exeext
  15861. + if test "${ac_cv_search_opendir+set}" = set; then :
  15862. break
  15863. fi
  15864. done
  15865. -if test "${ac_cv_search_opendir+set}" = set; then
  15866. - :
  15867. +if test "${ac_cv_search_opendir+set}" = set; then :
  15868. +
  15869. else
  15870. ac_cv_search_opendir=no
  15871. fi
  15872. rm conftest.$ac_ext
  15873. LIBS=$ac_func_search_save_LIBS
  15874. fi
  15875. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  15876. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  15877. $as_echo "$ac_cv_search_opendir" >&6; }
  15878. ac_res=$ac_cv_search_opendir
  15879. -if test "$ac_res" != no; then
  15880. +if test "$ac_res" != no; then :
  15881. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15882. fi
  15883. @@ -3909,109 +3963,54 @@
  15884. ac_config_headers="$ac_config_headers src/config.h"
  15885. -# Check whether --enable-shared was given.
  15886. -if test "${enable_shared+set}" = set; then
  15887. - enableval=$enable_shared; p=${PACKAGE-default}
  15888. - case $enableval in
  15889. - yes) enable_shared=yes ;;
  15890. - no) enable_shared=no ;;
  15891. - *)
  15892. - enable_shared=no
  15893. - # Look at the argument we got. We use all the common list separators.
  15894. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15895. - for pkg in $enableval; do
  15896. - IFS="$lt_save_ifs"
  15897. - if test "X$pkg" = "X$p"; then
  15898. - enable_shared=yes
  15899. - fi
  15900. - done
  15901. - IFS="$lt_save_ifs"
  15902. - ;;
  15903. - esac
  15904. -else
  15905. - enable_shared=yes
  15906. -fi
  15907. +case `pwd` in
  15908. + *\ * | *\ *)
  15909. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  15910. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  15911. +esac
  15912. +
  15913. +
  15914. +
  15915. +macro_version='2.2.6b'
  15916. +macro_revision='1.3017'
  15917. +
  15918. -# Check whether --enable-static was given.
  15919. -if test "${enable_static+set}" = set; then
  15920. - enableval=$enable_static; p=${PACKAGE-default}
  15921. - case $enableval in
  15922. - yes) enable_static=yes ;;
  15923. - no) enable_static=no ;;
  15924. - *)
  15925. - enable_static=no
  15926. - # Look at the argument we got. We use all the common list separators.
  15927. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15928. - for pkg in $enableval; do
  15929. - IFS="$lt_save_ifs"
  15930. - if test "X$pkg" = "X$p"; then
  15931. - enable_static=yes
  15932. - fi
  15933. - done
  15934. - IFS="$lt_save_ifs"
  15935. - ;;
  15936. - esac
  15937. -else
  15938. - enable_static=yes
  15939. -fi
  15940. -# Check whether --enable-fast-install was given.
  15941. -if test "${enable_fast_install+set}" = set; then
  15942. - enableval=$enable_fast_install; p=${PACKAGE-default}
  15943. - case $enableval in
  15944. - yes) enable_fast_install=yes ;;
  15945. - no) enable_fast_install=no ;;
  15946. - *)
  15947. - enable_fast_install=no
  15948. - # Look at the argument we got. We use all the common list separators.
  15949. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15950. - for pkg in $enableval; do
  15951. - IFS="$lt_save_ifs"
  15952. - if test "X$pkg" = "X$p"; then
  15953. - enable_fast_install=yes
  15954. - fi
  15955. - done
  15956. - IFS="$lt_save_ifs"
  15957. - ;;
  15958. - esac
  15959. -else
  15960. - enable_fast_install=yes
  15961. -fi
  15962. +
  15963. +
  15964. +
  15965. +
  15966. +
  15967. +
  15968. +ltmain="$ac_aux_dir/ltmain.sh"
  15969. +
  15970. # Make sure we can run config.sub.
  15971. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  15972. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  15973. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  15974. - { (exit 1); exit 1; }; }
  15975. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  15976. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  15977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  15978. $as_echo_n "checking build system type... " >&6; }
  15979. -if test "${ac_cv_build+set}" = set; then
  15980. +if test "${ac_cv_build+set}" = set; then :
  15981. $as_echo_n "(cached) " >&6
  15982. else
  15983. ac_build_alias=$build_alias
  15984. test "x$ac_build_alias" = x &&
  15985. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  15986. test "x$ac_build_alias" = x &&
  15987. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  15988. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  15989. - { (exit 1); exit 1; }; }
  15990. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  15991. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  15992. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  15993. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  15994. - { (exit 1); exit 1; }; }
  15995. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  15996. fi
  15997. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  15998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  15999. $as_echo "$ac_cv_build" >&6; }
  16000. case $ac_cv_build in
  16001. *-*-*) ;;
  16002. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  16003. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  16004. - { (exit 1); exit 1; }; };;
  16005. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  16006. esac
  16007. build=$ac_cv_build
  16008. ac_save_IFS=$IFS; IFS='-'
  16009. @@ -4027,28 +4026,24 @@
  16010. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  16011. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  16012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  16013. $as_echo_n "checking host system type... " >&6; }
  16014. -if test "${ac_cv_host+set}" = set; then
  16015. +if test "${ac_cv_host+set}" = set; then :
  16016. $as_echo_n "(cached) " >&6
  16017. else
  16018. if test "x$host_alias" = x; then
  16019. ac_cv_host=$ac_cv_build
  16020. else
  16021. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  16022. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  16023. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  16024. - { (exit 1); exit 1; }; }
  16025. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  16026. fi
  16027. fi
  16028. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  16029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  16030. $as_echo "$ac_cv_host" >&6; }
  16031. case $ac_cv_host in
  16032. *-*-*) ;;
  16033. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  16034. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  16035. - { (exit 1); exit 1; }; };;
  16036. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  16037. esac
  16038. host=$ac_cv_host
  16039. ac_save_IFS=$IFS; IFS='-'
  16040. @@ -4064,68 +4059,91 @@
  16041. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  16042. -{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  16043. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  16044. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  16045. -if test "${lt_cv_path_SED+set}" = set; then
  16046. +if test "${ac_cv_path_SED+set}" = set; then :
  16047. $as_echo_n "(cached) " >&6
  16048. else
  16049. - # Loop through the user's path and test for sed and gsed.
  16050. -# Then use that list of sed's as ones to test for truncation.
  16051. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16052. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  16053. + for ac_i in 1 2 3 4 5 6 7; do
  16054. + ac_script="$ac_script$as_nl$ac_script"
  16055. + done
  16056. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  16057. + { ac_script=; unset ac_script;}
  16058. + if test -z "$SED"; then
  16059. + ac_path_SED_found=false
  16060. + # Loop through the user's path and test for each of PROGNAME-LIST
  16061. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16062. for as_dir in $PATH
  16063. do
  16064. IFS=$as_save_IFS
  16065. test -z "$as_dir" && as_dir=.
  16066. - for lt_ac_prog in sed gsed; do
  16067. + for ac_prog in sed gsed; do
  16068. for ac_exec_ext in '' $ac_executable_extensions; do
  16069. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  16070. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  16071. - fi
  16072. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  16073. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  16074. +# Check for GNU ac_path_SED and select it if it is found.
  16075. + # Check for GNU $ac_path_SED
  16076. +case `"$ac_path_SED" --version 2>&1` in
  16077. +*GNU*)
  16078. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  16079. +*)
  16080. + ac_count=0
  16081. + $as_echo_n 0123456789 >"conftest.in"
  16082. + while :
  16083. + do
  16084. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16085. + mv "conftest.tmp" "conftest.in"
  16086. + cp "conftest.in" "conftest.nl"
  16087. + $as_echo '' >> "conftest.nl"
  16088. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16089. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16090. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16091. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  16092. + # Best one so far, save it but keep looking for a better one
  16093. + ac_cv_path_SED="$ac_path_SED"
  16094. + ac_path_SED_max=$ac_count
  16095. + fi
  16096. + # 10*(2^10) chars as input seems more than enough
  16097. + test $ac_count -gt 10 && break
  16098. + done
  16099. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16100. +esac
  16101. +
  16102. + $ac_path_SED_found && break 3
  16103. done
  16104. done
  16105. -done
  16106. + done
  16107. IFS=$as_save_IFS
  16108. -lt_ac_max=0
  16109. -lt_ac_count=0
  16110. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  16111. -# along with /bin/sed that truncates output.
  16112. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  16113. - test ! -f $lt_ac_sed && continue
  16114. - cat /dev/null > conftest.in
  16115. - lt_ac_count=0
  16116. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  16117. - # Check for GNU sed and select it if it is found.
  16118. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  16119. - lt_cv_path_SED=$lt_ac_sed
  16120. - break
  16121. + if test -z "$ac_cv_path_SED"; then
  16122. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  16123. fi
  16124. - while true; do
  16125. - cat conftest.in conftest.in >conftest.tmp
  16126. - mv conftest.tmp conftest.in
  16127. - cp conftest.in conftest.nl
  16128. - echo >>conftest.nl
  16129. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  16130. - cmp -s conftest.out conftest.nl || break
  16131. - # 10000 chars as input seems more than enough
  16132. - test $lt_ac_count -gt 10 && break
  16133. - lt_ac_count=`expr $lt_ac_count + 1`
  16134. - if test $lt_ac_count -gt $lt_ac_max; then
  16135. - lt_ac_max=$lt_ac_count
  16136. - lt_cv_path_SED=$lt_ac_sed
  16137. - fi
  16138. - done
  16139. -done
  16140. +else
  16141. + ac_cv_path_SED=$SED
  16142. +fi
  16143. fi
  16144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  16145. +$as_echo "$ac_cv_path_SED" >&6; }
  16146. + SED="$ac_cv_path_SED"
  16147. + rm -f conftest.sed
  16148. +
  16149. +test -z "$SED" && SED=sed
  16150. +Xsed="$SED -e 1s/^X//"
  16151. +
  16152. +
  16153. +
  16154. +
  16155. +
  16156. +
  16157. +
  16158. -SED=$lt_cv_path_SED
  16159. -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
  16160. -$as_echo "$SED" >&6; }
  16161. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  16162. +
  16163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  16164. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  16165. -if test "${ac_cv_path_GREP+set}" = set; then
  16166. +if test "${ac_cv_path_GREP+set}" = set; then :
  16167. $as_echo_n "(cached) " >&6
  16168. else
  16169. if test -z "$GREP"; then
  16170. @@ -4136,7 +4154,7 @@
  16171. do
  16172. IFS=$as_save_IFS
  16173. test -z "$as_dir" && as_dir=.
  16174. - for ac_prog in grep ggrep; do
  16175. + for ac_prog in grep ggrep; do
  16176. for ac_exec_ext in '' $ac_executable_extensions; do
  16177. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  16178. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  16179. @@ -4156,7 +4174,7 @@
  16180. $as_echo 'GREP' >> "conftest.nl"
  16181. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16182. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16183. - ac_count=`expr $ac_count + 1`
  16184. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16185. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  16186. # Best one so far, save it but keep looking for a better one
  16187. ac_cv_path_GREP="$ac_path_GREP"
  16188. @@ -4171,26 +4189,24 @@
  16189. $ac_path_GREP_found && break 3
  16190. done
  16191. done
  16192. -done
  16193. + done
  16194. IFS=$as_save_IFS
  16195. if test -z "$ac_cv_path_GREP"; then
  16196. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16197. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16198. - { (exit 1); exit 1; }; }
  16199. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16200. fi
  16201. else
  16202. ac_cv_path_GREP=$GREP
  16203. fi
  16204. fi
  16205. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  16206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  16207. $as_echo "$ac_cv_path_GREP" >&6; }
  16208. GREP="$ac_cv_path_GREP"
  16209. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  16210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  16211. $as_echo_n "checking for egrep... " >&6; }
  16212. -if test "${ac_cv_path_EGREP+set}" = set; then
  16213. +if test "${ac_cv_path_EGREP+set}" = set; then :
  16214. $as_echo_n "(cached) " >&6
  16215. else
  16216. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  16217. @@ -4204,7 +4220,7 @@
  16218. do
  16219. IFS=$as_save_IFS
  16220. test -z "$as_dir" && as_dir=.
  16221. - for ac_prog in egrep; do
  16222. + for ac_prog in egrep; do
  16223. for ac_exec_ext in '' $ac_executable_extensions; do
  16224. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  16225. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  16226. @@ -4224,7 +4240,7 @@
  16227. $as_echo 'EGREP' >> "conftest.nl"
  16228. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16229. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16230. - ac_count=`expr $ac_count + 1`
  16231. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16232. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  16233. # Best one so far, save it but keep looking for a better one
  16234. ac_cv_path_EGREP="$ac_path_EGREP"
  16235. @@ -4239,12 +4255,10 @@
  16236. $ac_path_EGREP_found && break 3
  16237. done
  16238. done
  16239. -done
  16240. + done
  16241. IFS=$as_save_IFS
  16242. if test -z "$ac_cv_path_EGREP"; then
  16243. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  16244. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  16245. - { (exit 1); exit 1; }; }
  16246. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16247. fi
  16248. else
  16249. ac_cv_path_EGREP=$EGREP
  16250. @@ -4252,14 +4266,100 @@
  16251. fi
  16252. fi
  16253. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  16254. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  16255. $as_echo "$ac_cv_path_EGREP" >&6; }
  16256. EGREP="$ac_cv_path_EGREP"
  16257. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  16258. +$as_echo_n "checking for fgrep... " >&6; }
  16259. +if test "${ac_cv_path_FGREP+set}" = set; then :
  16260. + $as_echo_n "(cached) " >&6
  16261. +else
  16262. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  16263. + then ac_cv_path_FGREP="$GREP -F"
  16264. + else
  16265. + if test -z "$FGREP"; then
  16266. + ac_path_FGREP_found=false
  16267. + # Loop through the user's path and test for each of PROGNAME-LIST
  16268. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16269. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  16270. +do
  16271. + IFS=$as_save_IFS
  16272. + test -z "$as_dir" && as_dir=.
  16273. + for ac_prog in fgrep; do
  16274. + for ac_exec_ext in '' $ac_executable_extensions; do
  16275. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  16276. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  16277. +# Check for GNU ac_path_FGREP and select it if it is found.
  16278. + # Check for GNU $ac_path_FGREP
  16279. +case `"$ac_path_FGREP" --version 2>&1` in
  16280. +*GNU*)
  16281. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  16282. +*)
  16283. + ac_count=0
  16284. + $as_echo_n 0123456789 >"conftest.in"
  16285. + while :
  16286. + do
  16287. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  16288. + mv "conftest.tmp" "conftest.in"
  16289. + cp "conftest.in" "conftest.nl"
  16290. + $as_echo 'FGREP' >> "conftest.nl"
  16291. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  16292. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  16293. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  16294. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  16295. + # Best one so far, save it but keep looking for a better one
  16296. + ac_cv_path_FGREP="$ac_path_FGREP"
  16297. + ac_path_FGREP_max=$ac_count
  16298. + fi
  16299. + # 10*(2^10) chars as input seems more than enough
  16300. + test $ac_count -gt 10 && break
  16301. + done
  16302. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  16303. +esac
  16304. +
  16305. + $ac_path_FGREP_found && break 3
  16306. + done
  16307. + done
  16308. + done
  16309. +IFS=$as_save_IFS
  16310. + if test -z "$ac_cv_path_FGREP"; then
  16311. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  16312. + fi
  16313. +else
  16314. + ac_cv_path_FGREP=$FGREP
  16315. +fi
  16316. +
  16317. + fi
  16318. +fi
  16319. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  16320. +$as_echo "$ac_cv_path_FGREP" >&6; }
  16321. + FGREP="$ac_cv_path_FGREP"
  16322. +
  16323. +
  16324. +test -z "$GREP" && GREP=grep
  16325. +
  16326. +
  16327. +
  16328. +
  16329. +
  16330. +
  16331. +
  16332. +
  16333. +
  16334. +
  16335. +
  16336. +
  16337. +
  16338. +
  16339. +
  16340. +
  16341. +
  16342. +
  16343. # Check whether --with-gnu-ld was given.
  16344. -if test "${with_gnu_ld+set}" = set; then
  16345. +if test "${with_gnu_ld+set}" = set; then :
  16346. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16347. else
  16348. with_gnu_ld=no
  16349. @@ -4268,7 +4368,7 @@
  16350. ac_prog=ld
  16351. if test "$GCC" = yes; then
  16352. # Check if gcc -print-prog-name=ld gives a path.
  16353. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  16354. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16355. $as_echo_n "checking for ld used by $CC... " >&6; }
  16356. case $host in
  16357. *-*-mingw*)
  16358. @@ -4282,9 +4382,9 @@
  16359. [\\/]* | ?:[\\/]*)
  16360. re_direlt='/[^/][^/]*/\.\./'
  16361. # Canonicalize the pathname of ld
  16362. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  16363. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  16364. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  16365. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  16366. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  16367. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  16368. done
  16369. test -z "$LD" && LD="$ac_prog"
  16370. ;;
  16371. @@ -4298,13 +4398,13 @@
  16372. ;;
  16373. esac
  16374. elif test "$with_gnu_ld" = yes; then
  16375. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  16376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16377. $as_echo_n "checking for GNU ld... " >&6; }
  16378. else
  16379. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  16380. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16381. $as_echo_n "checking for non-GNU ld... " >&6; }
  16382. fi
  16383. -if test "${lt_cv_path_LD+set}" = set; then
  16384. +if test "${lt_cv_path_LD+set}" = set; then :
  16385. $as_echo_n "(cached) " >&6
  16386. else
  16387. if test -z "$LD"; then
  16388. @@ -4335,18 +4435,16 @@
  16389. LD="$lt_cv_path_LD"
  16390. if test -n "$LD"; then
  16391. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  16392. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16393. $as_echo "$LD" >&6; }
  16394. else
  16395. - { $as_echo "$as_me:$LINENO: result: no" >&5
  16396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16397. $as_echo "no" >&6; }
  16398. fi
  16399. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  16400. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  16401. - { (exit 1); exit 1; }; }
  16402. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  16403. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  16404. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16405. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16406. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  16407. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  16408. $as_echo_n "(cached) " >&6
  16409. else
  16410. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16411. @@ -4359,39 +4457,21 @@
  16412. ;;
  16413. esac
  16414. fi
  16415. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  16416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  16417. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  16418. with_gnu_ld=$lt_cv_prog_gnu_ld
  16419. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  16420. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  16421. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  16422. - $as_echo_n "(cached) " >&6
  16423. -else
  16424. - lt_cv_ld_reload_flag='-r'
  16425. -fi
  16426. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  16427. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  16428. -reload_flag=$lt_cv_ld_reload_flag
  16429. -case $reload_flag in
  16430. -"" | " "*) ;;
  16431. -*) reload_flag=" $reload_flag" ;;
  16432. -esac
  16433. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16434. -case $host_os in
  16435. - darwin*)
  16436. - if test "$GCC" = yes; then
  16437. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  16438. - else
  16439. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16440. - fi
  16441. - ;;
  16442. -esac
  16443. -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  16444. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  16445. -if test "${lt_cv_path_NM+set}" = set; then
  16446. +
  16447. +
  16448. +
  16449. +
  16450. +
  16451. +
  16452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  16453. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  16454. +if test "${lt_cv_path_NM+set}" = set; then :
  16455. $as_echo_n "(cached) " >&6
  16456. else
  16457. if test -n "$NM"; then
  16458. @@ -4435,2205 +4515,1069 @@
  16459. done
  16460. IFS="$lt_save_ifs"
  16461. done
  16462. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  16463. + : ${lt_cv_path_NM=no}
  16464. fi
  16465. fi
  16466. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  16467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  16468. $as_echo "$lt_cv_path_NM" >&6; }
  16469. -NM="$lt_cv_path_NM"
  16470. +if test "$lt_cv_path_NM" != "no"; then
  16471. + NM="$lt_cv_path_NM"
  16472. +else
  16473. + # Didn't find any BSD compatible name lister, look for dumpbin.
  16474. + if test -n "$ac_tool_prefix"; then
  16475. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  16476. + do
  16477. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16478. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16480. +$as_echo_n "checking for $ac_word... " >&6; }
  16481. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  16482. + $as_echo_n "(cached) " >&6
  16483. +else
  16484. + if test -n "$DUMPBIN"; then
  16485. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  16486. +else
  16487. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16488. +for as_dir in $PATH
  16489. +do
  16490. + IFS=$as_save_IFS
  16491. + test -z "$as_dir" && as_dir=.
  16492. + for ac_exec_ext in '' $ac_executable_extensions; do
  16493. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16494. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  16495. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16496. + break 2
  16497. + fi
  16498. +done
  16499. + done
  16500. +IFS=$as_save_IFS
  16501. -{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  16502. -$as_echo_n "checking whether ln -s works... " >&6; }
  16503. -LN_S=$as_ln_s
  16504. -if test "$LN_S" = "ln -s"; then
  16505. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  16506. -$as_echo "yes" >&6; }
  16507. +fi
  16508. +fi
  16509. +DUMPBIN=$ac_cv_prog_DUMPBIN
  16510. +if test -n "$DUMPBIN"; then
  16511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  16512. +$as_echo "$DUMPBIN" >&6; }
  16513. else
  16514. - { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  16515. -$as_echo "no, using $LN_S" >&6; }
  16516. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16517. +$as_echo "no" >&6; }
  16518. fi
  16519. -{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  16520. -$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  16521. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  16522. +
  16523. + test -n "$DUMPBIN" && break
  16524. + done
  16525. +fi
  16526. +if test -z "$DUMPBIN"; then
  16527. + ac_ct_DUMPBIN=$DUMPBIN
  16528. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  16529. +do
  16530. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  16531. +set dummy $ac_prog; ac_word=$2
  16532. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16533. +$as_echo_n "checking for $ac_word... " >&6; }
  16534. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  16535. $as_echo_n "(cached) " >&6
  16536. else
  16537. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  16538. -lt_cv_file_magic_test_file=
  16539. -lt_cv_deplibs_check_method='unknown'
  16540. -# Need to set the preceding variable on all platforms that support
  16541. -# interlibrary dependencies.
  16542. -# 'none' -- dependencies not supported.
  16543. -# `unknown' -- same as none, but documents that we really don't know.
  16544. -# 'pass_all' -- all dependencies passed with no checks.
  16545. -# 'test_compile' -- check by making test program.
  16546. -# 'file_magic [[regex]]' -- check by looking for files in library path
  16547. -# which responds to the $file_magic_cmd with a given extended regex.
  16548. -# If you have `file' or equivalent on your system and you're not sure
  16549. -# whether `pass_all' will *always* work, you probably want this one.
  16550. + if test -n "$ac_ct_DUMPBIN"; then
  16551. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  16552. +else
  16553. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16554. +for as_dir in $PATH
  16555. +do
  16556. + IFS=$as_save_IFS
  16557. + test -z "$as_dir" && as_dir=.
  16558. + for ac_exec_ext in '' $ac_executable_extensions; do
  16559. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16560. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  16561. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16562. + break 2
  16563. + fi
  16564. +done
  16565. + done
  16566. +IFS=$as_save_IFS
  16567. -case $host_os in
  16568. -aix[4-9]*)
  16569. - lt_cv_deplibs_check_method=pass_all
  16570. - ;;
  16571. +fi
  16572. +fi
  16573. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  16574. +if test -n "$ac_ct_DUMPBIN"; then
  16575. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  16576. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  16577. +else
  16578. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16579. +$as_echo "no" >&6; }
  16580. +fi
  16581. -beos*)
  16582. - lt_cv_deplibs_check_method=pass_all
  16583. - ;;
  16584. -bsdi[45]*)
  16585. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  16586. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  16587. - lt_cv_file_magic_test_file=/shlib/libc.so
  16588. - ;;
  16589. -
  16590. -cygwin*)
  16591. - # func_win32_libid is a shell function defined in ltmain.sh
  16592. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  16593. - lt_cv_file_magic_cmd='func_win32_libid'
  16594. - ;;
  16595. + test -n "$ac_ct_DUMPBIN" && break
  16596. +done
  16597. -mingw* | pw32*)
  16598. - # Base MSYS/MinGW do not provide the 'file' command needed by
  16599. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  16600. - # unless we find 'file', for example because we are cross-compiling.
  16601. - if ( file / ) >/dev/null 2>&1; then
  16602. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  16603. - lt_cv_file_magic_cmd='func_win32_libid'
  16604. + if test "x$ac_ct_DUMPBIN" = x; then
  16605. + DUMPBIN=":"
  16606. else
  16607. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  16608. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  16609. + case $cross_compiling:$ac_tool_warned in
  16610. +yes:)
  16611. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16612. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16613. +ac_tool_warned=yes ;;
  16614. +esac
  16615. + DUMPBIN=$ac_ct_DUMPBIN
  16616. fi
  16617. - ;;
  16618. +fi
  16619. -darwin* | rhapsody*)
  16620. - lt_cv_deplibs_check_method=pass_all
  16621. - ;;
  16622. -freebsd* | dragonfly*)
  16623. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  16624. - case $host_cpu in
  16625. - i*86 )
  16626. - # Not sure whether the presence of OpenBSD here was a mistake.
  16627. - # Let's accept both of them until this is cleared up.
  16628. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  16629. - lt_cv_file_magic_cmd=/usr/bin/file
  16630. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  16631. - ;;
  16632. - esac
  16633. - else
  16634. - lt_cv_deplibs_check_method=pass_all
  16635. + if test "$DUMPBIN" != ":"; then
  16636. + NM="$DUMPBIN"
  16637. fi
  16638. - ;;
  16639. +fi
  16640. +test -z "$NM" && NM=nm
  16641. -gnu*)
  16642. - lt_cv_deplibs_check_method=pass_all
  16643. - ;;
  16644. -hpux10.20* | hpux11*)
  16645. - lt_cv_file_magic_cmd=/usr/bin/file
  16646. - case $host_cpu in
  16647. - ia64*)
  16648. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  16649. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  16650. - ;;
  16651. - hppa*64*)
  16652. - 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]'
  16653. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  16654. - ;;
  16655. - *)
  16656. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  16657. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  16658. - ;;
  16659. - esac
  16660. - ;;
  16661. -interix[3-9]*)
  16662. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  16663. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  16664. - ;;
  16665. -irix5* | irix6* | nonstopux*)
  16666. - case $LD in
  16667. - *-32|*"-32 ") libmagic=32-bit;;
  16668. - *-n32|*"-n32 ") libmagic=N32;;
  16669. - *-64|*"-64 ") libmagic=64-bit;;
  16670. - *) libmagic=never-match;;
  16671. - esac
  16672. - lt_cv_deplibs_check_method=pass_all
  16673. - ;;
  16674. -# This must be Linux ELF.
  16675. -linux* | k*bsd*-gnu)
  16676. - lt_cv_deplibs_check_method=pass_all
  16677. - ;;
  16678. -netbsd*)
  16679. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  16680. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  16681. - else
  16682. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  16683. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  16684. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  16685. +if test "${lt_cv_nm_interface+set}" = set; then :
  16686. + $as_echo_n "(cached) " >&6
  16687. +else
  16688. + lt_cv_nm_interface="BSD nm"
  16689. + echo "int some_variable = 0;" > conftest.$ac_ext
  16690. + (eval echo "\"\$as_me:4646: $ac_compile\"" >&5)
  16691. + (eval "$ac_compile" 2>conftest.err)
  16692. + cat conftest.err >&5
  16693. + (eval echo "\"\$as_me:4649: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  16694. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  16695. + cat conftest.err >&5
  16696. + (eval echo "\"\$as_me:4652: output\"" >&5)
  16697. + cat conftest.out >&5
  16698. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  16699. + lt_cv_nm_interface="MS dumpbin"
  16700. fi
  16701. - ;;
  16702. + rm -f conftest*
  16703. +fi
  16704. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  16705. +$as_echo "$lt_cv_nm_interface" >&6; }
  16706. -newos6*)
  16707. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  16708. - lt_cv_file_magic_cmd=/usr/bin/file
  16709. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  16710. - ;;
  16711. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  16712. +$as_echo_n "checking whether ln -s works... " >&6; }
  16713. +LN_S=$as_ln_s
  16714. +if test "$LN_S" = "ln -s"; then
  16715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16716. +$as_echo "yes" >&6; }
  16717. +else
  16718. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  16719. +$as_echo "no, using $LN_S" >&6; }
  16720. +fi
  16721. -nto-qnx*)
  16722. - lt_cv_deplibs_check_method=unknown
  16723. - ;;
  16724. +# find the maximum length of command line arguments
  16725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  16726. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  16727. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  16728. + $as_echo_n "(cached) " >&6
  16729. +else
  16730. + i=0
  16731. + teststring="ABCD"
  16732. -openbsd*)
  16733. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16734. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  16735. - else
  16736. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  16737. - fi
  16738. - ;;
  16739. + case $build_os in
  16740. + msdosdjgpp*)
  16741. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  16742. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  16743. + # during glob expansion). Even if it were fixed, the result of this
  16744. + # check would be larger than it should be.
  16745. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  16746. + ;;
  16747. -osf3* | osf4* | osf5*)
  16748. - lt_cv_deplibs_check_method=pass_all
  16749. - ;;
  16750. + gnu*)
  16751. + # Under GNU Hurd, this test is not required because there is
  16752. + # no limit to the length of command line arguments.
  16753. + # Libtool will interpret -1 as no limit whatsoever
  16754. + lt_cv_sys_max_cmd_len=-1;
  16755. + ;;
  16756. -rdos*)
  16757. - lt_cv_deplibs_check_method=pass_all
  16758. - ;;
  16759. + cygwin* | mingw* | cegcc*)
  16760. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  16761. + # about 5 minutes as the teststring grows exponentially.
  16762. + # Worse, since 9x/ME are not pre-emptively multitasking,
  16763. + # you end up with a "frozen" computer, even though with patience
  16764. + # the test eventually succeeds (with a max line length of 256k).
  16765. + # Instead, let's just punt: use the minimum linelength reported by
  16766. + # all of the supported platforms: 8192 (on NT/2K/XP).
  16767. + lt_cv_sys_max_cmd_len=8192;
  16768. + ;;
  16769. -solaris*)
  16770. - lt_cv_deplibs_check_method=pass_all
  16771. - ;;
  16772. + amigaos*)
  16773. + # On AmigaOS with pdksh, this test takes hours, literally.
  16774. + # So we just punt and use a minimum line length of 8192.
  16775. + lt_cv_sys_max_cmd_len=8192;
  16776. + ;;
  16777. -sysv4 | sysv4.3*)
  16778. - case $host_vendor in
  16779. - motorola)
  16780. - 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]'
  16781. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  16782. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  16783. + # This has been around since 386BSD, at least. Likely further.
  16784. + if test -x /sbin/sysctl; then
  16785. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  16786. + elif test -x /usr/sbin/sysctl; then
  16787. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  16788. + else
  16789. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  16790. + fi
  16791. + # And add a safety zone
  16792. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  16793. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  16794. ;;
  16795. - ncr)
  16796. - lt_cv_deplibs_check_method=pass_all
  16797. +
  16798. + interix*)
  16799. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  16800. + lt_cv_sys_max_cmd_len=196608
  16801. ;;
  16802. - sequent)
  16803. - lt_cv_file_magic_cmd='/bin/file'
  16804. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  16805. +
  16806. + osf*)
  16807. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  16808. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  16809. + # nice to cause kernel panics so lets avoid the loop below.
  16810. + # First set a reasonable default.
  16811. + lt_cv_sys_max_cmd_len=16384
  16812. + #
  16813. + if test -x /sbin/sysconfig; then
  16814. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  16815. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  16816. + esac
  16817. + fi
  16818. ;;
  16819. - sni)
  16820. - lt_cv_file_magic_cmd='/bin/file'
  16821. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  16822. - lt_cv_file_magic_test_file=/lib/libc.so
  16823. + sco3.2v5*)
  16824. + lt_cv_sys_max_cmd_len=102400
  16825. ;;
  16826. - siemens)
  16827. - lt_cv_deplibs_check_method=pass_all
  16828. + sysv5* | sco5v6* | sysv4.2uw2*)
  16829. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  16830. + if test -n "$kargmax"; then
  16831. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  16832. + else
  16833. + lt_cv_sys_max_cmd_len=32768
  16834. + fi
  16835. ;;
  16836. - pc)
  16837. - lt_cv_deplibs_check_method=pass_all
  16838. + *)
  16839. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  16840. + if test -n "$lt_cv_sys_max_cmd_len"; then
  16841. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  16842. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  16843. + else
  16844. + # Make teststring a little bigger before we do anything with it.
  16845. + # a 1K string should be a reasonable start.
  16846. + for i in 1 2 3 4 5 6 7 8 ; do
  16847. + teststring=$teststring$teststring
  16848. + done
  16849. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  16850. + # If test is not a shell built-in, we'll probably end up computing a
  16851. + # maximum length that is only half of the actual maximum length, but
  16852. + # we can't tell.
  16853. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  16854. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  16855. + test $i != 17 # 1/2 MB should be enough
  16856. + do
  16857. + i=`expr $i + 1`
  16858. + teststring=$teststring$teststring
  16859. + done
  16860. + # Only check the string length outside the loop.
  16861. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  16862. + teststring=
  16863. + # Add a significant safety factor because C++ compilers can tack on
  16864. + # massive amounts of additional arguments before passing them to the
  16865. + # linker. It appears as though 1/2 is a usable value.
  16866. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  16867. + fi
  16868. ;;
  16869. esac
  16870. - ;;
  16871. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16872. - lt_cv_deplibs_check_method=pass_all
  16873. - ;;
  16874. -esac
  16875. +fi
  16876. +if test -n $lt_cv_sys_max_cmd_len ; then
  16877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  16878. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  16879. +else
  16880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  16881. +$as_echo "none" >&6; }
  16882. fi
  16883. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  16884. -$as_echo "$lt_cv_deplibs_check_method" >&6; }
  16885. -file_magic_cmd=$lt_cv_file_magic_cmd
  16886. -deplibs_check_method=$lt_cv_deplibs_check_method
  16887. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  16888. +max_cmd_len=$lt_cv_sys_max_cmd_len
  16889. -# If no C compiler was specified, use CC.
  16890. -LTCC=${LTCC-"$CC"}
  16891. -# If no C compiler flags were specified, use CFLAGS.
  16892. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16893. -# Allow CC to be a program name with arguments.
  16894. -compiler=$CC
  16895. +: ${CP="cp -f"}
  16896. +: ${MV="mv -f"}
  16897. +: ${RM="rm -f"}
  16898. +
  16899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  16900. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  16901. +# Try some XSI features
  16902. +xsi_shell=no
  16903. +( _lt_dummy="a/b/c"
  16904. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  16905. + = c,a/b,, \
  16906. + && eval 'test $(( 1 + 1 )) -eq 2 \
  16907. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  16908. + && xsi_shell=yes
  16909. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  16910. +$as_echo "$xsi_shell" >&6; }
  16911. +
  16912. +
  16913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  16914. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  16915. +lt_shell_append=no
  16916. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  16917. + >/dev/null 2>&1 \
  16918. + && lt_shell_append=yes
  16919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  16920. +$as_echo "$lt_shell_append" >&6; }
  16921. -# Check whether --enable-libtool-lock was given.
  16922. -if test "${enable_libtool_lock+set}" = set; then
  16923. - enableval=$enable_libtool_lock;
  16924. +
  16925. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16926. + lt_unset=unset
  16927. +else
  16928. + lt_unset=false
  16929. fi
  16930. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  16931. -# Some flags need to be propagated to the compiler or linker for good
  16932. -# libtool support.
  16933. -case $host in
  16934. -ia64-*-hpux*)
  16935. - # Find out which ABI we are using.
  16936. - echo 'int i;' > conftest.$ac_ext
  16937. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16938. - (eval $ac_compile) 2>&5
  16939. - ac_status=$?
  16940. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16941. - (exit $ac_status); }; then
  16942. - case `/usr/bin/file conftest.$ac_objext` in
  16943. - *ELF-32*)
  16944. - HPUX_IA64_MODE="32"
  16945. - ;;
  16946. - *ELF-64*)
  16947. - HPUX_IA64_MODE="64"
  16948. - ;;
  16949. - esac
  16950. - fi
  16951. - rm -rf conftest*
  16952. +
  16953. +
  16954. +
  16955. +# test EBCDIC or ASCII
  16956. +case `echo X|tr X '\101'` in
  16957. + A) # ASCII based system
  16958. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  16959. + lt_SP2NL='tr \040 \012'
  16960. + lt_NL2SP='tr \015\012 \040\040'
  16961. ;;
  16962. -*-*-irix6*)
  16963. - # Find out which ABI we are using.
  16964. - echo '#line 4691 "configure"' > conftest.$ac_ext
  16965. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16966. - (eval $ac_compile) 2>&5
  16967. - ac_status=$?
  16968. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16969. - (exit $ac_status); }; then
  16970. - if test "$lt_cv_prog_gnu_ld" = yes; then
  16971. - case `/usr/bin/file conftest.$ac_objext` in
  16972. - *32-bit*)
  16973. - LD="${LD-ld} -melf32bsmip"
  16974. - ;;
  16975. - *N32*)
  16976. - LD="${LD-ld} -melf32bmipn32"
  16977. - ;;
  16978. - *64-bit*)
  16979. - LD="${LD-ld} -melf64bmip"
  16980. - ;;
  16981. - esac
  16982. - else
  16983. - case `/usr/bin/file conftest.$ac_objext` in
  16984. - *32-bit*)
  16985. - LD="${LD-ld} -32"
  16986. - ;;
  16987. - *N32*)
  16988. - LD="${LD-ld} -n32"
  16989. - ;;
  16990. - *64-bit*)
  16991. - LD="${LD-ld} -64"
  16992. - ;;
  16993. - esac
  16994. - fi
  16995. - fi
  16996. - rm -rf conftest*
  16997. + *) # EBCDIC based system
  16998. + lt_SP2NL='tr \100 \n'
  16999. + lt_NL2SP='tr \r\n \100\100'
  17000. ;;
  17001. +esac
  17002. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  17003. -s390*-*linux*|sparc*-*linux*)
  17004. - # Find out which ABI we are using.
  17005. - echo 'int i;' > conftest.$ac_ext
  17006. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17007. - (eval $ac_compile) 2>&5
  17008. - ac_status=$?
  17009. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17010. - (exit $ac_status); }; then
  17011. - case `/usr/bin/file conftest.o` in
  17012. - *32-bit*)
  17013. - case $host in
  17014. - x86_64-*kfreebsd*-gnu)
  17015. - LD="${LD-ld} -m elf_i386_fbsd"
  17016. - ;;
  17017. - x86_64-*linux*)
  17018. - LD="${LD-ld} -m elf_i386"
  17019. - ;;
  17020. - ppc64-*linux*|powerpc64-*linux*)
  17021. - LD="${LD-ld} -m elf32ppclinux"
  17022. - ;;
  17023. - s390x-*linux*)
  17024. - LD="${LD-ld} -m elf_s390"
  17025. - ;;
  17026. - sparc64-*linux*)
  17027. - LD="${LD-ld} -m elf32_sparc"
  17028. - ;;
  17029. - esac
  17030. - ;;
  17031. - *64-bit*)
  17032. - libsuff=64
  17033. - case $host in
  17034. - x86_64-*kfreebsd*-gnu)
  17035. - LD="${LD-ld} -m elf_x86_64_fbsd"
  17036. - ;;
  17037. - x86_64-*linux*)
  17038. - LD="${LD-ld} -m elf_x86_64"
  17039. - ;;
  17040. - ppc*-*linux*|powerpc*-*linux*)
  17041. - LD="${LD-ld} -m elf64ppc"
  17042. - ;;
  17043. - s390*-*linux*)
  17044. - LD="${LD-ld} -m elf64_s390"
  17045. - ;;
  17046. - sparc*-*linux*)
  17047. - LD="${LD-ld} -m elf64_sparc"
  17048. - ;;
  17049. - esac
  17050. - ;;
  17051. - esac
  17052. - fi
  17053. - rm -rf conftest*
  17054. - ;;
  17055. -*-*-sco3.2v5*)
  17056. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  17057. - SAVE_CFLAGS="$CFLAGS"
  17058. - CFLAGS="$CFLAGS -belf"
  17059. - { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  17060. -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  17061. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  17062. - $as_echo_n "(cached) " >&6
  17063. -else
  17064. - ac_ext=c
  17065. -ac_cpp='$CPP $CPPFLAGS'
  17066. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17067. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17068. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17069. - cat >conftest.$ac_ext <<_ACEOF
  17070. -/* confdefs.h. */
  17071. -_ACEOF
  17072. -cat confdefs.h >>conftest.$ac_ext
  17073. -cat >>conftest.$ac_ext <<_ACEOF
  17074. -/* end confdefs.h. */
  17075. -int
  17076. -main ()
  17077. -{
  17078. - ;
  17079. - return 0;
  17080. -}
  17081. -_ACEOF
  17082. -rm -f conftest.$ac_objext conftest$ac_exeext
  17083. -if { (ac_try="$ac_link"
  17084. -case "(($ac_try" in
  17085. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17086. - *) ac_try_echo=$ac_try;;
  17087. -esac
  17088. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17089. -$as_echo "$ac_try_echo") >&5
  17090. - (eval "$ac_link") 2>conftest.er1
  17091. - ac_status=$?
  17092. - grep -v '^ *+' conftest.er1 >conftest.err
  17093. - rm -f conftest.er1
  17094. - cat conftest.err >&5
  17095. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17096. - (exit $ac_status); } && {
  17097. - test -z "$ac_c_werror_flag" ||
  17098. - test ! -s conftest.err
  17099. - } && test -s conftest$ac_exeext && {
  17100. - test "$cross_compiling" = yes ||
  17101. - $as_test_x conftest$ac_exeext
  17102. - }; then
  17103. - lt_cv_cc_needs_belf=yes
  17104. -else
  17105. - $as_echo "$as_me: failed program was:" >&5
  17106. -sed 's/^/| /' conftest.$ac_ext >&5
  17107. - lt_cv_cc_needs_belf=no
  17108. -fi
  17109. -rm -rf conftest.dSYM
  17110. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17111. - conftest$ac_exeext conftest.$ac_ext
  17112. - ac_ext=c
  17113. -ac_cpp='$CPP $CPPFLAGS'
  17114. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17115. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17116. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17117. +
  17118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  17119. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  17120. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  17121. + $as_echo_n "(cached) " >&6
  17122. +else
  17123. + lt_cv_ld_reload_flag='-r'
  17124. fi
  17125. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  17126. -$as_echo "$lt_cv_cc_needs_belf" >&6; }
  17127. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  17128. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  17129. - CFLAGS="$SAVE_CFLAGS"
  17130. - fi
  17131. - ;;
  17132. -sparc*-*solaris*)
  17133. - # Find out which ABI we are using.
  17134. - echo 'int i;' > conftest.$ac_ext
  17135. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17136. - (eval $ac_compile) 2>&5
  17137. - ac_status=$?
  17138. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17139. - (exit $ac_status); }; then
  17140. - case `/usr/bin/file conftest.o` in
  17141. - *64-bit*)
  17142. - case $lt_cv_prog_gnu_ld in
  17143. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  17144. - *)
  17145. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  17146. - LD="${LD-ld} -64"
  17147. - fi
  17148. - ;;
  17149. - esac
  17150. - ;;
  17151. - esac
  17152. - fi
  17153. - rm -rf conftest*
  17154. - ;;
  17155. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  17156. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  17157. +reload_flag=$lt_cv_ld_reload_flag
  17158. +case $reload_flag in
  17159. +"" | " "*) ;;
  17160. +*) reload_flag=" $reload_flag" ;;
  17161. +esac
  17162. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17163. +case $host_os in
  17164. + darwin*)
  17165. + if test "$GCC" = yes; then
  17166. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  17167. + else
  17168. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  17169. + fi
  17170. + ;;
  17171. +esac
  17172. -esac
  17173. -need_locks="$enable_libtool_lock"
  17174. -ac_ext=c
  17175. -ac_cpp='$CPP $CPPFLAGS'
  17176. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17177. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17178. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17179. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17180. -$as_echo_n "checking how to run the C preprocessor... " >&6; }
  17181. -# On Suns, sometimes $CPP names a directory.
  17182. -if test -n "$CPP" && test -d "$CPP"; then
  17183. - CPP=
  17184. -fi
  17185. -if test -z "$CPP"; then
  17186. - if test "${ac_cv_prog_CPP+set}" = set; then
  17187. +
  17188. +
  17189. +
  17190. +
  17191. +if test -n "$ac_tool_prefix"; then
  17192. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  17193. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  17194. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17195. +$as_echo_n "checking for $ac_word... " >&6; }
  17196. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  17197. $as_echo_n "(cached) " >&6
  17198. else
  17199. - # Double quotes because CPP needs to be expanded
  17200. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17201. - do
  17202. - ac_preproc_ok=false
  17203. -for ac_c_preproc_warn_flag in '' yes
  17204. -do
  17205. - # Use a header file that comes with gcc, so configuring glibc
  17206. - # with a fresh cross-compiler works.
  17207. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17208. - # <limits.h> exists even on freestanding compilers.
  17209. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17210. - # not just through cpp. "Syntax error" is here to catch this case.
  17211. - cat >conftest.$ac_ext <<_ACEOF
  17212. -/* confdefs.h. */
  17213. -_ACEOF
  17214. -cat confdefs.h >>conftest.$ac_ext
  17215. -cat >>conftest.$ac_ext <<_ACEOF
  17216. -/* end confdefs.h. */
  17217. -#ifdef __STDC__
  17218. -# include <limits.h>
  17219. -#else
  17220. -# include <assert.h>
  17221. -#endif
  17222. - Syntax error
  17223. -_ACEOF
  17224. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17225. -case "(($ac_try" in
  17226. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17227. - *) ac_try_echo=$ac_try;;
  17228. -esac
  17229. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17230. -$as_echo "$ac_try_echo") >&5
  17231. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17232. - ac_status=$?
  17233. - grep -v '^ *+' conftest.er1 >conftest.err
  17234. - rm -f conftest.er1
  17235. - cat conftest.err >&5
  17236. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17237. - (exit $ac_status); } >/dev/null && {
  17238. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17239. - test ! -s conftest.err
  17240. - }; then
  17241. - :
  17242. + if test -n "$OBJDUMP"; then
  17243. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  17244. else
  17245. - $as_echo "$as_me: failed program was:" >&5
  17246. -sed 's/^/| /' conftest.$ac_ext >&5
  17247. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17248. +for as_dir in $PATH
  17249. +do
  17250. + IFS=$as_save_IFS
  17251. + test -z "$as_dir" && as_dir=.
  17252. + for ac_exec_ext in '' $ac_executable_extensions; do
  17253. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17254. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  17255. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17256. + break 2
  17257. + fi
  17258. +done
  17259. + done
  17260. +IFS=$as_save_IFS
  17261. - # Broken: fails on valid input.
  17262. -continue
  17263. fi
  17264. -
  17265. -rm -f conftest.err conftest.$ac_ext
  17266. -
  17267. - # OK, works on sane cases. Now check whether nonexistent headers
  17268. - # can be detected and how.
  17269. - cat >conftest.$ac_ext <<_ACEOF
  17270. -/* confdefs.h. */
  17271. -_ACEOF
  17272. -cat confdefs.h >>conftest.$ac_ext
  17273. -cat >>conftest.$ac_ext <<_ACEOF
  17274. -/* end confdefs.h. */
  17275. -#include <ac_nonexistent.h>
  17276. -_ACEOF
  17277. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17278. -case "(($ac_try" in
  17279. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17280. - *) ac_try_echo=$ac_try;;
  17281. -esac
  17282. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17283. -$as_echo "$ac_try_echo") >&5
  17284. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17285. - ac_status=$?
  17286. - grep -v '^ *+' conftest.er1 >conftest.err
  17287. - rm -f conftest.er1
  17288. - cat conftest.err >&5
  17289. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17290. - (exit $ac_status); } >/dev/null && {
  17291. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17292. - test ! -s conftest.err
  17293. - }; then
  17294. - # Broken: success on invalid input.
  17295. -continue
  17296. +fi
  17297. +OBJDUMP=$ac_cv_prog_OBJDUMP
  17298. +if test -n "$OBJDUMP"; then
  17299. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  17300. +$as_echo "$OBJDUMP" >&6; }
  17301. else
  17302. - $as_echo "$as_me: failed program was:" >&5
  17303. -sed 's/^/| /' conftest.$ac_ext >&5
  17304. -
  17305. - # Passes both tests.
  17306. -ac_preproc_ok=:
  17307. -break
  17308. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17309. +$as_echo "no" >&6; }
  17310. fi
  17311. -rm -f conftest.err conftest.$ac_ext
  17312. -done
  17313. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17314. -rm -f conftest.err conftest.$ac_ext
  17315. -if $ac_preproc_ok; then
  17316. - break
  17317. fi
  17318. -
  17319. - done
  17320. - ac_cv_prog_CPP=$CPP
  17321. +if test -z "$ac_cv_prog_OBJDUMP"; then
  17322. + ac_ct_OBJDUMP=$OBJDUMP
  17323. + # Extract the first word of "objdump", so it can be a program name with args.
  17324. +set dummy objdump; ac_word=$2
  17325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17326. +$as_echo_n "checking for $ac_word... " >&6; }
  17327. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  17328. + $as_echo_n "(cached) " >&6
  17329. +else
  17330. + if test -n "$ac_ct_OBJDUMP"; then
  17331. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  17332. +else
  17333. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17334. +for as_dir in $PATH
  17335. +do
  17336. + IFS=$as_save_IFS
  17337. + test -z "$as_dir" && as_dir=.
  17338. + for ac_exec_ext in '' $ac_executable_extensions; do
  17339. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17340. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  17341. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17342. + break 2
  17343. + fi
  17344. +done
  17345. + done
  17346. +IFS=$as_save_IFS
  17347. fi
  17348. - CPP=$ac_cv_prog_CPP
  17349. +fi
  17350. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  17351. +if test -n "$ac_ct_OBJDUMP"; then
  17352. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  17353. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  17354. else
  17355. - ac_cv_prog_CPP=$CPP
  17356. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17357. +$as_echo "no" >&6; }
  17358. fi
  17359. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  17360. -$as_echo "$CPP" >&6; }
  17361. -ac_preproc_ok=false
  17362. -for ac_c_preproc_warn_flag in '' yes
  17363. -do
  17364. - # Use a header file that comes with gcc, so configuring glibc
  17365. - # with a fresh cross-compiler works.
  17366. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17367. - # <limits.h> exists even on freestanding compilers.
  17368. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17369. - # not just through cpp. "Syntax error" is here to catch this case.
  17370. - cat >conftest.$ac_ext <<_ACEOF
  17371. -/* confdefs.h. */
  17372. -_ACEOF
  17373. -cat confdefs.h >>conftest.$ac_ext
  17374. -cat >>conftest.$ac_ext <<_ACEOF
  17375. -/* end confdefs.h. */
  17376. -#ifdef __STDC__
  17377. -# include <limits.h>
  17378. -#else
  17379. -# include <assert.h>
  17380. -#endif
  17381. - Syntax error
  17382. -_ACEOF
  17383. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17384. -case "(($ac_try" in
  17385. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17386. - *) ac_try_echo=$ac_try;;
  17387. -esac
  17388. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17389. -$as_echo "$ac_try_echo") >&5
  17390. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17391. - ac_status=$?
  17392. - grep -v '^ *+' conftest.er1 >conftest.err
  17393. - rm -f conftest.er1
  17394. - cat conftest.err >&5
  17395. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17396. - (exit $ac_status); } >/dev/null && {
  17397. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17398. - test ! -s conftest.err
  17399. - }; then
  17400. - :
  17401. -else
  17402. - $as_echo "$as_me: failed program was:" >&5
  17403. -sed 's/^/| /' conftest.$ac_ext >&5
  17404. -
  17405. - # Broken: fails on valid input.
  17406. -continue
  17407. -fi
  17408. -
  17409. -rm -f conftest.err conftest.$ac_ext
  17410. - # OK, works on sane cases. Now check whether nonexistent headers
  17411. - # can be detected and how.
  17412. - cat >conftest.$ac_ext <<_ACEOF
  17413. -/* confdefs.h. */
  17414. -_ACEOF
  17415. -cat confdefs.h >>conftest.$ac_ext
  17416. -cat >>conftest.$ac_ext <<_ACEOF
  17417. -/* end confdefs.h. */
  17418. -#include <ac_nonexistent.h>
  17419. -_ACEOF
  17420. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17421. -case "(($ac_try" in
  17422. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17423. - *) ac_try_echo=$ac_try;;
  17424. + if test "x$ac_ct_OBJDUMP" = x; then
  17425. + OBJDUMP="false"
  17426. + else
  17427. + case $cross_compiling:$ac_tool_warned in
  17428. +yes:)
  17429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17430. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17431. +ac_tool_warned=yes ;;
  17432. esac
  17433. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17434. -$as_echo "$ac_try_echo") >&5
  17435. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17436. - ac_status=$?
  17437. - grep -v '^ *+' conftest.er1 >conftest.err
  17438. - rm -f conftest.er1
  17439. - cat conftest.err >&5
  17440. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17441. - (exit $ac_status); } >/dev/null && {
  17442. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17443. - test ! -s conftest.err
  17444. - }; then
  17445. - # Broken: success on invalid input.
  17446. -continue
  17447. -else
  17448. - $as_echo "$as_me: failed program was:" >&5
  17449. -sed 's/^/| /' conftest.$ac_ext >&5
  17450. -
  17451. - # Passes both tests.
  17452. -ac_preproc_ok=:
  17453. -break
  17454. -fi
  17455. -
  17456. -rm -f conftest.err conftest.$ac_ext
  17457. -
  17458. -done
  17459. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17460. -rm -f conftest.err conftest.$ac_ext
  17461. -if $ac_preproc_ok; then
  17462. - :
  17463. + OBJDUMP=$ac_ct_OBJDUMP
  17464. + fi
  17465. else
  17466. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17467. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17468. -{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  17469. -See \`config.log' for more details." >&5
  17470. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  17471. -See \`config.log' for more details." >&2;}
  17472. - { (exit 1); exit 1; }; }; }
  17473. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  17474. fi
  17475. -ac_ext=c
  17476. -ac_cpp='$CPP $CPPFLAGS'
  17477. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17478. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17479. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17480. -
  17481. -
  17482. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17483. -$as_echo_n "checking for ANSI C header files... " >&6; }
  17484. -if test "${ac_cv_header_stdc+set}" = set; then
  17485. - $as_echo_n "(cached) " >&6
  17486. -else
  17487. - cat >conftest.$ac_ext <<_ACEOF
  17488. -/* confdefs.h. */
  17489. -_ACEOF
  17490. -cat confdefs.h >>conftest.$ac_ext
  17491. -cat >>conftest.$ac_ext <<_ACEOF
  17492. -/* end confdefs.h. */
  17493. -#include <stdlib.h>
  17494. -#include <stdarg.h>
  17495. -#include <string.h>
  17496. -#include <float.h>
  17497. +test -z "$OBJDUMP" && OBJDUMP=objdump
  17498. -int
  17499. -main ()
  17500. -{
  17501. - ;
  17502. - return 0;
  17503. -}
  17504. -_ACEOF
  17505. -rm -f conftest.$ac_objext
  17506. -if { (ac_try="$ac_compile"
  17507. -case "(($ac_try" in
  17508. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17509. - *) ac_try_echo=$ac_try;;
  17510. -esac
  17511. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17512. -$as_echo "$ac_try_echo") >&5
  17513. - (eval "$ac_compile") 2>conftest.er1
  17514. - ac_status=$?
  17515. - grep -v '^ *+' conftest.er1 >conftest.err
  17516. - rm -f conftest.er1
  17517. - cat conftest.err >&5
  17518. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17519. - (exit $ac_status); } && {
  17520. - test -z "$ac_c_werror_flag" ||
  17521. - test ! -s conftest.err
  17522. - } && test -s conftest.$ac_objext; then
  17523. - ac_cv_header_stdc=yes
  17524. -else
  17525. - $as_echo "$as_me: failed program was:" >&5
  17526. -sed 's/^/| /' conftest.$ac_ext >&5
  17527. - ac_cv_header_stdc=no
  17528. -fi
  17529. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17530. -if test $ac_cv_header_stdc = yes; then
  17531. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17532. - cat >conftest.$ac_ext <<_ACEOF
  17533. -/* confdefs.h. */
  17534. -_ACEOF
  17535. -cat confdefs.h >>conftest.$ac_ext
  17536. -cat >>conftest.$ac_ext <<_ACEOF
  17537. -/* end confdefs.h. */
  17538. -#include <string.h>
  17539. -_ACEOF
  17540. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17541. - $EGREP "memchr" >/dev/null 2>&1; then
  17542. - :
  17543. -else
  17544. - ac_cv_header_stdc=no
  17545. -fi
  17546. -rm -f conftest*
  17547. -fi
  17548. -if test $ac_cv_header_stdc = yes; then
  17549. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17550. - cat >conftest.$ac_ext <<_ACEOF
  17551. -/* confdefs.h. */
  17552. -_ACEOF
  17553. -cat confdefs.h >>conftest.$ac_ext
  17554. -cat >>conftest.$ac_ext <<_ACEOF
  17555. -/* end confdefs.h. */
  17556. -#include <stdlib.h>
  17557. -_ACEOF
  17558. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17559. - $EGREP "free" >/dev/null 2>&1; then
  17560. - :
  17561. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  17562. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  17563. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  17564. + $as_echo_n "(cached) " >&6
  17565. else
  17566. - ac_cv_header_stdc=no
  17567. -fi
  17568. -rm -f conftest*
  17569. -
  17570. -fi
  17571. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  17572. +lt_cv_file_magic_test_file=
  17573. +lt_cv_deplibs_check_method='unknown'
  17574. +# Need to set the preceding variable on all platforms that support
  17575. +# interlibrary dependencies.
  17576. +# 'none' -- dependencies not supported.
  17577. +# `unknown' -- same as none, but documents that we really don't know.
  17578. +# 'pass_all' -- all dependencies passed with no checks.
  17579. +# 'test_compile' -- check by making test program.
  17580. +# 'file_magic [[regex]]' -- check by looking for files in library path
  17581. +# which responds to the $file_magic_cmd with a given extended regex.
  17582. +# If you have `file' or equivalent on your system and you're not sure
  17583. +# whether `pass_all' will *always* work, you probably want this one.
  17584. -if test $ac_cv_header_stdc = yes; then
  17585. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17586. - if test "$cross_compiling" = yes; then
  17587. - :
  17588. -else
  17589. - cat >conftest.$ac_ext <<_ACEOF
  17590. -/* confdefs.h. */
  17591. -_ACEOF
  17592. -cat confdefs.h >>conftest.$ac_ext
  17593. -cat >>conftest.$ac_ext <<_ACEOF
  17594. -/* end confdefs.h. */
  17595. -#include <ctype.h>
  17596. -#include <stdlib.h>
  17597. -#if ((' ' & 0x0FF) == 0x020)
  17598. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17599. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17600. -#else
  17601. -# define ISLOWER(c) \
  17602. - (('a' <= (c) && (c) <= 'i') \
  17603. - || ('j' <= (c) && (c) <= 'r') \
  17604. - || ('s' <= (c) && (c) <= 'z'))
  17605. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17606. -#endif
  17607. +case $host_os in
  17608. +aix[4-9]*)
  17609. + lt_cv_deplibs_check_method=pass_all
  17610. + ;;
  17611. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17612. -int
  17613. -main ()
  17614. -{
  17615. - int i;
  17616. - for (i = 0; i < 256; i++)
  17617. - if (XOR (islower (i), ISLOWER (i))
  17618. - || toupper (i) != TOUPPER (i))
  17619. - return 2;
  17620. - return 0;
  17621. -}
  17622. -_ACEOF
  17623. -rm -f conftest$ac_exeext
  17624. -if { (ac_try="$ac_link"
  17625. -case "(($ac_try" in
  17626. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17627. - *) ac_try_echo=$ac_try;;
  17628. -esac
  17629. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17630. -$as_echo "$ac_try_echo") >&5
  17631. - (eval "$ac_link") 2>&5
  17632. - ac_status=$?
  17633. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17634. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17635. - { (case "(($ac_try" in
  17636. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17637. - *) ac_try_echo=$ac_try;;
  17638. -esac
  17639. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17640. -$as_echo "$ac_try_echo") >&5
  17641. - (eval "$ac_try") 2>&5
  17642. - ac_status=$?
  17643. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17644. - (exit $ac_status); }; }; then
  17645. - :
  17646. -else
  17647. - $as_echo "$as_me: program exited with status $ac_status" >&5
  17648. -$as_echo "$as_me: failed program was:" >&5
  17649. -sed 's/^/| /' conftest.$ac_ext >&5
  17650. +beos*)
  17651. + lt_cv_deplibs_check_method=pass_all
  17652. + ;;
  17653. -( exit $ac_status )
  17654. -ac_cv_header_stdc=no
  17655. -fi
  17656. -rm -rf conftest.dSYM
  17657. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17658. -fi
  17659. +bsdi[45]*)
  17660. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  17661. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  17662. + lt_cv_file_magic_test_file=/shlib/libc.so
  17663. + ;;
  17664. +cygwin*)
  17665. + # func_win32_libid is a shell function defined in ltmain.sh
  17666. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17667. + lt_cv_file_magic_cmd='func_win32_libid'
  17668. + ;;
  17669. -fi
  17670. -fi
  17671. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17672. -$as_echo "$ac_cv_header_stdc" >&6; }
  17673. -if test $ac_cv_header_stdc = yes; then
  17674. +mingw* | pw32*)
  17675. + # Base MSYS/MinGW do not provide the 'file' command needed by
  17676. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  17677. + # unless we find 'file', for example because we are cross-compiling.
  17678. + if ( file / ) >/dev/null 2>&1; then
  17679. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  17680. + lt_cv_file_magic_cmd='func_win32_libid'
  17681. + else
  17682. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  17683. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  17684. + fi
  17685. + ;;
  17686. -cat >>confdefs.h <<\_ACEOF
  17687. -#define STDC_HEADERS 1
  17688. -_ACEOF
  17689. -
  17690. -fi
  17691. -
  17692. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  17693. +cegcc)
  17694. + # use the weaker test based on 'objdump'. See mingw*.
  17695. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  17696. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  17697. + ;;
  17698. +darwin* | rhapsody*)
  17699. + lt_cv_deplibs_check_method=pass_all
  17700. + ;;
  17701. +freebsd* | dragonfly*)
  17702. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  17703. + case $host_cpu in
  17704. + i*86 )
  17705. + # Not sure whether the presence of OpenBSD here was a mistake.
  17706. + # Let's accept both of them until this is cleared up.
  17707. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  17708. + lt_cv_file_magic_cmd=/usr/bin/file
  17709. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  17710. + ;;
  17711. + esac
  17712. + else
  17713. + lt_cv_deplibs_check_method=pass_all
  17714. + fi
  17715. + ;;
  17716. +gnu*)
  17717. + lt_cv_deplibs_check_method=pass_all
  17718. + ;;
  17719. +hpux10.20* | hpux11*)
  17720. + lt_cv_file_magic_cmd=/usr/bin/file
  17721. + case $host_cpu in
  17722. + ia64*)
  17723. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  17724. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  17725. + ;;
  17726. + hppa*64*)
  17727. + 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]'
  17728. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  17729. + ;;
  17730. + *)
  17731. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  17732. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  17733. + ;;
  17734. + esac
  17735. + ;;
  17736. +interix[3-9]*)
  17737. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  17738. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  17739. + ;;
  17740. +irix5* | irix6* | nonstopux*)
  17741. + case $LD in
  17742. + *-32|*"-32 ") libmagic=32-bit;;
  17743. + *-n32|*"-n32 ") libmagic=N32;;
  17744. + *-64|*"-64 ") libmagic=64-bit;;
  17745. + *) libmagic=never-match;;
  17746. + esac
  17747. + lt_cv_deplibs_check_method=pass_all
  17748. + ;;
  17749. +# This must be Linux ELF.
  17750. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17751. + lt_cv_deplibs_check_method=pass_all
  17752. + ;;
  17753. +netbsd* | netbsdelf*-gnu)
  17754. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  17755. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17756. + else
  17757. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  17758. + fi
  17759. + ;;
  17760. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  17761. - inttypes.h stdint.h unistd.h
  17762. -do
  17763. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17764. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17765. -$as_echo_n "checking for $ac_header... " >&6; }
  17766. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17767. - $as_echo_n "(cached) " >&6
  17768. -else
  17769. - cat >conftest.$ac_ext <<_ACEOF
  17770. -/* confdefs.h. */
  17771. -_ACEOF
  17772. -cat confdefs.h >>conftest.$ac_ext
  17773. -cat >>conftest.$ac_ext <<_ACEOF
  17774. -/* end confdefs.h. */
  17775. -$ac_includes_default
  17776. +newos6*)
  17777. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  17778. + lt_cv_file_magic_cmd=/usr/bin/file
  17779. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  17780. + ;;
  17781. -#include <$ac_header>
  17782. -_ACEOF
  17783. -rm -f conftest.$ac_objext
  17784. -if { (ac_try="$ac_compile"
  17785. -case "(($ac_try" in
  17786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17787. - *) ac_try_echo=$ac_try;;
  17788. -esac
  17789. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17790. -$as_echo "$ac_try_echo") >&5
  17791. - (eval "$ac_compile") 2>conftest.er1
  17792. - ac_status=$?
  17793. - grep -v '^ *+' conftest.er1 >conftest.err
  17794. - rm -f conftest.er1
  17795. - cat conftest.err >&5
  17796. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17797. - (exit $ac_status); } && {
  17798. - test -z "$ac_c_werror_flag" ||
  17799. - test ! -s conftest.err
  17800. - } && test -s conftest.$ac_objext; then
  17801. - eval "$as_ac_Header=yes"
  17802. -else
  17803. - $as_echo "$as_me: failed program was:" >&5
  17804. -sed 's/^/| /' conftest.$ac_ext >&5
  17805. +*nto* | *qnx*)
  17806. + lt_cv_deplibs_check_method=pass_all
  17807. + ;;
  17808. - eval "$as_ac_Header=no"
  17809. -fi
  17810. +openbsd*)
  17811. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17812. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  17813. + else
  17814. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  17815. + fi
  17816. + ;;
  17817. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17818. -fi
  17819. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  17820. - $as_echo "$as_val"'`
  17821. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17822. -$as_echo "$ac_res" >&6; }
  17823. -as_val=`eval 'as_val=${'$as_ac_Header'}
  17824. - $as_echo "$as_val"'`
  17825. - if test "x$as_val" = x""yes; then
  17826. - cat >>confdefs.h <<_ACEOF
  17827. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17828. -_ACEOF
  17829. +osf3* | osf4* | osf5*)
  17830. + lt_cv_deplibs_check_method=pass_all
  17831. + ;;
  17832. -fi
  17833. +rdos*)
  17834. + lt_cv_deplibs_check_method=pass_all
  17835. + ;;
  17836. -done
  17837. +solaris*)
  17838. + lt_cv_deplibs_check_method=pass_all
  17839. + ;;
  17840. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17841. + lt_cv_deplibs_check_method=pass_all
  17842. + ;;
  17843. +sysv4 | sysv4.3*)
  17844. + case $host_vendor in
  17845. + motorola)
  17846. + 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]'
  17847. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  17848. + ;;
  17849. + ncr)
  17850. + lt_cv_deplibs_check_method=pass_all
  17851. + ;;
  17852. + sequent)
  17853. + lt_cv_file_magic_cmd='/bin/file'
  17854. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  17855. + ;;
  17856. + sni)
  17857. + lt_cv_file_magic_cmd='/bin/file'
  17858. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  17859. + lt_cv_file_magic_test_file=/lib/libc.so
  17860. + ;;
  17861. + siemens)
  17862. + lt_cv_deplibs_check_method=pass_all
  17863. + ;;
  17864. + pc)
  17865. + lt_cv_deplibs_check_method=pass_all
  17866. + ;;
  17867. + esac
  17868. + ;;
  17869. -for ac_header in dlfcn.h
  17870. -do
  17871. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17872. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17873. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17874. -$as_echo_n "checking for $ac_header... " >&6; }
  17875. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17876. - $as_echo_n "(cached) " >&6
  17877. -fi
  17878. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  17879. - $as_echo "$as_val"'`
  17880. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17881. -$as_echo "$ac_res" >&6; }
  17882. -else
  17883. - # Is the header compilable?
  17884. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17885. -$as_echo_n "checking $ac_header usability... " >&6; }
  17886. -cat >conftest.$ac_ext <<_ACEOF
  17887. -/* confdefs.h. */
  17888. -_ACEOF
  17889. -cat confdefs.h >>conftest.$ac_ext
  17890. -cat >>conftest.$ac_ext <<_ACEOF
  17891. -/* end confdefs.h. */
  17892. -$ac_includes_default
  17893. -#include <$ac_header>
  17894. -_ACEOF
  17895. -rm -f conftest.$ac_objext
  17896. -if { (ac_try="$ac_compile"
  17897. -case "(($ac_try" in
  17898. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17899. - *) ac_try_echo=$ac_try;;
  17900. +tpf*)
  17901. + lt_cv_deplibs_check_method=pass_all
  17902. + ;;
  17903. esac
  17904. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17905. -$as_echo "$ac_try_echo") >&5
  17906. - (eval "$ac_compile") 2>conftest.er1
  17907. - ac_status=$?
  17908. - grep -v '^ *+' conftest.er1 >conftest.err
  17909. - rm -f conftest.er1
  17910. - cat conftest.err >&5
  17911. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17912. - (exit $ac_status); } && {
  17913. - test -z "$ac_c_werror_flag" ||
  17914. - test ! -s conftest.err
  17915. - } && test -s conftest.$ac_objext; then
  17916. - ac_header_compiler=yes
  17917. -else
  17918. - $as_echo "$as_me: failed program was:" >&5
  17919. -sed 's/^/| /' conftest.$ac_ext >&5
  17920. - ac_header_compiler=no
  17921. fi
  17922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  17923. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  17924. +file_magic_cmd=$lt_cv_file_magic_cmd
  17925. +deplibs_check_method=$lt_cv_deplibs_check_method
  17926. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  17927. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17928. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17929. -$as_echo "$ac_header_compiler" >&6; }
  17930. -# Is the header present?
  17931. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17932. -$as_echo_n "checking $ac_header presence... " >&6; }
  17933. -cat >conftest.$ac_ext <<_ACEOF
  17934. -/* confdefs.h. */
  17935. -_ACEOF
  17936. -cat confdefs.h >>conftest.$ac_ext
  17937. -cat >>conftest.$ac_ext <<_ACEOF
  17938. -/* end confdefs.h. */
  17939. -#include <$ac_header>
  17940. -_ACEOF
  17941. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17942. -case "(($ac_try" in
  17943. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17944. - *) ac_try_echo=$ac_try;;
  17945. -esac
  17946. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17947. -$as_echo "$ac_try_echo") >&5
  17948. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17949. - ac_status=$?
  17950. - grep -v '^ *+' conftest.er1 >conftest.err
  17951. - rm -f conftest.er1
  17952. - cat conftest.err >&5
  17953. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17954. - (exit $ac_status); } >/dev/null && {
  17955. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17956. - test ! -s conftest.err
  17957. - }; then
  17958. - ac_header_preproc=yes
  17959. -else
  17960. - $as_echo "$as_me: failed program was:" >&5
  17961. -sed 's/^/| /' conftest.$ac_ext >&5
  17962. - ac_header_preproc=no
  17963. -fi
  17964. -rm -f conftest.err conftest.$ac_ext
  17965. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17966. -$as_echo "$ac_header_preproc" >&6; }
  17967. -# So? What about this header?
  17968. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17969. - yes:no: )
  17970. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17971. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17972. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17973. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17974. - ac_header_preproc=yes
  17975. - ;;
  17976. - no:yes:* )
  17977. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17978. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17979. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17980. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17981. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17982. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17983. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17984. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17985. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17986. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17987. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17988. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17989. - ;;
  17990. -esac
  17991. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17992. -$as_echo_n "checking for $ac_header... " >&6; }
  17993. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17994. - $as_echo_n "(cached) " >&6
  17995. -else
  17996. - eval "$as_ac_Header=\$ac_header_preproc"
  17997. -fi
  17998. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  17999. - $as_echo "$as_val"'`
  18000. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18001. -$as_echo "$ac_res" >&6; }
  18002. -fi
  18003. -as_val=`eval 'as_val=${'$as_ac_Header'}
  18004. - $as_echo "$as_val"'`
  18005. - if test "x$as_val" = x""yes; then
  18006. - cat >>confdefs.h <<_ACEOF
  18007. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18008. -_ACEOF
  18009. -fi
  18010. -done
  18011. -ac_ext=cpp
  18012. -ac_cpp='$CXXCPP $CPPFLAGS'
  18013. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18014. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18015. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18016. -if test -z "$CXX"; then
  18017. - if test -n "$CCC"; then
  18018. - CXX=$CCC
  18019. - else
  18020. - if test -n "$ac_tool_prefix"; then
  18021. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18022. - do
  18023. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18024. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18025. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18026. +
  18027. +
  18028. +if test -n "$ac_tool_prefix"; then
  18029. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  18030. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  18031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18032. $as_echo_n "checking for $ac_word... " >&6; }
  18033. -if test "${ac_cv_prog_CXX+set}" = set; then
  18034. +if test "${ac_cv_prog_AR+set}" = set; then :
  18035. $as_echo_n "(cached) " >&6
  18036. else
  18037. - if test -n "$CXX"; then
  18038. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18039. + if test -n "$AR"; then
  18040. + ac_cv_prog_AR="$AR" # Let the user override the test.
  18041. else
  18042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18043. for as_dir in $PATH
  18044. do
  18045. IFS=$as_save_IFS
  18046. test -z "$as_dir" && as_dir=.
  18047. - for ac_exec_ext in '' $ac_executable_extensions; do
  18048. + for ac_exec_ext in '' $ac_executable_extensions; do
  18049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18050. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18051. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18052. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  18053. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18054. break 2
  18055. fi
  18056. done
  18057. -done
  18058. + done
  18059. IFS=$as_save_IFS
  18060. fi
  18061. fi
  18062. -CXX=$ac_cv_prog_CXX
  18063. -if test -n "$CXX"; then
  18064. - { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  18065. -$as_echo "$CXX" >&6; }
  18066. +AR=$ac_cv_prog_AR
  18067. +if test -n "$AR"; then
  18068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  18069. +$as_echo "$AR" >&6; }
  18070. else
  18071. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18072. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18073. $as_echo "no" >&6; }
  18074. fi
  18075. - test -n "$CXX" && break
  18076. - done
  18077. fi
  18078. -if test -z "$CXX"; then
  18079. - ac_ct_CXX=$CXX
  18080. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18081. -do
  18082. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18083. -set dummy $ac_prog; ac_word=$2
  18084. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18085. +if test -z "$ac_cv_prog_AR"; then
  18086. + ac_ct_AR=$AR
  18087. + # Extract the first word of "ar", so it can be a program name with args.
  18088. +set dummy ar; ac_word=$2
  18089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18090. $as_echo_n "checking for $ac_word... " >&6; }
  18091. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18092. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  18093. $as_echo_n "(cached) " >&6
  18094. else
  18095. - if test -n "$ac_ct_CXX"; then
  18096. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18097. + if test -n "$ac_ct_AR"; then
  18098. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  18099. else
  18100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18101. for as_dir in $PATH
  18102. do
  18103. IFS=$as_save_IFS
  18104. test -z "$as_dir" && as_dir=.
  18105. - for ac_exec_ext in '' $ac_executable_extensions; do
  18106. + for ac_exec_ext in '' $ac_executable_extensions; do
  18107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18108. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  18109. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18110. + ac_cv_prog_ac_ct_AR="ar"
  18111. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18112. break 2
  18113. fi
  18114. done
  18115. -done
  18116. + done
  18117. IFS=$as_save_IFS
  18118. fi
  18119. fi
  18120. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18121. -if test -n "$ac_ct_CXX"; then
  18122. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18123. -$as_echo "$ac_ct_CXX" >&6; }
  18124. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  18125. +if test -n "$ac_ct_AR"; then
  18126. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  18127. +$as_echo "$ac_ct_AR" >&6; }
  18128. else
  18129. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18130. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18131. $as_echo "no" >&6; }
  18132. fi
  18133. -
  18134. - test -n "$ac_ct_CXX" && break
  18135. -done
  18136. -
  18137. - if test "x$ac_ct_CXX" = x; then
  18138. - CXX="g++"
  18139. + if test "x$ac_ct_AR" = x; then
  18140. + AR="false"
  18141. else
  18142. case $cross_compiling:$ac_tool_warned in
  18143. yes:)
  18144. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18147. ac_tool_warned=yes ;;
  18148. esac
  18149. - CXX=$ac_ct_CXX
  18150. + AR=$ac_ct_AR
  18151. fi
  18152. +else
  18153. + AR="$ac_cv_prog_AR"
  18154. fi
  18155. - fi
  18156. -fi
  18157. -# Provide some information about the compiler.
  18158. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18159. -set X $ac_compile
  18160. -ac_compiler=$2
  18161. -{ (ac_try="$ac_compiler --version >&5"
  18162. -case "(($ac_try" in
  18163. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18164. - *) ac_try_echo=$ac_try;;
  18165. -esac
  18166. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18167. -$as_echo "$ac_try_echo") >&5
  18168. - (eval "$ac_compiler --version >&5") 2>&5
  18169. - ac_status=$?
  18170. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18171. - (exit $ac_status); }
  18172. -{ (ac_try="$ac_compiler -v >&5"
  18173. -case "(($ac_try" in
  18174. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18175. - *) ac_try_echo=$ac_try;;
  18176. -esac
  18177. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18178. -$as_echo "$ac_try_echo") >&5
  18179. - (eval "$ac_compiler -v >&5") 2>&5
  18180. - ac_status=$?
  18181. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18182. - (exit $ac_status); }
  18183. -{ (ac_try="$ac_compiler -V >&5"
  18184. -case "(($ac_try" in
  18185. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18186. - *) ac_try_echo=$ac_try;;
  18187. -esac
  18188. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18189. -$as_echo "$ac_try_echo") >&5
  18190. - (eval "$ac_compiler -V >&5") 2>&5
  18191. - ac_status=$?
  18192. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18193. - (exit $ac_status); }
  18194. +test -z "$AR" && AR=ar
  18195. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  18196. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18197. -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  18198. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18199. - $as_echo_n "(cached) " >&6
  18200. -else
  18201. - cat >conftest.$ac_ext <<_ACEOF
  18202. -/* confdefs.h. */
  18203. -_ACEOF
  18204. -cat confdefs.h >>conftest.$ac_ext
  18205. -cat >>conftest.$ac_ext <<_ACEOF
  18206. -/* end confdefs.h. */
  18207. -int
  18208. -main ()
  18209. -{
  18210. -#ifndef __GNUC__
  18211. - choke me
  18212. -#endif
  18213. - ;
  18214. - return 0;
  18215. -}
  18216. -_ACEOF
  18217. -rm -f conftest.$ac_objext
  18218. -if { (ac_try="$ac_compile"
  18219. -case "(($ac_try" in
  18220. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18221. - *) ac_try_echo=$ac_try;;
  18222. -esac
  18223. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18224. -$as_echo "$ac_try_echo") >&5
  18225. - (eval "$ac_compile") 2>conftest.er1
  18226. - ac_status=$?
  18227. - grep -v '^ *+' conftest.er1 >conftest.err
  18228. - rm -f conftest.er1
  18229. - cat conftest.err >&5
  18230. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18231. - (exit $ac_status); } && {
  18232. - test -z "$ac_cxx_werror_flag" ||
  18233. - test ! -s conftest.err
  18234. - } && test -s conftest.$ac_objext; then
  18235. - ac_compiler_gnu=yes
  18236. -else
  18237. - $as_echo "$as_me: failed program was:" >&5
  18238. -sed 's/^/| /' conftest.$ac_ext >&5
  18239. - ac_compiler_gnu=no
  18240. -fi
  18241. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18242. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18243. -fi
  18244. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18245. -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  18246. -if test $ac_compiler_gnu = yes; then
  18247. - GXX=yes
  18248. -else
  18249. - GXX=
  18250. -fi
  18251. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  18252. -ac_save_CXXFLAGS=$CXXFLAGS
  18253. -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18254. -$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  18255. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  18256. - $as_echo_n "(cached) " >&6
  18257. -else
  18258. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18259. - ac_cxx_werror_flag=yes
  18260. - ac_cv_prog_cxx_g=no
  18261. - CXXFLAGS="-g"
  18262. - cat >conftest.$ac_ext <<_ACEOF
  18263. -/* confdefs.h. */
  18264. -_ACEOF
  18265. -cat confdefs.h >>conftest.$ac_ext
  18266. -cat >>conftest.$ac_ext <<_ACEOF
  18267. -/* end confdefs.h. */
  18268. -int
  18269. -main ()
  18270. -{
  18271. - ;
  18272. - return 0;
  18273. -}
  18274. -_ACEOF
  18275. -rm -f conftest.$ac_objext
  18276. -if { (ac_try="$ac_compile"
  18277. -case "(($ac_try" in
  18278. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18279. - *) ac_try_echo=$ac_try;;
  18280. -esac
  18281. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18282. -$as_echo "$ac_try_echo") >&5
  18283. - (eval "$ac_compile") 2>conftest.er1
  18284. - ac_status=$?
  18285. - grep -v '^ *+' conftest.er1 >conftest.err
  18286. - rm -f conftest.er1
  18287. - cat conftest.err >&5
  18288. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18289. - (exit $ac_status); } && {
  18290. - test -z "$ac_cxx_werror_flag" ||
  18291. - test ! -s conftest.err
  18292. - } && test -s conftest.$ac_objext; then
  18293. - ac_cv_prog_cxx_g=yes
  18294. -else
  18295. - $as_echo "$as_me: failed program was:" >&5
  18296. -sed 's/^/| /' conftest.$ac_ext >&5
  18297. - CXXFLAGS=""
  18298. - cat >conftest.$ac_ext <<_ACEOF
  18299. -/* confdefs.h. */
  18300. -_ACEOF
  18301. -cat confdefs.h >>conftest.$ac_ext
  18302. -cat >>conftest.$ac_ext <<_ACEOF
  18303. -/* end confdefs.h. */
  18304. -int
  18305. -main ()
  18306. -{
  18307. - ;
  18308. - return 0;
  18309. -}
  18310. -_ACEOF
  18311. -rm -f conftest.$ac_objext
  18312. -if { (ac_try="$ac_compile"
  18313. -case "(($ac_try" in
  18314. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18315. - *) ac_try_echo=$ac_try;;
  18316. -esac
  18317. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18318. -$as_echo "$ac_try_echo") >&5
  18319. - (eval "$ac_compile") 2>conftest.er1
  18320. - ac_status=$?
  18321. - grep -v '^ *+' conftest.er1 >conftest.err
  18322. - rm -f conftest.er1
  18323. - cat conftest.err >&5
  18324. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18325. - (exit $ac_status); } && {
  18326. - test -z "$ac_cxx_werror_flag" ||
  18327. - test ! -s conftest.err
  18328. - } && test -s conftest.$ac_objext; then
  18329. - :
  18330. +if test -n "$ac_tool_prefix"; then
  18331. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18332. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18334. +$as_echo_n "checking for $ac_word... " >&6; }
  18335. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18336. + $as_echo_n "(cached) " >&6
  18337. else
  18338. - $as_echo "$as_me: failed program was:" >&5
  18339. -sed 's/^/| /' conftest.$ac_ext >&5
  18340. -
  18341. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18342. - CXXFLAGS="-g"
  18343. - cat >conftest.$ac_ext <<_ACEOF
  18344. -/* confdefs.h. */
  18345. -_ACEOF
  18346. -cat confdefs.h >>conftest.$ac_ext
  18347. -cat >>conftest.$ac_ext <<_ACEOF
  18348. -/* end confdefs.h. */
  18349. -
  18350. -int
  18351. -main ()
  18352. -{
  18353. -
  18354. - ;
  18355. - return 0;
  18356. -}
  18357. -_ACEOF
  18358. -rm -f conftest.$ac_objext
  18359. -if { (ac_try="$ac_compile"
  18360. -case "(($ac_try" in
  18361. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18362. - *) ac_try_echo=$ac_try;;
  18363. -esac
  18364. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18365. -$as_echo "$ac_try_echo") >&5
  18366. - (eval "$ac_compile") 2>conftest.er1
  18367. - ac_status=$?
  18368. - grep -v '^ *+' conftest.er1 >conftest.err
  18369. - rm -f conftest.er1
  18370. - cat conftest.err >&5
  18371. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18372. - (exit $ac_status); } && {
  18373. - test -z "$ac_cxx_werror_flag" ||
  18374. - test ! -s conftest.err
  18375. - } && test -s conftest.$ac_objext; then
  18376. - ac_cv_prog_cxx_g=yes
  18377. + if test -n "$STRIP"; then
  18378. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18379. else
  18380. - $as_echo "$as_me: failed program was:" >&5
  18381. -sed 's/^/| /' conftest.$ac_ext >&5
  18382. -
  18383. -
  18384. -fi
  18385. -
  18386. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18387. -fi
  18388. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18389. +for as_dir in $PATH
  18390. +do
  18391. + IFS=$as_save_IFS
  18392. + test -z "$as_dir" && as_dir=.
  18393. + for ac_exec_ext in '' $ac_executable_extensions; do
  18394. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18395. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18396. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18397. + break 2
  18398. + fi
  18399. +done
  18400. + done
  18401. +IFS=$as_save_IFS
  18402. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18403. fi
  18404. -
  18405. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18406. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18407. fi
  18408. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18409. -$as_echo "$ac_cv_prog_cxx_g" >&6; }
  18410. -if test "$ac_test_CXXFLAGS" = set; then
  18411. - CXXFLAGS=$ac_save_CXXFLAGS
  18412. -elif test $ac_cv_prog_cxx_g = yes; then
  18413. - if test "$GXX" = yes; then
  18414. - CXXFLAGS="-g -O2"
  18415. - else
  18416. - CXXFLAGS="-g"
  18417. - fi
  18418. +STRIP=$ac_cv_prog_STRIP
  18419. +if test -n "$STRIP"; then
  18420. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18421. +$as_echo "$STRIP" >&6; }
  18422. else
  18423. - if test "$GXX" = yes; then
  18424. - CXXFLAGS="-O2"
  18425. - else
  18426. - CXXFLAGS=
  18427. - fi
  18428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18429. +$as_echo "no" >&6; }
  18430. fi
  18431. -ac_ext=cpp
  18432. -ac_cpp='$CXXCPP $CPPFLAGS'
  18433. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18434. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18435. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18436. -depcc="$CXX" am_compiler_list=
  18437. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18438. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  18439. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18440. +fi
  18441. +if test -z "$ac_cv_prog_STRIP"; then
  18442. + ac_ct_STRIP=$STRIP
  18443. + # Extract the first word of "strip", so it can be a program name with args.
  18444. +set dummy strip; ac_word=$2
  18445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18446. +$as_echo_n "checking for $ac_word... " >&6; }
  18447. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18448. $as_echo_n "(cached) " >&6
  18449. else
  18450. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18451. - # We make a subdir and do the tests there. Otherwise we can end up
  18452. - # making bogus files that we don't know about and never remove. For
  18453. - # instance it was reported that on HP-UX the gcc test will end up
  18454. - # making a dummy file named `D' -- because `-MD' means `put the output
  18455. - # in D'.
  18456. - mkdir conftest.dir
  18457. - # Copy depcomp to subdir because otherwise we won't find it if we're
  18458. - # using a relative directory.
  18459. - cp "$am_depcomp" conftest.dir
  18460. - cd conftest.dir
  18461. - # We will build objects and dependencies in a subdirectory because
  18462. - # it helps to detect inapplicable dependency modes. For instance
  18463. - # both Tru64's cc and ICC support -MD to output dependencies as a
  18464. - # side effect of compilation, but ICC will put the dependencies in
  18465. - # the current directory while Tru64 will put them in the object
  18466. - # directory.
  18467. - mkdir sub
  18468. -
  18469. - am_cv_CXX_dependencies_compiler_type=none
  18470. - if test "$am_compiler_list" = ""; then
  18471. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18472. + if test -n "$ac_ct_STRIP"; then
  18473. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18474. +else
  18475. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18476. +for as_dir in $PATH
  18477. +do
  18478. + IFS=$as_save_IFS
  18479. + test -z "$as_dir" && as_dir=.
  18480. + for ac_exec_ext in '' $ac_executable_extensions; do
  18481. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18482. + ac_cv_prog_ac_ct_STRIP="strip"
  18483. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18484. + break 2
  18485. fi
  18486. - for depmode in $am_compiler_list; do
  18487. - # Setup a source with many dependencies, because some compilers
  18488. - # like to wrap large dependency lists on column 80 (with \), and
  18489. - # we should not choose a depcomp mode which is confused by this.
  18490. - #
  18491. - # We need to recreate these files for each test, as the compiler may
  18492. - # overwrite some of them when testing with obscure command lines.
  18493. - # This happens at least with the AIX C compiler.
  18494. - : > sub/conftest.c
  18495. - for i in 1 2 3 4 5 6; do
  18496. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18497. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18498. - # Solaris 8's {/usr,}/bin/sh.
  18499. - touch sub/conftst$i.h
  18500. - done
  18501. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18502. -
  18503. - case $depmode in
  18504. - nosideeffect)
  18505. - # after this tag, mechanisms are not by side-effect, so they'll
  18506. - # only be used when explicitly requested
  18507. - if test "x$enable_dependency_tracking" = xyes; then
  18508. - continue
  18509. - else
  18510. - break
  18511. - fi
  18512. - ;;
  18513. - none) break ;;
  18514. - esac
  18515. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18516. - # mode. It turns out that the SunPro C++ compiler does not properly
  18517. - # handle `-M -o', and we need to detect this.
  18518. - if depmode=$depmode \
  18519. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18520. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18521. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18522. - >/dev/null 2>conftest.err &&
  18523. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18524. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18525. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18526. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18527. - # icc doesn't choke on unknown options, it will just issue warnings
  18528. - # or remarks (even with -Werror). So we grep stderr for any message
  18529. - # that says an option was ignored or not supported.
  18530. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  18531. - # icc: Command line warning: ignoring option '-M'; no argument required
  18532. - # The diagnosis changed in icc 8.0:
  18533. - # icc: Command line remark: option '-MP' not supported
  18534. - if (grep 'ignoring option' conftest.err ||
  18535. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18536. - am_cv_CXX_dependencies_compiler_type=$depmode
  18537. - break
  18538. - fi
  18539. - fi
  18540. +done
  18541. done
  18542. +IFS=$as_save_IFS
  18543. - cd ..
  18544. - rm -rf conftest.dir
  18545. -else
  18546. - am_cv_CXX_dependencies_compiler_type=none
  18547. fi
  18548. -
  18549. fi
  18550. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18551. -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  18552. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18553. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18554. +if test -n "$ac_ct_STRIP"; then
  18555. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18556. +$as_echo "$ac_ct_STRIP" >&6; }
  18557. +else
  18558. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18559. +$as_echo "no" >&6; }
  18560. +fi
  18561. - if
  18562. - test "x$enable_dependency_tracking" != xno \
  18563. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18564. - am__fastdepCXX_TRUE=
  18565. - am__fastdepCXX_FALSE='#'
  18566. + if test "x$ac_ct_STRIP" = x; then
  18567. + STRIP=":"
  18568. + else
  18569. + case $cross_compiling:$ac_tool_warned in
  18570. +yes:)
  18571. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18572. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18573. +ac_tool_warned=yes ;;
  18574. +esac
  18575. + STRIP=$ac_ct_STRIP
  18576. + fi
  18577. else
  18578. - am__fastdepCXX_TRUE='#'
  18579. - am__fastdepCXX_FALSE=
  18580. + STRIP="$ac_cv_prog_STRIP"
  18581. fi
  18582. +test -z "$STRIP" && STRIP=:
  18583. +
  18584. +
  18585. +
  18586. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  18587. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  18588. - (test "X$CXX" != "Xg++"))) ; then
  18589. - ac_ext=cpp
  18590. -ac_cpp='$CXXCPP $CPPFLAGS'
  18591. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18592. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18593. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18594. -{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  18595. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  18596. -if test -z "$CXXCPP"; then
  18597. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  18598. +if test -n "$ac_tool_prefix"; then
  18599. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18600. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18601. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18602. +$as_echo_n "checking for $ac_word... " >&6; }
  18603. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  18604. $as_echo_n "(cached) " >&6
  18605. else
  18606. - # Double quotes because CXXCPP needs to be expanded
  18607. - for CXXCPP in "$CXX -E" "/lib/cpp"
  18608. - do
  18609. - ac_preproc_ok=false
  18610. -for ac_cxx_preproc_warn_flag in '' yes
  18611. -do
  18612. - # Use a header file that comes with gcc, so configuring glibc
  18613. - # with a fresh cross-compiler works.
  18614. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18615. - # <limits.h> exists even on freestanding compilers.
  18616. - # On the NeXT, cc -E runs the code through the compiler's parser,
  18617. - # not just through cpp. "Syntax error" is here to catch this case.
  18618. - cat >conftest.$ac_ext <<_ACEOF
  18619. -/* confdefs.h. */
  18620. -_ACEOF
  18621. -cat confdefs.h >>conftest.$ac_ext
  18622. -cat >>conftest.$ac_ext <<_ACEOF
  18623. -/* end confdefs.h. */
  18624. -#ifdef __STDC__
  18625. -# include <limits.h>
  18626. -#else
  18627. -# include <assert.h>
  18628. -#endif
  18629. - Syntax error
  18630. -_ACEOF
  18631. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18632. -case "(($ac_try" in
  18633. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18634. - *) ac_try_echo=$ac_try;;
  18635. -esac
  18636. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18637. -$as_echo "$ac_try_echo") >&5
  18638. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18639. - ac_status=$?
  18640. - grep -v '^ *+' conftest.er1 >conftest.err
  18641. - rm -f conftest.er1
  18642. - cat conftest.err >&5
  18643. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18644. - (exit $ac_status); } >/dev/null && {
  18645. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18646. - test ! -s conftest.err
  18647. - }; then
  18648. - :
  18649. -else
  18650. - $as_echo "$as_me: failed program was:" >&5
  18651. -sed 's/^/| /' conftest.$ac_ext >&5
  18652. -
  18653. - # Broken: fails on valid input.
  18654. -continue
  18655. -fi
  18656. -
  18657. -rm -f conftest.err conftest.$ac_ext
  18658. -
  18659. - # OK, works on sane cases. Now check whether nonexistent headers
  18660. - # can be detected and how.
  18661. - cat >conftest.$ac_ext <<_ACEOF
  18662. -/* confdefs.h. */
  18663. -_ACEOF
  18664. -cat confdefs.h >>conftest.$ac_ext
  18665. -cat >>conftest.$ac_ext <<_ACEOF
  18666. -/* end confdefs.h. */
  18667. -#include <ac_nonexistent.h>
  18668. -_ACEOF
  18669. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18670. -case "(($ac_try" in
  18671. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18672. - *) ac_try_echo=$ac_try;;
  18673. -esac
  18674. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18675. -$as_echo "$ac_try_echo") >&5
  18676. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18677. - ac_status=$?
  18678. - grep -v '^ *+' conftest.er1 >conftest.err
  18679. - rm -f conftest.er1
  18680. - cat conftest.err >&5
  18681. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682. - (exit $ac_status); } >/dev/null && {
  18683. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18684. - test ! -s conftest.err
  18685. - }; then
  18686. - # Broken: success on invalid input.
  18687. -continue
  18688. -else
  18689. - $as_echo "$as_me: failed program was:" >&5
  18690. -sed 's/^/| /' conftest.$ac_ext >&5
  18691. -
  18692. - # Passes both tests.
  18693. -ac_preproc_ok=:
  18694. -break
  18695. -fi
  18696. -
  18697. -rm -f conftest.err conftest.$ac_ext
  18698. -
  18699. -done
  18700. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18701. -rm -f conftest.err conftest.$ac_ext
  18702. -if $ac_preproc_ok; then
  18703. - break
  18704. -fi
  18705. -
  18706. - done
  18707. - ac_cv_prog_CXXCPP=$CXXCPP
  18708. -
  18709. -fi
  18710. - CXXCPP=$ac_cv_prog_CXXCPP
  18711. -else
  18712. - ac_cv_prog_CXXCPP=$CXXCPP
  18713. -fi
  18714. -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  18715. -$as_echo "$CXXCPP" >&6; }
  18716. -ac_preproc_ok=false
  18717. -for ac_cxx_preproc_warn_flag in '' yes
  18718. -do
  18719. - # Use a header file that comes with gcc, so configuring glibc
  18720. - # with a fresh cross-compiler works.
  18721. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18722. - # <limits.h> exists even on freestanding compilers.
  18723. - # On the NeXT, cc -E runs the code through the compiler's parser,
  18724. - # not just through cpp. "Syntax error" is here to catch this case.
  18725. - cat >conftest.$ac_ext <<_ACEOF
  18726. -/* confdefs.h. */
  18727. -_ACEOF
  18728. -cat confdefs.h >>conftest.$ac_ext
  18729. -cat >>conftest.$ac_ext <<_ACEOF
  18730. -/* end confdefs.h. */
  18731. -#ifdef __STDC__
  18732. -# include <limits.h>
  18733. -#else
  18734. -# include <assert.h>
  18735. -#endif
  18736. - Syntax error
  18737. -_ACEOF
  18738. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18739. -case "(($ac_try" in
  18740. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18741. - *) ac_try_echo=$ac_try;;
  18742. -esac
  18743. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18744. -$as_echo "$ac_try_echo") >&5
  18745. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18746. - ac_status=$?
  18747. - grep -v '^ *+' conftest.er1 >conftest.err
  18748. - rm -f conftest.er1
  18749. - cat conftest.err >&5
  18750. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18751. - (exit $ac_status); } >/dev/null && {
  18752. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18753. - test ! -s conftest.err
  18754. - }; then
  18755. - :
  18756. -else
  18757. - $as_echo "$as_me: failed program was:" >&5
  18758. -sed 's/^/| /' conftest.$ac_ext >&5
  18759. -
  18760. - # Broken: fails on valid input.
  18761. -continue
  18762. -fi
  18763. -
  18764. -rm -f conftest.err conftest.$ac_ext
  18765. -
  18766. - # OK, works on sane cases. Now check whether nonexistent headers
  18767. - # can be detected and how.
  18768. - cat >conftest.$ac_ext <<_ACEOF
  18769. -/* confdefs.h. */
  18770. -_ACEOF
  18771. -cat confdefs.h >>conftest.$ac_ext
  18772. -cat >>conftest.$ac_ext <<_ACEOF
  18773. -/* end confdefs.h. */
  18774. -#include <ac_nonexistent.h>
  18775. -_ACEOF
  18776. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18777. -case "(($ac_try" in
  18778. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18779. - *) ac_try_echo=$ac_try;;
  18780. -esac
  18781. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18782. -$as_echo "$ac_try_echo") >&5
  18783. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18784. - ac_status=$?
  18785. - grep -v '^ *+' conftest.er1 >conftest.err
  18786. - rm -f conftest.er1
  18787. - cat conftest.err >&5
  18788. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18789. - (exit $ac_status); } >/dev/null && {
  18790. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18791. - test ! -s conftest.err
  18792. - }; then
  18793. - # Broken: success on invalid input.
  18794. -continue
  18795. -else
  18796. - $as_echo "$as_me: failed program was:" >&5
  18797. -sed 's/^/| /' conftest.$ac_ext >&5
  18798. -
  18799. - # Passes both tests.
  18800. -ac_preproc_ok=:
  18801. -break
  18802. -fi
  18803. -
  18804. -rm -f conftest.err conftest.$ac_ext
  18805. -
  18806. -done
  18807. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18808. -rm -f conftest.err conftest.$ac_ext
  18809. -if $ac_preproc_ok; then
  18810. - :
  18811. -else
  18812. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18813. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18814. -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  18815. -See \`config.log' for more details." >&5
  18816. -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  18817. -See \`config.log' for more details." >&2;}
  18818. - { (exit 1); exit 1; }; }; }
  18819. -fi
  18820. -
  18821. -ac_ext=cpp
  18822. -ac_cpp='$CXXCPP $CPPFLAGS'
  18823. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18824. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18825. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18826. -
  18827. -fi
  18828. -
  18829. -
  18830. -ac_ext=f
  18831. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  18832. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18833. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  18834. -if test -n "$ac_tool_prefix"; then
  18835. - 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
  18836. - do
  18837. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18838. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18839. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18840. -$as_echo_n "checking for $ac_word... " >&6; }
  18841. -if test "${ac_cv_prog_F77+set}" = set; then
  18842. - $as_echo_n "(cached) " >&6
  18843. -else
  18844. - if test -n "$F77"; then
  18845. - ac_cv_prog_F77="$F77" # Let the user override the test.
  18846. -else
  18847. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18848. -for as_dir in $PATH
  18849. + if test -n "$RANLIB"; then
  18850. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18851. +else
  18852. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18853. +for as_dir in $PATH
  18854. do
  18855. IFS=$as_save_IFS
  18856. test -z "$as_dir" && as_dir=.
  18857. - for ac_exec_ext in '' $ac_executable_extensions; do
  18858. + for ac_exec_ext in '' $ac_executable_extensions; do
  18859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18860. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  18861. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18862. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18863. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18864. break 2
  18865. fi
  18866. done
  18867. -done
  18868. + done
  18869. IFS=$as_save_IFS
  18870. fi
  18871. fi
  18872. -F77=$ac_cv_prog_F77
  18873. -if test -n "$F77"; then
  18874. - { $as_echo "$as_me:$LINENO: result: $F77" >&5
  18875. -$as_echo "$F77" >&6; }
  18876. +RANLIB=$ac_cv_prog_RANLIB
  18877. +if test -n "$RANLIB"; then
  18878. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  18879. +$as_echo "$RANLIB" >&6; }
  18880. else
  18881. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18882. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18883. $as_echo "no" >&6; }
  18884. fi
  18885. - test -n "$F77" && break
  18886. - done
  18887. fi
  18888. -if test -z "$F77"; then
  18889. - ac_ct_F77=$F77
  18890. - 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
  18891. -do
  18892. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18893. -set dummy $ac_prog; ac_word=$2
  18894. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18895. +if test -z "$ac_cv_prog_RANLIB"; then
  18896. + ac_ct_RANLIB=$RANLIB
  18897. + # Extract the first word of "ranlib", so it can be a program name with args.
  18898. +set dummy ranlib; ac_word=$2
  18899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18900. $as_echo_n "checking for $ac_word... " >&6; }
  18901. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  18902. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  18903. $as_echo_n "(cached) " >&6
  18904. else
  18905. - if test -n "$ac_ct_F77"; then
  18906. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  18907. + if test -n "$ac_ct_RANLIB"; then
  18908. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18909. else
  18910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18911. for as_dir in $PATH
  18912. do
  18913. IFS=$as_save_IFS
  18914. test -z "$as_dir" && as_dir=.
  18915. - for ac_exec_ext in '' $ac_executable_extensions; do
  18916. + for ac_exec_ext in '' $ac_executable_extensions; do
  18917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18918. - ac_cv_prog_ac_ct_F77="$ac_prog"
  18919. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18920. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  18921. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18922. break 2
  18923. fi
  18924. done
  18925. -done
  18926. + done
  18927. IFS=$as_save_IFS
  18928. fi
  18929. fi
  18930. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  18931. -if test -n "$ac_ct_F77"; then
  18932. - { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  18933. -$as_echo "$ac_ct_F77" >&6; }
  18934. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18935. +if test -n "$ac_ct_RANLIB"; then
  18936. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  18937. +$as_echo "$ac_ct_RANLIB" >&6; }
  18938. else
  18939. - { $as_echo "$as_me:$LINENO: result: no" >&5
  18940. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18941. $as_echo "no" >&6; }
  18942. fi
  18943. -
  18944. - test -n "$ac_ct_F77" && break
  18945. -done
  18946. -
  18947. - if test "x$ac_ct_F77" = x; then
  18948. - F77=""
  18949. + if test "x$ac_ct_RANLIB" = x; then
  18950. + RANLIB=":"
  18951. else
  18952. case $cross_compiling:$ac_tool_warned in
  18953. yes:)
  18954. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18957. ac_tool_warned=yes ;;
  18958. esac
  18959. - F77=$ac_ct_F77
  18960. + RANLIB=$ac_ct_RANLIB
  18961. fi
  18962. +else
  18963. + RANLIB="$ac_cv_prog_RANLIB"
  18964. fi
  18965. +test -z "$RANLIB" && RANLIB=:
  18966. -# Provide some information about the compiler.
  18967. -$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  18968. -set X $ac_compile
  18969. -ac_compiler=$2
  18970. -{ (ac_try="$ac_compiler --version >&5"
  18971. -case "(($ac_try" in
  18972. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18973. - *) ac_try_echo=$ac_try;;
  18974. -esac
  18975. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18976. -$as_echo "$ac_try_echo") >&5
  18977. - (eval "$ac_compiler --version >&5") 2>&5
  18978. - ac_status=$?
  18979. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18980. - (exit $ac_status); }
  18981. -{ (ac_try="$ac_compiler -v >&5"
  18982. -case "(($ac_try" in
  18983. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18984. - *) ac_try_echo=$ac_try;;
  18985. -esac
  18986. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18987. -$as_echo "$ac_try_echo") >&5
  18988. - (eval "$ac_compiler -v >&5") 2>&5
  18989. - ac_status=$?
  18990. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18991. - (exit $ac_status); }
  18992. -{ (ac_try="$ac_compiler -V >&5"
  18993. -case "(($ac_try" in
  18994. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18995. - *) ac_try_echo=$ac_try;;
  18996. -esac
  18997. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18998. -$as_echo "$ac_try_echo") >&5
  18999. - (eval "$ac_compiler -V >&5") 2>&5
  19000. - ac_status=$?
  19001. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. - (exit $ac_status); }
  19003. -rm -f a.out
  19004. -
  19005. -# If we don't use `.F' as extension, the preprocessor is not run on the
  19006. -# input file. (Note that this only needs to work for GNU compilers.)
  19007. -ac_save_ext=$ac_ext
  19008. -ac_ext=F
  19009. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  19010. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  19011. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  19012. - $as_echo_n "(cached) " >&6
  19013. -else
  19014. - cat >conftest.$ac_ext <<_ACEOF
  19015. - program main
  19016. -#ifndef __GNUC__
  19017. - choke me
  19018. -#endif
  19019. - end
  19020. -_ACEOF
  19021. -rm -f conftest.$ac_objext
  19022. -if { (ac_try="$ac_compile"
  19023. -case "(($ac_try" in
  19024. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19025. - *) ac_try_echo=$ac_try;;
  19026. -esac
  19027. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19028. -$as_echo "$ac_try_echo") >&5
  19029. - (eval "$ac_compile") 2>conftest.er1
  19030. - ac_status=$?
  19031. - grep -v '^ *+' conftest.er1 >conftest.err
  19032. - rm -f conftest.er1
  19033. - cat conftest.err >&5
  19034. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19035. - (exit $ac_status); } && {
  19036. - test -z "$ac_f77_werror_flag" ||
  19037. - test ! -s conftest.err
  19038. - } && test -s conftest.$ac_objext; then
  19039. - ac_compiler_gnu=yes
  19040. -else
  19041. - $as_echo "$as_me: failed program was:" >&5
  19042. -sed 's/^/| /' conftest.$ac_ext >&5
  19043. - ac_compiler_gnu=no
  19044. -fi
  19045. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19046. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  19047. -fi
  19048. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  19049. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  19050. -ac_ext=$ac_save_ext
  19051. -ac_test_FFLAGS=${FFLAGS+set}
  19052. -ac_save_FFLAGS=$FFLAGS
  19053. -FFLAGS=
  19054. -{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  19055. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  19056. -if test "${ac_cv_prog_f77_g+set}" = set; then
  19057. - $as_echo_n "(cached) " >&6
  19058. -else
  19059. - FFLAGS=-g
  19060. -cat >conftest.$ac_ext <<_ACEOF
  19061. - program main
  19062. - end
  19063. -_ACEOF
  19064. -rm -f conftest.$ac_objext
  19065. -if { (ac_try="$ac_compile"
  19066. -case "(($ac_try" in
  19067. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19068. - *) ac_try_echo=$ac_try;;
  19069. -esac
  19070. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19071. -$as_echo "$ac_try_echo") >&5
  19072. - (eval "$ac_compile") 2>conftest.er1
  19073. - ac_status=$?
  19074. - grep -v '^ *+' conftest.er1 >conftest.err
  19075. - rm -f conftest.er1
  19076. - cat conftest.err >&5
  19077. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19078. - (exit $ac_status); } && {
  19079. - test -z "$ac_f77_werror_flag" ||
  19080. - test ! -s conftest.err
  19081. - } && test -s conftest.$ac_objext; then
  19082. - ac_cv_prog_f77_g=yes
  19083. -else
  19084. - $as_echo "$as_me: failed program was:" >&5
  19085. -sed 's/^/| /' conftest.$ac_ext >&5
  19086. +# Determine commands to create old-style static archives.
  19087. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  19088. +old_postinstall_cmds='chmod 644 $oldlib'
  19089. +old_postuninstall_cmds=
  19090. - ac_cv_prog_f77_g=no
  19091. +if test -n "$RANLIB"; then
  19092. + case $host_os in
  19093. + openbsd*)
  19094. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  19095. + ;;
  19096. + *)
  19097. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  19098. + ;;
  19099. + esac
  19100. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  19101. fi
  19102. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19103. -fi
  19104. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  19105. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  19106. -if test "$ac_test_FFLAGS" = set; then
  19107. - FFLAGS=$ac_save_FFLAGS
  19108. -elif test $ac_cv_prog_f77_g = yes; then
  19109. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19110. - FFLAGS="-g -O2"
  19111. - else
  19112. - FFLAGS="-g"
  19113. - fi
  19114. -else
  19115. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  19116. - FFLAGS="-O2"
  19117. - else
  19118. - FFLAGS=
  19119. - fi
  19120. -fi
  19121. -if test $ac_compiler_gnu = yes; then
  19122. - G77=yes
  19123. -else
  19124. - G77=
  19125. -fi
  19126. -ac_ext=c
  19127. -ac_cpp='$CPP $CPPFLAGS'
  19128. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19129. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19130. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19131. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  19132. -# find the maximum length of command line arguments
  19133. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  19134. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19135. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  19136. - $as_echo_n "(cached) " >&6
  19137. -else
  19138. - i=0
  19139. - teststring="ABCD"
  19140. - case $build_os in
  19141. - msdosdjgpp*)
  19142. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  19143. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  19144. - # during glob expansion). Even if it were fixed, the result of this
  19145. - # check would be larger than it should be.
  19146. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19147. - ;;
  19148. - gnu*)
  19149. - # Under GNU Hurd, this test is not required because there is
  19150. - # no limit to the length of command line arguments.
  19151. - # Libtool will interpret -1 as no limit whatsoever
  19152. - lt_cv_sys_max_cmd_len=-1;
  19153. - ;;
  19154. - cygwin* | mingw*)
  19155. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  19156. - # about 5 minutes as the teststring grows exponentially.
  19157. - # Worse, since 9x/ME are not pre-emptively multitasking,
  19158. - # you end up with a "frozen" computer, even though with patience
  19159. - # the test eventually succeeds (with a max line length of 256k).
  19160. - # Instead, let's just punt: use the minimum linelength reported by
  19161. - # all of the supported platforms: 8192 (on NT/2K/XP).
  19162. - lt_cv_sys_max_cmd_len=8192;
  19163. - ;;
  19164. - amigaos*)
  19165. - # On AmigaOS with pdksh, this test takes hours, literally.
  19166. - # So we just punt and use a minimum line length of 8192.
  19167. - lt_cv_sys_max_cmd_len=8192;
  19168. - ;;
  19169. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19170. - # This has been around since 386BSD, at least. Likely further.
  19171. - if test -x /sbin/sysctl; then
  19172. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19173. - elif test -x /usr/sbin/sysctl; then
  19174. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19175. - else
  19176. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19177. - fi
  19178. - # And add a safety zone
  19179. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19180. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19181. - ;;
  19182. - interix*)
  19183. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19184. - lt_cv_sys_max_cmd_len=196608
  19185. - ;;
  19186. - osf*)
  19187. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19188. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19189. - # nice to cause kernel panics so lets avoid the loop below.
  19190. - # First set a reasonable default.
  19191. - lt_cv_sys_max_cmd_len=16384
  19192. - #
  19193. - if test -x /sbin/sysconfig; then
  19194. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19195. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19196. - esac
  19197. - fi
  19198. - ;;
  19199. - sco3.2v5*)
  19200. - lt_cv_sys_max_cmd_len=102400
  19201. - ;;
  19202. - sysv5* | sco5v6* | sysv4.2uw2*)
  19203. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19204. - if test -n "$kargmax"; then
  19205. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19206. - else
  19207. - lt_cv_sys_max_cmd_len=32768
  19208. - fi
  19209. - ;;
  19210. - *)
  19211. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  19212. - if test -n "$lt_cv_sys_max_cmd_len"; then
  19213. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19214. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19215. - else
  19216. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  19217. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  19218. - = "XX$teststring") >/dev/null 2>&1 &&
  19219. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  19220. - lt_cv_sys_max_cmd_len=$new_result &&
  19221. - test $i != 17 # 1/2 MB should be enough
  19222. - do
  19223. - i=`expr $i + 1`
  19224. - teststring=$teststring$teststring
  19225. - done
  19226. - teststring=
  19227. - # Add a significant safety factor because C++ compilers can tack on massive
  19228. - # amounts of additional arguments before passing them to the linker.
  19229. - # It appears as though 1/2 is a usable value.
  19230. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  19231. - fi
  19232. - ;;
  19233. - esac
  19234. -fi
  19235. -if test -n $lt_cv_sys_max_cmd_len ; then
  19236. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  19237. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  19238. -else
  19239. - { $as_echo "$as_me:$LINENO: result: none" >&5
  19240. -$as_echo "none" >&6; }
  19241. -fi
  19242. +
  19243. +
  19244. +
  19245. +
  19246. +
  19247. +
  19248. +
  19249. +
  19250. +
  19251. +
  19252. +
  19253. +
  19254. +
  19255. +
  19256. +# If no C compiler was specified, use CC.
  19257. +LTCC=${LTCC-"$CC"}
  19258. +
  19259. +# If no C compiler flags were specified, use CFLAGS.
  19260. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19261. +
  19262. +# Allow CC to be a program name with arguments.
  19263. +compiler=$CC
  19264. +
  19265. +
  19266. # Check for command to grab the raw symbol name followed by C symbol from nm.
  19267. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  19268. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  19269. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  19270. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  19271. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  19272. $as_echo_n "(cached) " >&6
  19273. else
  19274. @@ -6646,33 +5590,18 @@
  19275. # Regexp to match symbols that can be accessed directly from C.
  19276. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  19277. -# Transform an extracted symbol line into a proper C declaration
  19278. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  19279. -
  19280. -# Transform an extracted symbol line into symbol name and symbol address
  19281. -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'"
  19282. -
  19283. # Define system-specific variables.
  19284. case $host_os in
  19285. aix*)
  19286. symcode='[BCDT]'
  19287. ;;
  19288. -cygwin* | mingw* | pw32*)
  19289. +cygwin* | mingw* | pw32* | cegcc*)
  19290. symcode='[ABCDGISTW]'
  19291. ;;
  19292. -hpux*) # Its linker distinguishes data from code symbols
  19293. +hpux*)
  19294. if test "$host_cpu" = ia64; then
  19295. symcode='[ABCDEGRST]'
  19296. fi
  19297. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19298. - 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'"
  19299. - ;;
  19300. -linux* | k*bsd*-gnu)
  19301. - if test "$host_cpu" = ia64; then
  19302. - symcode='[ABCDGIRSTW]'
  19303. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19304. - 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'"
  19305. - fi
  19306. ;;
  19307. irix* | nonstopux*)
  19308. symcode='[BCDEGRST]'
  19309. @@ -6697,57 +5626,85 @@
  19310. ;;
  19311. esac
  19312. +# If we're using GNU nm, then use its standard symbol codes.
  19313. +case `$NM -V 2>&1` in
  19314. +*GNU* | *'with BFD'*)
  19315. + symcode='[ABCDGIRSTW]' ;;
  19316. +esac
  19317. +
  19318. +# Transform an extracted symbol line into a proper C declaration.
  19319. +# Some systems (esp. on ia64) link data and code symbols differently,
  19320. +# so use this general approach.
  19321. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19322. +
  19323. +# Transform an extracted symbol line into symbol name and symbol address
  19324. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  19325. +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'"
  19326. +
  19327. # Handle CRLF in mingw tool chain
  19328. opt_cr=
  19329. case $build_os in
  19330. mingw*)
  19331. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  19332. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  19333. ;;
  19334. esac
  19335. -# If we're using GNU nm, then use its standard symbol codes.
  19336. -case `$NM -V 2>&1` in
  19337. -*GNU* | *'with BFD'*)
  19338. - symcode='[ABCDGIRSTW]' ;;
  19339. -esac
  19340. -
  19341. -# Try without a prefix undercore, then with it.
  19342. +# Try without a prefix underscore, then with it.
  19343. for ac_symprfx in "" "_"; do
  19344. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  19345. symxfrm="\\1 $ac_symprfx\\2 \\2"
  19346. # Write the raw and C identifiers.
  19347. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  19348. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  19349. + # Fake it for dumpbin and say T for any non-static function
  19350. + # and D for any global variable.
  19351. + # Also find C++ and __fastcall symbols from MSVC++,
  19352. + # which start with @ or ?.
  19353. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  19354. +" {last_section=section; section=\$ 3};"\
  19355. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  19356. +" \$ 0!~/External *\|/{next};"\
  19357. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  19358. +" {if(hide[section]) next};"\
  19359. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  19360. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  19361. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  19362. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  19363. +" ' prfx=^$ac_symprfx"
  19364. + else
  19365. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  19366. + fi
  19367. # Check to see that the pipe works correctly.
  19368. pipe_works=no
  19369. rm -f conftest*
  19370. - cat > conftest.$ac_ext <<EOF
  19371. + cat > conftest.$ac_ext <<_LT_EOF
  19372. #ifdef __cplusplus
  19373. extern "C" {
  19374. #endif
  19375. char nm_test_var;
  19376. -void nm_test_func(){}
  19377. +void nm_test_func(void);
  19378. +void nm_test_func(void){}
  19379. #ifdef __cplusplus
  19380. }
  19381. #endif
  19382. int main(){nm_test_var='a';nm_test_func();return(0);}
  19383. -EOF
  19384. +_LT_EOF
  19385. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19386. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19387. (eval $ac_compile) 2>&5
  19388. ac_status=$?
  19389. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19390. - (exit $ac_status); }; then
  19391. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19392. + test $ac_status = 0; }; then
  19393. # Now try to grab the symbols.
  19394. nlist=conftest.nm
  19395. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  19396. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  19397. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  19398. ac_status=$?
  19399. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19400. - (exit $ac_status); } && test -s "$nlist"; then
  19401. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19402. + test $ac_status = 0; } && test -s "$nlist"; then
  19403. # Try sorting and uniquifying the output.
  19404. if sort "$nlist" | uniq > "$nlist"T; then
  19405. mv -f "$nlist"T "$nlist"
  19406. @@ -6756,53 +5713,55 @@
  19407. fi
  19408. # Make sure that we snagged all the symbols we need.
  19409. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  19410. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  19411. - cat <<EOF > conftest.$ac_ext
  19412. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  19413. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  19414. + cat <<_LT_EOF > conftest.$ac_ext
  19415. #ifdef __cplusplus
  19416. extern "C" {
  19417. #endif
  19418. -EOF
  19419. +_LT_EOF
  19420. # Now generate the symbol file.
  19421. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  19422. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  19423. - cat <<EOF >> conftest.$ac_ext
  19424. -#if defined (__STDC__) && __STDC__
  19425. -# define lt_ptr_t void *
  19426. -#else
  19427. -# define lt_ptr_t char *
  19428. -# define const
  19429. -#endif
  19430. + cat <<_LT_EOF >> conftest.$ac_ext
  19431. -/* The mapping between symbol names and symbols. */
  19432. +/* The mapping between symbol names and symbols. */
  19433. const struct {
  19434. const char *name;
  19435. - lt_ptr_t address;
  19436. + void *address;
  19437. }
  19438. -lt_preloaded_symbols[] =
  19439. +lt__PROGRAM__LTX_preloaded_symbols[] =
  19440. {
  19441. -EOF
  19442. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  19443. - cat <<\EOF >> conftest.$ac_ext
  19444. - {0, (lt_ptr_t) 0}
  19445. + { "@PROGRAM@", (void *) 0 },
  19446. +_LT_EOF
  19447. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  19448. + cat <<\_LT_EOF >> conftest.$ac_ext
  19449. + {0, (void *) 0}
  19450. };
  19451. +/* This works around a problem in FreeBSD linker */
  19452. +#ifdef FREEBSD_WORKAROUND
  19453. +static const void *lt_preloaded_setup() {
  19454. + return lt__PROGRAM__LTX_preloaded_symbols;
  19455. +}
  19456. +#endif
  19457. +
  19458. #ifdef __cplusplus
  19459. }
  19460. #endif
  19461. -EOF
  19462. +_LT_EOF
  19463. # Now try linking the two files.
  19464. mv conftest.$ac_objext conftstm.$ac_objext
  19465. lt_save_LIBS="$LIBS"
  19466. lt_save_CFLAGS="$CFLAGS"
  19467. LIBS="conftstm.$ac_objext"
  19468. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  19469. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19470. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  19471. (eval $ac_link) 2>&5
  19472. ac_status=$?
  19473. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19474. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  19475. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19476. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  19477. pipe_works=yes
  19478. fi
  19479. LIBS="$lt_save_LIBS"
  19480. @@ -6836,764 +5795,756 @@
  19481. lt_cv_sys_global_symbol_to_cdecl=
  19482. fi
  19483. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  19484. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  19485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  19486. $as_echo "failed" >&6; }
  19487. else
  19488. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  19489. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  19490. $as_echo "ok" >&6; }
  19491. fi
  19492. -{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
  19493. -$as_echo_n "checking for objdir... " >&6; }
  19494. -if test "${lt_cv_objdir+set}" = set; then
  19495. - $as_echo_n "(cached) " >&6
  19496. -else
  19497. - rm -f .libs 2>/dev/null
  19498. -mkdir .libs 2>/dev/null
  19499. -if test -d .libs; then
  19500. - lt_cv_objdir=.libs
  19501. -else
  19502. - # MS-DOS does not allow filenames that begin with a dot.
  19503. - lt_cv_objdir=_libs
  19504. -fi
  19505. -rmdir .libs 2>/dev/null
  19506. -fi
  19507. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  19508. -$as_echo "$lt_cv_objdir" >&6; }
  19509. -objdir=$lt_cv_objdir
  19510. -case $host_os in
  19511. -aix3*)
  19512. - # AIX sometimes has problems with the GCC collect2 program. For some
  19513. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  19514. - # vanish in a puff of smoke.
  19515. - if test "X${COLLECT_NAMES+set}" != Xset; then
  19516. - COLLECT_NAMES=
  19517. - export COLLECT_NAMES
  19518. - fi
  19519. - ;;
  19520. -esac
  19521. -# Sed substitution that helps us do robust quoting. It backslashifies
  19522. -# metacharacters that are still active within double-quoted strings.
  19523. -Xsed='sed -e 1s/^X//'
  19524. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  19525. -# Same as above, but do not quote variable references.
  19526. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  19527. -# Sed substitution to delay expansion of an escaped shell variable in a
  19528. -# double_quote_subst'ed string.
  19529. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  19530. -# Sed substitution to avoid accidental globbing in evaled expressions
  19531. -no_glob_subst='s/\*/\\\*/g'
  19532. -# Constants:
  19533. -rm="rm -f"
  19534. -# Global variables:
  19535. -default_ofile=libtool
  19536. -can_build_shared=yes
  19537. -# All known linkers require a `.a' archive for static linking (except MSVC,
  19538. -# which needs '.lib').
  19539. -libext=a
  19540. -ltmain="$ac_aux_dir/ltmain.sh"
  19541. -ofile="$default_ofile"
  19542. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  19543. -if test -n "$ac_tool_prefix"; then
  19544. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  19545. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  19546. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19547. -$as_echo_n "checking for $ac_word... " >&6; }
  19548. -if test "${ac_cv_prog_AR+set}" = set; then
  19549. - $as_echo_n "(cached) " >&6
  19550. -else
  19551. - if test -n "$AR"; then
  19552. - ac_cv_prog_AR="$AR" # Let the user override the test.
  19553. -else
  19554. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19555. -for as_dir in $PATH
  19556. -do
  19557. - IFS=$as_save_IFS
  19558. - test -z "$as_dir" && as_dir=.
  19559. - for ac_exec_ext in '' $ac_executable_extensions; do
  19560. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19561. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  19562. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19563. - break 2
  19564. - fi
  19565. -done
  19566. -done
  19567. -IFS=$as_save_IFS
  19568. -fi
  19569. -fi
  19570. -AR=$ac_cv_prog_AR
  19571. -if test -n "$AR"; then
  19572. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  19573. -$as_echo "$AR" >&6; }
  19574. -else
  19575. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19576. -$as_echo "no" >&6; }
  19577. -fi
  19578. -fi
  19579. -if test -z "$ac_cv_prog_AR"; then
  19580. - ac_ct_AR=$AR
  19581. - # Extract the first word of "ar", so it can be a program name with args.
  19582. -set dummy ar; ac_word=$2
  19583. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19584. -$as_echo_n "checking for $ac_word... " >&6; }
  19585. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  19586. - $as_echo_n "(cached) " >&6
  19587. -else
  19588. - if test -n "$ac_ct_AR"; then
  19589. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  19590. -else
  19591. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19592. -for as_dir in $PATH
  19593. -do
  19594. - IFS=$as_save_IFS
  19595. - test -z "$as_dir" && as_dir=.
  19596. - for ac_exec_ext in '' $ac_executable_extensions; do
  19597. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19598. - ac_cv_prog_ac_ct_AR="ar"
  19599. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19600. - break 2
  19601. - fi
  19602. -done
  19603. -done
  19604. -IFS=$as_save_IFS
  19605. -fi
  19606. -fi
  19607. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  19608. -if test -n "$ac_ct_AR"; then
  19609. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  19610. -$as_echo "$ac_ct_AR" >&6; }
  19611. -else
  19612. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19613. -$as_echo "no" >&6; }
  19614. +
  19615. +
  19616. +
  19617. +
  19618. +# Check whether --enable-libtool-lock was given.
  19619. +if test "${enable_libtool_lock+set}" = set; then :
  19620. + enableval=$enable_libtool_lock;
  19621. fi
  19622. - if test "x$ac_ct_AR" = x; then
  19623. - AR="false"
  19624. - else
  19625. - case $cross_compiling:$ac_tool_warned in
  19626. -yes:)
  19627. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19628. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19629. -ac_tool_warned=yes ;;
  19630. -esac
  19631. - AR=$ac_ct_AR
  19632. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  19633. +
  19634. +# Some flags need to be propagated to the compiler or linker for good
  19635. +# libtool support.
  19636. +case $host in
  19637. +ia64-*-hpux*)
  19638. + # Find out which ABI we are using.
  19639. + echo 'int i;' > conftest.$ac_ext
  19640. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19641. + (eval $ac_compile) 2>&5
  19642. + ac_status=$?
  19643. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19644. + test $ac_status = 0; }; then
  19645. + case `/usr/bin/file conftest.$ac_objext` in
  19646. + *ELF-32*)
  19647. + HPUX_IA64_MODE="32"
  19648. + ;;
  19649. + *ELF-64*)
  19650. + HPUX_IA64_MODE="64"
  19651. + ;;
  19652. + esac
  19653. + fi
  19654. + rm -rf conftest*
  19655. + ;;
  19656. +*-*-irix6*)
  19657. + # Find out which ABI we are using.
  19658. + echo '#line 5857 "configure"' > conftest.$ac_ext
  19659. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19660. + (eval $ac_compile) 2>&5
  19661. + ac_status=$?
  19662. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19663. + test $ac_status = 0; }; then
  19664. + if test "$lt_cv_prog_gnu_ld" = yes; then
  19665. + case `/usr/bin/file conftest.$ac_objext` in
  19666. + *32-bit*)
  19667. + LD="${LD-ld} -melf32bsmip"
  19668. + ;;
  19669. + *N32*)
  19670. + LD="${LD-ld} -melf32bmipn32"
  19671. + ;;
  19672. + *64-bit*)
  19673. + LD="${LD-ld} -melf64bmip"
  19674. + ;;
  19675. + esac
  19676. + else
  19677. + case `/usr/bin/file conftest.$ac_objext` in
  19678. + *32-bit*)
  19679. + LD="${LD-ld} -32"
  19680. + ;;
  19681. + *N32*)
  19682. + LD="${LD-ld} -n32"
  19683. + ;;
  19684. + *64-bit*)
  19685. + LD="${LD-ld} -64"
  19686. + ;;
  19687. + esac
  19688. + fi
  19689. + fi
  19690. + rm -rf conftest*
  19691. + ;;
  19692. +
  19693. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  19694. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  19695. + # Find out which ABI we are using.
  19696. + echo 'int i;' > conftest.$ac_ext
  19697. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19698. + (eval $ac_compile) 2>&5
  19699. + ac_status=$?
  19700. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19701. + test $ac_status = 0; }; then
  19702. + case `/usr/bin/file conftest.o` in
  19703. + *32-bit*)
  19704. + case $host in
  19705. + x86_64-*kfreebsd*-gnu)
  19706. + LD="${LD-ld} -m elf_i386_fbsd"
  19707. + ;;
  19708. + x86_64-*linux*)
  19709. + LD="${LD-ld} -m elf_i386"
  19710. + ;;
  19711. + ppc64-*linux*|powerpc64-*linux*)
  19712. + LD="${LD-ld} -m elf32ppclinux"
  19713. + ;;
  19714. + s390x-*linux*)
  19715. + LD="${LD-ld} -m elf_s390"
  19716. + ;;
  19717. + sparc64-*linux*)
  19718. + LD="${LD-ld} -m elf32_sparc"
  19719. + ;;
  19720. + esac
  19721. + ;;
  19722. + *64-bit*)
  19723. + case $host in
  19724. + x86_64-*kfreebsd*-gnu)
  19725. + LD="${LD-ld} -m elf_x86_64_fbsd"
  19726. + ;;
  19727. + x86_64-*linux*)
  19728. + LD="${LD-ld} -m elf_x86_64"
  19729. + ;;
  19730. + ppc*-*linux*|powerpc*-*linux*)
  19731. + LD="${LD-ld} -m elf64ppc"
  19732. + ;;
  19733. + s390*-*linux*|s390*-*tpf*)
  19734. + LD="${LD-ld} -m elf64_s390"
  19735. + ;;
  19736. + sparc*-*linux*)
  19737. + LD="${LD-ld} -m elf64_sparc"
  19738. + ;;
  19739. + esac
  19740. + ;;
  19741. + esac
  19742. fi
  19743. + rm -rf conftest*
  19744. + ;;
  19745. +
  19746. +*-*-sco3.2v5*)
  19747. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  19748. + SAVE_CFLAGS="$CFLAGS"
  19749. + CFLAGS="$CFLAGS -belf"
  19750. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  19751. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  19752. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  19753. + $as_echo_n "(cached) " >&6
  19754. else
  19755. - AR="$ac_cv_prog_AR"
  19756. + ac_ext=c
  19757. +ac_cpp='$CPP $CPPFLAGS'
  19758. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19759. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19760. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19761. +
  19762. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19763. +/* end confdefs.h. */
  19764. +
  19765. +int
  19766. +main ()
  19767. +{
  19768. +
  19769. + ;
  19770. + return 0;
  19771. +}
  19772. +_ACEOF
  19773. +if ac_fn_c_try_link "$LINENO"; then :
  19774. + lt_cv_cc_needs_belf=yes
  19775. +else
  19776. + lt_cv_cc_needs_belf=no
  19777. fi
  19778. +rm -f core conftest.err conftest.$ac_objext \
  19779. + conftest$ac_exeext conftest.$ac_ext
  19780. + ac_ext=c
  19781. +ac_cpp='$CPP $CPPFLAGS'
  19782. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19783. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19784. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19785. -if test -n "$ac_tool_prefix"; then
  19786. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19787. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19788. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19789. +fi
  19790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  19791. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  19792. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  19793. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  19794. + CFLAGS="$SAVE_CFLAGS"
  19795. + fi
  19796. + ;;
  19797. +sparc*-*solaris*)
  19798. + # Find out which ABI we are using.
  19799. + echo 'int i;' > conftest.$ac_ext
  19800. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19801. + (eval $ac_compile) 2>&5
  19802. + ac_status=$?
  19803. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19804. + test $ac_status = 0; }; then
  19805. + case `/usr/bin/file conftest.o` in
  19806. + *64-bit*)
  19807. + case $lt_cv_prog_gnu_ld in
  19808. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  19809. + *)
  19810. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  19811. + LD="${LD-ld} -64"
  19812. + fi
  19813. + ;;
  19814. + esac
  19815. + ;;
  19816. + esac
  19817. + fi
  19818. + rm -rf conftest*
  19819. + ;;
  19820. +esac
  19821. +
  19822. +need_locks="$enable_libtool_lock"
  19823. +
  19824. +
  19825. + case $host_os in
  19826. + rhapsody* | darwin*)
  19827. + if test -n "$ac_tool_prefix"; then
  19828. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  19829. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  19830. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19831. $as_echo_n "checking for $ac_word... " >&6; }
  19832. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  19833. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  19834. $as_echo_n "(cached) " >&6
  19835. else
  19836. - if test -n "$RANLIB"; then
  19837. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19838. + if test -n "$DSYMUTIL"; then
  19839. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  19840. else
  19841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19842. for as_dir in $PATH
  19843. do
  19844. IFS=$as_save_IFS
  19845. test -z "$as_dir" && as_dir=.
  19846. - for ac_exec_ext in '' $ac_executable_extensions; do
  19847. + for ac_exec_ext in '' $ac_executable_extensions; do
  19848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19849. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19850. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19851. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  19852. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19853. break 2
  19854. fi
  19855. done
  19856. -done
  19857. + done
  19858. IFS=$as_save_IFS
  19859. fi
  19860. fi
  19861. -RANLIB=$ac_cv_prog_RANLIB
  19862. -if test -n "$RANLIB"; then
  19863. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  19864. -$as_echo "$RANLIB" >&6; }
  19865. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  19866. +if test -n "$DSYMUTIL"; then
  19867. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  19868. +$as_echo "$DSYMUTIL" >&6; }
  19869. else
  19870. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19871. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19872. $as_echo "no" >&6; }
  19873. fi
  19874. fi
  19875. -if test -z "$ac_cv_prog_RANLIB"; then
  19876. - ac_ct_RANLIB=$RANLIB
  19877. - # Extract the first word of "ranlib", so it can be a program name with args.
  19878. -set dummy ranlib; ac_word=$2
  19879. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19880. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  19881. + ac_ct_DSYMUTIL=$DSYMUTIL
  19882. + # Extract the first word of "dsymutil", so it can be a program name with args.
  19883. +set dummy dsymutil; ac_word=$2
  19884. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19885. $as_echo_n "checking for $ac_word... " >&6; }
  19886. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19887. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  19888. $as_echo_n "(cached) " >&6
  19889. else
  19890. - if test -n "$ac_ct_RANLIB"; then
  19891. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19892. + if test -n "$ac_ct_DSYMUTIL"; then
  19893. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  19894. else
  19895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19896. for as_dir in $PATH
  19897. do
  19898. IFS=$as_save_IFS
  19899. test -z "$as_dir" && as_dir=.
  19900. - for ac_exec_ext in '' $ac_executable_extensions; do
  19901. + for ac_exec_ext in '' $ac_executable_extensions; do
  19902. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19903. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  19904. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19905. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  19906. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19907. break 2
  19908. fi
  19909. done
  19910. -done
  19911. + done
  19912. IFS=$as_save_IFS
  19913. fi
  19914. fi
  19915. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19916. -if test -n "$ac_ct_RANLIB"; then
  19917. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19918. -$as_echo "$ac_ct_RANLIB" >&6; }
  19919. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  19920. +if test -n "$ac_ct_DSYMUTIL"; then
  19921. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  19922. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  19923. else
  19924. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19925. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19926. $as_echo "no" >&6; }
  19927. fi
  19928. - if test "x$ac_ct_RANLIB" = x; then
  19929. - RANLIB=":"
  19930. + if test "x$ac_ct_DSYMUTIL" = x; then
  19931. + DSYMUTIL=":"
  19932. else
  19933. case $cross_compiling:$ac_tool_warned in
  19934. yes:)
  19935. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  19936. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19938. ac_tool_warned=yes ;;
  19939. esac
  19940. - RANLIB=$ac_ct_RANLIB
  19941. + DSYMUTIL=$ac_ct_DSYMUTIL
  19942. fi
  19943. else
  19944. - RANLIB="$ac_cv_prog_RANLIB"
  19945. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  19946. fi
  19947. -if test -n "$ac_tool_prefix"; then
  19948. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19949. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  19950. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19951. + if test -n "$ac_tool_prefix"; then
  19952. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  19953. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  19954. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19955. $as_echo_n "checking for $ac_word... " >&6; }
  19956. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19957. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  19958. $as_echo_n "(cached) " >&6
  19959. else
  19960. - if test -n "$STRIP"; then
  19961. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19962. + if test -n "$NMEDIT"; then
  19963. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  19964. else
  19965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19966. for as_dir in $PATH
  19967. do
  19968. IFS=$as_save_IFS
  19969. test -z "$as_dir" && as_dir=.
  19970. - for ac_exec_ext in '' $ac_executable_extensions; do
  19971. + for ac_exec_ext in '' $ac_executable_extensions; do
  19972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19973. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19974. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19975. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  19976. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19977. break 2
  19978. fi
  19979. done
  19980. -done
  19981. + done
  19982. IFS=$as_save_IFS
  19983. fi
  19984. fi
  19985. -STRIP=$ac_cv_prog_STRIP
  19986. -if test -n "$STRIP"; then
  19987. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  19988. -$as_echo "$STRIP" >&6; }
  19989. +NMEDIT=$ac_cv_prog_NMEDIT
  19990. +if test -n "$NMEDIT"; then
  19991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  19992. +$as_echo "$NMEDIT" >&6; }
  19993. else
  19994. - { $as_echo "$as_me:$LINENO: result: no" >&5
  19995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19996. $as_echo "no" >&6; }
  19997. fi
  19998. fi
  19999. -if test -z "$ac_cv_prog_STRIP"; then
  20000. - ac_ct_STRIP=$STRIP
  20001. - # Extract the first word of "strip", so it can be a program name with args.
  20002. -set dummy strip; ac_word=$2
  20003. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20004. +if test -z "$ac_cv_prog_NMEDIT"; then
  20005. + ac_ct_NMEDIT=$NMEDIT
  20006. + # Extract the first word of "nmedit", so it can be a program name with args.
  20007. +set dummy nmedit; ac_word=$2
  20008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20009. $as_echo_n "checking for $ac_word... " >&6; }
  20010. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  20011. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  20012. $as_echo_n "(cached) " >&6
  20013. else
  20014. - if test -n "$ac_ct_STRIP"; then
  20015. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  20016. + if test -n "$ac_ct_NMEDIT"; then
  20017. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  20018. else
  20019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20020. for as_dir in $PATH
  20021. do
  20022. IFS=$as_save_IFS
  20023. test -z "$as_dir" && as_dir=.
  20024. - for ac_exec_ext in '' $ac_executable_extensions; do
  20025. + for ac_exec_ext in '' $ac_executable_extensions; do
  20026. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20027. - ac_cv_prog_ac_ct_STRIP="strip"
  20028. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20029. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20030. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20031. break 2
  20032. fi
  20033. done
  20034. -done
  20035. + done
  20036. IFS=$as_save_IFS
  20037. fi
  20038. fi
  20039. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  20040. -if test -n "$ac_ct_STRIP"; then
  20041. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  20042. -$as_echo "$ac_ct_STRIP" >&6; }
  20043. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20044. +if test -n "$ac_ct_NMEDIT"; then
  20045. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  20046. +$as_echo "$ac_ct_NMEDIT" >&6; }
  20047. else
  20048. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20050. $as_echo "no" >&6; }
  20051. fi
  20052. - if test "x$ac_ct_STRIP" = x; then
  20053. - STRIP=":"
  20054. + if test "x$ac_ct_NMEDIT" = x; then
  20055. + NMEDIT=":"
  20056. else
  20057. case $cross_compiling:$ac_tool_warned in
  20058. yes:)
  20059. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20061. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20062. ac_tool_warned=yes ;;
  20063. esac
  20064. - STRIP=$ac_ct_STRIP
  20065. + NMEDIT=$ac_ct_NMEDIT
  20066. fi
  20067. else
  20068. - STRIP="$ac_cv_prog_STRIP"
  20069. + NMEDIT="$ac_cv_prog_NMEDIT"
  20070. fi
  20071. -
  20072. -old_CC="$CC"
  20073. -old_CFLAGS="$CFLAGS"
  20074. -
  20075. -# Set sane defaults for various variables
  20076. -test -z "$AR" && AR=ar
  20077. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  20078. -test -z "$AS" && AS=as
  20079. -test -z "$CC" && CC=cc
  20080. -test -z "$LTCC" && LTCC=$CC
  20081. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  20082. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  20083. -test -z "$LD" && LD=ld
  20084. -test -z "$LN_S" && LN_S="ln -s"
  20085. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  20086. -test -z "$NM" && NM=nm
  20087. -test -z "$SED" && SED=sed
  20088. -test -z "$OBJDUMP" && OBJDUMP=objdump
  20089. -test -z "$RANLIB" && RANLIB=:
  20090. -test -z "$STRIP" && STRIP=:
  20091. -test -z "$ac_objext" && ac_objext=o
  20092. -
  20093. -# Determine commands to create old-style static archives.
  20094. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  20095. -old_postinstall_cmds='chmod 644 $oldlib'
  20096. -old_postuninstall_cmds=
  20097. -
  20098. -if test -n "$RANLIB"; then
  20099. - case $host_os in
  20100. - openbsd*)
  20101. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  20102. - ;;
  20103. - *)
  20104. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  20105. - ;;
  20106. - esac
  20107. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  20108. -fi
  20109. -
  20110. -for cc_temp in $compiler""; do
  20111. - case $cc_temp in
  20112. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20113. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20114. - \-*) ;;
  20115. - *) break;;
  20116. - esac
  20117. -done
  20118. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20119. -
  20120. -
  20121. -# Only perform the check for file, if the check method requires it
  20122. -case $deplibs_check_method in
  20123. -file_magic*)
  20124. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20125. - { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  20126. -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  20127. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20128. + if test -n "$ac_tool_prefix"; then
  20129. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  20130. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  20131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20132. +$as_echo_n "checking for $ac_word... " >&6; }
  20133. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  20134. $as_echo_n "(cached) " >&6
  20135. else
  20136. - case $MAGIC_CMD in
  20137. -[\\/*] | ?:[\\/]*)
  20138. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20139. - ;;
  20140. -*)
  20141. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20142. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20143. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20144. - for ac_dir in $ac_dummy; do
  20145. - IFS="$lt_save_ifs"
  20146. - test -z "$ac_dir" && ac_dir=.
  20147. - if test -f $ac_dir/${ac_tool_prefix}file; then
  20148. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  20149. - if test -n "$file_magic_test_file"; then
  20150. - case $deplibs_check_method in
  20151. - "file_magic "*)
  20152. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20153. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20154. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20155. - $EGREP "$file_magic_regex" > /dev/null; then
  20156. - :
  20157. - else
  20158. - cat <<EOF 1>&2
  20159. -
  20160. -*** Warning: the command libtool uses to detect shared libraries,
  20161. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20162. -*** The result is that libtool may fail to recognize shared libraries
  20163. -*** as such. This will affect the creation of libtool libraries that
  20164. -*** depend on shared libraries, but programs linked with such libtool
  20165. -*** libraries will work regardless of this problem. Nevertheless, you
  20166. -*** may want to report the problem to your system manager and/or to
  20167. -*** bug-libtool@gnu.org
  20168. -
  20169. -EOF
  20170. - fi ;;
  20171. - esac
  20172. - fi
  20173. - break
  20174. - fi
  20175. + if test -n "$LIPO"; then
  20176. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  20177. +else
  20178. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20179. +for as_dir in $PATH
  20180. +do
  20181. + IFS=$as_save_IFS
  20182. + test -z "$as_dir" && as_dir=.
  20183. + for ac_exec_ext in '' $ac_executable_extensions; do
  20184. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20185. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  20186. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20187. + break 2
  20188. + fi
  20189. +done
  20190. done
  20191. - IFS="$lt_save_ifs"
  20192. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20193. - ;;
  20194. -esac
  20195. -fi
  20196. +IFS=$as_save_IFS
  20197. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20198. -if test -n "$MAGIC_CMD"; then
  20199. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20200. -$as_echo "$MAGIC_CMD" >&6; }
  20201. +fi
  20202. +fi
  20203. +LIPO=$ac_cv_prog_LIPO
  20204. +if test -n "$LIPO"; then
  20205. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  20206. +$as_echo "$LIPO" >&6; }
  20207. else
  20208. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20210. $as_echo "no" >&6; }
  20211. fi
  20212. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  20213. - if test -n "$ac_tool_prefix"; then
  20214. - { $as_echo "$as_me:$LINENO: checking for file" >&5
  20215. -$as_echo_n "checking for file... " >&6; }
  20216. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  20217. +
  20218. +fi
  20219. +if test -z "$ac_cv_prog_LIPO"; then
  20220. + ac_ct_LIPO=$LIPO
  20221. + # Extract the first word of "lipo", so it can be a program name with args.
  20222. +set dummy lipo; ac_word=$2
  20223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20224. +$as_echo_n "checking for $ac_word... " >&6; }
  20225. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  20226. $as_echo_n "(cached) " >&6
  20227. else
  20228. - case $MAGIC_CMD in
  20229. -[\\/*] | ?:[\\/]*)
  20230. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20231. - ;;
  20232. -*)
  20233. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  20234. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20235. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20236. - for ac_dir in $ac_dummy; do
  20237. - IFS="$lt_save_ifs"
  20238. - test -z "$ac_dir" && ac_dir=.
  20239. - if test -f $ac_dir/file; then
  20240. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  20241. - if test -n "$file_magic_test_file"; then
  20242. - case $deplibs_check_method in
  20243. - "file_magic "*)
  20244. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20245. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20246. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20247. - $EGREP "$file_magic_regex" > /dev/null; then
  20248. - :
  20249. - else
  20250. - cat <<EOF 1>&2
  20251. -
  20252. -*** Warning: the command libtool uses to detect shared libraries,
  20253. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  20254. -*** The result is that libtool may fail to recognize shared libraries
  20255. -*** as such. This will affect the creation of libtool libraries that
  20256. -*** depend on shared libraries, but programs linked with such libtool
  20257. -*** libraries will work regardless of this problem. Nevertheless, you
  20258. -*** may want to report the problem to your system manager and/or to
  20259. -*** bug-libtool@gnu.org
  20260. -
  20261. -EOF
  20262. - fi ;;
  20263. - esac
  20264. - fi
  20265. - break
  20266. - fi
  20267. + if test -n "$ac_ct_LIPO"; then
  20268. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  20269. +else
  20270. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20271. +for as_dir in $PATH
  20272. +do
  20273. + IFS=$as_save_IFS
  20274. + test -z "$as_dir" && as_dir=.
  20275. + for ac_exec_ext in '' $ac_executable_extensions; do
  20276. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20277. + ac_cv_prog_ac_ct_LIPO="lipo"
  20278. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20279. + break 2
  20280. + fi
  20281. +done
  20282. done
  20283. - IFS="$lt_save_ifs"
  20284. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  20285. - ;;
  20286. -esac
  20287. -fi
  20288. +IFS=$as_save_IFS
  20289. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20290. -if test -n "$MAGIC_CMD"; then
  20291. - { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  20292. -$as_echo "$MAGIC_CMD" >&6; }
  20293. +fi
  20294. +fi
  20295. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  20296. +if test -n "$ac_ct_LIPO"; then
  20297. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  20298. +$as_echo "$ac_ct_LIPO" >&6; }
  20299. else
  20300. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20301. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20302. $as_echo "no" >&6; }
  20303. fi
  20304. + if test "x$ac_ct_LIPO" = x; then
  20305. + LIPO=":"
  20306. else
  20307. - MAGIC_CMD=:
  20308. + case $cross_compiling:$ac_tool_warned in
  20309. +yes:)
  20310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20311. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20312. +ac_tool_warned=yes ;;
  20313. +esac
  20314. + LIPO=$ac_ct_LIPO
  20315. fi
  20316. +else
  20317. + LIPO="$ac_cv_prog_LIPO"
  20318. fi
  20319. - fi
  20320. - ;;
  20321. -esac
  20322. -
  20323. -
  20324. - case $host_os in
  20325. - rhapsody* | darwin*)
  20326. if test -n "$ac_tool_prefix"; then
  20327. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  20328. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  20329. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20330. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  20331. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  20332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20333. $as_echo_n "checking for $ac_word... " >&6; }
  20334. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  20335. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  20336. $as_echo_n "(cached) " >&6
  20337. else
  20338. - if test -n "$DSYMUTIL"; then
  20339. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  20340. + if test -n "$OTOOL"; then
  20341. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  20342. else
  20343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20344. for as_dir in $PATH
  20345. do
  20346. IFS=$as_save_IFS
  20347. test -z "$as_dir" && as_dir=.
  20348. - for ac_exec_ext in '' $ac_executable_extensions; do
  20349. + for ac_exec_ext in '' $ac_executable_extensions; do
  20350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20351. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  20352. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20353. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  20354. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20355. break 2
  20356. fi
  20357. done
  20358. -done
  20359. + done
  20360. IFS=$as_save_IFS
  20361. fi
  20362. fi
  20363. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  20364. -if test -n "$DSYMUTIL"; then
  20365. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  20366. -$as_echo "$DSYMUTIL" >&6; }
  20367. +OTOOL=$ac_cv_prog_OTOOL
  20368. +if test -n "$OTOOL"; then
  20369. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  20370. +$as_echo "$OTOOL" >&6; }
  20371. else
  20372. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20373. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20374. $as_echo "no" >&6; }
  20375. fi
  20376. fi
  20377. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  20378. - ac_ct_DSYMUTIL=$DSYMUTIL
  20379. - # Extract the first word of "dsymutil", so it can be a program name with args.
  20380. -set dummy dsymutil; ac_word=$2
  20381. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20382. +if test -z "$ac_cv_prog_OTOOL"; then
  20383. + ac_ct_OTOOL=$OTOOL
  20384. + # Extract the first word of "otool", so it can be a program name with args.
  20385. +set dummy otool; ac_word=$2
  20386. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20387. $as_echo_n "checking for $ac_word... " >&6; }
  20388. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  20389. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  20390. $as_echo_n "(cached) " >&6
  20391. else
  20392. - if test -n "$ac_ct_DSYMUTIL"; then
  20393. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  20394. + if test -n "$ac_ct_OTOOL"; then
  20395. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  20396. else
  20397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20398. for as_dir in $PATH
  20399. do
  20400. IFS=$as_save_IFS
  20401. test -z "$as_dir" && as_dir=.
  20402. - for ac_exec_ext in '' $ac_executable_extensions; do
  20403. + for ac_exec_ext in '' $ac_executable_extensions; do
  20404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20405. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  20406. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20407. + ac_cv_prog_ac_ct_OTOOL="otool"
  20408. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20409. break 2
  20410. fi
  20411. done
  20412. -done
  20413. + done
  20414. IFS=$as_save_IFS
  20415. fi
  20416. fi
  20417. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  20418. -if test -n "$ac_ct_DSYMUTIL"; then
  20419. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  20420. -$as_echo "$ac_ct_DSYMUTIL" >&6; }
  20421. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  20422. +if test -n "$ac_ct_OTOOL"; then
  20423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  20424. +$as_echo "$ac_ct_OTOOL" >&6; }
  20425. else
  20426. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20427. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20428. $as_echo "no" >&6; }
  20429. fi
  20430. - if test "x$ac_ct_DSYMUTIL" = x; then
  20431. - DSYMUTIL=":"
  20432. + if test "x$ac_ct_OTOOL" = x; then
  20433. + OTOOL=":"
  20434. else
  20435. case $cross_compiling:$ac_tool_warned in
  20436. yes:)
  20437. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20438. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20439. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20440. ac_tool_warned=yes ;;
  20441. esac
  20442. - DSYMUTIL=$ac_ct_DSYMUTIL
  20443. + OTOOL=$ac_ct_OTOOL
  20444. fi
  20445. else
  20446. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  20447. + OTOOL="$ac_cv_prog_OTOOL"
  20448. fi
  20449. if test -n "$ac_tool_prefix"; then
  20450. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  20451. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  20452. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20453. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  20454. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  20455. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20456. $as_echo_n "checking for $ac_word... " >&6; }
  20457. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  20458. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  20459. $as_echo_n "(cached) " >&6
  20460. else
  20461. - if test -n "$NMEDIT"; then
  20462. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  20463. + if test -n "$OTOOL64"; then
  20464. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  20465. else
  20466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20467. for as_dir in $PATH
  20468. do
  20469. IFS=$as_save_IFS
  20470. test -z "$as_dir" && as_dir=.
  20471. - for ac_exec_ext in '' $ac_executable_extensions; do
  20472. + for ac_exec_ext in '' $ac_executable_extensions; do
  20473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20474. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  20475. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20476. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  20477. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20478. break 2
  20479. fi
  20480. done
  20481. -done
  20482. + done
  20483. IFS=$as_save_IFS
  20484. fi
  20485. fi
  20486. -NMEDIT=$ac_cv_prog_NMEDIT
  20487. -if test -n "$NMEDIT"; then
  20488. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  20489. -$as_echo "$NMEDIT" >&6; }
  20490. +OTOOL64=$ac_cv_prog_OTOOL64
  20491. +if test -n "$OTOOL64"; then
  20492. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  20493. +$as_echo "$OTOOL64" >&6; }
  20494. else
  20495. - { $as_echo "$as_me:$LINENO: result: no" >&5
  20496. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20497. $as_echo "no" >&6; }
  20498. fi
  20499. fi
  20500. -if test -z "$ac_cv_prog_NMEDIT"; then
  20501. - ac_ct_NMEDIT=$NMEDIT
  20502. - # Extract the first word of "nmedit", so it can be a program name with args.
  20503. -set dummy nmedit; ac_word=$2
  20504. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20505. +if test -z "$ac_cv_prog_OTOOL64"; then
  20506. + ac_ct_OTOOL64=$OTOOL64
  20507. + # Extract the first word of "otool64", so it can be a program name with args.
  20508. +set dummy otool64; ac_word=$2
  20509. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20510. $as_echo_n "checking for $ac_word... " >&6; }
  20511. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  20512. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  20513. $as_echo_n "(cached) " >&6
  20514. else
  20515. - if test -n "$ac_ct_NMEDIT"; then
  20516. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  20517. + if test -n "$ac_ct_OTOOL64"; then
  20518. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  20519. else
  20520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20521. for as_dir in $PATH
  20522. do
  20523. IFS=$as_save_IFS
  20524. test -z "$as_dir" && as_dir=.
  20525. - for ac_exec_ext in '' $ac_executable_extensions; do
  20526. + for ac_exec_ext in '' $ac_executable_extensions; do
  20527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20528. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  20529. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20530. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  20531. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20532. break 2
  20533. fi
  20534. done
  20535. -done
  20536. + done
  20537. IFS=$as_save_IFS
  20538. fi
  20539. fi
  20540. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  20541. -if test -n "$ac_ct_NMEDIT"; then
  20542. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  20543. -$as_echo "$ac_ct_NMEDIT" >&6; }
  20544. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  20545. +if test -n "$ac_ct_OTOOL64"; then
  20546. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  20547. +$as_echo "$ac_ct_OTOOL64" >&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. - if test "x$ac_ct_NMEDIT" = x; then
  20554. - NMEDIT=":"
  20555. + if test "x$ac_ct_OTOOL64" = x; then
  20556. + OTOOL64=":"
  20557. else
  20558. case $cross_compiling:$ac_tool_warned in
  20559. yes:)
  20560. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  20561. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20563. ac_tool_warned=yes ;;
  20564. esac
  20565. - NMEDIT=$ac_ct_NMEDIT
  20566. + OTOOL64=$ac_ct_OTOOL64
  20567. fi
  20568. else
  20569. - NMEDIT="$ac_cv_prog_NMEDIT"
  20570. + OTOOL64="$ac_cv_prog_OTOOL64"
  20571. fi
  20572. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  20573. -$as_echo_n "checking for -single_module linker flag... " >&6; }
  20574. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  20575. - $as_echo_n "(cached) " >&6
  20576. -else
  20577. - lt_cv_apple_cc_single_mod=no
  20578. - if test -z "${LT_MULTI_MODULE}"; then
  20579. - # By default we will add the -single_module flag. You can override
  20580. - # by either setting the environment variable LT_MULTI_MODULE
  20581. - # non-empty at configure time, or by adding -multi_module to the
  20582. - # link flags.
  20583. - echo "int foo(void){return 1;}" > conftest.c
  20584. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  20585. - -dynamiclib ${wl}-single_module conftest.c
  20586. - if test -f libconftest.dylib; then
  20587. - lt_cv_apple_cc_single_mod=yes
  20588. - rm -rf libconftest.dylib*
  20589. - fi
  20590. - rm conftest.c
  20591. - fi
  20592. -fi
  20593. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  20594. -$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  20595. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  20596. -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  20597. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  20598. - $as_echo_n "(cached) " >&6
  20599. -else
  20600. - lt_cv_ld_exported_symbols_list=no
  20601. - save_LDFLAGS=$LDFLAGS
  20602. - echo "_main" > conftest.sym
  20603. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  20604. - cat >conftest.$ac_ext <<_ACEOF
  20605. -/* confdefs.h. */
  20606. -_ACEOF
  20607. -cat confdefs.h >>conftest.$ac_ext
  20608. -cat >>conftest.$ac_ext <<_ACEOF
  20609. -/* end confdefs.h. */
  20610. +
  20611. +
  20612. +
  20613. +
  20614. +
  20615. +
  20616. +
  20617. +
  20618. +
  20619. +
  20620. +
  20621. +
  20622. +
  20623. +
  20624. +
  20625. +
  20626. +
  20627. +
  20628. +
  20629. +
  20630. +
  20631. +
  20632. +
  20633. +
  20634. +
  20635. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  20636. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  20637. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  20638. + $as_echo_n "(cached) " >&6
  20639. +else
  20640. + lt_cv_apple_cc_single_mod=no
  20641. + if test -z "${LT_MULTI_MODULE}"; then
  20642. + # By default we will add the -single_module flag. You can override
  20643. + # by either setting the environment variable LT_MULTI_MODULE
  20644. + # non-empty at configure time, or by adding -multi_module to the
  20645. + # link flags.
  20646. + rm -rf libconftest.dylib*
  20647. + echo "int foo(void){return 1;}" > conftest.c
  20648. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  20649. +-dynamiclib -Wl,-single_module conftest.c" >&5
  20650. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  20651. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  20652. + _lt_result=$?
  20653. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  20654. + lt_cv_apple_cc_single_mod=yes
  20655. + else
  20656. + cat conftest.err >&5
  20657. + fi
  20658. + rm -rf libconftest.dylib*
  20659. + rm -f conftest.*
  20660. + fi
  20661. +fi
  20662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  20663. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  20664. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  20665. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  20666. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  20667. + $as_echo_n "(cached) " >&6
  20668. +else
  20669. + lt_cv_ld_exported_symbols_list=no
  20670. + save_LDFLAGS=$LDFLAGS
  20671. + echo "_main" > conftest.sym
  20672. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  20673. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20674. +/* end confdefs.h. */
  20675. int
  20676. main ()
  20677. @@ -7603,59 +6554,34 @@
  20678. return 0;
  20679. }
  20680. _ACEOF
  20681. -rm -f conftest.$ac_objext conftest$ac_exeext
  20682. -if { (ac_try="$ac_link"
  20683. -case "(($ac_try" in
  20684. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20685. - *) ac_try_echo=$ac_try;;
  20686. -esac
  20687. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20688. -$as_echo "$ac_try_echo") >&5
  20689. - (eval "$ac_link") 2>conftest.er1
  20690. - ac_status=$?
  20691. - grep -v '^ *+' conftest.er1 >conftest.err
  20692. - rm -f conftest.er1
  20693. - cat conftest.err >&5
  20694. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20695. - (exit $ac_status); } && {
  20696. - test -z "$ac_c_werror_flag" ||
  20697. - test ! -s conftest.err
  20698. - } && test -s conftest$ac_exeext && {
  20699. - test "$cross_compiling" = yes ||
  20700. - $as_test_x conftest$ac_exeext
  20701. - }; then
  20702. +if ac_fn_c_try_link "$LINENO"; then :
  20703. lt_cv_ld_exported_symbols_list=yes
  20704. else
  20705. - $as_echo "$as_me: failed program was:" >&5
  20706. -sed 's/^/| /' conftest.$ac_ext >&5
  20707. -
  20708. - lt_cv_ld_exported_symbols_list=no
  20709. + lt_cv_ld_exported_symbols_list=no
  20710. fi
  20711. -
  20712. -rm -rf conftest.dSYM
  20713. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20714. - conftest$ac_exeext conftest.$ac_ext
  20715. - LDFLAGS="$save_LDFLAGS"
  20716. +rm -f core conftest.err conftest.$ac_objext \
  20717. + conftest$ac_exeext conftest.$ac_ext
  20718. + LDFLAGS="$save_LDFLAGS"
  20719. fi
  20720. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  20721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  20722. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  20723. case $host_os in
  20724. - rhapsody* | darwin1.[0123])
  20725. + rhapsody* | darwin1.[012])
  20726. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  20727. darwin1.*)
  20728. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20729. - darwin*)
  20730. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20731. + darwin*) # darwin 5.x on
  20732. # if running on 10.5 or later, the deployment target defaults
  20733. # to the OS version, if on x86, and 10.4, the deployment
  20734. # target defaults to 10.4. Don't you love it?
  20735. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  20736. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  20737. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20738. - 10.[012]*)
  20739. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20740. - 10.*)
  20741. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20742. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  20743. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20744. + 10.[012]*)
  20745. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  20746. + 10.*)
  20747. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  20748. esac
  20749. ;;
  20750. esac
  20751. @@ -7665,40 +6591,147 @@
  20752. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  20753. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  20754. else
  20755. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  20756. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20757. fi
  20758. if test "$DSYMUTIL" != ":"; then
  20759. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  20760. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  20761. else
  20762. _lt_dsymutil=
  20763. fi
  20764. ;;
  20765. esac
  20766. +ac_ext=c
  20767. +ac_cpp='$CPP $CPPFLAGS'
  20768. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20769. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20770. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  20772. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  20773. +# On Suns, sometimes $CPP names a directory.
  20774. +if test -n "$CPP" && test -d "$CPP"; then
  20775. + CPP=
  20776. +fi
  20777. +if test -z "$CPP"; then
  20778. + if test "${ac_cv_prog_CPP+set}" = set; then :
  20779. + $as_echo_n "(cached) " >&6
  20780. +else
  20781. + # Double quotes because CPP needs to be expanded
  20782. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  20783. + do
  20784. + ac_preproc_ok=false
  20785. +for ac_c_preproc_warn_flag in '' yes
  20786. +do
  20787. + # Use a header file that comes with gcc, so configuring glibc
  20788. + # with a fresh cross-compiler works.
  20789. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20790. + # <limits.h> exists even on freestanding compilers.
  20791. + # On the NeXT, cc -E runs the code through the compiler's parser,
  20792. + # not just through cpp. "Syntax error" is here to catch this case.
  20793. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20794. +/* end confdefs.h. */
  20795. +#ifdef __STDC__
  20796. +# include <limits.h>
  20797. +#else
  20798. +# include <assert.h>
  20799. +#endif
  20800. + Syntax error
  20801. +_ACEOF
  20802. +if ac_fn_c_try_cpp "$LINENO"; then :
  20803. -enable_dlopen=no
  20804. -enable_win32_dll=no
  20805. +else
  20806. + # Broken: fails on valid input.
  20807. +continue
  20808. +fi
  20809. +rm -f conftest.err conftest.$ac_ext
  20810. -# Check whether --enable-libtool-lock was given.
  20811. -if test "${enable_libtool_lock+set}" = set; then
  20812. - enableval=$enable_libtool_lock;
  20813. + # OK, works on sane cases. Now check whether nonexistent headers
  20814. + # can be detected and how.
  20815. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20816. +/* end confdefs.h. */
  20817. +#include <ac_nonexistent.h>
  20818. +_ACEOF
  20819. +if ac_fn_c_try_cpp "$LINENO"; then :
  20820. + # Broken: success on invalid input.
  20821. +continue
  20822. +else
  20823. + # Passes both tests.
  20824. +ac_preproc_ok=:
  20825. +break
  20826. fi
  20827. +rm -f conftest.err conftest.$ac_ext
  20828. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20829. +done
  20830. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20831. +rm -f conftest.err conftest.$ac_ext
  20832. +if $ac_preproc_ok; then :
  20833. + break
  20834. +fi
  20835. + done
  20836. + ac_cv_prog_CPP=$CPP
  20837. -# Check whether --with-pic was given.
  20838. -if test "${with_pic+set}" = set; then
  20839. - withval=$with_pic; pic_mode="$withval"
  20840. +fi
  20841. + CPP=$ac_cv_prog_CPP
  20842. else
  20843. - pic_mode=default
  20844. + ac_cv_prog_CPP=$CPP
  20845. +fi
  20846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  20847. +$as_echo "$CPP" >&6; }
  20848. +ac_preproc_ok=false
  20849. +for ac_c_preproc_warn_flag in '' yes
  20850. +do
  20851. + # Use a header file that comes with gcc, so configuring glibc
  20852. + # with a fresh cross-compiler works.
  20853. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20854. + # <limits.h> exists even on freestanding compilers.
  20855. + # On the NeXT, cc -E runs the code through the compiler's parser,
  20856. + # not just through cpp. "Syntax error" is here to catch this case.
  20857. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20858. +/* end confdefs.h. */
  20859. +#ifdef __STDC__
  20860. +# include <limits.h>
  20861. +#else
  20862. +# include <assert.h>
  20863. +#endif
  20864. + Syntax error
  20865. +_ACEOF
  20866. +if ac_fn_c_try_cpp "$LINENO"; then :
  20867. +
  20868. +else
  20869. + # Broken: fails on valid input.
  20870. +continue
  20871. fi
  20872. +rm -f conftest.err conftest.$ac_ext
  20873. -test -z "$pic_mode" && pic_mode=default
  20874. + # OK, works on sane cases. Now check whether nonexistent headers
  20875. + # can be detected and how.
  20876. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20877. +/* end confdefs.h. */
  20878. +#include <ac_nonexistent.h>
  20879. +_ACEOF
  20880. +if ac_fn_c_try_cpp "$LINENO"; then :
  20881. + # Broken: success on invalid input.
  20882. +continue
  20883. +else
  20884. + # Passes both tests.
  20885. +ac_preproc_ok=:
  20886. +break
  20887. +fi
  20888. +rm -f conftest.err conftest.$ac_ext
  20889. +
  20890. +done
  20891. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20892. +rm -f conftest.err conftest.$ac_ext
  20893. +if $ac_preproc_ok; then :
  20894. +
  20895. +else
  20896. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20897. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20898. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  20899. +See \`config.log' for more details." "$LINENO" 5; }
  20900. +fi
  20901. -# Use C for the default configuration in the libtool script
  20902. -tagname=
  20903. -lt_save_CC="$CC"
  20904. ac_ext=c
  20905. ac_cpp='$CPP $CPPFLAGS'
  20906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20907. @@ -7706,11034 +6739,2647 @@
  20908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20909. -# Source file extension for C test sources.
  20910. -ac_ext=c
  20911. -
  20912. -# Object file extension for compiled C test sources.
  20913. -objext=o
  20914. -objext=$objext
  20915. -
  20916. -# Code to be used in simple compile tests
  20917. -lt_simple_compile_test_code="int some_variable = 0;"
  20918. -
  20919. -# Code to be used in simple link tests
  20920. -lt_simple_link_test_code='int main(){return(0);}'
  20921. -
  20922. -
  20923. -# If no C compiler was specified, use CC.
  20924. -LTCC=${LTCC-"$CC"}
  20925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  20926. +$as_echo_n "checking for ANSI C header files... " >&6; }
  20927. +if test "${ac_cv_header_stdc+set}" = set; then :
  20928. + $as_echo_n "(cached) " >&6
  20929. +else
  20930. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20931. +/* end confdefs.h. */
  20932. +#include <stdlib.h>
  20933. +#include <stdarg.h>
  20934. +#include <string.h>
  20935. +#include <float.h>
  20936. -# If no C compiler flags were specified, use CFLAGS.
  20937. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20938. +int
  20939. +main ()
  20940. +{
  20941. -# Allow CC to be a program name with arguments.
  20942. -compiler=$CC
  20943. + ;
  20944. + return 0;
  20945. +}
  20946. +_ACEOF
  20947. +if ac_fn_c_try_compile "$LINENO"; then :
  20948. + ac_cv_header_stdc=yes
  20949. +else
  20950. + ac_cv_header_stdc=no
  20951. +fi
  20952. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20953. +if test $ac_cv_header_stdc = yes; then
  20954. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20955. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20956. +/* end confdefs.h. */
  20957. +#include <string.h>
  20958. -# save warnings/boilerplate of simple test code
  20959. -ac_outfile=conftest.$ac_objext
  20960. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  20961. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20962. -_lt_compiler_boilerplate=`cat conftest.err`
  20963. -$rm conftest*
  20964. +_ACEOF
  20965. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20966. + $EGREP "memchr" >/dev/null 2>&1; then :
  20967. -ac_outfile=conftest.$ac_objext
  20968. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  20969. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20970. -_lt_linker_boilerplate=`cat conftest.err`
  20971. -$rm -r conftest*
  20972. +else
  20973. + ac_cv_header_stdc=no
  20974. +fi
  20975. +rm -f conftest*
  20976. +fi
  20977. +if test $ac_cv_header_stdc = yes; then
  20978. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20979. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20980. +/* end confdefs.h. */
  20981. +#include <stdlib.h>
  20982. -lt_prog_compiler_no_builtin_flag=
  20983. +_ACEOF
  20984. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20985. + $EGREP "free" >/dev/null 2>&1; then :
  20986. -if test "$GCC" = yes; then
  20987. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  20988. +else
  20989. + ac_cv_header_stdc=no
  20990. +fi
  20991. +rm -f conftest*
  20992. +fi
  20993. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  20994. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  20995. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  20996. - $as_echo_n "(cached) " >&6
  20997. +if test $ac_cv_header_stdc = yes; then
  20998. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20999. + if test "$cross_compiling" = yes; then :
  21000. + :
  21001. else
  21002. - lt_cv_prog_compiler_rtti_exceptions=no
  21003. - ac_outfile=conftest.$ac_objext
  21004. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21005. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  21006. - # Insert the option either (1) after the last *FLAGS variable, or
  21007. - # (2) before a word containing "conftest.", or (3) at the end.
  21008. - # Note that $ac_compile itself does not contain backslashes and begins
  21009. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21010. - # The option is referenced via a variable to avoid confusing sed.
  21011. - lt_compile=`echo "$ac_compile" | $SED \
  21012. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21013. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21014. - -e 's:$: $lt_compiler_flag:'`
  21015. - (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
  21016. - (eval "$lt_compile" 2>conftest.err)
  21017. - ac_status=$?
  21018. - cat conftest.err >&5
  21019. - echo "$as_me:7776: \$? = $ac_status" >&5
  21020. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21021. - # The compiler can only warn and ignore the option if not recognized
  21022. - # So say no if there are warnings other than the usual output.
  21023. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21024. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21025. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21026. - lt_cv_prog_compiler_rtti_exceptions=yes
  21027. - fi
  21028. - fi
  21029. - $rm conftest*
  21030. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21031. +/* end confdefs.h. */
  21032. +#include <ctype.h>
  21033. +#include <stdlib.h>
  21034. +#if ((' ' & 0x0FF) == 0x020)
  21035. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21036. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21037. +#else
  21038. +# define ISLOWER(c) \
  21039. + (('a' <= (c) && (c) <= 'i') \
  21040. + || ('j' <= (c) && (c) <= 'r') \
  21041. + || ('s' <= (c) && (c) <= 'z'))
  21042. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21043. +#endif
  21044. -fi
  21045. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21046. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21047. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21048. +int
  21049. +main ()
  21050. +{
  21051. + int i;
  21052. + for (i = 0; i < 256; i++)
  21053. + if (XOR (islower (i), ISLOWER (i))
  21054. + || toupper (i) != TOUPPER (i))
  21055. + return 2;
  21056. + return 0;
  21057. +}
  21058. +_ACEOF
  21059. +if ac_fn_c_try_run "$LINENO"; then :
  21060. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21061. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  21062. else
  21063. - :
  21064. + ac_cv_header_stdc=no
  21065. +fi
  21066. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21067. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  21068. fi
  21069. fi
  21070. +fi
  21071. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  21072. +$as_echo "$ac_cv_header_stdc" >&6; }
  21073. +if test $ac_cv_header_stdc = yes; then
  21074. -lt_prog_compiler_wl=
  21075. -lt_prog_compiler_pic=
  21076. -lt_prog_compiler_static=
  21077. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  21078. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  21079. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  21080. +fi
  21081. - if test "$GCC" = yes; then
  21082. - lt_prog_compiler_wl='-Wl,'
  21083. - lt_prog_compiler_static='-static'
  21084. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  21085. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  21086. + inttypes.h stdint.h unistd.h
  21087. +do :
  21088. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21089. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  21090. +"
  21091. +eval as_val=\$$as_ac_Header
  21092. + if test "x$as_val" = x""yes; then :
  21093. + cat >>confdefs.h <<_ACEOF
  21094. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21095. +_ACEOF
  21096. - case $host_os in
  21097. - aix*)
  21098. - # All AIX code is PIC.
  21099. - if test "$host_cpu" = ia64; then
  21100. - # AIX 5 now supports IA64 processor
  21101. - lt_prog_compiler_static='-Bstatic'
  21102. - fi
  21103. - ;;
  21104. +fi
  21105. - amigaos*)
  21106. - # FIXME: we need at least 68020 code to build shared libraries, but
  21107. - # adding the `-m68020' flag to GCC prevents building anything better,
  21108. - # like `-m68040'.
  21109. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  21110. - ;;
  21111. +done
  21112. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21113. - # PIC is the default for these OSes.
  21114. - ;;
  21115. - mingw* | cygwin* | pw32* | os2*)
  21116. - # This hack is so that the source file can tell whether it is being
  21117. - # built for inclusion in a dll (and should export symbols for example).
  21118. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21119. - # (--disable-auto-import) libraries
  21120. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21121. - ;;
  21122. +for ac_header in dlfcn.h
  21123. +do :
  21124. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  21125. +"
  21126. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  21127. + cat >>confdefs.h <<_ACEOF
  21128. +#define HAVE_DLFCN_H 1
  21129. +_ACEOF
  21130. - darwin* | rhapsody*)
  21131. - # PIC is the default on this platform
  21132. - # Common symbols not allowed in MH_DYLIB files
  21133. - lt_prog_compiler_pic='-fno-common'
  21134. - ;;
  21135. +fi
  21136. - interix[3-9]*)
  21137. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21138. - # Instead, we relocate shared libraries at runtime.
  21139. - ;;
  21140. +done
  21141. - msdosdjgpp*)
  21142. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  21143. - # on systems that don't support them.
  21144. - lt_prog_compiler_can_build_shared=no
  21145. - enable_shared=no
  21146. - ;;
  21147. - sysv4*MP*)
  21148. - if test -d /usr/nec; then
  21149. - lt_prog_compiler_pic=-Kconform_pic
  21150. - fi
  21151. - ;;
  21152. - hpux*)
  21153. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21154. - # not for PA HP-UX.
  21155. - case $host_cpu in
  21156. - hppa*64*|ia64*)
  21157. - # +Z the default
  21158. - ;;
  21159. - *)
  21160. - lt_prog_compiler_pic='-fPIC'
  21161. - ;;
  21162. - esac
  21163. - ;;
  21164. +# Set options
  21165. - *)
  21166. - lt_prog_compiler_pic='-fPIC'
  21167. - ;;
  21168. - esac
  21169. - else
  21170. - # PORTME Check for flag to pass linker flags through the system compiler.
  21171. - case $host_os in
  21172. - aix*)
  21173. - lt_prog_compiler_wl='-Wl,'
  21174. - if test "$host_cpu" = ia64; then
  21175. - # AIX 5 now supports IA64 processor
  21176. - lt_prog_compiler_static='-Bstatic'
  21177. - else
  21178. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  21179. - fi
  21180. - ;;
  21181. - darwin*)
  21182. - # PIC is the default on this platform
  21183. - # Common symbols not allowed in MH_DYLIB files
  21184. - case $cc_basename in
  21185. - xlc*)
  21186. - lt_prog_compiler_pic='-qnocommon'
  21187. - lt_prog_compiler_wl='-Wl,'
  21188. - ;;
  21189. - esac
  21190. - ;;
  21191. - mingw* | cygwin* | pw32* | os2*)
  21192. - # This hack is so that the source file can tell whether it is being
  21193. - # built for inclusion in a dll (and should export symbols for example).
  21194. - lt_prog_compiler_pic='-DDLL_EXPORT'
  21195. - ;;
  21196. - hpux9* | hpux10* | hpux11*)
  21197. - lt_prog_compiler_wl='-Wl,'
  21198. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21199. - # not for PA HP-UX.
  21200. - case $host_cpu in
  21201. - hppa*64*|ia64*)
  21202. - # +Z the default
  21203. - ;;
  21204. - *)
  21205. - lt_prog_compiler_pic='+Z'
  21206. - ;;
  21207. - esac
  21208. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21209. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  21210. - ;;
  21211. + enable_dlopen=no
  21212. - irix5* | irix6* | nonstopux*)
  21213. - lt_prog_compiler_wl='-Wl,'
  21214. - # PIC (with -KPIC) is the default.
  21215. - lt_prog_compiler_static='-non_shared'
  21216. - ;;
  21217. - newsos6)
  21218. - lt_prog_compiler_pic='-KPIC'
  21219. - lt_prog_compiler_static='-Bstatic'
  21220. - ;;
  21221. + enable_win32_dll=no
  21222. - linux* | k*bsd*-gnu)
  21223. - case $cc_basename in
  21224. - icc* | ecc*)
  21225. - lt_prog_compiler_wl='-Wl,'
  21226. - lt_prog_compiler_pic='-KPIC'
  21227. - lt_prog_compiler_static='-static'
  21228. - ;;
  21229. - pgcc* | pgf77* | pgf90* | pgf95*)
  21230. - # Portland Group compilers (*not* the Pentium gcc compiler,
  21231. - # which looks to be a dead project)
  21232. - lt_prog_compiler_wl='-Wl,'
  21233. - lt_prog_compiler_pic='-fpic'
  21234. - lt_prog_compiler_static='-Bstatic'
  21235. - ;;
  21236. - ccc*)
  21237. - lt_prog_compiler_wl='-Wl,'
  21238. - # All Alpha code is PIC.
  21239. - lt_prog_compiler_static='-non_shared'
  21240. - ;;
  21241. - *)
  21242. - case `$CC -V 2>&1 | sed 5q` in
  21243. - *Sun\ C*)
  21244. - # Sun C 5.9
  21245. - lt_prog_compiler_pic='-KPIC'
  21246. - lt_prog_compiler_static='-Bstatic'
  21247. - lt_prog_compiler_wl='-Wl,'
  21248. - ;;
  21249. - *Sun\ F*)
  21250. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  21251. - lt_prog_compiler_pic='-KPIC'
  21252. - lt_prog_compiler_static='-Bstatic'
  21253. - lt_prog_compiler_wl=''
  21254. - ;;
  21255. - esac
  21256. - ;;
  21257. - esac
  21258. - ;;
  21259. - osf3* | osf4* | osf5*)
  21260. - lt_prog_compiler_wl='-Wl,'
  21261. - # All OSF/1 code is PIC.
  21262. - lt_prog_compiler_static='-non_shared'
  21263. + # Check whether --enable-shared was given.
  21264. +if test "${enable_shared+set}" = set; then :
  21265. + enableval=$enable_shared; p=${PACKAGE-default}
  21266. + case $enableval in
  21267. + yes) enable_shared=yes ;;
  21268. + no) enable_shared=no ;;
  21269. + *)
  21270. + enable_shared=no
  21271. + # Look at the argument we got. We use all the common list separators.
  21272. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21273. + for pkg in $enableval; do
  21274. + IFS="$lt_save_ifs"
  21275. + if test "X$pkg" = "X$p"; then
  21276. + enable_shared=yes
  21277. + fi
  21278. + done
  21279. + IFS="$lt_save_ifs"
  21280. ;;
  21281. + esac
  21282. +else
  21283. + enable_shared=yes
  21284. +fi
  21285. - rdos*)
  21286. - lt_prog_compiler_static='-non_shared'
  21287. - ;;
  21288. - solaris*)
  21289. - lt_prog_compiler_pic='-KPIC'
  21290. - lt_prog_compiler_static='-Bstatic'
  21291. - case $cc_basename in
  21292. - f77* | f90* | f95*)
  21293. - lt_prog_compiler_wl='-Qoption ld ';;
  21294. - *)
  21295. - lt_prog_compiler_wl='-Wl,';;
  21296. - esac
  21297. - ;;
  21298. - sunos4*)
  21299. - lt_prog_compiler_wl='-Qoption ld '
  21300. - lt_prog_compiler_pic='-PIC'
  21301. - lt_prog_compiler_static='-Bstatic'
  21302. - ;;
  21303. - sysv4 | sysv4.2uw2* | sysv4.3*)
  21304. - lt_prog_compiler_wl='-Wl,'
  21305. - lt_prog_compiler_pic='-KPIC'
  21306. - lt_prog_compiler_static='-Bstatic'
  21307. - ;;
  21308. - sysv4*MP*)
  21309. - if test -d /usr/nec ;then
  21310. - lt_prog_compiler_pic='-Kconform_pic'
  21311. - lt_prog_compiler_static='-Bstatic'
  21312. - fi
  21313. - ;;
  21314. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21315. - lt_prog_compiler_wl='-Wl,'
  21316. - lt_prog_compiler_pic='-KPIC'
  21317. - lt_prog_compiler_static='-Bstatic'
  21318. - ;;
  21319. - unicos*)
  21320. - lt_prog_compiler_wl='-Wl,'
  21321. - lt_prog_compiler_can_build_shared=no
  21322. - ;;
  21323. - uts4*)
  21324. - lt_prog_compiler_pic='-pic'
  21325. - lt_prog_compiler_static='-Bstatic'
  21326. - ;;
  21327. + # Check whether --enable-static was given.
  21328. +if test "${enable_static+set}" = set; then :
  21329. + enableval=$enable_static; p=${PACKAGE-default}
  21330. + case $enableval in
  21331. + yes) enable_static=yes ;;
  21332. + no) enable_static=no ;;
  21333. *)
  21334. - lt_prog_compiler_can_build_shared=no
  21335. + enable_static=no
  21336. + # Look at the argument we got. We use all the common list separators.
  21337. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21338. + for pkg in $enableval; do
  21339. + IFS="$lt_save_ifs"
  21340. + if test "X$pkg" = "X$p"; then
  21341. + enable_static=yes
  21342. + fi
  21343. + done
  21344. + IFS="$lt_save_ifs"
  21345. ;;
  21346. esac
  21347. - fi
  21348. +else
  21349. + enable_static=yes
  21350. +fi
  21351. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  21352. -$as_echo "$lt_prog_compiler_pic" >&6; }
  21353. -#
  21354. -# Check to make sure the PIC flag actually works.
  21355. -#
  21356. -if test -n "$lt_prog_compiler_pic"; then
  21357. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  21358. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  21359. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  21360. - $as_echo_n "(cached) " >&6
  21361. -else
  21362. - lt_cv_prog_compiler_pic_works=no
  21363. - ac_outfile=conftest.$ac_objext
  21364. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21365. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  21366. - # Insert the option either (1) after the last *FLAGS variable, or
  21367. - # (2) before a word containing "conftest.", or (3) at the end.
  21368. - # Note that $ac_compile itself does not contain backslashes and begins
  21369. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21370. - # The option is referenced via a variable to avoid confusing sed.
  21371. - lt_compile=`echo "$ac_compile" | $SED \
  21372. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21373. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21374. - -e 's:$: $lt_compiler_flag:'`
  21375. - (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
  21376. - (eval "$lt_compile" 2>conftest.err)
  21377. - ac_status=$?
  21378. - cat conftest.err >&5
  21379. - echo "$as_me:8066: \$? = $ac_status" >&5
  21380. - if (exit $ac_status) && test -s "$ac_outfile"; then
  21381. - # The compiler can only warn and ignore the option if not recognized
  21382. - # So say no if there are warnings other than the usual output.
  21383. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21384. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21385. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21386. - lt_cv_prog_compiler_pic_works=yes
  21387. - fi
  21388. - fi
  21389. - $rm conftest*
  21390. -fi
  21391. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  21392. -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  21393. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  21394. - case $lt_prog_compiler_pic in
  21395. - "" | " "*) ;;
  21396. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  21397. - esac
  21398. -else
  21399. - lt_prog_compiler_pic=
  21400. - lt_prog_compiler_can_build_shared=no
  21401. -fi
  21402. -fi
  21403. -case $host_os in
  21404. - # For platforms which do not support PIC, -DPIC is meaningless:
  21405. - *djgpp*)
  21406. - lt_prog_compiler_pic=
  21407. - ;;
  21408. - *)
  21409. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  21410. - ;;
  21411. -esac
  21412. -#
  21413. -# Check to make sure the static flag actually works.
  21414. -#
  21415. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  21416. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  21417. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  21418. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  21419. - $as_echo_n "(cached) " >&6
  21420. -else
  21421. - lt_cv_prog_compiler_static_works=no
  21422. - save_LDFLAGS="$LDFLAGS"
  21423. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  21424. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  21425. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  21426. - # The linker can only warn and ignore the option if not recognized
  21427. - # So say no if there are warnings
  21428. - if test -s conftest.err; then
  21429. - # Append any errors to the config.log.
  21430. - cat conftest.err 1>&5
  21431. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  21432. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21433. - if diff conftest.exp conftest.er2 >/dev/null; then
  21434. - lt_cv_prog_compiler_static_works=yes
  21435. - fi
  21436. - else
  21437. - lt_cv_prog_compiler_static_works=yes
  21438. - fi
  21439. - fi
  21440. - $rm -r conftest*
  21441. - LDFLAGS="$save_LDFLAGS"
  21442. -fi
  21443. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  21444. -$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  21445. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  21446. - :
  21447. +
  21448. +# Check whether --with-pic was given.
  21449. +if test "${with_pic+set}" = set; then :
  21450. + withval=$with_pic; pic_mode="$withval"
  21451. else
  21452. - lt_prog_compiler_static=
  21453. + pic_mode=default
  21454. fi
  21455. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  21456. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  21457. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  21458. - $as_echo_n "(cached) " >&6
  21459. -else
  21460. - lt_cv_prog_compiler_c_o=no
  21461. - $rm -r conftest 2>/dev/null
  21462. - mkdir conftest
  21463. - cd conftest
  21464. - mkdir out
  21465. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21466. +test -z "$pic_mode" && pic_mode=default
  21467. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  21468. - # Insert the option either (1) after the last *FLAGS variable, or
  21469. - # (2) before a word containing "conftest.", or (3) at the end.
  21470. - # Note that $ac_compile itself does not contain backslashes and begins
  21471. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  21472. - lt_compile=`echo "$ac_compile" | $SED \
  21473. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21474. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21475. - -e 's:$: $lt_compiler_flag:'`
  21476. - (eval echo "\"\$as_me:8166: $lt_compile\"" >&5)
  21477. - (eval "$lt_compile" 2>out/conftest.err)
  21478. - ac_status=$?
  21479. - cat out/conftest.err >&5
  21480. - echo "$as_me:8170: \$? = $ac_status" >&5
  21481. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  21482. - then
  21483. - # The compiler can only warn and ignore the option if not recognized
  21484. - # So say no if there are warnings
  21485. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  21486. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  21487. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  21488. - lt_cv_prog_compiler_c_o=yes
  21489. - fi
  21490. - fi
  21491. - chmod u+w . 2>&5
  21492. - $rm conftest*
  21493. - # SGI C++ compiler will create directory out/ii_files/ for
  21494. - # template instantiation
  21495. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  21496. - $rm out/* && rmdir out
  21497. - cd ..
  21498. - rmdir conftest
  21499. - $rm conftest*
  21500. -fi
  21501. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  21502. -$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  21503. -hard_links="nottested"
  21504. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  21505. - # do not overwrite the value of need_locks provided by the user
  21506. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  21507. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  21508. - hard_links=yes
  21509. - $rm conftest*
  21510. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21511. - touch conftest.a
  21512. - ln conftest.a conftest.b 2>&5 || hard_links=no
  21513. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21514. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  21515. -$as_echo "$hard_links" >&6; }
  21516. - if test "$hard_links" = no; then
  21517. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  21518. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  21519. - need_locks=warn
  21520. - fi
  21521. +
  21522. +
  21523. +
  21524. + # Check whether --enable-fast-install was given.
  21525. +if test "${enable_fast_install+set}" = set; then :
  21526. + enableval=$enable_fast_install; p=${PACKAGE-default}
  21527. + case $enableval in
  21528. + yes) enable_fast_install=yes ;;
  21529. + no) enable_fast_install=no ;;
  21530. + *)
  21531. + enable_fast_install=no
  21532. + # Look at the argument we got. We use all the common list separators.
  21533. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21534. + for pkg in $enableval; do
  21535. + IFS="$lt_save_ifs"
  21536. + if test "X$pkg" = "X$p"; then
  21537. + enable_fast_install=yes
  21538. + fi
  21539. + done
  21540. + IFS="$lt_save_ifs"
  21541. + ;;
  21542. + esac
  21543. else
  21544. - need_locks=no
  21545. + enable_fast_install=yes
  21546. fi
  21547. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  21548. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  21549. - runpath_var=
  21550. - allow_undefined_flag=
  21551. - enable_shared_with_static_runtimes=no
  21552. - archive_cmds=
  21553. - archive_expsym_cmds=
  21554. - old_archive_From_new_cmds=
  21555. - old_archive_from_expsyms_cmds=
  21556. - export_dynamic_flag_spec=
  21557. - whole_archive_flag_spec=
  21558. - thread_safe_flag_spec=
  21559. - hardcode_libdir_flag_spec=
  21560. - hardcode_libdir_flag_spec_ld=
  21561. - hardcode_libdir_separator=
  21562. - hardcode_direct=no
  21563. - hardcode_minus_L=no
  21564. - hardcode_shlibpath_var=unsupported
  21565. - link_all_deplibs=unknown
  21566. - hardcode_automatic=no
  21567. - module_cmds=
  21568. - module_expsym_cmds=
  21569. - always_export_symbols=no
  21570. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  21571. - # include_expsyms should be a list of space-separated symbols to be *always*
  21572. - # included in the symbol list
  21573. - include_expsyms=
  21574. - # exclude_expsyms can be an extended regexp of symbols to exclude
  21575. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  21576. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  21577. - # as well as any symbol that contains `d'.
  21578. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  21579. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  21580. - # platforms (ab)use it in PIC code, but their linkers get confused if
  21581. - # the symbol is explicitly referenced. Since portable code cannot
  21582. - # rely on this symbol name, it's probably fine to never include it in
  21583. - # preloaded symbol tables.
  21584. - # Exclude shared library initialization/finalization symbols.
  21585. - extract_expsyms_cmds=
  21586. - # Just being paranoid about ensuring that cc_basename is set.
  21587. - for cc_temp in $compiler""; do
  21588. - case $cc_temp in
  21589. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21590. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21591. - \-*) ;;
  21592. - *) break;;
  21593. - esac
  21594. -done
  21595. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  21596. - case $host_os in
  21597. - cygwin* | mingw* | pw32*)
  21598. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  21599. - # When not using gcc, we currently assume that we are using
  21600. - # Microsoft Visual C++.
  21601. - if test "$GCC" != yes; then
  21602. - with_gnu_ld=no
  21603. - fi
  21604. - ;;
  21605. - interix*)
  21606. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  21607. - with_gnu_ld=yes
  21608. - ;;
  21609. - openbsd*)
  21610. - with_gnu_ld=no
  21611. - ;;
  21612. - esac
  21613. - ld_shlibs=yes
  21614. - if test "$with_gnu_ld" = yes; then
  21615. - # If archive_cmds runs LD, not CC, wlarc should be empty
  21616. - wlarc='${wl}'
  21617. - # Set some defaults for GNU ld with shared library support. These
  21618. - # are reset later if shared libraries are not supported. Putting them
  21619. - # here allows them to be overridden if necessary.
  21620. - runpath_var=LD_RUN_PATH
  21621. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  21622. - export_dynamic_flag_spec='${wl}--export-dynamic'
  21623. - # ancient GNU ld didn't support --whole-archive et. al.
  21624. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  21625. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  21626. - else
  21627. - whole_archive_flag_spec=
  21628. - fi
  21629. - supports_anon_versioning=no
  21630. - case `$LD -v 2>/dev/null` in
  21631. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  21632. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  21633. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  21634. - *\ 2.11.*) ;; # other 2.11 versions
  21635. - *) supports_anon_versioning=yes ;;
  21636. - esac
  21637. - # See if GNU ld supports shared libraries.
  21638. - case $host_os in
  21639. - aix[3-9]*)
  21640. - # On AIX/PPC, the GNU linker is very broken
  21641. - if test "$host_cpu" != ia64; then
  21642. - ld_shlibs=no
  21643. - cat <<EOF 1>&2
  21644. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  21645. -*** to be unable to reliably create shared libraries on AIX.
  21646. -*** Therefore, libtool is disabling shared libraries support. If you
  21647. -*** really care for shared libraries, you may want to modify your PATH
  21648. -*** so that a non-GNU linker is found, and then restart.
  21649. -EOF
  21650. - fi
  21651. - ;;
  21652. - amigaos*)
  21653. - 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)'
  21654. - hardcode_libdir_flag_spec='-L$libdir'
  21655. - hardcode_minus_L=yes
  21656. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  21657. - # that the semantics of dynamic libraries on AmigaOS, at least up
  21658. - # to version 4, is to share data among multiple programs linked
  21659. - # with the same dynamic library. Since this doesn't match the
  21660. - # behavior of shared libraries on other platforms, we can't use
  21661. - # them.
  21662. - ld_shlibs=no
  21663. - ;;
  21664. - beos*)
  21665. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21666. - allow_undefined_flag=unsupported
  21667. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  21668. - # support --undefined. This deserves some investigation. FIXME
  21669. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21670. - else
  21671. - ld_shlibs=no
  21672. - fi
  21673. - ;;
  21674. +# This can be used to rebuild libtool when needed
  21675. +LIBTOOL_DEPS="$ltmain"
  21676. - cygwin* | mingw* | pw32*)
  21677. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  21678. - # as there is no search path for DLLs.
  21679. - hardcode_libdir_flag_spec='-L$libdir'
  21680. - allow_undefined_flag=unsupported
  21681. - always_export_symbols=no
  21682. - enable_shared_with_static_runtimes=yes
  21683. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  21684. +# Always use our own libtool.
  21685. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  21686. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  21687. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21688. - # If the export-symbols file already is a .def file (1st line
  21689. - # is EXPORTS), use it as is; otherwise, prepend...
  21690. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  21691. - cp $export_symbols $output_objdir/$soname.def;
  21692. - else
  21693. - echo EXPORTS > $output_objdir/$soname.def;
  21694. - cat $export_symbols >> $output_objdir/$soname.def;
  21695. - fi~
  21696. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21697. - else
  21698. - ld_shlibs=no
  21699. - fi
  21700. - ;;
  21701. - interix[3-9]*)
  21702. - hardcode_direct=no
  21703. - hardcode_shlibpath_var=no
  21704. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  21705. - export_dynamic_flag_spec='${wl}-E'
  21706. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  21707. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  21708. - # default) and relocated if they conflict, which is a slow very memory
  21709. - # consuming and fragmenting process. To avoid this, we pick a random,
  21710. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  21711. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  21712. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  21713. - 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'
  21714. - ;;
  21715. - gnu* | linux* | k*bsd*-gnu)
  21716. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21717. - tmp_addflag=
  21718. - case $cc_basename,$host_cpu in
  21719. - pgcc*) # Portland Group C compiler
  21720. - 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'
  21721. - tmp_addflag=' $pic_flag'
  21722. - ;;
  21723. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  21724. - 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'
  21725. - tmp_addflag=' $pic_flag -Mnomain' ;;
  21726. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  21727. - tmp_addflag=' -i_dynamic' ;;
  21728. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  21729. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  21730. - ifc* | ifort*) # Intel Fortran compiler
  21731. - tmp_addflag=' -nofor_main' ;;
  21732. - esac
  21733. - case `$CC -V 2>&1 | sed 5q` in
  21734. - *Sun\ C*) # Sun C 5.9
  21735. - 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'
  21736. - tmp_sharedflag='-G' ;;
  21737. - *Sun\ F*) # Sun Fortran 8.3
  21738. - tmp_sharedflag='-G' ;;
  21739. - *)
  21740. - tmp_sharedflag='-shared' ;;
  21741. - esac
  21742. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21743. - if test $supports_anon_versioning = yes; then
  21744. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  21745. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  21746. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  21747. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  21748. - fi
  21749. - else
  21750. - ld_shlibs=no
  21751. - fi
  21752. - ;;
  21753. - netbsd*)
  21754. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  21755. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  21756. - wlarc=
  21757. - else
  21758. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21759. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21760. - fi
  21761. - ;;
  21762. - solaris*)
  21763. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  21764. - ld_shlibs=no
  21765. - cat <<EOF 1>&2
  21766. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  21767. -*** create shared libraries on Solaris systems. Therefore, libtool
  21768. -*** is disabling shared libraries support. We urge you to upgrade GNU
  21769. -*** binutils to release 2.9.1 or newer. Another option is to modify
  21770. -*** your PATH or compiler configuration so that the native linker is
  21771. -*** used, and then restart.
  21772. -EOF
  21773. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21774. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21775. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21776. - else
  21777. - ld_shlibs=no
  21778. - fi
  21779. - ;;
  21780. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  21781. - case `$LD -v 2>&1` in
  21782. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  21783. - ld_shlibs=no
  21784. - cat <<_LT_EOF 1>&2
  21785. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  21786. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  21787. -*** is disabling shared libraries support. We urge you to upgrade GNU
  21788. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  21789. -*** your PATH or compiler configuration so that the native linker is
  21790. -*** used, and then restart.
  21791. -_LT_EOF
  21792. - ;;
  21793. - *)
  21794. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21795. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  21796. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  21797. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  21798. - else
  21799. - ld_shlibs=no
  21800. - fi
  21801. - ;;
  21802. - esac
  21803. - ;;
  21804. - sunos4*)
  21805. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21806. - wlarc=
  21807. - hardcode_direct=yes
  21808. - hardcode_shlibpath_var=no
  21809. - ;;
  21810. - *)
  21811. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  21812. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21813. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21814. - else
  21815. - ld_shlibs=no
  21816. - fi
  21817. - ;;
  21818. - esac
  21819. - if test "$ld_shlibs" = no; then
  21820. - runpath_var=
  21821. - hardcode_libdir_flag_spec=
  21822. - export_dynamic_flag_spec=
  21823. - whole_archive_flag_spec=
  21824. - fi
  21825. - else
  21826. - # PORTME fill in a description of your system's linker (not GNU ld)
  21827. - case $host_os in
  21828. - aix3*)
  21829. - allow_undefined_flag=unsupported
  21830. - always_export_symbols=yes
  21831. - 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'
  21832. - # Note: this linker hardcodes the directories in LIBPATH if there
  21833. - # are no directories specified by -L.
  21834. - hardcode_minus_L=yes
  21835. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  21836. - # Neither direct hardcoding nor static linking is supported with a
  21837. - # broken collect2.
  21838. - hardcode_direct=unsupported
  21839. - fi
  21840. - ;;
  21841. - aix[4-9]*)
  21842. - if test "$host_cpu" = ia64; then
  21843. - # On IA64, the linker does run time linking by default, so we don't
  21844. - # have to do anything special.
  21845. - aix_use_runtimelinking=no
  21846. - exp_sym_flag='-Bexport'
  21847. - no_entry_flag=""
  21848. - else
  21849. - # If we're using GNU nm, then we don't want the "-C" option.
  21850. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  21851. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  21852. - 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'
  21853. - else
  21854. - 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'
  21855. - fi
  21856. - aix_use_runtimelinking=no
  21857. - # Test if we are trying to use run time linking or normal
  21858. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  21859. - # need to do runtime linking.
  21860. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  21861. - for ld_flag in $LDFLAGS; do
  21862. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  21863. - aix_use_runtimelinking=yes
  21864. - break
  21865. - fi
  21866. - done
  21867. - ;;
  21868. - esac
  21869. - exp_sym_flag='-bexport'
  21870. - no_entry_flag='-bnoentry'
  21871. - fi
  21872. - # When large executables or shared objects are built, AIX ld can
  21873. - # have problems creating the table of contents. If linking a library
  21874. - # or program results in "error TOC overflow" add -mminimal-toc to
  21875. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  21876. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  21877. - archive_cmds=''
  21878. - hardcode_direct=yes
  21879. - hardcode_libdir_separator=':'
  21880. - link_all_deplibs=yes
  21881. - if test "$GCC" = yes; then
  21882. - case $host_os in aix4.[012]|aix4.[012].*)
  21883. - # We only want to do this on AIX 4.2 and lower, the check
  21884. - # below for broken collect2 doesn't work under 4.3+
  21885. - collect2name=`${CC} -print-prog-name=collect2`
  21886. - if test -f "$collect2name" && \
  21887. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  21888. - then
  21889. - # We have reworked collect2
  21890. - :
  21891. - else
  21892. - # We have old collect2
  21893. - hardcode_direct=unsupported
  21894. - # It fails to find uninstalled libraries when the uninstalled
  21895. - # path is not listed in the libpath. Setting hardcode_minus_L
  21896. - # to unsupported forces relinking
  21897. - hardcode_minus_L=yes
  21898. - hardcode_libdir_flag_spec='-L$libdir'
  21899. - hardcode_libdir_separator=
  21900. - fi
  21901. - ;;
  21902. - esac
  21903. - shared_flag='-shared'
  21904. - if test "$aix_use_runtimelinking" = yes; then
  21905. - shared_flag="$shared_flag "'${wl}-G'
  21906. - fi
  21907. - else
  21908. - # not using gcc
  21909. - if test "$host_cpu" = ia64; then
  21910. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  21911. - # chokes on -Wl,-G. The following line is correct:
  21912. - shared_flag='-G'
  21913. - else
  21914. - if test "$aix_use_runtimelinking" = yes; then
  21915. - shared_flag='${wl}-G'
  21916. - else
  21917. - shared_flag='${wl}-bM:SRE'
  21918. - fi
  21919. - fi
  21920. - fi
  21921. - # It seems that -bexpall does not export symbols beginning with
  21922. - # underscore (_), so it is better to generate a list of symbols to export.
  21923. - always_export_symbols=yes
  21924. - if test "$aix_use_runtimelinking" = yes; then
  21925. - # Warning - without using the other runtime loading flags (-brtl),
  21926. - # -berok will link without error, but may produce a broken library.
  21927. - allow_undefined_flag='-berok'
  21928. - # Determine the default libpath from the value encoded in an empty executable.
  21929. - cat >conftest.$ac_ext <<_ACEOF
  21930. -/* confdefs.h. */
  21931. -_ACEOF
  21932. -cat confdefs.h >>conftest.$ac_ext
  21933. -cat >>conftest.$ac_ext <<_ACEOF
  21934. -/* end confdefs.h. */
  21935. -int
  21936. -main ()
  21937. -{
  21938. - ;
  21939. - return 0;
  21940. -}
  21941. -_ACEOF
  21942. -rm -f conftest.$ac_objext conftest$ac_exeext
  21943. -if { (ac_try="$ac_link"
  21944. -case "(($ac_try" in
  21945. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21946. - *) ac_try_echo=$ac_try;;
  21947. -esac
  21948. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21949. -$as_echo "$ac_try_echo") >&5
  21950. - (eval "$ac_link") 2>conftest.er1
  21951. - ac_status=$?
  21952. - grep -v '^ *+' conftest.er1 >conftest.err
  21953. - rm -f conftest.er1
  21954. - cat conftest.err >&5
  21955. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21956. - (exit $ac_status); } && {
  21957. - test -z "$ac_c_werror_flag" ||
  21958. - test ! -s conftest.err
  21959. - } && test -s conftest$ac_exeext && {
  21960. - test "$cross_compiling" = yes ||
  21961. - $as_test_x conftest$ac_exeext
  21962. - }; then
  21963. -lt_aix_libpath_sed='
  21964. - /Import File Strings/,/^$/ {
  21965. - /^0/ {
  21966. - s/^0 *\(.*\)$/\1/
  21967. - p
  21968. - }
  21969. - }'
  21970. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21971. -# Check for a 64-bit object if we didn't find anything.
  21972. -if test -z "$aix_libpath"; then
  21973. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21974. -fi
  21975. -else
  21976. - $as_echo "$as_me: failed program was:" >&5
  21977. -sed 's/^/| /' conftest.$ac_ext >&5
  21978. +
  21979. +test -z "$LN_S" && LN_S="ln -s"
  21980. +
  21981. -fi
  21982. -rm -rf conftest.dSYM
  21983. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21984. - conftest$ac_exeext conftest.$ac_ext
  21985. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21986. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  21987. - 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"
  21988. - else
  21989. - if test "$host_cpu" = ia64; then
  21990. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  21991. - allow_undefined_flag="-z nodefs"
  21992. - 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"
  21993. - else
  21994. - # Determine the default libpath from the value encoded in an empty executable.
  21995. - cat >conftest.$ac_ext <<_ACEOF
  21996. -/* confdefs.h. */
  21997. -_ACEOF
  21998. -cat confdefs.h >>conftest.$ac_ext
  21999. -cat >>conftest.$ac_ext <<_ACEOF
  22000. -/* end confdefs.h. */
  22001. -int
  22002. -main ()
  22003. -{
  22004. - ;
  22005. - return 0;
  22006. -}
  22007. -_ACEOF
  22008. -rm -f conftest.$ac_objext conftest$ac_exeext
  22009. -if { (ac_try="$ac_link"
  22010. -case "(($ac_try" in
  22011. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22012. - *) ac_try_echo=$ac_try;;
  22013. -esac
  22014. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22015. -$as_echo "$ac_try_echo") >&5
  22016. - (eval "$ac_link") 2>conftest.er1
  22017. - ac_status=$?
  22018. - grep -v '^ *+' conftest.er1 >conftest.err
  22019. - rm -f conftest.er1
  22020. - cat conftest.err >&5
  22021. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22022. - (exit $ac_status); } && {
  22023. - test -z "$ac_c_werror_flag" ||
  22024. - test ! -s conftest.err
  22025. - } && test -s conftest$ac_exeext && {
  22026. - test "$cross_compiling" = yes ||
  22027. - $as_test_x conftest$ac_exeext
  22028. - }; then
  22029. -lt_aix_libpath_sed='
  22030. - /Import File Strings/,/^$/ {
  22031. - /^0/ {
  22032. - s/^0 *\(.*\)$/\1/
  22033. - p
  22034. - }
  22035. - }'
  22036. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22037. -# Check for a 64-bit object if we didn't find anything.
  22038. -if test -z "$aix_libpath"; then
  22039. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22040. -fi
  22041. -else
  22042. - $as_echo "$as_me: failed program was:" >&5
  22043. -sed 's/^/| /' conftest.$ac_ext >&5
  22044. +
  22045. +
  22046. +
  22047. +
  22048. +if test -n "${ZSH_VERSION+set}" ; then
  22049. + setopt NO_GLOB_SUBST
  22050. fi
  22051. -rm -rf conftest.dSYM
  22052. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22053. - conftest$ac_exeext conftest.$ac_ext
  22054. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22055. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  22056. +$as_echo_n "checking for objdir... " >&6; }
  22057. +if test "${lt_cv_objdir+set}" = set; then :
  22058. + $as_echo_n "(cached) " >&6
  22059. +else
  22060. + rm -f .libs 2>/dev/null
  22061. +mkdir .libs 2>/dev/null
  22062. +if test -d .libs; then
  22063. + lt_cv_objdir=.libs
  22064. +else
  22065. + # MS-DOS does not allow filenames that begin with a dot.
  22066. + lt_cv_objdir=_libs
  22067. +fi
  22068. +rmdir .libs 2>/dev/null
  22069. +fi
  22070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  22071. +$as_echo "$lt_cv_objdir" >&6; }
  22072. +objdir=$lt_cv_objdir
  22073. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  22074. - # Warning - without using the other run time loading flags,
  22075. - # -berok will link without error, but may produce a broken library.
  22076. - no_undefined_flag=' ${wl}-bernotok'
  22077. - allow_undefined_flag=' ${wl}-berok'
  22078. - # Exported symbols can be pulled into shared objects from archives
  22079. - whole_archive_flag_spec='$convenience'
  22080. - archive_cmds_need_lc=yes
  22081. - # This is similar to how AIX traditionally builds its shared libraries.
  22082. - 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'
  22083. - fi
  22084. - fi
  22085. - ;;
  22086. - amigaos*)
  22087. - 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)'
  22088. - hardcode_libdir_flag_spec='-L$libdir'
  22089. - hardcode_minus_L=yes
  22090. - # see comment about different semantics on the GNU ld section
  22091. - ld_shlibs=no
  22092. - ;;
  22093. - bsdi[45]*)
  22094. - export_dynamic_flag_spec=-rdynamic
  22095. - ;;
  22096. - cygwin* | mingw* | pw32*)
  22097. - # When not using gcc, we currently assume that we are using
  22098. - # Microsoft Visual C++.
  22099. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  22100. - # no search path for DLLs.
  22101. - hardcode_libdir_flag_spec=' '
  22102. - allow_undefined_flag=unsupported
  22103. - # Tell ltmain to make .lib files, not .a files.
  22104. - libext=lib
  22105. - # Tell ltmain to make .dll files, not .so files.
  22106. - shrext_cmds=".dll"
  22107. - # FIXME: Setting linknames here is a bad hack.
  22108. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  22109. - # The linker will automatically build a .lib file if we build a DLL.
  22110. - old_archive_From_new_cmds='true'
  22111. - # FIXME: Should let the user specify the lib program.
  22112. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  22113. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  22114. - enable_shared_with_static_runtimes=yes
  22115. - ;;
  22116. - darwin* | rhapsody*)
  22117. - case $host_os in
  22118. - rhapsody* | darwin1.[012])
  22119. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  22120. - ;;
  22121. - *) # Darwin 1.3 on
  22122. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22123. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22124. - else
  22125. - case ${MACOSX_DEPLOYMENT_TARGET} in
  22126. - 10.[012])
  22127. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22128. - ;;
  22129. - 10.*)
  22130. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  22131. - ;;
  22132. - esac
  22133. - fi
  22134. - ;;
  22135. - esac
  22136. - archive_cmds_need_lc=no
  22137. - hardcode_direct=no
  22138. - hardcode_automatic=yes
  22139. - hardcode_shlibpath_var=unsupported
  22140. - whole_archive_flag_spec=''
  22141. - link_all_deplibs=yes
  22142. - if test "$GCC" = yes ; then
  22143. - output_verbose_link_cmd='echo'
  22144. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  22145. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  22146. - 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}"
  22147. - 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}"
  22148. - else
  22149. - case $cc_basename in
  22150. - xlc*)
  22151. - output_verbose_link_cmd='echo'
  22152. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  22153. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22154. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22155. - 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}'
  22156. - 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}'
  22157. - ;;
  22158. - *)
  22159. - ld_shlibs=no
  22160. - ;;
  22161. - esac
  22162. - fi
  22163. - ;;
  22164. +cat >>confdefs.h <<_ACEOF
  22165. +#define LT_OBJDIR "$lt_cv_objdir/"
  22166. +_ACEOF
  22167. - dgux*)
  22168. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22169. - hardcode_libdir_flag_spec='-L$libdir'
  22170. - hardcode_shlibpath_var=no
  22171. - ;;
  22172. - freebsd1*)
  22173. - ld_shlibs=no
  22174. - ;;
  22175. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  22176. - # support. Future versions do this automatically, but an explicit c++rt0.o
  22177. - # does not break anything, and helps significantly (at the cost of a little
  22178. - # extra space).
  22179. - freebsd2.2*)
  22180. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  22181. - hardcode_libdir_flag_spec='-R$libdir'
  22182. - hardcode_direct=yes
  22183. - hardcode_shlibpath_var=no
  22184. - ;;
  22185. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  22186. - freebsd2*)
  22187. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22188. - hardcode_direct=yes
  22189. - hardcode_minus_L=yes
  22190. - hardcode_shlibpath_var=no
  22191. - ;;
  22192. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  22193. - freebsd* | dragonfly*)
  22194. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  22195. - hardcode_libdir_flag_spec='-R$libdir'
  22196. - hardcode_direct=yes
  22197. - hardcode_shlibpath_var=no
  22198. - ;;
  22199. - hpux9*)
  22200. - if test "$GCC" = yes; then
  22201. - 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'
  22202. - else
  22203. - 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'
  22204. - fi
  22205. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22206. - hardcode_libdir_separator=:
  22207. - hardcode_direct=yes
  22208. - # hardcode_minus_L: Not really in the search PATH,
  22209. - # but as the default location of the library.
  22210. - hardcode_minus_L=yes
  22211. - export_dynamic_flag_spec='${wl}-E'
  22212. - ;;
  22213. - hpux10*)
  22214. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22215. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22216. - else
  22217. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  22218. - fi
  22219. - if test "$with_gnu_ld" = no; then
  22220. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22221. - hardcode_libdir_separator=:
  22222. - hardcode_direct=yes
  22223. - export_dynamic_flag_spec='${wl}-E'
  22224. - # hardcode_minus_L: Not really in the search PATH,
  22225. - # but as the default location of the library.
  22226. - hardcode_minus_L=yes
  22227. - fi
  22228. - ;;
  22229. - hpux11*)
  22230. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  22231. - case $host_cpu in
  22232. - hppa*64*)
  22233. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22234. - ;;
  22235. - ia64*)
  22236. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22237. - ;;
  22238. - *)
  22239. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22240. - ;;
  22241. - esac
  22242. - else
  22243. - case $host_cpu in
  22244. - hppa*64*)
  22245. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22246. - ;;
  22247. - ia64*)
  22248. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  22249. - ;;
  22250. - *)
  22251. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  22252. - ;;
  22253. - esac
  22254. - fi
  22255. - if test "$with_gnu_ld" = no; then
  22256. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  22257. - hardcode_libdir_separator=:
  22258. - case $host_cpu in
  22259. - hppa*64*|ia64*)
  22260. - hardcode_libdir_flag_spec_ld='+b $libdir'
  22261. - hardcode_direct=no
  22262. - hardcode_shlibpath_var=no
  22263. - ;;
  22264. - *)
  22265. - hardcode_direct=yes
  22266. - export_dynamic_flag_spec='${wl}-E'
  22267. - # hardcode_minus_L: Not really in the search PATH,
  22268. - # but as the default location of the library.
  22269. - hardcode_minus_L=yes
  22270. - ;;
  22271. - esac
  22272. - fi
  22273. - ;;
  22274. - irix5* | irix6* | nonstopux*)
  22275. - if test "$GCC" = yes; then
  22276. - 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'
  22277. - else
  22278. - 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'
  22279. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  22280. - fi
  22281. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22282. - hardcode_libdir_separator=:
  22283. - link_all_deplibs=yes
  22284. - ;;
  22285. - netbsd*)
  22286. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22287. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22288. - else
  22289. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22290. - fi
  22291. - hardcode_libdir_flag_spec='-R$libdir'
  22292. - hardcode_direct=yes
  22293. - hardcode_shlibpath_var=no
  22294. - ;;
  22295. -
  22296. - newsos6)
  22297. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22298. - hardcode_direct=yes
  22299. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22300. - hardcode_libdir_separator=:
  22301. - hardcode_shlibpath_var=no
  22302. - ;;
  22303. - openbsd*)
  22304. - if test -f /usr/libexec/ld.so; then
  22305. - hardcode_direct=yes
  22306. - hardcode_shlibpath_var=no
  22307. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22308. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22309. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22310. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22311. - export_dynamic_flag_spec='${wl}-E'
  22312. - else
  22313. - case $host_os in
  22314. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22315. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22316. - hardcode_libdir_flag_spec='-R$libdir'
  22317. - ;;
  22318. - *)
  22319. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22320. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22321. - ;;
  22322. - esac
  22323. - fi
  22324. - else
  22325. - ld_shlibs=no
  22326. - fi
  22327. - ;;
  22328. - os2*)
  22329. - hardcode_libdir_flag_spec='-L$libdir'
  22330. - hardcode_minus_L=yes
  22331. - allow_undefined_flag=unsupported
  22332. - 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'
  22333. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  22334. - ;;
  22335. +case $host_os in
  22336. +aix3*)
  22337. + # AIX sometimes has problems with the GCC collect2 program. For some
  22338. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  22339. + # vanish in a puff of smoke.
  22340. + if test "X${COLLECT_NAMES+set}" != Xset; then
  22341. + COLLECT_NAMES=
  22342. + export COLLECT_NAMES
  22343. + fi
  22344. + ;;
  22345. +esac
  22346. - osf3*)
  22347. - if test "$GCC" = yes; then
  22348. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22349. - 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'
  22350. - else
  22351. - allow_undefined_flag=' -expect_unresolved \*'
  22352. - 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'
  22353. - fi
  22354. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22355. - hardcode_libdir_separator=:
  22356. - ;;
  22357. +# Sed substitution that helps us do robust quoting. It backslashifies
  22358. +# metacharacters that are still active within double-quoted strings.
  22359. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  22360. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  22361. - if test "$GCC" = yes; then
  22362. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22363. - 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'
  22364. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22365. - else
  22366. - allow_undefined_flag=' -expect_unresolved \*'
  22367. - 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'
  22368. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  22369. - $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'
  22370. +# Same as above, but do not quote variable references.
  22371. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  22372. - # Both c and cxx compiler support -rpath directly
  22373. - hardcode_libdir_flag_spec='-rpath $libdir'
  22374. - fi
  22375. - hardcode_libdir_separator=:
  22376. - ;;
  22377. +# Sed substitution to delay expansion of an escaped shell variable in a
  22378. +# double_quote_subst'ed string.
  22379. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22380. - solaris*)
  22381. - no_undefined_flag=' -z text'
  22382. - if test "$GCC" = yes; then
  22383. - wlarc='${wl}'
  22384. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22385. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22386. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  22387. - else
  22388. - wlarc=''
  22389. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22390. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  22391. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  22392. - fi
  22393. - hardcode_libdir_flag_spec='-R$libdir'
  22394. - hardcode_shlibpath_var=no
  22395. - case $host_os in
  22396. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  22397. - *)
  22398. - # The compiler driver will combine and reorder linker options,
  22399. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  22400. - # but is careful enough not to reorder.
  22401. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  22402. - if test "$GCC" = yes; then
  22403. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  22404. - else
  22405. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  22406. - fi
  22407. - ;;
  22408. - esac
  22409. - link_all_deplibs=yes
  22410. - ;;
  22411. +# Sed substitution to delay expansion of an escaped single quote.
  22412. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  22413. - sunos4*)
  22414. - if test "x$host_vendor" = xsequent; then
  22415. - # Use $CC to link under sequent, because it throws in some extra .o
  22416. - # files that make .init and .fini sections work.
  22417. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22418. - else
  22419. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  22420. - fi
  22421. - hardcode_libdir_flag_spec='-L$libdir'
  22422. - hardcode_direct=yes
  22423. - hardcode_minus_L=yes
  22424. - hardcode_shlibpath_var=no
  22425. - ;;
  22426. +# Sed substitution to avoid accidental globbing in evaled expressions
  22427. +no_glob_subst='s/\*/\\\*/g'
  22428. - sysv4)
  22429. - case $host_vendor in
  22430. - sni)
  22431. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22432. - hardcode_direct=yes # is this really true???
  22433. - ;;
  22434. - siemens)
  22435. - ## LD is ld it makes a PLAMLIB
  22436. - ## CC just makes a GrossModule.
  22437. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  22438. - reload_cmds='$CC -r -o $output$reload_objs'
  22439. - hardcode_direct=no
  22440. - ;;
  22441. - motorola)
  22442. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22443. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  22444. - ;;
  22445. - esac
  22446. - runpath_var='LD_RUN_PATH'
  22447. - hardcode_shlibpath_var=no
  22448. - ;;
  22449. +# Global variables:
  22450. +ofile=libtool
  22451. +can_build_shared=yes
  22452. - sysv4.3*)
  22453. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22454. - hardcode_shlibpath_var=no
  22455. - export_dynamic_flag_spec='-Bexport'
  22456. - ;;
  22457. +# All known linkers require a `.a' archive for static linking (except MSVC,
  22458. +# which needs '.lib').
  22459. +libext=a
  22460. - sysv4*MP*)
  22461. - if test -d /usr/nec; then
  22462. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22463. - hardcode_shlibpath_var=no
  22464. - runpath_var=LD_RUN_PATH
  22465. - hardcode_runpath_var=yes
  22466. - ld_shlibs=yes
  22467. - fi
  22468. - ;;
  22469. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  22470. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  22471. - no_undefined_flag='${wl}-z,text'
  22472. - archive_cmds_need_lc=no
  22473. - hardcode_shlibpath_var=no
  22474. - runpath_var='LD_RUN_PATH'
  22475. +old_CC="$CC"
  22476. +old_CFLAGS="$CFLAGS"
  22477. - if test "$GCC" = yes; then
  22478. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22479. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22480. - else
  22481. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22482. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22483. - fi
  22484. - ;;
  22485. +# Set sane defaults for various variables
  22486. +test -z "$CC" && CC=cc
  22487. +test -z "$LTCC" && LTCC=$CC
  22488. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  22489. +test -z "$LD" && LD=ld
  22490. +test -z "$ac_objext" && ac_objext=o
  22491. - sysv5* | sco3.2v5* | sco5v6*)
  22492. - # Note: We can NOT use -z defs as we might desire, because we do not
  22493. - # link with -lc, and that would cause any symbols used from libc to
  22494. - # always be unresolved, which means just about no library would
  22495. - # ever link correctly. If we're not using GNU ld we use -z text
  22496. - # though, which does catch some bad symbols but isn't as heavy-handed
  22497. - # as -z defs.
  22498. - no_undefined_flag='${wl}-z,text'
  22499. - allow_undefined_flag='${wl}-z,nodefs'
  22500. - archive_cmds_need_lc=no
  22501. - hardcode_shlibpath_var=no
  22502. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  22503. - hardcode_libdir_separator=':'
  22504. - link_all_deplibs=yes
  22505. - export_dynamic_flag_spec='${wl}-Bexport'
  22506. - runpath_var='LD_RUN_PATH'
  22507. +for cc_temp in $compiler""; do
  22508. + case $cc_temp in
  22509. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22510. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22511. + \-*) ;;
  22512. + *) break;;
  22513. + esac
  22514. +done
  22515. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22516. - if test "$GCC" = yes; then
  22517. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22518. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22519. - else
  22520. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22521. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22522. - fi
  22523. - ;;
  22524. - uts4*)
  22525. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22526. - hardcode_libdir_flag_spec='-L$libdir'
  22527. - hardcode_shlibpath_var=no
  22528. - ;;
  22529. +# Only perform the check for file, if the check method requires it
  22530. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  22531. +case $deplibs_check_method in
  22532. +file_magic*)
  22533. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  22534. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  22535. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  22536. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  22537. + $as_echo_n "(cached) " >&6
  22538. +else
  22539. + case $MAGIC_CMD in
  22540. +[\\/*] | ?:[\\/]*)
  22541. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  22542. + ;;
  22543. +*)
  22544. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  22545. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22546. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  22547. + for ac_dir in $ac_dummy; do
  22548. + IFS="$lt_save_ifs"
  22549. + test -z "$ac_dir" && ac_dir=.
  22550. + if test -f $ac_dir/${ac_tool_prefix}file; then
  22551. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  22552. + if test -n "$file_magic_test_file"; then
  22553. + case $deplibs_check_method in
  22554. + "file_magic "*)
  22555. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  22556. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22557. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  22558. + $EGREP "$file_magic_regex" > /dev/null; then
  22559. + :
  22560. + else
  22561. + cat <<_LT_EOF 1>&2
  22562. - *)
  22563. - ld_shlibs=no
  22564. - ;;
  22565. - esac
  22566. - fi
  22567. +*** Warning: the command libtool uses to detect shared libraries,
  22568. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  22569. +*** The result is that libtool may fail to recognize shared libraries
  22570. +*** as such. This will affect the creation of libtool libraries that
  22571. +*** depend on shared libraries, but programs linked with such libtool
  22572. +*** libraries will work regardless of this problem. Nevertheless, you
  22573. +*** may want to report the problem to your system manager and/or to
  22574. +*** bug-libtool@gnu.org
  22575. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  22576. -$as_echo "$ld_shlibs" >&6; }
  22577. -test "$ld_shlibs" = no && can_build_shared=no
  22578. -
  22579. -#
  22580. -# Do we need to explicitly link libc?
  22581. -#
  22582. -case "x$archive_cmds_need_lc" in
  22583. -x|xyes)
  22584. - # Assume -lc should be added
  22585. - archive_cmds_need_lc=yes
  22586. -
  22587. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  22588. - case $archive_cmds in
  22589. - *'~'*)
  22590. - # FIXME: we may have to deal with multi-command sequences.
  22591. - ;;
  22592. - '$CC '*)
  22593. - # Test whether the compiler implicitly links with -lc since on some
  22594. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  22595. - # to ld, don't add -lc before -lgcc.
  22596. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  22597. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  22598. - $rm conftest*
  22599. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22600. -
  22601. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22602. - (eval $ac_compile) 2>&5
  22603. - ac_status=$?
  22604. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22605. - (exit $ac_status); } 2>conftest.err; then
  22606. - soname=conftest
  22607. - lib=conftest
  22608. - libobjs=conftest.$ac_objext
  22609. - deplibs=
  22610. - wl=$lt_prog_compiler_wl
  22611. - pic_flag=$lt_prog_compiler_pic
  22612. - compiler_flags=-v
  22613. - linker_flags=-v
  22614. - verstring=
  22615. - output_objdir=.
  22616. - libname=conftest
  22617. - lt_save_allow_undefined_flag=$allow_undefined_flag
  22618. - allow_undefined_flag=
  22619. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  22620. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  22621. - ac_status=$?
  22622. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22623. - (exit $ac_status); }
  22624. - then
  22625. - archive_cmds_need_lc=no
  22626. - else
  22627. - archive_cmds_need_lc=yes
  22628. - fi
  22629. - allow_undefined_flag=$lt_save_allow_undefined_flag
  22630. - else
  22631. - cat conftest.err 1>&5
  22632. +_LT_EOF
  22633. + fi ;;
  22634. + esac
  22635. fi
  22636. - $rm conftest*
  22637. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  22638. -$as_echo "$archive_cmds_need_lc" >&6; }
  22639. - ;;
  22640. - esac
  22641. - fi
  22642. + break
  22643. + fi
  22644. + done
  22645. + IFS="$lt_save_ifs"
  22646. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  22647. ;;
  22648. esac
  22649. +fi
  22650. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  22651. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  22652. -library_names_spec=
  22653. -libname_spec='lib$name'
  22654. -soname_spec=
  22655. -shrext_cmds=".so"
  22656. -postinstall_cmds=
  22657. -postuninstall_cmds=
  22658. -finish_cmds=
  22659. -finish_eval=
  22660. -shlibpath_var=
  22661. -shlibpath_overrides_runpath=unknown
  22662. -version_type=none
  22663. -dynamic_linker="$host_os ld.so"
  22664. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  22665. -
  22666. -if test "$GCC" = yes; then
  22667. - case $host_os in
  22668. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  22669. - *) lt_awk_arg="/^libraries:/" ;;
  22670. - esac
  22671. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  22672. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  22673. - # if the path contains ";" then we assume it to be the separator
  22674. - # otherwise default to the standard path separator (i.e. ":") - it is
  22675. - # assumed that no part of a normal pathname contains ";" but that should
  22676. - # okay in the real world where ";" in dirpaths is itself problematic.
  22677. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  22678. - else
  22679. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  22680. - fi
  22681. - # Ok, now we have the path, separated by spaces, we can step through it
  22682. - # and add multilib dir if necessary.
  22683. - lt_tmp_lt_search_path_spec=
  22684. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  22685. - for lt_sys_path in $lt_search_path_spec; do
  22686. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  22687. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  22688. - else
  22689. - test -d "$lt_sys_path" && \
  22690. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  22691. - fi
  22692. - done
  22693. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  22694. -BEGIN {RS=" "; FS="/|\n";} {
  22695. - lt_foo="";
  22696. - lt_count=0;
  22697. - for (lt_i = NF; lt_i > 0; lt_i--) {
  22698. - if ($lt_i != "" && $lt_i != ".") {
  22699. - if ($lt_i == "..") {
  22700. - lt_count++;
  22701. - } else {
  22702. - if (lt_count == 0) {
  22703. - lt_foo="/" $lt_i lt_foo;
  22704. - } else {
  22705. - lt_count--;
  22706. - }
  22707. - }
  22708. - }
  22709. - }
  22710. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  22711. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  22712. -}'`
  22713. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  22714. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22715. +if test -n "$MAGIC_CMD"; then
  22716. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  22717. +$as_echo "$MAGIC_CMD" >&6; }
  22718. else
  22719. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  22720. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22721. +$as_echo "no" >&6; }
  22722. fi
  22723. -need_lib_prefix=unknown
  22724. -hardcode_into_libs=no
  22725. -# when you set need_version to no, make sure it does not cause -set_version
  22726. -# flags to be left without arguments
  22727. -need_version=unknown
  22728. -case $host_os in
  22729. -aix3*)
  22730. - version_type=linux
  22731. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  22732. - shlibpath_var=LIBPATH
  22733. - # AIX 3 has no versioning support, so we append a major version to the name.
  22734. - soname_spec='${libname}${release}${shared_ext}$major'
  22735. +
  22736. +
  22737. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  22738. + if test -n "$ac_tool_prefix"; then
  22739. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  22740. +$as_echo_n "checking for file... " >&6; }
  22741. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  22742. + $as_echo_n "(cached) " >&6
  22743. +else
  22744. + case $MAGIC_CMD in
  22745. +[\\/*] | ?:[\\/]*)
  22746. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  22747. ;;
  22748. +*)
  22749. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  22750. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22751. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  22752. + for ac_dir in $ac_dummy; do
  22753. + IFS="$lt_save_ifs"
  22754. + test -z "$ac_dir" && ac_dir=.
  22755. + if test -f $ac_dir/file; then
  22756. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  22757. + if test -n "$file_magic_test_file"; then
  22758. + case $deplibs_check_method in
  22759. + "file_magic "*)
  22760. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  22761. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22762. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  22763. + $EGREP "$file_magic_regex" > /dev/null; then
  22764. + :
  22765. + else
  22766. + cat <<_LT_EOF 1>&2
  22767. -aix[4-9]*)
  22768. - version_type=linux
  22769. - need_lib_prefix=no
  22770. - need_version=no
  22771. - hardcode_into_libs=yes
  22772. - if test "$host_cpu" = ia64; then
  22773. - # AIX 5 supports IA64
  22774. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  22775. - shlibpath_var=LD_LIBRARY_PATH
  22776. - else
  22777. - # With GCC up to 2.95.x, collect2 would create an import file
  22778. - # for dependence libraries. The import file would start with
  22779. - # the line `#! .'. This would cause the generated library to
  22780. - # depend on `.', always an invalid library. This was fixed in
  22781. - # development snapshots of GCC prior to 3.0.
  22782. - case $host_os in
  22783. - aix4 | aix4.[01] | aix4.[01].*)
  22784. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  22785. - echo ' yes '
  22786. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  22787. - :
  22788. - else
  22789. - can_build_shared=no
  22790. +*** Warning: the command libtool uses to detect shared libraries,
  22791. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  22792. +*** The result is that libtool may fail to recognize shared libraries
  22793. +*** as such. This will affect the creation of libtool libraries that
  22794. +*** depend on shared libraries, but programs linked with such libtool
  22795. +*** libraries will work regardless of this problem. Nevertheless, you
  22796. +*** may want to report the problem to your system manager and/or to
  22797. +*** bug-libtool@gnu.org
  22798. +
  22799. +_LT_EOF
  22800. + fi ;;
  22801. + esac
  22802. fi
  22803. - ;;
  22804. - esac
  22805. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  22806. - # soname into executable. Probably we can add versioning support to
  22807. - # collect2, so additional links can be useful in future.
  22808. - if test "$aix_use_runtimelinking" = yes; then
  22809. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  22810. - # instead of lib<name>.a to let people know that these are not
  22811. - # typical AIX shared libraries.
  22812. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22813. - else
  22814. - # We preserve .a as extension for shared libraries through AIX4.2
  22815. - # and later when we are not doing run time linking.
  22816. - library_names_spec='${libname}${release}.a $libname.a'
  22817. - soname_spec='${libname}${release}${shared_ext}$major'
  22818. + break
  22819. fi
  22820. - shlibpath_var=LIBPATH
  22821. - fi
  22822. + done
  22823. + IFS="$lt_save_ifs"
  22824. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  22825. ;;
  22826. +esac
  22827. +fi
  22828. -amigaos*)
  22829. - library_names_spec='$libname.ixlibrary $libname.a'
  22830. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  22831. - 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'
  22832. - ;;
  22833. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  22834. +if test -n "$MAGIC_CMD"; then
  22835. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  22836. +$as_echo "$MAGIC_CMD" >&6; }
  22837. +else
  22838. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22839. +$as_echo "no" >&6; }
  22840. +fi
  22841. -beos*)
  22842. - library_names_spec='${libname}${shared_ext}'
  22843. - dynamic_linker="$host_os ld.so"
  22844. - shlibpath_var=LIBRARY_PATH
  22845. - ;;
  22846. -bsdi[45]*)
  22847. - version_type=linux
  22848. - need_version=no
  22849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  22850. - soname_spec='${libname}${release}${shared_ext}$major'
  22851. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  22852. - shlibpath_var=LD_LIBRARY_PATH
  22853. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  22854. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  22855. - # the default ld.so.conf also contains /usr/contrib/lib and
  22856. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  22857. - # libtool to hard-code these into programs
  22858. + else
  22859. + MAGIC_CMD=:
  22860. + fi
  22861. +fi
  22862. +
  22863. + fi
  22864. ;;
  22865. +esac
  22866. -cygwin* | mingw* | pw32*)
  22867. - version_type=windows
  22868. - shrext_cmds=".dll"
  22869. - need_version=no
  22870. - need_lib_prefix=no
  22871. +# Use C for the default configuration in the libtool script
  22872. - case $GCC,$host_os in
  22873. - yes,cygwin* | yes,mingw* | yes,pw32*)
  22874. - library_names_spec='$libname.dll.a'
  22875. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  22876. - postinstall_cmds='base_file=`basename \${file}`~
  22877. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  22878. - dldir=$destdir/`dirname \$dlpath`~
  22879. - test -d \$dldir || mkdir -p \$dldir~
  22880. - $install_prog $dir/$dlname \$dldir/$dlname~
  22881. - chmod a+x \$dldir/$dlname'
  22882. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  22883. - dlpath=$dir/\$dldll~
  22884. - $rm \$dlpath'
  22885. - shlibpath_overrides_runpath=yes
  22886. +lt_save_CC="$CC"
  22887. +ac_ext=c
  22888. +ac_cpp='$CPP $CPPFLAGS'
  22889. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22890. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22891. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22892. - case $host_os in
  22893. - cygwin*)
  22894. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  22895. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22896. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  22897. - ;;
  22898. - mingw*)
  22899. - # MinGW DLLs use traditional 'lib' prefix
  22900. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22901. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  22902. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  22903. - # It is most probably a Windows format PATH printed by
  22904. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  22905. - # path with ; separators, and with drive letters. We can handle the
  22906. - # drive letters (cygwin fileutils understands them), so leave them,
  22907. - # especially as we might pass files found there to a mingw objdump,
  22908. - # which wouldn't understand a cygwinified path. Ahh.
  22909. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  22910. - else
  22911. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  22912. - fi
  22913. - ;;
  22914. - pw32*)
  22915. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  22916. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  22917. - ;;
  22918. - esac
  22919. - ;;
  22920. - *)
  22921. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  22922. - ;;
  22923. - esac
  22924. - dynamic_linker='Win32 ld.exe'
  22925. - # FIXME: first we should search . and the directory the executable is in
  22926. - shlibpath_var=PATH
  22927. - ;;
  22928. +# Source file extension for C test sources.
  22929. +ac_ext=c
  22930. -darwin* | rhapsody*)
  22931. - dynamic_linker="$host_os dyld"
  22932. - version_type=darwin
  22933. - need_lib_prefix=no
  22934. - need_version=no
  22935. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  22936. - soname_spec='${libname}${release}${major}$shared_ext'
  22937. - shlibpath_overrides_runpath=yes
  22938. - shlibpath_var=DYLD_LIBRARY_PATH
  22939. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  22940. +# Object file extension for compiled C test sources.
  22941. +objext=o
  22942. +objext=$objext
  22943. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  22944. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  22945. - ;;
  22946. +# Code to be used in simple compile tests
  22947. +lt_simple_compile_test_code="int some_variable = 0;"
  22948. -dgux*)
  22949. - version_type=linux
  22950. - need_lib_prefix=no
  22951. - need_version=no
  22952. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  22953. - soname_spec='${libname}${release}${shared_ext}$major'
  22954. - shlibpath_var=LD_LIBRARY_PATH
  22955. - ;;
  22956. +# Code to be used in simple link tests
  22957. +lt_simple_link_test_code='int main(){return(0);}'
  22958. -freebsd1*)
  22959. - dynamic_linker=no
  22960. - ;;
  22961. -freebsd* | dragonfly*)
  22962. - # DragonFly does not have aout. When/if they implement a new
  22963. - # versioning mechanism, adjust this.
  22964. - if test -x /usr/bin/objformat; then
  22965. - objformat=`/usr/bin/objformat`
  22966. - else
  22967. - case $host_os in
  22968. - freebsd[123]*) objformat=aout ;;
  22969. - *) objformat=elf ;;
  22970. - esac
  22971. - fi
  22972. - version_type=freebsd-$objformat
  22973. - case $version_type in
  22974. - freebsd-elf*)
  22975. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  22976. - need_version=no
  22977. - need_lib_prefix=no
  22978. - ;;
  22979. - freebsd-*)
  22980. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  22981. - need_version=yes
  22982. - ;;
  22983. - esac
  22984. - shlibpath_var=LD_LIBRARY_PATH
  22985. - case $host_os in
  22986. - freebsd2*)
  22987. - shlibpath_overrides_runpath=yes
  22988. - ;;
  22989. - freebsd3.[01]* | freebsdelf3.[01]*)
  22990. - shlibpath_overrides_runpath=yes
  22991. - hardcode_into_libs=yes
  22992. - ;;
  22993. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  22994. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  22995. - shlibpath_overrides_runpath=no
  22996. - hardcode_into_libs=yes
  22997. - ;;
  22998. - *) # from 4.6 on, and DragonFly
  22999. - shlibpath_overrides_runpath=yes
  23000. - hardcode_into_libs=yes
  23001. - ;;
  23002. - esac
  23003. - ;;
  23004. -gnu*)
  23005. - version_type=linux
  23006. - need_lib_prefix=no
  23007. - need_version=no
  23008. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  23009. - soname_spec='${libname}${release}${shared_ext}$major'
  23010. - shlibpath_var=LD_LIBRARY_PATH
  23011. - hardcode_into_libs=yes
  23012. - ;;
  23013. -hpux9* | hpux10* | hpux11*)
  23014. - # Give a soname corresponding to the major version so that dld.sl refuses to
  23015. - # link against other versions.
  23016. - version_type=sunos
  23017. - need_lib_prefix=no
  23018. - need_version=no
  23019. - case $host_cpu in
  23020. - ia64*)
  23021. - shrext_cmds='.so'
  23022. - hardcode_into_libs=yes
  23023. - dynamic_linker="$host_os dld.so"
  23024. - shlibpath_var=LD_LIBRARY_PATH
  23025. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23026. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23027. - soname_spec='${libname}${release}${shared_ext}$major'
  23028. - if test "X$HPUX_IA64_MODE" = X32; then
  23029. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  23030. - else
  23031. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  23032. - fi
  23033. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23034. - ;;
  23035. - hppa*64*)
  23036. - shrext_cmds='.sl'
  23037. - hardcode_into_libs=yes
  23038. - dynamic_linker="$host_os dld.sl"
  23039. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  23040. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  23041. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23042. - soname_spec='${libname}${release}${shared_ext}$major'
  23043. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  23044. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  23045. - ;;
  23046. - *)
  23047. - shrext_cmds='.sl'
  23048. - dynamic_linker="$host_os dld.sl"
  23049. - shlibpath_var=SHLIB_PATH
  23050. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  23051. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23052. - soname_spec='${libname}${release}${shared_ext}$major'
  23053. - ;;
  23054. - esac
  23055. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  23056. - postinstall_cmds='chmod 555 $lib'
  23057. - ;;
  23058. -interix[3-9]*)
  23059. - version_type=linux
  23060. - need_lib_prefix=no
  23061. - need_version=no
  23062. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23063. - soname_spec='${libname}${release}${shared_ext}$major'
  23064. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  23065. - shlibpath_var=LD_LIBRARY_PATH
  23066. - shlibpath_overrides_runpath=no
  23067. - hardcode_into_libs=yes
  23068. - ;;
  23069. -irix5* | irix6* | nonstopux*)
  23070. - case $host_os in
  23071. - nonstopux*) version_type=nonstopux ;;
  23072. - *)
  23073. - if test "$lt_cv_prog_gnu_ld" = yes; then
  23074. - version_type=linux
  23075. - else
  23076. - version_type=irix
  23077. - fi ;;
  23078. - esac
  23079. - need_lib_prefix=no
  23080. - need_version=no
  23081. - soname_spec='${libname}${release}${shared_ext}$major'
  23082. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  23083. - case $host_os in
  23084. - irix5* | nonstopux*)
  23085. - libsuff= shlibsuff=
  23086. - ;;
  23087. - *)
  23088. - case $LD in # libtool.m4 will add one of these switches to LD
  23089. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  23090. - libsuff= shlibsuff= libmagic=32-bit;;
  23091. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  23092. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  23093. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  23094. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  23095. - *) libsuff= shlibsuff= libmagic=never-match;;
  23096. - esac
  23097. - ;;
  23098. - esac
  23099. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  23100. - shlibpath_overrides_runpath=no
  23101. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23102. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23103. - hardcode_into_libs=yes
  23104. - ;;
  23105. -# No shared lib support for Linux oldld, aout, or coff.
  23106. -linux*oldld* | linux*aout* | linux*coff*)
  23107. - dynamic_linker=no
  23108. - ;;
  23109. +# If no C compiler was specified, use CC.
  23110. +LTCC=${LTCC-"$CC"}
  23111. -# This must be Linux ELF.
  23112. -linux* | k*bsd*-gnu)
  23113. - version_type=linux
  23114. - need_lib_prefix=no
  23115. - need_version=no
  23116. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23117. - soname_spec='${libname}${release}${shared_ext}$major'
  23118. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  23119. - shlibpath_var=LD_LIBRARY_PATH
  23120. - shlibpath_overrides_runpath=no
  23121. - # This implies no fast_install, which is unacceptable.
  23122. - # Some rework will be needed to allow for fast_install
  23123. - # before this can be enabled.
  23124. - hardcode_into_libs=yes
  23125. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  23126. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  23127. +# If no C compiler flags were specified, use CFLAGS.
  23128. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23129. - # Append ld.so.conf contents to the search path
  23130. - if test -f /etc/ld.so.conf; then
  23131. - 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' ' '`
  23132. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  23133. - fi
  23134. +# Allow CC to be a program name with arguments.
  23135. +compiler=$CC
  23136. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  23137. - # powerpc, because MkLinux only supported shared libraries with the
  23138. - # GNU dynamic linker. Since this was broken with cross compilers,
  23139. - # most powerpc-linux boxes support dynamic linking these days and
  23140. - # people can always --disable-shared, the test was removed, and we
  23141. - # assume the GNU/Linux dynamic linker is in use.
  23142. - dynamic_linker='GNU/Linux ld.so'
  23143. - ;;
  23144. +# Save the default compiler, since it gets overwritten when the other
  23145. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  23146. +compiler_DEFAULT=$CC
  23147. -netbsd*)
  23148. - version_type=sunos
  23149. - need_lib_prefix=no
  23150. - need_version=no
  23151. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23152. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23153. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23154. - dynamic_linker='NetBSD (a.out) ld.so'
  23155. - else
  23156. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  23157. - soname_spec='${libname}${release}${shared_ext}$major'
  23158. - dynamic_linker='NetBSD ld.elf_so'
  23159. - fi
  23160. - shlibpath_var=LD_LIBRARY_PATH
  23161. - shlibpath_overrides_runpath=yes
  23162. - hardcode_into_libs=yes
  23163. - ;;
  23164. -
  23165. -newsos6)
  23166. - version_type=linux
  23167. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23168. - shlibpath_var=LD_LIBRARY_PATH
  23169. - shlibpath_overrides_runpath=yes
  23170. - ;;
  23171. -
  23172. -nto-qnx*)
  23173. - version_type=linux
  23174. - need_lib_prefix=no
  23175. - need_version=no
  23176. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23177. - soname_spec='${libname}${release}${shared_ext}$major'
  23178. - shlibpath_var=LD_LIBRARY_PATH
  23179. - shlibpath_overrides_runpath=yes
  23180. - ;;
  23181. -
  23182. -openbsd*)
  23183. - version_type=sunos
  23184. - sys_lib_dlsearch_path_spec="/usr/lib"
  23185. - need_lib_prefix=no
  23186. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  23187. - case $host_os in
  23188. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  23189. - *) need_version=no ;;
  23190. - esac
  23191. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23192. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  23193. - shlibpath_var=LD_LIBRARY_PATH
  23194. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23195. - case $host_os in
  23196. - openbsd2.[89] | openbsd2.[89].*)
  23197. - shlibpath_overrides_runpath=no
  23198. - ;;
  23199. - *)
  23200. - shlibpath_overrides_runpath=yes
  23201. - ;;
  23202. - esac
  23203. - else
  23204. - shlibpath_overrides_runpath=yes
  23205. - fi
  23206. - ;;
  23207. -
  23208. -os2*)
  23209. - libname_spec='$name'
  23210. - shrext_cmds=".dll"
  23211. - need_lib_prefix=no
  23212. - library_names_spec='$libname${shared_ext} $libname.a'
  23213. - dynamic_linker='OS/2 ld.exe'
  23214. - shlibpath_var=LIBPATH
  23215. - ;;
  23216. -
  23217. -osf3* | osf4* | osf5*)
  23218. - version_type=osf
  23219. - need_lib_prefix=no
  23220. - need_version=no
  23221. - soname_spec='${libname}${release}${shared_ext}$major'
  23222. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23223. - shlibpath_var=LD_LIBRARY_PATH
  23224. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  23225. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  23226. - ;;
  23227. -
  23228. -rdos*)
  23229. - dynamic_linker=no
  23230. - ;;
  23231. -
  23232. -solaris*)
  23233. - version_type=linux
  23234. - need_lib_prefix=no
  23235. - need_version=no
  23236. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23237. - soname_spec='${libname}${release}${shared_ext}$major'
  23238. - shlibpath_var=LD_LIBRARY_PATH
  23239. - shlibpath_overrides_runpath=yes
  23240. - hardcode_into_libs=yes
  23241. - # ldd complains unless libraries are executable
  23242. - postinstall_cmds='chmod +x $lib'
  23243. - ;;
  23244. -
  23245. -sunos4*)
  23246. - version_type=sunos
  23247. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  23248. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  23249. - shlibpath_var=LD_LIBRARY_PATH
  23250. - shlibpath_overrides_runpath=yes
  23251. - if test "$with_gnu_ld" = yes; then
  23252. - need_lib_prefix=no
  23253. - fi
  23254. - need_version=yes
  23255. - ;;
  23256. +# save warnings/boilerplate of simple test code
  23257. +ac_outfile=conftest.$ac_objext
  23258. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  23259. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23260. +_lt_compiler_boilerplate=`cat conftest.err`
  23261. +$RM conftest*
  23262. -sysv4 | sysv4.3*)
  23263. - version_type=linux
  23264. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23265. - soname_spec='${libname}${release}${shared_ext}$major'
  23266. - shlibpath_var=LD_LIBRARY_PATH
  23267. - case $host_vendor in
  23268. - sni)
  23269. - shlibpath_overrides_runpath=no
  23270. - need_lib_prefix=no
  23271. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  23272. - runpath_var=LD_RUN_PATH
  23273. - ;;
  23274. - siemens)
  23275. - need_lib_prefix=no
  23276. - ;;
  23277. - motorola)
  23278. - need_lib_prefix=no
  23279. - need_version=no
  23280. - shlibpath_overrides_runpath=no
  23281. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  23282. - ;;
  23283. - esac
  23284. - ;;
  23285. +ac_outfile=conftest.$ac_objext
  23286. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  23287. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23288. +_lt_linker_boilerplate=`cat conftest.err`
  23289. +$RM -r conftest*
  23290. -sysv4*MP*)
  23291. - if test -d /usr/nec ;then
  23292. - version_type=linux
  23293. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  23294. - soname_spec='$libname${shared_ext}.$major'
  23295. - shlibpath_var=LD_LIBRARY_PATH
  23296. - fi
  23297. - ;;
  23298. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  23299. - version_type=freebsd-elf
  23300. - need_lib_prefix=no
  23301. - need_version=no
  23302. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  23303. - soname_spec='${libname}${release}${shared_ext}$major'
  23304. - shlibpath_var=LD_LIBRARY_PATH
  23305. - hardcode_into_libs=yes
  23306. - if test "$with_gnu_ld" = yes; then
  23307. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  23308. - shlibpath_overrides_runpath=no
  23309. - else
  23310. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  23311. - shlibpath_overrides_runpath=yes
  23312. - case $host_os in
  23313. - sco3.2v5*)
  23314. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  23315. - ;;
  23316. - esac
  23317. - fi
  23318. - sys_lib_dlsearch_path_spec='/usr/lib'
  23319. - ;;
  23320. +if test -n "$compiler"; then
  23321. -uts4*)
  23322. - version_type=linux
  23323. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  23324. - soname_spec='${libname}${release}${shared_ext}$major'
  23325. - shlibpath_var=LD_LIBRARY_PATH
  23326. - ;;
  23327. +lt_prog_compiler_no_builtin_flag=
  23328. -*)
  23329. - dynamic_linker=no
  23330. - ;;
  23331. -esac
  23332. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  23333. -$as_echo "$dynamic_linker" >&6; }
  23334. -test "$dynamic_linker" = no && can_build_shared=no
  23335. +if test "$GCC" = yes; then
  23336. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  23337. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  23338. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23339. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  23340. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  23341. $as_echo_n "(cached) " >&6
  23342. else
  23343. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  23344. + lt_cv_prog_compiler_rtti_exceptions=no
  23345. + ac_outfile=conftest.$ac_objext
  23346. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23347. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  23348. + # Insert the option either (1) after the last *FLAGS variable, or
  23349. + # (2) before a word containing "conftest.", or (3) at the end.
  23350. + # Note that $ac_compile itself does not contain backslashes and begins
  23351. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23352. + # The option is referenced via a variable to avoid confusing sed.
  23353. + lt_compile=`echo "$ac_compile" | $SED \
  23354. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23355. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23356. + -e 's:$: $lt_compiler_flag:'`
  23357. + (eval echo "\"\$as_me:7383: $lt_compile\"" >&5)
  23358. + (eval "$lt_compile" 2>conftest.err)
  23359. + ac_status=$?
  23360. + cat conftest.err >&5
  23361. + echo "$as_me:7387: \$? = $ac_status" >&5
  23362. + if (exit $ac_status) && test -s "$ac_outfile"; then
  23363. + # The compiler can only warn and ignore the option if not recognized
  23364. + # So say no if there are warnings other than the usual output.
  23365. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23366. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23367. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23368. + lt_cv_prog_compiler_rtti_exceptions=yes
  23369. + fi
  23370. + fi
  23371. + $RM conftest*
  23372. +
  23373. fi
  23374. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23375. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  23376. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  23377. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  23378. - $as_echo_n "(cached) " >&6
  23379. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23380. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  23381. else
  23382. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  23383. + :
  23384. fi
  23385. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  23386. -
  23387. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  23388. -if test "$GCC" = yes; then
  23389. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  23390. fi
  23391. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  23392. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  23393. -hardcode_action=
  23394. -if test -n "$hardcode_libdir_flag_spec" || \
  23395. - test -n "$runpath_var" || \
  23396. - test "X$hardcode_automatic" = "Xyes" ; then
  23397. - # We can hardcode non-existant directories.
  23398. - if test "$hardcode_direct" != no &&
  23399. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  23400. - # have to relink, otherwise we might link with an installed library
  23401. - # when we should be linking with a yet-to-be-installed one
  23402. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  23403. - test "$hardcode_minus_L" != no; then
  23404. - # Linking always hardcodes the temporary library directory.
  23405. - hardcode_action=relink
  23406. - else
  23407. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  23408. - hardcode_action=immediate
  23409. - fi
  23410. -else
  23411. - # We cannot hardcode anything, or else we can only hardcode existing
  23412. - # directories.
  23413. - hardcode_action=unsupported
  23414. -fi
  23415. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  23416. -$as_echo "$hardcode_action" >&6; }
  23417. -if test "$hardcode_action" = relink; then
  23418. - # Fast installation is not supported
  23419. - enable_fast_install=no
  23420. -elif test "$shlibpath_overrides_runpath" = yes ||
  23421. - test "$enable_shared" = no; then
  23422. - # Fast installation is not necessary
  23423. - enable_fast_install=needless
  23424. -fi
  23425. -striplib=
  23426. -old_striplib=
  23427. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  23428. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  23429. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  23430. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  23431. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  23432. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  23433. -$as_echo "yes" >&6; }
  23434. -else
  23435. -# FIXME - insert some real tests, host_os isn't really good enough
  23436. - case $host_os in
  23437. - darwin*)
  23438. - if test -n "$STRIP" ; then
  23439. - striplib="$STRIP -x"
  23440. - old_striplib="$STRIP -S"
  23441. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  23442. -$as_echo "yes" >&6; }
  23443. - else
  23444. - { $as_echo "$as_me:$LINENO: result: no" >&5
  23445. -$as_echo "no" >&6; }
  23446. -fi
  23447. - ;;
  23448. - *)
  23449. - { $as_echo "$as_me:$LINENO: result: no" >&5
  23450. -$as_echo "no" >&6; }
  23451. - ;;
  23452. - esac
  23453. -fi
  23454. -if test "x$enable_dlopen" != xyes; then
  23455. - enable_dlopen=unknown
  23456. - enable_dlopen_self=unknown
  23457. - enable_dlopen_self_static=unknown
  23458. -else
  23459. - lt_cv_dlopen=no
  23460. - lt_cv_dlopen_libs=
  23461. - case $host_os in
  23462. - beos*)
  23463. - lt_cv_dlopen="load_add_on"
  23464. - lt_cv_dlopen_libs=
  23465. - lt_cv_dlopen_self=yes
  23466. - ;;
  23467. -
  23468. - mingw* | pw32*)
  23469. - lt_cv_dlopen="LoadLibrary"
  23470. - lt_cv_dlopen_libs=
  23471. - ;;
  23472. -
  23473. - cygwin*)
  23474. - lt_cv_dlopen="dlopen"
  23475. - lt_cv_dlopen_libs=
  23476. - ;;
  23477. -
  23478. - darwin*)
  23479. - # if libdl is installed we need to link against it
  23480. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  23481. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  23482. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  23483. - $as_echo_n "(cached) " >&6
  23484. -else
  23485. - ac_check_lib_save_LIBS=$LIBS
  23486. -LIBS="-ldl $LIBS"
  23487. -cat >conftest.$ac_ext <<_ACEOF
  23488. -/* confdefs.h. */
  23489. -_ACEOF
  23490. -cat confdefs.h >>conftest.$ac_ext
  23491. -cat >>conftest.$ac_ext <<_ACEOF
  23492. -/* end confdefs.h. */
  23493. + lt_prog_compiler_wl=
  23494. +lt_prog_compiler_pic=
  23495. +lt_prog_compiler_static=
  23496. -/* Override any GCC internal prototype to avoid an error.
  23497. - Use char because int might match the return type of a GCC
  23498. - builtin and then its argument prototype would still apply. */
  23499. -#ifdef __cplusplus
  23500. -extern "C"
  23501. -#endif
  23502. -char dlopen ();
  23503. -int
  23504. -main ()
  23505. -{
  23506. -return dlopen ();
  23507. - ;
  23508. - return 0;
  23509. -}
  23510. -_ACEOF
  23511. -rm -f conftest.$ac_objext conftest$ac_exeext
  23512. -if { (ac_try="$ac_link"
  23513. -case "(($ac_try" in
  23514. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23515. - *) ac_try_echo=$ac_try;;
  23516. -esac
  23517. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23518. -$as_echo "$ac_try_echo") >&5
  23519. - (eval "$ac_link") 2>conftest.er1
  23520. - ac_status=$?
  23521. - grep -v '^ *+' conftest.er1 >conftest.err
  23522. - rm -f conftest.er1
  23523. - cat conftest.err >&5
  23524. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23525. - (exit $ac_status); } && {
  23526. - test -z "$ac_c_werror_flag" ||
  23527. - test ! -s conftest.err
  23528. - } && test -s conftest$ac_exeext && {
  23529. - test "$cross_compiling" = yes ||
  23530. - $as_test_x conftest$ac_exeext
  23531. - }; then
  23532. - ac_cv_lib_dl_dlopen=yes
  23533. -else
  23534. - $as_echo "$as_me: failed program was:" >&5
  23535. -sed 's/^/| /' conftest.$ac_ext >&5
  23536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  23537. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  23538. - ac_cv_lib_dl_dlopen=no
  23539. -fi
  23540. + if test "$GCC" = yes; then
  23541. + lt_prog_compiler_wl='-Wl,'
  23542. + lt_prog_compiler_static='-static'
  23543. -rm -rf conftest.dSYM
  23544. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23545. - conftest$ac_exeext conftest.$ac_ext
  23546. -LIBS=$ac_check_lib_save_LIBS
  23547. -fi
  23548. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  23549. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  23550. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  23551. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  23552. -else
  23553. + case $host_os in
  23554. + aix*)
  23555. + # All AIX code is PIC.
  23556. + if test "$host_cpu" = ia64; then
  23557. + # AIX 5 now supports IA64 processor
  23558. + lt_prog_compiler_static='-Bstatic'
  23559. + fi
  23560. + ;;
  23561. - lt_cv_dlopen="dyld"
  23562. - lt_cv_dlopen_libs=
  23563. - lt_cv_dlopen_self=yes
  23564. + amigaos*)
  23565. + case $host_cpu in
  23566. + powerpc)
  23567. + # see comment about AmigaOS4 .so support
  23568. + lt_prog_compiler_pic='-fPIC'
  23569. + ;;
  23570. + m68k)
  23571. + # FIXME: we need at least 68020 code to build shared libraries, but
  23572. + # adding the `-m68020' flag to GCC prevents building anything better,
  23573. + # like `-m68040'.
  23574. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  23575. + ;;
  23576. + esac
  23577. + ;;
  23578. -fi
  23579. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23580. + # PIC is the default for these OSes.
  23581. + ;;
  23582. - ;;
  23583. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  23584. + # This hack is so that the source file can tell whether it is being
  23585. + # built for inclusion in a dll (and should export symbols for example).
  23586. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  23587. + # (--disable-auto-import) libraries
  23588. + lt_prog_compiler_pic='-DDLL_EXPORT'
  23589. + ;;
  23590. - *)
  23591. - { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  23592. -$as_echo_n "checking for shl_load... " >&6; }
  23593. -if test "${ac_cv_func_shl_load+set}" = set; then
  23594. - $as_echo_n "(cached) " >&6
  23595. -else
  23596. - cat >conftest.$ac_ext <<_ACEOF
  23597. -/* confdefs.h. */
  23598. -_ACEOF
  23599. -cat confdefs.h >>conftest.$ac_ext
  23600. -cat >>conftest.$ac_ext <<_ACEOF
  23601. -/* end confdefs.h. */
  23602. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  23603. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23604. -#define shl_load innocuous_shl_load
  23605. + darwin* | rhapsody*)
  23606. + # PIC is the default on this platform
  23607. + # Common symbols not allowed in MH_DYLIB files
  23608. + lt_prog_compiler_pic='-fno-common'
  23609. + ;;
  23610. -/* System header to define __stub macros and hopefully few prototypes,
  23611. - which can conflict with char shl_load (); below.
  23612. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23613. - <limits.h> exists even on freestanding compilers. */
  23614. + hpux*)
  23615. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  23616. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  23617. + # sets the default TLS model and affects inlining.
  23618. + case $host_cpu in
  23619. + hppa*64*)
  23620. + # +Z the default
  23621. + ;;
  23622. + *)
  23623. + lt_prog_compiler_pic='-fPIC'
  23624. + ;;
  23625. + esac
  23626. + ;;
  23627. -#ifdef __STDC__
  23628. -# include <limits.h>
  23629. -#else
  23630. -# include <assert.h>
  23631. -#endif
  23632. + interix[3-9]*)
  23633. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23634. + # Instead, we relocate shared libraries at runtime.
  23635. + ;;
  23636. -#undef shl_load
  23637. + msdosdjgpp*)
  23638. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  23639. + # on systems that don't support them.
  23640. + lt_prog_compiler_can_build_shared=no
  23641. + enable_shared=no
  23642. + ;;
  23643. -/* Override any GCC internal prototype to avoid an error.
  23644. - Use char because int might match the return type of a GCC
  23645. - builtin and then its argument prototype would still apply. */
  23646. -#ifdef __cplusplus
  23647. -extern "C"
  23648. -#endif
  23649. -char shl_load ();
  23650. -/* The GNU C library defines this for functions which it implements
  23651. - to always fail with ENOSYS. Some functions are actually named
  23652. - something starting with __ and the normal name is an alias. */
  23653. -#if defined __stub_shl_load || defined __stub___shl_load
  23654. -choke me
  23655. -#endif
  23656. + *nto* | *qnx*)
  23657. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  23658. + # it will coredump.
  23659. + lt_prog_compiler_pic='-fPIC -shared'
  23660. + ;;
  23661. -int
  23662. -main ()
  23663. -{
  23664. -return shl_load ();
  23665. - ;
  23666. - return 0;
  23667. -}
  23668. -_ACEOF
  23669. -rm -f conftest.$ac_objext conftest$ac_exeext
  23670. -if { (ac_try="$ac_link"
  23671. -case "(($ac_try" in
  23672. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23673. - *) ac_try_echo=$ac_try;;
  23674. -esac
  23675. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23676. -$as_echo "$ac_try_echo") >&5
  23677. - (eval "$ac_link") 2>conftest.er1
  23678. - ac_status=$?
  23679. - grep -v '^ *+' conftest.er1 >conftest.err
  23680. - rm -f conftest.er1
  23681. - cat conftest.err >&5
  23682. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23683. - (exit $ac_status); } && {
  23684. - test -z "$ac_c_werror_flag" ||
  23685. - test ! -s conftest.err
  23686. - } && test -s conftest$ac_exeext && {
  23687. - test "$cross_compiling" = yes ||
  23688. - $as_test_x conftest$ac_exeext
  23689. - }; then
  23690. - ac_cv_func_shl_load=yes
  23691. -else
  23692. - $as_echo "$as_me: failed program was:" >&5
  23693. -sed 's/^/| /' conftest.$ac_ext >&5
  23694. + sysv4*MP*)
  23695. + if test -d /usr/nec; then
  23696. + lt_prog_compiler_pic=-Kconform_pic
  23697. + fi
  23698. + ;;
  23699. - ac_cv_func_shl_load=no
  23700. -fi
  23701. + *)
  23702. + lt_prog_compiler_pic='-fPIC'
  23703. + ;;
  23704. + esac
  23705. + else
  23706. + # PORTME Check for flag to pass linker flags through the system compiler.
  23707. + case $host_os in
  23708. + aix*)
  23709. + lt_prog_compiler_wl='-Wl,'
  23710. + if test "$host_cpu" = ia64; then
  23711. + # AIX 5 now supports IA64 processor
  23712. + lt_prog_compiler_static='-Bstatic'
  23713. + else
  23714. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  23715. + fi
  23716. + ;;
  23717. -rm -rf conftest.dSYM
  23718. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23719. - conftest$ac_exeext conftest.$ac_ext
  23720. -fi
  23721. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  23722. -$as_echo "$ac_cv_func_shl_load" >&6; }
  23723. -if test "x$ac_cv_func_shl_load" = x""yes; then
  23724. - lt_cv_dlopen="shl_load"
  23725. -else
  23726. - { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  23727. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  23728. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  23729. - $as_echo_n "(cached) " >&6
  23730. -else
  23731. - ac_check_lib_save_LIBS=$LIBS
  23732. -LIBS="-ldld $LIBS"
  23733. -cat >conftest.$ac_ext <<_ACEOF
  23734. -/* confdefs.h. */
  23735. -_ACEOF
  23736. -cat confdefs.h >>conftest.$ac_ext
  23737. -cat >>conftest.$ac_ext <<_ACEOF
  23738. -/* end confdefs.h. */
  23739. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  23740. + # This hack is so that the source file can tell whether it is being
  23741. + # built for inclusion in a dll (and should export symbols for example).
  23742. + lt_prog_compiler_pic='-DDLL_EXPORT'
  23743. + ;;
  23744. -/* Override any GCC internal prototype to avoid an error.
  23745. - Use char because int might match the return type of a GCC
  23746. - builtin and then its argument prototype would still apply. */
  23747. -#ifdef __cplusplus
  23748. -extern "C"
  23749. -#endif
  23750. -char shl_load ();
  23751. -int
  23752. -main ()
  23753. -{
  23754. -return shl_load ();
  23755. - ;
  23756. - return 0;
  23757. -}
  23758. -_ACEOF
  23759. -rm -f conftest.$ac_objext conftest$ac_exeext
  23760. -if { (ac_try="$ac_link"
  23761. -case "(($ac_try" in
  23762. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23763. - *) ac_try_echo=$ac_try;;
  23764. -esac
  23765. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23766. -$as_echo "$ac_try_echo") >&5
  23767. - (eval "$ac_link") 2>conftest.er1
  23768. - ac_status=$?
  23769. - grep -v '^ *+' conftest.er1 >conftest.err
  23770. - rm -f conftest.er1
  23771. - cat conftest.err >&5
  23772. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23773. - (exit $ac_status); } && {
  23774. - test -z "$ac_c_werror_flag" ||
  23775. - test ! -s conftest.err
  23776. - } && test -s conftest$ac_exeext && {
  23777. - test "$cross_compiling" = yes ||
  23778. - $as_test_x conftest$ac_exeext
  23779. - }; then
  23780. - ac_cv_lib_dld_shl_load=yes
  23781. -else
  23782. - $as_echo "$as_me: failed program was:" >&5
  23783. -sed 's/^/| /' conftest.$ac_ext >&5
  23784. + hpux9* | hpux10* | hpux11*)
  23785. + lt_prog_compiler_wl='-Wl,'
  23786. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23787. + # not for PA HP-UX.
  23788. + case $host_cpu in
  23789. + hppa*64*|ia64*)
  23790. + # +Z the default
  23791. + ;;
  23792. + *)
  23793. + lt_prog_compiler_pic='+Z'
  23794. + ;;
  23795. + esac
  23796. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23797. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  23798. + ;;
  23799. - ac_cv_lib_dld_shl_load=no
  23800. -fi
  23801. + irix5* | irix6* | nonstopux*)
  23802. + lt_prog_compiler_wl='-Wl,'
  23803. + # PIC (with -KPIC) is the default.
  23804. + lt_prog_compiler_static='-non_shared'
  23805. + ;;
  23806. -rm -rf conftest.dSYM
  23807. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23808. - conftest$ac_exeext conftest.$ac_ext
  23809. -LIBS=$ac_check_lib_save_LIBS
  23810. -fi
  23811. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  23812. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  23813. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  23814. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  23815. -else
  23816. - { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  23817. -$as_echo_n "checking for dlopen... " >&6; }
  23818. -if test "${ac_cv_func_dlopen+set}" = set; then
  23819. - $as_echo_n "(cached) " >&6
  23820. -else
  23821. - cat >conftest.$ac_ext <<_ACEOF
  23822. -/* confdefs.h. */
  23823. -_ACEOF
  23824. -cat confdefs.h >>conftest.$ac_ext
  23825. -cat >>conftest.$ac_ext <<_ACEOF
  23826. -/* end confdefs.h. */
  23827. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  23828. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23829. -#define dlopen innocuous_dlopen
  23830. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  23831. + case $cc_basename in
  23832. + # old Intel for x86_64 which still supported -KPIC.
  23833. + ecc*)
  23834. + lt_prog_compiler_wl='-Wl,'
  23835. + lt_prog_compiler_pic='-KPIC'
  23836. + lt_prog_compiler_static='-static'
  23837. + ;;
  23838. + # icc used to be incompatible with GCC.
  23839. + # ICC 10 doesn't accept -KPIC any more.
  23840. + icc* | ifort*)
  23841. + lt_prog_compiler_wl='-Wl,'
  23842. + lt_prog_compiler_pic='-fPIC'
  23843. + lt_prog_compiler_static='-static'
  23844. + ;;
  23845. + # Lahey Fortran 8.1.
  23846. + lf95*)
  23847. + lt_prog_compiler_wl='-Wl,'
  23848. + lt_prog_compiler_pic='--shared'
  23849. + lt_prog_compiler_static='--static'
  23850. + ;;
  23851. + pgcc* | pgf77* | pgf90* | pgf95*)
  23852. + # Portland Group compilers (*not* the Pentium gcc compiler,
  23853. + # which looks to be a dead project)
  23854. + lt_prog_compiler_wl='-Wl,'
  23855. + lt_prog_compiler_pic='-fpic'
  23856. + lt_prog_compiler_static='-Bstatic'
  23857. + ;;
  23858. + ccc*)
  23859. + lt_prog_compiler_wl='-Wl,'
  23860. + # All Alpha code is PIC.
  23861. + lt_prog_compiler_static='-non_shared'
  23862. + ;;
  23863. + xl*)
  23864. + # IBM XL C 8.0/Fortran 10.1 on PPC
  23865. + lt_prog_compiler_wl='-Wl,'
  23866. + lt_prog_compiler_pic='-qpic'
  23867. + lt_prog_compiler_static='-qstaticlink'
  23868. + ;;
  23869. + *)
  23870. + case `$CC -V 2>&1 | sed 5q` in
  23871. + *Sun\ C*)
  23872. + # Sun C 5.9
  23873. + lt_prog_compiler_pic='-KPIC'
  23874. + lt_prog_compiler_static='-Bstatic'
  23875. + lt_prog_compiler_wl='-Wl,'
  23876. + ;;
  23877. + *Sun\ F*)
  23878. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  23879. + lt_prog_compiler_pic='-KPIC'
  23880. + lt_prog_compiler_static='-Bstatic'
  23881. + lt_prog_compiler_wl=''
  23882. + ;;
  23883. + esac
  23884. + ;;
  23885. + esac
  23886. + ;;
  23887. -/* System header to define __stub macros and hopefully few prototypes,
  23888. - which can conflict with char dlopen (); below.
  23889. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23890. - <limits.h> exists even on freestanding compilers. */
  23891. + newsos6)
  23892. + lt_prog_compiler_pic='-KPIC'
  23893. + lt_prog_compiler_static='-Bstatic'
  23894. + ;;
  23895. -#ifdef __STDC__
  23896. -# include <limits.h>
  23897. -#else
  23898. -# include <assert.h>
  23899. -#endif
  23900. + *nto* | *qnx*)
  23901. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  23902. + # it will coredump.
  23903. + lt_prog_compiler_pic='-fPIC -shared'
  23904. + ;;
  23905. +
  23906. + osf3* | osf4* | osf5*)
  23907. + lt_prog_compiler_wl='-Wl,'
  23908. + # All OSF/1 code is PIC.
  23909. + lt_prog_compiler_static='-non_shared'
  23910. + ;;
  23911. -#undef dlopen
  23912. + rdos*)
  23913. + lt_prog_compiler_static='-non_shared'
  23914. + ;;
  23915. -/* Override any GCC internal prototype to avoid an error.
  23916. - Use char because int might match the return type of a GCC
  23917. - builtin and then its argument prototype would still apply. */
  23918. -#ifdef __cplusplus
  23919. -extern "C"
  23920. -#endif
  23921. -char dlopen ();
  23922. -/* The GNU C library defines this for functions which it implements
  23923. - to always fail with ENOSYS. Some functions are actually named
  23924. - something starting with __ and the normal name is an alias. */
  23925. -#if defined __stub_dlopen || defined __stub___dlopen
  23926. -choke me
  23927. -#endif
  23928. + solaris*)
  23929. + lt_prog_compiler_pic='-KPIC'
  23930. + lt_prog_compiler_static='-Bstatic'
  23931. + case $cc_basename in
  23932. + f77* | f90* | f95*)
  23933. + lt_prog_compiler_wl='-Qoption ld ';;
  23934. + *)
  23935. + lt_prog_compiler_wl='-Wl,';;
  23936. + esac
  23937. + ;;
  23938. -int
  23939. -main ()
  23940. -{
  23941. -return dlopen ();
  23942. - ;
  23943. - return 0;
  23944. -}
  23945. -_ACEOF
  23946. -rm -f conftest.$ac_objext conftest$ac_exeext
  23947. -if { (ac_try="$ac_link"
  23948. -case "(($ac_try" in
  23949. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23950. - *) ac_try_echo=$ac_try;;
  23951. + sunos4*)
  23952. + lt_prog_compiler_wl='-Qoption ld '
  23953. + lt_prog_compiler_pic='-PIC'
  23954. + lt_prog_compiler_static='-Bstatic'
  23955. + ;;
  23956. +
  23957. + sysv4 | sysv4.2uw2* | sysv4.3*)
  23958. + lt_prog_compiler_wl='-Wl,'
  23959. + lt_prog_compiler_pic='-KPIC'
  23960. + lt_prog_compiler_static='-Bstatic'
  23961. + ;;
  23962. +
  23963. + sysv4*MP*)
  23964. + if test -d /usr/nec ;then
  23965. + lt_prog_compiler_pic='-Kconform_pic'
  23966. + lt_prog_compiler_static='-Bstatic'
  23967. + fi
  23968. + ;;
  23969. +
  23970. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23971. + lt_prog_compiler_wl='-Wl,'
  23972. + lt_prog_compiler_pic='-KPIC'
  23973. + lt_prog_compiler_static='-Bstatic'
  23974. + ;;
  23975. +
  23976. + unicos*)
  23977. + lt_prog_compiler_wl='-Wl,'
  23978. + lt_prog_compiler_can_build_shared=no
  23979. + ;;
  23980. +
  23981. + uts4*)
  23982. + lt_prog_compiler_pic='-pic'
  23983. + lt_prog_compiler_static='-Bstatic'
  23984. + ;;
  23985. +
  23986. + *)
  23987. + lt_prog_compiler_can_build_shared=no
  23988. + ;;
  23989. + esac
  23990. + fi
  23991. +
  23992. +case $host_os in
  23993. + # For platforms which do not support PIC, -DPIC is meaningless:
  23994. + *djgpp*)
  23995. + lt_prog_compiler_pic=
  23996. + ;;
  23997. + *)
  23998. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  23999. + ;;
  24000. esac
  24001. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24002. -$as_echo "$ac_try_echo") >&5
  24003. - (eval "$ac_link") 2>conftest.er1
  24004. - ac_status=$?
  24005. - grep -v '^ *+' conftest.er1 >conftest.err
  24006. - rm -f conftest.er1
  24007. - cat conftest.err >&5
  24008. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24009. - (exit $ac_status); } && {
  24010. - test -z "$ac_c_werror_flag" ||
  24011. - test ! -s conftest.err
  24012. - } && test -s conftest$ac_exeext && {
  24013. - test "$cross_compiling" = yes ||
  24014. - $as_test_x conftest$ac_exeext
  24015. - }; then
  24016. - ac_cv_func_dlopen=yes
  24017. -else
  24018. - $as_echo "$as_me: failed program was:" >&5
  24019. -sed 's/^/| /' conftest.$ac_ext >&5
  24020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  24021. +$as_echo "$lt_prog_compiler_pic" >&6; }
  24022. - ac_cv_func_dlopen=no
  24023. -fi
  24024. -rm -rf conftest.dSYM
  24025. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24026. - conftest$ac_exeext conftest.$ac_ext
  24027. -fi
  24028. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  24029. -$as_echo "$ac_cv_func_dlopen" >&6; }
  24030. -if test "x$ac_cv_func_dlopen" = x""yes; then
  24031. - lt_cv_dlopen="dlopen"
  24032. -else
  24033. - { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  24034. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  24035. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  24036. +
  24037. +
  24038. +
  24039. +
  24040. +#
  24041. +# Check to make sure the PIC flag actually works.
  24042. +#
  24043. +if test -n "$lt_prog_compiler_pic"; then
  24044. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  24045. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  24046. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  24047. $as_echo_n "(cached) " >&6
  24048. else
  24049. - ac_check_lib_save_LIBS=$LIBS
  24050. -LIBS="-ldl $LIBS"
  24051. -cat >conftest.$ac_ext <<_ACEOF
  24052. -/* confdefs.h. */
  24053. -_ACEOF
  24054. -cat confdefs.h >>conftest.$ac_ext
  24055. -cat >>conftest.$ac_ext <<_ACEOF
  24056. -/* end confdefs.h. */
  24057. + lt_cv_prog_compiler_pic_works=no
  24058. + ac_outfile=conftest.$ac_objext
  24059. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24060. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  24061. + # Insert the option either (1) after the last *FLAGS variable, or
  24062. + # (2) before a word containing "conftest.", or (3) at the end.
  24063. + # Note that $ac_compile itself does not contain backslashes and begins
  24064. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24065. + # The option is referenced via a variable to avoid confusing sed.
  24066. + lt_compile=`echo "$ac_compile" | $SED \
  24067. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24068. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24069. + -e 's:$: $lt_compiler_flag:'`
  24070. + (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
  24071. + (eval "$lt_compile" 2>conftest.err)
  24072. + ac_status=$?
  24073. + cat conftest.err >&5
  24074. + echo "$as_me:7726: \$? = $ac_status" >&5
  24075. + if (exit $ac_status) && test -s "$ac_outfile"; then
  24076. + # The compiler can only warn and ignore the option if not recognized
  24077. + # So say no if there are warnings other than the usual output.
  24078. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24079. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24080. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24081. + lt_cv_prog_compiler_pic_works=yes
  24082. + fi
  24083. + fi
  24084. + $RM conftest*
  24085. -/* Override any GCC internal prototype to avoid an error.
  24086. - Use char because int might match the return type of a GCC
  24087. - builtin and then its argument prototype would still apply. */
  24088. -#ifdef __cplusplus
  24089. -extern "C"
  24090. -#endif
  24091. -char dlopen ();
  24092. -int
  24093. -main ()
  24094. -{
  24095. -return dlopen ();
  24096. - ;
  24097. - return 0;
  24098. -}
  24099. -_ACEOF
  24100. -rm -f conftest.$ac_objext conftest$ac_exeext
  24101. -if { (ac_try="$ac_link"
  24102. -case "(($ac_try" in
  24103. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24104. - *) ac_try_echo=$ac_try;;
  24105. -esac
  24106. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24107. -$as_echo "$ac_try_echo") >&5
  24108. - (eval "$ac_link") 2>conftest.er1
  24109. - ac_status=$?
  24110. - grep -v '^ *+' conftest.er1 >conftest.err
  24111. - rm -f conftest.er1
  24112. - cat conftest.err >&5
  24113. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24114. - (exit $ac_status); } && {
  24115. - test -z "$ac_c_werror_flag" ||
  24116. - test ! -s conftest.err
  24117. - } && test -s conftest$ac_exeext && {
  24118. - test "$cross_compiling" = yes ||
  24119. - $as_test_x conftest$ac_exeext
  24120. - }; then
  24121. - ac_cv_lib_dl_dlopen=yes
  24122. -else
  24123. - $as_echo "$as_me: failed program was:" >&5
  24124. -sed 's/^/| /' conftest.$ac_ext >&5
  24125. +fi
  24126. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  24127. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  24128. - ac_cv_lib_dl_dlopen=no
  24129. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  24130. + case $lt_prog_compiler_pic in
  24131. + "" | " "*) ;;
  24132. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  24133. + esac
  24134. +else
  24135. + lt_prog_compiler_pic=
  24136. + lt_prog_compiler_can_build_shared=no
  24137. fi
  24138. -rm -rf conftest.dSYM
  24139. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24140. - conftest$ac_exeext conftest.$ac_ext
  24141. -LIBS=$ac_check_lib_save_LIBS
  24142. fi
  24143. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  24144. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  24145. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  24146. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  24147. -else
  24148. - { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  24149. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  24150. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  24151. - $as_echo_n "(cached) " >&6
  24152. -else
  24153. - ac_check_lib_save_LIBS=$LIBS
  24154. -LIBS="-lsvld $LIBS"
  24155. -cat >conftest.$ac_ext <<_ACEOF
  24156. -/* confdefs.h. */
  24157. -_ACEOF
  24158. -cat confdefs.h >>conftest.$ac_ext
  24159. -cat >>conftest.$ac_ext <<_ACEOF
  24160. -/* end confdefs.h. */
  24161. -/* Override any GCC internal prototype to avoid an error.
  24162. - Use char because int might match the return type of a GCC
  24163. - builtin and then its argument prototype would still apply. */
  24164. -#ifdef __cplusplus
  24165. -extern "C"
  24166. -#endif
  24167. -char dlopen ();
  24168. -int
  24169. -main ()
  24170. -{
  24171. -return dlopen ();
  24172. - ;
  24173. - return 0;
  24174. -}
  24175. -_ACEOF
  24176. -rm -f conftest.$ac_objext conftest$ac_exeext
  24177. -if { (ac_try="$ac_link"
  24178. -case "(($ac_try" in
  24179. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24180. - *) ac_try_echo=$ac_try;;
  24181. -esac
  24182. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24183. -$as_echo "$ac_try_echo") >&5
  24184. - (eval "$ac_link") 2>conftest.er1
  24185. - ac_status=$?
  24186. - grep -v '^ *+' conftest.er1 >conftest.err
  24187. - rm -f conftest.er1
  24188. - cat conftest.err >&5
  24189. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24190. - (exit $ac_status); } && {
  24191. - test -z "$ac_c_werror_flag" ||
  24192. - test ! -s conftest.err
  24193. - } && test -s conftest$ac_exeext && {
  24194. - test "$cross_compiling" = yes ||
  24195. - $as_test_x conftest$ac_exeext
  24196. - }; then
  24197. - ac_cv_lib_svld_dlopen=yes
  24198. -else
  24199. - $as_echo "$as_me: failed program was:" >&5
  24200. -sed 's/^/| /' conftest.$ac_ext >&5
  24201. - ac_cv_lib_svld_dlopen=no
  24202. -fi
  24203. -rm -rf conftest.dSYM
  24204. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24205. - conftest$ac_exeext conftest.$ac_ext
  24206. -LIBS=$ac_check_lib_save_LIBS
  24207. -fi
  24208. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  24209. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  24210. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  24211. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  24212. -else
  24213. - { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  24214. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  24215. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  24216. - $as_echo_n "(cached) " >&6
  24217. -else
  24218. - ac_check_lib_save_LIBS=$LIBS
  24219. -LIBS="-ldld $LIBS"
  24220. -cat >conftest.$ac_ext <<_ACEOF
  24221. -/* confdefs.h. */
  24222. -_ACEOF
  24223. -cat confdefs.h >>conftest.$ac_ext
  24224. -cat >>conftest.$ac_ext <<_ACEOF
  24225. -/* end confdefs.h. */
  24226. -/* Override any GCC internal prototype to avoid an error.
  24227. - Use char because int might match the return type of a GCC
  24228. - builtin and then its argument prototype would still apply. */
  24229. -#ifdef __cplusplus
  24230. -extern "C"
  24231. -#endif
  24232. -char dld_link ();
  24233. -int
  24234. -main ()
  24235. -{
  24236. -return dld_link ();
  24237. - ;
  24238. - return 0;
  24239. -}
  24240. -_ACEOF
  24241. -rm -f conftest.$ac_objext conftest$ac_exeext
  24242. -if { (ac_try="$ac_link"
  24243. -case "(($ac_try" in
  24244. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24245. - *) ac_try_echo=$ac_try;;
  24246. -esac
  24247. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24248. -$as_echo "$ac_try_echo") >&5
  24249. - (eval "$ac_link") 2>conftest.er1
  24250. - ac_status=$?
  24251. - grep -v '^ *+' conftest.er1 >conftest.err
  24252. - rm -f conftest.er1
  24253. - cat conftest.err >&5
  24254. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24255. - (exit $ac_status); } && {
  24256. - test -z "$ac_c_werror_flag" ||
  24257. - test ! -s conftest.err
  24258. - } && test -s conftest$ac_exeext && {
  24259. - test "$cross_compiling" = yes ||
  24260. - $as_test_x conftest$ac_exeext
  24261. - }; then
  24262. - ac_cv_lib_dld_dld_link=yes
  24263. +
  24264. +
  24265. +#
  24266. +# Check to make sure the static flag actually works.
  24267. +#
  24268. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24270. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  24271. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  24272. + $as_echo_n "(cached) " >&6
  24273. else
  24274. - $as_echo "$as_me: failed program was:" >&5
  24275. -sed 's/^/| /' conftest.$ac_ext >&5
  24276. + lt_cv_prog_compiler_static_works=no
  24277. + save_LDFLAGS="$LDFLAGS"
  24278. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24279. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24280. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24281. + # The linker can only warn and ignore the option if not recognized
  24282. + # So say no if there are warnings
  24283. + if test -s conftest.err; then
  24284. + # Append any errors to the config.log.
  24285. + cat conftest.err 1>&5
  24286. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24287. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24288. + if diff conftest.exp conftest.er2 >/dev/null; then
  24289. + lt_cv_prog_compiler_static_works=yes
  24290. + fi
  24291. + else
  24292. + lt_cv_prog_compiler_static_works=yes
  24293. + fi
  24294. + fi
  24295. + $RM -r conftest*
  24296. + LDFLAGS="$save_LDFLAGS"
  24297. - ac_cv_lib_dld_dld_link=no
  24298. fi
  24299. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  24300. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  24301. -rm -rf conftest.dSYM
  24302. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24303. - conftest$ac_exeext conftest.$ac_ext
  24304. -LIBS=$ac_check_lib_save_LIBS
  24305. -fi
  24306. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  24307. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  24308. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  24309. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  24310. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  24311. + :
  24312. +else
  24313. + lt_prog_compiler_static=
  24314. fi
  24315. -fi
  24316. -
  24317. -fi
  24318. -fi
  24319. -fi
  24320. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  24321. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  24322. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  24323. + $as_echo_n "(cached) " >&6
  24324. +else
  24325. + lt_cv_prog_compiler_c_o=no
  24326. + $RM -r conftest 2>/dev/null
  24327. + mkdir conftest
  24328. + cd conftest
  24329. + mkdir out
  24330. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24331. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  24332. + # Insert the option either (1) after the last *FLAGS variable, or
  24333. + # (2) before a word containing "conftest.", or (3) at the end.
  24334. + # Note that $ac_compile itself does not contain backslashes and begins
  24335. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24336. + lt_compile=`echo "$ac_compile" | $SED \
  24337. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24338. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24339. + -e 's:$: $lt_compiler_flag:'`
  24340. + (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
  24341. + (eval "$lt_compile" 2>out/conftest.err)
  24342. + ac_status=$?
  24343. + cat out/conftest.err >&5
  24344. + echo "$as_me:7831: \$? = $ac_status" >&5
  24345. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24346. + then
  24347. + # The compiler can only warn and ignore the option if not recognized
  24348. + # So say no if there are warnings
  24349. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24350. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24351. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24352. + lt_cv_prog_compiler_c_o=yes
  24353. + fi
  24354. + fi
  24355. + chmod u+w . 2>&5
  24356. + $RM conftest*
  24357. + # SGI C++ compiler will create directory out/ii_files/ for
  24358. + # template instantiation
  24359. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  24360. + $RM out/* && rmdir out
  24361. + cd ..
  24362. + $RM -r conftest
  24363. + $RM conftest*
  24364. fi
  24365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  24366. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  24367. - ;;
  24368. - esac
  24369. - if test "x$lt_cv_dlopen" != xno; then
  24370. - enable_dlopen=yes
  24371. - else
  24372. - enable_dlopen=no
  24373. - fi
  24374. - case $lt_cv_dlopen in
  24375. - dlopen)
  24376. - save_CPPFLAGS="$CPPFLAGS"
  24377. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  24378. - save_LDFLAGS="$LDFLAGS"
  24379. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  24380. - save_LIBS="$LIBS"
  24381. - LIBS="$lt_cv_dlopen_libs $LIBS"
  24382. - { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  24383. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  24384. -if test "${lt_cv_dlopen_self+set}" = set; then
  24385. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  24386. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  24387. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  24388. $as_echo_n "(cached) " >&6
  24389. else
  24390. - if test "$cross_compiling" = yes; then :
  24391. - lt_cv_dlopen_self=cross
  24392. -else
  24393. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  24394. - lt_status=$lt_dlunknown
  24395. - cat > conftest.$ac_ext <<EOF
  24396. -#line 10568 "configure"
  24397. -#include "confdefs.h"
  24398. -
  24399. -#if HAVE_DLFCN_H
  24400. -#include <dlfcn.h>
  24401. -#endif
  24402. -
  24403. -#include <stdio.h>
  24404. + lt_cv_prog_compiler_c_o=no
  24405. + $RM -r conftest 2>/dev/null
  24406. + mkdir conftest
  24407. + cd conftest
  24408. + mkdir out
  24409. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24410. -#ifdef RTLD_GLOBAL
  24411. -# define LT_DLGLOBAL RTLD_GLOBAL
  24412. -#else
  24413. -# ifdef DL_GLOBAL
  24414. -# define LT_DLGLOBAL DL_GLOBAL
  24415. -# else
  24416. -# define LT_DLGLOBAL 0
  24417. -# endif
  24418. -#endif
  24419. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  24420. + # Insert the option either (1) after the last *FLAGS variable, or
  24421. + # (2) before a word containing "conftest.", or (3) at the end.
  24422. + # Note that $ac_compile itself does not contain backslashes and begins
  24423. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24424. + lt_compile=`echo "$ac_compile" | $SED \
  24425. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24426. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24427. + -e 's:$: $lt_compiler_flag:'`
  24428. + (eval echo "\"\$as_me:7882: $lt_compile\"" >&5)
  24429. + (eval "$lt_compile" 2>out/conftest.err)
  24430. + ac_status=$?
  24431. + cat out/conftest.err >&5
  24432. + echo "$as_me:7886: \$? = $ac_status" >&5
  24433. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24434. + then
  24435. + # The compiler can only warn and ignore the option if not recognized
  24436. + # So say no if there are warnings
  24437. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24438. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24439. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24440. + lt_cv_prog_compiler_c_o=yes
  24441. + fi
  24442. + fi
  24443. + chmod u+w . 2>&5
  24444. + $RM conftest*
  24445. + # SGI C++ compiler will create directory out/ii_files/ for
  24446. + # template instantiation
  24447. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  24448. + $RM out/* && rmdir out
  24449. + cd ..
  24450. + $RM -r conftest
  24451. + $RM conftest*
  24452. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  24453. - find out it does not work in some platform. */
  24454. -#ifndef LT_DLLAZY_OR_NOW
  24455. -# ifdef RTLD_LAZY
  24456. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  24457. -# else
  24458. -# ifdef DL_LAZY
  24459. -# define LT_DLLAZY_OR_NOW DL_LAZY
  24460. -# else
  24461. -# ifdef RTLD_NOW
  24462. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  24463. -# else
  24464. -# ifdef DL_NOW
  24465. -# define LT_DLLAZY_OR_NOW DL_NOW
  24466. -# else
  24467. -# define LT_DLLAZY_OR_NOW 0
  24468. -# endif
  24469. -# endif
  24470. -# endif
  24471. -# endif
  24472. -#endif
  24473. +fi
  24474. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  24475. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  24476. -#ifdef __cplusplus
  24477. -extern "C" void exit (int);
  24478. -#endif
  24479. -void fnord() { int i=42;}
  24480. -int main ()
  24481. -{
  24482. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  24483. - int status = $lt_dlunknown;
  24484. - if (self)
  24485. - {
  24486. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  24487. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  24488. - /* dlclose (self); */
  24489. - }
  24490. - else
  24491. - puts (dlerror ());
  24492. - exit (status);
  24493. -}
  24494. -EOF
  24495. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24496. - (eval $ac_link) 2>&5
  24497. - ac_status=$?
  24498. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24499. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  24500. - (./conftest; exit; ) >&5 2>/dev/null
  24501. - lt_status=$?
  24502. - case x$lt_status in
  24503. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  24504. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  24505. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  24506. - esac
  24507. - else :
  24508. - # compilation failed
  24509. - lt_cv_dlopen_self=no
  24510. +hard_links="nottested"
  24511. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  24512. + # do not overwrite the value of need_locks provided by the user
  24513. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  24514. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  24515. + hard_links=yes
  24516. + $RM conftest*
  24517. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24518. + touch conftest.a
  24519. + ln conftest.a conftest.b 2>&5 || hard_links=no
  24520. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  24522. +$as_echo "$hard_links" >&6; }
  24523. + if test "$hard_links" = no; then
  24524. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24525. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24526. + need_locks=warn
  24527. fi
  24528. -fi
  24529. -rm -fr conftest*
  24530. -
  24531. -
  24532. -fi
  24533. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  24534. -$as_echo "$lt_cv_dlopen_self" >&6; }
  24535. -
  24536. - if test "x$lt_cv_dlopen_self" = xyes; then
  24537. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  24538. - { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  24539. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  24540. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  24541. - $as_echo_n "(cached) " >&6
  24542. -else
  24543. - if test "$cross_compiling" = yes; then :
  24544. - lt_cv_dlopen_self_static=cross
  24545. else
  24546. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  24547. - lt_status=$lt_dlunknown
  24548. - cat > conftest.$ac_ext <<EOF
  24549. -#line 10668 "configure"
  24550. -#include "confdefs.h"
  24551. -
  24552. -#if HAVE_DLFCN_H
  24553. -#include <dlfcn.h>
  24554. -#endif
  24555. -
  24556. -#include <stdio.h>
  24557. + need_locks=no
  24558. +fi
  24559. -#ifdef RTLD_GLOBAL
  24560. -# define LT_DLGLOBAL RTLD_GLOBAL
  24561. -#else
  24562. -# ifdef DL_GLOBAL
  24563. -# define LT_DLGLOBAL DL_GLOBAL
  24564. -# else
  24565. -# define LT_DLGLOBAL 0
  24566. -# endif
  24567. -#endif
  24568. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  24569. - find out it does not work in some platform. */
  24570. -#ifndef LT_DLLAZY_OR_NOW
  24571. -# ifdef RTLD_LAZY
  24572. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  24573. -# else
  24574. -# ifdef DL_LAZY
  24575. -# define LT_DLLAZY_OR_NOW DL_LAZY
  24576. -# else
  24577. -# ifdef RTLD_NOW
  24578. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  24579. -# else
  24580. -# ifdef DL_NOW
  24581. -# define LT_DLLAZY_OR_NOW DL_NOW
  24582. -# else
  24583. -# define LT_DLLAZY_OR_NOW 0
  24584. -# endif
  24585. -# endif
  24586. -# endif
  24587. -# endif
  24588. -#endif
  24589. -#ifdef __cplusplus
  24590. -extern "C" void exit (int);
  24591. -#endif
  24592. -void fnord() { int i=42;}
  24593. -int main ()
  24594. -{
  24595. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  24596. - int status = $lt_dlunknown;
  24597. - if (self)
  24598. - {
  24599. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  24600. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  24601. - /* dlclose (self); */
  24602. - }
  24603. - else
  24604. - puts (dlerror ());
  24605. - exit (status);
  24606. -}
  24607. -EOF
  24608. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24609. - (eval $ac_link) 2>&5
  24610. - ac_status=$?
  24611. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24612. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  24613. - (./conftest; exit; ) >&5 2>/dev/null
  24614. - lt_status=$?
  24615. - case x$lt_status in
  24616. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  24617. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  24618. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  24619. - esac
  24620. - else :
  24621. - # compilation failed
  24622. - lt_cv_dlopen_self_static=no
  24623. - fi
  24624. -fi
  24625. -rm -fr conftest*
  24626. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24627. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  24628. + runpath_var=
  24629. + allow_undefined_flag=
  24630. + always_export_symbols=no
  24631. + archive_cmds=
  24632. + archive_expsym_cmds=
  24633. + compiler_needs_object=no
  24634. + enable_shared_with_static_runtimes=no
  24635. + export_dynamic_flag_spec=
  24636. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24637. + hardcode_automatic=no
  24638. + hardcode_direct=no
  24639. + hardcode_direct_absolute=no
  24640. + hardcode_libdir_flag_spec=
  24641. + hardcode_libdir_flag_spec_ld=
  24642. + hardcode_libdir_separator=
  24643. + hardcode_minus_L=no
  24644. + hardcode_shlibpath_var=unsupported
  24645. + inherit_rpath=no
  24646. + link_all_deplibs=unknown
  24647. + module_cmds=
  24648. + module_expsym_cmds=
  24649. + old_archive_from_new_cmds=
  24650. + old_archive_from_expsyms_cmds=
  24651. + thread_safe_flag_spec=
  24652. + whole_archive_flag_spec=
  24653. + # include_expsyms should be a list of space-separated symbols to be *always*
  24654. + # included in the symbol list
  24655. + include_expsyms=
  24656. + # exclude_expsyms can be an extended regexp of symbols to exclude
  24657. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24658. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24659. + # as well as any symbol that contains `d'.
  24660. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  24661. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24662. + # platforms (ab)use it in PIC code, but their linkers get confused if
  24663. + # the symbol is explicitly referenced. Since portable code cannot
  24664. + # rely on this symbol name, it's probably fine to never include it in
  24665. + # preloaded symbol tables.
  24666. + # Exclude shared library initialization/finalization symbols.
  24667. + extract_expsyms_cmds=
  24668. -fi
  24669. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  24670. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  24671. + case $host_os in
  24672. + cygwin* | mingw* | pw32* | cegcc*)
  24673. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24674. + # When not using gcc, we currently assume that we are using
  24675. + # Microsoft Visual C++.
  24676. + if test "$GCC" != yes; then
  24677. + with_gnu_ld=no
  24678. fi
  24679. -
  24680. - CPPFLAGS="$save_CPPFLAGS"
  24681. - LDFLAGS="$save_LDFLAGS"
  24682. - LIBS="$save_LIBS"
  24683. + ;;
  24684. + interix*)
  24685. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  24686. + with_gnu_ld=yes
  24687. + ;;
  24688. + openbsd*)
  24689. + with_gnu_ld=no
  24690. + ;;
  24691. + linux* | k*bsd*-gnu)
  24692. + link_all_deplibs=no
  24693. ;;
  24694. esac
  24695. - case $lt_cv_dlopen_self in
  24696. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  24697. - *) enable_dlopen_self=unknown ;;
  24698. - esac
  24699. -
  24700. - case $lt_cv_dlopen_self_static in
  24701. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  24702. - *) enable_dlopen_self_static=unknown ;;
  24703. - esac
  24704. -fi
  24705. -
  24706. -
  24707. -# Report which library types will actually be built
  24708. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  24709. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  24710. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  24711. -$as_echo "$can_build_shared" >&6; }
  24712. -
  24713. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  24714. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  24715. -test "$can_build_shared" = "no" && enable_shared=no
  24716. + ld_shlibs=yes
  24717. + if test "$with_gnu_ld" = yes; then
  24718. + # If archive_cmds runs LD, not CC, wlarc should be empty
  24719. + wlarc='${wl}'
  24720. -# On AIX, shared libraries and static libraries use the same namespace, and
  24721. -# are all built from PIC.
  24722. -case $host_os in
  24723. -aix3*)
  24724. - test "$enable_shared" = yes && enable_static=no
  24725. - if test -n "$RANLIB"; then
  24726. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  24727. - postinstall_cmds='$RANLIB $lib'
  24728. - fi
  24729. - ;;
  24730. + # Set some defaults for GNU ld with shared library support. These
  24731. + # are reset later if shared libraries are not supported. Putting them
  24732. + # here allows them to be overridden if necessary.
  24733. + runpath_var=LD_RUN_PATH
  24734. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24735. + export_dynamic_flag_spec='${wl}--export-dynamic'
  24736. + # ancient GNU ld didn't support --whole-archive et. al.
  24737. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  24738. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24739. + else
  24740. + whole_archive_flag_spec=
  24741. + fi
  24742. + supports_anon_versioning=no
  24743. + case `$LD -v 2>&1` in
  24744. + *GNU\ gold*) supports_anon_versioning=yes ;;
  24745. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24746. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24747. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24748. + *\ 2.11.*) ;; # other 2.11 versions
  24749. + *) supports_anon_versioning=yes ;;
  24750. + esac
  24751. -aix[4-9]*)
  24752. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  24753. - test "$enable_shared" = yes && enable_static=no
  24754. - fi
  24755. - ;;
  24756. -esac
  24757. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  24758. -$as_echo "$enable_shared" >&6; }
  24759. + # See if GNU ld supports shared libraries.
  24760. + case $host_os in
  24761. + aix[3-9]*)
  24762. + # On AIX/PPC, the GNU linker is very broken
  24763. + if test "$host_cpu" != ia64; then
  24764. + ld_shlibs=no
  24765. + cat <<_LT_EOF 1>&2
  24766. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  24767. -$as_echo_n "checking whether to build static libraries... " >&6; }
  24768. -# Make sure either enable_shared or enable_static is yes.
  24769. -test "$enable_shared" = yes || enable_static=yes
  24770. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  24771. -$as_echo "$enable_static" >&6; }
  24772. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  24773. +*** to be unable to reliably create shared libraries on AIX.
  24774. +*** Therefore, libtool is disabling shared libraries support. If you
  24775. +*** really care for shared libraries, you may want to modify your PATH
  24776. +*** so that a non-GNU linker is found, and then restart.
  24777. -# The else clause should only fire when bootstrapping the
  24778. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  24779. -# with your package, and you will get complaints that there are
  24780. -# no rules to generate ltmain.sh.
  24781. -if test -f "$ltmain"; then
  24782. - # See if we are running on zsh, and set the options which allow our commands through
  24783. - # without removal of \ escapes.
  24784. - if test -n "${ZSH_VERSION+set}" ; then
  24785. - setopt NO_GLOB_SUBST
  24786. - fi
  24787. - # Now quote all the things that may contain metacharacters while being
  24788. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  24789. - # variables and quote the copies for generation of the libtool script.
  24790. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  24791. - SED SHELL STRIP \
  24792. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  24793. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  24794. - deplibs_check_method reload_flag reload_cmds need_locks \
  24795. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  24796. - lt_cv_sys_global_symbol_to_c_name_address \
  24797. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  24798. - old_postinstall_cmds old_postuninstall_cmds \
  24799. - compiler \
  24800. - CC \
  24801. - LD \
  24802. - lt_prog_compiler_wl \
  24803. - lt_prog_compiler_pic \
  24804. - lt_prog_compiler_static \
  24805. - lt_prog_compiler_no_builtin_flag \
  24806. - export_dynamic_flag_spec \
  24807. - thread_safe_flag_spec \
  24808. - whole_archive_flag_spec \
  24809. - enable_shared_with_static_runtimes \
  24810. - old_archive_cmds \
  24811. - old_archive_from_new_cmds \
  24812. - predep_objects \
  24813. - postdep_objects \
  24814. - predeps \
  24815. - postdeps \
  24816. - compiler_lib_search_path \
  24817. - compiler_lib_search_dirs \
  24818. - archive_cmds \
  24819. - archive_expsym_cmds \
  24820. - postinstall_cmds \
  24821. - postuninstall_cmds \
  24822. - old_archive_from_expsyms_cmds \
  24823. - allow_undefined_flag \
  24824. - no_undefined_flag \
  24825. - export_symbols_cmds \
  24826. - hardcode_libdir_flag_spec \
  24827. - hardcode_libdir_flag_spec_ld \
  24828. - hardcode_libdir_separator \
  24829. - hardcode_automatic \
  24830. - module_cmds \
  24831. - module_expsym_cmds \
  24832. - lt_cv_prog_compiler_c_o \
  24833. - fix_srcfile_path \
  24834. - exclude_expsyms \
  24835. - include_expsyms; do
  24836. -
  24837. - case $var in
  24838. - old_archive_cmds | \
  24839. - old_archive_from_new_cmds | \
  24840. - archive_cmds | \
  24841. - archive_expsym_cmds | \
  24842. - module_cmds | \
  24843. - module_expsym_cmds | \
  24844. - old_archive_from_expsyms_cmds | \
  24845. - export_symbols_cmds | \
  24846. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  24847. - postinstall_cmds | postuninstall_cmds | \
  24848. - old_postinstall_cmds | old_postuninstall_cmds | \
  24849. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  24850. - # Double-quote double-evaled strings.
  24851. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  24852. +_LT_EOF
  24853. + fi
  24854. ;;
  24855. - *)
  24856. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  24857. +
  24858. + amigaos*)
  24859. + case $host_cpu in
  24860. + powerpc)
  24861. + # see comment about AmigaOS4 .so support
  24862. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24863. + archive_expsym_cmds=''
  24864. + ;;
  24865. + m68k)
  24866. + 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)'
  24867. + hardcode_libdir_flag_spec='-L$libdir'
  24868. + hardcode_minus_L=yes
  24869. + ;;
  24870. + esac
  24871. ;;
  24872. - esac
  24873. - done
  24874. - case $lt_echo in
  24875. - *'\$0 --fallback-echo"')
  24876. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  24877. - ;;
  24878. - esac
  24879. + beos*)
  24880. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  24881. + allow_undefined_flag=unsupported
  24882. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  24883. + # support --undefined. This deserves some investigation. FIXME
  24884. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24885. + else
  24886. + ld_shlibs=no
  24887. + fi
  24888. + ;;
  24889. -cfgfile="${ofile}T"
  24890. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  24891. - $rm -f "$cfgfile"
  24892. - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  24893. -$as_echo "$as_me: creating $ofile" >&6;}
  24894. + cygwin* | mingw* | pw32* | cegcc*)
  24895. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  24896. + # as there is no search path for DLLs.
  24897. + hardcode_libdir_flag_spec='-L$libdir'
  24898. + allow_undefined_flag=unsupported
  24899. + always_export_symbols=no
  24900. + enable_shared_with_static_runtimes=yes
  24901. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  24902. - cat <<__EOF__ >> "$cfgfile"
  24903. -#! $SHELL
  24904. -
  24905. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24906. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  24907. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24908. -#
  24909. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  24910. -# Free Software Foundation, Inc.
  24911. -#
  24912. -# This file is part of GNU Libtool:
  24913. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  24914. -#
  24915. -# This program is free software; you can redistribute it and/or modify
  24916. -# it under the terms of the GNU General Public License as published by
  24917. -# the Free Software Foundation; either version 2 of the License, or
  24918. -# (at your option) any later version.
  24919. -#
  24920. -# This program is distributed in the hope that it will be useful, but
  24921. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  24922. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24923. -# General Public License for more details.
  24924. -#
  24925. -# You should have received a copy of the GNU General Public License
  24926. -# along with this program; if not, write to the Free Software
  24927. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24928. -#
  24929. -# As a special exception to the GNU General Public License, if you
  24930. -# distribute this file as part of a program that contains a
  24931. -# configuration script generated by Autoconf, you may include it under
  24932. -# the same distribution terms that you use for the rest of that program.
  24933. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  24934. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24935. + # If the export-symbols file already is a .def file (1st line
  24936. + # is EXPORTS), use it as is; otherwise, prepend...
  24937. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24938. + cp $export_symbols $output_objdir/$soname.def;
  24939. + else
  24940. + echo EXPORTS > $output_objdir/$soname.def;
  24941. + cat $export_symbols >> $output_objdir/$soname.def;
  24942. + fi~
  24943. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24944. + else
  24945. + ld_shlibs=no
  24946. + fi
  24947. + ;;
  24948. -# A sed program that does not truncate output.
  24949. -SED=$lt_SED
  24950. + interix[3-9]*)
  24951. + hardcode_direct=no
  24952. + hardcode_shlibpath_var=no
  24953. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24954. + export_dynamic_flag_spec='${wl}-E'
  24955. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24956. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  24957. + # default) and relocated if they conflict, which is a slow very memory
  24958. + # consuming and fragmenting process. To avoid this, we pick a random,
  24959. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24960. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24961. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  24962. + 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'
  24963. + ;;
  24964. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24965. -Xsed="$SED -e 1s/^X//"
  24966. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  24967. + tmp_diet=no
  24968. + if test "$host_os" = linux-dietlibc; then
  24969. + case $cc_basename in
  24970. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  24971. + esac
  24972. + fi
  24973. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  24974. + && test "$tmp_diet" = no
  24975. + then
  24976. + tmp_addflag=
  24977. + tmp_sharedflag='-shared'
  24978. + case $cc_basename,$host_cpu in
  24979. + pgcc*) # Portland Group C compiler
  24980. + 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'
  24981. + tmp_addflag=' $pic_flag'
  24982. + ;;
  24983. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  24984. + 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'
  24985. + tmp_addflag=' $pic_flag -Mnomain' ;;
  24986. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  24987. + tmp_addflag=' -i_dynamic' ;;
  24988. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  24989. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  24990. + ifc* | ifort*) # Intel Fortran compiler
  24991. + tmp_addflag=' -nofor_main' ;;
  24992. + lf95*) # Lahey Fortran 8.1
  24993. + whole_archive_flag_spec=
  24994. + tmp_sharedflag='--shared' ;;
  24995. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  24996. + tmp_sharedflag='-qmkshrobj'
  24997. + tmp_addflag= ;;
  24998. + esac
  24999. + case `$CC -V 2>&1 | sed 5q` in
  25000. + *Sun\ C*) # Sun C 5.9
  25001. + 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'
  25002. + compiler_needs_object=yes
  25003. + tmp_sharedflag='-G' ;;
  25004. + *Sun\ F*) # Sun Fortran 8.3
  25005. + tmp_sharedflag='-G' ;;
  25006. + esac
  25007. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25008. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  25009. -# if CDPATH is set.
  25010. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25011. + if test "x$supports_anon_versioning" = xyes; then
  25012. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  25013. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25014. + echo "local: *; };" >> $output_objdir/$libname.ver~
  25015. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  25016. + fi
  25017. -# The names of the tagged configurations supported by this script.
  25018. -available_tags=
  25019. + case $cc_basename in
  25020. + xlf*)
  25021. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  25022. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  25023. + hardcode_libdir_flag_spec=
  25024. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  25025. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  25026. + if test "x$supports_anon_versioning" = xyes; then
  25027. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  25028. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  25029. + echo "local: *; };" >> $output_objdir/$libname.ver~
  25030. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  25031. + fi
  25032. + ;;
  25033. + esac
  25034. + else
  25035. + ld_shlibs=no
  25036. + fi
  25037. + ;;
  25038. -# ### BEGIN LIBTOOL CONFIG
  25039. + netbsd* | netbsdelf*-gnu)
  25040. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  25041. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  25042. + wlarc=
  25043. + else
  25044. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25045. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25046. + fi
  25047. + ;;
  25048. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25049. + solaris*)
  25050. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  25051. + ld_shlibs=no
  25052. + cat <<_LT_EOF 1>&2
  25053. -# Shell to use when invoking shell scripts.
  25054. -SHELL=$lt_SHELL
  25055. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  25056. +*** create shared libraries on Solaris systems. Therefore, libtool
  25057. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25058. +*** binutils to release 2.9.1 or newer. Another option is to modify
  25059. +*** your PATH or compiler configuration so that the native linker is
  25060. +*** used, and then restart.
  25061. -# Whether or not to build shared libraries.
  25062. -build_libtool_libs=$enable_shared
  25063. +_LT_EOF
  25064. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25065. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25066. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25067. + else
  25068. + ld_shlibs=no
  25069. + fi
  25070. + ;;
  25071. -# Whether or not to build static libraries.
  25072. -build_old_libs=$enable_static
  25073. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  25074. + case `$LD -v 2>&1` in
  25075. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  25076. + ld_shlibs=no
  25077. + cat <<_LT_EOF 1>&2
  25078. -# Whether or not to add -lc for building shared libraries.
  25079. -build_libtool_need_lc=$archive_cmds_need_lc
  25080. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  25081. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  25082. +*** is disabling shared libraries support. We urge you to upgrade GNU
  25083. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  25084. +*** your PATH or compiler configuration so that the native linker is
  25085. +*** used, and then restart.
  25086. -# Whether or not to disallow shared libs when runtime libs are static
  25087. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25088. +_LT_EOF
  25089. + ;;
  25090. + *)
  25091. + # For security reasons, it is highly recommended that you always
  25092. + # use absolute paths for naming shared libraries, and exclude the
  25093. + # DT_RUNPATH tag from executables and libraries. But doing so
  25094. + # requires that you compile everything twice, which is a pain.
  25095. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25096. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25097. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25098. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25099. + else
  25100. + ld_shlibs=no
  25101. + fi
  25102. + ;;
  25103. + esac
  25104. + ;;
  25105. -# Whether or not to optimize for fast installation.
  25106. -fast_install=$enable_fast_install
  25107. + sunos4*)
  25108. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25109. + wlarc=
  25110. + hardcode_direct=yes
  25111. + hardcode_shlibpath_var=no
  25112. + ;;
  25113. -# The host system.
  25114. -host_alias=$host_alias
  25115. -host=$host
  25116. -host_os=$host_os
  25117. + *)
  25118. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  25119. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25120. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  25121. + else
  25122. + ld_shlibs=no
  25123. + fi
  25124. + ;;
  25125. + esac
  25126. -# The build system.
  25127. -build_alias=$build_alias
  25128. -build=$build
  25129. -build_os=$build_os
  25130. + if test "$ld_shlibs" = no; then
  25131. + runpath_var=
  25132. + hardcode_libdir_flag_spec=
  25133. + export_dynamic_flag_spec=
  25134. + whole_archive_flag_spec=
  25135. + fi
  25136. + else
  25137. + # PORTME fill in a description of your system's linker (not GNU ld)
  25138. + case $host_os in
  25139. + aix3*)
  25140. + allow_undefined_flag=unsupported
  25141. + always_export_symbols=yes
  25142. + 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'
  25143. + # Note: this linker hardcodes the directories in LIBPATH if there
  25144. + # are no directories specified by -L.
  25145. + hardcode_minus_L=yes
  25146. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  25147. + # Neither direct hardcoding nor static linking is supported with a
  25148. + # broken collect2.
  25149. + hardcode_direct=unsupported
  25150. + fi
  25151. + ;;
  25152. -# An echo program that does not interpret backslashes.
  25153. -echo=$lt_echo
  25154. + aix[4-9]*)
  25155. + if test "$host_cpu" = ia64; then
  25156. + # On IA64, the linker does run time linking by default, so we don't
  25157. + # have to do anything special.
  25158. + aix_use_runtimelinking=no
  25159. + exp_sym_flag='-Bexport'
  25160. + no_entry_flag=""
  25161. + else
  25162. + # If we're using GNU nm, then we don't want the "-C" option.
  25163. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  25164. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  25165. + 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'
  25166. + else
  25167. + 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'
  25168. + fi
  25169. + aix_use_runtimelinking=no
  25170. -# The archiver.
  25171. -AR=$lt_AR
  25172. -AR_FLAGS=$lt_AR_FLAGS
  25173. + # Test if we are trying to use run time linking or normal
  25174. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  25175. + # need to do runtime linking.
  25176. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  25177. + for ld_flag in $LDFLAGS; do
  25178. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  25179. + aix_use_runtimelinking=yes
  25180. + break
  25181. + fi
  25182. + done
  25183. + ;;
  25184. + esac
  25185. -# A C compiler.
  25186. -LTCC=$lt_LTCC
  25187. + exp_sym_flag='-bexport'
  25188. + no_entry_flag='-bnoentry'
  25189. + fi
  25190. -# LTCC compiler flags.
  25191. -LTCFLAGS=$lt_LTCFLAGS
  25192. + # When large executables or shared objects are built, AIX ld can
  25193. + # have problems creating the table of contents. If linking a library
  25194. + # or program results in "error TOC overflow" add -mminimal-toc to
  25195. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  25196. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  25197. -# A language-specific compiler.
  25198. -CC=$lt_compiler
  25199. + archive_cmds=''
  25200. + hardcode_direct=yes
  25201. + hardcode_direct_absolute=yes
  25202. + hardcode_libdir_separator=':'
  25203. + link_all_deplibs=yes
  25204. + file_list_spec='${wl}-f,'
  25205. -# Is the compiler the GNU C compiler?
  25206. -with_gcc=$GCC
  25207. + if test "$GCC" = yes; then
  25208. + case $host_os in aix4.[012]|aix4.[012].*)
  25209. + # We only want to do this on AIX 4.2 and lower, the check
  25210. + # below for broken collect2 doesn't work under 4.3+
  25211. + collect2name=`${CC} -print-prog-name=collect2`
  25212. + if test -f "$collect2name" &&
  25213. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  25214. + then
  25215. + # We have reworked collect2
  25216. + :
  25217. + else
  25218. + # We have old collect2
  25219. + hardcode_direct=unsupported
  25220. + # It fails to find uninstalled libraries when the uninstalled
  25221. + # path is not listed in the libpath. Setting hardcode_minus_L
  25222. + # to unsupported forces relinking
  25223. + hardcode_minus_L=yes
  25224. + hardcode_libdir_flag_spec='-L$libdir'
  25225. + hardcode_libdir_separator=
  25226. + fi
  25227. + ;;
  25228. + esac
  25229. + shared_flag='-shared'
  25230. + if test "$aix_use_runtimelinking" = yes; then
  25231. + shared_flag="$shared_flag "'${wl}-G'
  25232. + fi
  25233. + link_all_deplibs=no
  25234. + else
  25235. + # not using gcc
  25236. + if test "$host_cpu" = ia64; then
  25237. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  25238. + # chokes on -Wl,-G. The following line is correct:
  25239. + shared_flag='-G'
  25240. + else
  25241. + if test "$aix_use_runtimelinking" = yes; then
  25242. + shared_flag='${wl}-G'
  25243. + else
  25244. + shared_flag='${wl}-bM:SRE'
  25245. + fi
  25246. + fi
  25247. + fi
  25248. -# An ERE matcher.
  25249. -EGREP=$lt_EGREP
  25250. -
  25251. -# The linker used to build libraries.
  25252. -LD=$lt_LD
  25253. + export_dynamic_flag_spec='${wl}-bexpall'
  25254. + # It seems that -bexpall does not export symbols beginning with
  25255. + # underscore (_), so it is better to generate a list of symbols to export.
  25256. + always_export_symbols=yes
  25257. + if test "$aix_use_runtimelinking" = yes; then
  25258. + # Warning - without using the other runtime loading flags (-brtl),
  25259. + # -berok will link without error, but may produce a broken library.
  25260. + allow_undefined_flag='-berok'
  25261. + # Determine the default libpath from the value encoded in an
  25262. + # empty executable.
  25263. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25264. +/* end confdefs.h. */
  25265. -# Whether we need hard or soft links.
  25266. -LN_S=$lt_LN_S
  25267. +int
  25268. +main ()
  25269. +{
  25270. -# A BSD-compatible nm program.
  25271. -NM=$lt_NM
  25272. + ;
  25273. + return 0;
  25274. +}
  25275. +_ACEOF
  25276. +if ac_fn_c_try_link "$LINENO"; then :
  25277. -# A symbol stripping program
  25278. -STRIP=$lt_STRIP
  25279. +lt_aix_libpath_sed='
  25280. + /Import File Strings/,/^$/ {
  25281. + /^0/ {
  25282. + s/^0 *\(.*\)$/\1/
  25283. + p
  25284. + }
  25285. + }'
  25286. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25287. +# Check for a 64-bit object if we didn't find anything.
  25288. +if test -z "$aix_libpath"; then
  25289. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25290. +fi
  25291. +fi
  25292. +rm -f core conftest.err conftest.$ac_objext \
  25293. + conftest$ac_exeext conftest.$ac_ext
  25294. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25295. -# Used to examine libraries when file_magic_cmd begins "file"
  25296. -MAGIC_CMD=$MAGIC_CMD
  25297. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25298. + 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"
  25299. + else
  25300. + if test "$host_cpu" = ia64; then
  25301. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  25302. + allow_undefined_flag="-z nodefs"
  25303. + 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"
  25304. + else
  25305. + # Determine the default libpath from the value encoded in an
  25306. + # empty executable.
  25307. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25308. +/* end confdefs.h. */
  25309. -# Used on cygwin: DLL creation program.
  25310. -DLLTOOL="$DLLTOOL"
  25311. +int
  25312. +main ()
  25313. +{
  25314. -# Used on cygwin: object dumper.
  25315. -OBJDUMP="$OBJDUMP"
  25316. + ;
  25317. + return 0;
  25318. +}
  25319. +_ACEOF
  25320. +if ac_fn_c_try_link "$LINENO"; then :
  25321. -# Used on cygwin: assembler.
  25322. -AS="$AS"
  25323. +lt_aix_libpath_sed='
  25324. + /Import File Strings/,/^$/ {
  25325. + /^0/ {
  25326. + s/^0 *\(.*\)$/\1/
  25327. + p
  25328. + }
  25329. + }'
  25330. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25331. +# Check for a 64-bit object if we didn't find anything.
  25332. +if test -z "$aix_libpath"; then
  25333. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  25334. +fi
  25335. +fi
  25336. +rm -f core conftest.err conftest.$ac_objext \
  25337. + conftest$ac_exeext conftest.$ac_ext
  25338. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  25339. -# The name of the directory that contains temporary libtool files.
  25340. -objdir=$objdir
  25341. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  25342. + # Warning - without using the other run time loading flags,
  25343. + # -berok will link without error, but may produce a broken library.
  25344. + no_undefined_flag=' ${wl}-bernotok'
  25345. + allow_undefined_flag=' ${wl}-berok'
  25346. + # Exported symbols can be pulled into shared objects from archives
  25347. + whole_archive_flag_spec='$convenience'
  25348. + archive_cmds_need_lc=yes
  25349. + # This is similar to how AIX traditionally builds its shared libraries.
  25350. + 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'
  25351. + fi
  25352. + fi
  25353. + ;;
  25354. -# How to create reloadable object files.
  25355. -reload_flag=$lt_reload_flag
  25356. -reload_cmds=$lt_reload_cmds
  25357. + amigaos*)
  25358. + case $host_cpu in
  25359. + powerpc)
  25360. + # see comment about AmigaOS4 .so support
  25361. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  25362. + archive_expsym_cmds=''
  25363. + ;;
  25364. + m68k)
  25365. + 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)'
  25366. + hardcode_libdir_flag_spec='-L$libdir'
  25367. + hardcode_minus_L=yes
  25368. + ;;
  25369. + esac
  25370. + ;;
  25371. -# How to pass a linker flag through the compiler.
  25372. -wl=$lt_lt_prog_compiler_wl
  25373. + bsdi[45]*)
  25374. + export_dynamic_flag_spec=-rdynamic
  25375. + ;;
  25376. -# Object file suffix (normally "o").
  25377. -objext="$ac_objext"
  25378. + cygwin* | mingw* | pw32* | cegcc*)
  25379. + # When not using gcc, we currently assume that we are using
  25380. + # Microsoft Visual C++.
  25381. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  25382. + # no search path for DLLs.
  25383. + hardcode_libdir_flag_spec=' '
  25384. + allow_undefined_flag=unsupported
  25385. + # Tell ltmain to make .lib files, not .a files.
  25386. + libext=lib
  25387. + # Tell ltmain to make .dll files, not .so files.
  25388. + shrext_cmds=".dll"
  25389. + # FIXME: Setting linknames here is a bad hack.
  25390. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  25391. + # The linker will automatically build a .lib file if we build a DLL.
  25392. + old_archive_from_new_cmds='true'
  25393. + # FIXME: Should let the user specify the lib program.
  25394. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  25395. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  25396. + enable_shared_with_static_runtimes=yes
  25397. + ;;
  25398. -# Old archive suffix (normally "a").
  25399. -libext="$libext"
  25400. + darwin* | rhapsody*)
  25401. -# Shared library suffix (normally ".so").
  25402. -shrext_cmds='$shrext_cmds'
  25403. -# Executable file suffix (normally "").
  25404. -exeext="$exeext"
  25405. + archive_cmds_need_lc=no
  25406. + hardcode_direct=no
  25407. + hardcode_automatic=yes
  25408. + hardcode_shlibpath_var=unsupported
  25409. + whole_archive_flag_spec=''
  25410. + link_all_deplibs=yes
  25411. + allow_undefined_flag="$_lt_dar_allow_undefined"
  25412. + case $cc_basename in
  25413. + ifort*) _lt_dar_can_shared=yes ;;
  25414. + *) _lt_dar_can_shared=$GCC ;;
  25415. + esac
  25416. + if test "$_lt_dar_can_shared" = "yes"; then
  25417. + output_verbose_link_cmd=echo
  25418. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  25419. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  25420. + 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}"
  25421. + 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}"
  25422. -# Additional compiler flags for building library objects.
  25423. -pic_flag=$lt_lt_prog_compiler_pic
  25424. -pic_mode=$pic_mode
  25425. + else
  25426. + ld_shlibs=no
  25427. + fi
  25428. -# What is the maximum length of a command?
  25429. -max_cmd_len=$lt_cv_sys_max_cmd_len
  25430. + ;;
  25431. -# Does compiler simultaneously support -c and -o options?
  25432. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25433. + dgux*)
  25434. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25435. + hardcode_libdir_flag_spec='-L$libdir'
  25436. + hardcode_shlibpath_var=no
  25437. + ;;
  25438. +
  25439. + freebsd1*)
  25440. + ld_shlibs=no
  25441. + ;;
  25442. +
  25443. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  25444. + # support. Future versions do this automatically, but an explicit c++rt0.o
  25445. + # does not break anything, and helps significantly (at the cost of a little
  25446. + # extra space).
  25447. + freebsd2.2*)
  25448. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  25449. + hardcode_libdir_flag_spec='-R$libdir'
  25450. + hardcode_direct=yes
  25451. + hardcode_shlibpath_var=no
  25452. + ;;
  25453. +
  25454. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  25455. + freebsd2*)
  25456. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25457. + hardcode_direct=yes
  25458. + hardcode_minus_L=yes
  25459. + hardcode_shlibpath_var=no
  25460. + ;;
  25461. +
  25462. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  25463. + freebsd* | dragonfly*)
  25464. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  25465. + hardcode_libdir_flag_spec='-R$libdir'
  25466. + hardcode_direct=yes
  25467. + hardcode_shlibpath_var=no
  25468. + ;;
  25469. +
  25470. + hpux9*)
  25471. + if test "$GCC" = yes; then
  25472. + 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'
  25473. + else
  25474. + 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'
  25475. + fi
  25476. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25477. + hardcode_libdir_separator=:
  25478. + hardcode_direct=yes
  25479. +
  25480. + # hardcode_minus_L: Not really in the search PATH,
  25481. + # but as the default location of the library.
  25482. + hardcode_minus_L=yes
  25483. + export_dynamic_flag_spec='${wl}-E'
  25484. + ;;
  25485. +
  25486. + hpux10*)
  25487. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25488. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25489. + else
  25490. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  25491. + fi
  25492. + if test "$with_gnu_ld" = no; then
  25493. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25494. + hardcode_libdir_flag_spec_ld='+b $libdir'
  25495. + hardcode_libdir_separator=:
  25496. + hardcode_direct=yes
  25497. + hardcode_direct_absolute=yes
  25498. + export_dynamic_flag_spec='${wl}-E'
  25499. + # hardcode_minus_L: Not really in the search PATH,
  25500. + # but as the default location of the library.
  25501. + hardcode_minus_L=yes
  25502. + fi
  25503. + ;;
  25504. +
  25505. + hpux11*)
  25506. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  25507. + case $host_cpu in
  25508. + hppa*64*)
  25509. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25510. + ;;
  25511. + ia64*)
  25512. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25513. + ;;
  25514. + *)
  25515. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25516. + ;;
  25517. + esac
  25518. + else
  25519. + case $host_cpu in
  25520. + hppa*64*)
  25521. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25522. + ;;
  25523. + ia64*)
  25524. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  25525. + ;;
  25526. + *)
  25527. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  25528. + ;;
  25529. + esac
  25530. + fi
  25531. + if test "$with_gnu_ld" = no; then
  25532. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  25533. + hardcode_libdir_separator=:
  25534. +
  25535. + case $host_cpu in
  25536. + hppa*64*|ia64*)
  25537. + hardcode_direct=no
  25538. + hardcode_shlibpath_var=no
  25539. + ;;
  25540. + *)
  25541. + hardcode_direct=yes
  25542. + hardcode_direct_absolute=yes
  25543. + export_dynamic_flag_spec='${wl}-E'
  25544. +
  25545. + # hardcode_minus_L: Not really in the search PATH,
  25546. + # but as the default location of the library.
  25547. + hardcode_minus_L=yes
  25548. + ;;
  25549. + esac
  25550. + fi
  25551. + ;;
  25552. +
  25553. + irix5* | irix6* | nonstopux*)
  25554. + if test "$GCC" = yes; then
  25555. + 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'
  25556. + # Try to use the -exported_symbol ld option, if it does not
  25557. + # work, assume that -exports_file does not work either and
  25558. + # implicitly export all symbols.
  25559. + save_LDFLAGS="$LDFLAGS"
  25560. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  25561. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25562. +/* end confdefs.h. */
  25563. +int foo(void) {}
  25564. +_ACEOF
  25565. +if ac_fn_c_try_link "$LINENO"; then :
  25566. + 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'
  25567. +
  25568. +fi
  25569. +rm -f core conftest.err conftest.$ac_objext \
  25570. + conftest$ac_exeext conftest.$ac_ext
  25571. + LDFLAGS="$save_LDFLAGS"
  25572. + else
  25573. + 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'
  25574. + 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'
  25575. + fi
  25576. + archive_cmds_need_lc='no'
  25577. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25578. + hardcode_libdir_separator=:
  25579. + inherit_rpath=yes
  25580. + link_all_deplibs=yes
  25581. + ;;
  25582. +
  25583. + netbsd* | netbsdelf*-gnu)
  25584. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  25585. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  25586. + else
  25587. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  25588. + fi
  25589. + hardcode_libdir_flag_spec='-R$libdir'
  25590. + hardcode_direct=yes
  25591. + hardcode_shlibpath_var=no
  25592. + ;;
  25593. +
  25594. + newsos6)
  25595. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25596. + hardcode_direct=yes
  25597. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25598. + hardcode_libdir_separator=:
  25599. + hardcode_shlibpath_var=no
  25600. + ;;
  25601. +
  25602. + *nto* | *qnx*)
  25603. + ;;
  25604. +
  25605. + openbsd*)
  25606. + if test -f /usr/libexec/ld.so; then
  25607. + hardcode_direct=yes
  25608. + hardcode_shlibpath_var=no
  25609. + hardcode_direct_absolute=yes
  25610. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25611. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25612. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  25613. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25614. + export_dynamic_flag_spec='${wl}-E'
  25615. + else
  25616. + case $host_os in
  25617. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  25618. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  25619. + hardcode_libdir_flag_spec='-R$libdir'
  25620. + ;;
  25621. + *)
  25622. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  25623. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  25624. + ;;
  25625. + esac
  25626. + fi
  25627. + else
  25628. + ld_shlibs=no
  25629. + fi
  25630. + ;;
  25631. +
  25632. + os2*)
  25633. + hardcode_libdir_flag_spec='-L$libdir'
  25634. + hardcode_minus_L=yes
  25635. + allow_undefined_flag=unsupported
  25636. + 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'
  25637. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  25638. + ;;
  25639. +
  25640. + osf3*)
  25641. + if test "$GCC" = yes; then
  25642. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25643. + 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'
  25644. + else
  25645. + allow_undefined_flag=' -expect_unresolved \*'
  25646. + 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'
  25647. + fi
  25648. + archive_cmds_need_lc='no'
  25649. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25650. + hardcode_libdir_separator=:
  25651. + ;;
  25652. +
  25653. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  25654. + if test "$GCC" = yes; then
  25655. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  25656. + 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'
  25657. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  25658. + else
  25659. + allow_undefined_flag=' -expect_unresolved \*'
  25660. + 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'
  25661. + 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~
  25662. + $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'
  25663. +
  25664. + # Both c and cxx compiler support -rpath directly
  25665. + hardcode_libdir_flag_spec='-rpath $libdir'
  25666. + fi
  25667. + archive_cmds_need_lc='no'
  25668. + hardcode_libdir_separator=:
  25669. + ;;
  25670. +
  25671. + solaris*)
  25672. + no_undefined_flag=' -z defs'
  25673. + if test "$GCC" = yes; then
  25674. + wlarc='${wl}'
  25675. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25676. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  25677. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  25678. + else
  25679. + case `$CC -V 2>&1` in
  25680. + *"Compilers 5.0"*)
  25681. + wlarc=''
  25682. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25683. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  25684. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  25685. + ;;
  25686. + *)
  25687. + wlarc='${wl}'
  25688. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25689. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  25690. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  25691. + ;;
  25692. + esac
  25693. + fi
  25694. + hardcode_libdir_flag_spec='-R$libdir'
  25695. + hardcode_shlibpath_var=no
  25696. + case $host_os in
  25697. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  25698. + *)
  25699. + # The compiler driver will combine and reorder linker options,
  25700. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  25701. + # but is careful enough not to reorder.
  25702. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  25703. + if test "$GCC" = yes; then
  25704. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  25705. + else
  25706. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  25707. + fi
  25708. + ;;
  25709. + esac
  25710. + link_all_deplibs=yes
  25711. + ;;
  25712. +
  25713. + sunos4*)
  25714. + if test "x$host_vendor" = xsequent; then
  25715. + # Use $CC to link under sequent, because it throws in some extra .o
  25716. + # files that make .init and .fini sections work.
  25717. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  25718. + else
  25719. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  25720. + fi
  25721. + hardcode_libdir_flag_spec='-L$libdir'
  25722. + hardcode_direct=yes
  25723. + hardcode_minus_L=yes
  25724. + hardcode_shlibpath_var=no
  25725. + ;;
  25726. +
  25727. + sysv4)
  25728. + case $host_vendor in
  25729. + sni)
  25730. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25731. + hardcode_direct=yes # is this really true???
  25732. + ;;
  25733. + siemens)
  25734. + ## LD is ld it makes a PLAMLIB
  25735. + ## CC just makes a GrossModule.
  25736. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  25737. + reload_cmds='$CC -r -o $output$reload_objs'
  25738. + hardcode_direct=no
  25739. + ;;
  25740. + motorola)
  25741. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25742. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  25743. + ;;
  25744. + esac
  25745. + runpath_var='LD_RUN_PATH'
  25746. + hardcode_shlibpath_var=no
  25747. + ;;
  25748. +
  25749. + sysv4.3*)
  25750. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25751. + hardcode_shlibpath_var=no
  25752. + export_dynamic_flag_spec='-Bexport'
  25753. + ;;
  25754. +
  25755. + sysv4*MP*)
  25756. + if test -d /usr/nec; then
  25757. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25758. + hardcode_shlibpath_var=no
  25759. + runpath_var=LD_RUN_PATH
  25760. + hardcode_runpath_var=yes
  25761. + ld_shlibs=yes
  25762. + fi
  25763. + ;;
  25764. +
  25765. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  25766. + no_undefined_flag='${wl}-z,text'
  25767. + archive_cmds_need_lc=no
  25768. + hardcode_shlibpath_var=no
  25769. + runpath_var='LD_RUN_PATH'
  25770. +
  25771. + if test "$GCC" = yes; then
  25772. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25773. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25774. + else
  25775. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25776. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25777. + fi
  25778. + ;;
  25779. +
  25780. + sysv5* | sco3.2v5* | sco5v6*)
  25781. + # Note: We can NOT use -z defs as we might desire, because we do not
  25782. + # link with -lc, and that would cause any symbols used from libc to
  25783. + # always be unresolved, which means just about no library would
  25784. + # ever link correctly. If we're not using GNU ld we use -z text
  25785. + # though, which does catch some bad symbols but isn't as heavy-handed
  25786. + # as -z defs.
  25787. + no_undefined_flag='${wl}-z,text'
  25788. + allow_undefined_flag='${wl}-z,nodefs'
  25789. + archive_cmds_need_lc=no
  25790. + hardcode_shlibpath_var=no
  25791. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  25792. + hardcode_libdir_separator=':'
  25793. + link_all_deplibs=yes
  25794. + export_dynamic_flag_spec='${wl}-Bexport'
  25795. + runpath_var='LD_RUN_PATH'
  25796. +
  25797. + if test "$GCC" = yes; then
  25798. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25799. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25800. + else
  25801. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25802. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25803. + fi
  25804. + ;;
  25805. +
  25806. + uts4*)
  25807. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25808. + hardcode_libdir_flag_spec='-L$libdir'
  25809. + hardcode_shlibpath_var=no
  25810. + ;;
  25811. +
  25812. + *)
  25813. + ld_shlibs=no
  25814. + ;;
  25815. + esac
  25816. +
  25817. + if test x$host_vendor = xsni; then
  25818. + case $host in
  25819. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  25820. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  25821. + ;;
  25822. + esac
  25823. + fi
  25824. + fi
  25825. +
  25826. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  25827. +$as_echo "$ld_shlibs" >&6; }
  25828. +test "$ld_shlibs" = no && can_build_shared=no
  25829. +
  25830. +with_gnu_ld=$with_gnu_ld
  25831. +
  25832. +
  25833. +
  25834. +
  25835. +
  25836. +
  25837. +
  25838. +
  25839. +
  25840. +
  25841. +
  25842. +
  25843. +
  25844. +
  25845. +
  25846. +#
  25847. +# Do we need to explicitly link libc?
  25848. +#
  25849. +case "x$archive_cmds_need_lc" in
  25850. +x|xyes)
  25851. + # Assume -lc should be added
  25852. + archive_cmds_need_lc=yes
  25853. +
  25854. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  25855. + case $archive_cmds in
  25856. + *'~'*)
  25857. + # FIXME: we may have to deal with multi-command sequences.
  25858. + ;;
  25859. + '$CC '*)
  25860. + # Test whether the compiler implicitly links with -lc since on some
  25861. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25862. + # to ld, don't add -lc before -lgcc.
  25863. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  25864. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  25865. + $RM conftest*
  25866. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25867. +
  25868. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  25869. + (eval $ac_compile) 2>&5
  25870. + ac_status=$?
  25871. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25872. + test $ac_status = 0; } 2>conftest.err; then
  25873. + soname=conftest
  25874. + lib=conftest
  25875. + libobjs=conftest.$ac_objext
  25876. + deplibs=
  25877. + wl=$lt_prog_compiler_wl
  25878. + pic_flag=$lt_prog_compiler_pic
  25879. + compiler_flags=-v
  25880. + linker_flags=-v
  25881. + verstring=
  25882. + output_objdir=.
  25883. + libname=conftest
  25884. + lt_save_allow_undefined_flag=$allow_undefined_flag
  25885. + allow_undefined_flag=
  25886. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  25887. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25888. + ac_status=$?
  25889. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25890. + test $ac_status = 0; }
  25891. + then
  25892. + archive_cmds_need_lc=no
  25893. + else
  25894. + archive_cmds_need_lc=yes
  25895. + fi
  25896. + allow_undefined_flag=$lt_save_allow_undefined_flag
  25897. + else
  25898. + cat conftest.err 1>&5
  25899. + fi
  25900. + $RM conftest*
  25901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  25902. +$as_echo "$archive_cmds_need_lc" >&6; }
  25903. + ;;
  25904. + esac
  25905. + fi
  25906. + ;;
  25907. +esac
  25908. -# Must we lock files when doing compilation?
  25909. -need_locks=$lt_need_locks
  25910. -# Do we need the lib prefix for modules?
  25911. -need_lib_prefix=$need_lib_prefix
  25912. -# Do we need a version for libraries?
  25913. -need_version=$need_version
  25914. -# Whether dlopen is supported.
  25915. -dlopen_support=$enable_dlopen
  25916. -# Whether dlopen of programs is supported.
  25917. -dlopen_self=$enable_dlopen_self
  25918. -# Whether dlopen of statically linked programs is supported.
  25919. -dlopen_self_static=$enable_dlopen_self_static
  25920. -# Compiler flag to prevent dynamic linking.
  25921. -link_static_flag=$lt_lt_prog_compiler_static
  25922. -# Compiler flag to turn off builtin functions.
  25923. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25924. -# Compiler flag to allow reflexive dlopens.
  25925. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25926. -# Compiler flag to generate shared objects directly from archives.
  25927. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25928. -# Compiler flag to generate thread-safe objects.
  25929. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  25930. -# Library versioning type.
  25931. -version_type=$version_type
  25932. -# Format of library name prefix.
  25933. -libname_spec=$lt_libname_spec
  25934. -# List of archive names. First name is the real one, the rest are links.
  25935. -# The last name is the one that the linker finds with -lNAME.
  25936. -library_names_spec=$lt_library_names_spec
  25937. -# The coded name of the library, if different from the real name.
  25938. -soname_spec=$lt_soname_spec
  25939. -# Commands used to build and install an old-style archive.
  25940. -RANLIB=$lt_RANLIB
  25941. -old_archive_cmds=$lt_old_archive_cmds
  25942. -old_postinstall_cmds=$lt_old_postinstall_cmds
  25943. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25944. -# Create an old-style archive from a shared archive.
  25945. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25946. -# Create a temporary old-style archive to link instead of a shared archive.
  25947. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25948. -# Commands used to build and install a shared archive.
  25949. -archive_cmds=$lt_archive_cmds
  25950. -archive_expsym_cmds=$lt_archive_expsym_cmds
  25951. -postinstall_cmds=$lt_postinstall_cmds
  25952. -postuninstall_cmds=$lt_postuninstall_cmds
  25953. -# Commands used to build a loadable module (assumed same as above if empty)
  25954. -module_cmds=$lt_module_cmds
  25955. -module_expsym_cmds=$lt_module_expsym_cmds
  25956. -# Commands to strip libraries.
  25957. -old_striplib=$lt_old_striplib
  25958. -striplib=$lt_striplib
  25959. -# Dependencies to place before the objects being linked to create a
  25960. -# shared library.
  25961. -predep_objects=$lt_predep_objects
  25962. -
  25963. -# Dependencies to place after the objects being linked to create a
  25964. -# shared library.
  25965. -postdep_objects=$lt_postdep_objects
  25966. -
  25967. -# Dependencies to place before the objects being linked to create a
  25968. -# shared library.
  25969. -predeps=$lt_predeps
  25970. -
  25971. -# Dependencies to place after the objects being linked to create a
  25972. -# shared library.
  25973. -postdeps=$lt_postdeps
  25974. -
  25975. -# The directories searched by this compiler when creating a shared
  25976. -# library
  25977. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25978. -
  25979. -# The library search path used internally by the compiler when linking
  25980. -# a shared library.
  25981. -compiler_lib_search_path=$lt_compiler_lib_search_path
  25982. -# Method to check whether dependent libraries are shared objects.
  25983. -deplibs_check_method=$lt_deplibs_check_method
  25984. -# Command to use when deplibs_check_method == file_magic.
  25985. -file_magic_cmd=$lt_file_magic_cmd
  25986. -# Flag that allows shared libraries with undefined symbols to be built.
  25987. -allow_undefined_flag=$lt_allow_undefined_flag
  25988. -# Flag that forces no undefined symbols.
  25989. -no_undefined_flag=$lt_no_undefined_flag
  25990. -# Commands used to finish a libtool library installation in a directory.
  25991. -finish_cmds=$lt_finish_cmds
  25992. -# Same as above, but a single script fragment to be evaled but not shown.
  25993. -finish_eval=$lt_finish_eval
  25994. -# Take the output of nm and produce a listing of raw symbols and C names.
  25995. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25996. -# Transform the output of nm in a proper C declaration
  25997. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25998. -# Transform the output of nm in a C name address pair
  25999. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26000. -# This is the shared library runtime path variable.
  26001. -runpath_var=$runpath_var
  26002. -# This is the shared library path variable.
  26003. -shlibpath_var=$shlibpath_var
  26004. -# Is shlibpath searched before the hard-coded library search path?
  26005. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26006. -# How to hardcode a shared library path into an executable.
  26007. -hardcode_action=$hardcode_action
  26008. -# Whether we should hardcode library paths into libraries.
  26009. -hardcode_into_libs=$hardcode_into_libs
  26010. -# Flag to hardcode \$libdir into a binary during linking.
  26011. -# This must work even if \$libdir does not exist.
  26012. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26013. -# If ld is used when linking, flag to hardcode \$libdir into
  26014. -# a binary during linking. This must work even if \$libdir does
  26015. -# not exist.
  26016. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  26017. -# Whether we need a single -rpath flag with a separated argument.
  26018. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26019. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26020. -# resulting binary.
  26021. -hardcode_direct=$hardcode_direct
  26022. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26023. -# resulting binary.
  26024. -hardcode_minus_L=$hardcode_minus_L
  26025. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26026. -# the resulting binary.
  26027. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  26028. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  26029. -# and all subsequent libraries and executables linked against it.
  26030. -hardcode_automatic=$hardcode_automatic
  26031. -# Variables whose values should be saved in libtool wrapper scripts and
  26032. -# restored at relink time.
  26033. -variables_saved_for_relink="$variables_saved_for_relink"
  26034. -# Whether libtool must link a program against all its dependency libraries.
  26035. -link_all_deplibs=$link_all_deplibs
  26036. -# Compile-time system search path for libraries
  26037. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26038. -# Run-time system search path for libraries
  26039. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26040. -# Fix the shell variable \$srcfile for the compiler.
  26041. -fix_srcfile_path=$lt_fix_srcfile_path
  26042. -# Set to yes if exported symbols are required.
  26043. -always_export_symbols=$always_export_symbols
  26044. -# The commands to list exported symbols.
  26045. -export_symbols_cmds=$lt_export_symbols_cmds
  26046. -# The commands to extract the exported symbol list from a shared archive.
  26047. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26048. -# Symbols that should not be listed in the preloaded symbols.
  26049. -exclude_expsyms=$lt_exclude_expsyms
  26050. -# Symbols that must always be exported.
  26051. -include_expsyms=$lt_include_expsyms
  26052. -# ### END LIBTOOL CONFIG
  26053. -__EOF__
  26054. - case $host_os in
  26055. - aix3*)
  26056. - cat <<\EOF >> "$cfgfile"
  26057. -# AIX sometimes has problems with the GCC collect2 program. For some
  26058. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  26059. -# vanish in a puff of smoke.
  26060. -if test "X${COLLECT_NAMES+set}" != Xset; then
  26061. - COLLECT_NAMES=
  26062. - export COLLECT_NAMES
  26063. -fi
  26064. -EOF
  26065. - ;;
  26066. - esac
  26067. - # We use sed instead of cat because bash on DJGPP gets confused if
  26068. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26069. - # text mode, it properly converts lines to CR/LF. This bash problem
  26070. - # is reportedly fixed, but why not run on old versions too?
  26071. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  26072. - mv -f "$cfgfile" "$ofile" || \
  26073. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26074. - chmod +x "$ofile"
  26075. -else
  26076. - # If there is no Makefile yet, we rely on a make rule to execute
  26077. - # `config.status --recheck' to rerun these tests and create the
  26078. - # libtool script then.
  26079. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26080. - if test -f "$ltmain_in"; then
  26081. - test -f Makefile && make "$ltmain"
  26082. - fi
  26083. -fi
  26084. -ac_ext=c
  26085. -ac_cpp='$CPP $CPPFLAGS'
  26086. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26087. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26088. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26089. -CC="$lt_save_CC"
  26090. -# Check whether --with-tags was given.
  26091. -if test "${with_tags+set}" = set; then
  26092. - withval=$with_tags; tagnames="$withval"
  26093. -fi
  26094. -if test -f "$ltmain" && test -n "$tagnames"; then
  26095. - if test ! -f "${ofile}"; then
  26096. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  26097. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  26098. - fi
  26099. - if test -z "$LTCC"; then
  26100. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  26101. - if test -z "$LTCC"; then
  26102. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  26103. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  26104. - else
  26105. - { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  26106. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  26107. - fi
  26108. - fi
  26109. - if test -z "$LTCFLAGS"; then
  26110. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  26111. - fi
  26112. - # Extract list of available tagged configurations in $ofile.
  26113. - # Note that this assumes the entire list is on one line.
  26114. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  26115. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26116. - for tagname in $tagnames; do
  26117. - IFS="$lt_save_ifs"
  26118. - # Check whether tagname contains only valid characters
  26119. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  26120. - "") ;;
  26121. - *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  26122. -$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  26123. - { (exit 1); exit 1; }; }
  26124. - ;;
  26125. - esac
  26126. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  26127. - then
  26128. - { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  26129. -$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  26130. - { (exit 1); exit 1; }; }
  26131. - fi
  26132. - # Update the list of available tags.
  26133. - if test -n "$tagname"; then
  26134. - echo appending configuration tag \"$tagname\" to $ofile
  26135. -
  26136. - case $tagname in
  26137. - CXX)
  26138. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  26139. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  26140. - (test "X$CXX" != "Xg++"))) ; then
  26141. - ac_ext=cpp
  26142. -ac_cpp='$CXXCPP $CPPFLAGS'
  26143. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26144. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26145. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26146. -archive_cmds_need_lc_CXX=no
  26147. -allow_undefined_flag_CXX=
  26148. -always_export_symbols_CXX=no
  26149. -archive_expsym_cmds_CXX=
  26150. -export_dynamic_flag_spec_CXX=
  26151. -hardcode_direct_CXX=no
  26152. -hardcode_libdir_flag_spec_CXX=
  26153. -hardcode_libdir_flag_spec_ld_CXX=
  26154. -hardcode_libdir_separator_CXX=
  26155. -hardcode_minus_L_CXX=no
  26156. -hardcode_shlibpath_var_CXX=unsupported
  26157. -hardcode_automatic_CXX=no
  26158. -module_cmds_CXX=
  26159. -module_expsym_cmds_CXX=
  26160. -link_all_deplibs_CXX=unknown
  26161. -old_archive_cmds_CXX=$old_archive_cmds
  26162. -no_undefined_flag_CXX=
  26163. -whole_archive_flag_spec_CXX=
  26164. -enable_shared_with_static_runtimes_CXX=no
  26165. -
  26166. -# Dependencies to place before and after the object being linked:
  26167. -predep_objects_CXX=
  26168. -postdep_objects_CXX=
  26169. -predeps_CXX=
  26170. -postdeps_CXX=
  26171. -compiler_lib_search_path_CXX=
  26172. -compiler_lib_search_dirs_CXX=
  26173. -# Source file extension for C++ test sources.
  26174. -ac_ext=cpp
  26175. -# Object file extension for compiled C++ test sources.
  26176. -objext=o
  26177. -objext_CXX=$objext
  26178. -# Code to be used in simple compile tests
  26179. -lt_simple_compile_test_code="int some_variable = 0;"
  26180. -# Code to be used in simple link tests
  26181. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  26182. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26183. -# If no C compiler was specified, use CC.
  26184. -LTCC=${LTCC-"$CC"}
  26185. -# If no C compiler flags were specified, use CFLAGS.
  26186. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26187. -# Allow CC to be a program name with arguments.
  26188. -compiler=$CC
  26189. -# save warnings/boilerplate of simple test code
  26190. -ac_outfile=conftest.$ac_objext
  26191. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26192. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26193. -_lt_compiler_boilerplate=`cat conftest.err`
  26194. -$rm conftest*
  26195. -ac_outfile=conftest.$ac_objext
  26196. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26197. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26198. -_lt_linker_boilerplate=`cat conftest.err`
  26199. -$rm -r conftest*
  26200. -# Allow CC to be a program name with arguments.
  26201. -lt_save_CC=$CC
  26202. -lt_save_LD=$LD
  26203. -lt_save_GCC=$GCC
  26204. -GCC=$GXX
  26205. -lt_save_with_gnu_ld=$with_gnu_ld
  26206. -lt_save_path_LD=$lt_cv_path_LD
  26207. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  26208. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  26209. -else
  26210. - $as_unset lt_cv_prog_gnu_ld
  26211. -fi
  26212. -if test -n "${lt_cv_path_LDCXX+set}"; then
  26213. - lt_cv_path_LD=$lt_cv_path_LDCXX
  26214. -else
  26215. - $as_unset lt_cv_path_LD
  26216. -fi
  26217. -test -z "${LDCXX+set}" || LD=$LDCXX
  26218. -CC=${CXX-"c++"}
  26219. -compiler=$CC
  26220. -compiler_CXX=$CC
  26221. -for cc_temp in $compiler""; do
  26222. - case $cc_temp in
  26223. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26224. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26225. - \-*) ;;
  26226. - *) break;;
  26227. - esac
  26228. -done
  26229. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26230. -# We don't want -fno-exception wen compiling C++ code, so set the
  26231. -# no_builtin_flag separately
  26232. -if test "$GXX" = yes; then
  26233. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  26234. -else
  26235. - lt_prog_compiler_no_builtin_flag_CXX=
  26236. -fi
  26237. -if test "$GXX" = yes; then
  26238. - # Set up default GNU C++ configuration
  26239. -# Check whether --with-gnu-ld was given.
  26240. -if test "${with_gnu_ld+set}" = set; then
  26241. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  26242. -else
  26243. - with_gnu_ld=no
  26244. -fi
  26245. -ac_prog=ld
  26246. -if test "$GCC" = yes; then
  26247. - # Check if gcc -print-prog-name=ld gives a path.
  26248. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  26249. -$as_echo_n "checking for ld used by $CC... " >&6; }
  26250. - case $host in
  26251. - *-*-mingw*)
  26252. - # gcc leaves a trailing carriage return which upsets mingw
  26253. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  26254. - *)
  26255. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  26256. - esac
  26257. - case $ac_prog in
  26258. - # Accept absolute paths.
  26259. - [\\/]* | ?:[\\/]*)
  26260. - re_direlt='/[^/][^/]*/\.\./'
  26261. - # Canonicalize the pathname of ld
  26262. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  26263. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  26264. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  26265. - done
  26266. - test -z "$LD" && LD="$ac_prog"
  26267. - ;;
  26268. - "")
  26269. - # If it fails, then pretend we aren't using GCC.
  26270. - ac_prog=ld
  26271. - ;;
  26272. - *)
  26273. - # If it is relative, then search for the first ld in PATH.
  26274. - with_gnu_ld=unknown
  26275. - ;;
  26276. - esac
  26277. -elif test "$with_gnu_ld" = yes; then
  26278. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  26279. -$as_echo_n "checking for GNU ld... " >&6; }
  26280. -else
  26281. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  26282. -$as_echo_n "checking for non-GNU ld... " >&6; }
  26283. -fi
  26284. -if test "${lt_cv_path_LD+set}" = set; then
  26285. - $as_echo_n "(cached) " >&6
  26286. -else
  26287. - if test -z "$LD"; then
  26288. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26289. - for ac_dir in $PATH; do
  26290. - IFS="$lt_save_ifs"
  26291. - test -z "$ac_dir" && ac_dir=.
  26292. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  26293. - lt_cv_path_LD="$ac_dir/$ac_prog"
  26294. - # Check to see if the program is GNU ld. I'd rather use --version,
  26295. - # but apparently some variants of GNU ld only accept -v.
  26296. - # Break only if it was the GNU/non-GNU ld that we prefer.
  26297. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  26298. - *GNU* | *'with BFD'*)
  26299. - test "$with_gnu_ld" != no && break
  26300. - ;;
  26301. - *)
  26302. - test "$with_gnu_ld" != yes && break
  26303. - ;;
  26304. - esac
  26305. - fi
  26306. - done
  26307. - IFS="$lt_save_ifs"
  26308. -else
  26309. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  26310. -fi
  26311. -fi
  26312. -LD="$lt_cv_path_LD"
  26313. -if test -n "$LD"; then
  26314. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  26315. -$as_echo "$LD" >&6; }
  26316. -else
  26317. - { $as_echo "$as_me:$LINENO: result: no" >&5
  26318. -$as_echo "no" >&6; }
  26319. -fi
  26320. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  26321. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  26322. - { (exit 1); exit 1; }; }
  26323. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  26324. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  26325. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  26326. - $as_echo_n "(cached) " >&6
  26327. -else
  26328. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  26329. -case `$LD -v 2>&1 </dev/null` in
  26330. -*GNU* | *'with BFD'*)
  26331. - lt_cv_prog_gnu_ld=yes
  26332. - ;;
  26333. -*)
  26334. - lt_cv_prog_gnu_ld=no
  26335. - ;;
  26336. -esac
  26337. -fi
  26338. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  26339. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  26340. -with_gnu_ld=$lt_cv_prog_gnu_ld
  26341. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  26342. - # archiving commands below assume that GNU ld is being used.
  26343. - if test "$with_gnu_ld" = yes; then
  26344. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26345. - 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'
  26346. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  26347. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26348. - # If archive_cmds runs LD, not CC, wlarc should be empty
  26349. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  26350. - # investigate it a little bit more. (MM)
  26351. - wlarc='${wl}'
  26352. - # ancient GNU ld didn't support --whole-archive et. al.
  26353. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  26354. - grep 'no-whole-archive' > /dev/null; then
  26355. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26356. - else
  26357. - whole_archive_flag_spec_CXX=
  26358. - fi
  26359. - else
  26360. - with_gnu_ld=no
  26361. - wlarc=
  26362. - # A generic and very simple default shared library creation
  26363. - # command for GNU C++ for the case where it uses the native
  26364. - # linker, instead of GNU ld. If possible, this setting should
  26365. - # overridden to take advantage of the native linker features on
  26366. - # the platform it is being used on.
  26367. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  26368. - fi
  26369. - # Commands to make compiler produce verbose output that lists
  26370. - # what "hidden" libraries, object files and flags are used when
  26371. - # linking a shared library.
  26372. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  26373. -else
  26374. - GXX=no
  26375. - with_gnu_ld=no
  26376. - wlarc=
  26377. -fi
  26378. -# PORTME: fill in a description of your system's C++ link characteristics
  26379. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26380. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  26381. -ld_shlibs_CXX=yes
  26382. -case $host_os in
  26383. - aix3*)
  26384. - # FIXME: insert proper C++ library support
  26385. - ld_shlibs_CXX=no
  26386. - ;;
  26387. - aix[4-9]*)
  26388. - if test "$host_cpu" = ia64; then
  26389. - # On IA64, the linker does run time linking by default, so we don't
  26390. - # have to do anything special.
  26391. - aix_use_runtimelinking=no
  26392. - exp_sym_flag='-Bexport'
  26393. - no_entry_flag=""
  26394. - else
  26395. - aix_use_runtimelinking=no
  26396. - # Test if we are trying to use run time linking or normal
  26397. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26398. - # need to do runtime linking.
  26399. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  26400. - for ld_flag in $LDFLAGS; do
  26401. - case $ld_flag in
  26402. - *-brtl*)
  26403. - aix_use_runtimelinking=yes
  26404. - break
  26405. - ;;
  26406. - esac
  26407. - done
  26408. - ;;
  26409. - esac
  26410. - exp_sym_flag='-bexport'
  26411. - no_entry_flag='-bnoentry'
  26412. - fi
  26413. - # When large executables or shared objects are built, AIX ld can
  26414. - # have problems creating the table of contents. If linking a library
  26415. - # or program results in "error TOC overflow" add -mminimal-toc to
  26416. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26417. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26418. -
  26419. - archive_cmds_CXX=''
  26420. - hardcode_direct_CXX=yes
  26421. - hardcode_libdir_separator_CXX=':'
  26422. - link_all_deplibs_CXX=yes
  26423. -
  26424. - if test "$GXX" = yes; then
  26425. - case $host_os in aix4.[012]|aix4.[012].*)
  26426. - # We only want to do this on AIX 4.2 and lower, the check
  26427. - # below for broken collect2 doesn't work under 4.3+
  26428. - collect2name=`${CC} -print-prog-name=collect2`
  26429. - if test -f "$collect2name" && \
  26430. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26431. - then
  26432. - # We have reworked collect2
  26433. - :
  26434. - else
  26435. - # We have old collect2
  26436. - hardcode_direct_CXX=unsupported
  26437. - # It fails to find uninstalled libraries when the uninstalled
  26438. - # path is not listed in the libpath. Setting hardcode_minus_L
  26439. - # to unsupported forces relinking
  26440. - hardcode_minus_L_CXX=yes
  26441. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  26442. - hardcode_libdir_separator_CXX=
  26443. - fi
  26444. - ;;
  26445. - esac
  26446. - shared_flag='-shared'
  26447. - if test "$aix_use_runtimelinking" = yes; then
  26448. - shared_flag="$shared_flag "'${wl}-G'
  26449. - fi
  26450. - else
  26451. - # not using gcc
  26452. - if test "$host_cpu" = ia64; then
  26453. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26454. - # chokes on -Wl,-G. The following line is correct:
  26455. - shared_flag='-G'
  26456. - else
  26457. - if test "$aix_use_runtimelinking" = yes; then
  26458. - shared_flag='${wl}-G'
  26459. - else
  26460. - shared_flag='${wl}-bM:SRE'
  26461. - fi
  26462. - fi
  26463. - fi
  26464. - # It seems that -bexpall does not export symbols beginning with
  26465. - # underscore (_), so it is better to generate a list of symbols to export.
  26466. - always_export_symbols_CXX=yes
  26467. - if test "$aix_use_runtimelinking" = yes; then
  26468. - # Warning - without using the other runtime loading flags (-brtl),
  26469. - # -berok will link without error, but may produce a broken library.
  26470. - allow_undefined_flag_CXX='-berok'
  26471. - # Determine the default libpath from the value encoded in an empty executable.
  26472. - cat >conftest.$ac_ext <<_ACEOF
  26473. -/* confdefs.h. */
  26474. -_ACEOF
  26475. -cat confdefs.h >>conftest.$ac_ext
  26476. -cat >>conftest.$ac_ext <<_ACEOF
  26477. -/* end confdefs.h. */
  26478. -int
  26479. -main ()
  26480. -{
  26481. - ;
  26482. - return 0;
  26483. -}
  26484. -_ACEOF
  26485. -rm -f conftest.$ac_objext conftest$ac_exeext
  26486. -if { (ac_try="$ac_link"
  26487. -case "(($ac_try" in
  26488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26489. - *) ac_try_echo=$ac_try;;
  26490. -esac
  26491. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26492. -$as_echo "$ac_try_echo") >&5
  26493. - (eval "$ac_link") 2>conftest.er1
  26494. - ac_status=$?
  26495. - grep -v '^ *+' conftest.er1 >conftest.err
  26496. - rm -f conftest.er1
  26497. - cat conftest.err >&5
  26498. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26499. - (exit $ac_status); } && {
  26500. - test -z "$ac_cxx_werror_flag" ||
  26501. - test ! -s conftest.err
  26502. - } && test -s conftest$ac_exeext && {
  26503. - test "$cross_compiling" = yes ||
  26504. - $as_test_x conftest$ac_exeext
  26505. - }; then
  26506. -lt_aix_libpath_sed='
  26507. - /Import File Strings/,/^$/ {
  26508. - /^0/ {
  26509. - s/^0 *\(.*\)$/\1/
  26510. - p
  26511. - }
  26512. - }'
  26513. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26514. -# Check for a 64-bit object if we didn't find anything.
  26515. -if test -z "$aix_libpath"; then
  26516. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26517. -fi
  26518. -else
  26519. - $as_echo "$as_me: failed program was:" >&5
  26520. -sed 's/^/| /' conftest.$ac_ext >&5
  26521. -fi
  26522. -rm -rf conftest.dSYM
  26523. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26524. - conftest$ac_exeext conftest.$ac_ext
  26525. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26526. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  26527. - 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"
  26528. - else
  26529. - if test "$host_cpu" = ia64; then
  26530. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  26531. - allow_undefined_flag_CXX="-z nodefs"
  26532. - 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"
  26533. - else
  26534. - # Determine the default libpath from the value encoded in an empty executable.
  26535. - cat >conftest.$ac_ext <<_ACEOF
  26536. -/* confdefs.h. */
  26537. -_ACEOF
  26538. -cat confdefs.h >>conftest.$ac_ext
  26539. -cat >>conftest.$ac_ext <<_ACEOF
  26540. -/* end confdefs.h. */
  26541. -int
  26542. -main ()
  26543. -{
  26544. - ;
  26545. - return 0;
  26546. -}
  26547. -_ACEOF
  26548. -rm -f conftest.$ac_objext conftest$ac_exeext
  26549. -if { (ac_try="$ac_link"
  26550. -case "(($ac_try" in
  26551. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26552. - *) ac_try_echo=$ac_try;;
  26553. -esac
  26554. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26555. -$as_echo "$ac_try_echo") >&5
  26556. - (eval "$ac_link") 2>conftest.er1
  26557. - ac_status=$?
  26558. - grep -v '^ *+' conftest.er1 >conftest.err
  26559. - rm -f conftest.er1
  26560. - cat conftest.err >&5
  26561. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26562. - (exit $ac_status); } && {
  26563. - test -z "$ac_cxx_werror_flag" ||
  26564. - test ! -s conftest.err
  26565. - } && test -s conftest$ac_exeext && {
  26566. - test "$cross_compiling" = yes ||
  26567. - $as_test_x conftest$ac_exeext
  26568. - }; then
  26569. -lt_aix_libpath_sed='
  26570. - /Import File Strings/,/^$/ {
  26571. - /^0/ {
  26572. - s/^0 *\(.*\)$/\1/
  26573. - p
  26574. - }
  26575. - }'
  26576. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26577. -# Check for a 64-bit object if we didn't find anything.
  26578. -if test -z "$aix_libpath"; then
  26579. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26580. -fi
  26581. -else
  26582. - $as_echo "$as_me: failed program was:" >&5
  26583. -sed 's/^/| /' conftest.$ac_ext >&5
  26584. -fi
  26585. -rm -rf conftest.dSYM
  26586. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26587. - conftest$ac_exeext conftest.$ac_ext
  26588. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26589. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  26590. - # Warning - without using the other run time loading flags,
  26591. - # -berok will link without error, but may produce a broken library.
  26592. - no_undefined_flag_CXX=' ${wl}-bernotok'
  26593. - allow_undefined_flag_CXX=' ${wl}-berok'
  26594. - # Exported symbols can be pulled into shared objects from archives
  26595. - whole_archive_flag_spec_CXX='$convenience'
  26596. - archive_cmds_need_lc_CXX=yes
  26597. - # This is similar to how AIX traditionally builds its shared libraries.
  26598. - 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'
  26599. - fi
  26600. - fi
  26601. - ;;
  26602. - beos*)
  26603. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26604. - allow_undefined_flag_CXX=unsupported
  26605. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26606. - # support --undefined. This deserves some investigation. FIXME
  26607. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26608. - else
  26609. - ld_shlibs_CXX=no
  26610. - fi
  26611. - ;;
  26612. - chorus*)
  26613. - case $cc_basename in
  26614. - *)
  26615. - # FIXME: insert proper C++ library support
  26616. - ld_shlibs_CXX=no
  26617. - ;;
  26618. - esac
  26619. - ;;
  26620. - cygwin* | mingw* | pw32*)
  26621. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  26622. - # as there is no search path for DLLs.
  26623. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  26624. - allow_undefined_flag_CXX=unsupported
  26625. - always_export_symbols_CXX=no
  26626. - enable_shared_with_static_runtimes_CXX=yes
  26627. -
  26628. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  26629. - 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'
  26630. - # If the export-symbols file already is a .def file (1st line
  26631. - # is EXPORTS), use it as is; otherwise, prepend...
  26632. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26633. - cp $export_symbols $output_objdir/$soname.def;
  26634. - else
  26635. - echo EXPORTS > $output_objdir/$soname.def;
  26636. - cat $export_symbols >> $output_objdir/$soname.def;
  26637. - fi~
  26638. - $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'
  26639. - else
  26640. - ld_shlibs_CXX=no
  26641. - fi
  26642. - ;;
  26643. - darwin* | rhapsody*)
  26644. - archive_cmds_need_lc_CXX=no
  26645. - hardcode_direct_CXX=no
  26646. - hardcode_automatic_CXX=yes
  26647. - hardcode_shlibpath_var_CXX=unsupported
  26648. - whole_archive_flag_spec_CXX=''
  26649. - link_all_deplibs_CXX=yes
  26650. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  26651. - if test "$GXX" = yes ; then
  26652. - output_verbose_link_cmd='echo'
  26653. - 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}"
  26654. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  26655. - 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}"
  26656. - 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}"
  26657. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  26658. - 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}"
  26659. - 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}"
  26660. - fi
  26661. - else
  26662. - case $cc_basename in
  26663. - xlc*)
  26664. - output_verbose_link_cmd='echo'
  26665. - 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'
  26666. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26667. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26668. - 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}'
  26669. - 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}'
  26670. - ;;
  26671. - *)
  26672. - ld_shlibs_CXX=no
  26673. - ;;
  26674. - esac
  26675. - fi
  26676. - ;;
  26677. - dgux*)
  26678. - case $cc_basename in
  26679. - ec++*)
  26680. - # FIXME: insert proper C++ library support
  26681. - ld_shlibs_CXX=no
  26682. - ;;
  26683. - ghcx*)
  26684. - # Green Hills C++ Compiler
  26685. - # FIXME: insert proper C++ library support
  26686. - ld_shlibs_CXX=no
  26687. - ;;
  26688. - *)
  26689. - # FIXME: insert proper C++ library support
  26690. - ld_shlibs_CXX=no
  26691. - ;;
  26692. - esac
  26693. - ;;
  26694. - freebsd[12]*)
  26695. - # C++ shared libraries reported to be fairly broken before switch to ELF
  26696. - ld_shlibs_CXX=no
  26697. - ;;
  26698. - freebsd-elf*)
  26699. - archive_cmds_need_lc_CXX=no
  26700. - ;;
  26701. - freebsd* | dragonfly*)
  26702. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  26703. - # conventions
  26704. - ld_shlibs_CXX=yes
  26705. - ;;
  26706. - gnu*)
  26707. - ;;
  26708. - hpux9*)
  26709. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  26710. - hardcode_libdir_separator_CXX=:
  26711. - export_dynamic_flag_spec_CXX='${wl}-E'
  26712. - hardcode_direct_CXX=yes
  26713. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  26714. - # but as the default
  26715. - # location of the library.
  26716. -
  26717. - case $cc_basename in
  26718. - CC*)
  26719. - # FIXME: insert proper C++ library support
  26720. - ld_shlibs_CXX=no
  26721. - ;;
  26722. - aCC*)
  26723. - 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'
  26724. - # Commands to make compiler produce verbose output that lists
  26725. - # what "hidden" libraries, object files and flags are used when
  26726. - # linking a shared library.
  26727. - #
  26728. - # There doesn't appear to be a way to prevent this compiler from
  26729. - # explicitly linking system object files so we need to strip them
  26730. - # from the output so that they don't get included in the library
  26731. - # dependencies.
  26732. - 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'
  26733. - ;;
  26734. - *)
  26735. - if test "$GXX" = yes; then
  26736. - 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'
  26737. - else
  26738. - # FIXME: insert proper C++ library support
  26739. - ld_shlibs_CXX=no
  26740. - fi
  26741. - ;;
  26742. - esac
  26743. - ;;
  26744. - hpux10*|hpux11*)
  26745. - if test $with_gnu_ld = no; then
  26746. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  26747. - hardcode_libdir_separator_CXX=:
  26748. - case $host_cpu in
  26749. - hppa*64*|ia64*) ;;
  26750. - *)
  26751. - export_dynamic_flag_spec_CXX='${wl}-E'
  26752. - ;;
  26753. - esac
  26754. - fi
  26755. - case $host_cpu in
  26756. - hppa*64*|ia64*)
  26757. - hardcode_direct_CXX=no
  26758. - hardcode_shlibpath_var_CXX=no
  26759. - ;;
  26760. - *)
  26761. - hardcode_direct_CXX=yes
  26762. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  26763. - # but as the default
  26764. - # location of the library.
  26765. - ;;
  26766. - esac
  26767. - case $cc_basename in
  26768. - CC*)
  26769. - # FIXME: insert proper C++ library support
  26770. - ld_shlibs_CXX=no
  26771. - ;;
  26772. - aCC*)
  26773. - case $host_cpu in
  26774. - hppa*64*)
  26775. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26776. - ;;
  26777. - ia64*)
  26778. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26779. - ;;
  26780. - *)
  26781. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26782. - ;;
  26783. - esac
  26784. - # Commands to make compiler produce verbose output that lists
  26785. - # what "hidden" libraries, object files and flags are used when
  26786. - # linking a shared library.
  26787. - #
  26788. - # There doesn't appear to be a way to prevent this compiler from
  26789. - # explicitly linking system object files so we need to strip them
  26790. - # from the output so that they don't get included in the library
  26791. - # dependencies.
  26792. - 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'
  26793. - ;;
  26794. - *)
  26795. - if test "$GXX" = yes; then
  26796. - if test $with_gnu_ld = no; then
  26797. - case $host_cpu in
  26798. - hppa*64*)
  26799. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26800. - ;;
  26801. - ia64*)
  26802. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26803. - ;;
  26804. - *)
  26805. - 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'
  26806. - ;;
  26807. - esac
  26808. - fi
  26809. - else
  26810. - # FIXME: insert proper C++ library support
  26811. - ld_shlibs_CXX=no
  26812. - fi
  26813. - ;;
  26814. - esac
  26815. - ;;
  26816. - interix[3-9]*)
  26817. - hardcode_direct_CXX=no
  26818. - hardcode_shlibpath_var_CXX=no
  26819. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26820. - export_dynamic_flag_spec_CXX='${wl}-E'
  26821. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  26822. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  26823. - # default) and relocated if they conflict, which is a slow very memory
  26824. - # consuming and fragmenting process. To avoid this, we pick a random,
  26825. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  26826. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  26827. - 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'
  26828. - 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'
  26829. - ;;
  26830. - irix5* | irix6*)
  26831. - case $cc_basename in
  26832. - CC*)
  26833. - # SGI C++
  26834. - 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'
  26835. -
  26836. - # Archives containing C++ object files must be created using
  26837. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  26838. - # necessary to make sure instantiated templates are included
  26839. - # in the archive.
  26840. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  26841. - ;;
  26842. - *)
  26843. - if test "$GXX" = yes; then
  26844. - if test "$with_gnu_ld" = no; then
  26845. - 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'
  26846. - else
  26847. - 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'
  26848. - fi
  26849. - fi
  26850. - link_all_deplibs_CXX=yes
  26851. - ;;
  26852. - esac
  26853. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  26854. - hardcode_libdir_separator_CXX=:
  26855. - ;;
  26856. - linux* | k*bsd*-gnu)
  26857. - case $cc_basename in
  26858. - KCC*)
  26859. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  26860. -
  26861. - # KCC will only create a shared library if the output file
  26862. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  26863. - # to its proper name (with version) after linking.
  26864. - 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'
  26865. - 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'
  26866. - # Commands to make compiler produce verbose output that lists
  26867. - # what "hidden" libraries, object files and flags are used when
  26868. - # linking a shared library.
  26869. - #
  26870. - # There doesn't appear to be a way to prevent this compiler from
  26871. - # explicitly linking system object files so we need to strip them
  26872. - # from the output so that they don't get included in the library
  26873. - # dependencies.
  26874. - 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'
  26875. -
  26876. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  26877. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26878. -
  26879. - # Archives containing C++ object files must be created using
  26880. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  26881. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  26882. - ;;
  26883. - icpc*)
  26884. - # Intel C++
  26885. - with_gnu_ld=yes
  26886. - # version 8.0 and above of icpc choke on multiply defined symbols
  26887. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  26888. - # earlier do not add the objects themselves.
  26889. - case `$CC -V 2>&1` in
  26890. - *"Version 7."*)
  26891. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26892. - 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'
  26893. - ;;
  26894. - *) # Version 8.0 or newer
  26895. - tmp_idyn=
  26896. - case $host_cpu in
  26897. - ia64*) tmp_idyn=' -i_dynamic';;
  26898. - esac
  26899. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26900. - 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'
  26901. - ;;
  26902. - esac
  26903. - archive_cmds_need_lc_CXX=no
  26904. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  26905. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26906. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  26907. - ;;
  26908. - pgCC* | pgcpp*)
  26909. - # Portland Group C++ compiler
  26910. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  26911. - 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'
  26912. -
  26913. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  26914. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  26915. - 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'
  26916. - ;;
  26917. - cxx*)
  26918. - # Compaq C++
  26919. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26920. - 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'
  26921. - runpath_var=LD_RUN_PATH
  26922. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  26923. - hardcode_libdir_separator_CXX=:
  26924. - # Commands to make compiler produce verbose output that lists
  26925. - # what "hidden" libraries, object files and flags are used when
  26926. - # linking a shared library.
  26927. - #
  26928. - # There doesn't appear to be a way to prevent this compiler from
  26929. - # explicitly linking system object files so we need to strip them
  26930. - # from the output so that they don't get included in the library
  26931. - # dependencies.
  26932. - 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'
  26933. - ;;
  26934. - *)
  26935. - case `$CC -V 2>&1 | sed 5q` in
  26936. - *Sun\ C*)
  26937. - # Sun C++ 5.9
  26938. - no_undefined_flag_CXX=' -zdefs'
  26939. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  26940. - 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'
  26941. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  26942. - 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'
  26943. -
  26944. - # Not sure whether something based on
  26945. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  26946. - # would be better.
  26947. - output_verbose_link_cmd='echo'
  26948. -
  26949. - # Archives containing C++ object files must be created using
  26950. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  26951. - # necessary to make sure instantiated templates are included
  26952. - # in the archive.
  26953. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  26954. - ;;
  26955. - esac
  26956. - ;;
  26957. - esac
  26958. - ;;
  26959. - lynxos*)
  26960. - # FIXME: insert proper C++ library support
  26961. - ld_shlibs_CXX=no
  26962. - ;;
  26963. - m88k*)
  26964. - # FIXME: insert proper C++ library support
  26965. - ld_shlibs_CXX=no
  26966. - ;;
  26967. - mvs*)
  26968. - case $cc_basename in
  26969. - cxx*)
  26970. - # FIXME: insert proper C++ library support
  26971. - ld_shlibs_CXX=no
  26972. - ;;
  26973. - *)
  26974. - # FIXME: insert proper C++ library support
  26975. - ld_shlibs_CXX=no
  26976. - ;;
  26977. - esac
  26978. - ;;
  26979. - netbsd*)
  26980. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26981. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  26982. - wlarc=
  26983. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  26984. - hardcode_direct_CXX=yes
  26985. - hardcode_shlibpath_var_CXX=no
  26986. - fi
  26987. - # Workaround some broken pre-1.5 toolchains
  26988. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  26989. - ;;
  26990. - openbsd2*)
  26991. - # C++ shared libraries are fairly broken
  26992. - ld_shlibs_CXX=no
  26993. - ;;
  26994. - openbsd*)
  26995. - if test -f /usr/libexec/ld.so; then
  26996. - hardcode_direct_CXX=yes
  26997. - hardcode_shlibpath_var_CXX=no
  26998. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  26999. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27000. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27001. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  27002. - export_dynamic_flag_spec_CXX='${wl}-E'
  27003. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27004. - fi
  27005. - output_verbose_link_cmd='echo'
  27006. - else
  27007. - ld_shlibs_CXX=no
  27008. - fi
  27009. - ;;
  27010. - osf3*)
  27011. - case $cc_basename in
  27012. - KCC*)
  27013. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27014. -
  27015. - # KCC will only create a shared library if the output file
  27016. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27017. - # to its proper name (with version) after linking.
  27018. - 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'
  27019. -
  27020. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27021. - hardcode_libdir_separator_CXX=:
  27022. -
  27023. - # Archives containing C++ object files must be created using
  27024. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27025. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27026. - ;;
  27027. - RCC*)
  27028. - # Rational C++ 2.4.1
  27029. - # FIXME: insert proper C++ library support
  27030. - ld_shlibs_CXX=no
  27031. - ;;
  27032. - cxx*)
  27033. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27034. - 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'
  27035. -
  27036. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27037. - hardcode_libdir_separator_CXX=:
  27038. -
  27039. - # Commands to make compiler produce verbose output that lists
  27040. - # what "hidden" libraries, object files and flags are used when
  27041. - # linking a shared library.
  27042. - #
  27043. - # There doesn't appear to be a way to prevent this compiler from
  27044. - # explicitly linking system object files so we need to strip them
  27045. - # from the output so that they don't get included in the library
  27046. - # dependencies.
  27047. - 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'
  27048. - ;;
  27049. - *)
  27050. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27051. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27052. - 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'
  27053. -
  27054. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27055. - hardcode_libdir_separator_CXX=:
  27056. -
  27057. - # Commands to make compiler produce verbose output that lists
  27058. - # what "hidden" libraries, object files and flags are used when
  27059. - # linking a shared library.
  27060. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27061. - else
  27062. - # FIXME: insert proper C++ library support
  27063. - ld_shlibs_CXX=no
  27064. - fi
  27065. - ;;
  27066. - esac
  27067. - ;;
  27068. - osf4* | osf5*)
  27069. - case $cc_basename in
  27070. - KCC*)
  27071. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27072. -
  27073. - # KCC will only create a shared library if the output file
  27074. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27075. - # to its proper name (with version) after linking.
  27076. - 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'
  27077. -
  27078. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27079. - hardcode_libdir_separator_CXX=:
  27080. -
  27081. - # Archives containing C++ object files must be created using
  27082. - # the KAI C++ compiler.
  27083. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  27084. - ;;
  27085. - RCC*)
  27086. - # Rational C++ 2.4.1
  27087. - # FIXME: insert proper C++ library support
  27088. - ld_shlibs_CXX=no
  27089. - ;;
  27090. - cxx*)
  27091. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  27092. - 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'
  27093. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  27094. - echo "-hidden">> $lib.exp~
  27095. - $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~
  27096. - $rm $lib.exp'
  27097. -
  27098. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27099. - hardcode_libdir_separator_CXX=:
  27100. -
  27101. - # Commands to make compiler produce verbose output that lists
  27102. - # what "hidden" libraries, object files and flags are used when
  27103. - # linking a shared library.
  27104. - #
  27105. - # There doesn't appear to be a way to prevent this compiler from
  27106. - # explicitly linking system object files so we need to strip them
  27107. - # from the output so that they don't get included in the library
  27108. - # dependencies.
  27109. - 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'
  27110. - ;;
  27111. - *)
  27112. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27113. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27114. - 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'
  27115. -
  27116. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27117. - hardcode_libdir_separator_CXX=:
  27118. -
  27119. - # Commands to make compiler produce verbose output that lists
  27120. - # what "hidden" libraries, object files and flags are used when
  27121. - # linking a shared library.
  27122. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27123. - else
  27124. - # FIXME: insert proper C++ library support
  27125. - ld_shlibs_CXX=no
  27126. - fi
  27127. - ;;
  27128. - esac
  27129. - ;;
  27130. - psos*)
  27131. - # FIXME: insert proper C++ library support
  27132. - ld_shlibs_CXX=no
  27133. - ;;
  27134. - sunos4*)
  27135. - case $cc_basename in
  27136. - CC*)
  27137. - # Sun C++ 4.x
  27138. - # FIXME: insert proper C++ library support
  27139. - ld_shlibs_CXX=no
  27140. - ;;
  27141. - lcc*)
  27142. - # Lucid
  27143. - # FIXME: insert proper C++ library support
  27144. - ld_shlibs_CXX=no
  27145. - ;;
  27146. - *)
  27147. - # FIXME: insert proper C++ library support
  27148. - ld_shlibs_CXX=no
  27149. - ;;
  27150. - esac
  27151. - ;;
  27152. - solaris*)
  27153. - case $cc_basename in
  27154. - CC*)
  27155. - # Sun C++ 4.2, 5.x and Centerline C++
  27156. - archive_cmds_need_lc_CXX=yes
  27157. - no_undefined_flag_CXX=' -zdefs'
  27158. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27159. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27160. - $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'
  27161. -
  27162. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27163. - hardcode_shlibpath_var_CXX=no
  27164. - case $host_os in
  27165. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27166. - *)
  27167. - # The compiler driver will combine and reorder linker options,
  27168. - # but understands `-z linker_flag'.
  27169. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27170. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  27171. - ;;
  27172. - esac
  27173. - link_all_deplibs_CXX=yes
  27174. - output_verbose_link_cmd='echo'
  27175. - # Archives containing C++ object files must be created using
  27176. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  27177. - # necessary to make sure instantiated templates are included
  27178. - # in the archive.
  27179. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  27180. - ;;
  27181. - gcx*)
  27182. - # Green Hills C++ Compiler
  27183. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27184. - # The C++ compiler must be used to create the archive.
  27185. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  27186. - ;;
  27187. - *)
  27188. - # GNU C++ compiler with Solaris linker
  27189. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27190. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  27191. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  27192. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27193. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27194. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27195. -
  27196. - # Commands to make compiler produce verbose output that lists
  27197. - # what "hidden" libraries, object files and flags are used when
  27198. - # linking a shared library.
  27199. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27200. - else
  27201. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  27202. - # platform.
  27203. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27204. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27205. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27206. -
  27207. - # Commands to make compiler produce verbose output that lists
  27208. - # what "hidden" libraries, object files and flags are used when
  27209. - # linking a shared library.
  27210. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27211. - fi
  27212. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  27213. - case $host_os in
  27214. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27215. - *)
  27216. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27217. - ;;
  27218. - esac
  27219. - fi
  27220. - ;;
  27221. - esac
  27222. - ;;
  27223. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  27224. - no_undefined_flag_CXX='${wl}-z,text'
  27225. - archive_cmds_need_lc_CXX=no
  27226. - hardcode_shlibpath_var_CXX=no
  27227. - runpath_var='LD_RUN_PATH'
  27228. -
  27229. - case $cc_basename in
  27230. - CC*)
  27231. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27232. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27233. - ;;
  27234. - *)
  27235. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27236. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27237. - ;;
  27238. - esac
  27239. - ;;
  27240. - sysv5* | sco3.2v5* | sco5v6*)
  27241. - # Note: We can NOT use -z defs as we might desire, because we do not
  27242. - # link with -lc, and that would cause any symbols used from libc to
  27243. - # always be unresolved, which means just about no library would
  27244. - # ever link correctly. If we're not using GNU ld we use -z text
  27245. - # though, which does catch some bad symbols but isn't as heavy-handed
  27246. - # as -z defs.
  27247. - # For security reasons, it is highly recommended that you always
  27248. - # use absolute paths for naming shared libraries, and exclude the
  27249. - # DT_RUNPATH tag from executables and libraries. But doing so
  27250. - # requires that you compile everything twice, which is a pain.
  27251. - # So that behaviour is only enabled if SCOABSPATH is set to a
  27252. - # non-empty value in the environment. Most likely only useful for
  27253. - # creating official distributions of packages.
  27254. - # This is a hack until libtool officially supports absolute path
  27255. - # names for shared libraries.
  27256. - no_undefined_flag_CXX='${wl}-z,text'
  27257. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  27258. - archive_cmds_need_lc_CXX=no
  27259. - hardcode_shlibpath_var_CXX=no
  27260. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  27261. - hardcode_libdir_separator_CXX=':'
  27262. - link_all_deplibs_CXX=yes
  27263. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  27264. - runpath_var='LD_RUN_PATH'
  27265. -
  27266. - case $cc_basename in
  27267. - CC*)
  27268. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27269. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27270. - ;;
  27271. - *)
  27272. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27273. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27274. - ;;
  27275. - esac
  27276. - ;;
  27277. - tandem*)
  27278. - case $cc_basename in
  27279. - NCC*)
  27280. - # NonStop-UX NCC 3.20
  27281. - # FIXME: insert proper C++ library support
  27282. - ld_shlibs_CXX=no
  27283. - ;;
  27284. - *)
  27285. - # FIXME: insert proper C++ library support
  27286. - ld_shlibs_CXX=no
  27287. - ;;
  27288. - esac
  27289. - ;;
  27290. - vxworks*)
  27291. - # FIXME: insert proper C++ library support
  27292. - ld_shlibs_CXX=no
  27293. - ;;
  27294. - *)
  27295. - # FIXME: insert proper C++ library support
  27296. - ld_shlibs_CXX=no
  27297. - ;;
  27298. -esac
  27299. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  27300. -$as_echo "$ld_shlibs_CXX" >&6; }
  27301. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  27302. -GCC_CXX="$GXX"
  27303. -LD_CXX="$LD"
  27304. -cat > conftest.$ac_ext <<EOF
  27305. -class Foo
  27306. -{
  27307. -public:
  27308. - Foo (void) { a = 0; }
  27309. -private:
  27310. - int a;
  27311. -};
  27312. -EOF
  27313. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27314. - (eval $ac_compile) 2>&5
  27315. - ac_status=$?
  27316. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27317. - (exit $ac_status); }; then
  27318. - # Parse the compiler output and extract the necessary
  27319. - # objects, libraries and library flags.
  27320. -
  27321. - # Sentinel used to keep track of whether or not we are before
  27322. - # the conftest object file.
  27323. - pre_test_object_deps_done=no
  27324. -
  27325. - # The `*' in the case matches for architectures that use `case' in
  27326. - # $output_verbose_cmd can trigger glob expansion during the loop
  27327. - # eval without this substitution.
  27328. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  27329. -
  27330. - for p in `eval $output_verbose_link_cmd`; do
  27331. - case $p in
  27332. -
  27333. - -L* | -R* | -l*)
  27334. - # Some compilers place space between "-{L,R}" and the path.
  27335. - # Remove the space.
  27336. - if test $p = "-L" \
  27337. - || test $p = "-R"; then
  27338. - prev=$p
  27339. - continue
  27340. - else
  27341. - prev=
  27342. - fi
  27343. - if test "$pre_test_object_deps_done" = no; then
  27344. - case $p in
  27345. - -L* | -R*)
  27346. - # Internal compiler library paths should come after those
  27347. - # provided the user. The postdeps already come after the
  27348. - # user supplied libs so there is no need to process them.
  27349. - if test -z "$compiler_lib_search_path_CXX"; then
  27350. - compiler_lib_search_path_CXX="${prev}${p}"
  27351. - else
  27352. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  27353. - fi
  27354. - ;;
  27355. - # The "-l" case would never come before the object being
  27356. - # linked, so don't bother handling this case.
  27357. - esac
  27358. - else
  27359. - if test -z "$postdeps_CXX"; then
  27360. - postdeps_CXX="${prev}${p}"
  27361. - else
  27362. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  27363. - fi
  27364. - fi
  27365. - ;;
  27366. - *.$objext)
  27367. - # This assumes that the test object file only shows up
  27368. - # once in the compiler output.
  27369. - if test "$p" = "conftest.$objext"; then
  27370. - pre_test_object_deps_done=yes
  27371. - continue
  27372. - fi
  27373. - if test "$pre_test_object_deps_done" = no; then
  27374. - if test -z "$predep_objects_CXX"; then
  27375. - predep_objects_CXX="$p"
  27376. - else
  27377. - predep_objects_CXX="$predep_objects_CXX $p"
  27378. - fi
  27379. - else
  27380. - if test -z "$postdep_objects_CXX"; then
  27381. - postdep_objects_CXX="$p"
  27382. - else
  27383. - postdep_objects_CXX="$postdep_objects_CXX $p"
  27384. - fi
  27385. - fi
  27386. - ;;
  27387. - *) ;; # Ignore the rest.
  27388. - esac
  27389. - done
  27390. - # Clean up.
  27391. - rm -f a.out a.exe
  27392. -else
  27393. - echo "libtool.m4: error: problem compiling CXX test program"
  27394. -fi
  27395. -$rm -f confest.$objext
  27396. -compiler_lib_search_dirs_CXX=
  27397. -if test -n "$compiler_lib_search_path_CXX"; then
  27398. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  27399. +
  27400. +
  27401. +
  27402. +
  27403. +
  27404. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  27405. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  27406. +
  27407. +if test "$GCC" = yes; then
  27408. + case $host_os in
  27409. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  27410. + *) lt_awk_arg="/^libraries:/" ;;
  27411. + esac
  27412. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27413. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  27414. + # if the path contains ";" then we assume it to be the separator
  27415. + # otherwise default to the standard path separator (i.e. ":") - it is
  27416. + # assumed that no part of a normal pathname contains ";" but that should
  27417. + # okay in the real world where ";" in dirpaths is itself problematic.
  27418. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  27419. + else
  27420. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27421. + fi
  27422. + # Ok, now we have the path, separated by spaces, we can step through it
  27423. + # and add multilib dir if necessary.
  27424. + lt_tmp_lt_search_path_spec=
  27425. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  27426. + for lt_sys_path in $lt_search_path_spec; do
  27427. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  27428. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  27429. + else
  27430. + test -d "$lt_sys_path" && \
  27431. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  27432. + fi
  27433. + done
  27434. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  27435. +BEGIN {RS=" "; FS="/|\n";} {
  27436. + lt_foo="";
  27437. + lt_count=0;
  27438. + for (lt_i = NF; lt_i > 0; lt_i--) {
  27439. + if ($lt_i != "" && $lt_i != ".") {
  27440. + if ($lt_i == "..") {
  27441. + lt_count++;
  27442. + } else {
  27443. + if (lt_count == 0) {
  27444. + lt_foo="/" $lt_i lt_foo;
  27445. + } else {
  27446. + lt_count--;
  27447. + }
  27448. + }
  27449. + }
  27450. + }
  27451. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  27452. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  27453. +}'`
  27454. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  27455. +else
  27456. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  27457. fi
  27458. +library_names_spec=
  27459. +libname_spec='lib$name'
  27460. +soname_spec=
  27461. +shrext_cmds=".so"
  27462. +postinstall_cmds=
  27463. +postuninstall_cmds=
  27464. +finish_cmds=
  27465. +finish_eval=
  27466. +shlibpath_var=
  27467. +shlibpath_overrides_runpath=unknown
  27468. +version_type=none
  27469. +dynamic_linker="$host_os ld.so"
  27470. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27471. +need_lib_prefix=unknown
  27472. +hardcode_into_libs=no
  27473. +
  27474. +# when you set need_version to no, make sure it does not cause -set_version
  27475. +# flags to be left without arguments
  27476. +need_version=unknown
  27477. -# PORTME: override above test on systems where it is broken
  27478. case $host_os in
  27479. -interix[3-9]*)
  27480. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  27481. - # hack all around it, let's just trust "g++" to DTRT.
  27482. - predep_objects_CXX=
  27483. - postdep_objects_CXX=
  27484. - postdeps_CXX=
  27485. +aix3*)
  27486. + version_type=linux
  27487. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27488. + shlibpath_var=LIBPATH
  27489. +
  27490. + # AIX 3 has no versioning support, so we append a major version to the name.
  27491. + soname_spec='${libname}${release}${shared_ext}$major'
  27492. ;;
  27493. -linux*)
  27494. - case `$CC -V 2>&1 | sed 5q` in
  27495. - *Sun\ C*)
  27496. - # Sun C++ 5.9
  27497. - #
  27498. - # The more standards-conforming stlport4 library is
  27499. - # incompatible with the Cstd library. Avoid specifying
  27500. - # it if it's in CXXFLAGS. Ignore libCrun as
  27501. - # -library=stlport4 depends on it.
  27502. - case " $CXX $CXXFLAGS " in
  27503. - *" -library=stlport4 "*)
  27504. - solaris_use_stlport4=yes
  27505. +aix[4-9]*)
  27506. + version_type=linux
  27507. + need_lib_prefix=no
  27508. + need_version=no
  27509. + hardcode_into_libs=yes
  27510. + if test "$host_cpu" = ia64; then
  27511. + # AIX 5 supports IA64
  27512. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27513. + shlibpath_var=LD_LIBRARY_PATH
  27514. + else
  27515. + # With GCC up to 2.95.x, collect2 would create an import file
  27516. + # for dependence libraries. The import file would start with
  27517. + # the line `#! .'. This would cause the generated library to
  27518. + # depend on `.', always an invalid library. This was fixed in
  27519. + # development snapshots of GCC prior to 3.0.
  27520. + case $host_os in
  27521. + aix4 | aix4.[01] | aix4.[01].*)
  27522. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27523. + echo ' yes '
  27524. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  27525. + :
  27526. + else
  27527. + can_build_shared=no
  27528. + fi
  27529. ;;
  27530. esac
  27531. - if test "$solaris_use_stlport4" != yes; then
  27532. - postdeps_CXX='-library=Cstd -library=Crun'
  27533. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27534. + # soname into executable. Probably we can add versioning support to
  27535. + # collect2, so additional links can be useful in future.
  27536. + if test "$aix_use_runtimelinking" = yes; then
  27537. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27538. + # instead of lib<name>.a to let people know that these are not
  27539. + # typical AIX shared libraries.
  27540. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27541. + else
  27542. + # We preserve .a as extension for shared libraries through AIX4.2
  27543. + # and later when we are not doing run time linking.
  27544. + library_names_spec='${libname}${release}.a $libname.a'
  27545. + soname_spec='${libname}${release}${shared_ext}$major'
  27546. fi
  27547. - ;;
  27548. - esac
  27549. + shlibpath_var=LIBPATH
  27550. + fi
  27551. ;;
  27552. -solaris*)
  27553. - case $cc_basename in
  27554. - CC*)
  27555. - # The more standards-conforming stlport4 library is
  27556. - # incompatible with the Cstd library. Avoid specifying
  27557. - # it if it's in CXXFLAGS. Ignore libCrun as
  27558. - # -library=stlport4 depends on it.
  27559. - case " $CXX $CXXFLAGS " in
  27560. - *" -library=stlport4 "*)
  27561. - solaris_use_stlport4=yes
  27562. - ;;
  27563. - esac
  27564. -
  27565. - # Adding this requires a known-good setup of shared libraries for
  27566. - # Sun compiler versions before 5.6, else PIC objects from an old
  27567. - # archive will be linked into the output, leading to subtle bugs.
  27568. - if test "$solaris_use_stlport4" != yes; then
  27569. - postdeps_CXX='-library=Cstd -library=Crun'
  27570. - fi
  27571. +amigaos*)
  27572. + case $host_cpu in
  27573. + powerpc)
  27574. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  27575. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  27576. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27577. + ;;
  27578. + m68k)
  27579. + library_names_spec='$libname.ixlibrary $libname.a'
  27580. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27581. + 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'
  27582. ;;
  27583. esac
  27584. ;;
  27585. -esac
  27586. -case " $postdeps_CXX " in
  27587. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  27588. -esac
  27589. +beos*)
  27590. + library_names_spec='${libname}${shared_ext}'
  27591. + dynamic_linker="$host_os ld.so"
  27592. + shlibpath_var=LIBRARY_PATH
  27593. + ;;
  27594. -lt_prog_compiler_wl_CXX=
  27595. -lt_prog_compiler_pic_CXX=
  27596. -lt_prog_compiler_static_CXX=
  27597. +bsdi[45]*)
  27598. + version_type=linux
  27599. + need_version=no
  27600. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27601. + soname_spec='${libname}${release}${shared_ext}$major'
  27602. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27603. + shlibpath_var=LD_LIBRARY_PATH
  27604. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27605. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27606. + # the default ld.so.conf also contains /usr/contrib/lib and
  27607. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27608. + # libtool to hard-code these into programs
  27609. + ;;
  27610. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  27611. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  27612. +cygwin* | mingw* | pw32* | cegcc*)
  27613. + version_type=windows
  27614. + shrext_cmds=".dll"
  27615. + need_version=no
  27616. + need_lib_prefix=no
  27617. - # C++ specific cases for pic, static, wl, etc.
  27618. - if test "$GXX" = yes; then
  27619. - lt_prog_compiler_wl_CXX='-Wl,'
  27620. - lt_prog_compiler_static_CXX='-static'
  27621. + case $GCC,$host_os in
  27622. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  27623. + library_names_spec='$libname.dll.a'
  27624. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27625. + postinstall_cmds='base_file=`basename \${file}`~
  27626. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  27627. + dldir=$destdir/`dirname \$dlpath`~
  27628. + test -d \$dldir || mkdir -p \$dldir~
  27629. + $install_prog $dir/$dlname \$dldir/$dlname~
  27630. + chmod a+x \$dldir/$dlname~
  27631. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  27632. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  27633. + fi'
  27634. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27635. + dlpath=$dir/\$dldll~
  27636. + $RM \$dlpath'
  27637. + shlibpath_overrides_runpath=yes
  27638. case $host_os in
  27639. - aix*)
  27640. - # All AIX code is PIC.
  27641. - if test "$host_cpu" = ia64; then
  27642. - # AIX 5 now supports IA64 processor
  27643. - lt_prog_compiler_static_CXX='-Bstatic'
  27644. - fi
  27645. + cygwin*)
  27646. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27647. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27648. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27649. ;;
  27650. - amigaos*)
  27651. - # FIXME: we need at least 68020 code to build shared libraries, but
  27652. - # adding the `-m68020' flag to GCC prevents building anything better,
  27653. - # like `-m68040'.
  27654. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  27655. + mingw* | cegcc*)
  27656. + # MinGW DLLs use traditional 'lib' prefix
  27657. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27658. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27659. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  27660. + # It is most probably a Windows format PATH printed by
  27661. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27662. + # path with ; separators, and with drive letters. We can handle the
  27663. + # drive letters (cygwin fileutils understands them), so leave them,
  27664. + # especially as we might pass files found there to a mingw objdump,
  27665. + # which wouldn't understand a cygwinified path. Ahh.
  27666. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27667. + else
  27668. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27669. + fi
  27670. ;;
  27671. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27672. - # PIC is the default for these OSes.
  27673. - ;;
  27674. - mingw* | cygwin* | os2* | pw32*)
  27675. - # This hack is so that the source file can tell whether it is being
  27676. - # built for inclusion in a dll (and should export symbols for example).
  27677. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27678. - # (--disable-auto-import) libraries
  27679. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  27680. - ;;
  27681. - darwin* | rhapsody*)
  27682. - # PIC is the default on this platform
  27683. - # Common symbols not allowed in MH_DYLIB files
  27684. - lt_prog_compiler_pic_CXX='-fno-common'
  27685. - ;;
  27686. - *djgpp*)
  27687. - # DJGPP does not support shared libraries at all
  27688. - lt_prog_compiler_pic_CXX=
  27689. - ;;
  27690. - interix[3-9]*)
  27691. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27692. - # Instead, we relocate shared libraries at runtime.
  27693. - ;;
  27694. - sysv4*MP*)
  27695. - if test -d /usr/nec; then
  27696. - lt_prog_compiler_pic_CXX=-Kconform_pic
  27697. - fi
  27698. - ;;
  27699. - hpux*)
  27700. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27701. - # not for PA HP-UX.
  27702. - case $host_cpu in
  27703. - hppa*64*|ia64*)
  27704. - ;;
  27705. - *)
  27706. - lt_prog_compiler_pic_CXX='-fPIC'
  27707. - ;;
  27708. - esac
  27709. - ;;
  27710. - *)
  27711. - lt_prog_compiler_pic_CXX='-fPIC'
  27712. - ;;
  27713. - esac
  27714. - else
  27715. - case $host_os in
  27716. - aix[4-9]*)
  27717. - # All AIX code is PIC.
  27718. - if test "$host_cpu" = ia64; then
  27719. - # AIX 5 now supports IA64 processor
  27720. - lt_prog_compiler_static_CXX='-Bstatic'
  27721. - else
  27722. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  27723. - fi
  27724. - ;;
  27725. - chorus*)
  27726. - case $cc_basename in
  27727. - cxch68*)
  27728. - # Green Hills C++ Compiler
  27729. - # _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"
  27730. - ;;
  27731. - esac
  27732. - ;;
  27733. - darwin*)
  27734. - # PIC is the default on this platform
  27735. - # Common symbols not allowed in MH_DYLIB files
  27736. - case $cc_basename in
  27737. - xlc*)
  27738. - lt_prog_compiler_pic_CXX='-qnocommon'
  27739. - lt_prog_compiler_wl_CXX='-Wl,'
  27740. - ;;
  27741. - esac
  27742. - ;;
  27743. - dgux*)
  27744. - case $cc_basename in
  27745. - ec++*)
  27746. - lt_prog_compiler_pic_CXX='-KPIC'
  27747. - ;;
  27748. - ghcx*)
  27749. - # Green Hills C++ Compiler
  27750. - lt_prog_compiler_pic_CXX='-pic'
  27751. - ;;
  27752. - *)
  27753. - ;;
  27754. - esac
  27755. - ;;
  27756. - freebsd* | dragonfly*)
  27757. - # FreeBSD uses GNU C++
  27758. - ;;
  27759. - hpux9* | hpux10* | hpux11*)
  27760. - case $cc_basename in
  27761. - CC*)
  27762. - lt_prog_compiler_wl_CXX='-Wl,'
  27763. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  27764. - if test "$host_cpu" != ia64; then
  27765. - lt_prog_compiler_pic_CXX='+Z'
  27766. - fi
  27767. - ;;
  27768. - aCC*)
  27769. - lt_prog_compiler_wl_CXX='-Wl,'
  27770. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  27771. - case $host_cpu in
  27772. - hppa*64*|ia64*)
  27773. - # +Z the default
  27774. - ;;
  27775. - *)
  27776. - lt_prog_compiler_pic_CXX='+Z'
  27777. - ;;
  27778. - esac
  27779. - ;;
  27780. - *)
  27781. - ;;
  27782. - esac
  27783. - ;;
  27784. - interix*)
  27785. - # This is c89, which is MS Visual C++ (no shared libs)
  27786. - # Anyone wants to do a port?
  27787. - ;;
  27788. - irix5* | irix6* | nonstopux*)
  27789. - case $cc_basename in
  27790. - CC*)
  27791. - lt_prog_compiler_wl_CXX='-Wl,'
  27792. - lt_prog_compiler_static_CXX='-non_shared'
  27793. - # CC pic flag -KPIC is the default.
  27794. - ;;
  27795. - *)
  27796. - ;;
  27797. - esac
  27798. - ;;
  27799. - linux* | k*bsd*-gnu)
  27800. - case $cc_basename in
  27801. - KCC*)
  27802. - # KAI C++ Compiler
  27803. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  27804. - lt_prog_compiler_pic_CXX='-fPIC'
  27805. - ;;
  27806. - icpc* | ecpc*)
  27807. - # Intel C++
  27808. - lt_prog_compiler_wl_CXX='-Wl,'
  27809. - lt_prog_compiler_pic_CXX='-KPIC'
  27810. - lt_prog_compiler_static_CXX='-static'
  27811. - ;;
  27812. - pgCC* | pgcpp*)
  27813. - # Portland Group C++ compiler.
  27814. - lt_prog_compiler_wl_CXX='-Wl,'
  27815. - lt_prog_compiler_pic_CXX='-fpic'
  27816. - lt_prog_compiler_static_CXX='-Bstatic'
  27817. - ;;
  27818. - cxx*)
  27819. - # Compaq C++
  27820. - # Make sure the PIC flag is empty. It appears that all Alpha
  27821. - # Linux and Compaq Tru64 Unix objects are PIC.
  27822. - lt_prog_compiler_pic_CXX=
  27823. - lt_prog_compiler_static_CXX='-non_shared'
  27824. - ;;
  27825. - *)
  27826. - case `$CC -V 2>&1 | sed 5q` in
  27827. - *Sun\ C*)
  27828. - # Sun C++ 5.9
  27829. - lt_prog_compiler_pic_CXX='-KPIC'
  27830. - lt_prog_compiler_static_CXX='-Bstatic'
  27831. - lt_prog_compiler_wl_CXX='-Qoption ld '
  27832. - ;;
  27833. - esac
  27834. - ;;
  27835. - esac
  27836. - ;;
  27837. - lynxos*)
  27838. - ;;
  27839. - m88k*)
  27840. - ;;
  27841. - mvs*)
  27842. - case $cc_basename in
  27843. - cxx*)
  27844. - lt_prog_compiler_pic_CXX='-W c,exportall'
  27845. - ;;
  27846. - *)
  27847. - ;;
  27848. - esac
  27849. - ;;
  27850. - netbsd*)
  27851. - ;;
  27852. - osf3* | osf4* | osf5*)
  27853. - case $cc_basename in
  27854. - KCC*)
  27855. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  27856. - ;;
  27857. - RCC*)
  27858. - # Rational C++ 2.4.1
  27859. - lt_prog_compiler_pic_CXX='-pic'
  27860. - ;;
  27861. - cxx*)
  27862. - # Digital/Compaq C++
  27863. - lt_prog_compiler_wl_CXX='-Wl,'
  27864. - # Make sure the PIC flag is empty. It appears that all Alpha
  27865. - # Linux and Compaq Tru64 Unix objects are PIC.
  27866. - lt_prog_compiler_pic_CXX=
  27867. - lt_prog_compiler_static_CXX='-non_shared'
  27868. - ;;
  27869. - *)
  27870. - ;;
  27871. - esac
  27872. - ;;
  27873. - psos*)
  27874. - ;;
  27875. - solaris*)
  27876. - case $cc_basename in
  27877. - CC*)
  27878. - # Sun C++ 4.2, 5.x and Centerline C++
  27879. - lt_prog_compiler_pic_CXX='-KPIC'
  27880. - lt_prog_compiler_static_CXX='-Bstatic'
  27881. - lt_prog_compiler_wl_CXX='-Qoption ld '
  27882. - ;;
  27883. - gcx*)
  27884. - # Green Hills C++ Compiler
  27885. - lt_prog_compiler_pic_CXX='-PIC'
  27886. - ;;
  27887. - *)
  27888. - ;;
  27889. - esac
  27890. - ;;
  27891. - sunos4*)
  27892. - case $cc_basename in
  27893. - CC*)
  27894. - # Sun C++ 4.x
  27895. - lt_prog_compiler_pic_CXX='-pic'
  27896. - lt_prog_compiler_static_CXX='-Bstatic'
  27897. - ;;
  27898. - lcc*)
  27899. - # Lucid
  27900. - lt_prog_compiler_pic_CXX='-pic'
  27901. - ;;
  27902. - *)
  27903. - ;;
  27904. - esac
  27905. - ;;
  27906. - tandem*)
  27907. - case $cc_basename in
  27908. - NCC*)
  27909. - # NonStop-UX NCC 3.20
  27910. - lt_prog_compiler_pic_CXX='-KPIC'
  27911. - ;;
  27912. - *)
  27913. - ;;
  27914. - esac
  27915. - ;;
  27916. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  27917. - case $cc_basename in
  27918. - CC*)
  27919. - lt_prog_compiler_wl_CXX='-Wl,'
  27920. - lt_prog_compiler_pic_CXX='-KPIC'
  27921. - lt_prog_compiler_static_CXX='-Bstatic'
  27922. - ;;
  27923. - esac
  27924. - ;;
  27925. - vxworks*)
  27926. - ;;
  27927. - *)
  27928. - lt_prog_compiler_can_build_shared_CXX=no
  27929. - ;;
  27930. - esac
  27931. - fi
  27932. -
  27933. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  27934. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  27935. -
  27936. -#
  27937. -# Check to make sure the PIC flag actually works.
  27938. -#
  27939. -if test -n "$lt_prog_compiler_pic_CXX"; then
  27940. -
  27941. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  27942. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  27943. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  27944. - $as_echo_n "(cached) " >&6
  27945. -else
  27946. - lt_cv_prog_compiler_pic_works_CXX=no
  27947. - ac_outfile=conftest.$ac_objext
  27948. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27949. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  27950. - # Insert the option either (1) after the last *FLAGS variable, or
  27951. - # (2) before a word containing "conftest.", or (3) at the end.
  27952. - # Note that $ac_compile itself does not contain backslashes and begins
  27953. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  27954. - # The option is referenced via a variable to avoid confusing sed.
  27955. - lt_compile=`echo "$ac_compile" | $SED \
  27956. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27957. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27958. - -e 's:$: $lt_compiler_flag:'`
  27959. - (eval echo "\"\$as_me:13077: $lt_compile\"" >&5)
  27960. - (eval "$lt_compile" 2>conftest.err)
  27961. - ac_status=$?
  27962. - cat conftest.err >&5
  27963. - echo "$as_me:13081: \$? = $ac_status" >&5
  27964. - if (exit $ac_status) && test -s "$ac_outfile"; then
  27965. - # The compiler can only warn and ignore the option if not recognized
  27966. - # So say no if there are warnings other than the usual output.
  27967. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27968. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27969. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27970. - lt_cv_prog_compiler_pic_works_CXX=yes
  27971. - fi
  27972. - fi
  27973. - $rm conftest*
  27974. -
  27975. -fi
  27976. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  27977. -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  27978. -
  27979. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  27980. - case $lt_prog_compiler_pic_CXX in
  27981. - "" | " "*) ;;
  27982. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  27983. - esac
  27984. -else
  27985. - lt_prog_compiler_pic_CXX=
  27986. - lt_prog_compiler_can_build_shared_CXX=no
  27987. -fi
  27988. -
  27989. -fi
  27990. -case $host_os in
  27991. - # For platforms which do not support PIC, -DPIC is meaningless:
  27992. - *djgpp*)
  27993. - lt_prog_compiler_pic_CXX=
  27994. - ;;
  27995. - *)
  27996. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  27997. - ;;
  27998. -esac
  27999. -
  28000. -#
  28001. -# Check to make sure the static flag actually works.
  28002. -#
  28003. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  28004. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28005. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  28006. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  28007. - $as_echo_n "(cached) " >&6
  28008. -else
  28009. - lt_cv_prog_compiler_static_works_CXX=no
  28010. - save_LDFLAGS="$LDFLAGS"
  28011. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28012. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28013. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28014. - # The linker can only warn and ignore the option if not recognized
  28015. - # So say no if there are warnings
  28016. - if test -s conftest.err; then
  28017. - # Append any errors to the config.log.
  28018. - cat conftest.err 1>&5
  28019. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28020. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28021. - if diff conftest.exp conftest.er2 >/dev/null; then
  28022. - lt_cv_prog_compiler_static_works_CXX=yes
  28023. - fi
  28024. - else
  28025. - lt_cv_prog_compiler_static_works_CXX=yes
  28026. - fi
  28027. - fi
  28028. - $rm -r conftest*
  28029. - LDFLAGS="$save_LDFLAGS"
  28030. -
  28031. -fi
  28032. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  28033. -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  28034. -
  28035. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  28036. - :
  28037. -else
  28038. - lt_prog_compiler_static_CXX=
  28039. -fi
  28040. -
  28041. -
  28042. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28043. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  28044. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  28045. - $as_echo_n "(cached) " >&6
  28046. -else
  28047. - lt_cv_prog_compiler_c_o_CXX=no
  28048. - $rm -r conftest 2>/dev/null
  28049. - mkdir conftest
  28050. - cd conftest
  28051. - mkdir out
  28052. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28053. -
  28054. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  28055. - # Insert the option either (1) after the last *FLAGS variable, or
  28056. - # (2) before a word containing "conftest.", or (3) at the end.
  28057. - # Note that $ac_compile itself does not contain backslashes and begins
  28058. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28059. - lt_compile=`echo "$ac_compile" | $SED \
  28060. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28061. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28062. - -e 's:$: $lt_compiler_flag:'`
  28063. - (eval echo "\"\$as_me:13181: $lt_compile\"" >&5)
  28064. - (eval "$lt_compile" 2>out/conftest.err)
  28065. - ac_status=$?
  28066. - cat out/conftest.err >&5
  28067. - echo "$as_me:13185: \$? = $ac_status" >&5
  28068. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28069. - then
  28070. - # The compiler can only warn and ignore the option if not recognized
  28071. - # So say no if there are warnings
  28072. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  28073. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  28074. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  28075. - lt_cv_prog_compiler_c_o_CXX=yes
  28076. - fi
  28077. - fi
  28078. - chmod u+w . 2>&5
  28079. - $rm conftest*
  28080. - # SGI C++ compiler will create directory out/ii_files/ for
  28081. - # template instantiation
  28082. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  28083. - $rm out/* && rmdir out
  28084. - cd ..
  28085. - rmdir conftest
  28086. - $rm conftest*
  28087. -
  28088. -fi
  28089. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  28090. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  28091. -
  28092. -
  28093. -hard_links="nottested"
  28094. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  28095. - # do not overwrite the value of need_locks provided by the user
  28096. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  28097. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  28098. - hard_links=yes
  28099. - $rm conftest*
  28100. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28101. - touch conftest.a
  28102. - ln conftest.a conftest.b 2>&5 || hard_links=no
  28103. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28104. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  28105. -$as_echo "$hard_links" >&6; }
  28106. - if test "$hard_links" = no; then
  28107. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28108. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28109. - need_locks=warn
  28110. - fi
  28111. -else
  28112. - need_locks=no
  28113. -fi
  28114. -
  28115. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28116. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  28117. -
  28118. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28119. - case $host_os in
  28120. - aix[4-9]*)
  28121. - # If we're using GNU nm, then we don't want the "-C" option.
  28122. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28123. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28124. - 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'
  28125. - else
  28126. - 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'
  28127. - fi
  28128. - ;;
  28129. - pw32*)
  28130. - export_symbols_cmds_CXX="$ltdll_cmds"
  28131. - ;;
  28132. - cygwin* | mingw*)
  28133. - 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'
  28134. - ;;
  28135. - *)
  28136. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28137. - ;;
  28138. - esac
  28139. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  28140. -
  28141. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28142. -$as_echo "$ld_shlibs_CXX" >&6; }
  28143. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28144. -
  28145. -#
  28146. -# Do we need to explicitly link libc?
  28147. -#
  28148. -case "x$archive_cmds_need_lc_CXX" in
  28149. -x|xyes)
  28150. - # Assume -lc should be added
  28151. - archive_cmds_need_lc_CXX=yes
  28152. -
  28153. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28154. - case $archive_cmds_CXX in
  28155. - *'~'*)
  28156. - # FIXME: we may have to deal with multi-command sequences.
  28157. - ;;
  28158. - '$CC '*)
  28159. - # Test whether the compiler implicitly links with -lc since on some
  28160. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28161. - # to ld, don't add -lc before -lgcc.
  28162. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28163. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  28164. - $rm conftest*
  28165. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28166. -
  28167. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28168. - (eval $ac_compile) 2>&5
  28169. - ac_status=$?
  28170. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28171. - (exit $ac_status); } 2>conftest.err; then
  28172. - soname=conftest
  28173. - lib=conftest
  28174. - libobjs=conftest.$ac_objext
  28175. - deplibs=
  28176. - wl=$lt_prog_compiler_wl_CXX
  28177. - pic_flag=$lt_prog_compiler_pic_CXX
  28178. - compiler_flags=-v
  28179. - linker_flags=-v
  28180. - verstring=
  28181. - output_objdir=.
  28182. - libname=conftest
  28183. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  28184. - allow_undefined_flag_CXX=
  28185. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28186. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28187. - ac_status=$?
  28188. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28189. - (exit $ac_status); }
  28190. - then
  28191. - archive_cmds_need_lc_CXX=no
  28192. - else
  28193. - archive_cmds_need_lc_CXX=yes
  28194. - fi
  28195. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  28196. - else
  28197. - cat conftest.err 1>&5
  28198. - fi
  28199. - $rm conftest*
  28200. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  28201. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  28202. - ;;
  28203. - esac
  28204. - fi
  28205. - ;;
  28206. -esac
  28207. -
  28208. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28209. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28210. -library_names_spec=
  28211. -libname_spec='lib$name'
  28212. -soname_spec=
  28213. -shrext_cmds=".so"
  28214. -postinstall_cmds=
  28215. -postuninstall_cmds=
  28216. -finish_cmds=
  28217. -finish_eval=
  28218. -shlibpath_var=
  28219. -shlibpath_overrides_runpath=unknown
  28220. -version_type=none
  28221. -dynamic_linker="$host_os ld.so"
  28222. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28223. -
  28224. -need_lib_prefix=unknown
  28225. -hardcode_into_libs=no
  28226. -
  28227. -# when you set need_version to no, make sure it does not cause -set_version
  28228. -# flags to be left without arguments
  28229. -need_version=unknown
  28230. -
  28231. -case $host_os in
  28232. -aix3*)
  28233. - version_type=linux
  28234. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28235. - shlibpath_var=LIBPATH
  28236. -
  28237. - # AIX 3 has no versioning support, so we append a major version to the name.
  28238. - soname_spec='${libname}${release}${shared_ext}$major'
  28239. - ;;
  28240. -
  28241. -aix[4-9]*)
  28242. - version_type=linux
  28243. - need_lib_prefix=no
  28244. - need_version=no
  28245. - hardcode_into_libs=yes
  28246. - if test "$host_cpu" = ia64; then
  28247. - # AIX 5 supports IA64
  28248. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28249. - shlibpath_var=LD_LIBRARY_PATH
  28250. - else
  28251. - # With GCC up to 2.95.x, collect2 would create an import file
  28252. - # for dependence libraries. The import file would start with
  28253. - # the line `#! .'. This would cause the generated library to
  28254. - # depend on `.', always an invalid library. This was fixed in
  28255. - # development snapshots of GCC prior to 3.0.
  28256. - case $host_os in
  28257. - aix4 | aix4.[01] | aix4.[01].*)
  28258. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28259. - echo ' yes '
  28260. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28261. - :
  28262. - else
  28263. - can_build_shared=no
  28264. - fi
  28265. - ;;
  28266. - esac
  28267. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28268. - # soname into executable. Probably we can add versioning support to
  28269. - # collect2, so additional links can be useful in future.
  28270. - if test "$aix_use_runtimelinking" = yes; then
  28271. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28272. - # instead of lib<name>.a to let people know that these are not
  28273. - # typical AIX shared libraries.
  28274. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28275. - else
  28276. - # We preserve .a as extension for shared libraries through AIX4.2
  28277. - # and later when we are not doing run time linking.
  28278. - library_names_spec='${libname}${release}.a $libname.a'
  28279. - soname_spec='${libname}${release}${shared_ext}$major'
  28280. - fi
  28281. - shlibpath_var=LIBPATH
  28282. - fi
  28283. - ;;
  28284. -
  28285. -amigaos*)
  28286. - library_names_spec='$libname.ixlibrary $libname.a'
  28287. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28288. - 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'
  28289. - ;;
  28290. -
  28291. -beos*)
  28292. - library_names_spec='${libname}${shared_ext}'
  28293. - dynamic_linker="$host_os ld.so"
  28294. - shlibpath_var=LIBRARY_PATH
  28295. - ;;
  28296. -
  28297. -bsdi[45]*)
  28298. - version_type=linux
  28299. - need_version=no
  28300. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28301. - soname_spec='${libname}${release}${shared_ext}$major'
  28302. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28303. - shlibpath_var=LD_LIBRARY_PATH
  28304. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28305. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28306. - # the default ld.so.conf also contains /usr/contrib/lib and
  28307. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28308. - # libtool to hard-code these into programs
  28309. - ;;
  28310. -
  28311. -cygwin* | mingw* | pw32*)
  28312. - version_type=windows
  28313. - shrext_cmds=".dll"
  28314. - need_version=no
  28315. - need_lib_prefix=no
  28316. -
  28317. - case $GCC,$host_os in
  28318. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28319. - library_names_spec='$libname.dll.a'
  28320. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28321. - postinstall_cmds='base_file=`basename \${file}`~
  28322. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28323. - dldir=$destdir/`dirname \$dlpath`~
  28324. - test -d \$dldir || mkdir -p \$dldir~
  28325. - $install_prog $dir/$dlname \$dldir/$dlname~
  28326. - chmod a+x \$dldir/$dlname'
  28327. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28328. - dlpath=$dir/\$dldll~
  28329. - $rm \$dlpath'
  28330. - shlibpath_overrides_runpath=yes
  28331. -
  28332. - case $host_os in
  28333. - cygwin*)
  28334. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28335. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28336. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28337. - ;;
  28338. - mingw*)
  28339. - # MinGW DLLs use traditional 'lib' prefix
  28340. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28341. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28342. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28343. - # It is most probably a Windows format PATH printed by
  28344. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28345. - # path with ; separators, and with drive letters. We can handle the
  28346. - # drive letters (cygwin fileutils understands them), so leave them,
  28347. - # especially as we might pass files found there to a mingw objdump,
  28348. - # which wouldn't understand a cygwinified path. Ahh.
  28349. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28350. - else
  28351. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28352. - fi
  28353. - ;;
  28354. - pw32*)
  28355. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  28356. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28357. - ;;
  28358. - esac
  28359. - ;;
  28360. -
  28361. - *)
  28362. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  28363. - ;;
  28364. - esac
  28365. - dynamic_linker='Win32 ld.exe'
  28366. - # FIXME: first we should search . and the directory the executable is in
  28367. - shlibpath_var=PATH
  28368. - ;;
  28369. -
  28370. -darwin* | rhapsody*)
  28371. - dynamic_linker="$host_os dyld"
  28372. - version_type=darwin
  28373. - need_lib_prefix=no
  28374. - need_version=no
  28375. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28376. - soname_spec='${libname}${release}${major}$shared_ext'
  28377. - shlibpath_overrides_runpath=yes
  28378. - shlibpath_var=DYLD_LIBRARY_PATH
  28379. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  28380. -
  28381. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28382. - ;;
  28383. -
  28384. -dgux*)
  28385. - version_type=linux
  28386. - need_lib_prefix=no
  28387. - need_version=no
  28388. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  28389. - soname_spec='${libname}${release}${shared_ext}$major'
  28390. - shlibpath_var=LD_LIBRARY_PATH
  28391. - ;;
  28392. -
  28393. -freebsd1*)
  28394. - dynamic_linker=no
  28395. - ;;
  28396. -
  28397. -freebsd* | dragonfly*)
  28398. - # DragonFly does not have aout. When/if they implement a new
  28399. - # versioning mechanism, adjust this.
  28400. - if test -x /usr/bin/objformat; then
  28401. - objformat=`/usr/bin/objformat`
  28402. - else
  28403. - case $host_os in
  28404. - freebsd[123]*) objformat=aout ;;
  28405. - *) objformat=elf ;;
  28406. - esac
  28407. - fi
  28408. - version_type=freebsd-$objformat
  28409. - case $version_type in
  28410. - freebsd-elf*)
  28411. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28412. - need_version=no
  28413. - need_lib_prefix=no
  28414. - ;;
  28415. - freebsd-*)
  28416. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  28417. - need_version=yes
  28418. - ;;
  28419. - esac
  28420. - shlibpath_var=LD_LIBRARY_PATH
  28421. - case $host_os in
  28422. - freebsd2*)
  28423. - shlibpath_overrides_runpath=yes
  28424. - ;;
  28425. - freebsd3.[01]* | freebsdelf3.[01]*)
  28426. - shlibpath_overrides_runpath=yes
  28427. - hardcode_into_libs=yes
  28428. - ;;
  28429. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  28430. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  28431. - shlibpath_overrides_runpath=no
  28432. - hardcode_into_libs=yes
  28433. - ;;
  28434. - *) # from 4.6 on, and DragonFly
  28435. - shlibpath_overrides_runpath=yes
  28436. - hardcode_into_libs=yes
  28437. - ;;
  28438. - esac
  28439. - ;;
  28440. -
  28441. -gnu*)
  28442. - version_type=linux
  28443. - need_lib_prefix=no
  28444. - need_version=no
  28445. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  28446. - soname_spec='${libname}${release}${shared_ext}$major'
  28447. - shlibpath_var=LD_LIBRARY_PATH
  28448. - hardcode_into_libs=yes
  28449. - ;;
  28450. -
  28451. -hpux9* | hpux10* | hpux11*)
  28452. - # Give a soname corresponding to the major version so that dld.sl refuses to
  28453. - # link against other versions.
  28454. - version_type=sunos
  28455. - need_lib_prefix=no
  28456. - need_version=no
  28457. - case $host_cpu in
  28458. - ia64*)
  28459. - shrext_cmds='.so'
  28460. - hardcode_into_libs=yes
  28461. - dynamic_linker="$host_os dld.so"
  28462. - shlibpath_var=LD_LIBRARY_PATH
  28463. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28464. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28465. - soname_spec='${libname}${release}${shared_ext}$major'
  28466. - if test "X$HPUX_IA64_MODE" = X32; then
  28467. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  28468. - else
  28469. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  28470. - fi
  28471. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28472. - ;;
  28473. - hppa*64*)
  28474. - shrext_cmds='.sl'
  28475. - hardcode_into_libs=yes
  28476. - dynamic_linker="$host_os dld.sl"
  28477. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28478. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28479. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28480. - soname_spec='${libname}${release}${shared_ext}$major'
  28481. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28482. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28483. - ;;
  28484. - *)
  28485. - shrext_cmds='.sl'
  28486. - dynamic_linker="$host_os dld.sl"
  28487. - shlibpath_var=SHLIB_PATH
  28488. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  28489. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28490. - soname_spec='${libname}${release}${shared_ext}$major'
  28491. - ;;
  28492. - esac
  28493. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  28494. - postinstall_cmds='chmod 555 $lib'
  28495. - ;;
  28496. -
  28497. -interix[3-9]*)
  28498. - version_type=linux
  28499. - need_lib_prefix=no
  28500. - need_version=no
  28501. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28502. - soname_spec='${libname}${release}${shared_ext}$major'
  28503. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  28504. - shlibpath_var=LD_LIBRARY_PATH
  28505. - shlibpath_overrides_runpath=no
  28506. - hardcode_into_libs=yes
  28507. - ;;
  28508. -
  28509. -irix5* | irix6* | nonstopux*)
  28510. - case $host_os in
  28511. - nonstopux*) version_type=nonstopux ;;
  28512. - *)
  28513. - if test "$lt_cv_prog_gnu_ld" = yes; then
  28514. - version_type=linux
  28515. - else
  28516. - version_type=irix
  28517. - fi ;;
  28518. - esac
  28519. - need_lib_prefix=no
  28520. - need_version=no
  28521. - soname_spec='${libname}${release}${shared_ext}$major'
  28522. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  28523. - case $host_os in
  28524. - irix5* | nonstopux*)
  28525. - libsuff= shlibsuff=
  28526. - ;;
  28527. - *)
  28528. - case $LD in # libtool.m4 will add one of these switches to LD
  28529. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  28530. - libsuff= shlibsuff= libmagic=32-bit;;
  28531. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  28532. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  28533. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  28534. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  28535. - *) libsuff= shlibsuff= libmagic=never-match;;
  28536. - esac
  28537. - ;;
  28538. - esac
  28539. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  28540. - shlibpath_overrides_runpath=no
  28541. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28542. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28543. - hardcode_into_libs=yes
  28544. - ;;
  28545. -
  28546. -# No shared lib support for Linux oldld, aout, or coff.
  28547. -linux*oldld* | linux*aout* | linux*coff*)
  28548. - dynamic_linker=no
  28549. - ;;
  28550. -
  28551. -# This must be Linux ELF.
  28552. -linux* | k*bsd*-gnu)
  28553. - version_type=linux
  28554. - need_lib_prefix=no
  28555. - need_version=no
  28556. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28557. - soname_spec='${libname}${release}${shared_ext}$major'
  28558. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28559. - shlibpath_var=LD_LIBRARY_PATH
  28560. - shlibpath_overrides_runpath=no
  28561. - # This implies no fast_install, which is unacceptable.
  28562. - # Some rework will be needed to allow for fast_install
  28563. - # before this can be enabled.
  28564. - hardcode_into_libs=yes
  28565. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28566. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28567. -
  28568. - # Append ld.so.conf contents to the search path
  28569. - if test -f /etc/ld.so.conf; then
  28570. - 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' ' '`
  28571. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  28572. - fi
  28573. -
  28574. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  28575. - # powerpc, because MkLinux only supported shared libraries with the
  28576. - # GNU dynamic linker. Since this was broken with cross compilers,
  28577. - # most powerpc-linux boxes support dynamic linking these days and
  28578. - # people can always --disable-shared, the test was removed, and we
  28579. - # assume the GNU/Linux dynamic linker is in use.
  28580. - dynamic_linker='GNU/Linux ld.so'
  28581. - ;;
  28582. -
  28583. -netbsd*)
  28584. - version_type=sunos
  28585. - need_lib_prefix=no
  28586. - need_version=no
  28587. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28588. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28589. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28590. - dynamic_linker='NetBSD (a.out) ld.so'
  28591. - else
  28592. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28593. - soname_spec='${libname}${release}${shared_ext}$major'
  28594. - dynamic_linker='NetBSD ld.elf_so'
  28595. - fi
  28596. - shlibpath_var=LD_LIBRARY_PATH
  28597. - shlibpath_overrides_runpath=yes
  28598. - hardcode_into_libs=yes
  28599. - ;;
  28600. -
  28601. -newsos6)
  28602. - version_type=linux
  28603. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28604. - shlibpath_var=LD_LIBRARY_PATH
  28605. - shlibpath_overrides_runpath=yes
  28606. - ;;
  28607. -
  28608. -nto-qnx*)
  28609. - version_type=linux
  28610. - need_lib_prefix=no
  28611. - need_version=no
  28612. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28613. - soname_spec='${libname}${release}${shared_ext}$major'
  28614. - shlibpath_var=LD_LIBRARY_PATH
  28615. - shlibpath_overrides_runpath=yes
  28616. - ;;
  28617. -
  28618. -openbsd*)
  28619. - version_type=sunos
  28620. - sys_lib_dlsearch_path_spec="/usr/lib"
  28621. - need_lib_prefix=no
  28622. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  28623. - case $host_os in
  28624. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  28625. - *) need_version=no ;;
  28626. - esac
  28627. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28628. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28629. - shlibpath_var=LD_LIBRARY_PATH
  28630. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28631. - case $host_os in
  28632. - openbsd2.[89] | openbsd2.[89].*)
  28633. - shlibpath_overrides_runpath=no
  28634. - ;;
  28635. - *)
  28636. - shlibpath_overrides_runpath=yes
  28637. - ;;
  28638. - esac
  28639. - else
  28640. - shlibpath_overrides_runpath=yes
  28641. - fi
  28642. - ;;
  28643. -
  28644. -os2*)
  28645. - libname_spec='$name'
  28646. - shrext_cmds=".dll"
  28647. - need_lib_prefix=no
  28648. - library_names_spec='$libname${shared_ext} $libname.a'
  28649. - dynamic_linker='OS/2 ld.exe'
  28650. - shlibpath_var=LIBPATH
  28651. - ;;
  28652. -
  28653. -osf3* | osf4* | osf5*)
  28654. - version_type=osf
  28655. - need_lib_prefix=no
  28656. - need_version=no
  28657. - soname_spec='${libname}${release}${shared_ext}$major'
  28658. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28659. - shlibpath_var=LD_LIBRARY_PATH
  28660. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  28661. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  28662. - ;;
  28663. -
  28664. -rdos*)
  28665. - dynamic_linker=no
  28666. - ;;
  28667. -
  28668. -solaris*)
  28669. - version_type=linux
  28670. - need_lib_prefix=no
  28671. - need_version=no
  28672. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28673. - soname_spec='${libname}${release}${shared_ext}$major'
  28674. - shlibpath_var=LD_LIBRARY_PATH
  28675. - shlibpath_overrides_runpath=yes
  28676. - hardcode_into_libs=yes
  28677. - # ldd complains unless libraries are executable
  28678. - postinstall_cmds='chmod +x $lib'
  28679. - ;;
  28680. -
  28681. -sunos4*)
  28682. - version_type=sunos
  28683. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28684. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  28685. - shlibpath_var=LD_LIBRARY_PATH
  28686. - shlibpath_overrides_runpath=yes
  28687. - if test "$with_gnu_ld" = yes; then
  28688. - need_lib_prefix=no
  28689. - fi
  28690. - need_version=yes
  28691. - ;;
  28692. -
  28693. -sysv4 | sysv4.3*)
  28694. - version_type=linux
  28695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28696. - soname_spec='${libname}${release}${shared_ext}$major'
  28697. - shlibpath_var=LD_LIBRARY_PATH
  28698. - case $host_vendor in
  28699. - sni)
  28700. - shlibpath_overrides_runpath=no
  28701. - need_lib_prefix=no
  28702. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  28703. - runpath_var=LD_RUN_PATH
  28704. - ;;
  28705. - siemens)
  28706. - need_lib_prefix=no
  28707. - ;;
  28708. - motorola)
  28709. - need_lib_prefix=no
  28710. - need_version=no
  28711. - shlibpath_overrides_runpath=no
  28712. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  28713. - ;;
  28714. - esac
  28715. - ;;
  28716. -
  28717. -sysv4*MP*)
  28718. - if test -d /usr/nec ;then
  28719. - version_type=linux
  28720. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  28721. - soname_spec='$libname${shared_ext}.$major'
  28722. - shlibpath_var=LD_LIBRARY_PATH
  28723. - fi
  28724. - ;;
  28725. -
  28726. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  28727. - version_type=freebsd-elf
  28728. - need_lib_prefix=no
  28729. - need_version=no
  28730. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28731. - soname_spec='${libname}${release}${shared_ext}$major'
  28732. - shlibpath_var=LD_LIBRARY_PATH
  28733. - hardcode_into_libs=yes
  28734. - if test "$with_gnu_ld" = yes; then
  28735. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  28736. - shlibpath_overrides_runpath=no
  28737. - else
  28738. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  28739. - shlibpath_overrides_runpath=yes
  28740. - case $host_os in
  28741. - sco3.2v5*)
  28742. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  28743. - ;;
  28744. - esac
  28745. - fi
  28746. - sys_lib_dlsearch_path_spec='/usr/lib'
  28747. - ;;
  28748. -
  28749. -uts4*)
  28750. - version_type=linux
  28751. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28752. - soname_spec='${libname}${release}${shared_ext}$major'
  28753. - shlibpath_var=LD_LIBRARY_PATH
  28754. - ;;
  28755. -
  28756. -*)
  28757. - dynamic_linker=no
  28758. - ;;
  28759. -esac
  28760. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  28761. -$as_echo "$dynamic_linker" >&6; }
  28762. -test "$dynamic_linker" = no && can_build_shared=no
  28763. -
  28764. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  28765. - $as_echo_n "(cached) " >&6
  28766. -else
  28767. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  28768. -fi
  28769. -
  28770. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  28771. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  28772. - $as_echo_n "(cached) " >&6
  28773. -else
  28774. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  28775. -fi
  28776. -
  28777. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  28778. -
  28779. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28780. -if test "$GCC" = yes; then
  28781. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28782. -fi
  28783. -
  28784. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  28785. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  28786. -hardcode_action_CXX=
  28787. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  28788. - test -n "$runpath_var_CXX" || \
  28789. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  28790. -
  28791. - # We can hardcode non-existant directories.
  28792. - if test "$hardcode_direct_CXX" != no &&
  28793. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28794. - # have to relink, otherwise we might link with an installed library
  28795. - # when we should be linking with a yet-to-be-installed one
  28796. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  28797. - test "$hardcode_minus_L_CXX" != no; then
  28798. - # Linking always hardcodes the temporary library directory.
  28799. - hardcode_action_CXX=relink
  28800. - else
  28801. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28802. - hardcode_action_CXX=immediate
  28803. - fi
  28804. -else
  28805. - # We cannot hardcode anything, or else we can only hardcode existing
  28806. - # directories.
  28807. - hardcode_action_CXX=unsupported
  28808. -fi
  28809. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  28810. -$as_echo "$hardcode_action_CXX" >&6; }
  28811. -
  28812. -if test "$hardcode_action_CXX" = relink; then
  28813. - # Fast installation is not supported
  28814. - enable_fast_install=no
  28815. -elif test "$shlibpath_overrides_runpath" = yes ||
  28816. - test "$enable_shared" = no; then
  28817. - # Fast installation is not necessary
  28818. - enable_fast_install=needless
  28819. -fi
  28820. -
  28821. -
  28822. -# The else clause should only fire when bootstrapping the
  28823. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28824. -# with your package, and you will get complaints that there are
  28825. -# no rules to generate ltmain.sh.
  28826. -if test -f "$ltmain"; then
  28827. - # See if we are running on zsh, and set the options which allow our commands through
  28828. - # without removal of \ escapes.
  28829. - if test -n "${ZSH_VERSION+set}" ; then
  28830. - setopt NO_GLOB_SUBST
  28831. - fi
  28832. - # Now quote all the things that may contain metacharacters while being
  28833. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28834. - # variables and quote the copies for generation of the libtool script.
  28835. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  28836. - SED SHELL STRIP \
  28837. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28838. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28839. - deplibs_check_method reload_flag reload_cmds need_locks \
  28840. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28841. - lt_cv_sys_global_symbol_to_c_name_address \
  28842. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28843. - old_postinstall_cmds old_postuninstall_cmds \
  28844. - compiler_CXX \
  28845. - CC_CXX \
  28846. - LD_CXX \
  28847. - lt_prog_compiler_wl_CXX \
  28848. - lt_prog_compiler_pic_CXX \
  28849. - lt_prog_compiler_static_CXX \
  28850. - lt_prog_compiler_no_builtin_flag_CXX \
  28851. - export_dynamic_flag_spec_CXX \
  28852. - thread_safe_flag_spec_CXX \
  28853. - whole_archive_flag_spec_CXX \
  28854. - enable_shared_with_static_runtimes_CXX \
  28855. - old_archive_cmds_CXX \
  28856. - old_archive_from_new_cmds_CXX \
  28857. - predep_objects_CXX \
  28858. - postdep_objects_CXX \
  28859. - predeps_CXX \
  28860. - postdeps_CXX \
  28861. - compiler_lib_search_path_CXX \
  28862. - compiler_lib_search_dirs_CXX \
  28863. - archive_cmds_CXX \
  28864. - archive_expsym_cmds_CXX \
  28865. - postinstall_cmds_CXX \
  28866. - postuninstall_cmds_CXX \
  28867. - old_archive_from_expsyms_cmds_CXX \
  28868. - allow_undefined_flag_CXX \
  28869. - no_undefined_flag_CXX \
  28870. - export_symbols_cmds_CXX \
  28871. - hardcode_libdir_flag_spec_CXX \
  28872. - hardcode_libdir_flag_spec_ld_CXX \
  28873. - hardcode_libdir_separator_CXX \
  28874. - hardcode_automatic_CXX \
  28875. - module_cmds_CXX \
  28876. - module_expsym_cmds_CXX \
  28877. - lt_cv_prog_compiler_c_o_CXX \
  28878. - fix_srcfile_path_CXX \
  28879. - exclude_expsyms_CXX \
  28880. - include_expsyms_CXX; do
  28881. -
  28882. - case $var in
  28883. - old_archive_cmds_CXX | \
  28884. - old_archive_from_new_cmds_CXX | \
  28885. - archive_cmds_CXX | \
  28886. - archive_expsym_cmds_CXX | \
  28887. - module_cmds_CXX | \
  28888. - module_expsym_cmds_CXX | \
  28889. - old_archive_from_expsyms_cmds_CXX | \
  28890. - export_symbols_cmds_CXX | \
  28891. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  28892. - postinstall_cmds | postuninstall_cmds | \
  28893. - old_postinstall_cmds | old_postuninstall_cmds | \
  28894. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  28895. - # Double-quote double-evaled strings.
  28896. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  28897. - ;;
  28898. - *)
  28899. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  28900. - ;;
  28901. - esac
  28902. - done
  28903. -
  28904. - case $lt_echo in
  28905. - *'\$0 --fallback-echo"')
  28906. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  28907. - ;;
  28908. - esac
  28909. -
  28910. -cfgfile="$ofile"
  28911. -
  28912. - cat <<__EOF__ >> "$cfgfile"
  28913. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  28914. -
  28915. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28916. -
  28917. -# Shell to use when invoking shell scripts.
  28918. -SHELL=$lt_SHELL
  28919. -
  28920. -# Whether or not to build shared libraries.
  28921. -build_libtool_libs=$enable_shared
  28922. -
  28923. -# Whether or not to build static libraries.
  28924. -build_old_libs=$enable_static
  28925. -
  28926. -# Whether or not to add -lc for building shared libraries.
  28927. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28928. -
  28929. -# Whether or not to disallow shared libs when runtime libs are static
  28930. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28931. -
  28932. -# Whether or not to optimize for fast installation.
  28933. -fast_install=$enable_fast_install
  28934. -
  28935. -# The host system.
  28936. -host_alias=$host_alias
  28937. -host=$host
  28938. -host_os=$host_os
  28939. -
  28940. -# The build system.
  28941. -build_alias=$build_alias
  28942. -build=$build
  28943. -build_os=$build_os
  28944. -
  28945. -# An echo program that does not interpret backslashes.
  28946. -echo=$lt_echo
  28947. -
  28948. -# The archiver.
  28949. -AR=$lt_AR
  28950. -AR_FLAGS=$lt_AR_FLAGS
  28951. -
  28952. -# A C compiler.
  28953. -LTCC=$lt_LTCC
  28954. -
  28955. -# LTCC compiler flags.
  28956. -LTCFLAGS=$lt_LTCFLAGS
  28957. -
  28958. -# A language-specific compiler.
  28959. -CC=$lt_compiler_CXX
  28960. -
  28961. -# Is the compiler the GNU C compiler?
  28962. -with_gcc=$GCC_CXX
  28963. -
  28964. -# An ERE matcher.
  28965. -EGREP=$lt_EGREP
  28966. -
  28967. -# The linker used to build libraries.
  28968. -LD=$lt_LD_CXX
  28969. -
  28970. -# Whether we need hard or soft links.
  28971. -LN_S=$lt_LN_S
  28972. -
  28973. -# A BSD-compatible nm program.
  28974. -NM=$lt_NM
  28975. -
  28976. -# A symbol stripping program
  28977. -STRIP=$lt_STRIP
  28978. -
  28979. -# Used to examine libraries when file_magic_cmd begins "file"
  28980. -MAGIC_CMD=$MAGIC_CMD
  28981. -
  28982. -# Used on cygwin: DLL creation program.
  28983. -DLLTOOL="$DLLTOOL"
  28984. -
  28985. -# Used on cygwin: object dumper.
  28986. -OBJDUMP="$OBJDUMP"
  28987. -
  28988. -# Used on cygwin: assembler.
  28989. -AS="$AS"
  28990. -
  28991. -# The name of the directory that contains temporary libtool files.
  28992. -objdir=$objdir
  28993. -
  28994. -# How to create reloadable object files.
  28995. -reload_flag=$lt_reload_flag
  28996. -reload_cmds=$lt_reload_cmds
  28997. -
  28998. -# How to pass a linker flag through the compiler.
  28999. -wl=$lt_lt_prog_compiler_wl_CXX
  29000. -
  29001. -# Object file suffix (normally "o").
  29002. -objext="$ac_objext"
  29003. -
  29004. -# Old archive suffix (normally "a").
  29005. -libext="$libext"
  29006. -
  29007. -# Shared library suffix (normally ".so").
  29008. -shrext_cmds='$shrext_cmds'
  29009. -
  29010. -# Executable file suffix (normally "").
  29011. -exeext="$exeext"
  29012. -
  29013. -# Additional compiler flags for building library objects.
  29014. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  29015. -pic_mode=$pic_mode
  29016. -
  29017. -# What is the maximum length of a command?
  29018. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29019. -
  29020. -# Does compiler simultaneously support -c and -o options?
  29021. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  29022. -
  29023. -# Must we lock files when doing compilation?
  29024. -need_locks=$lt_need_locks
  29025. -
  29026. -# Do we need the lib prefix for modules?
  29027. -need_lib_prefix=$need_lib_prefix
  29028. -
  29029. -# Do we need a version for libraries?
  29030. -need_version=$need_version
  29031. -
  29032. -# Whether dlopen is supported.
  29033. -dlopen_support=$enable_dlopen
  29034. -
  29035. -# Whether dlopen of programs is supported.
  29036. -dlopen_self=$enable_dlopen_self
  29037. -
  29038. -# Whether dlopen of statically linked programs is supported.
  29039. -dlopen_self_static=$enable_dlopen_self_static
  29040. -
  29041. -# Compiler flag to prevent dynamic linking.
  29042. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  29043. -
  29044. -# Compiler flag to turn off builtin functions.
  29045. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  29046. -
  29047. -# Compiler flag to allow reflexive dlopens.
  29048. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  29049. -
  29050. -# Compiler flag to generate shared objects directly from archives.
  29051. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  29052. -
  29053. -# Compiler flag to generate thread-safe objects.
  29054. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  29055. -
  29056. -# Library versioning type.
  29057. -version_type=$version_type
  29058. -
  29059. -# Format of library name prefix.
  29060. -libname_spec=$lt_libname_spec
  29061. -
  29062. -# List of archive names. First name is the real one, the rest are links.
  29063. -# The last name is the one that the linker finds with -lNAME.
  29064. -library_names_spec=$lt_library_names_spec
  29065. -
  29066. -# The coded name of the library, if different from the real name.
  29067. -soname_spec=$lt_soname_spec
  29068. -
  29069. -# Commands used to build and install an old-style archive.
  29070. -RANLIB=$lt_RANLIB
  29071. -old_archive_cmds=$lt_old_archive_cmds_CXX
  29072. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29073. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29074. -
  29075. -# Create an old-style archive from a shared archive.
  29076. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  29077. -
  29078. -# Create a temporary old-style archive to link instead of a shared archive.
  29079. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  29080. -
  29081. -# Commands used to build and install a shared archive.
  29082. -archive_cmds=$lt_archive_cmds_CXX
  29083. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  29084. -postinstall_cmds=$lt_postinstall_cmds
  29085. -postuninstall_cmds=$lt_postuninstall_cmds
  29086. -
  29087. -# Commands used to build a loadable module (assumed same as above if empty)
  29088. -module_cmds=$lt_module_cmds_CXX
  29089. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  29090. -
  29091. -# Commands to strip libraries.
  29092. -old_striplib=$lt_old_striplib
  29093. -striplib=$lt_striplib
  29094. -
  29095. -# Dependencies to place before the objects being linked to create a
  29096. -# shared library.
  29097. -predep_objects=$lt_predep_objects_CXX
  29098. -
  29099. -# Dependencies to place after the objects being linked to create a
  29100. -# shared library.
  29101. -postdep_objects=$lt_postdep_objects_CXX
  29102. -
  29103. -# Dependencies to place before the objects being linked to create a
  29104. -# shared library.
  29105. -predeps=$lt_predeps_CXX
  29106. -
  29107. -# Dependencies to place after the objects being linked to create a
  29108. -# shared library.
  29109. -postdeps=$lt_postdeps_CXX
  29110. -
  29111. -# The directories searched by this compiler when creating a shared
  29112. -# library
  29113. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  29114. -
  29115. -# The library search path used internally by the compiler when linking
  29116. -# a shared library.
  29117. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  29118. -
  29119. -# Method to check whether dependent libraries are shared objects.
  29120. -deplibs_check_method=$lt_deplibs_check_method
  29121. -
  29122. -# Command to use when deplibs_check_method == file_magic.
  29123. -file_magic_cmd=$lt_file_magic_cmd
  29124. -
  29125. -# Flag that allows shared libraries with undefined symbols to be built.
  29126. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  29127. -
  29128. -# Flag that forces no undefined symbols.
  29129. -no_undefined_flag=$lt_no_undefined_flag_CXX
  29130. -
  29131. -# Commands used to finish a libtool library installation in a directory.
  29132. -finish_cmds=$lt_finish_cmds
  29133. -
  29134. -# Same as above, but a single script fragment to be evaled but not shown.
  29135. -finish_eval=$lt_finish_eval
  29136. -
  29137. -# Take the output of nm and produce a listing of raw symbols and C names.
  29138. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29139. -
  29140. -# Transform the output of nm in a proper C declaration
  29141. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29142. -
  29143. -# Transform the output of nm in a C name address pair
  29144. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29145. -
  29146. -# This is the shared library runtime path variable.
  29147. -runpath_var=$runpath_var
  29148. -
  29149. -# This is the shared library path variable.
  29150. -shlibpath_var=$shlibpath_var
  29151. -
  29152. -# Is shlibpath searched before the hard-coded library search path?
  29153. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29154. -
  29155. -# How to hardcode a shared library path into an executable.
  29156. -hardcode_action=$hardcode_action_CXX
  29157. -
  29158. -# Whether we should hardcode library paths into libraries.
  29159. -hardcode_into_libs=$hardcode_into_libs
  29160. -
  29161. -# Flag to hardcode \$libdir into a binary during linking.
  29162. -# This must work even if \$libdir does not exist.
  29163. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  29164. -
  29165. -# If ld is used when linking, flag to hardcode \$libdir into
  29166. -# a binary during linking. This must work even if \$libdir does
  29167. -# not exist.
  29168. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  29169. -
  29170. -# Whether we need a single -rpath flag with a separated argument.
  29171. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  29172. -
  29173. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29174. -# resulting binary.
  29175. -hardcode_direct=$hardcode_direct_CXX
  29176. -
  29177. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29178. -# resulting binary.
  29179. -hardcode_minus_L=$hardcode_minus_L_CXX
  29180. -
  29181. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29182. -# the resulting binary.
  29183. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  29184. -
  29185. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  29186. -# and all subsequent libraries and executables linked against it.
  29187. -hardcode_automatic=$hardcode_automatic_CXX
  29188. -
  29189. -# Variables whose values should be saved in libtool wrapper scripts and
  29190. -# restored at relink time.
  29191. -variables_saved_for_relink="$variables_saved_for_relink"
  29192. -
  29193. -# Whether libtool must link a program against all its dependency libraries.
  29194. -link_all_deplibs=$link_all_deplibs_CXX
  29195. -
  29196. -# Compile-time system search path for libraries
  29197. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29198. -
  29199. -# Run-time system search path for libraries
  29200. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29201. -
  29202. -# Fix the shell variable \$srcfile for the compiler.
  29203. -fix_srcfile_path=$lt_fix_srcfile_path
  29204. -
  29205. -# Set to yes if exported symbols are required.
  29206. -always_export_symbols=$always_export_symbols_CXX
  29207. -
  29208. -# The commands to list exported symbols.
  29209. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  29210. -
  29211. -# The commands to extract the exported symbol list from a shared archive.
  29212. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29213. -
  29214. -# Symbols that should not be listed in the preloaded symbols.
  29215. -exclude_expsyms=$lt_exclude_expsyms_CXX
  29216. -
  29217. -# Symbols that must always be exported.
  29218. -include_expsyms=$lt_include_expsyms_CXX
  29219. -
  29220. -# ### END LIBTOOL TAG CONFIG: $tagname
  29221. -
  29222. -__EOF__
  29223. -
  29224. -
  29225. -else
  29226. - # If there is no Makefile yet, we rely on a make rule to execute
  29227. - # `config.status --recheck' to rerun these tests and create the
  29228. - # libtool script then.
  29229. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29230. - if test -f "$ltmain_in"; then
  29231. - test -f Makefile && make "$ltmain"
  29232. - fi
  29233. -fi
  29234. -
  29235. -
  29236. -ac_ext=c
  29237. -ac_cpp='$CPP $CPPFLAGS'
  29238. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29239. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29240. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29241. -
  29242. -CC=$lt_save_CC
  29243. -LDCXX=$LD
  29244. -LD=$lt_save_LD
  29245. -GCC=$lt_save_GCC
  29246. -with_gnu_ldcxx=$with_gnu_ld
  29247. -with_gnu_ld=$lt_save_with_gnu_ld
  29248. -lt_cv_path_LDCXX=$lt_cv_path_LD
  29249. -lt_cv_path_LD=$lt_save_path_LD
  29250. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  29251. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  29252. -
  29253. - else
  29254. - tagname=""
  29255. - fi
  29256. - ;;
  29257. -
  29258. - F77)
  29259. - if test -n "$F77" && test "X$F77" != "Xno"; then
  29260. -
  29261. -ac_ext=f
  29262. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  29263. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29264. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  29265. -
  29266. -
  29267. -archive_cmds_need_lc_F77=no
  29268. -allow_undefined_flag_F77=
  29269. -always_export_symbols_F77=no
  29270. -archive_expsym_cmds_F77=
  29271. -export_dynamic_flag_spec_F77=
  29272. -hardcode_direct_F77=no
  29273. -hardcode_libdir_flag_spec_F77=
  29274. -hardcode_libdir_flag_spec_ld_F77=
  29275. -hardcode_libdir_separator_F77=
  29276. -hardcode_minus_L_F77=no
  29277. -hardcode_automatic_F77=no
  29278. -module_cmds_F77=
  29279. -module_expsym_cmds_F77=
  29280. -link_all_deplibs_F77=unknown
  29281. -old_archive_cmds_F77=$old_archive_cmds
  29282. -no_undefined_flag_F77=
  29283. -whole_archive_flag_spec_F77=
  29284. -enable_shared_with_static_runtimes_F77=no
  29285. -
  29286. -# Source file extension for f77 test sources.
  29287. -ac_ext=f
  29288. -
  29289. -# Object file extension for compiled f77 test sources.
  29290. -objext=o
  29291. -objext_F77=$objext
  29292. -
  29293. -# Code to be used in simple compile tests
  29294. -lt_simple_compile_test_code="\
  29295. - subroutine t
  29296. - return
  29297. - end
  29298. -"
  29299. -
  29300. -# Code to be used in simple link tests
  29301. -lt_simple_link_test_code="\
  29302. - program t
  29303. - end
  29304. -"
  29305. -
  29306. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  29307. -
  29308. -# If no C compiler was specified, use CC.
  29309. -LTCC=${LTCC-"$CC"}
  29310. -
  29311. -# If no C compiler flags were specified, use CFLAGS.
  29312. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29313. -
  29314. -# Allow CC to be a program name with arguments.
  29315. -compiler=$CC
  29316. -
  29317. -
  29318. -# save warnings/boilerplate of simple test code
  29319. -ac_outfile=conftest.$ac_objext
  29320. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  29321. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29322. -_lt_compiler_boilerplate=`cat conftest.err`
  29323. -$rm conftest*
  29324. -
  29325. -ac_outfile=conftest.$ac_objext
  29326. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  29327. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29328. -_lt_linker_boilerplate=`cat conftest.err`
  29329. -$rm -r conftest*
  29330. -
  29331. -
  29332. -# Allow CC to be a program name with arguments.
  29333. -lt_save_CC="$CC"
  29334. -CC=${F77-"f77"}
  29335. -compiler=$CC
  29336. -compiler_F77=$CC
  29337. -for cc_temp in $compiler""; do
  29338. - case $cc_temp in
  29339. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29340. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29341. - \-*) ;;
  29342. - *) break;;
  29343. - esac
  29344. -done
  29345. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29346. -
  29347. -
  29348. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  29349. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  29350. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  29351. -$as_echo "$can_build_shared" >&6; }
  29352. -
  29353. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  29354. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  29355. -test "$can_build_shared" = "no" && enable_shared=no
  29356. -
  29357. -# On AIX, shared libraries and static libraries use the same namespace, and
  29358. -# are all built from PIC.
  29359. -case $host_os in
  29360. -aix3*)
  29361. - test "$enable_shared" = yes && enable_static=no
  29362. - if test -n "$RANLIB"; then
  29363. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  29364. - postinstall_cmds='$RANLIB $lib'
  29365. - fi
  29366. - ;;
  29367. -aix[4-9]*)
  29368. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  29369. - test "$enable_shared" = yes && enable_static=no
  29370. - fi
  29371. - ;;
  29372. -esac
  29373. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  29374. -$as_echo "$enable_shared" >&6; }
  29375. -
  29376. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  29377. -$as_echo_n "checking whether to build static libraries... " >&6; }
  29378. -# Make sure either enable_shared or enable_static is yes.
  29379. -test "$enable_shared" = yes || enable_static=yes
  29380. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  29381. -$as_echo "$enable_static" >&6; }
  29382. -
  29383. -GCC_F77="$G77"
  29384. -LD_F77="$LD"
  29385. -
  29386. -lt_prog_compiler_wl_F77=
  29387. -lt_prog_compiler_pic_F77=
  29388. -lt_prog_compiler_static_F77=
  29389. -
  29390. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29391. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  29392. -
  29393. - if test "$GCC" = yes; then
  29394. - lt_prog_compiler_wl_F77='-Wl,'
  29395. - lt_prog_compiler_static_F77='-static'
  29396. -
  29397. - case $host_os in
  29398. - aix*)
  29399. - # All AIX code is PIC.
  29400. - if test "$host_cpu" = ia64; then
  29401. - # AIX 5 now supports IA64 processor
  29402. - lt_prog_compiler_static_F77='-Bstatic'
  29403. - fi
  29404. - ;;
  29405. -
  29406. - amigaos*)
  29407. - # FIXME: we need at least 68020 code to build shared libraries, but
  29408. - # adding the `-m68020' flag to GCC prevents building anything better,
  29409. - # like `-m68040'.
  29410. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  29411. - ;;
  29412. -
  29413. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29414. - # PIC is the default for these OSes.
  29415. - ;;
  29416. -
  29417. - mingw* | cygwin* | pw32* | os2*)
  29418. - # This hack is so that the source file can tell whether it is being
  29419. - # built for inclusion in a dll (and should export symbols for example).
  29420. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  29421. - # (--disable-auto-import) libraries
  29422. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  29423. - ;;
  29424. -
  29425. - darwin* | rhapsody*)
  29426. - # PIC is the default on this platform
  29427. - # Common symbols not allowed in MH_DYLIB files
  29428. - lt_prog_compiler_pic_F77='-fno-common'
  29429. - ;;
  29430. -
  29431. - interix[3-9]*)
  29432. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29433. - # Instead, we relocate shared libraries at runtime.
  29434. - ;;
  29435. -
  29436. - msdosdjgpp*)
  29437. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  29438. - # on systems that don't support them.
  29439. - lt_prog_compiler_can_build_shared_F77=no
  29440. - enable_shared=no
  29441. - ;;
  29442. -
  29443. - sysv4*MP*)
  29444. - if test -d /usr/nec; then
  29445. - lt_prog_compiler_pic_F77=-Kconform_pic
  29446. - fi
  29447. - ;;
  29448. -
  29449. - hpux*)
  29450. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29451. - # not for PA HP-UX.
  29452. - case $host_cpu in
  29453. - hppa*64*|ia64*)
  29454. - # +Z the default
  29455. - ;;
  29456. - *)
  29457. - lt_prog_compiler_pic_F77='-fPIC'
  29458. - ;;
  29459. - esac
  29460. - ;;
  29461. -
  29462. - *)
  29463. - lt_prog_compiler_pic_F77='-fPIC'
  29464. - ;;
  29465. - esac
  29466. - else
  29467. - # PORTME Check for flag to pass linker flags through the system compiler.
  29468. - case $host_os in
  29469. - aix*)
  29470. - lt_prog_compiler_wl_F77='-Wl,'
  29471. - if test "$host_cpu" = ia64; then
  29472. - # AIX 5 now supports IA64 processor
  29473. - lt_prog_compiler_static_F77='-Bstatic'
  29474. - else
  29475. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  29476. - fi
  29477. - ;;
  29478. - darwin*)
  29479. - # PIC is the default on this platform
  29480. - # Common symbols not allowed in MH_DYLIB files
  29481. - case $cc_basename in
  29482. - xlc*)
  29483. - lt_prog_compiler_pic_F77='-qnocommon'
  29484. - lt_prog_compiler_wl_F77='-Wl,'
  29485. - ;;
  29486. - esac
  29487. - ;;
  29488. -
  29489. - mingw* | cygwin* | pw32* | os2*)
  29490. - # This hack is so that the source file can tell whether it is being
  29491. - # built for inclusion in a dll (and should export symbols for example).
  29492. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  29493. - ;;
  29494. -
  29495. - hpux9* | hpux10* | hpux11*)
  29496. - lt_prog_compiler_wl_F77='-Wl,'
  29497. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29498. - # not for PA HP-UX.
  29499. - case $host_cpu in
  29500. - hppa*64*|ia64*)
  29501. - # +Z the default
  29502. - ;;
  29503. - *)
  29504. - lt_prog_compiler_pic_F77='+Z'
  29505. - ;;
  29506. - esac
  29507. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  29508. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  29509. - ;;
  29510. -
  29511. - irix5* | irix6* | nonstopux*)
  29512. - lt_prog_compiler_wl_F77='-Wl,'
  29513. - # PIC (with -KPIC) is the default.
  29514. - lt_prog_compiler_static_F77='-non_shared'
  29515. - ;;
  29516. -
  29517. - newsos6)
  29518. - lt_prog_compiler_pic_F77='-KPIC'
  29519. - lt_prog_compiler_static_F77='-Bstatic'
  29520. - ;;
  29521. -
  29522. - linux* | k*bsd*-gnu)
  29523. - case $cc_basename in
  29524. - icc* | ecc*)
  29525. - lt_prog_compiler_wl_F77='-Wl,'
  29526. - lt_prog_compiler_pic_F77='-KPIC'
  29527. - lt_prog_compiler_static_F77='-static'
  29528. - ;;
  29529. - pgcc* | pgf77* | pgf90* | pgf95*)
  29530. - # Portland Group compilers (*not* the Pentium gcc compiler,
  29531. - # which looks to be a dead project)
  29532. - lt_prog_compiler_wl_F77='-Wl,'
  29533. - lt_prog_compiler_pic_F77='-fpic'
  29534. - lt_prog_compiler_static_F77='-Bstatic'
  29535. - ;;
  29536. - ccc*)
  29537. - lt_prog_compiler_wl_F77='-Wl,'
  29538. - # All Alpha code is PIC.
  29539. - lt_prog_compiler_static_F77='-non_shared'
  29540. - ;;
  29541. - *)
  29542. - case `$CC -V 2>&1 | sed 5q` in
  29543. - *Sun\ C*)
  29544. - # Sun C 5.9
  29545. - lt_prog_compiler_pic_F77='-KPIC'
  29546. - lt_prog_compiler_static_F77='-Bstatic'
  29547. - lt_prog_compiler_wl_F77='-Wl,'
  29548. - ;;
  29549. - *Sun\ F*)
  29550. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  29551. - lt_prog_compiler_pic_F77='-KPIC'
  29552. - lt_prog_compiler_static_F77='-Bstatic'
  29553. - lt_prog_compiler_wl_F77=''
  29554. - ;;
  29555. - esac
  29556. - ;;
  29557. - esac
  29558. - ;;
  29559. -
  29560. - osf3* | osf4* | osf5*)
  29561. - lt_prog_compiler_wl_F77='-Wl,'
  29562. - # All OSF/1 code is PIC.
  29563. - lt_prog_compiler_static_F77='-non_shared'
  29564. - ;;
  29565. -
  29566. - rdos*)
  29567. - lt_prog_compiler_static_F77='-non_shared'
  29568. - ;;
  29569. -
  29570. - solaris*)
  29571. - lt_prog_compiler_pic_F77='-KPIC'
  29572. - lt_prog_compiler_static_F77='-Bstatic'
  29573. - case $cc_basename in
  29574. - f77* | f90* | f95*)
  29575. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  29576. - *)
  29577. - lt_prog_compiler_wl_F77='-Wl,';;
  29578. - esac
  29579. - ;;
  29580. -
  29581. - sunos4*)
  29582. - lt_prog_compiler_wl_F77='-Qoption ld '
  29583. - lt_prog_compiler_pic_F77='-PIC'
  29584. - lt_prog_compiler_static_F77='-Bstatic'
  29585. - ;;
  29586. -
  29587. - sysv4 | sysv4.2uw2* | sysv4.3*)
  29588. - lt_prog_compiler_wl_F77='-Wl,'
  29589. - lt_prog_compiler_pic_F77='-KPIC'
  29590. - lt_prog_compiler_static_F77='-Bstatic'
  29591. - ;;
  29592. -
  29593. - sysv4*MP*)
  29594. - if test -d /usr/nec ;then
  29595. - lt_prog_compiler_pic_F77='-Kconform_pic'
  29596. - lt_prog_compiler_static_F77='-Bstatic'
  29597. - fi
  29598. - ;;
  29599. -
  29600. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29601. - lt_prog_compiler_wl_F77='-Wl,'
  29602. - lt_prog_compiler_pic_F77='-KPIC'
  29603. - lt_prog_compiler_static_F77='-Bstatic'
  29604. - ;;
  29605. -
  29606. - unicos*)
  29607. - lt_prog_compiler_wl_F77='-Wl,'
  29608. - lt_prog_compiler_can_build_shared_F77=no
  29609. - ;;
  29610. -
  29611. - uts4*)
  29612. - lt_prog_compiler_pic_F77='-pic'
  29613. - lt_prog_compiler_static_F77='-Bstatic'
  29614. - ;;
  29615. -
  29616. - *)
  29617. - lt_prog_compiler_can_build_shared_F77=no
  29618. - ;;
  29619. - esac
  29620. - fi
  29621. -
  29622. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  29623. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  29624. -
  29625. -#
  29626. -# Check to make sure the PIC flag actually works.
  29627. -#
  29628. -if test -n "$lt_prog_compiler_pic_F77"; then
  29629. -
  29630. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  29631. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  29632. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  29633. - $as_echo_n "(cached) " >&6
  29634. -else
  29635. - lt_cv_prog_compiler_pic_works_F77=no
  29636. - ac_outfile=conftest.$ac_objext
  29637. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29638. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  29639. - # Insert the option either (1) after the last *FLAGS variable, or
  29640. - # (2) before a word containing "conftest.", or (3) at the end.
  29641. - # Note that $ac_compile itself does not contain backslashes and begins
  29642. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29643. - # The option is referenced via a variable to avoid confusing sed.
  29644. - lt_compile=`echo "$ac_compile" | $SED \
  29645. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29646. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29647. - -e 's:$: $lt_compiler_flag:'`
  29648. - (eval echo "\"\$as_me:14766: $lt_compile\"" >&5)
  29649. - (eval "$lt_compile" 2>conftest.err)
  29650. - ac_status=$?
  29651. - cat conftest.err >&5
  29652. - echo "$as_me:14770: \$? = $ac_status" >&5
  29653. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29654. - # The compiler can only warn and ignore the option if not recognized
  29655. - # So say no if there are warnings other than the usual output.
  29656. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29657. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29658. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29659. - lt_cv_prog_compiler_pic_works_F77=yes
  29660. - fi
  29661. - fi
  29662. - $rm conftest*
  29663. -
  29664. -fi
  29665. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  29666. -$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  29667. -
  29668. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  29669. - case $lt_prog_compiler_pic_F77 in
  29670. - "" | " "*) ;;
  29671. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  29672. - esac
  29673. -else
  29674. - lt_prog_compiler_pic_F77=
  29675. - lt_prog_compiler_can_build_shared_F77=no
  29676. -fi
  29677. -
  29678. -fi
  29679. -case $host_os in
  29680. - # For platforms which do not support PIC, -DPIC is meaningless:
  29681. - *djgpp*)
  29682. - lt_prog_compiler_pic_F77=
  29683. - ;;
  29684. - *)
  29685. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  29686. - ;;
  29687. -esac
  29688. -
  29689. -#
  29690. -# Check to make sure the static flag actually works.
  29691. -#
  29692. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  29693. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29694. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  29695. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  29696. - $as_echo_n "(cached) " >&6
  29697. -else
  29698. - lt_cv_prog_compiler_static_works_F77=no
  29699. - save_LDFLAGS="$LDFLAGS"
  29700. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29701. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  29702. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29703. - # The linker can only warn and ignore the option if not recognized
  29704. - # So say no if there are warnings
  29705. - if test -s conftest.err; then
  29706. - # Append any errors to the config.log.
  29707. - cat conftest.err 1>&5
  29708. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  29709. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29710. - if diff conftest.exp conftest.er2 >/dev/null; then
  29711. - lt_cv_prog_compiler_static_works_F77=yes
  29712. - fi
  29713. - else
  29714. - lt_cv_prog_compiler_static_works_F77=yes
  29715. - fi
  29716. - fi
  29717. - $rm -r conftest*
  29718. - LDFLAGS="$save_LDFLAGS"
  29719. -
  29720. -fi
  29721. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  29722. -$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  29723. -
  29724. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  29725. - :
  29726. -else
  29727. - lt_prog_compiler_static_F77=
  29728. -fi
  29729. -
  29730. -
  29731. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  29732. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  29733. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  29734. - $as_echo_n "(cached) " >&6
  29735. -else
  29736. - lt_cv_prog_compiler_c_o_F77=no
  29737. - $rm -r conftest 2>/dev/null
  29738. - mkdir conftest
  29739. - cd conftest
  29740. - mkdir out
  29741. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29742. -
  29743. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29744. - # Insert the option either (1) after the last *FLAGS variable, or
  29745. - # (2) before a word containing "conftest.", or (3) at the end.
  29746. - # Note that $ac_compile itself does not contain backslashes and begins
  29747. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29748. - lt_compile=`echo "$ac_compile" | $SED \
  29749. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29750. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29751. - -e 's:$: $lt_compiler_flag:'`
  29752. - (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
  29753. - (eval "$lt_compile" 2>out/conftest.err)
  29754. - ac_status=$?
  29755. - cat out/conftest.err >&5
  29756. - echo "$as_me:14874: \$? = $ac_status" >&5
  29757. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29758. - then
  29759. - # The compiler can only warn and ignore the option if not recognized
  29760. - # So say no if there are warnings
  29761. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29762. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29763. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29764. - lt_cv_prog_compiler_c_o_F77=yes
  29765. - fi
  29766. - fi
  29767. - chmod u+w . 2>&5
  29768. - $rm conftest*
  29769. - # SGI C++ compiler will create directory out/ii_files/ for
  29770. - # template instantiation
  29771. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29772. - $rm out/* && rmdir out
  29773. - cd ..
  29774. - rmdir conftest
  29775. - $rm conftest*
  29776. -
  29777. -fi
  29778. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  29779. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  29780. -
  29781. -
  29782. -hard_links="nottested"
  29783. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  29784. - # do not overwrite the value of need_locks provided by the user
  29785. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29786. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  29787. - hard_links=yes
  29788. - $rm conftest*
  29789. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29790. - touch conftest.a
  29791. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29792. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29793. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  29794. -$as_echo "$hard_links" >&6; }
  29795. - if test "$hard_links" = no; then
  29796. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29797. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29798. - need_locks=warn
  29799. - fi
  29800. -else
  29801. - need_locks=no
  29802. -fi
  29803. -
  29804. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29805. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  29806. -
  29807. - runpath_var=
  29808. - allow_undefined_flag_F77=
  29809. - enable_shared_with_static_runtimes_F77=no
  29810. - archive_cmds_F77=
  29811. - archive_expsym_cmds_F77=
  29812. - old_archive_From_new_cmds_F77=
  29813. - old_archive_from_expsyms_cmds_F77=
  29814. - export_dynamic_flag_spec_F77=
  29815. - whole_archive_flag_spec_F77=
  29816. - thread_safe_flag_spec_F77=
  29817. - hardcode_libdir_flag_spec_F77=
  29818. - hardcode_libdir_flag_spec_ld_F77=
  29819. - hardcode_libdir_separator_F77=
  29820. - hardcode_direct_F77=no
  29821. - hardcode_minus_L_F77=no
  29822. - hardcode_shlibpath_var_F77=unsupported
  29823. - link_all_deplibs_F77=unknown
  29824. - hardcode_automatic_F77=no
  29825. - module_cmds_F77=
  29826. - module_expsym_cmds_F77=
  29827. - always_export_symbols_F77=no
  29828. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29829. - # include_expsyms should be a list of space-separated symbols to be *always*
  29830. - # included in the symbol list
  29831. - include_expsyms_F77=
  29832. - # exclude_expsyms can be an extended regexp of symbols to exclude
  29833. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  29834. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  29835. - # as well as any symbol that contains `d'.
  29836. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  29837. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  29838. - # platforms (ab)use it in PIC code, but their linkers get confused if
  29839. - # the symbol is explicitly referenced. Since portable code cannot
  29840. - # rely on this symbol name, it's probably fine to never include it in
  29841. - # preloaded symbol tables.
  29842. - # Exclude shared library initialization/finalization symbols.
  29843. - extract_expsyms_cmds=
  29844. - # Just being paranoid about ensuring that cc_basename is set.
  29845. - for cc_temp in $compiler""; do
  29846. - case $cc_temp in
  29847. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29848. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29849. - \-*) ;;
  29850. - *) break;;
  29851. - esac
  29852. -done
  29853. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29854. -
  29855. - case $host_os in
  29856. - cygwin* | mingw* | pw32*)
  29857. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  29858. - # When not using gcc, we currently assume that we are using
  29859. - # Microsoft Visual C++.
  29860. - if test "$GCC" != yes; then
  29861. - with_gnu_ld=no
  29862. - fi
  29863. - ;;
  29864. - interix*)
  29865. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  29866. - with_gnu_ld=yes
  29867. - ;;
  29868. - openbsd*)
  29869. - with_gnu_ld=no
  29870. - ;;
  29871. - esac
  29872. -
  29873. - ld_shlibs_F77=yes
  29874. - if test "$with_gnu_ld" = yes; then
  29875. - # If archive_cmds runs LD, not CC, wlarc should be empty
  29876. - wlarc='${wl}'
  29877. -
  29878. - # Set some defaults for GNU ld with shared library support. These
  29879. - # are reset later if shared libraries are not supported. Putting them
  29880. - # here allows them to be overridden if necessary.
  29881. - runpath_var=LD_RUN_PATH
  29882. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  29883. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  29884. - # ancient GNU ld didn't support --whole-archive et. al.
  29885. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  29886. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29887. - else
  29888. - whole_archive_flag_spec_F77=
  29889. - fi
  29890. - supports_anon_versioning=no
  29891. - case `$LD -v 2>/dev/null` in
  29892. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  29893. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  29894. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  29895. - *\ 2.11.*) ;; # other 2.11 versions
  29896. - *) supports_anon_versioning=yes ;;
  29897. - esac
  29898. -
  29899. - # See if GNU ld supports shared libraries.
  29900. - case $host_os in
  29901. - aix[3-9]*)
  29902. - # On AIX/PPC, the GNU linker is very broken
  29903. - if test "$host_cpu" != ia64; then
  29904. - ld_shlibs_F77=no
  29905. - cat <<EOF 1>&2
  29906. -
  29907. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  29908. -*** to be unable to reliably create shared libraries on AIX.
  29909. -*** Therefore, libtool is disabling shared libraries support. If you
  29910. -*** really care for shared libraries, you may want to modify your PATH
  29911. -*** so that a non-GNU linker is found, and then restart.
  29912. -
  29913. -EOF
  29914. - fi
  29915. - ;;
  29916. -
  29917. - amigaos*)
  29918. - 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)'
  29919. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29920. - hardcode_minus_L_F77=yes
  29921. -
  29922. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  29923. - # that the semantics of dynamic libraries on AmigaOS, at least up
  29924. - # to version 4, is to share data among multiple programs linked
  29925. - # with the same dynamic library. Since this doesn't match the
  29926. - # behavior of shared libraries on other platforms, we can't use
  29927. - # them.
  29928. - ld_shlibs_F77=no
  29929. - ;;
  29930. -
  29931. - beos*)
  29932. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29933. - allow_undefined_flag_F77=unsupported
  29934. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29935. - # support --undefined. This deserves some investigation. FIXME
  29936. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29937. - else
  29938. - ld_shlibs_F77=no
  29939. - fi
  29940. - ;;
  29941. -
  29942. - cygwin* | mingw* | pw32*)
  29943. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  29944. - # as there is no search path for DLLs.
  29945. - hardcode_libdir_flag_spec_F77='-L$libdir'
  29946. - allow_undefined_flag_F77=unsupported
  29947. - always_export_symbols_F77=no
  29948. - enable_shared_with_static_runtimes_F77=yes
  29949. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29950. -
  29951. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  29952. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29953. - # If the export-symbols file already is a .def file (1st line
  29954. - # is EXPORTS), use it as is; otherwise, prepend...
  29955. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29956. - cp $export_symbols $output_objdir/$soname.def;
  29957. - else
  29958. - echo EXPORTS > $output_objdir/$soname.def;
  29959. - cat $export_symbols >> $output_objdir/$soname.def;
  29960. - fi~
  29961. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29962. - else
  29963. - ld_shlibs_F77=no
  29964. - fi
  29965. - ;;
  29966. -
  29967. - interix[3-9]*)
  29968. - hardcode_direct_F77=no
  29969. - hardcode_shlibpath_var_F77=no
  29970. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  29971. - export_dynamic_flag_spec_F77='${wl}-E'
  29972. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29973. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  29974. - # default) and relocated if they conflict, which is a slow very memory
  29975. - # consuming and fragmenting process. To avoid this, we pick a random,
  29976. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29977. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29978. - 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'
  29979. - 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'
  29980. - ;;
  29981. -
  29982. - gnu* | linux* | k*bsd*-gnu)
  29983. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29984. - tmp_addflag=
  29985. - case $cc_basename,$host_cpu in
  29986. - pgcc*) # Portland Group C compiler
  29987. - 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'
  29988. - tmp_addflag=' $pic_flag'
  29989. - ;;
  29990. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29991. - 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'
  29992. - tmp_addflag=' $pic_flag -Mnomain' ;;
  29993. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29994. - tmp_addflag=' -i_dynamic' ;;
  29995. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29996. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  29997. - ifc* | ifort*) # Intel Fortran compiler
  29998. - tmp_addflag=' -nofor_main' ;;
  29999. - esac
  30000. - case `$CC -V 2>&1 | sed 5q` in
  30001. - *Sun\ C*) # Sun C 5.9
  30002. - 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'
  30003. - tmp_sharedflag='-G' ;;
  30004. - *Sun\ F*) # Sun Fortran 8.3
  30005. - tmp_sharedflag='-G' ;;
  30006. - *)
  30007. - tmp_sharedflag='-shared' ;;
  30008. - esac
  30009. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30010. -
  30011. - if test $supports_anon_versioning = yes; then
  30012. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  30013. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30014. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  30015. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30016. - fi
  30017. - else
  30018. - ld_shlibs_F77=no
  30019. - fi
  30020. - ;;
  30021. -
  30022. - netbsd*)
  30023. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30024. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30025. - wlarc=
  30026. - else
  30027. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30028. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30029. - fi
  30030. - ;;
  30031. -
  30032. - solaris*)
  30033. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30034. - ld_shlibs_F77=no
  30035. - cat <<EOF 1>&2
  30036. -
  30037. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30038. -*** create shared libraries on Solaris systems. Therefore, libtool
  30039. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30040. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30041. -*** your PATH or compiler configuration so that the native linker is
  30042. -*** used, and then restart.
  30043. -
  30044. -EOF
  30045. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30046. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30047. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30048. - else
  30049. - ld_shlibs_F77=no
  30050. - fi
  30051. - ;;
  30052. -
  30053. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30054. - case `$LD -v 2>&1` in
  30055. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30056. - ld_shlibs_F77=no
  30057. - cat <<_LT_EOF 1>&2
  30058. -
  30059. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30060. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  30061. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30062. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30063. -*** your PATH or compiler configuration so that the native linker is
  30064. -*** used, and then restart.
  30065. -
  30066. -_LT_EOF
  30067. - ;;
  30068. - *)
  30069. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30070. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30071. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30072. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30073. - else
  30074. - ld_shlibs_F77=no
  30075. - fi
  30076. - ;;
  30077. - esac
  30078. - ;;
  30079. -
  30080. - sunos4*)
  30081. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30082. - wlarc=
  30083. - hardcode_direct_F77=yes
  30084. - hardcode_shlibpath_var_F77=no
  30085. - ;;
  30086. -
  30087. - *)
  30088. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30089. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30090. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30091. - else
  30092. - ld_shlibs_F77=no
  30093. - fi
  30094. - ;;
  30095. - esac
  30096. -
  30097. - if test "$ld_shlibs_F77" = no; then
  30098. - runpath_var=
  30099. - hardcode_libdir_flag_spec_F77=
  30100. - export_dynamic_flag_spec_F77=
  30101. - whole_archive_flag_spec_F77=
  30102. - fi
  30103. - else
  30104. - # PORTME fill in a description of your system's linker (not GNU ld)
  30105. - case $host_os in
  30106. - aix3*)
  30107. - allow_undefined_flag_F77=unsupported
  30108. - always_export_symbols_F77=yes
  30109. - 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'
  30110. - # Note: this linker hardcodes the directories in LIBPATH if there
  30111. - # are no directories specified by -L.
  30112. - hardcode_minus_L_F77=yes
  30113. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30114. - # Neither direct hardcoding nor static linking is supported with a
  30115. - # broken collect2.
  30116. - hardcode_direct_F77=unsupported
  30117. - fi
  30118. - ;;
  30119. -
  30120. - aix[4-9]*)
  30121. - if test "$host_cpu" = ia64; then
  30122. - # On IA64, the linker does run time linking by default, so we don't
  30123. - # have to do anything special.
  30124. - aix_use_runtimelinking=no
  30125. - exp_sym_flag='-Bexport'
  30126. - no_entry_flag=""
  30127. - else
  30128. - # If we're using GNU nm, then we don't want the "-C" option.
  30129. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30130. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30131. - 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'
  30132. - else
  30133. - 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'
  30134. - fi
  30135. - aix_use_runtimelinking=no
  30136. -
  30137. - # Test if we are trying to use run time linking or normal
  30138. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30139. - # need to do runtime linking.
  30140. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30141. - for ld_flag in $LDFLAGS; do
  30142. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30143. - aix_use_runtimelinking=yes
  30144. - break
  30145. - fi
  30146. - done
  30147. - ;;
  30148. - esac
  30149. -
  30150. - exp_sym_flag='-bexport'
  30151. - no_entry_flag='-bnoentry'
  30152. - fi
  30153. -
  30154. - # When large executables or shared objects are built, AIX ld can
  30155. - # have problems creating the table of contents. If linking a library
  30156. - # or program results in "error TOC overflow" add -mminimal-toc to
  30157. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30158. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30159. -
  30160. - archive_cmds_F77=''
  30161. - hardcode_direct_F77=yes
  30162. - hardcode_libdir_separator_F77=':'
  30163. - link_all_deplibs_F77=yes
  30164. -
  30165. - if test "$GCC" = yes; then
  30166. - case $host_os in aix4.[012]|aix4.[012].*)
  30167. - # We only want to do this on AIX 4.2 and lower, the check
  30168. - # below for broken collect2 doesn't work under 4.3+
  30169. - collect2name=`${CC} -print-prog-name=collect2`
  30170. - if test -f "$collect2name" && \
  30171. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30172. - then
  30173. - # We have reworked collect2
  30174. - :
  30175. - else
  30176. - # We have old collect2
  30177. - hardcode_direct_F77=unsupported
  30178. - # It fails to find uninstalled libraries when the uninstalled
  30179. - # path is not listed in the libpath. Setting hardcode_minus_L
  30180. - # to unsupported forces relinking
  30181. - hardcode_minus_L_F77=yes
  30182. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30183. - hardcode_libdir_separator_F77=
  30184. - fi
  30185. - ;;
  30186. - esac
  30187. - shared_flag='-shared'
  30188. - if test "$aix_use_runtimelinking" = yes; then
  30189. - shared_flag="$shared_flag "'${wl}-G'
  30190. - fi
  30191. - else
  30192. - # not using gcc
  30193. - if test "$host_cpu" = ia64; then
  30194. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30195. - # chokes on -Wl,-G. The following line is correct:
  30196. - shared_flag='-G'
  30197. - else
  30198. - if test "$aix_use_runtimelinking" = yes; then
  30199. - shared_flag='${wl}-G'
  30200. - else
  30201. - shared_flag='${wl}-bM:SRE'
  30202. - fi
  30203. - fi
  30204. - fi
  30205. -
  30206. - # It seems that -bexpall does not export symbols beginning with
  30207. - # underscore (_), so it is better to generate a list of symbols to export.
  30208. - always_export_symbols_F77=yes
  30209. - if test "$aix_use_runtimelinking" = yes; then
  30210. - # Warning - without using the other runtime loading flags (-brtl),
  30211. - # -berok will link without error, but may produce a broken library.
  30212. - allow_undefined_flag_F77='-berok'
  30213. - # Determine the default libpath from the value encoded in an empty executable.
  30214. - cat >conftest.$ac_ext <<_ACEOF
  30215. - program main
  30216. -
  30217. - end
  30218. -_ACEOF
  30219. -rm -f conftest.$ac_objext conftest$ac_exeext
  30220. -if { (ac_try="$ac_link"
  30221. -case "(($ac_try" in
  30222. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30223. - *) ac_try_echo=$ac_try;;
  30224. -esac
  30225. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30226. -$as_echo "$ac_try_echo") >&5
  30227. - (eval "$ac_link") 2>conftest.er1
  30228. - ac_status=$?
  30229. - grep -v '^ *+' conftest.er1 >conftest.err
  30230. - rm -f conftest.er1
  30231. - cat conftest.err >&5
  30232. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30233. - (exit $ac_status); } && {
  30234. - test -z "$ac_f77_werror_flag" ||
  30235. - test ! -s conftest.err
  30236. - } && test -s conftest$ac_exeext && {
  30237. - test "$cross_compiling" = yes ||
  30238. - $as_test_x conftest$ac_exeext
  30239. - }; then
  30240. -
  30241. -lt_aix_libpath_sed='
  30242. - /Import File Strings/,/^$/ {
  30243. - /^0/ {
  30244. - s/^0 *\(.*\)$/\1/
  30245. - p
  30246. - }
  30247. - }'
  30248. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30249. -# Check for a 64-bit object if we didn't find anything.
  30250. -if test -z "$aix_libpath"; then
  30251. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30252. -fi
  30253. -else
  30254. - $as_echo "$as_me: failed program was:" >&5
  30255. -sed 's/^/| /' conftest.$ac_ext >&5
  30256. -
  30257. -
  30258. -fi
  30259. -
  30260. -rm -rf conftest.dSYM
  30261. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30262. - conftest$ac_exeext conftest.$ac_ext
  30263. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30264. -
  30265. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  30266. - 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"
  30267. - else
  30268. - if test "$host_cpu" = ia64; then
  30269. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  30270. - allow_undefined_flag_F77="-z nodefs"
  30271. - 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"
  30272. - else
  30273. - # Determine the default libpath from the value encoded in an empty executable.
  30274. - cat >conftest.$ac_ext <<_ACEOF
  30275. - program main
  30276. -
  30277. - end
  30278. -_ACEOF
  30279. -rm -f conftest.$ac_objext conftest$ac_exeext
  30280. -if { (ac_try="$ac_link"
  30281. -case "(($ac_try" in
  30282. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30283. - *) ac_try_echo=$ac_try;;
  30284. -esac
  30285. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  30286. -$as_echo "$ac_try_echo") >&5
  30287. - (eval "$ac_link") 2>conftest.er1
  30288. - ac_status=$?
  30289. - grep -v '^ *+' conftest.er1 >conftest.err
  30290. - rm -f conftest.er1
  30291. - cat conftest.err >&5
  30292. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30293. - (exit $ac_status); } && {
  30294. - test -z "$ac_f77_werror_flag" ||
  30295. - test ! -s conftest.err
  30296. - } && test -s conftest$ac_exeext && {
  30297. - test "$cross_compiling" = yes ||
  30298. - $as_test_x conftest$ac_exeext
  30299. - }; then
  30300. -
  30301. -lt_aix_libpath_sed='
  30302. - /Import File Strings/,/^$/ {
  30303. - /^0/ {
  30304. - s/^0 *\(.*\)$/\1/
  30305. - p
  30306. - }
  30307. - }'
  30308. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30309. -# Check for a 64-bit object if we didn't find anything.
  30310. -if test -z "$aix_libpath"; then
  30311. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30312. -fi
  30313. -else
  30314. - $as_echo "$as_me: failed program was:" >&5
  30315. -sed 's/^/| /' conftest.$ac_ext >&5
  30316. -
  30317. -
  30318. -fi
  30319. -
  30320. -rm -rf conftest.dSYM
  30321. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30322. - conftest$ac_exeext conftest.$ac_ext
  30323. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30324. -
  30325. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  30326. - # Warning - without using the other run time loading flags,
  30327. - # -berok will link without error, but may produce a broken library.
  30328. - no_undefined_flag_F77=' ${wl}-bernotok'
  30329. - allow_undefined_flag_F77=' ${wl}-berok'
  30330. - # Exported symbols can be pulled into shared objects from archives
  30331. - whole_archive_flag_spec_F77='$convenience'
  30332. - archive_cmds_need_lc_F77=yes
  30333. - # This is similar to how AIX traditionally builds its shared libraries.
  30334. - 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'
  30335. - fi
  30336. - fi
  30337. - ;;
  30338. -
  30339. - amigaos*)
  30340. - 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)'
  30341. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30342. - hardcode_minus_L_F77=yes
  30343. - # see comment about different semantics on the GNU ld section
  30344. - ld_shlibs_F77=no
  30345. - ;;
  30346. -
  30347. - bsdi[45]*)
  30348. - export_dynamic_flag_spec_F77=-rdynamic
  30349. - ;;
  30350. -
  30351. - cygwin* | mingw* | pw32*)
  30352. - # When not using gcc, we currently assume that we are using
  30353. - # Microsoft Visual C++.
  30354. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  30355. - # no search path for DLLs.
  30356. - hardcode_libdir_flag_spec_F77=' '
  30357. - allow_undefined_flag_F77=unsupported
  30358. - # Tell ltmain to make .lib files, not .a files.
  30359. - libext=lib
  30360. - # Tell ltmain to make .dll files, not .so files.
  30361. - shrext_cmds=".dll"
  30362. - # FIXME: Setting linknames here is a bad hack.
  30363. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  30364. - # The linker will automatically build a .lib file if we build a DLL.
  30365. - old_archive_From_new_cmds_F77='true'
  30366. - # FIXME: Should let the user specify the lib program.
  30367. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  30368. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  30369. - enable_shared_with_static_runtimes_F77=yes
  30370. - ;;
  30371. -
  30372. - darwin* | rhapsody*)
  30373. - case $host_os in
  30374. - rhapsody* | darwin1.[012])
  30375. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  30376. - ;;
  30377. - *) # Darwin 1.3 on
  30378. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30379. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30380. - else
  30381. - case ${MACOSX_DEPLOYMENT_TARGET} in
  30382. - 10.[012])
  30383. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30384. - ;;
  30385. - 10.*)
  30386. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  30387. - ;;
  30388. - esac
  30389. - fi
  30390. - ;;
  30391. - esac
  30392. - archive_cmds_need_lc_F77=no
  30393. - hardcode_direct_F77=no
  30394. - hardcode_automatic_F77=yes
  30395. - hardcode_shlibpath_var_F77=unsupported
  30396. - whole_archive_flag_spec_F77=''
  30397. - link_all_deplibs_F77=yes
  30398. - if test "$GCC" = yes ; then
  30399. - output_verbose_link_cmd='echo'
  30400. - 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}"
  30401. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30402. - 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}"
  30403. - 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}"
  30404. - else
  30405. - case $cc_basename in
  30406. - xlc*)
  30407. - output_verbose_link_cmd='echo'
  30408. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  30409. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30410. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30411. - 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}'
  30412. - 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}'
  30413. - ;;
  30414. - *)
  30415. - ld_shlibs_F77=no
  30416. - ;;
  30417. - esac
  30418. - fi
  30419. - ;;
  30420. -
  30421. - dgux*)
  30422. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30423. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30424. - hardcode_shlibpath_var_F77=no
  30425. - ;;
  30426. -
  30427. - freebsd1*)
  30428. - ld_shlibs_F77=no
  30429. - ;;
  30430. -
  30431. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  30432. - # support. Future versions do this automatically, but an explicit c++rt0.o
  30433. - # does not break anything, and helps significantly (at the cost of a little
  30434. - # extra space).
  30435. - freebsd2.2*)
  30436. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  30437. - hardcode_libdir_flag_spec_F77='-R$libdir'
  30438. - hardcode_direct_F77=yes
  30439. - hardcode_shlibpath_var_F77=no
  30440. - ;;
  30441. -
  30442. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  30443. - freebsd2*)
  30444. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30445. - hardcode_direct_F77=yes
  30446. - hardcode_minus_L_F77=yes
  30447. - hardcode_shlibpath_var_F77=no
  30448. - ;;
  30449. -
  30450. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  30451. - freebsd* | dragonfly*)
  30452. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  30453. - hardcode_libdir_flag_spec_F77='-R$libdir'
  30454. - hardcode_direct_F77=yes
  30455. - hardcode_shlibpath_var_F77=no
  30456. - ;;
  30457. -
  30458. - hpux9*)
  30459. - if test "$GCC" = yes; then
  30460. - 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'
  30461. - else
  30462. - 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'
  30463. - fi
  30464. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  30465. - hardcode_libdir_separator_F77=:
  30466. - hardcode_direct_F77=yes
  30467. -
  30468. - # hardcode_minus_L: Not really in the search PATH,
  30469. - # but as the default location of the library.
  30470. - hardcode_minus_L_F77=yes
  30471. - export_dynamic_flag_spec_F77='${wl}-E'
  30472. - ;;
  30473. -
  30474. - hpux10*)
  30475. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30476. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30477. - else
  30478. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  30479. - fi
  30480. - if test "$with_gnu_ld" = no; then
  30481. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  30482. - hardcode_libdir_separator_F77=:
  30483. -
  30484. - hardcode_direct_F77=yes
  30485. - export_dynamic_flag_spec_F77='${wl}-E'
  30486. -
  30487. - # hardcode_minus_L: Not really in the search PATH,
  30488. - # but as the default location of the library.
  30489. - hardcode_minus_L_F77=yes
  30490. - fi
  30491. - ;;
  30492. -
  30493. - hpux11*)
  30494. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30495. - case $host_cpu in
  30496. - hppa*64*)
  30497. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30498. - ;;
  30499. - ia64*)
  30500. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30501. - ;;
  30502. - *)
  30503. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30504. - ;;
  30505. - esac
  30506. - else
  30507. - case $host_cpu in
  30508. - hppa*64*)
  30509. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30510. - ;;
  30511. - ia64*)
  30512. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30513. - ;;
  30514. - *)
  30515. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30516. - ;;
  30517. - esac
  30518. - fi
  30519. - if test "$with_gnu_ld" = no; then
  30520. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  30521. - hardcode_libdir_separator_F77=:
  30522. -
  30523. - case $host_cpu in
  30524. - hppa*64*|ia64*)
  30525. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  30526. - hardcode_direct_F77=no
  30527. - hardcode_shlibpath_var_F77=no
  30528. - ;;
  30529. - *)
  30530. - hardcode_direct_F77=yes
  30531. - export_dynamic_flag_spec_F77='${wl}-E'
  30532. -
  30533. - # hardcode_minus_L: Not really in the search PATH,
  30534. - # but as the default location of the library.
  30535. - hardcode_minus_L_F77=yes
  30536. - ;;
  30537. - esac
  30538. - fi
  30539. - ;;
  30540. -
  30541. - irix5* | irix6* | nonstopux*)
  30542. - if test "$GCC" = yes; then
  30543. - 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'
  30544. - else
  30545. - 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'
  30546. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  30547. - fi
  30548. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  30549. - hardcode_libdir_separator_F77=:
  30550. - link_all_deplibs_F77=yes
  30551. - ;;
  30552. -
  30553. - netbsd*)
  30554. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30555. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  30556. - else
  30557. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  30558. - fi
  30559. - hardcode_libdir_flag_spec_F77='-R$libdir'
  30560. - hardcode_direct_F77=yes
  30561. - hardcode_shlibpath_var_F77=no
  30562. - ;;
  30563. -
  30564. - newsos6)
  30565. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30566. - hardcode_direct_F77=yes
  30567. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  30568. - hardcode_libdir_separator_F77=:
  30569. - hardcode_shlibpath_var_F77=no
  30570. - ;;
  30571. -
  30572. - openbsd*)
  30573. - if test -f /usr/libexec/ld.so; then
  30574. - hardcode_direct_F77=yes
  30575. - hardcode_shlibpath_var_F77=no
  30576. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30577. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30578. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  30579. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  30580. - export_dynamic_flag_spec_F77='${wl}-E'
  30581. - else
  30582. - case $host_os in
  30583. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  30584. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30585. - hardcode_libdir_flag_spec_F77='-R$libdir'
  30586. - ;;
  30587. - *)
  30588. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  30589. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  30590. - ;;
  30591. - esac
  30592. - fi
  30593. - else
  30594. - ld_shlibs_F77=no
  30595. - fi
  30596. - ;;
  30597. -
  30598. - os2*)
  30599. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30600. - hardcode_minus_L_F77=yes
  30601. - allow_undefined_flag_F77=unsupported
  30602. - 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'
  30603. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  30604. - ;;
  30605. -
  30606. - osf3*)
  30607. - if test "$GCC" = yes; then
  30608. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  30609. - 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'
  30610. - else
  30611. - allow_undefined_flag_F77=' -expect_unresolved \*'
  30612. - 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'
  30613. - fi
  30614. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  30615. - hardcode_libdir_separator_F77=:
  30616. - ;;
  30617. -
  30618. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  30619. - if test "$GCC" = yes; then
  30620. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  30621. - 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'
  30622. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  30623. - else
  30624. - allow_undefined_flag_F77=' -expect_unresolved \*'
  30625. - 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'
  30626. - 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~
  30627. - $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'
  30628. -
  30629. - # Both c and cxx compiler support -rpath directly
  30630. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  30631. - fi
  30632. - hardcode_libdir_separator_F77=:
  30633. - ;;
  30634. -
  30635. - solaris*)
  30636. - no_undefined_flag_F77=' -z text'
  30637. - if test "$GCC" = yes; then
  30638. - wlarc='${wl}'
  30639. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30640. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30641. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  30642. - else
  30643. - wlarc=''
  30644. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30645. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30646. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  30647. - fi
  30648. - hardcode_libdir_flag_spec_F77='-R$libdir'
  30649. - hardcode_shlibpath_var_F77=no
  30650. - case $host_os in
  30651. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  30652. - *)
  30653. - # The compiler driver will combine and reorder linker options,
  30654. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  30655. - # but is careful enough not to reorder.
  30656. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  30657. - if test "$GCC" = yes; then
  30658. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  30659. - else
  30660. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  30661. - fi
  30662. - ;;
  30663. - esac
  30664. - link_all_deplibs_F77=yes
  30665. - ;;
  30666. -
  30667. - sunos4*)
  30668. - if test "x$host_vendor" = xsequent; then
  30669. - # Use $CC to link under sequent, because it throws in some extra .o
  30670. - # files that make .init and .fini sections work.
  30671. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  30672. - else
  30673. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  30674. - fi
  30675. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30676. - hardcode_direct_F77=yes
  30677. - hardcode_minus_L_F77=yes
  30678. - hardcode_shlibpath_var_F77=no
  30679. - ;;
  30680. -
  30681. - sysv4)
  30682. - case $host_vendor in
  30683. - sni)
  30684. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30685. - hardcode_direct_F77=yes # is this really true???
  30686. - ;;
  30687. - siemens)
  30688. - ## LD is ld it makes a PLAMLIB
  30689. - ## CC just makes a GrossModule.
  30690. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  30691. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  30692. - hardcode_direct_F77=no
  30693. - ;;
  30694. - motorola)
  30695. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30696. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  30697. - ;;
  30698. - esac
  30699. - runpath_var='LD_RUN_PATH'
  30700. - hardcode_shlibpath_var_F77=no
  30701. - ;;
  30702. -
  30703. - sysv4.3*)
  30704. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30705. - hardcode_shlibpath_var_F77=no
  30706. - export_dynamic_flag_spec_F77='-Bexport'
  30707. - ;;
  30708. -
  30709. - sysv4*MP*)
  30710. - if test -d /usr/nec; then
  30711. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30712. - hardcode_shlibpath_var_F77=no
  30713. - runpath_var=LD_RUN_PATH
  30714. - hardcode_runpath_var=yes
  30715. - ld_shlibs_F77=yes
  30716. - fi
  30717. - ;;
  30718. -
  30719. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  30720. - no_undefined_flag_F77='${wl}-z,text'
  30721. - archive_cmds_need_lc_F77=no
  30722. - hardcode_shlibpath_var_F77=no
  30723. - runpath_var='LD_RUN_PATH'
  30724. -
  30725. - if test "$GCC" = yes; then
  30726. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30727. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30728. - else
  30729. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30730. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30731. - fi
  30732. - ;;
  30733. -
  30734. - sysv5* | sco3.2v5* | sco5v6*)
  30735. - # Note: We can NOT use -z defs as we might desire, because we do not
  30736. - # link with -lc, and that would cause any symbols used from libc to
  30737. - # always be unresolved, which means just about no library would
  30738. - # ever link correctly. If we're not using GNU ld we use -z text
  30739. - # though, which does catch some bad symbols but isn't as heavy-handed
  30740. - # as -z defs.
  30741. - no_undefined_flag_F77='${wl}-z,text'
  30742. - allow_undefined_flag_F77='${wl}-z,nodefs'
  30743. - archive_cmds_need_lc_F77=no
  30744. - hardcode_shlibpath_var_F77=no
  30745. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  30746. - hardcode_libdir_separator_F77=':'
  30747. - link_all_deplibs_F77=yes
  30748. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  30749. - runpath_var='LD_RUN_PATH'
  30750. -
  30751. - if test "$GCC" = yes; then
  30752. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30753. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30754. - else
  30755. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30756. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30757. - fi
  30758. - ;;
  30759. -
  30760. - uts4*)
  30761. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30762. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30763. - hardcode_shlibpath_var_F77=no
  30764. - ;;
  30765. -
  30766. - *)
  30767. - ld_shlibs_F77=no
  30768. - ;;
  30769. - esac
  30770. - fi
  30771. -
  30772. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  30773. -$as_echo "$ld_shlibs_F77" >&6; }
  30774. -test "$ld_shlibs_F77" = no && can_build_shared=no
  30775. -
  30776. -#
  30777. -# Do we need to explicitly link libc?
  30778. -#
  30779. -case "x$archive_cmds_need_lc_F77" in
  30780. -x|xyes)
  30781. - # Assume -lc should be added
  30782. - archive_cmds_need_lc_F77=yes
  30783. -
  30784. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30785. - case $archive_cmds_F77 in
  30786. - *'~'*)
  30787. - # FIXME: we may have to deal with multi-command sequences.
  30788. - ;;
  30789. - '$CC '*)
  30790. - # Test whether the compiler implicitly links with -lc since on some
  30791. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30792. - # to ld, don't add -lc before -lgcc.
  30793. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30794. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  30795. - $rm conftest*
  30796. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30797. -
  30798. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30799. - (eval $ac_compile) 2>&5
  30800. - ac_status=$?
  30801. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30802. - (exit $ac_status); } 2>conftest.err; then
  30803. - soname=conftest
  30804. - lib=conftest
  30805. - libobjs=conftest.$ac_objext
  30806. - deplibs=
  30807. - wl=$lt_prog_compiler_wl_F77
  30808. - pic_flag=$lt_prog_compiler_pic_F77
  30809. - compiler_flags=-v
  30810. - linker_flags=-v
  30811. - verstring=
  30812. - output_objdir=.
  30813. - libname=conftest
  30814. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  30815. - allow_undefined_flag_F77=
  30816. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30817. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30818. - ac_status=$?
  30819. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30820. - (exit $ac_status); }
  30821. - then
  30822. - archive_cmds_need_lc_F77=no
  30823. - else
  30824. - archive_cmds_need_lc_F77=yes
  30825. - fi
  30826. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  30827. - else
  30828. - cat conftest.err 1>&5
  30829. - fi
  30830. - $rm conftest*
  30831. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  30832. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  30833. - ;;
  30834. - esac
  30835. - fi
  30836. - ;;
  30837. -esac
  30838. -
  30839. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  30840. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  30841. -library_names_spec=
  30842. -libname_spec='lib$name'
  30843. -soname_spec=
  30844. -shrext_cmds=".so"
  30845. -postinstall_cmds=
  30846. -postuninstall_cmds=
  30847. -finish_cmds=
  30848. -finish_eval=
  30849. -shlibpath_var=
  30850. -shlibpath_overrides_runpath=unknown
  30851. -version_type=none
  30852. -dynamic_linker="$host_os ld.so"
  30853. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  30854. -
  30855. -need_lib_prefix=unknown
  30856. -hardcode_into_libs=no
  30857. -
  30858. -# when you set need_version to no, make sure it does not cause -set_version
  30859. -# flags to be left without arguments
  30860. -need_version=unknown
  30861. -
  30862. -case $host_os in
  30863. -aix3*)
  30864. - version_type=linux
  30865. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  30866. - shlibpath_var=LIBPATH
  30867. -
  30868. - # AIX 3 has no versioning support, so we append a major version to the name.
  30869. - soname_spec='${libname}${release}${shared_ext}$major'
  30870. - ;;
  30871. -
  30872. -aix[4-9]*)
  30873. - version_type=linux
  30874. - need_lib_prefix=no
  30875. - need_version=no
  30876. - hardcode_into_libs=yes
  30877. - if test "$host_cpu" = ia64; then
  30878. - # AIX 5 supports IA64
  30879. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  30880. - shlibpath_var=LD_LIBRARY_PATH
  30881. - else
  30882. - # With GCC up to 2.95.x, collect2 would create an import file
  30883. - # for dependence libraries. The import file would start with
  30884. - # the line `#! .'. This would cause the generated library to
  30885. - # depend on `.', always an invalid library. This was fixed in
  30886. - # development snapshots of GCC prior to 3.0.
  30887. - case $host_os in
  30888. - aix4 | aix4.[01] | aix4.[01].*)
  30889. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  30890. - echo ' yes '
  30891. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  30892. - :
  30893. - else
  30894. - can_build_shared=no
  30895. - fi
  30896. - ;;
  30897. - esac
  30898. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  30899. - # soname into executable. Probably we can add versioning support to
  30900. - # collect2, so additional links can be useful in future.
  30901. - if test "$aix_use_runtimelinking" = yes; then
  30902. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  30903. - # instead of lib<name>.a to let people know that these are not
  30904. - # typical AIX shared libraries.
  30905. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30906. - else
  30907. - # We preserve .a as extension for shared libraries through AIX4.2
  30908. - # and later when we are not doing run time linking.
  30909. - library_names_spec='${libname}${release}.a $libname.a'
  30910. - soname_spec='${libname}${release}${shared_ext}$major'
  30911. - fi
  30912. - shlibpath_var=LIBPATH
  30913. - fi
  30914. - ;;
  30915. -
  30916. -amigaos*)
  30917. - library_names_spec='$libname.ixlibrary $libname.a'
  30918. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  30919. - 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'
  30920. - ;;
  30921. -
  30922. -beos*)
  30923. - library_names_spec='${libname}${shared_ext}'
  30924. - dynamic_linker="$host_os ld.so"
  30925. - shlibpath_var=LIBRARY_PATH
  30926. - ;;
  30927. -
  30928. -bsdi[45]*)
  30929. - version_type=linux
  30930. - need_version=no
  30931. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30932. - soname_spec='${libname}${release}${shared_ext}$major'
  30933. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  30934. - shlibpath_var=LD_LIBRARY_PATH
  30935. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  30936. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  30937. - # the default ld.so.conf also contains /usr/contrib/lib and
  30938. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  30939. - # libtool to hard-code these into programs
  30940. - ;;
  30941. -
  30942. -cygwin* | mingw* | pw32*)
  30943. - version_type=windows
  30944. - shrext_cmds=".dll"
  30945. - need_version=no
  30946. - need_lib_prefix=no
  30947. -
  30948. - case $GCC,$host_os in
  30949. - yes,cygwin* | yes,mingw* | yes,pw32*)
  30950. - library_names_spec='$libname.dll.a'
  30951. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  30952. - postinstall_cmds='base_file=`basename \${file}`~
  30953. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  30954. - dldir=$destdir/`dirname \$dlpath`~
  30955. - test -d \$dldir || mkdir -p \$dldir~
  30956. - $install_prog $dir/$dlname \$dldir/$dlname~
  30957. - chmod a+x \$dldir/$dlname'
  30958. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  30959. - dlpath=$dir/\$dldll~
  30960. - $rm \$dlpath'
  30961. - shlibpath_overrides_runpath=yes
  30962. -
  30963. - case $host_os in
  30964. - cygwin*)
  30965. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  30966. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30967. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  30968. - ;;
  30969. - mingw*)
  30970. - # MinGW DLLs use traditional 'lib' prefix
  30971. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30972. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30973. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  30974. - # It is most probably a Windows format PATH printed by
  30975. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  30976. - # path with ; separators, and with drive letters. We can handle the
  30977. - # drive letters (cygwin fileutils understands them), so leave them,
  30978. - # especially as we might pass files found there to a mingw objdump,
  30979. - # which wouldn't understand a cygwinified path. Ahh.
  30980. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30981. - else
  30982. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30983. - fi
  30984. - ;;
  30985. - pw32*)
  30986. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  30987. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30988. - ;;
  30989. - esac
  30990. - ;;
  30991. -
  30992. - *)
  30993. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  30994. - ;;
  30995. - esac
  30996. - dynamic_linker='Win32 ld.exe'
  30997. - # FIXME: first we should search . and the directory the executable is in
  30998. - shlibpath_var=PATH
  30999. - ;;
  31000. -
  31001. -darwin* | rhapsody*)
  31002. - dynamic_linker="$host_os dyld"
  31003. - version_type=darwin
  31004. - need_lib_prefix=no
  31005. - need_version=no
  31006. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31007. - soname_spec='${libname}${release}${major}$shared_ext'
  31008. - shlibpath_overrides_runpath=yes
  31009. - shlibpath_var=DYLD_LIBRARY_PATH
  31010. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31011. -
  31012. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31013. - ;;
  31014. -
  31015. -dgux*)
  31016. - version_type=linux
  31017. - need_lib_prefix=no
  31018. - need_version=no
  31019. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31020. - soname_spec='${libname}${release}${shared_ext}$major'
  31021. - shlibpath_var=LD_LIBRARY_PATH
  31022. - ;;
  31023. -
  31024. -freebsd1*)
  31025. - dynamic_linker=no
  31026. - ;;
  31027. -
  31028. -freebsd* | dragonfly*)
  31029. - # DragonFly does not have aout. When/if they implement a new
  31030. - # versioning mechanism, adjust this.
  31031. - if test -x /usr/bin/objformat; then
  31032. - objformat=`/usr/bin/objformat`
  31033. - else
  31034. - case $host_os in
  31035. - freebsd[123]*) objformat=aout ;;
  31036. - *) objformat=elf ;;
  31037. - esac
  31038. - fi
  31039. - version_type=freebsd-$objformat
  31040. - case $version_type in
  31041. - freebsd-elf*)
  31042. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31043. - need_version=no
  31044. - need_lib_prefix=no
  31045. - ;;
  31046. - freebsd-*)
  31047. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31048. - need_version=yes
  31049. - ;;
  31050. - esac
  31051. - shlibpath_var=LD_LIBRARY_PATH
  31052. - case $host_os in
  31053. - freebsd2*)
  31054. - shlibpath_overrides_runpath=yes
  31055. - ;;
  31056. - freebsd3.[01]* | freebsdelf3.[01]*)
  31057. - shlibpath_overrides_runpath=yes
  31058. - hardcode_into_libs=yes
  31059. - ;;
  31060. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31061. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31062. - shlibpath_overrides_runpath=no
  31063. - hardcode_into_libs=yes
  31064. - ;;
  31065. - *) # from 4.6 on, and DragonFly
  31066. - shlibpath_overrides_runpath=yes
  31067. - hardcode_into_libs=yes
  31068. - ;;
  31069. - esac
  31070. - ;;
  31071. -
  31072. -gnu*)
  31073. - version_type=linux
  31074. - need_lib_prefix=no
  31075. - need_version=no
  31076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31077. - soname_spec='${libname}${release}${shared_ext}$major'
  31078. - shlibpath_var=LD_LIBRARY_PATH
  31079. - hardcode_into_libs=yes
  31080. - ;;
  31081. -
  31082. -hpux9* | hpux10* | hpux11*)
  31083. - # Give a soname corresponding to the major version so that dld.sl refuses to
  31084. - # link against other versions.
  31085. - version_type=sunos
  31086. - need_lib_prefix=no
  31087. - need_version=no
  31088. - case $host_cpu in
  31089. - ia64*)
  31090. - shrext_cmds='.so'
  31091. - hardcode_into_libs=yes
  31092. - dynamic_linker="$host_os dld.so"
  31093. - shlibpath_var=LD_LIBRARY_PATH
  31094. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31095. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31096. - soname_spec='${libname}${release}${shared_ext}$major'
  31097. - if test "X$HPUX_IA64_MODE" = X32; then
  31098. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31099. - else
  31100. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31101. - fi
  31102. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31103. - ;;
  31104. - hppa*64*)
  31105. - shrext_cmds='.sl'
  31106. - hardcode_into_libs=yes
  31107. - dynamic_linker="$host_os dld.sl"
  31108. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31109. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31110. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31111. - soname_spec='${libname}${release}${shared_ext}$major'
  31112. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31113. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31114. - ;;
  31115. - *)
  31116. - shrext_cmds='.sl'
  31117. - dynamic_linker="$host_os dld.sl"
  31118. - shlibpath_var=SHLIB_PATH
  31119. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31120. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31121. - soname_spec='${libname}${release}${shared_ext}$major'
  31122. - ;;
  31123. - esac
  31124. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31125. - postinstall_cmds='chmod 555 $lib'
  31126. - ;;
  31127. -
  31128. -interix[3-9]*)
  31129. - version_type=linux
  31130. - need_lib_prefix=no
  31131. - need_version=no
  31132. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31133. - soname_spec='${libname}${release}${shared_ext}$major'
  31134. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31135. - shlibpath_var=LD_LIBRARY_PATH
  31136. - shlibpath_overrides_runpath=no
  31137. - hardcode_into_libs=yes
  31138. - ;;
  31139. -
  31140. -irix5* | irix6* | nonstopux*)
  31141. - case $host_os in
  31142. - nonstopux*) version_type=nonstopux ;;
  31143. - *)
  31144. - if test "$lt_cv_prog_gnu_ld" = yes; then
  31145. - version_type=linux
  31146. - else
  31147. - version_type=irix
  31148. - fi ;;
  31149. - esac
  31150. - need_lib_prefix=no
  31151. - need_version=no
  31152. - soname_spec='${libname}${release}${shared_ext}$major'
  31153. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31154. - case $host_os in
  31155. - irix5* | nonstopux*)
  31156. - libsuff= shlibsuff=
  31157. - ;;
  31158. - *)
  31159. - case $LD in # libtool.m4 will add one of these switches to LD
  31160. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31161. - libsuff= shlibsuff= libmagic=32-bit;;
  31162. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31163. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  31164. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31165. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31166. - *) libsuff= shlibsuff= libmagic=never-match;;
  31167. - esac
  31168. - ;;
  31169. - esac
  31170. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31171. - shlibpath_overrides_runpath=no
  31172. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31173. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31174. - hardcode_into_libs=yes
  31175. - ;;
  31176. -
  31177. -# No shared lib support for Linux oldld, aout, or coff.
  31178. -linux*oldld* | linux*aout* | linux*coff*)
  31179. - dynamic_linker=no
  31180. - ;;
  31181. -
  31182. -# This must be Linux ELF.
  31183. -linux* | k*bsd*-gnu)
  31184. - version_type=linux
  31185. - need_lib_prefix=no
  31186. - need_version=no
  31187. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31188. - soname_spec='${libname}${release}${shared_ext}$major'
  31189. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31190. - shlibpath_var=LD_LIBRARY_PATH
  31191. - shlibpath_overrides_runpath=no
  31192. - # This implies no fast_install, which is unacceptable.
  31193. - # Some rework will be needed to allow for fast_install
  31194. - # before this can be enabled.
  31195. - hardcode_into_libs=yes
  31196. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31197. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31198. -
  31199. - # Append ld.so.conf contents to the search path
  31200. - if test -f /etc/ld.so.conf; then
  31201. - 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' ' '`
  31202. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  31203. - fi
  31204. -
  31205. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  31206. - # powerpc, because MkLinux only supported shared libraries with the
  31207. - # GNU dynamic linker. Since this was broken with cross compilers,
  31208. - # most powerpc-linux boxes support dynamic linking these days and
  31209. - # people can always --disable-shared, the test was removed, and we
  31210. - # assume the GNU/Linux dynamic linker is in use.
  31211. - dynamic_linker='GNU/Linux ld.so'
  31212. - ;;
  31213. -
  31214. -netbsd*)
  31215. - version_type=sunos
  31216. - need_lib_prefix=no
  31217. - need_version=no
  31218. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31219. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31220. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31221. - dynamic_linker='NetBSD (a.out) ld.so'
  31222. - else
  31223. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31224. - soname_spec='${libname}${release}${shared_ext}$major'
  31225. - dynamic_linker='NetBSD ld.elf_so'
  31226. - fi
  31227. - shlibpath_var=LD_LIBRARY_PATH
  31228. - shlibpath_overrides_runpath=yes
  31229. - hardcode_into_libs=yes
  31230. - ;;
  31231. -
  31232. -newsos6)
  31233. - version_type=linux
  31234. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31235. - shlibpath_var=LD_LIBRARY_PATH
  31236. - shlibpath_overrides_runpath=yes
  31237. - ;;
  31238. -
  31239. -nto-qnx*)
  31240. - version_type=linux
  31241. - need_lib_prefix=no
  31242. - need_version=no
  31243. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31244. - soname_spec='${libname}${release}${shared_ext}$major'
  31245. - shlibpath_var=LD_LIBRARY_PATH
  31246. - shlibpath_overrides_runpath=yes
  31247. - ;;
  31248. -
  31249. -openbsd*)
  31250. - version_type=sunos
  31251. - sys_lib_dlsearch_path_spec="/usr/lib"
  31252. - need_lib_prefix=no
  31253. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31254. - case $host_os in
  31255. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31256. - *) need_version=no ;;
  31257. - esac
  31258. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31259. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31260. - shlibpath_var=LD_LIBRARY_PATH
  31261. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31262. - case $host_os in
  31263. - openbsd2.[89] | openbsd2.[89].*)
  31264. - shlibpath_overrides_runpath=no
  31265. - ;;
  31266. - *)
  31267. - shlibpath_overrides_runpath=yes
  31268. - ;;
  31269. - esac
  31270. - else
  31271. - shlibpath_overrides_runpath=yes
  31272. - fi
  31273. - ;;
  31274. -
  31275. -os2*)
  31276. - libname_spec='$name'
  31277. - shrext_cmds=".dll"
  31278. - need_lib_prefix=no
  31279. - library_names_spec='$libname${shared_ext} $libname.a'
  31280. - dynamic_linker='OS/2 ld.exe'
  31281. - shlibpath_var=LIBPATH
  31282. - ;;
  31283. -
  31284. -osf3* | osf4* | osf5*)
  31285. - version_type=osf
  31286. - need_lib_prefix=no
  31287. - need_version=no
  31288. - soname_spec='${libname}${release}${shared_ext}$major'
  31289. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31290. - shlibpath_var=LD_LIBRARY_PATH
  31291. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31292. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31293. - ;;
  31294. -
  31295. -rdos*)
  31296. - dynamic_linker=no
  31297. - ;;
  31298. -
  31299. -solaris*)
  31300. - version_type=linux
  31301. - need_lib_prefix=no
  31302. - need_version=no
  31303. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31304. - soname_spec='${libname}${release}${shared_ext}$major'
  31305. - shlibpath_var=LD_LIBRARY_PATH
  31306. - shlibpath_overrides_runpath=yes
  31307. - hardcode_into_libs=yes
  31308. - # ldd complains unless libraries are executable
  31309. - postinstall_cmds='chmod +x $lib'
  31310. - ;;
  31311. -
  31312. -sunos4*)
  31313. - version_type=sunos
  31314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31315. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31316. - shlibpath_var=LD_LIBRARY_PATH
  31317. - shlibpath_overrides_runpath=yes
  31318. - if test "$with_gnu_ld" = yes; then
  31319. - need_lib_prefix=no
  31320. - fi
  31321. - need_version=yes
  31322. - ;;
  31323. -
  31324. -sysv4 | sysv4.3*)
  31325. - version_type=linux
  31326. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31327. - soname_spec='${libname}${release}${shared_ext}$major'
  31328. - shlibpath_var=LD_LIBRARY_PATH
  31329. - case $host_vendor in
  31330. - sni)
  31331. - shlibpath_overrides_runpath=no
  31332. - need_lib_prefix=no
  31333. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31334. - runpath_var=LD_RUN_PATH
  31335. - ;;
  31336. - siemens)
  31337. - need_lib_prefix=no
  31338. - ;;
  31339. - motorola)
  31340. - need_lib_prefix=no
  31341. - need_version=no
  31342. - shlibpath_overrides_runpath=no
  31343. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31344. - ;;
  31345. - esac
  31346. - ;;
  31347. -
  31348. -sysv4*MP*)
  31349. - if test -d /usr/nec ;then
  31350. - version_type=linux
  31351. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31352. - soname_spec='$libname${shared_ext}.$major'
  31353. - shlibpath_var=LD_LIBRARY_PATH
  31354. - fi
  31355. - ;;
  31356. -
  31357. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31358. - version_type=freebsd-elf
  31359. - need_lib_prefix=no
  31360. - need_version=no
  31361. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31362. - soname_spec='${libname}${release}${shared_ext}$major'
  31363. - shlibpath_var=LD_LIBRARY_PATH
  31364. - hardcode_into_libs=yes
  31365. - if test "$with_gnu_ld" = yes; then
  31366. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31367. - shlibpath_overrides_runpath=no
  31368. - else
  31369. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31370. - shlibpath_overrides_runpath=yes
  31371. - case $host_os in
  31372. - sco3.2v5*)
  31373. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31374. - ;;
  31375. - esac
  31376. - fi
  31377. - sys_lib_dlsearch_path_spec='/usr/lib'
  31378. - ;;
  31379. -
  31380. -uts4*)
  31381. - version_type=linux
  31382. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31383. - soname_spec='${libname}${release}${shared_ext}$major'
  31384. - shlibpath_var=LD_LIBRARY_PATH
  31385. - ;;
  31386. -
  31387. -*)
  31388. - dynamic_linker=no
  31389. - ;;
  31390. -esac
  31391. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  31392. -$as_echo "$dynamic_linker" >&6; }
  31393. -test "$dynamic_linker" = no && can_build_shared=no
  31394. -
  31395. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  31396. - $as_echo_n "(cached) " >&6
  31397. -else
  31398. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  31399. -fi
  31400. -
  31401. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  31402. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  31403. - $as_echo_n "(cached) " >&6
  31404. -else
  31405. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  31406. -fi
  31407. -
  31408. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  31409. -
  31410. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31411. -if test "$GCC" = yes; then
  31412. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31413. -fi
  31414. -
  31415. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  31416. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  31417. -hardcode_action_F77=
  31418. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  31419. - test -n "$runpath_var_F77" || \
  31420. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  31421. -
  31422. - # We can hardcode non-existant directories.
  31423. - if test "$hardcode_direct_F77" != no &&
  31424. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  31425. - # have to relink, otherwise we might link with an installed library
  31426. - # when we should be linking with a yet-to-be-installed one
  31427. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  31428. - test "$hardcode_minus_L_F77" != no; then
  31429. - # Linking always hardcodes the temporary library directory.
  31430. - hardcode_action_F77=relink
  31431. - else
  31432. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  31433. - hardcode_action_F77=immediate
  31434. - fi
  31435. -else
  31436. - # We cannot hardcode anything, or else we can only hardcode existing
  31437. - # directories.
  31438. - hardcode_action_F77=unsupported
  31439. -fi
  31440. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  31441. -$as_echo "$hardcode_action_F77" >&6; }
  31442. -
  31443. -if test "$hardcode_action_F77" = relink; then
  31444. - # Fast installation is not supported
  31445. - enable_fast_install=no
  31446. -elif test "$shlibpath_overrides_runpath" = yes ||
  31447. - test "$enable_shared" = no; then
  31448. - # Fast installation is not necessary
  31449. - enable_fast_install=needless
  31450. -fi
  31451. -
  31452. -
  31453. -# The else clause should only fire when bootstrapping the
  31454. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  31455. -# with your package, and you will get complaints that there are
  31456. -# no rules to generate ltmain.sh.
  31457. -if test -f "$ltmain"; then
  31458. - # See if we are running on zsh, and set the options which allow our commands through
  31459. - # without removal of \ escapes.
  31460. - if test -n "${ZSH_VERSION+set}" ; then
  31461. - setopt NO_GLOB_SUBST
  31462. - fi
  31463. - # Now quote all the things that may contain metacharacters while being
  31464. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  31465. - # variables and quote the copies for generation of the libtool script.
  31466. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  31467. - SED SHELL STRIP \
  31468. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  31469. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  31470. - deplibs_check_method reload_flag reload_cmds need_locks \
  31471. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  31472. - lt_cv_sys_global_symbol_to_c_name_address \
  31473. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  31474. - old_postinstall_cmds old_postuninstall_cmds \
  31475. - compiler_F77 \
  31476. - CC_F77 \
  31477. - LD_F77 \
  31478. - lt_prog_compiler_wl_F77 \
  31479. - lt_prog_compiler_pic_F77 \
  31480. - lt_prog_compiler_static_F77 \
  31481. - lt_prog_compiler_no_builtin_flag_F77 \
  31482. - export_dynamic_flag_spec_F77 \
  31483. - thread_safe_flag_spec_F77 \
  31484. - whole_archive_flag_spec_F77 \
  31485. - enable_shared_with_static_runtimes_F77 \
  31486. - old_archive_cmds_F77 \
  31487. - old_archive_from_new_cmds_F77 \
  31488. - predep_objects_F77 \
  31489. - postdep_objects_F77 \
  31490. - predeps_F77 \
  31491. - postdeps_F77 \
  31492. - compiler_lib_search_path_F77 \
  31493. - compiler_lib_search_dirs_F77 \
  31494. - archive_cmds_F77 \
  31495. - archive_expsym_cmds_F77 \
  31496. - postinstall_cmds_F77 \
  31497. - postuninstall_cmds_F77 \
  31498. - old_archive_from_expsyms_cmds_F77 \
  31499. - allow_undefined_flag_F77 \
  31500. - no_undefined_flag_F77 \
  31501. - export_symbols_cmds_F77 \
  31502. - hardcode_libdir_flag_spec_F77 \
  31503. - hardcode_libdir_flag_spec_ld_F77 \
  31504. - hardcode_libdir_separator_F77 \
  31505. - hardcode_automatic_F77 \
  31506. - module_cmds_F77 \
  31507. - module_expsym_cmds_F77 \
  31508. - lt_cv_prog_compiler_c_o_F77 \
  31509. - fix_srcfile_path_F77 \
  31510. - exclude_expsyms_F77 \
  31511. - include_expsyms_F77; do
  31512. -
  31513. - case $var in
  31514. - old_archive_cmds_F77 | \
  31515. - old_archive_from_new_cmds_F77 | \
  31516. - archive_cmds_F77 | \
  31517. - archive_expsym_cmds_F77 | \
  31518. - module_cmds_F77 | \
  31519. - module_expsym_cmds_F77 | \
  31520. - old_archive_from_expsyms_cmds_F77 | \
  31521. - export_symbols_cmds_F77 | \
  31522. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  31523. - postinstall_cmds | postuninstall_cmds | \
  31524. - old_postinstall_cmds | old_postuninstall_cmds | \
  31525. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  31526. - # Double-quote double-evaled strings.
  31527. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  31528. - ;;
  31529. - *)
  31530. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  31531. - ;;
  31532. - esac
  31533. - done
  31534. -
  31535. - case $lt_echo in
  31536. - *'\$0 --fallback-echo"')
  31537. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  31538. - ;;
  31539. - esac
  31540. -
  31541. -cfgfile="$ofile"
  31542. -
  31543. - cat <<__EOF__ >> "$cfgfile"
  31544. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  31545. -
  31546. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  31547. -
  31548. -# Shell to use when invoking shell scripts.
  31549. -SHELL=$lt_SHELL
  31550. -
  31551. -# Whether or not to build shared libraries.
  31552. -build_libtool_libs=$enable_shared
  31553. -
  31554. -# Whether or not to build static libraries.
  31555. -build_old_libs=$enable_static
  31556. -
  31557. -# Whether or not to add -lc for building shared libraries.
  31558. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  31559. -
  31560. -# Whether or not to disallow shared libs when runtime libs are static
  31561. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  31562. -
  31563. -# Whether or not to optimize for fast installation.
  31564. -fast_install=$enable_fast_install
  31565. -
  31566. -# The host system.
  31567. -host_alias=$host_alias
  31568. -host=$host
  31569. -host_os=$host_os
  31570. -
  31571. -# The build system.
  31572. -build_alias=$build_alias
  31573. -build=$build
  31574. -build_os=$build_os
  31575. -
  31576. -# An echo program that does not interpret backslashes.
  31577. -echo=$lt_echo
  31578. -
  31579. -# The archiver.
  31580. -AR=$lt_AR
  31581. -AR_FLAGS=$lt_AR_FLAGS
  31582. -
  31583. -# A C compiler.
  31584. -LTCC=$lt_LTCC
  31585. -
  31586. -# LTCC compiler flags.
  31587. -LTCFLAGS=$lt_LTCFLAGS
  31588. -
  31589. -# A language-specific compiler.
  31590. -CC=$lt_compiler_F77
  31591. -
  31592. -# Is the compiler the GNU C compiler?
  31593. -with_gcc=$GCC_F77
  31594. -
  31595. -# An ERE matcher.
  31596. -EGREP=$lt_EGREP
  31597. -
  31598. -# The linker used to build libraries.
  31599. -LD=$lt_LD_F77
  31600. -
  31601. -# Whether we need hard or soft links.
  31602. -LN_S=$lt_LN_S
  31603. -
  31604. -# A BSD-compatible nm program.
  31605. -NM=$lt_NM
  31606. -
  31607. -# A symbol stripping program
  31608. -STRIP=$lt_STRIP
  31609. -
  31610. -# Used to examine libraries when file_magic_cmd begins "file"
  31611. -MAGIC_CMD=$MAGIC_CMD
  31612. -
  31613. -# Used on cygwin: DLL creation program.
  31614. -DLLTOOL="$DLLTOOL"
  31615. -
  31616. -# Used on cygwin: object dumper.
  31617. -OBJDUMP="$OBJDUMP"
  31618. -
  31619. -# Used on cygwin: assembler.
  31620. -AS="$AS"
  31621. -
  31622. -# The name of the directory that contains temporary libtool files.
  31623. -objdir=$objdir
  31624. -
  31625. -# How to create reloadable object files.
  31626. -reload_flag=$lt_reload_flag
  31627. -reload_cmds=$lt_reload_cmds
  31628. -
  31629. -# How to pass a linker flag through the compiler.
  31630. -wl=$lt_lt_prog_compiler_wl_F77
  31631. -
  31632. -# Object file suffix (normally "o").
  31633. -objext="$ac_objext"
  31634. -
  31635. -# Old archive suffix (normally "a").
  31636. -libext="$libext"
  31637. -
  31638. -# Shared library suffix (normally ".so").
  31639. -shrext_cmds='$shrext_cmds'
  31640. -
  31641. -# Executable file suffix (normally "").
  31642. -exeext="$exeext"
  31643. -
  31644. -# Additional compiler flags for building library objects.
  31645. -pic_flag=$lt_lt_prog_compiler_pic_F77
  31646. -pic_mode=$pic_mode
  31647. -
  31648. -# What is the maximum length of a command?
  31649. -max_cmd_len=$lt_cv_sys_max_cmd_len
  31650. -
  31651. -# Does compiler simultaneously support -c and -o options?
  31652. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  31653. -
  31654. -# Must we lock files when doing compilation?
  31655. -need_locks=$lt_need_locks
  31656. -
  31657. -# Do we need the lib prefix for modules?
  31658. -need_lib_prefix=$need_lib_prefix
  31659. -
  31660. -# Do we need a version for libraries?
  31661. -need_version=$need_version
  31662. -
  31663. -# Whether dlopen is supported.
  31664. -dlopen_support=$enable_dlopen
  31665. -
  31666. -# Whether dlopen of programs is supported.
  31667. -dlopen_self=$enable_dlopen_self
  31668. -
  31669. -# Whether dlopen of statically linked programs is supported.
  31670. -dlopen_self_static=$enable_dlopen_self_static
  31671. -
  31672. -# Compiler flag to prevent dynamic linking.
  31673. -link_static_flag=$lt_lt_prog_compiler_static_F77
  31674. -
  31675. -# Compiler flag to turn off builtin functions.
  31676. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  31677. -
  31678. -# Compiler flag to allow reflexive dlopens.
  31679. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  31680. -
  31681. -# Compiler flag to generate shared objects directly from archives.
  31682. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  31683. -
  31684. -# Compiler flag to generate thread-safe objects.
  31685. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  31686. -
  31687. -# Library versioning type.
  31688. -version_type=$version_type
  31689. -
  31690. -# Format of library name prefix.
  31691. -libname_spec=$lt_libname_spec
  31692. -
  31693. -# List of archive names. First name is the real one, the rest are links.
  31694. -# The last name is the one that the linker finds with -lNAME.
  31695. -library_names_spec=$lt_library_names_spec
  31696. -
  31697. -# The coded name of the library, if different from the real name.
  31698. -soname_spec=$lt_soname_spec
  31699. -
  31700. -# Commands used to build and install an old-style archive.
  31701. -RANLIB=$lt_RANLIB
  31702. -old_archive_cmds=$lt_old_archive_cmds_F77
  31703. -old_postinstall_cmds=$lt_old_postinstall_cmds
  31704. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  31705. -
  31706. -# Create an old-style archive from a shared archive.
  31707. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  31708. -
  31709. -# Create a temporary old-style archive to link instead of a shared archive.
  31710. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  31711. -
  31712. -# Commands used to build and install a shared archive.
  31713. -archive_cmds=$lt_archive_cmds_F77
  31714. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  31715. -postinstall_cmds=$lt_postinstall_cmds
  31716. -postuninstall_cmds=$lt_postuninstall_cmds
  31717. -
  31718. -# Commands used to build a loadable module (assumed same as above if empty)
  31719. -module_cmds=$lt_module_cmds_F77
  31720. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  31721. -
  31722. -# Commands to strip libraries.
  31723. -old_striplib=$lt_old_striplib
  31724. -striplib=$lt_striplib
  31725. -
  31726. -# Dependencies to place before the objects being linked to create a
  31727. -# shared library.
  31728. -predep_objects=$lt_predep_objects_F77
  31729. -
  31730. -# Dependencies to place after the objects being linked to create a
  31731. -# shared library.
  31732. -postdep_objects=$lt_postdep_objects_F77
  31733. -
  31734. -# Dependencies to place before the objects being linked to create a
  31735. -# shared library.
  31736. -predeps=$lt_predeps_F77
  31737. -
  31738. -# Dependencies to place after the objects being linked to create a
  31739. -# shared library.
  31740. -postdeps=$lt_postdeps_F77
  31741. -
  31742. -# The directories searched by this compiler when creating a shared
  31743. -# library
  31744. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  31745. -
  31746. -# The library search path used internally by the compiler when linking
  31747. -# a shared library.
  31748. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  31749. -
  31750. -# Method to check whether dependent libraries are shared objects.
  31751. -deplibs_check_method=$lt_deplibs_check_method
  31752. -
  31753. -# Command to use when deplibs_check_method == file_magic.
  31754. -file_magic_cmd=$lt_file_magic_cmd
  31755. -
  31756. -# Flag that allows shared libraries with undefined symbols to be built.
  31757. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  31758. -
  31759. -# Flag that forces no undefined symbols.
  31760. -no_undefined_flag=$lt_no_undefined_flag_F77
  31761. -
  31762. -# Commands used to finish a libtool library installation in a directory.
  31763. -finish_cmds=$lt_finish_cmds
  31764. -
  31765. -# Same as above, but a single script fragment to be evaled but not shown.
  31766. -finish_eval=$lt_finish_eval
  31767. -
  31768. -# Take the output of nm and produce a listing of raw symbols and C names.
  31769. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31770. -
  31771. -# Transform the output of nm in a proper C declaration
  31772. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31773. -
  31774. -# Transform the output of nm in a C name address pair
  31775. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31776. -
  31777. -# This is the shared library runtime path variable.
  31778. -runpath_var=$runpath_var
  31779. -
  31780. -# This is the shared library path variable.
  31781. -shlibpath_var=$shlibpath_var
  31782. -
  31783. -# Is shlibpath searched before the hard-coded library search path?
  31784. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31785. -
  31786. -# How to hardcode a shared library path into an executable.
  31787. -hardcode_action=$hardcode_action_F77
  31788. -
  31789. -# Whether we should hardcode library paths into libraries.
  31790. -hardcode_into_libs=$hardcode_into_libs
  31791. -
  31792. -# Flag to hardcode \$libdir into a binary during linking.
  31793. -# This must work even if \$libdir does not exist.
  31794. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  31795. -
  31796. -# If ld is used when linking, flag to hardcode \$libdir into
  31797. -# a binary during linking. This must work even if \$libdir does
  31798. -# not exist.
  31799. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  31800. -
  31801. -# Whether we need a single -rpath flag with a separated argument.
  31802. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  31803. -
  31804. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31805. -# resulting binary.
  31806. -hardcode_direct=$hardcode_direct_F77
  31807. -
  31808. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31809. -# resulting binary.
  31810. -hardcode_minus_L=$hardcode_minus_L_F77
  31811. -
  31812. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31813. -# the resulting binary.
  31814. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  31815. -
  31816. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31817. -# and all subsequent libraries and executables linked against it.
  31818. -hardcode_automatic=$hardcode_automatic_F77
  31819. -
  31820. -# Variables whose values should be saved in libtool wrapper scripts and
  31821. -# restored at relink time.
  31822. -variables_saved_for_relink="$variables_saved_for_relink"
  31823. -
  31824. -# Whether libtool must link a program against all its dependency libraries.
  31825. -link_all_deplibs=$link_all_deplibs_F77
  31826. -
  31827. -# Compile-time system search path for libraries
  31828. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31829. -
  31830. -# Run-time system search path for libraries
  31831. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31832. -
  31833. -# Fix the shell variable \$srcfile for the compiler.
  31834. -fix_srcfile_path=$lt_fix_srcfile_path
  31835. -
  31836. -# Set to yes if exported symbols are required.
  31837. -always_export_symbols=$always_export_symbols_F77
  31838. -
  31839. -# The commands to list exported symbols.
  31840. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  31841. -
  31842. -# The commands to extract the exported symbol list from a shared archive.
  31843. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31844. -
  31845. -# Symbols that should not be listed in the preloaded symbols.
  31846. -exclude_expsyms=$lt_exclude_expsyms_F77
  31847. -
  31848. -# Symbols that must always be exported.
  31849. -include_expsyms=$lt_include_expsyms_F77
  31850. -
  31851. -# ### END LIBTOOL TAG CONFIG: $tagname
  31852. -
  31853. -__EOF__
  31854. -
  31855. -
  31856. -else
  31857. - # If there is no Makefile yet, we rely on a make rule to execute
  31858. - # `config.status --recheck' to rerun these tests and create the
  31859. - # libtool script then.
  31860. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31861. - if test -f "$ltmain_in"; then
  31862. - test -f Makefile && make "$ltmain"
  31863. - fi
  31864. -fi
  31865. -
  31866. -
  31867. -ac_ext=c
  31868. -ac_cpp='$CPP $CPPFLAGS'
  31869. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31870. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31871. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31872. -
  31873. -CC="$lt_save_CC"
  31874. -
  31875. - else
  31876. - tagname=""
  31877. - fi
  31878. - ;;
  31879. -
  31880. - GCJ)
  31881. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  31882. -
  31883. -
  31884. -# Source file extension for Java test sources.
  31885. -ac_ext=java
  31886. -
  31887. -# Object file extension for compiled Java test sources.
  31888. -objext=o
  31889. -objext_GCJ=$objext
  31890. -
  31891. -# Code to be used in simple compile tests
  31892. -lt_simple_compile_test_code="class foo {}"
  31893. -
  31894. -# Code to be used in simple link tests
  31895. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  31896. -
  31897. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31898. -
  31899. -# If no C compiler was specified, use CC.
  31900. -LTCC=${LTCC-"$CC"}
  31901. -
  31902. -# If no C compiler flags were specified, use CFLAGS.
  31903. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31904. -
  31905. -# Allow CC to be a program name with arguments.
  31906. -compiler=$CC
  31907. -
  31908. -
  31909. -# save warnings/boilerplate of simple test code
  31910. -ac_outfile=conftest.$ac_objext
  31911. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  31912. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31913. -_lt_compiler_boilerplate=`cat conftest.err`
  31914. -$rm conftest*
  31915. -
  31916. -ac_outfile=conftest.$ac_objext
  31917. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  31918. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31919. -_lt_linker_boilerplate=`cat conftest.err`
  31920. -$rm -r conftest*
  31921. -
  31922. -
  31923. -# Allow CC to be a program name with arguments.
  31924. -lt_save_CC="$CC"
  31925. -CC=${GCJ-"gcj"}
  31926. -compiler=$CC
  31927. -compiler_GCJ=$CC
  31928. -for cc_temp in $compiler""; do
  31929. - case $cc_temp in
  31930. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31931. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31932. - \-*) ;;
  31933. - *) break;;
  31934. - esac
  31935. -done
  31936. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31937. -
  31938. -
  31939. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  31940. -archive_cmds_need_lc_GCJ=no
  31941. -
  31942. -old_archive_cmds_GCJ=$old_archive_cmds
  31943. -
  31944. -
  31945. -lt_prog_compiler_no_builtin_flag_GCJ=
  31946. -
  31947. -if test "$GCC" = yes; then
  31948. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  31949. -
  31950. -
  31951. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  31952. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  31953. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  31954. - $as_echo_n "(cached) " >&6
  31955. -else
  31956. - lt_cv_prog_compiler_rtti_exceptions=no
  31957. - ac_outfile=conftest.$ac_objext
  31958. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31959. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  31960. - # Insert the option either (1) after the last *FLAGS variable, or
  31961. - # (2) before a word containing "conftest.", or (3) at the end.
  31962. - # Note that $ac_compile itself does not contain backslashes and begins
  31963. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31964. - # The option is referenced via a variable to avoid confusing sed.
  31965. - lt_compile=`echo "$ac_compile" | $SED \
  31966. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31967. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31968. - -e 's:$: $lt_compiler_flag:'`
  31969. - (eval echo "\"\$as_me:17087: $lt_compile\"" >&5)
  31970. - (eval "$lt_compile" 2>conftest.err)
  31971. - ac_status=$?
  31972. - cat conftest.err >&5
  31973. - echo "$as_me:17091: \$? = $ac_status" >&5
  31974. - if (exit $ac_status) && test -s "$ac_outfile"; then
  31975. - # The compiler can only warn and ignore the option if not recognized
  31976. - # So say no if there are warnings other than the usual output.
  31977. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  31978. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31979. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  31980. - lt_cv_prog_compiler_rtti_exceptions=yes
  31981. - fi
  31982. - fi
  31983. - $rm conftest*
  31984. -
  31985. -fi
  31986. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  31987. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  31988. -
  31989. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  31990. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  31991. -else
  31992. - :
  31993. -fi
  31994. -
  31995. -fi
  31996. -
  31997. -lt_prog_compiler_wl_GCJ=
  31998. -lt_prog_compiler_pic_GCJ=
  31999. -lt_prog_compiler_static_GCJ=
  32000. -
  32001. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  32002. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  32003. -
  32004. - if test "$GCC" = yes; then
  32005. - lt_prog_compiler_wl_GCJ='-Wl,'
  32006. - lt_prog_compiler_static_GCJ='-static'
  32007. -
  32008. - case $host_os in
  32009. - aix*)
  32010. - # All AIX code is PIC.
  32011. - if test "$host_cpu" = ia64; then
  32012. - # AIX 5 now supports IA64 processor
  32013. - lt_prog_compiler_static_GCJ='-Bstatic'
  32014. - fi
  32015. - ;;
  32016. -
  32017. - amigaos*)
  32018. - # FIXME: we need at least 68020 code to build shared libraries, but
  32019. - # adding the `-m68020' flag to GCC prevents building anything better,
  32020. - # like `-m68040'.
  32021. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  32022. - ;;
  32023. -
  32024. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32025. - # PIC is the default for these OSes.
  32026. - ;;
  32027. -
  32028. - mingw* | cygwin* | pw32* | os2*)
  32029. - # This hack is so that the source file can tell whether it is being
  32030. - # built for inclusion in a dll (and should export symbols for example).
  32031. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  32032. - # (--disable-auto-import) libraries
  32033. -
  32034. - ;;
  32035. -
  32036. - darwin* | rhapsody*)
  32037. - # PIC is the default on this platform
  32038. - # Common symbols not allowed in MH_DYLIB files
  32039. - lt_prog_compiler_pic_GCJ='-fno-common'
  32040. - ;;
  32041. -
  32042. - interix[3-9]*)
  32043. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  32044. - # Instead, we relocate shared libraries at runtime.
  32045. - ;;
  32046. -
  32047. - msdosdjgpp*)
  32048. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  32049. - # on systems that don't support them.
  32050. - lt_prog_compiler_can_build_shared_GCJ=no
  32051. - enable_shared=no
  32052. - ;;
  32053. -
  32054. - sysv4*MP*)
  32055. - if test -d /usr/nec; then
  32056. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  32057. - fi
  32058. - ;;
  32059. -
  32060. - hpux*)
  32061. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32062. - # not for PA HP-UX.
  32063. - case $host_cpu in
  32064. - hppa*64*|ia64*)
  32065. - # +Z the default
  32066. - ;;
  32067. - *)
  32068. - lt_prog_compiler_pic_GCJ='-fPIC'
  32069. - ;;
  32070. - esac
  32071. - ;;
  32072. -
  32073. - *)
  32074. - lt_prog_compiler_pic_GCJ='-fPIC'
  32075. - ;;
  32076. - esac
  32077. - else
  32078. - # PORTME Check for flag to pass linker flags through the system compiler.
  32079. - case $host_os in
  32080. - aix*)
  32081. - lt_prog_compiler_wl_GCJ='-Wl,'
  32082. - if test "$host_cpu" = ia64; then
  32083. - # AIX 5 now supports IA64 processor
  32084. - lt_prog_compiler_static_GCJ='-Bstatic'
  32085. - else
  32086. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  32087. - fi
  32088. - ;;
  32089. - darwin*)
  32090. - # PIC is the default on this platform
  32091. - # Common symbols not allowed in MH_DYLIB files
  32092. - case $cc_basename in
  32093. - xlc*)
  32094. - lt_prog_compiler_pic_GCJ='-qnocommon'
  32095. - lt_prog_compiler_wl_GCJ='-Wl,'
  32096. - ;;
  32097. - esac
  32098. - ;;
  32099. -
  32100. - mingw* | cygwin* | pw32* | os2*)
  32101. - # This hack is so that the source file can tell whether it is being
  32102. - # built for inclusion in a dll (and should export symbols for example).
  32103. -
  32104. - ;;
  32105. -
  32106. - hpux9* | hpux10* | hpux11*)
  32107. - lt_prog_compiler_wl_GCJ='-Wl,'
  32108. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32109. - # not for PA HP-UX.
  32110. - case $host_cpu in
  32111. - hppa*64*|ia64*)
  32112. - # +Z the default
  32113. - ;;
  32114. - *)
  32115. - lt_prog_compiler_pic_GCJ='+Z'
  32116. - ;;
  32117. - esac
  32118. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  32119. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  32120. - ;;
  32121. -
  32122. - irix5* | irix6* | nonstopux*)
  32123. - lt_prog_compiler_wl_GCJ='-Wl,'
  32124. - # PIC (with -KPIC) is the default.
  32125. - lt_prog_compiler_static_GCJ='-non_shared'
  32126. - ;;
  32127. -
  32128. - newsos6)
  32129. - lt_prog_compiler_pic_GCJ='-KPIC'
  32130. - lt_prog_compiler_static_GCJ='-Bstatic'
  32131. - ;;
  32132. -
  32133. - linux* | k*bsd*-gnu)
  32134. - case $cc_basename in
  32135. - icc* | ecc*)
  32136. - lt_prog_compiler_wl_GCJ='-Wl,'
  32137. - lt_prog_compiler_pic_GCJ='-KPIC'
  32138. - lt_prog_compiler_static_GCJ='-static'
  32139. - ;;
  32140. - pgcc* | pgf77* | pgf90* | pgf95*)
  32141. - # Portland Group compilers (*not* the Pentium gcc compiler,
  32142. - # which looks to be a dead project)
  32143. - lt_prog_compiler_wl_GCJ='-Wl,'
  32144. - lt_prog_compiler_pic_GCJ='-fpic'
  32145. - lt_prog_compiler_static_GCJ='-Bstatic'
  32146. - ;;
  32147. - ccc*)
  32148. - lt_prog_compiler_wl_GCJ='-Wl,'
  32149. - # All Alpha code is PIC.
  32150. - lt_prog_compiler_static_GCJ='-non_shared'
  32151. - ;;
  32152. - *)
  32153. - case `$CC -V 2>&1 | sed 5q` in
  32154. - *Sun\ C*)
  32155. - # Sun C 5.9
  32156. - lt_prog_compiler_pic_GCJ='-KPIC'
  32157. - lt_prog_compiler_static_GCJ='-Bstatic'
  32158. - lt_prog_compiler_wl_GCJ='-Wl,'
  32159. - ;;
  32160. - *Sun\ F*)
  32161. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  32162. - lt_prog_compiler_pic_GCJ='-KPIC'
  32163. - lt_prog_compiler_static_GCJ='-Bstatic'
  32164. - lt_prog_compiler_wl_GCJ=''
  32165. - ;;
  32166. - esac
  32167. - ;;
  32168. - esac
  32169. - ;;
  32170. -
  32171. - osf3* | osf4* | osf5*)
  32172. - lt_prog_compiler_wl_GCJ='-Wl,'
  32173. - # All OSF/1 code is PIC.
  32174. - lt_prog_compiler_static_GCJ='-non_shared'
  32175. - ;;
  32176. -
  32177. - rdos*)
  32178. - lt_prog_compiler_static_GCJ='-non_shared'
  32179. - ;;
  32180. -
  32181. - solaris*)
  32182. - lt_prog_compiler_pic_GCJ='-KPIC'
  32183. - lt_prog_compiler_static_GCJ='-Bstatic'
  32184. - case $cc_basename in
  32185. - f77* | f90* | f95*)
  32186. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  32187. - *)
  32188. - lt_prog_compiler_wl_GCJ='-Wl,';;
  32189. - esac
  32190. - ;;
  32191. -
  32192. - sunos4*)
  32193. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  32194. - lt_prog_compiler_pic_GCJ='-PIC'
  32195. - lt_prog_compiler_static_GCJ='-Bstatic'
  32196. - ;;
  32197. -
  32198. - sysv4 | sysv4.2uw2* | sysv4.3*)
  32199. - lt_prog_compiler_wl_GCJ='-Wl,'
  32200. - lt_prog_compiler_pic_GCJ='-KPIC'
  32201. - lt_prog_compiler_static_GCJ='-Bstatic'
  32202. - ;;
  32203. -
  32204. - sysv4*MP*)
  32205. - if test -d /usr/nec ;then
  32206. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  32207. - lt_prog_compiler_static_GCJ='-Bstatic'
  32208. - fi
  32209. - ;;
  32210. -
  32211. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  32212. - lt_prog_compiler_wl_GCJ='-Wl,'
  32213. - lt_prog_compiler_pic_GCJ='-KPIC'
  32214. - lt_prog_compiler_static_GCJ='-Bstatic'
  32215. - ;;
  32216. -
  32217. - unicos*)
  32218. - lt_prog_compiler_wl_GCJ='-Wl,'
  32219. - lt_prog_compiler_can_build_shared_GCJ=no
  32220. - ;;
  32221. -
  32222. - uts4*)
  32223. - lt_prog_compiler_pic_GCJ='-pic'
  32224. - lt_prog_compiler_static_GCJ='-Bstatic'
  32225. - ;;
  32226. -
  32227. - *)
  32228. - lt_prog_compiler_can_build_shared_GCJ=no
  32229. - ;;
  32230. - esac
  32231. - fi
  32232. -
  32233. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  32234. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  32235. -
  32236. -#
  32237. -# Check to make sure the PIC flag actually works.
  32238. -#
  32239. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  32240. -
  32241. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  32242. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  32243. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  32244. - $as_echo_n "(cached) " >&6
  32245. -else
  32246. - lt_cv_prog_compiler_pic_works_GCJ=no
  32247. - ac_outfile=conftest.$ac_objext
  32248. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32249. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  32250. - # Insert the option either (1) after the last *FLAGS variable, or
  32251. - # (2) before a word containing "conftest.", or (3) at the end.
  32252. - # Note that $ac_compile itself does not contain backslashes and begins
  32253. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32254. - # The option is referenced via a variable to avoid confusing sed.
  32255. - lt_compile=`echo "$ac_compile" | $SED \
  32256. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32257. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32258. - -e 's:$: $lt_compiler_flag:'`
  32259. - (eval echo "\"\$as_me:17377: $lt_compile\"" >&5)
  32260. - (eval "$lt_compile" 2>conftest.err)
  32261. - ac_status=$?
  32262. - cat conftest.err >&5
  32263. - echo "$as_me:17381: \$? = $ac_status" >&5
  32264. - if (exit $ac_status) && test -s "$ac_outfile"; then
  32265. - # The compiler can only warn and ignore the option if not recognized
  32266. - # So say no if there are warnings other than the usual output.
  32267. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  32268. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32269. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  32270. - lt_cv_prog_compiler_pic_works_GCJ=yes
  32271. - fi
  32272. - fi
  32273. - $rm conftest*
  32274. -
  32275. -fi
  32276. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  32277. -$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  32278. -
  32279. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  32280. - case $lt_prog_compiler_pic_GCJ in
  32281. - "" | " "*) ;;
  32282. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  32283. - esac
  32284. -else
  32285. - lt_prog_compiler_pic_GCJ=
  32286. - lt_prog_compiler_can_build_shared_GCJ=no
  32287. -fi
  32288. -
  32289. -fi
  32290. -case $host_os in
  32291. - # For platforms which do not support PIC, -DPIC is meaningless:
  32292. - *djgpp*)
  32293. - lt_prog_compiler_pic_GCJ=
  32294. - ;;
  32295. - *)
  32296. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  32297. - ;;
  32298. -esac
  32299. -
  32300. -#
  32301. -# Check to make sure the static flag actually works.
  32302. -#
  32303. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  32304. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  32305. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  32306. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  32307. - $as_echo_n "(cached) " >&6
  32308. -else
  32309. - lt_cv_prog_compiler_static_works_GCJ=no
  32310. - save_LDFLAGS="$LDFLAGS"
  32311. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  32312. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  32313. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  32314. - # The linker can only warn and ignore the option if not recognized
  32315. - # So say no if there are warnings
  32316. - if test -s conftest.err; then
  32317. - # Append any errors to the config.log.
  32318. - cat conftest.err 1>&5
  32319. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  32320. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  32321. - if diff conftest.exp conftest.er2 >/dev/null; then
  32322. - lt_cv_prog_compiler_static_works_GCJ=yes
  32323. - fi
  32324. - else
  32325. - lt_cv_prog_compiler_static_works_GCJ=yes
  32326. - fi
  32327. - fi
  32328. - $rm -r conftest*
  32329. - LDFLAGS="$save_LDFLAGS"
  32330. -
  32331. -fi
  32332. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  32333. -$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  32334. -
  32335. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  32336. - :
  32337. -else
  32338. - lt_prog_compiler_static_GCJ=
  32339. -fi
  32340. -
  32341. -
  32342. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  32343. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  32344. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  32345. - $as_echo_n "(cached) " >&6
  32346. -else
  32347. - lt_cv_prog_compiler_c_o_GCJ=no
  32348. - $rm -r conftest 2>/dev/null
  32349. - mkdir conftest
  32350. - cd conftest
  32351. - mkdir out
  32352. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32353. -
  32354. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  32355. - # Insert the option either (1) after the last *FLAGS variable, or
  32356. - # (2) before a word containing "conftest.", or (3) at the end.
  32357. - # Note that $ac_compile itself does not contain backslashes and begins
  32358. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  32359. - lt_compile=`echo "$ac_compile" | $SED \
  32360. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32361. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32362. - -e 's:$: $lt_compiler_flag:'`
  32363. - (eval echo "\"\$as_me:17481: $lt_compile\"" >&5)
  32364. - (eval "$lt_compile" 2>out/conftest.err)
  32365. - ac_status=$?
  32366. - cat out/conftest.err >&5
  32367. - echo "$as_me:17485: \$? = $ac_status" >&5
  32368. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  32369. - then
  32370. - # The compiler can only warn and ignore the option if not recognized
  32371. - # So say no if there are warnings
  32372. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  32373. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  32374. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  32375. - lt_cv_prog_compiler_c_o_GCJ=yes
  32376. - fi
  32377. - fi
  32378. - chmod u+w . 2>&5
  32379. - $rm conftest*
  32380. - # SGI C++ compiler will create directory out/ii_files/ for
  32381. - # template instantiation
  32382. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  32383. - $rm out/* && rmdir out
  32384. - cd ..
  32385. - rmdir conftest
  32386. - $rm conftest*
  32387. -
  32388. -fi
  32389. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  32390. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  32391. -
  32392. -
  32393. -hard_links="nottested"
  32394. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  32395. - # do not overwrite the value of need_locks provided by the user
  32396. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  32397. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  32398. - hard_links=yes
  32399. - $rm conftest*
  32400. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32401. - touch conftest.a
  32402. - ln conftest.a conftest.b 2>&5 || hard_links=no
  32403. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32404. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  32405. -$as_echo "$hard_links" >&6; }
  32406. - if test "$hard_links" = no; then
  32407. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  32408. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  32409. - need_locks=warn
  32410. - fi
  32411. -else
  32412. - need_locks=no
  32413. -fi
  32414. -
  32415. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  32416. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  32417. -
  32418. - runpath_var=
  32419. - allow_undefined_flag_GCJ=
  32420. - enable_shared_with_static_runtimes_GCJ=no
  32421. - archive_cmds_GCJ=
  32422. - archive_expsym_cmds_GCJ=
  32423. - old_archive_From_new_cmds_GCJ=
  32424. - old_archive_from_expsyms_cmds_GCJ=
  32425. - export_dynamic_flag_spec_GCJ=
  32426. - whole_archive_flag_spec_GCJ=
  32427. - thread_safe_flag_spec_GCJ=
  32428. - hardcode_libdir_flag_spec_GCJ=
  32429. - hardcode_libdir_flag_spec_ld_GCJ=
  32430. - hardcode_libdir_separator_GCJ=
  32431. - hardcode_direct_GCJ=no
  32432. - hardcode_minus_L_GCJ=no
  32433. - hardcode_shlibpath_var_GCJ=unsupported
  32434. - link_all_deplibs_GCJ=unknown
  32435. - hardcode_automatic_GCJ=no
  32436. - module_cmds_GCJ=
  32437. - module_expsym_cmds_GCJ=
  32438. - always_export_symbols_GCJ=no
  32439. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32440. - # include_expsyms should be a list of space-separated symbols to be *always*
  32441. - # included in the symbol list
  32442. - include_expsyms_GCJ=
  32443. - # exclude_expsyms can be an extended regexp of symbols to exclude
  32444. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  32445. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  32446. - # as well as any symbol that contains `d'.
  32447. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  32448. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  32449. - # platforms (ab)use it in PIC code, but their linkers get confused if
  32450. - # the symbol is explicitly referenced. Since portable code cannot
  32451. - # rely on this symbol name, it's probably fine to never include it in
  32452. - # preloaded symbol tables.
  32453. - # Exclude shared library initialization/finalization symbols.
  32454. - extract_expsyms_cmds=
  32455. - # Just being paranoid about ensuring that cc_basename is set.
  32456. - for cc_temp in $compiler""; do
  32457. - case $cc_temp in
  32458. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32459. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32460. - \-*) ;;
  32461. - *) break;;
  32462. - esac
  32463. -done
  32464. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32465. -
  32466. - case $host_os in
  32467. - cygwin* | mingw* | pw32*)
  32468. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  32469. - # When not using gcc, we currently assume that we are using
  32470. - # Microsoft Visual C++.
  32471. - if test "$GCC" != yes; then
  32472. - with_gnu_ld=no
  32473. - fi
  32474. - ;;
  32475. - interix*)
  32476. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  32477. - with_gnu_ld=yes
  32478. - ;;
  32479. - openbsd*)
  32480. - with_gnu_ld=no
  32481. - ;;
  32482. - esac
  32483. -
  32484. - ld_shlibs_GCJ=yes
  32485. - if test "$with_gnu_ld" = yes; then
  32486. - # If archive_cmds runs LD, not CC, wlarc should be empty
  32487. - wlarc='${wl}'
  32488. -
  32489. - # Set some defaults for GNU ld with shared library support. These
  32490. - # are reset later if shared libraries are not supported. Putting them
  32491. - # here allows them to be overridden if necessary.
  32492. - runpath_var=LD_RUN_PATH
  32493. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  32494. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  32495. - # ancient GNU ld didn't support --whole-archive et. al.
  32496. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  32497. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  32498. - else
  32499. - whole_archive_flag_spec_GCJ=
  32500. - fi
  32501. - supports_anon_versioning=no
  32502. - case `$LD -v 2>/dev/null` in
  32503. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  32504. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  32505. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  32506. - *\ 2.11.*) ;; # other 2.11 versions
  32507. - *) supports_anon_versioning=yes ;;
  32508. - esac
  32509. -
  32510. - # See if GNU ld supports shared libraries.
  32511. - case $host_os in
  32512. - aix[3-9]*)
  32513. - # On AIX/PPC, the GNU linker is very broken
  32514. - if test "$host_cpu" != ia64; then
  32515. - ld_shlibs_GCJ=no
  32516. - cat <<EOF 1>&2
  32517. -
  32518. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  32519. -*** to be unable to reliably create shared libraries on AIX.
  32520. -*** Therefore, libtool is disabling shared libraries support. If you
  32521. -*** really care for shared libraries, you may want to modify your PATH
  32522. -*** so that a non-GNU linker is found, and then restart.
  32523. -
  32524. -EOF
  32525. - fi
  32526. - ;;
  32527. -
  32528. - amigaos*)
  32529. - 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)'
  32530. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32531. - hardcode_minus_L_GCJ=yes
  32532. -
  32533. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  32534. - # that the semantics of dynamic libraries on AmigaOS, at least up
  32535. - # to version 4, is to share data among multiple programs linked
  32536. - # with the same dynamic library. Since this doesn't match the
  32537. - # behavior of shared libraries on other platforms, we can't use
  32538. - # them.
  32539. - ld_shlibs_GCJ=no
  32540. - ;;
  32541. -
  32542. - beos*)
  32543. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32544. - allow_undefined_flag_GCJ=unsupported
  32545. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  32546. - # support --undefined. This deserves some investigation. FIXME
  32547. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32548. - else
  32549. - ld_shlibs_GCJ=no
  32550. - fi
  32551. - ;;
  32552. -
  32553. - cygwin* | mingw* | pw32*)
  32554. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  32555. - # as there is no search path for DLLs.
  32556. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32557. - allow_undefined_flag_GCJ=unsupported
  32558. - always_export_symbols_GCJ=no
  32559. - enable_shared_with_static_runtimes_GCJ=yes
  32560. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  32561. -
  32562. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  32563. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  32564. - # If the export-symbols file already is a .def file (1st line
  32565. - # is EXPORTS), use it as is; otherwise, prepend...
  32566. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  32567. - cp $export_symbols $output_objdir/$soname.def;
  32568. - else
  32569. - echo EXPORTS > $output_objdir/$soname.def;
  32570. - cat $export_symbols >> $output_objdir/$soname.def;
  32571. - fi~
  32572. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  32573. - else
  32574. - ld_shlibs_GCJ=no
  32575. - fi
  32576. - ;;
  32577. -
  32578. - interix[3-9]*)
  32579. - hardcode_direct_GCJ=no
  32580. - hardcode_shlibpath_var_GCJ=no
  32581. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  32582. - export_dynamic_flag_spec_GCJ='${wl}-E'
  32583. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  32584. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  32585. - # default) and relocated if they conflict, which is a slow very memory
  32586. - # consuming and fragmenting process. To avoid this, we pick a random,
  32587. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  32588. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  32589. - 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'
  32590. - 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'
  32591. - ;;
  32592. -
  32593. - gnu* | linux* | k*bsd*-gnu)
  32594. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32595. - tmp_addflag=
  32596. - case $cc_basename,$host_cpu in
  32597. - pgcc*) # Portland Group C compiler
  32598. - 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'
  32599. - tmp_addflag=' $pic_flag'
  32600. - ;;
  32601. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  32602. - 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'
  32603. - tmp_addflag=' $pic_flag -Mnomain' ;;
  32604. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  32605. - tmp_addflag=' -i_dynamic' ;;
  32606. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  32607. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  32608. - ifc* | ifort*) # Intel Fortran compiler
  32609. - tmp_addflag=' -nofor_main' ;;
  32610. - esac
  32611. - case `$CC -V 2>&1 | sed 5q` in
  32612. - *Sun\ C*) # Sun C 5.9
  32613. - 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'
  32614. - tmp_sharedflag='-G' ;;
  32615. - *Sun\ F*) # Sun Fortran 8.3
  32616. - tmp_sharedflag='-G' ;;
  32617. - *)
  32618. - tmp_sharedflag='-shared' ;;
  32619. - esac
  32620. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32621. -
  32622. - if test $supports_anon_versioning = yes; then
  32623. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  32624. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  32625. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  32626. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  32627. - fi
  32628. - else
  32629. - ld_shlibs_GCJ=no
  32630. - fi
  32631. - ;;
  32632. -
  32633. - netbsd*)
  32634. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32635. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  32636. - wlarc=
  32637. - else
  32638. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32639. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32640. - fi
  32641. - ;;
  32642. -
  32643. - solaris*)
  32644. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  32645. - ld_shlibs_GCJ=no
  32646. - cat <<EOF 1>&2
  32647. -
  32648. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  32649. -*** create shared libraries on Solaris systems. Therefore, libtool
  32650. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32651. -*** binutils to release 2.9.1 or newer. Another option is to modify
  32652. -*** your PATH or compiler configuration so that the native linker is
  32653. -*** used, and then restart.
  32654. -
  32655. -EOF
  32656. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32657. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32658. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32659. - else
  32660. - ld_shlibs_GCJ=no
  32661. - fi
  32662. - ;;
  32663. -
  32664. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  32665. - case `$LD -v 2>&1` in
  32666. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  32667. - ld_shlibs_GCJ=no
  32668. - cat <<_LT_EOF 1>&2
  32669. -
  32670. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  32671. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  32672. -*** is disabling shared libraries support. We urge you to upgrade GNU
  32673. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  32674. -*** your PATH or compiler configuration so that the native linker is
  32675. -*** used, and then restart.
  32676. -
  32677. -_LT_EOF
  32678. - ;;
  32679. - *)
  32680. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32681. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  32682. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  32683. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  32684. - else
  32685. - ld_shlibs_GCJ=no
  32686. - fi
  32687. - ;;
  32688. - esac
  32689. - ;;
  32690. -
  32691. - sunos4*)
  32692. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  32693. - wlarc=
  32694. - hardcode_direct_GCJ=yes
  32695. - hardcode_shlibpath_var_GCJ=no
  32696. - ;;
  32697. -
  32698. - *)
  32699. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  32700. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32701. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32702. - else
  32703. - ld_shlibs_GCJ=no
  32704. - fi
  32705. - ;;
  32706. - esac
  32707. -
  32708. - if test "$ld_shlibs_GCJ" = no; then
  32709. - runpath_var=
  32710. - hardcode_libdir_flag_spec_GCJ=
  32711. - export_dynamic_flag_spec_GCJ=
  32712. - whole_archive_flag_spec_GCJ=
  32713. - fi
  32714. - else
  32715. - # PORTME fill in a description of your system's linker (not GNU ld)
  32716. - case $host_os in
  32717. - aix3*)
  32718. - allow_undefined_flag_GCJ=unsupported
  32719. - always_export_symbols_GCJ=yes
  32720. - 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'
  32721. - # Note: this linker hardcodes the directories in LIBPATH if there
  32722. - # are no directories specified by -L.
  32723. - hardcode_minus_L_GCJ=yes
  32724. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  32725. - # Neither direct hardcoding nor static linking is supported with a
  32726. - # broken collect2.
  32727. - hardcode_direct_GCJ=unsupported
  32728. - fi
  32729. - ;;
  32730. -
  32731. - aix[4-9]*)
  32732. - if test "$host_cpu" = ia64; then
  32733. - # On IA64, the linker does run time linking by default, so we don't
  32734. - # have to do anything special.
  32735. - aix_use_runtimelinking=no
  32736. - exp_sym_flag='-Bexport'
  32737. - no_entry_flag=""
  32738. - else
  32739. - # If we're using GNU nm, then we don't want the "-C" option.
  32740. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  32741. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  32742. - 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'
  32743. - else
  32744. - 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'
  32745. - fi
  32746. - aix_use_runtimelinking=no
  32747. -
  32748. - # Test if we are trying to use run time linking or normal
  32749. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  32750. - # need to do runtime linking.
  32751. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  32752. - for ld_flag in $LDFLAGS; do
  32753. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  32754. - aix_use_runtimelinking=yes
  32755. - break
  32756. - fi
  32757. - done
  32758. - ;;
  32759. - esac
  32760. -
  32761. - exp_sym_flag='-bexport'
  32762. - no_entry_flag='-bnoentry'
  32763. - fi
  32764. -
  32765. - # When large executables or shared objects are built, AIX ld can
  32766. - # have problems creating the table of contents. If linking a library
  32767. - # or program results in "error TOC overflow" add -mminimal-toc to
  32768. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  32769. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  32770. -
  32771. - archive_cmds_GCJ=''
  32772. - hardcode_direct_GCJ=yes
  32773. - hardcode_libdir_separator_GCJ=':'
  32774. - link_all_deplibs_GCJ=yes
  32775. -
  32776. - if test "$GCC" = yes; then
  32777. - case $host_os in aix4.[012]|aix4.[012].*)
  32778. - # We only want to do this on AIX 4.2 and lower, the check
  32779. - # below for broken collect2 doesn't work under 4.3+
  32780. - collect2name=`${CC} -print-prog-name=collect2`
  32781. - if test -f "$collect2name" && \
  32782. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  32783. - then
  32784. - # We have reworked collect2
  32785. - :
  32786. - else
  32787. - # We have old collect2
  32788. - hardcode_direct_GCJ=unsupported
  32789. - # It fails to find uninstalled libraries when the uninstalled
  32790. - # path is not listed in the libpath. Setting hardcode_minus_L
  32791. - # to unsupported forces relinking
  32792. - hardcode_minus_L_GCJ=yes
  32793. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32794. - hardcode_libdir_separator_GCJ=
  32795. - fi
  32796. - ;;
  32797. - esac
  32798. - shared_flag='-shared'
  32799. - if test "$aix_use_runtimelinking" = yes; then
  32800. - shared_flag="$shared_flag "'${wl}-G'
  32801. - fi
  32802. - else
  32803. - # not using gcc
  32804. - if test "$host_cpu" = ia64; then
  32805. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  32806. - # chokes on -Wl,-G. The following line is correct:
  32807. - shared_flag='-G'
  32808. - else
  32809. - if test "$aix_use_runtimelinking" = yes; then
  32810. - shared_flag='${wl}-G'
  32811. - else
  32812. - shared_flag='${wl}-bM:SRE'
  32813. - fi
  32814. - fi
  32815. - fi
  32816. -
  32817. - # It seems that -bexpall does not export symbols beginning with
  32818. - # underscore (_), so it is better to generate a list of symbols to export.
  32819. - always_export_symbols_GCJ=yes
  32820. - if test "$aix_use_runtimelinking" = yes; then
  32821. - # Warning - without using the other runtime loading flags (-brtl),
  32822. - # -berok will link without error, but may produce a broken library.
  32823. - allow_undefined_flag_GCJ='-berok'
  32824. - # Determine the default libpath from the value encoded in an empty executable.
  32825. - cat >conftest.$ac_ext <<_ACEOF
  32826. -/* confdefs.h. */
  32827. -_ACEOF
  32828. -cat confdefs.h >>conftest.$ac_ext
  32829. -cat >>conftest.$ac_ext <<_ACEOF
  32830. -/* end confdefs.h. */
  32831. -
  32832. -int
  32833. -main ()
  32834. -{
  32835. -
  32836. - ;
  32837. - return 0;
  32838. -}
  32839. -_ACEOF
  32840. -rm -f conftest.$ac_objext conftest$ac_exeext
  32841. -if { (ac_try="$ac_link"
  32842. -case "(($ac_try" in
  32843. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32844. - *) ac_try_echo=$ac_try;;
  32845. -esac
  32846. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32847. -$as_echo "$ac_try_echo") >&5
  32848. - (eval "$ac_link") 2>conftest.er1
  32849. - ac_status=$?
  32850. - grep -v '^ *+' conftest.er1 >conftest.err
  32851. - rm -f conftest.er1
  32852. - cat conftest.err >&5
  32853. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32854. - (exit $ac_status); } && {
  32855. - test -z "$ac_c_werror_flag" ||
  32856. - test ! -s conftest.err
  32857. - } && test -s conftest$ac_exeext && {
  32858. - test "$cross_compiling" = yes ||
  32859. - $as_test_x conftest$ac_exeext
  32860. - }; then
  32861. -
  32862. -lt_aix_libpath_sed='
  32863. - /Import File Strings/,/^$/ {
  32864. - /^0/ {
  32865. - s/^0 *\(.*\)$/\1/
  32866. - p
  32867. - }
  32868. - }'
  32869. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32870. -# Check for a 64-bit object if we didn't find anything.
  32871. -if test -z "$aix_libpath"; then
  32872. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32873. -fi
  32874. -else
  32875. - $as_echo "$as_me: failed program was:" >&5
  32876. -sed 's/^/| /' conftest.$ac_ext >&5
  32877. -
  32878. -
  32879. -fi
  32880. -
  32881. -rm -rf conftest.dSYM
  32882. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32883. - conftest$ac_exeext conftest.$ac_ext
  32884. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32885. -
  32886. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  32887. - 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"
  32888. - else
  32889. - if test "$host_cpu" = ia64; then
  32890. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  32891. - allow_undefined_flag_GCJ="-z nodefs"
  32892. - 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"
  32893. - else
  32894. - # Determine the default libpath from the value encoded in an empty executable.
  32895. - cat >conftest.$ac_ext <<_ACEOF
  32896. -/* confdefs.h. */
  32897. -_ACEOF
  32898. -cat confdefs.h >>conftest.$ac_ext
  32899. -cat >>conftest.$ac_ext <<_ACEOF
  32900. -/* end confdefs.h. */
  32901. -
  32902. -int
  32903. -main ()
  32904. -{
  32905. -
  32906. - ;
  32907. - return 0;
  32908. -}
  32909. -_ACEOF
  32910. -rm -f conftest.$ac_objext conftest$ac_exeext
  32911. -if { (ac_try="$ac_link"
  32912. -case "(($ac_try" in
  32913. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32914. - *) ac_try_echo=$ac_try;;
  32915. -esac
  32916. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  32917. -$as_echo "$ac_try_echo") >&5
  32918. - (eval "$ac_link") 2>conftest.er1
  32919. - ac_status=$?
  32920. - grep -v '^ *+' conftest.er1 >conftest.err
  32921. - rm -f conftest.er1
  32922. - cat conftest.err >&5
  32923. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32924. - (exit $ac_status); } && {
  32925. - test -z "$ac_c_werror_flag" ||
  32926. - test ! -s conftest.err
  32927. - } && test -s conftest$ac_exeext && {
  32928. - test "$cross_compiling" = yes ||
  32929. - $as_test_x conftest$ac_exeext
  32930. - }; then
  32931. -
  32932. -lt_aix_libpath_sed='
  32933. - /Import File Strings/,/^$/ {
  32934. - /^0/ {
  32935. - s/^0 *\(.*\)$/\1/
  32936. - p
  32937. - }
  32938. - }'
  32939. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32940. -# Check for a 64-bit object if we didn't find anything.
  32941. -if test -z "$aix_libpath"; then
  32942. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  32943. -fi
  32944. -else
  32945. - $as_echo "$as_me: failed program was:" >&5
  32946. -sed 's/^/| /' conftest.$ac_ext >&5
  32947. -
  32948. -
  32949. -fi
  32950. -
  32951. -rm -rf conftest.dSYM
  32952. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32953. - conftest$ac_exeext conftest.$ac_ext
  32954. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  32955. -
  32956. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  32957. - # Warning - without using the other run time loading flags,
  32958. - # -berok will link without error, but may produce a broken library.
  32959. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  32960. - allow_undefined_flag_GCJ=' ${wl}-berok'
  32961. - # Exported symbols can be pulled into shared objects from archives
  32962. - whole_archive_flag_spec_GCJ='$convenience'
  32963. - archive_cmds_need_lc_GCJ=yes
  32964. - # This is similar to how AIX traditionally builds its shared libraries.
  32965. - 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'
  32966. - fi
  32967. - fi
  32968. - ;;
  32969. -
  32970. - amigaos*)
  32971. - 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)'
  32972. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  32973. - hardcode_minus_L_GCJ=yes
  32974. - # see comment about different semantics on the GNU ld section
  32975. - ld_shlibs_GCJ=no
  32976. - ;;
  32977. -
  32978. - bsdi[45]*)
  32979. - export_dynamic_flag_spec_GCJ=-rdynamic
  32980. - ;;
  32981. -
  32982. - cygwin* | mingw* | pw32*)
  32983. - # When not using gcc, we currently assume that we are using
  32984. - # Microsoft Visual C++.
  32985. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  32986. - # no search path for DLLs.
  32987. - hardcode_libdir_flag_spec_GCJ=' '
  32988. - allow_undefined_flag_GCJ=unsupported
  32989. - # Tell ltmain to make .lib files, not .a files.
  32990. - libext=lib
  32991. - # Tell ltmain to make .dll files, not .so files.
  32992. - shrext_cmds=".dll"
  32993. - # FIXME: Setting linknames here is a bad hack.
  32994. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  32995. - # The linker will automatically build a .lib file if we build a DLL.
  32996. - old_archive_From_new_cmds_GCJ='true'
  32997. - # FIXME: Should let the user specify the lib program.
  32998. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  32999. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  33000. - enable_shared_with_static_runtimes_GCJ=yes
  33001. - ;;
  33002. -
  33003. - darwin* | rhapsody*)
  33004. - case $host_os in
  33005. - rhapsody* | darwin1.[012])
  33006. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  33007. - ;;
  33008. - *) # Darwin 1.3 on
  33009. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  33010. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  33011. - else
  33012. - case ${MACOSX_DEPLOYMENT_TARGET} in
  33013. - 10.[012])
  33014. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  33015. - ;;
  33016. - 10.*)
  33017. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  33018. - ;;
  33019. - esac
  33020. - fi
  33021. - ;;
  33022. - esac
  33023. - archive_cmds_need_lc_GCJ=no
  33024. - hardcode_direct_GCJ=no
  33025. - hardcode_automatic_GCJ=yes
  33026. - hardcode_shlibpath_var_GCJ=unsupported
  33027. - whole_archive_flag_spec_GCJ=''
  33028. - link_all_deplibs_GCJ=yes
  33029. - if test "$GCC" = yes ; then
  33030. - output_verbose_link_cmd='echo'
  33031. - 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}"
  33032. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  33033. - 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}"
  33034. - 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}"
  33035. - else
  33036. - case $cc_basename in
  33037. - xlc*)
  33038. - output_verbose_link_cmd='echo'
  33039. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  33040. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  33041. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  33042. - 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}'
  33043. - 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}'
  33044. - ;;
  33045. - *)
  33046. - ld_shlibs_GCJ=no
  33047. - ;;
  33048. - esac
  33049. - fi
  33050. - ;;
  33051. -
  33052. - dgux*)
  33053. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33054. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33055. - hardcode_shlibpath_var_GCJ=no
  33056. - ;;
  33057. -
  33058. - freebsd1*)
  33059. - ld_shlibs_GCJ=no
  33060. - ;;
  33061. -
  33062. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  33063. - # support. Future versions do this automatically, but an explicit c++rt0.o
  33064. - # does not break anything, and helps significantly (at the cost of a little
  33065. - # extra space).
  33066. - freebsd2.2*)
  33067. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  33068. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33069. - hardcode_direct_GCJ=yes
  33070. - hardcode_shlibpath_var_GCJ=no
  33071. - ;;
  33072. -
  33073. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  33074. - freebsd2*)
  33075. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33076. - hardcode_direct_GCJ=yes
  33077. - hardcode_minus_L_GCJ=yes
  33078. - hardcode_shlibpath_var_GCJ=no
  33079. - ;;
  33080. -
  33081. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  33082. - freebsd* | dragonfly*)
  33083. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  33084. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33085. - hardcode_direct_GCJ=yes
  33086. - hardcode_shlibpath_var_GCJ=no
  33087. - ;;
  33088. -
  33089. - hpux9*)
  33090. - if test "$GCC" = yes; then
  33091. - 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'
  33092. - else
  33093. - 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'
  33094. - fi
  33095. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33096. - hardcode_libdir_separator_GCJ=:
  33097. - hardcode_direct_GCJ=yes
  33098. -
  33099. - # hardcode_minus_L: Not really in the search PATH,
  33100. - # but as the default location of the library.
  33101. - hardcode_minus_L_GCJ=yes
  33102. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33103. - ;;
  33104. -
  33105. - hpux10*)
  33106. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33107. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33108. - else
  33109. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  33110. - fi
  33111. - if test "$with_gnu_ld" = no; then
  33112. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33113. - hardcode_libdir_separator_GCJ=:
  33114. -
  33115. - hardcode_direct_GCJ=yes
  33116. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33117. -
  33118. - # hardcode_minus_L: Not really in the search PATH,
  33119. - # but as the default location of the library.
  33120. - hardcode_minus_L_GCJ=yes
  33121. - fi
  33122. - ;;
  33123. -
  33124. - hpux11*)
  33125. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33126. - case $host_cpu in
  33127. - hppa*64*)
  33128. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33129. - ;;
  33130. - ia64*)
  33131. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33132. - ;;
  33133. - *)
  33134. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33135. - ;;
  33136. - esac
  33137. - else
  33138. - case $host_cpu in
  33139. - hppa*64*)
  33140. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33141. - ;;
  33142. - ia64*)
  33143. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33144. - ;;
  33145. - *)
  33146. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33147. - ;;
  33148. - esac
  33149. - fi
  33150. - if test "$with_gnu_ld" = no; then
  33151. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  33152. - hardcode_libdir_separator_GCJ=:
  33153. -
  33154. - case $host_cpu in
  33155. - hppa*64*|ia64*)
  33156. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  33157. - hardcode_direct_GCJ=no
  33158. - hardcode_shlibpath_var_GCJ=no
  33159. - ;;
  33160. - *)
  33161. - hardcode_direct_GCJ=yes
  33162. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33163. -
  33164. - # hardcode_minus_L: Not really in the search PATH,
  33165. - # but as the default location of the library.
  33166. - hardcode_minus_L_GCJ=yes
  33167. - ;;
  33168. - esac
  33169. - fi
  33170. - ;;
  33171. -
  33172. - irix5* | irix6* | nonstopux*)
  33173. - if test "$GCC" = yes; then
  33174. - 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'
  33175. - else
  33176. - 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'
  33177. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  33178. - fi
  33179. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33180. - hardcode_libdir_separator_GCJ=:
  33181. - link_all_deplibs_GCJ=yes
  33182. - ;;
  33183. -
  33184. - netbsd*)
  33185. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33186. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  33187. - else
  33188. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  33189. - fi
  33190. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33191. - hardcode_direct_GCJ=yes
  33192. - hardcode_shlibpath_var_GCJ=no
  33193. - ;;
  33194. -
  33195. - newsos6)
  33196. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33197. - hardcode_direct_GCJ=yes
  33198. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33199. - hardcode_libdir_separator_GCJ=:
  33200. - hardcode_shlibpath_var_GCJ=no
  33201. - ;;
  33202. -
  33203. - openbsd*)
  33204. - if test -f /usr/libexec/ld.so; then
  33205. - hardcode_direct_GCJ=yes
  33206. - hardcode_shlibpath_var_GCJ=no
  33207. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33208. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33209. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  33210. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  33211. - export_dynamic_flag_spec_GCJ='${wl}-E'
  33212. - else
  33213. - case $host_os in
  33214. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  33215. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33216. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33217. - ;;
  33218. - *)
  33219. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33220. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  33221. - ;;
  33222. - esac
  33223. - fi
  33224. - else
  33225. - ld_shlibs_GCJ=no
  33226. - fi
  33227. - ;;
  33228. -
  33229. - os2*)
  33230. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33231. - hardcode_minus_L_GCJ=yes
  33232. - allow_undefined_flag_GCJ=unsupported
  33233. - 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'
  33234. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  33235. - ;;
  33236. -
  33237. - osf3*)
  33238. - if test "$GCC" = yes; then
  33239. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  33240. - 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'
  33241. - else
  33242. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  33243. - 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'
  33244. - fi
  33245. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33246. - hardcode_libdir_separator_GCJ=:
  33247. - ;;
  33248. -
  33249. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  33250. - if test "$GCC" = yes; then
  33251. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  33252. - 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'
  33253. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  33254. - else
  33255. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  33256. - 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'
  33257. - 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~
  33258. - $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'
  33259. -
  33260. - # Both c and cxx compiler support -rpath directly
  33261. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  33262. - fi
  33263. - hardcode_libdir_separator_GCJ=:
  33264. - ;;
  33265. -
  33266. - solaris*)
  33267. - no_undefined_flag_GCJ=' -z text'
  33268. - if test "$GCC" = yes; then
  33269. - wlarc='${wl}'
  33270. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33271. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  33272. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  33273. - else
  33274. - wlarc=''
  33275. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33276. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  33277. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  33278. - fi
  33279. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  33280. - hardcode_shlibpath_var_GCJ=no
  33281. - case $host_os in
  33282. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  33283. - *)
  33284. - # The compiler driver will combine and reorder linker options,
  33285. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  33286. - # but is careful enough not to reorder.
  33287. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  33288. - if test "$GCC" = yes; then
  33289. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  33290. - else
  33291. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  33292. - fi
  33293. - ;;
  33294. - esac
  33295. - link_all_deplibs_GCJ=yes
  33296. - ;;
  33297. -
  33298. - sunos4*)
  33299. - if test "x$host_vendor" = xsequent; then
  33300. - # Use $CC to link under sequent, because it throws in some extra .o
  33301. - # files that make .init and .fini sections work.
  33302. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  33303. - else
  33304. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  33305. - fi
  33306. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33307. - hardcode_direct_GCJ=yes
  33308. - hardcode_minus_L_GCJ=yes
  33309. - hardcode_shlibpath_var_GCJ=no
  33310. - ;;
  33311. -
  33312. - sysv4)
  33313. - case $host_vendor in
  33314. - sni)
  33315. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33316. - hardcode_direct_GCJ=yes # is this really true???
  33317. - ;;
  33318. - siemens)
  33319. - ## LD is ld it makes a PLAMLIB
  33320. - ## CC just makes a GrossModule.
  33321. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  33322. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  33323. - hardcode_direct_GCJ=no
  33324. - ;;
  33325. - motorola)
  33326. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33327. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  33328. - ;;
  33329. - esac
  33330. - runpath_var='LD_RUN_PATH'
  33331. - hardcode_shlibpath_var_GCJ=no
  33332. - ;;
  33333. -
  33334. - sysv4.3*)
  33335. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33336. - hardcode_shlibpath_var_GCJ=no
  33337. - export_dynamic_flag_spec_GCJ='-Bexport'
  33338. - ;;
  33339. -
  33340. - sysv4*MP*)
  33341. - if test -d /usr/nec; then
  33342. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33343. - hardcode_shlibpath_var_GCJ=no
  33344. - runpath_var=LD_RUN_PATH
  33345. - hardcode_runpath_var=yes
  33346. - ld_shlibs_GCJ=yes
  33347. - fi
  33348. - ;;
  33349. -
  33350. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  33351. - no_undefined_flag_GCJ='${wl}-z,text'
  33352. - archive_cmds_need_lc_GCJ=no
  33353. - hardcode_shlibpath_var_GCJ=no
  33354. - runpath_var='LD_RUN_PATH'
  33355. -
  33356. - if test "$GCC" = yes; then
  33357. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33358. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33359. - else
  33360. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33361. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33362. - fi
  33363. - ;;
  33364. -
  33365. - sysv5* | sco3.2v5* | sco5v6*)
  33366. - # Note: We can NOT use -z defs as we might desire, because we do not
  33367. - # link with -lc, and that would cause any symbols used from libc to
  33368. - # always be unresolved, which means just about no library would
  33369. - # ever link correctly. If we're not using GNU ld we use -z text
  33370. - # though, which does catch some bad symbols but isn't as heavy-handed
  33371. - # as -z defs.
  33372. - no_undefined_flag_GCJ='${wl}-z,text'
  33373. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  33374. - archive_cmds_need_lc_GCJ=no
  33375. - hardcode_shlibpath_var_GCJ=no
  33376. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  33377. - hardcode_libdir_separator_GCJ=':'
  33378. - link_all_deplibs_GCJ=yes
  33379. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  33380. - runpath_var='LD_RUN_PATH'
  33381. -
  33382. - if test "$GCC" = yes; then
  33383. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33384. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33385. - else
  33386. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33387. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33388. - fi
  33389. - ;;
  33390. -
  33391. - uts4*)
  33392. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33393. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  33394. - hardcode_shlibpath_var_GCJ=no
  33395. - ;;
  33396. -
  33397. - *)
  33398. - ld_shlibs_GCJ=no
  33399. - ;;
  33400. - esac
  33401. - fi
  33402. -
  33403. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  33404. -$as_echo "$ld_shlibs_GCJ" >&6; }
  33405. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  33406. -
  33407. -#
  33408. -# Do we need to explicitly link libc?
  33409. -#
  33410. -case "x$archive_cmds_need_lc_GCJ" in
  33411. -x|xyes)
  33412. - # Assume -lc should be added
  33413. - archive_cmds_need_lc_GCJ=yes
  33414. -
  33415. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  33416. - case $archive_cmds_GCJ in
  33417. - *'~'*)
  33418. - # FIXME: we may have to deal with multi-command sequences.
  33419. - ;;
  33420. - '$CC '*)
  33421. - # Test whether the compiler implicitly links with -lc since on some
  33422. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  33423. - # to ld, don't add -lc before -lgcc.
  33424. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  33425. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  33426. - $rm conftest*
  33427. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33428. -
  33429. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33430. - (eval $ac_compile) 2>&5
  33431. - ac_status=$?
  33432. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33433. - (exit $ac_status); } 2>conftest.err; then
  33434. - soname=conftest
  33435. - lib=conftest
  33436. - libobjs=conftest.$ac_objext
  33437. - deplibs=
  33438. - wl=$lt_prog_compiler_wl_GCJ
  33439. - pic_flag=$lt_prog_compiler_pic_GCJ
  33440. - compiler_flags=-v
  33441. - linker_flags=-v
  33442. - verstring=
  33443. - output_objdir=.
  33444. - libname=conftest
  33445. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  33446. - allow_undefined_flag_GCJ=
  33447. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  33448. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33449. - ac_status=$?
  33450. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33451. - (exit $ac_status); }
  33452. - then
  33453. - archive_cmds_need_lc_GCJ=no
  33454. - else
  33455. - archive_cmds_need_lc_GCJ=yes
  33456. - fi
  33457. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  33458. - else
  33459. - cat conftest.err 1>&5
  33460. - fi
  33461. - $rm conftest*
  33462. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  33463. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  33464. - ;;
  33465. - esac
  33466. - fi
  33467. - ;;
  33468. -esac
  33469. -
  33470. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33471. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  33472. -library_names_spec=
  33473. -libname_spec='lib$name'
  33474. -soname_spec=
  33475. -shrext_cmds=".so"
  33476. -postinstall_cmds=
  33477. -postuninstall_cmds=
  33478. -finish_cmds=
  33479. -finish_eval=
  33480. -shlibpath_var=
  33481. -shlibpath_overrides_runpath=unknown
  33482. -version_type=none
  33483. -dynamic_linker="$host_os ld.so"
  33484. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33485. -
  33486. -need_lib_prefix=unknown
  33487. -hardcode_into_libs=no
  33488. -
  33489. -# when you set need_version to no, make sure it does not cause -set_version
  33490. -# flags to be left without arguments
  33491. -need_version=unknown
  33492. -
  33493. -case $host_os in
  33494. -aix3*)
  33495. - version_type=linux
  33496. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33497. - shlibpath_var=LIBPATH
  33498. -
  33499. - # AIX 3 has no versioning support, so we append a major version to the name.
  33500. - soname_spec='${libname}${release}${shared_ext}$major'
  33501. - ;;
  33502. -
  33503. -aix[4-9]*)
  33504. - version_type=linux
  33505. - need_lib_prefix=no
  33506. - need_version=no
  33507. - hardcode_into_libs=yes
  33508. - if test "$host_cpu" = ia64; then
  33509. - # AIX 5 supports IA64
  33510. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33511. - shlibpath_var=LD_LIBRARY_PATH
  33512. - else
  33513. - # With GCC up to 2.95.x, collect2 would create an import file
  33514. - # for dependence libraries. The import file would start with
  33515. - # the line `#! .'. This would cause the generated library to
  33516. - # depend on `.', always an invalid library. This was fixed in
  33517. - # development snapshots of GCC prior to 3.0.
  33518. - case $host_os in
  33519. - aix4 | aix4.[01] | aix4.[01].*)
  33520. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33521. - echo ' yes '
  33522. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33523. - :
  33524. - else
  33525. - can_build_shared=no
  33526. - fi
  33527. - ;;
  33528. - esac
  33529. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33530. - # soname into executable. Probably we can add versioning support to
  33531. - # collect2, so additional links can be useful in future.
  33532. - if test "$aix_use_runtimelinking" = yes; then
  33533. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33534. - # instead of lib<name>.a to let people know that these are not
  33535. - # typical AIX shared libraries.
  33536. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33537. - else
  33538. - # We preserve .a as extension for shared libraries through AIX4.2
  33539. - # and later when we are not doing run time linking.
  33540. - library_names_spec='${libname}${release}.a $libname.a'
  33541. - soname_spec='${libname}${release}${shared_ext}$major'
  33542. - fi
  33543. - shlibpath_var=LIBPATH
  33544. - fi
  33545. - ;;
  33546. -
  33547. -amigaos*)
  33548. - library_names_spec='$libname.ixlibrary $libname.a'
  33549. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33550. - 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'
  33551. - ;;
  33552. -
  33553. -beos*)
  33554. - library_names_spec='${libname}${shared_ext}'
  33555. - dynamic_linker="$host_os ld.so"
  33556. - shlibpath_var=LIBRARY_PATH
  33557. - ;;
  33558. -
  33559. -bsdi[45]*)
  33560. - version_type=linux
  33561. - need_version=no
  33562. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33563. - soname_spec='${libname}${release}${shared_ext}$major'
  33564. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  33565. - shlibpath_var=LD_LIBRARY_PATH
  33566. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  33567. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  33568. - # the default ld.so.conf also contains /usr/contrib/lib and
  33569. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  33570. - # libtool to hard-code these into programs
  33571. - ;;
  33572. -
  33573. -cygwin* | mingw* | pw32*)
  33574. - version_type=windows
  33575. - shrext_cmds=".dll"
  33576. - need_version=no
  33577. - need_lib_prefix=no
  33578. -
  33579. - case $GCC,$host_os in
  33580. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33581. - library_names_spec='$libname.dll.a'
  33582. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33583. - postinstall_cmds='base_file=`basename \${file}`~
  33584. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33585. - dldir=$destdir/`dirname \$dlpath`~
  33586. - test -d \$dldir || mkdir -p \$dldir~
  33587. - $install_prog $dir/$dlname \$dldir/$dlname~
  33588. - chmod a+x \$dldir/$dlname'
  33589. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33590. - dlpath=$dir/\$dldll~
  33591. - $rm \$dlpath'
  33592. - shlibpath_overrides_runpath=yes
  33593. -
  33594. - case $host_os in
  33595. - cygwin*)
  33596. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  33597. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33598. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33599. - ;;
  33600. - mingw*)
  33601. - # MinGW DLLs use traditional 'lib' prefix
  33602. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33603. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33604. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33605. - # It is most probably a Windows format PATH printed by
  33606. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33607. - # path with ; separators, and with drive letters. We can handle the
  33608. - # drive letters (cygwin fileutils understands them), so leave them,
  33609. - # especially as we might pass files found there to a mingw objdump,
  33610. - # which wouldn't understand a cygwinified path. Ahh.
  33611. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33612. - else
  33613. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33614. - fi
  33615. - ;;
  33616. - pw32*)
  33617. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  33618. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33619. + pw32*)
  33620. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  33621. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33622. ;;
  33623. esac
  33624. ;;
  33625. @@ -18752,12 +9398,13 @@
  33626. version_type=darwin
  33627. need_lib_prefix=no
  33628. need_version=no
  33629. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33630. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33631. soname_spec='${libname}${release}${major}$shared_ext'
  33632. shlibpath_overrides_runpath=yes
  33633. shlibpath_var=DYLD_LIBRARY_PATH
  33634. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  33635. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  33636. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33637. ;;
  33638. @@ -18850,18 +9497,18 @@
  33639. fi
  33640. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33641. ;;
  33642. - hppa*64*)
  33643. - shrext_cmds='.sl'
  33644. - hardcode_into_libs=yes
  33645. - dynamic_linker="$host_os dld.sl"
  33646. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33647. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33648. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33649. - soname_spec='${libname}${release}${shared_ext}$major'
  33650. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33651. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33652. - ;;
  33653. - *)
  33654. + hppa*64*)
  33655. + shrext_cmds='.sl'
  33656. + hardcode_into_libs=yes
  33657. + dynamic_linker="$host_os dld.sl"
  33658. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33659. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33660. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33661. + soname_spec='${libname}${release}${shared_ext}$major'
  33662. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33663. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33664. + ;;
  33665. + *)
  33666. shrext_cmds='.sl'
  33667. dynamic_linker="$host_os dld.sl"
  33668. shlibpath_var=SHLIB_PATH
  33669. @@ -18929,7 +9576,7 @@
  33670. ;;
  33671. # This must be Linux ELF.
  33672. -linux* | k*bsd*-gnu)
  33673. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33674. version_type=linux
  33675. need_lib_prefix=no
  33676. need_version=no
  33677. @@ -18938,17 +9585,41 @@
  33678. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33679. shlibpath_var=LD_LIBRARY_PATH
  33680. shlibpath_overrides_runpath=no
  33681. + # Some binutils ld are patched to set DT_RUNPATH
  33682. + save_LDFLAGS=$LDFLAGS
  33683. + save_libdir=$libdir
  33684. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  33685. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  33686. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33687. +/* end confdefs.h. */
  33688. +
  33689. +int
  33690. +main ()
  33691. +{
  33692. +
  33693. + ;
  33694. + return 0;
  33695. +}
  33696. +_ACEOF
  33697. +if ac_fn_c_try_link "$LINENO"; then :
  33698. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  33699. + shlibpath_overrides_runpath=yes
  33700. +fi
  33701. +fi
  33702. +rm -f core conftest.err conftest.$ac_objext \
  33703. + conftest$ac_exeext conftest.$ac_ext
  33704. + LDFLAGS=$save_LDFLAGS
  33705. + libdir=$save_libdir
  33706. +
  33707. # This implies no fast_install, which is unacceptable.
  33708. # Some rework will be needed to allow for fast_install
  33709. # before this can be enabled.
  33710. hardcode_into_libs=yes
  33711. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33712. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33713. # Append ld.so.conf contents to the search path
  33714. if test -f /etc/ld.so.conf; then
  33715. - 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' ' '`
  33716. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  33717. + 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' ' '`
  33718. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  33719. fi
  33720. # We used to test for /lib/ld.so.1 and disable shared libraries on
  33721. @@ -18960,11 +9631,23 @@
  33722. dynamic_linker='GNU/Linux ld.so'
  33723. ;;
  33724. +netbsdelf*-gnu)
  33725. + version_type=linux
  33726. + need_lib_prefix=no
  33727. + need_version=no
  33728. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33729. + soname_spec='${libname}${release}${shared_ext}$major'
  33730. + shlibpath_var=LD_LIBRARY_PATH
  33731. + shlibpath_overrides_runpath=no
  33732. + hardcode_into_libs=yes
  33733. + dynamic_linker='NetBSD ld.elf_so'
  33734. + ;;
  33735. +
  33736. netbsd*)
  33737. version_type=sunos
  33738. need_lib_prefix=no
  33739. need_version=no
  33740. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33741. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  33742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33743. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33744. dynamic_linker='NetBSD (a.out) ld.so'
  33745. @@ -18985,14 +9668,16 @@
  33746. shlibpath_overrides_runpath=yes
  33747. ;;
  33748. -nto-qnx*)
  33749. - version_type=linux
  33750. +*nto* | *qnx*)
  33751. + version_type=qnx
  33752. need_lib_prefix=no
  33753. need_version=no
  33754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33755. soname_spec='${libname}${release}${shared_ext}$major'
  33756. shlibpath_var=LD_LIBRARY_PATH
  33757. - shlibpath_overrides_runpath=yes
  33758. + shlibpath_overrides_runpath=no
  33759. + hardcode_into_libs=yes
  33760. + dynamic_linker='ldqnx.so'
  33761. ;;
  33762. openbsd*)
  33763. @@ -19001,13 +9686,13 @@
  33764. need_lib_prefix=no
  33765. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  33766. case $host_os in
  33767. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33768. - *) need_version=no ;;
  33769. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  33770. + *) need_version=no ;;
  33771. esac
  33772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33773. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33774. shlibpath_var=LD_LIBRARY_PATH
  33775. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33776. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33777. case $host_os in
  33778. openbsd2.[89] | openbsd2.[89].*)
  33779. shlibpath_overrides_runpath=no
  33780. @@ -19079,7 +9764,6 @@
  33781. sni)
  33782. shlibpath_overrides_runpath=no
  33783. need_lib_prefix=no
  33784. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33785. runpath_var=LD_RUN_PATH
  33786. ;;
  33787. siemens)
  33788. @@ -19110,13 +9794,12 @@
  33789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33790. soname_spec='${libname}${release}${shared_ext}$major'
  33791. shlibpath_var=LD_LIBRARY_PATH
  33792. + shlibpath_overrides_runpath=yes
  33793. hardcode_into_libs=yes
  33794. if test "$with_gnu_ld" = yes; then
  33795. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  33796. - shlibpath_overrides_runpath=no
  33797. else
  33798. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  33799. - shlibpath_overrides_runpath=yes
  33800. case $host_os in
  33801. sco3.2v5*)
  33802. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  33803. @@ -19126,70 +9809,160 @@
  33804. sys_lib_dlsearch_path_spec='/usr/lib'
  33805. ;;
  33806. -uts4*)
  33807. - version_type=linux
  33808. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33809. - soname_spec='${libname}${release}${shared_ext}$major'
  33810. - shlibpath_var=LD_LIBRARY_PATH
  33811. - ;;
  33812. +tpf*)
  33813. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  33814. + version_type=linux
  33815. + need_lib_prefix=no
  33816. + need_version=no
  33817. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33818. + shlibpath_var=LD_LIBRARY_PATH
  33819. + shlibpath_overrides_runpath=no
  33820. + hardcode_into_libs=yes
  33821. + ;;
  33822. +
  33823. +uts4*)
  33824. + version_type=linux
  33825. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33826. + soname_spec='${libname}${release}${shared_ext}$major'
  33827. + shlibpath_var=LD_LIBRARY_PATH
  33828. + ;;
  33829. +
  33830. +*)
  33831. + dynamic_linker=no
  33832. + ;;
  33833. +esac
  33834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  33835. +$as_echo "$dynamic_linker" >&6; }
  33836. +test "$dynamic_linker" = no && can_build_shared=no
  33837. +
  33838. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33839. +if test "$GCC" = yes; then
  33840. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33841. +fi
  33842. +
  33843. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33844. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33845. +fi
  33846. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  33847. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33848. +fi
  33849. +
  33850. +
  33851. +
  33852. +
  33853. +
  33854. +
  33855. +
  33856. +
  33857. +
  33858. +
  33859. +
  33860. +
  33861. +
  33862. +
  33863. +
  33864. +
  33865. +
  33866. +
  33867. +
  33868. +
  33869. +
  33870. +
  33871. +
  33872. +
  33873. +
  33874. +
  33875. +
  33876. +
  33877. +
  33878. +
  33879. +
  33880. +
  33881. +
  33882. +
  33883. +
  33884. +
  33885. +
  33886. +
  33887. +
  33888. +
  33889. +
  33890. +
  33891. +
  33892. +
  33893. +
  33894. +
  33895. +
  33896. +
  33897. +
  33898. +
  33899. +
  33900. +
  33901. +
  33902. +
  33903. +
  33904. +
  33905. +
  33906. +
  33907. +
  33908. +
  33909. +
  33910. +
  33911. +
  33912. +
  33913. +
  33914. +
  33915. +
  33916. +
  33917. +
  33918. +
  33919. +
  33920. +
  33921. +
  33922. +
  33923. +
  33924. +
  33925. -*)
  33926. - dynamic_linker=no
  33927. - ;;
  33928. -esac
  33929. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33930. -$as_echo "$dynamic_linker" >&6; }
  33931. -test "$dynamic_linker" = no && can_build_shared=no
  33932. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  33933. - $as_echo_n "(cached) " >&6
  33934. -else
  33935. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  33936. -fi
  33937. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  33938. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  33939. - $as_echo_n "(cached) " >&6
  33940. -else
  33941. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  33942. -fi
  33943. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  33944. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33945. -if test "$GCC" = yes; then
  33946. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33947. -fi
  33948. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33949. +
  33950. +
  33951. +
  33952. +
  33953. +
  33954. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  33955. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  33956. -hardcode_action_GCJ=
  33957. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  33958. - test -n "$runpath_var_GCJ" || \
  33959. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  33960. +hardcode_action=
  33961. +if test -n "$hardcode_libdir_flag_spec" ||
  33962. + test -n "$runpath_var" ||
  33963. + test "X$hardcode_automatic" = "Xyes" ; then
  33964. - # We can hardcode non-existant directories.
  33965. - if test "$hardcode_direct_GCJ" != no &&
  33966. + # We can hardcode non-existent directories.
  33967. + if test "$hardcode_direct" != no &&
  33968. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33969. # have to relink, otherwise we might link with an installed library
  33970. # when we should be linking with a yet-to-be-installed one
  33971. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  33972. - test "$hardcode_minus_L_GCJ" != no; then
  33973. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  33974. + test "$hardcode_minus_L" != no; then
  33975. # Linking always hardcodes the temporary library directory.
  33976. - hardcode_action_GCJ=relink
  33977. + hardcode_action=relink
  33978. else
  33979. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33980. - hardcode_action_GCJ=immediate
  33981. + hardcode_action=immediate
  33982. fi
  33983. else
  33984. # We cannot hardcode anything, or else we can only hardcode existing
  33985. # directories.
  33986. - hardcode_action_GCJ=unsupported
  33987. + hardcode_action=unsupported
  33988. fi
  33989. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  33990. -$as_echo "$hardcode_action_GCJ" >&6; }
  33991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  33992. +$as_echo "$hardcode_action" >&6; }
  33993. -if test "$hardcode_action_GCJ" = relink; then
  33994. +if test "$hardcode_action" = relink ||
  33995. + test "$inherit_rpath" = yes; then
  33996. # Fast installation is not supported
  33997. enable_fast_install=no
  33998. elif test "$shlibpath_overrides_runpath" = yes ||
  33999. @@ -19199,2904 +9972,3177 @@
  34000. fi
  34001. -# The else clause should only fire when bootstrapping the
  34002. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34003. -# with your package, and you will get complaints that there are
  34004. -# no rules to generate ltmain.sh.
  34005. -if test -f "$ltmain"; then
  34006. - # See if we are running on zsh, and set the options which allow our commands through
  34007. - # without removal of \ escapes.
  34008. - if test -n "${ZSH_VERSION+set}" ; then
  34009. - setopt NO_GLOB_SUBST
  34010. - fi
  34011. - # Now quote all the things that may contain metacharacters while being
  34012. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34013. - # variables and quote the copies for generation of the libtool script.
  34014. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34015. - SED SHELL STRIP \
  34016. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34017. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34018. - deplibs_check_method reload_flag reload_cmds need_locks \
  34019. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34020. - lt_cv_sys_global_symbol_to_c_name_address \
  34021. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34022. - old_postinstall_cmds old_postuninstall_cmds \
  34023. - compiler_GCJ \
  34024. - CC_GCJ \
  34025. - LD_GCJ \
  34026. - lt_prog_compiler_wl_GCJ \
  34027. - lt_prog_compiler_pic_GCJ \
  34028. - lt_prog_compiler_static_GCJ \
  34029. - lt_prog_compiler_no_builtin_flag_GCJ \
  34030. - export_dynamic_flag_spec_GCJ \
  34031. - thread_safe_flag_spec_GCJ \
  34032. - whole_archive_flag_spec_GCJ \
  34033. - enable_shared_with_static_runtimes_GCJ \
  34034. - old_archive_cmds_GCJ \
  34035. - old_archive_from_new_cmds_GCJ \
  34036. - predep_objects_GCJ \
  34037. - postdep_objects_GCJ \
  34038. - predeps_GCJ \
  34039. - postdeps_GCJ \
  34040. - compiler_lib_search_path_GCJ \
  34041. - compiler_lib_search_dirs_GCJ \
  34042. - archive_cmds_GCJ \
  34043. - archive_expsym_cmds_GCJ \
  34044. - postinstall_cmds_GCJ \
  34045. - postuninstall_cmds_GCJ \
  34046. - old_archive_from_expsyms_cmds_GCJ \
  34047. - allow_undefined_flag_GCJ \
  34048. - no_undefined_flag_GCJ \
  34049. - export_symbols_cmds_GCJ \
  34050. - hardcode_libdir_flag_spec_GCJ \
  34051. - hardcode_libdir_flag_spec_ld_GCJ \
  34052. - hardcode_libdir_separator_GCJ \
  34053. - hardcode_automatic_GCJ \
  34054. - module_cmds_GCJ \
  34055. - module_expsym_cmds_GCJ \
  34056. - lt_cv_prog_compiler_c_o_GCJ \
  34057. - fix_srcfile_path_GCJ \
  34058. - exclude_expsyms_GCJ \
  34059. - include_expsyms_GCJ; do
  34060. -
  34061. - case $var in
  34062. - old_archive_cmds_GCJ | \
  34063. - old_archive_from_new_cmds_GCJ | \
  34064. - archive_cmds_GCJ | \
  34065. - archive_expsym_cmds_GCJ | \
  34066. - module_cmds_GCJ | \
  34067. - module_expsym_cmds_GCJ | \
  34068. - old_archive_from_expsyms_cmds_GCJ | \
  34069. - export_symbols_cmds_GCJ | \
  34070. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34071. - postinstall_cmds | postuninstall_cmds | \
  34072. - old_postinstall_cmds | old_postuninstall_cmds | \
  34073. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34074. - # Double-quote double-evaled strings.
  34075. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34076. - ;;
  34077. - *)
  34078. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34079. - ;;
  34080. - esac
  34081. - done
  34082. -
  34083. - case $lt_echo in
  34084. - *'\$0 --fallback-echo"')
  34085. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34086. - ;;
  34087. - esac
  34088. -
  34089. -cfgfile="$ofile"
  34090. -
  34091. - cat <<__EOF__ >> "$cfgfile"
  34092. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34093. -
  34094. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34095. -
  34096. -# Shell to use when invoking shell scripts.
  34097. -SHELL=$lt_SHELL
  34098. -
  34099. -# Whether or not to build shared libraries.
  34100. -build_libtool_libs=$enable_shared
  34101. -
  34102. -# Whether or not to build static libraries.
  34103. -build_old_libs=$enable_static
  34104. -
  34105. -# Whether or not to add -lc for building shared libraries.
  34106. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  34107. -
  34108. -# Whether or not to disallow shared libs when runtime libs are static
  34109. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  34110. -
  34111. -# Whether or not to optimize for fast installation.
  34112. -fast_install=$enable_fast_install
  34113. -
  34114. -# The host system.
  34115. -host_alias=$host_alias
  34116. -host=$host
  34117. -host_os=$host_os
  34118. -
  34119. -# The build system.
  34120. -build_alias=$build_alias
  34121. -build=$build
  34122. -build_os=$build_os
  34123. -
  34124. -# An echo program that does not interpret backslashes.
  34125. -echo=$lt_echo
  34126. -
  34127. -# The archiver.
  34128. -AR=$lt_AR
  34129. -AR_FLAGS=$lt_AR_FLAGS
  34130. -
  34131. -# A C compiler.
  34132. -LTCC=$lt_LTCC
  34133. -
  34134. -# LTCC compiler flags.
  34135. -LTCFLAGS=$lt_LTCFLAGS
  34136. -
  34137. -# A language-specific compiler.
  34138. -CC=$lt_compiler_GCJ
  34139. -# Is the compiler the GNU C compiler?
  34140. -with_gcc=$GCC_GCJ
  34141. -# An ERE matcher.
  34142. -EGREP=$lt_EGREP
  34143. -# The linker used to build libraries.
  34144. -LD=$lt_LD_GCJ
  34145. -# Whether we need hard or soft links.
  34146. -LN_S=$lt_LN_S
  34147. + if test "x$enable_dlopen" != xyes; then
  34148. + enable_dlopen=unknown
  34149. + enable_dlopen_self=unknown
  34150. + enable_dlopen_self_static=unknown
  34151. +else
  34152. + lt_cv_dlopen=no
  34153. + lt_cv_dlopen_libs=
  34154. -# A BSD-compatible nm program.
  34155. -NM=$lt_NM
  34156. + case $host_os in
  34157. + beos*)
  34158. + lt_cv_dlopen="load_add_on"
  34159. + lt_cv_dlopen_libs=
  34160. + lt_cv_dlopen_self=yes
  34161. + ;;
  34162. -# A symbol stripping program
  34163. -STRIP=$lt_STRIP
  34164. + mingw* | pw32* | cegcc*)
  34165. + lt_cv_dlopen="LoadLibrary"
  34166. + lt_cv_dlopen_libs=
  34167. + ;;
  34168. -# Used to examine libraries when file_magic_cmd begins "file"
  34169. -MAGIC_CMD=$MAGIC_CMD
  34170. + cygwin*)
  34171. + lt_cv_dlopen="dlopen"
  34172. + lt_cv_dlopen_libs=
  34173. + ;;
  34174. -# Used on cygwin: DLL creation program.
  34175. -DLLTOOL="$DLLTOOL"
  34176. + darwin*)
  34177. + # if libdl is installed we need to link against it
  34178. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  34179. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  34180. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  34181. + $as_echo_n "(cached) " >&6
  34182. +else
  34183. + ac_check_lib_save_LIBS=$LIBS
  34184. +LIBS="-ldl $LIBS"
  34185. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34186. +/* end confdefs.h. */
  34187. -# Used on cygwin: object dumper.
  34188. -OBJDUMP="$OBJDUMP"
  34189. +/* Override any GCC internal prototype to avoid an error.
  34190. + Use char because int might match the return type of a GCC
  34191. + builtin and then its argument prototype would still apply. */
  34192. +#ifdef __cplusplus
  34193. +extern "C"
  34194. +#endif
  34195. +char dlopen ();
  34196. +int
  34197. +main ()
  34198. +{
  34199. +return dlopen ();
  34200. + ;
  34201. + return 0;
  34202. +}
  34203. +_ACEOF
  34204. +if ac_fn_c_try_link "$LINENO"; then :
  34205. + ac_cv_lib_dl_dlopen=yes
  34206. +else
  34207. + ac_cv_lib_dl_dlopen=no
  34208. +fi
  34209. +rm -f core conftest.err conftest.$ac_objext \
  34210. + conftest$ac_exeext conftest.$ac_ext
  34211. +LIBS=$ac_check_lib_save_LIBS
  34212. +fi
  34213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  34214. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  34215. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  34216. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34217. +else
  34218. -# Used on cygwin: assembler.
  34219. -AS="$AS"
  34220. + lt_cv_dlopen="dyld"
  34221. + lt_cv_dlopen_libs=
  34222. + lt_cv_dlopen_self=yes
  34223. -# The name of the directory that contains temporary libtool files.
  34224. -objdir=$objdir
  34225. +fi
  34226. -# How to create reloadable object files.
  34227. -reload_flag=$lt_reload_flag
  34228. -reload_cmds=$lt_reload_cmds
  34229. + ;;
  34230. -# How to pass a linker flag through the compiler.
  34231. -wl=$lt_lt_prog_compiler_wl_GCJ
  34232. + *)
  34233. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  34234. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  34235. + lt_cv_dlopen="shl_load"
  34236. +else
  34237. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  34238. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  34239. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  34240. + $as_echo_n "(cached) " >&6
  34241. +else
  34242. + ac_check_lib_save_LIBS=$LIBS
  34243. +LIBS="-ldld $LIBS"
  34244. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34245. +/* end confdefs.h. */
  34246. -# Object file suffix (normally "o").
  34247. -objext="$ac_objext"
  34248. +/* Override any GCC internal prototype to avoid an error.
  34249. + Use char because int might match the return type of a GCC
  34250. + builtin and then its argument prototype would still apply. */
  34251. +#ifdef __cplusplus
  34252. +extern "C"
  34253. +#endif
  34254. +char shl_load ();
  34255. +int
  34256. +main ()
  34257. +{
  34258. +return shl_load ();
  34259. + ;
  34260. + return 0;
  34261. +}
  34262. +_ACEOF
  34263. +if ac_fn_c_try_link "$LINENO"; then :
  34264. + ac_cv_lib_dld_shl_load=yes
  34265. +else
  34266. + ac_cv_lib_dld_shl_load=no
  34267. +fi
  34268. +rm -f core conftest.err conftest.$ac_objext \
  34269. + conftest$ac_exeext conftest.$ac_ext
  34270. +LIBS=$ac_check_lib_save_LIBS
  34271. +fi
  34272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  34273. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  34274. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  34275. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  34276. +else
  34277. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  34278. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  34279. + lt_cv_dlopen="dlopen"
  34280. +else
  34281. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  34282. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  34283. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  34284. + $as_echo_n "(cached) " >&6
  34285. +else
  34286. + ac_check_lib_save_LIBS=$LIBS
  34287. +LIBS="-ldl $LIBS"
  34288. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34289. +/* end confdefs.h. */
  34290. -# Old archive suffix (normally "a").
  34291. -libext="$libext"
  34292. +/* Override any GCC internal prototype to avoid an error.
  34293. + Use char because int might match the return type of a GCC
  34294. + builtin and then its argument prototype would still apply. */
  34295. +#ifdef __cplusplus
  34296. +extern "C"
  34297. +#endif
  34298. +char dlopen ();
  34299. +int
  34300. +main ()
  34301. +{
  34302. +return dlopen ();
  34303. + ;
  34304. + return 0;
  34305. +}
  34306. +_ACEOF
  34307. +if ac_fn_c_try_link "$LINENO"; then :
  34308. + ac_cv_lib_dl_dlopen=yes
  34309. +else
  34310. + ac_cv_lib_dl_dlopen=no
  34311. +fi
  34312. +rm -f core conftest.err conftest.$ac_objext \
  34313. + conftest$ac_exeext conftest.$ac_ext
  34314. +LIBS=$ac_check_lib_save_LIBS
  34315. +fi
  34316. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  34317. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  34318. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  34319. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34320. +else
  34321. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  34322. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  34323. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  34324. + $as_echo_n "(cached) " >&6
  34325. +else
  34326. + ac_check_lib_save_LIBS=$LIBS
  34327. +LIBS="-lsvld $LIBS"
  34328. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34329. +/* end confdefs.h. */
  34330. -# Shared library suffix (normally ".so").
  34331. -shrext_cmds='$shrext_cmds'
  34332. +/* Override any GCC internal prototype to avoid an error.
  34333. + Use char because int might match the return type of a GCC
  34334. + builtin and then its argument prototype would still apply. */
  34335. +#ifdef __cplusplus
  34336. +extern "C"
  34337. +#endif
  34338. +char dlopen ();
  34339. +int
  34340. +main ()
  34341. +{
  34342. +return dlopen ();
  34343. + ;
  34344. + return 0;
  34345. +}
  34346. +_ACEOF
  34347. +if ac_fn_c_try_link "$LINENO"; then :
  34348. + ac_cv_lib_svld_dlopen=yes
  34349. +else
  34350. + ac_cv_lib_svld_dlopen=no
  34351. +fi
  34352. +rm -f core conftest.err conftest.$ac_objext \
  34353. + conftest$ac_exeext conftest.$ac_ext
  34354. +LIBS=$ac_check_lib_save_LIBS
  34355. +fi
  34356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  34357. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  34358. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  34359. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  34360. +else
  34361. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  34362. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  34363. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  34364. + $as_echo_n "(cached) " >&6
  34365. +else
  34366. + ac_check_lib_save_LIBS=$LIBS
  34367. +LIBS="-ldld $LIBS"
  34368. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34369. +/* end confdefs.h. */
  34370. -# Executable file suffix (normally "").
  34371. -exeext="$exeext"
  34372. +/* Override any GCC internal prototype to avoid an error.
  34373. + Use char because int might match the return type of a GCC
  34374. + builtin and then its argument prototype would still apply. */
  34375. +#ifdef __cplusplus
  34376. +extern "C"
  34377. +#endif
  34378. +char dld_link ();
  34379. +int
  34380. +main ()
  34381. +{
  34382. +return dld_link ();
  34383. + ;
  34384. + return 0;
  34385. +}
  34386. +_ACEOF
  34387. +if ac_fn_c_try_link "$LINENO"; then :
  34388. + ac_cv_lib_dld_dld_link=yes
  34389. +else
  34390. + ac_cv_lib_dld_dld_link=no
  34391. +fi
  34392. +rm -f core conftest.err conftest.$ac_objext \
  34393. + conftest$ac_exeext conftest.$ac_ext
  34394. +LIBS=$ac_check_lib_save_LIBS
  34395. +fi
  34396. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  34397. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  34398. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  34399. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  34400. +fi
  34401. -# Additional compiler flags for building library objects.
  34402. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  34403. -pic_mode=$pic_mode
  34404. -# What is the maximum length of a command?
  34405. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34406. +fi
  34407. -# Does compiler simultaneously support -c and -o options?
  34408. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  34409. -# Must we lock files when doing compilation?
  34410. -need_locks=$lt_need_locks
  34411. +fi
  34412. -# Do we need the lib prefix for modules?
  34413. -need_lib_prefix=$need_lib_prefix
  34414. -# Do we need a version for libraries?
  34415. -need_version=$need_version
  34416. +fi
  34417. -# Whether dlopen is supported.
  34418. -dlopen_support=$enable_dlopen
  34419. -# Whether dlopen of programs is supported.
  34420. -dlopen_self=$enable_dlopen_self
  34421. +fi
  34422. -# Whether dlopen of statically linked programs is supported.
  34423. -dlopen_self_static=$enable_dlopen_self_static
  34424. -# Compiler flag to prevent dynamic linking.
  34425. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  34426. +fi
  34427. -# Compiler flag to turn off builtin functions.
  34428. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  34429. + ;;
  34430. + esac
  34431. -# Compiler flag to allow reflexive dlopens.
  34432. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  34433. + if test "x$lt_cv_dlopen" != xno; then
  34434. + enable_dlopen=yes
  34435. + else
  34436. + enable_dlopen=no
  34437. + fi
  34438. -# Compiler flag to generate shared objects directly from archives.
  34439. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  34440. + case $lt_cv_dlopen in
  34441. + dlopen)
  34442. + save_CPPFLAGS="$CPPFLAGS"
  34443. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  34444. -# Compiler flag to generate thread-safe objects.
  34445. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  34446. + save_LDFLAGS="$LDFLAGS"
  34447. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  34448. -# Library versioning type.
  34449. -version_type=$version_type
  34450. + save_LIBS="$LIBS"
  34451. + LIBS="$lt_cv_dlopen_libs $LIBS"
  34452. -# Format of library name prefix.
  34453. -libname_spec=$lt_libname_spec
  34454. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  34455. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  34456. +if test "${lt_cv_dlopen_self+set}" = set; then :
  34457. + $as_echo_n "(cached) " >&6
  34458. +else
  34459. + if test "$cross_compiling" = yes; then :
  34460. + lt_cv_dlopen_self=cross
  34461. +else
  34462. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34463. + lt_status=$lt_dlunknown
  34464. + cat > conftest.$ac_ext <<_LT_EOF
  34465. +#line 10266 "configure"
  34466. +#include "confdefs.h"
  34467. -# List of archive names. First name is the real one, the rest are links.
  34468. -# The last name is the one that the linker finds with -lNAME.
  34469. -library_names_spec=$lt_library_names_spec
  34470. +#if HAVE_DLFCN_H
  34471. +#include <dlfcn.h>
  34472. +#endif
  34473. -# The coded name of the library, if different from the real name.
  34474. -soname_spec=$lt_soname_spec
  34475. +#include <stdio.h>
  34476. -# Commands used to build and install an old-style archive.
  34477. -RANLIB=$lt_RANLIB
  34478. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  34479. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34480. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34481. +#ifdef RTLD_GLOBAL
  34482. +# define LT_DLGLOBAL RTLD_GLOBAL
  34483. +#else
  34484. +# ifdef DL_GLOBAL
  34485. +# define LT_DLGLOBAL DL_GLOBAL
  34486. +# else
  34487. +# define LT_DLGLOBAL 0
  34488. +# endif
  34489. +#endif
  34490. -# Create an old-style archive from a shared archive.
  34491. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  34492. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34493. + find out it does not work in some platform. */
  34494. +#ifndef LT_DLLAZY_OR_NOW
  34495. +# ifdef RTLD_LAZY
  34496. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34497. +# else
  34498. +# ifdef DL_LAZY
  34499. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34500. +# else
  34501. +# ifdef RTLD_NOW
  34502. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34503. +# else
  34504. +# ifdef DL_NOW
  34505. +# define LT_DLLAZY_OR_NOW DL_NOW
  34506. +# else
  34507. +# define LT_DLLAZY_OR_NOW 0
  34508. +# endif
  34509. +# endif
  34510. +# endif
  34511. +# endif
  34512. +#endif
  34513. -# Create a temporary old-style archive to link instead of a shared archive.
  34514. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  34515. +void fnord() { int i=42;}
  34516. +int main ()
  34517. +{
  34518. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34519. + int status = $lt_dlunknown;
  34520. -# Commands used to build and install a shared archive.
  34521. -archive_cmds=$lt_archive_cmds_GCJ
  34522. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  34523. -postinstall_cmds=$lt_postinstall_cmds
  34524. -postuninstall_cmds=$lt_postuninstall_cmds
  34525. + if (self)
  34526. + {
  34527. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34528. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34529. + /* dlclose (self); */
  34530. + }
  34531. + else
  34532. + puts (dlerror ());
  34533. -# Commands used to build a loadable module (assumed same as above if empty)
  34534. -module_cmds=$lt_module_cmds_GCJ
  34535. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  34536. + return status;
  34537. +}
  34538. +_LT_EOF
  34539. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34540. + (eval $ac_link) 2>&5
  34541. + ac_status=$?
  34542. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34543. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34544. + (./conftest; exit; ) >&5 2>/dev/null
  34545. + lt_status=$?
  34546. + case x$lt_status in
  34547. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34548. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34549. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  34550. + esac
  34551. + else :
  34552. + # compilation failed
  34553. + lt_cv_dlopen_self=no
  34554. + fi
  34555. +fi
  34556. +rm -fr conftest*
  34557. -# Commands to strip libraries.
  34558. -old_striplib=$lt_old_striplib
  34559. -striplib=$lt_striplib
  34560. -# Dependencies to place before the objects being linked to create a
  34561. -# shared library.
  34562. -predep_objects=$lt_predep_objects_GCJ
  34563. -
  34564. -# Dependencies to place after the objects being linked to create a
  34565. -# shared library.
  34566. -postdep_objects=$lt_postdep_objects_GCJ
  34567. -
  34568. -# Dependencies to place before the objects being linked to create a
  34569. -# shared library.
  34570. -predeps=$lt_predeps_GCJ
  34571. -
  34572. -# Dependencies to place after the objects being linked to create a
  34573. -# shared library.
  34574. -postdeps=$lt_postdeps_GCJ
  34575. -
  34576. -# The directories searched by this compiler when creating a shared
  34577. -# library
  34578. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  34579. -
  34580. -# The library search path used internally by the compiler when linking
  34581. -# a shared library.
  34582. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  34583. +fi
  34584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  34585. +$as_echo "$lt_cv_dlopen_self" >&6; }
  34586. -# Method to check whether dependent libraries are shared objects.
  34587. -deplibs_check_method=$lt_deplibs_check_method
  34588. + if test "x$lt_cv_dlopen_self" = xyes; then
  34589. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  34590. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  34591. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  34592. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  34593. + $as_echo_n "(cached) " >&6
  34594. +else
  34595. + if test "$cross_compiling" = yes; then :
  34596. + lt_cv_dlopen_self_static=cross
  34597. +else
  34598. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34599. + lt_status=$lt_dlunknown
  34600. + cat > conftest.$ac_ext <<_LT_EOF
  34601. +#line 10362 "configure"
  34602. +#include "confdefs.h"
  34603. -# Command to use when deplibs_check_method == file_magic.
  34604. -file_magic_cmd=$lt_file_magic_cmd
  34605. +#if HAVE_DLFCN_H
  34606. +#include <dlfcn.h>
  34607. +#endif
  34608. -# Flag that allows shared libraries with undefined symbols to be built.
  34609. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  34610. +#include <stdio.h>
  34611. -# Flag that forces no undefined symbols.
  34612. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  34613. +#ifdef RTLD_GLOBAL
  34614. +# define LT_DLGLOBAL RTLD_GLOBAL
  34615. +#else
  34616. +# ifdef DL_GLOBAL
  34617. +# define LT_DLGLOBAL DL_GLOBAL
  34618. +# else
  34619. +# define LT_DLGLOBAL 0
  34620. +# endif
  34621. +#endif
  34622. -# Commands used to finish a libtool library installation in a directory.
  34623. -finish_cmds=$lt_finish_cmds
  34624. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34625. + find out it does not work in some platform. */
  34626. +#ifndef LT_DLLAZY_OR_NOW
  34627. +# ifdef RTLD_LAZY
  34628. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34629. +# else
  34630. +# ifdef DL_LAZY
  34631. +# define LT_DLLAZY_OR_NOW DL_LAZY
  34632. +# else
  34633. +# ifdef RTLD_NOW
  34634. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  34635. +# else
  34636. +# ifdef DL_NOW
  34637. +# define LT_DLLAZY_OR_NOW DL_NOW
  34638. +# else
  34639. +# define LT_DLLAZY_OR_NOW 0
  34640. +# endif
  34641. +# endif
  34642. +# endif
  34643. +# endif
  34644. +#endif
  34645. -# Same as above, but a single script fragment to be evaled but not shown.
  34646. -finish_eval=$lt_finish_eval
  34647. +void fnord() { int i=42;}
  34648. +int main ()
  34649. +{
  34650. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34651. + int status = $lt_dlunknown;
  34652. -# Take the output of nm and produce a listing of raw symbols and C names.
  34653. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34654. + if (self)
  34655. + {
  34656. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34657. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34658. + /* dlclose (self); */
  34659. + }
  34660. + else
  34661. + puts (dlerror ());
  34662. -# Transform the output of nm in a proper C declaration
  34663. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34664. + return status;
  34665. +}
  34666. +_LT_EOF
  34667. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  34668. + (eval $ac_link) 2>&5
  34669. + ac_status=$?
  34670. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34671. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  34672. + (./conftest; exit; ) >&5 2>/dev/null
  34673. + lt_status=$?
  34674. + case x$lt_status in
  34675. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34676. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34677. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  34678. + esac
  34679. + else :
  34680. + # compilation failed
  34681. + lt_cv_dlopen_self_static=no
  34682. + fi
  34683. +fi
  34684. +rm -fr conftest*
  34685. -# Transform the output of nm in a C name address pair
  34686. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34687. -# This is the shared library runtime path variable.
  34688. -runpath_var=$runpath_var
  34689. +fi
  34690. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  34691. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  34692. + fi
  34693. -# This is the shared library path variable.
  34694. -shlibpath_var=$shlibpath_var
  34695. + CPPFLAGS="$save_CPPFLAGS"
  34696. + LDFLAGS="$save_LDFLAGS"
  34697. + LIBS="$save_LIBS"
  34698. + ;;
  34699. + esac
  34700. -# Is shlibpath searched before the hard-coded library search path?
  34701. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34702. + case $lt_cv_dlopen_self in
  34703. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34704. + *) enable_dlopen_self=unknown ;;
  34705. + esac
  34706. -# How to hardcode a shared library path into an executable.
  34707. -hardcode_action=$hardcode_action_GCJ
  34708. + case $lt_cv_dlopen_self_static in
  34709. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34710. + *) enable_dlopen_self_static=unknown ;;
  34711. + esac
  34712. +fi
  34713. -# Whether we should hardcode library paths into libraries.
  34714. -hardcode_into_libs=$hardcode_into_libs
  34715. -# Flag to hardcode \$libdir into a binary during linking.
  34716. -# This must work even if \$libdir does not exist.
  34717. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  34718. -# If ld is used when linking, flag to hardcode \$libdir into
  34719. -# a binary during linking. This must work even if \$libdir does
  34720. -# not exist.
  34721. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  34722. -
  34723. -# Whether we need a single -rpath flag with a separated argument.
  34724. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  34725. -
  34726. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  34727. -# resulting binary.
  34728. -hardcode_direct=$hardcode_direct_GCJ
  34729. -
  34730. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  34731. -# resulting binary.
  34732. -hardcode_minus_L=$hardcode_minus_L_GCJ
  34733. -
  34734. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34735. -# the resulting binary.
  34736. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  34737. -
  34738. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34739. -# and all subsequent libraries and executables linked against it.
  34740. -hardcode_automatic=$hardcode_automatic_GCJ
  34741. -# Variables whose values should be saved in libtool wrapper scripts and
  34742. -# restored at relink time.
  34743. -variables_saved_for_relink="$variables_saved_for_relink"
  34744. -# Whether libtool must link a program against all its dependency libraries.
  34745. -link_all_deplibs=$link_all_deplibs_GCJ
  34746. -# Compile-time system search path for libraries
  34747. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34748. -# Run-time system search path for libraries
  34749. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34750. -# Fix the shell variable \$srcfile for the compiler.
  34751. -fix_srcfile_path=$lt_fix_srcfile_path
  34752. -# Set to yes if exported symbols are required.
  34753. -always_export_symbols=$always_export_symbols_GCJ
  34754. -# The commands to list exported symbols.
  34755. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  34756. -# The commands to extract the exported symbol list from a shared archive.
  34757. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34758. -# Symbols that should not be listed in the preloaded symbols.
  34759. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  34760. -# Symbols that must always be exported.
  34761. -include_expsyms=$lt_include_expsyms_GCJ
  34762. -# ### END LIBTOOL TAG CONFIG: $tagname
  34763. -__EOF__
  34764. +striplib=
  34765. +old_striplib=
  34766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  34767. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  34768. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  34769. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  34770. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  34771. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34772. +$as_echo "yes" >&6; }
  34773. else
  34774. - # If there is no Makefile yet, we rely on a make rule to execute
  34775. - # `config.status --recheck' to rerun these tests and create the
  34776. - # libtool script then.
  34777. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34778. - if test -f "$ltmain_in"; then
  34779. - test -f Makefile && make "$ltmain"
  34780. - fi
  34781. +# FIXME - insert some real tests, host_os isn't really good enough
  34782. + case $host_os in
  34783. + darwin*)
  34784. + if test -n "$STRIP" ; then
  34785. + striplib="$STRIP -x"
  34786. + old_striplib="$STRIP -S"
  34787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  34788. +$as_echo "yes" >&6; }
  34789. + else
  34790. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34791. +$as_echo "no" >&6; }
  34792. + fi
  34793. + ;;
  34794. + *)
  34795. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34796. +$as_echo "no" >&6; }
  34797. + ;;
  34798. + esac
  34799. fi
  34800. -ac_ext=c
  34801. -ac_cpp='$CPP $CPPFLAGS'
  34802. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34803. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34804. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34805. -CC="$lt_save_CC"
  34806. - else
  34807. - tagname=""
  34808. - fi
  34809. - ;;
  34810. - RC)
  34811. -# Source file extension for RC test sources.
  34812. -ac_ext=rc
  34813. -# Object file extension for compiled RC test sources.
  34814. -objext=o
  34815. -objext_RC=$objext
  34816. -# Code to be used in simple compile tests
  34817. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  34818. -# Code to be used in simple link tests
  34819. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  34820. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34821. -# If no C compiler was specified, use CC.
  34822. -LTCC=${LTCC-"$CC"}
  34823. + # Report which library types will actually be built
  34824. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  34825. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  34826. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  34827. +$as_echo "$can_build_shared" >&6; }
  34828. -# If no C compiler flags were specified, use CFLAGS.
  34829. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34830. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  34831. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  34832. + test "$can_build_shared" = "no" && enable_shared=no
  34833. -# Allow CC to be a program name with arguments.
  34834. -compiler=$CC
  34835. + # On AIX, shared libraries and static libraries use the same namespace, and
  34836. + # are all built from PIC.
  34837. + case $host_os in
  34838. + aix3*)
  34839. + test "$enable_shared" = yes && enable_static=no
  34840. + if test -n "$RANLIB"; then
  34841. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  34842. + postinstall_cmds='$RANLIB $lib'
  34843. + fi
  34844. + ;;
  34845. + aix[4-9]*)
  34846. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  34847. + test "$enable_shared" = yes && enable_static=no
  34848. + fi
  34849. + ;;
  34850. + esac
  34851. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  34852. +$as_echo "$enable_shared" >&6; }
  34853. -# save warnings/boilerplate of simple test code
  34854. -ac_outfile=conftest.$ac_objext
  34855. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  34856. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34857. -_lt_compiler_boilerplate=`cat conftest.err`
  34858. -$rm conftest*
  34859. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  34860. +$as_echo_n "checking whether to build static libraries... " >&6; }
  34861. + # Make sure either enable_shared or enable_static is yes.
  34862. + test "$enable_shared" = yes || enable_static=yes
  34863. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  34864. +$as_echo "$enable_static" >&6; }
  34865. -ac_outfile=conftest.$ac_objext
  34866. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  34867. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34868. -_lt_linker_boilerplate=`cat conftest.err`
  34869. -$rm -r conftest*
  34870. -# Allow CC to be a program name with arguments.
  34871. -lt_save_CC="$CC"
  34872. -CC=${RC-"windres"}
  34873. -compiler=$CC
  34874. -compiler_RC=$CC
  34875. -for cc_temp in $compiler""; do
  34876. - case $cc_temp in
  34877. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34878. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34879. - \-*) ;;
  34880. - *) break;;
  34881. - esac
  34882. -done
  34883. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34884. -lt_cv_prog_compiler_c_o_RC=yes
  34885. +fi
  34886. +ac_ext=c
  34887. +ac_cpp='$CPP $CPPFLAGS'
  34888. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34889. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34890. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34891. -# The else clause should only fire when bootstrapping the
  34892. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34893. -# with your package, and you will get complaints that there are
  34894. -# no rules to generate ltmain.sh.
  34895. -if test -f "$ltmain"; then
  34896. - # See if we are running on zsh, and set the options which allow our commands through
  34897. - # without removal of \ escapes.
  34898. - if test -n "${ZSH_VERSION+set}" ; then
  34899. - setopt NO_GLOB_SUBST
  34900. - fi
  34901. - # Now quote all the things that may contain metacharacters while being
  34902. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34903. - # variables and quote the copies for generation of the libtool script.
  34904. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  34905. - SED SHELL STRIP \
  34906. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34907. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34908. - deplibs_check_method reload_flag reload_cmds need_locks \
  34909. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34910. - lt_cv_sys_global_symbol_to_c_name_address \
  34911. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34912. - old_postinstall_cmds old_postuninstall_cmds \
  34913. - compiler_RC \
  34914. - CC_RC \
  34915. - LD_RC \
  34916. - lt_prog_compiler_wl_RC \
  34917. - lt_prog_compiler_pic_RC \
  34918. - lt_prog_compiler_static_RC \
  34919. - lt_prog_compiler_no_builtin_flag_RC \
  34920. - export_dynamic_flag_spec_RC \
  34921. - thread_safe_flag_spec_RC \
  34922. - whole_archive_flag_spec_RC \
  34923. - enable_shared_with_static_runtimes_RC \
  34924. - old_archive_cmds_RC \
  34925. - old_archive_from_new_cmds_RC \
  34926. - predep_objects_RC \
  34927. - postdep_objects_RC \
  34928. - predeps_RC \
  34929. - postdeps_RC \
  34930. - compiler_lib_search_path_RC \
  34931. - compiler_lib_search_dirs_RC \
  34932. - archive_cmds_RC \
  34933. - archive_expsym_cmds_RC \
  34934. - postinstall_cmds_RC \
  34935. - postuninstall_cmds_RC \
  34936. - old_archive_from_expsyms_cmds_RC \
  34937. - allow_undefined_flag_RC \
  34938. - no_undefined_flag_RC \
  34939. - export_symbols_cmds_RC \
  34940. - hardcode_libdir_flag_spec_RC \
  34941. - hardcode_libdir_flag_spec_ld_RC \
  34942. - hardcode_libdir_separator_RC \
  34943. - hardcode_automatic_RC \
  34944. - module_cmds_RC \
  34945. - module_expsym_cmds_RC \
  34946. - lt_cv_prog_compiler_c_o_RC \
  34947. - fix_srcfile_path_RC \
  34948. - exclude_expsyms_RC \
  34949. - include_expsyms_RC; do
  34950. -
  34951. - case $var in
  34952. - old_archive_cmds_RC | \
  34953. - old_archive_from_new_cmds_RC | \
  34954. - archive_cmds_RC | \
  34955. - archive_expsym_cmds_RC | \
  34956. - module_cmds_RC | \
  34957. - module_expsym_cmds_RC | \
  34958. - old_archive_from_expsyms_cmds_RC | \
  34959. - export_symbols_cmds_RC | \
  34960. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34961. - postinstall_cmds | postuninstall_cmds | \
  34962. - old_postinstall_cmds | old_postuninstall_cmds | \
  34963. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34964. - # Double-quote double-evaled strings.
  34965. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34966. - ;;
  34967. - *)
  34968. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34969. - ;;
  34970. - esac
  34971. - done
  34972. +CC="$lt_save_CC"
  34973. - case $lt_echo in
  34974. - *'\$0 --fallback-echo"')
  34975. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34976. - ;;
  34977. - esac
  34978. -cfgfile="$ofile"
  34979. - cat <<__EOF__ >> "$cfgfile"
  34980. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34981. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34982. -# Shell to use when invoking shell scripts.
  34983. -SHELL=$lt_SHELL
  34984. -# Whether or not to build shared libraries.
  34985. -build_libtool_libs=$enable_shared
  34986. -# Whether or not to build static libraries.
  34987. -build_old_libs=$enable_static
  34988. -# Whether or not to add -lc for building shared libraries.
  34989. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  34990. -# Whether or not to disallow shared libs when runtime libs are static
  34991. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  34992. -# Whether or not to optimize for fast installation.
  34993. -fast_install=$enable_fast_install
  34994. -# The host system.
  34995. -host_alias=$host_alias
  34996. -host=$host
  34997. -host_os=$host_os
  34998. -# The build system.
  34999. -build_alias=$build_alias
  35000. -build=$build
  35001. -build_os=$build_os
  35002. -# An echo program that does not interpret backslashes.
  35003. -echo=$lt_echo
  35004. + ac_config_commands="$ac_config_commands libtool"
  35005. -# The archiver.
  35006. -AR=$lt_AR
  35007. -AR_FLAGS=$lt_AR_FLAGS
  35008. -# A C compiler.
  35009. -LTCC=$lt_LTCC
  35010. -# LTCC compiler flags.
  35011. -LTCFLAGS=$lt_LTCFLAGS
  35012. -# A language-specific compiler.
  35013. -CC=$lt_compiler_RC
  35014. +# Only expand once:
  35015. -# Is the compiler the GNU C compiler?
  35016. -with_gcc=$GCC_RC
  35017. -# An ERE matcher.
  35018. -EGREP=$lt_EGREP
  35019. -# The linker used to build libraries.
  35020. -LD=$lt_LD_RC
  35021. +# Check whether --enable-debug was given.
  35022. +if test "${enable_debug+set}" = set; then :
  35023. + enableval=$enable_debug; case "${enableval}" in
  35024. + yes) debug=true ;;
  35025. + no) debug=no ;;
  35026. + *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  35027. + esac
  35028. +else
  35029. + debug=false
  35030. +fi
  35031. -# Whether we need hard or soft links.
  35032. -LN_S=$lt_LN_S
  35033. + if test x$debug = xtrue; then
  35034. + DEBUG_TRUE=
  35035. + DEBUG_FALSE='#'
  35036. +else
  35037. + DEBUG_TRUE='#'
  35038. + DEBUG_FALSE=
  35039. +fi
  35040. -# A BSD-compatible nm program.
  35041. -NM=$lt_NM
  35042. -# A symbol stripping program
  35043. -STRIP=$lt_STRIP
  35044. +# Check whether --enable-warmstarts was given.
  35045. +if test "${enable_warmstarts+set}" = set; then :
  35046. + enableval=$enable_warmstarts; case "${enableval}" in
  35047. + yes) warmstarts=true ;;
  35048. + no) warmstarts=no ;;
  35049. + *) as_fn_error "bad value ${enableval} for --enable-warmstarts" "$LINENO" 5 ;;
  35050. + esac
  35051. +else
  35052. + warmstarts=false
  35053. +fi
  35054. -# Used to examine libraries when file_magic_cmd begins "file"
  35055. -MAGIC_CMD=$MAGIC_CMD
  35056. + if test x$warmstarts = xtrue; then
  35057. + WARMSTART_TRUE=
  35058. + WARMSTART_FALSE='#'
  35059. +else
  35060. + WARMSTART_TRUE='#'
  35061. + WARMSTART_FALSE=
  35062. +fi
  35063. -# Used on cygwin: DLL creation program.
  35064. -DLLTOOL="$DLLTOOL"
  35065. -# Used on cygwin: object dumper.
  35066. -OBJDUMP="$OBJDUMP"
  35067. +if test "$warmstarts" = "true" ; then
  35068. -# Used on cygwin: assembler.
  35069. -AS="$AS"
  35070. +# Check whether --with-statedir was given.
  35071. +if test "${with_statedir+set}" = set; then :
  35072. + withval=$with_statedir; statedir=$withval
  35073. +else
  35074. + statedir=/tmp
  35075. +fi
  35076. -# The name of the directory that contains temporary libtool files.
  35077. -objdir=$objdir
  35078. -# How to create reloadable object files.
  35079. -reload_flag=$lt_reload_flag
  35080. -reload_cmds=$lt_reload_cmds
  35081. -# How to pass a linker flag through the compiler.
  35082. -wl=$lt_lt_prog_compiler_wl_RC
  35083. +cat >>confdefs.h <<_ACEOF
  35084. +#define RPCBIND_STATEDIR "$statedir"
  35085. +_ACEOF
  35086. -# Object file suffix (normally "o").
  35087. -objext="$ac_objext"
  35088. +fi
  35089. -# Old archive suffix (normally "a").
  35090. -libext="$libext"
  35091. +# Check whether --with-rpcuser was given.
  35092. +if test "${with_rpcuser+set}" = set; then :
  35093. + withval=$with_rpcuser; rpcuser=$withval
  35094. +else
  35095. + rpcuser=root
  35096. +fi
  35097. -# Shared library suffix (normally ".so").
  35098. -shrext_cmds='$shrext_cmds'
  35099. -# Executable file suffix (normally "").
  35100. -exeext="$exeext"
  35101. -# Additional compiler flags for building library objects.
  35102. -pic_flag=$lt_lt_prog_compiler_pic_RC
  35103. -pic_mode=$pic_mode
  35104. +cat >>confdefs.h <<_ACEOF
  35105. +#define RPCBIND_USER "$rpcuser"
  35106. +_ACEOF
  35107. -# What is the maximum length of a command?
  35108. -max_cmd_len=$lt_cv_sys_max_cmd_len
  35109. -# Does compiler simultaneously support -c and -o options?
  35110. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  35111. +for ac_header in arpa/inet.h fcntl.h netdb.h \
  35112. + netinet/in.h stdlib.h string.h \
  35113. + sys/param.h sys/socket.h \
  35114. + sys/time.h syslog.h \
  35115. + unistd.h nss.h
  35116. +do :
  35117. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  35118. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  35119. +eval as_val=\$$as_ac_Header
  35120. + if test "x$as_val" = x""yes; then :
  35121. + cat >>confdefs.h <<_ACEOF
  35122. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  35123. +_ACEOF
  35124. -# Must we lock files when doing compilation?
  35125. -need_locks=$lt_need_locks
  35126. +fi
  35127. -# Do we need the lib prefix for modules?
  35128. -need_lib_prefix=$need_lib_prefix
  35129. +done
  35130. -# Do we need a version for libraries?
  35131. -need_version=$need_version
  35132. -# Whether dlopen is supported.
  35133. -dlopen_support=$enable_dlopen
  35134. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  35135. +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  35136. +if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  35137. + $as_echo_n "(cached) " >&6
  35138. +else
  35139. + ac_check_lib_save_LIBS=$LIBS
  35140. +LIBS="-lpthread $LIBS"
  35141. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35142. +/* end confdefs.h. */
  35143. +
  35144. +/* Override any GCC internal prototype to avoid an error.
  35145. + Use char because int might match the return type of a GCC
  35146. + builtin and then its argument prototype would still apply. */
  35147. +#ifdef __cplusplus
  35148. +extern "C"
  35149. +#endif
  35150. +char pthread_create ();
  35151. +int
  35152. +main ()
  35153. +{
  35154. +return pthread_create ();
  35155. + ;
  35156. + return 0;
  35157. +}
  35158. +_ACEOF
  35159. +if ac_fn_c_try_link "$LINENO"; then :
  35160. + ac_cv_lib_pthread_pthread_create=yes
  35161. +else
  35162. + ac_cv_lib_pthread_pthread_create=no
  35163. +fi
  35164. +rm -f core conftest.err conftest.$ac_objext \
  35165. + conftest$ac_exeext conftest.$ac_ext
  35166. +LIBS=$ac_check_lib_save_LIBS
  35167. +fi
  35168. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  35169. +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  35170. +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  35171. + cat >>confdefs.h <<_ACEOF
  35172. +#define HAVE_LIBPTHREAD 1
  35173. +_ACEOF
  35174. +
  35175. + LIBS="-lpthread $LIBS"
  35176. -# Whether dlopen of programs is supported.
  35177. -dlopen_self=$enable_dlopen_self
  35178. +fi
  35179. -# Whether dlopen of statically linked programs is supported.
  35180. -dlopen_self_static=$enable_dlopen_self_static
  35181. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_create in -ltirpc" >&5
  35182. +$as_echo_n "checking for clnt_create in -ltirpc... " >&6; }
  35183. +if test "${ac_cv_lib_tirpc_clnt_create+set}" = set; then :
  35184. + $as_echo_n "(cached) " >&6
  35185. +else
  35186. + ac_check_lib_save_LIBS=$LIBS
  35187. +LIBS="-ltirpc $LIBS"
  35188. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35189. +/* end confdefs.h. */
  35190. -# Compiler flag to prevent dynamic linking.
  35191. -link_static_flag=$lt_lt_prog_compiler_static_RC
  35192. +/* Override any GCC internal prototype to avoid an error.
  35193. + Use char because int might match the return type of a GCC
  35194. + builtin and then its argument prototype would still apply. */
  35195. +#ifdef __cplusplus
  35196. +extern "C"
  35197. +#endif
  35198. +char clnt_create ();
  35199. +int
  35200. +main ()
  35201. +{
  35202. +return clnt_create ();
  35203. + ;
  35204. + return 0;
  35205. +}
  35206. +_ACEOF
  35207. +if ac_fn_c_try_link "$LINENO"; then :
  35208. + ac_cv_lib_tirpc_clnt_create=yes
  35209. +else
  35210. + ac_cv_lib_tirpc_clnt_create=no
  35211. +fi
  35212. +rm -f core conftest.err conftest.$ac_objext \
  35213. + conftest$ac_exeext conftest.$ac_ext
  35214. +LIBS=$ac_check_lib_save_LIBS
  35215. +fi
  35216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_create" >&5
  35217. +$as_echo "$ac_cv_lib_tirpc_clnt_create" >&6; }
  35218. +if test "x$ac_cv_lib_tirpc_clnt_create" = x""yes; then :
  35219. + cat >>confdefs.h <<_ACEOF
  35220. +#define HAVE_LIBTIRPC 1
  35221. +_ACEOF
  35222. -# Compiler flag to turn off builtin functions.
  35223. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  35224. + LIBS="-ltirpc $LIBS"
  35225. -# Compiler flag to allow reflexive dlopens.
  35226. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  35227. +fi
  35228. -# Compiler flag to generate shared objects directly from archives.
  35229. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  35230. +# Check whether --enable-libwrap was given.
  35231. +if test "${enable_libwrap+set}" = set; then :
  35232. + enableval=$enable_libwrap; case "${enableval}" in
  35233. + yes) libwarp=true
  35234. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
  35235. +$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
  35236. +if test "${ac_cv_lib_wrap_hosts_access+set}" = set; then :
  35237. + $as_echo_n "(cached) " >&6
  35238. +else
  35239. + ac_check_lib_save_LIBS=$LIBS
  35240. +LIBS="-lwrap $LIBS"
  35241. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35242. +/* end confdefs.h. */
  35243. -# Compiler flag to generate thread-safe objects.
  35244. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  35245. +/* Override any GCC internal prototype to avoid an error.
  35246. + Use char because int might match the return type of a GCC
  35247. + builtin and then its argument prototype would still apply. */
  35248. +#ifdef __cplusplus
  35249. +extern "C"
  35250. +#endif
  35251. +char hosts_access ();
  35252. +int
  35253. +main ()
  35254. +{
  35255. +return hosts_access ();
  35256. + ;
  35257. + return 0;
  35258. +}
  35259. +_ACEOF
  35260. +if ac_fn_c_try_link "$LINENO"; then :
  35261. + ac_cv_lib_wrap_hosts_access=yes
  35262. +else
  35263. + ac_cv_lib_wrap_hosts_access=no
  35264. +fi
  35265. +rm -f core conftest.err conftest.$ac_objext \
  35266. + conftest$ac_exeext conftest.$ac_ext
  35267. +LIBS=$ac_check_lib_save_LIBS
  35268. +fi
  35269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
  35270. +$as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
  35271. +if test "x$ac_cv_lib_wrap_hosts_access" = x""yes; then :
  35272. + cat >>confdefs.h <<_ACEOF
  35273. +#define HAVE_LIBWRAP 1
  35274. +_ACEOF
  35275. -# Library versioning type.
  35276. -version_type=$version_type
  35277. + LIBS="-lwrap $LIBS"
  35278. -# Format of library name prefix.
  35279. -libname_spec=$lt_libname_spec
  35280. +fi
  35281. + ;;
  35282. + no) libwarp=no ;;
  35283. + *) as_fn_error "bad value ${enableval} for --enable-libwrap" "$LINENO" 5 ;;
  35284. + esac
  35285. +else
  35286. + libwarp=false
  35287. +fi
  35288. -# List of archive names. First name is the real one, the rest are links.
  35289. -# The last name is the one that the linker finds with -lNAME.
  35290. -library_names_spec=$lt_library_names_spec
  35291. + if test x$libwarp = xtrue; then
  35292. + LIBWRAP_TRUE=
  35293. + LIBWRAP_FALSE='#'
  35294. +else
  35295. + LIBWRAP_TRUE='#'
  35296. + LIBWRAP_FALSE=
  35297. +fi
  35298. -# The coded name of the library, if different from the real name.
  35299. -soname_spec=$lt_soname_spec
  35300. -# Commands used to build and install an old-style archive.
  35301. -RANLIB=$lt_RANLIB
  35302. -old_archive_cmds=$lt_old_archive_cmds_RC
  35303. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35304. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35305. +ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
  35306. -# Create an old-style archive from a shared archive.
  35307. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  35308. +cat >confcache <<\_ACEOF
  35309. +# This file is a shell script that caches the results of configure
  35310. +# tests run on this system so they can be shared between configure
  35311. +# scripts and configure runs, see configure's option --config-cache.
  35312. +# It is not useful on other systems. If it contains results you don't
  35313. +# want to keep, you may remove or edit it.
  35314. +#
  35315. +# config.status only pays attention to the cache file if you give it
  35316. +# the --recheck option to rerun configure.
  35317. +#
  35318. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  35319. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  35320. +# following values.
  35321. -# Create a temporary old-style archive to link instead of a shared archive.
  35322. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  35323. +_ACEOF
  35324. -# Commands used to build and install a shared archive.
  35325. -archive_cmds=$lt_archive_cmds_RC
  35326. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  35327. -postinstall_cmds=$lt_postinstall_cmds
  35328. -postuninstall_cmds=$lt_postuninstall_cmds
  35329. +# The following way of writing the cache mishandles newlines in values,
  35330. +# but we know of no workaround that is simple, portable, and efficient.
  35331. +# So, we kill variables containing newlines.
  35332. +# Ultrix sh set writes to stderr and can't be redirected directly,
  35333. +# and sets the high bit in the cache file unless we assign to the vars.
  35334. +(
  35335. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  35336. + eval ac_val=\$$ac_var
  35337. + case $ac_val in #(
  35338. + *${as_nl}*)
  35339. + case $ac_var in #(
  35340. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  35341. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  35342. + esac
  35343. + case $ac_var in #(
  35344. + _ | IFS | as_nl) ;; #(
  35345. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  35346. + *) { eval $ac_var=; unset $ac_var;} ;;
  35347. + esac ;;
  35348. + esac
  35349. + done
  35350. -# Commands used to build a loadable module (assumed same as above if empty)
  35351. -module_cmds=$lt_module_cmds_RC
  35352. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  35353. + (set) 2>&1 |
  35354. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  35355. + *${as_nl}ac_space=\ *)
  35356. + # `set' does not quote correctly, so add quotes: double-quote
  35357. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  35358. + sed -n \
  35359. + "s/'/'\\\\''/g;
  35360. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  35361. + ;; #(
  35362. + *)
  35363. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  35364. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  35365. + ;;
  35366. + esac |
  35367. + sort
  35368. +) |
  35369. + sed '
  35370. + /^ac_cv_env_/b end
  35371. + t clear
  35372. + :clear
  35373. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  35374. + t end
  35375. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  35376. + :end' >>confcache
  35377. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  35378. + if test -w "$cache_file"; then
  35379. + test "x$cache_file" != "x/dev/null" &&
  35380. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  35381. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  35382. + cat confcache >$cache_file
  35383. + else
  35384. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  35385. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  35386. + fi
  35387. +fi
  35388. +rm -f confcache
  35389. -# Commands to strip libraries.
  35390. -old_striplib=$lt_old_striplib
  35391. -striplib=$lt_striplib
  35392. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  35393. +# Let make expand exec_prefix.
  35394. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  35395. -# Dependencies to place before the objects being linked to create a
  35396. -# shared library.
  35397. -predep_objects=$lt_predep_objects_RC
  35398. -
  35399. -# Dependencies to place after the objects being linked to create a
  35400. -# shared library.
  35401. -postdep_objects=$lt_postdep_objects_RC
  35402. -
  35403. -# Dependencies to place before the objects being linked to create a
  35404. -# shared library.
  35405. -predeps=$lt_predeps_RC
  35406. -
  35407. -# Dependencies to place after the objects being linked to create a
  35408. -# shared library.
  35409. -postdeps=$lt_postdeps_RC
  35410. -
  35411. -# The directories searched by this compiler when creating a shared
  35412. -# library
  35413. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  35414. -
  35415. -# The library search path used internally by the compiler when linking
  35416. -# a shared library.
  35417. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  35418. +DEFS=-DHAVE_CONFIG_H
  35419. -# Method to check whether dependent libraries are shared objects.
  35420. -deplibs_check_method=$lt_deplibs_check_method
  35421. +ac_libobjs=
  35422. +ac_ltlibobjs=
  35423. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  35424. + # 1. Remove the extension, and $U if already installed.
  35425. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  35426. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  35427. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  35428. + # will be set to the directory where LIBOBJS objects are built.
  35429. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  35430. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  35431. +done
  35432. +LIBOBJS=$ac_libobjs
  35433. -# Command to use when deplibs_check_method == file_magic.
  35434. -file_magic_cmd=$lt_file_magic_cmd
  35435. +LTLIBOBJS=$ac_ltlibobjs
  35436. -# Flag that allows shared libraries with undefined symbols to be built.
  35437. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  35438. -# Flag that forces no undefined symbols.
  35439. -no_undefined_flag=$lt_no_undefined_flag_RC
  35440. + if test -n "$EXEEXT"; then
  35441. + am__EXEEXT_TRUE=
  35442. + am__EXEEXT_FALSE='#'
  35443. +else
  35444. + am__EXEEXT_TRUE='#'
  35445. + am__EXEEXT_FALSE=
  35446. +fi
  35447. -# Commands used to finish a libtool library installation in a directory.
  35448. -finish_cmds=$lt_finish_cmds
  35449. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  35450. + as_fn_error "conditional \"AMDEP\" was never defined.
  35451. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  35452. +fi
  35453. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  35454. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  35455. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  35456. +fi
  35457. +if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  35458. + as_fn_error "conditional \"DEBUG\" was never defined.
  35459. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  35460. +fi
  35461. +if test -z "${WARMSTART_TRUE}" && test -z "${WARMSTART_FALSE}"; then
  35462. + as_fn_error "conditional \"WARMSTART\" was never defined.
  35463. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  35464. +fi
  35465. +if test -z "${LIBWRAP_TRUE}" && test -z "${LIBWRAP_FALSE}"; then
  35466. + as_fn_error "conditional \"LIBWRAP\" was never defined.
  35467. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  35468. +fi
  35469. -# Same as above, but a single script fragment to be evaled but not shown.
  35470. -finish_eval=$lt_finish_eval
  35471. +: ${CONFIG_STATUS=./config.status}
  35472. +ac_write_fail=0
  35473. +ac_clean_files_save=$ac_clean_files
  35474. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  35475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  35476. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  35477. +as_write_fail=0
  35478. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  35479. +#! $SHELL
  35480. +# Generated by $as_me.
  35481. +# Run this file to recreate the current configuration.
  35482. +# Compiler output produced by configure, useful for debugging
  35483. +# configure, is in config.log if it exists.
  35484. -# Take the output of nm and produce a listing of raw symbols and C names.
  35485. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35486. +debug=false
  35487. +ac_cs_recheck=false
  35488. +ac_cs_silent=false
  35489. -# Transform the output of nm in a proper C declaration
  35490. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35491. +SHELL=\${CONFIG_SHELL-$SHELL}
  35492. +export SHELL
  35493. +_ASEOF
  35494. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  35495. +## -------------------- ##
  35496. +## M4sh Initialization. ##
  35497. +## -------------------- ##
  35498. -# Transform the output of nm in a C name address pair
  35499. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35500. +# Be more Bourne compatible
  35501. +DUALCASE=1; export DUALCASE # for MKS sh
  35502. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  35503. + emulate sh
  35504. + NULLCMD=:
  35505. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  35506. + # is contrary to our usage. Disable this feature.
  35507. + alias -g '${1+"$@"}'='"$@"'
  35508. + setopt NO_GLOB_SUBST
  35509. +else
  35510. + case `(set -o) 2>/dev/null` in #(
  35511. + *posix*) :
  35512. + set -o posix ;; #(
  35513. + *) :
  35514. + ;;
  35515. +esac
  35516. +fi
  35517. -# This is the shared library runtime path variable.
  35518. -runpath_var=$runpath_var
  35519. -# This is the shared library path variable.
  35520. -shlibpath_var=$shlibpath_var
  35521. +as_nl='
  35522. +'
  35523. +export as_nl
  35524. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  35525. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  35526. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  35527. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  35528. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  35529. +# but without wasting forks for bash or zsh.
  35530. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  35531. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  35532. + as_echo='print -r --'
  35533. + as_echo_n='print -rn --'
  35534. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  35535. + as_echo='printf %s\n'
  35536. + as_echo_n='printf %s'
  35537. +else
  35538. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  35539. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  35540. + as_echo_n='/usr/ucb/echo -n'
  35541. + else
  35542. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  35543. + as_echo_n_body='eval
  35544. + arg=$1;
  35545. + case $arg in #(
  35546. + *"$as_nl"*)
  35547. + expr "X$arg" : "X\\(.*\\)$as_nl";
  35548. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  35549. + esac;
  35550. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  35551. + '
  35552. + export as_echo_n_body
  35553. + as_echo_n='sh -c $as_echo_n_body as_echo'
  35554. + fi
  35555. + export as_echo_body
  35556. + as_echo='sh -c $as_echo_body as_echo'
  35557. +fi
  35558. -# Is shlibpath searched before the hard-coded library search path?
  35559. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35560. +# The user is always right.
  35561. +if test "${PATH_SEPARATOR+set}" != set; then
  35562. + PATH_SEPARATOR=:
  35563. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  35564. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  35565. + PATH_SEPARATOR=';'
  35566. + }
  35567. +fi
  35568. -# How to hardcode a shared library path into an executable.
  35569. -hardcode_action=$hardcode_action_RC
  35570. -# Whether we should hardcode library paths into libraries.
  35571. -hardcode_into_libs=$hardcode_into_libs
  35572. +# IFS
  35573. +# We need space, tab and new line, in precisely that order. Quoting is
  35574. +# there to prevent editors from complaining about space-tab.
  35575. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  35576. +# splitting by setting IFS to empty value.)
  35577. +IFS=" "" $as_nl"
  35578. -# Flag to hardcode \$libdir into a binary during linking.
  35579. -# This must work even if \$libdir does not exist.
  35580. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  35581. +# Find who we are. Look in the path if we contain no directory separator.
  35582. +case $0 in #((
  35583. + *[\\/]* ) as_myself=$0 ;;
  35584. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35585. +for as_dir in $PATH
  35586. +do
  35587. + IFS=$as_save_IFS
  35588. + test -z "$as_dir" && as_dir=.
  35589. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  35590. + done
  35591. +IFS=$as_save_IFS
  35592. -# If ld is used when linking, flag to hardcode \$libdir into
  35593. -# a binary during linking. This must work even if \$libdir does
  35594. -# not exist.
  35595. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  35596. -
  35597. -# Whether we need a single -rpath flag with a separated argument.
  35598. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  35599. -
  35600. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35601. -# resulting binary.
  35602. -hardcode_direct=$hardcode_direct_RC
  35603. -
  35604. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35605. -# resulting binary.
  35606. -hardcode_minus_L=$hardcode_minus_L_RC
  35607. -
  35608. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35609. -# the resulting binary.
  35610. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  35611. -
  35612. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35613. -# and all subsequent libraries and executables linked against it.
  35614. -hardcode_automatic=$hardcode_automatic_RC
  35615. + ;;
  35616. +esac
  35617. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  35618. +# in which case we are not to be found in the path.
  35619. +if test "x$as_myself" = x; then
  35620. + as_myself=$0
  35621. +fi
  35622. +if test ! -f "$as_myself"; then
  35623. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  35624. + exit 1
  35625. +fi
  35626. -# Variables whose values should be saved in libtool wrapper scripts and
  35627. -# restored at relink time.
  35628. -variables_saved_for_relink="$variables_saved_for_relink"
  35629. +# Unset variables that we do not need and which cause bugs (e.g. in
  35630. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  35631. +# suppresses any "Segmentation fault" message there. '((' could
  35632. +# trigger a bug in pdksh 5.2.14.
  35633. +for as_var in BASH_ENV ENV MAIL MAILPATH
  35634. +do eval test x\${$as_var+set} = xset \
  35635. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  35636. +done
  35637. +PS1='$ '
  35638. +PS2='> '
  35639. +PS4='+ '
  35640. -# Whether libtool must link a program against all its dependency libraries.
  35641. -link_all_deplibs=$link_all_deplibs_RC
  35642. +# NLS nuisances.
  35643. +LC_ALL=C
  35644. +export LC_ALL
  35645. +LANGUAGE=C
  35646. +export LANGUAGE
  35647. -# Compile-time system search path for libraries
  35648. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35649. +# CDPATH.
  35650. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35651. -# Run-time system search path for libraries
  35652. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35653. -# Fix the shell variable \$srcfile for the compiler.
  35654. -fix_srcfile_path=$lt_fix_srcfile_path
  35655. +# as_fn_error ERROR [LINENO LOG_FD]
  35656. +# ---------------------------------
  35657. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  35658. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  35659. +# script with status $?, using 1 if that was 0.
  35660. +as_fn_error ()
  35661. +{
  35662. + as_status=$?; test $as_status -eq 0 && as_status=1
  35663. + if test "$3"; then
  35664. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  35665. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  35666. + fi
  35667. + $as_echo "$as_me: error: $1" >&2
  35668. + as_fn_exit $as_status
  35669. +} # as_fn_error
  35670. +
  35671. +
  35672. +# as_fn_set_status STATUS
  35673. +# -----------------------
  35674. +# Set $? to STATUS, without forking.
  35675. +as_fn_set_status ()
  35676. +{
  35677. + return $1
  35678. +} # as_fn_set_status
  35679. +
  35680. +# as_fn_exit STATUS
  35681. +# -----------------
  35682. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  35683. +as_fn_exit ()
  35684. +{
  35685. + set +e
  35686. + as_fn_set_status $1
  35687. + exit $1
  35688. +} # as_fn_exit
  35689. +
  35690. +# as_fn_unset VAR
  35691. +# ---------------
  35692. +# Portably unset VAR.
  35693. +as_fn_unset ()
  35694. +{
  35695. + { eval $1=; unset $1;}
  35696. +}
  35697. +as_unset=as_fn_unset
  35698. +# as_fn_append VAR VALUE
  35699. +# ----------------------
  35700. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  35701. +# advantage of any shell optimizations that allow amortized linear growth over
  35702. +# repeated appends, instead of the typical quadratic growth present in naive
  35703. +# implementations.
  35704. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  35705. + eval 'as_fn_append ()
  35706. + {
  35707. + eval $1+=\$2
  35708. + }'
  35709. +else
  35710. + as_fn_append ()
  35711. + {
  35712. + eval $1=\$$1\$2
  35713. + }
  35714. +fi # as_fn_append
  35715. -# Set to yes if exported symbols are required.
  35716. -always_export_symbols=$always_export_symbols_RC
  35717. +# as_fn_arith ARG...
  35718. +# ------------------
  35719. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  35720. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  35721. +# must be portable across $(()) and expr.
  35722. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  35723. + eval 'as_fn_arith ()
  35724. + {
  35725. + as_val=$(( $* ))
  35726. + }'
  35727. +else
  35728. + as_fn_arith ()
  35729. + {
  35730. + as_val=`expr "$@" || test $? -eq 1`
  35731. + }
  35732. +fi # as_fn_arith
  35733. -# The commands to list exported symbols.
  35734. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  35735. -# The commands to extract the exported symbol list from a shared archive.
  35736. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35737. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  35738. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  35739. + as_expr=expr
  35740. +else
  35741. + as_expr=false
  35742. +fi
  35743. -# Symbols that should not be listed in the preloaded symbols.
  35744. -exclude_expsyms=$lt_exclude_expsyms_RC
  35745. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  35746. + as_basename=basename
  35747. +else
  35748. + as_basename=false
  35749. +fi
  35750. -# Symbols that must always be exported.
  35751. -include_expsyms=$lt_include_expsyms_RC
  35752. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  35753. + as_dirname=dirname
  35754. +else
  35755. + as_dirname=false
  35756. +fi
  35757. -# ### END LIBTOOL TAG CONFIG: $tagname
  35758. +as_me=`$as_basename -- "$0" ||
  35759. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  35760. + X"$0" : 'X\(//\)$' \| \
  35761. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  35762. +$as_echo X/"$0" |
  35763. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  35764. + s//\1/
  35765. + q
  35766. + }
  35767. + /^X\/\(\/\/\)$/{
  35768. + s//\1/
  35769. + q
  35770. + }
  35771. + /^X\/\(\/\).*/{
  35772. + s//\1/
  35773. + q
  35774. + }
  35775. + s/.*/./; q'`
  35776. -__EOF__
  35777. +# Avoid depending upon Character Ranges.
  35778. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  35779. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  35780. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  35781. +as_cr_digits='0123456789'
  35782. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  35783. +ECHO_C= ECHO_N= ECHO_T=
  35784. +case `echo -n x` in #(((((
  35785. +-n*)
  35786. + case `echo 'xy\c'` in
  35787. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  35788. + xy) ECHO_C='\c';;
  35789. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  35790. + ECHO_T=' ';;
  35791. + esac;;
  35792. +*)
  35793. + ECHO_N='-n';;
  35794. +esac
  35795. +rm -f conf$$ conf$$.exe conf$$.file
  35796. +if test -d conf$$.dir; then
  35797. + rm -f conf$$.dir/conf$$.file
  35798. else
  35799. - # If there is no Makefile yet, we rely on a make rule to execute
  35800. - # `config.status --recheck' to rerun these tests and create the
  35801. - # libtool script then.
  35802. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35803. - if test -f "$ltmain_in"; then
  35804. - test -f Makefile && make "$ltmain"
  35805. + rm -f conf$$.dir
  35806. + mkdir conf$$.dir 2>/dev/null
  35807. +fi
  35808. +if (echo >conf$$.file) 2>/dev/null; then
  35809. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  35810. + as_ln_s='ln -s'
  35811. + # ... but there are two gotchas:
  35812. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  35813. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  35814. + # In both cases, we have to default to `cp -p'.
  35815. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  35816. + as_ln_s='cp -p'
  35817. + elif ln conf$$.file conf$$ 2>/dev/null; then
  35818. + as_ln_s=ln
  35819. + else
  35820. + as_ln_s='cp -p'
  35821. fi
  35822. +else
  35823. + as_ln_s='cp -p'
  35824. fi
  35825. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  35826. +rmdir conf$$.dir 2>/dev/null
  35827. -ac_ext=c
  35828. -ac_cpp='$CPP $CPPFLAGS'
  35829. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35830. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35831. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35832. -
  35833. -CC="$lt_save_CC"
  35834. -
  35835. - ;;
  35836. +# as_fn_mkdir_p
  35837. +# -------------
  35838. +# Create "$as_dir" as a directory, including parents if necessary.
  35839. +as_fn_mkdir_p ()
  35840. +{
  35841. - *)
  35842. - { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  35843. -$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  35844. - { (exit 1); exit 1; }; }
  35845. - ;;
  35846. + case $as_dir in #(
  35847. + -*) as_dir=./$as_dir;;
  35848. + esac
  35849. + test -d "$as_dir" || eval $as_mkdir_p || {
  35850. + as_dirs=
  35851. + while :; do
  35852. + case $as_dir in #(
  35853. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  35854. + *) as_qdir=$as_dir;;
  35855. esac
  35856. + as_dirs="'$as_qdir' $as_dirs"
  35857. + as_dir=`$as_dirname -- "$as_dir" ||
  35858. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35859. + X"$as_dir" : 'X\(//\)[^/]' \| \
  35860. + X"$as_dir" : 'X\(//\)$' \| \
  35861. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  35862. +$as_echo X"$as_dir" |
  35863. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35864. + s//\1/
  35865. + q
  35866. + }
  35867. + /^X\(\/\/\)[^/].*/{
  35868. + s//\1/
  35869. + q
  35870. + }
  35871. + /^X\(\/\/\)$/{
  35872. + s//\1/
  35873. + q
  35874. + }
  35875. + /^X\(\/\).*/{
  35876. + s//\1/
  35877. + q
  35878. + }
  35879. + s/.*/./; q'`
  35880. + test -d "$as_dir" && break
  35881. + done
  35882. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  35883. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  35884. - # Append the new tag name to the list of available tags.
  35885. - if test -n "$tagname" ; then
  35886. - available_tags="$available_tags $tagname"
  35887. - fi
  35888. - fi
  35889. - done
  35890. - IFS="$lt_save_ifs"
  35891. - # Now substitute the updated list of available tags.
  35892. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  35893. - mv "${ofile}T" "$ofile"
  35894. - chmod +x "$ofile"
  35895. +} # as_fn_mkdir_p
  35896. +if mkdir -p . 2>/dev/null; then
  35897. + as_mkdir_p='mkdir -p "$as_dir"'
  35898. +else
  35899. + test -d ./-p && rmdir ./-p
  35900. + as_mkdir_p=false
  35901. +fi
  35902. +
  35903. +if test -x / >/dev/null 2>&1; then
  35904. + as_test_x='test -x'
  35905. +else
  35906. + if ls -dL / >/dev/null 2>&1; then
  35907. + as_ls_L_option=L
  35908. else
  35909. - rm -f "${ofile}T"
  35910. - { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  35911. -$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  35912. - { (exit 1); exit 1; }; }
  35913. + as_ls_L_option=
  35914. fi
  35915. + as_test_x='
  35916. + eval sh -c '\''
  35917. + if test -d "$1"; then
  35918. + test -d "$1/.";
  35919. + else
  35920. + case $1 in #(
  35921. + -*)set "./$1";;
  35922. + esac;
  35923. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  35924. + ???[sx]*):;;*)false;;esac;fi
  35925. + '\'' sh
  35926. + '
  35927. fi
  35928. +as_executable_p=$as_test_x
  35929. +
  35930. +# Sed expression to map a string onto a valid CPP name.
  35931. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  35932. +# Sed expression to map a string onto a valid variable name.
  35933. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  35934. -# This can be used to rebuild libtool when needed
  35935. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  35936. +exec 6>&1
  35937. +## ----------------------------------- ##
  35938. +## Main body of $CONFIG_STATUS script. ##
  35939. +## ----------------------------------- ##
  35940. +_ASEOF
  35941. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  35942. -# Always use our own libtool.
  35943. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  35944. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35945. +# Save the log message, to keep $0 and so on meaningful, and to
  35946. +# report actual input values of CONFIG_FILES etc. instead of their
  35947. +# values after options handling.
  35948. +ac_log="
  35949. +This file was extended by rpcbind $as_me 0.2.0, which was
  35950. +generated by GNU Autoconf 2.65. Invocation command line was
  35951. +
  35952. + CONFIG_FILES = $CONFIG_FILES
  35953. + CONFIG_HEADERS = $CONFIG_HEADERS
  35954. + CONFIG_LINKS = $CONFIG_LINKS
  35955. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  35956. + $ $0 $@
  35957. +
  35958. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  35959. +"
  35960. -# Prevent multiple expansion
  35961. +_ACEOF
  35962. +case $ac_config_files in *"
  35963. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  35964. +esac
  35965. +case $ac_config_headers in *"
  35966. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  35967. +esac
  35968. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35969. +# Files that config.status was made for.
  35970. +config_files="$ac_config_files"
  35971. +config_headers="$ac_config_headers"
  35972. +config_commands="$ac_config_commands"
  35973. +_ACEOF
  35974. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35975. +ac_cs_usage="\
  35976. +\`$as_me' instantiates files and other configuration actions
  35977. +from templates according to the current configuration. Unless the files
  35978. +and actions are specified as TAGs, all are instantiated by default.
  35979. +Usage: $0 [OPTION]... [TAG]...
  35980. + -h, --help print this help, then exit
  35981. + -V, --version print version number and configuration settings, then exit
  35982. + --config print configuration, then exit
  35983. + -q, --quiet, --silent
  35984. + do not print progress messages
  35985. + -d, --debug don't remove temporary files
  35986. + --recheck update $as_me by reconfiguring in the same conditions
  35987. + --file=FILE[:TEMPLATE]
  35988. + instantiate the configuration file FILE
  35989. + --header=FILE[:TEMPLATE]
  35990. + instantiate the configuration header FILE
  35991. +Configuration files:
  35992. +$config_files
  35993. +Configuration headers:
  35994. +$config_headers
  35995. +Configuration commands:
  35996. +$config_commands
  35997. +Report bugs to the package provider."
  35998. +_ACEOF
  35999. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36000. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  36001. +ac_cs_version="\\
  36002. +rpcbind config.status 0.2.0
  36003. +configured by $0, generated by GNU Autoconf 2.65,
  36004. + with options \\"\$ac_cs_config\\"
  36005. +Copyright (C) 2009 Free Software Foundation, Inc.
  36006. +This config.status script is free software; the Free Software Foundation
  36007. +gives unlimited permission to copy, distribute and modify it."
  36008. +ac_pwd='$ac_pwd'
  36009. +srcdir='$srcdir'
  36010. +INSTALL='$INSTALL'
  36011. +MKDIR_P='$MKDIR_P'
  36012. +AWK='$AWK'
  36013. +test -n "\$AWK" || AWK=awk
  36014. +_ACEOF
  36015. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36016. +# The default lists apply if the user does not specify any file.
  36017. +ac_need_defaults=:
  36018. +while test $# != 0
  36019. +do
  36020. + case $1 in
  36021. + --*=*)
  36022. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  36023. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  36024. + ac_shift=:
  36025. + ;;
  36026. + *)
  36027. + ac_option=$1
  36028. + ac_optarg=$2
  36029. + ac_shift=shift
  36030. + ;;
  36031. + esac
  36032. + case $ac_option in
  36033. + # Handling of the options.
  36034. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  36035. + ac_cs_recheck=: ;;
  36036. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  36037. + $as_echo "$ac_cs_version"; exit ;;
  36038. + --config | --confi | --conf | --con | --co | --c )
  36039. + $as_echo "$ac_cs_config"; exit ;;
  36040. + --debug | --debu | --deb | --de | --d | -d )
  36041. + debug=: ;;
  36042. + --file | --fil | --fi | --f )
  36043. + $ac_shift
  36044. + case $ac_optarg in
  36045. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  36046. + esac
  36047. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  36048. + ac_need_defaults=false;;
  36049. + --header | --heade | --head | --hea )
  36050. + $ac_shift
  36051. + case $ac_optarg in
  36052. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  36053. + esac
  36054. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  36055. + ac_need_defaults=false;;
  36056. + --he | --h)
  36057. + # Conflict between --help and --header
  36058. + as_fn_error "ambiguous option: \`$1'
  36059. +Try \`$0 --help' for more information.";;
  36060. + --help | --hel | -h )
  36061. + $as_echo "$ac_cs_usage"; exit ;;
  36062. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  36063. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  36064. + ac_cs_silent=: ;;
  36065. + # This is an error.
  36066. + -*) as_fn_error "unrecognized option: \`$1'
  36067. +Try \`$0 --help' for more information." ;;
  36068. + *) as_fn_append ac_config_targets " $1"
  36069. + ac_need_defaults=false ;;
  36070. + esac
  36071. + shift
  36072. +done
  36073. -# Check whether --enable-debug was given.
  36074. -if test "${enable_debug+set}" = set; then
  36075. - enableval=$enable_debug; case "${enableval}" in
  36076. - yes) debug=true ;;
  36077. - no) debug=no ;;
  36078. - *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
  36079. -$as_echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
  36080. - { (exit 1); exit 1; }; } ;;
  36081. - esac
  36082. -else
  36083. - debug=false
  36084. -fi
  36085. +ac_configure_extra_args=
  36086. - if test x$debug = xtrue; then
  36087. - DEBUG_TRUE=
  36088. - DEBUG_FALSE='#'
  36089. -else
  36090. - DEBUG_TRUE='#'
  36091. - DEBUG_FALSE=
  36092. +if $ac_cs_silent; then
  36093. + exec 6>/dev/null
  36094. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  36095. fi
  36096. -
  36097. -# Check whether --enable-warmstarts was given.
  36098. -if test "${enable_warmstarts+set}" = set; then
  36099. - enableval=$enable_warmstarts; case "${enableval}" in
  36100. - yes) warmstarts=true ;;
  36101. - no) warmstarts=no ;;
  36102. - *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-warmstarts" >&5
  36103. -$as_echo "$as_me: error: bad value ${enableval} for --enable-warmstarts" >&2;}
  36104. - { (exit 1); exit 1; }; } ;;
  36105. - esac
  36106. -else
  36107. - warmstarts=false
  36108. +_ACEOF
  36109. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36110. +if \$ac_cs_recheck; then
  36111. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  36112. + shift
  36113. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  36114. + CONFIG_SHELL='$SHELL'
  36115. + export CONFIG_SHELL
  36116. + exec "\$@"
  36117. fi
  36118. - if test x$warmstarts = xtrue; then
  36119. - WARMSTART_TRUE=
  36120. - WARMSTART_FALSE='#'
  36121. -else
  36122. - WARMSTART_TRUE='#'
  36123. - WARMSTART_FALSE=
  36124. -fi
  36125. +_ACEOF
  36126. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36127. +exec 5>>config.log
  36128. +{
  36129. + echo
  36130. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  36131. +## Running $as_me. ##
  36132. +_ASBOX
  36133. + $as_echo "$ac_log"
  36134. +} >&5
  36135. +_ACEOF
  36136. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36137. +#
  36138. +# INIT-COMMANDS
  36139. +#
  36140. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  36141. -if test "$warmstarts" = "true" ; then
  36142. -# Check whether --with-statedir was given.
  36143. -if test "${with_statedir+set}" = set; then
  36144. - withval=$with_statedir; statedir=$withval
  36145. -else
  36146. - statedir=/tmp
  36147. -fi
  36148. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  36149. +# if CDPATH is set.
  36150. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  36151. +sed_quote_subst='$sed_quote_subst'
  36152. +double_quote_subst='$double_quote_subst'
  36153. +delay_variable_subst='$delay_variable_subst'
  36154. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  36155. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  36156. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  36157. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  36158. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  36159. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  36160. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  36161. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  36162. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  36163. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  36164. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  36165. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  36166. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  36167. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  36168. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  36169. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  36170. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  36171. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  36172. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  36173. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  36174. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  36175. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  36176. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  36177. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  36178. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  36179. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  36180. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  36181. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36182. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  36183. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  36184. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  36185. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  36186. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  36187. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  36188. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  36189. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36190. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36191. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36192. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  36193. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  36194. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  36195. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  36196. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  36197. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  36198. +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"`'
  36199. +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"`'
  36200. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  36201. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  36202. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  36203. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  36204. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  36205. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  36206. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  36207. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  36208. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  36209. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  36210. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  36211. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  36212. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  36213. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  36214. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  36215. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  36216. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36217. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36218. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  36219. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  36220. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36221. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36222. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  36223. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36224. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36225. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36226. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36227. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36228. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36229. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  36230. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  36231. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  36232. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36233. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  36234. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  36235. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  36236. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  36237. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  36238. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  36239. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  36240. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  36241. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  36242. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  36243. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  36244. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36245. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  36246. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  36247. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36248. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36249. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  36250. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  36251. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  36252. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  36253. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  36254. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  36255. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  36256. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36257. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36258. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36259. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36260. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36261. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  36262. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  36263. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  36264. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36265. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  36266. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  36267. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  36268. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  36269. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  36270. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  36271. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  36272. +
  36273. +LTCC='$LTCC'
  36274. +LTCFLAGS='$LTCFLAGS'
  36275. +compiler='$compiler_DEFAULT'
  36276. +
  36277. +# Quote evaled strings.
  36278. +for var in SED \
  36279. +GREP \
  36280. +EGREP \
  36281. +FGREP \
  36282. +LD \
  36283. +NM \
  36284. +LN_S \
  36285. +lt_SP2NL \
  36286. +lt_NL2SP \
  36287. +reload_flag \
  36288. +OBJDUMP \
  36289. +deplibs_check_method \
  36290. +file_magic_cmd \
  36291. +AR \
  36292. +AR_FLAGS \
  36293. +STRIP \
  36294. +RANLIB \
  36295. +CC \
  36296. +CFLAGS \
  36297. +compiler \
  36298. +lt_cv_sys_global_symbol_pipe \
  36299. +lt_cv_sys_global_symbol_to_cdecl \
  36300. +lt_cv_sys_global_symbol_to_c_name_address \
  36301. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  36302. +SHELL \
  36303. +ECHO \
  36304. +lt_prog_compiler_no_builtin_flag \
  36305. +lt_prog_compiler_wl \
  36306. +lt_prog_compiler_pic \
  36307. +lt_prog_compiler_static \
  36308. +lt_cv_prog_compiler_c_o \
  36309. +need_locks \
  36310. +DSYMUTIL \
  36311. +NMEDIT \
  36312. +LIPO \
  36313. +OTOOL \
  36314. +OTOOL64 \
  36315. +shrext_cmds \
  36316. +export_dynamic_flag_spec \
  36317. +whole_archive_flag_spec \
  36318. +compiler_needs_object \
  36319. +with_gnu_ld \
  36320. +allow_undefined_flag \
  36321. +no_undefined_flag \
  36322. +hardcode_libdir_flag_spec \
  36323. +hardcode_libdir_flag_spec_ld \
  36324. +hardcode_libdir_separator \
  36325. +fix_srcfile_path \
  36326. +exclude_expsyms \
  36327. +include_expsyms \
  36328. +file_list_spec \
  36329. +variables_saved_for_relink \
  36330. +libname_spec \
  36331. +library_names_spec \
  36332. +soname_spec \
  36333. +finish_eval \
  36334. +old_striplib \
  36335. +striplib; do
  36336. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  36337. + *[\\\\\\\`\\"\\\$]*)
  36338. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  36339. + ;;
  36340. + *)
  36341. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  36342. + ;;
  36343. + esac
  36344. +done
  36345. +# Double-quote double-evaled strings.
  36346. +for var in reload_cmds \
  36347. +old_postinstall_cmds \
  36348. +old_postuninstall_cmds \
  36349. +old_archive_cmds \
  36350. +extract_expsyms_cmds \
  36351. +old_archive_from_new_cmds \
  36352. +old_archive_from_expsyms_cmds \
  36353. +archive_cmds \
  36354. +archive_expsym_cmds \
  36355. +module_cmds \
  36356. +module_expsym_cmds \
  36357. +export_symbols_cmds \
  36358. +prelink_cmds \
  36359. +postinstall_cmds \
  36360. +postuninstall_cmds \
  36361. +finish_cmds \
  36362. +sys_lib_search_path_spec \
  36363. +sys_lib_dlsearch_path_spec; do
  36364. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  36365. + *[\\\\\\\`\\"\\\$]*)
  36366. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  36367. + ;;
  36368. + *)
  36369. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  36370. + ;;
  36371. + esac
  36372. +done
  36373. -cat >>confdefs.h <<_ACEOF
  36374. -#define RPCBIND_STATEDIR "$statedir"
  36375. -_ACEOF
  36376. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  36377. +case \$lt_ECHO in
  36378. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  36379. + ;;
  36380. +esac
  36381. -fi
  36382. +ac_aux_dir='$ac_aux_dir'
  36383. +xsi_shell='$xsi_shell'
  36384. +lt_shell_append='$lt_shell_append'
  36385. -# Check whether --with-rpcuser was given.
  36386. -if test "${with_rpcuser+set}" = set; then
  36387. - withval=$with_rpcuser; rpcuser=$withval
  36388. -else
  36389. - rpcuser=root
  36390. +# See if we are running on zsh, and set the options which allow our
  36391. +# commands through without removal of \ escapes INIT.
  36392. +if test -n "\${ZSH_VERSION+set}" ; then
  36393. + setopt NO_GLOB_SUBST
  36394. fi
  36395. -
  36396. -cat >>confdefs.h <<_ACEOF
  36397. -#define RPCBIND_USER "$rpcuser"
  36398. -_ACEOF
  36399. -
  36400. + PACKAGE='$PACKAGE'
  36401. + VERSION='$VERSION'
  36402. + TIMESTAMP='$TIMESTAMP'
  36403. + RM='$RM'
  36404. + ofile='$ofile'
  36405. +_ACEOF
  36406. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36407. +# Handling of arguments.
  36408. +for ac_config_target in $ac_config_targets
  36409. +do
  36410. + case $ac_config_target in
  36411. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  36412. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  36413. + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  36414. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  36415. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  36416. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  36417. + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  36418. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  36419. + esac
  36420. +done
  36421. +# If the user did not use the arguments to specify the items to instantiate,
  36422. +# then the envvar interface is used. Set only those that are not.
  36423. +# We use the long form for the default assignment because of an extremely
  36424. +# bizarre bug on SunOS 4.1.3.
  36425. +if $ac_need_defaults; then
  36426. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  36427. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  36428. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  36429. +fi
  36430. +# Have a temporary directory for convenience. Make it in the build tree
  36431. +# simply because there is no reason against having it here, and in addition,
  36432. +# creating and moving files from /tmp can sometimes cause problems.
  36433. +# Hook for its removal unless debugging.
  36434. +# Note that there is a small window in which the directory will not be cleaned:
  36435. +# after its creation but before its name has been assigned to `$tmp'.
  36436. +$debug ||
  36437. +{
  36438. + tmp=
  36439. + trap 'exit_status=$?
  36440. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  36441. +' 0
  36442. + trap 'as_fn_exit 1' 1 2 13 15
  36443. +}
  36444. +# Create a (secure) tmp directory for tmp files.
  36445. +{
  36446. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  36447. + test -n "$tmp" && test -d "$tmp"
  36448. +} ||
  36449. +{
  36450. + tmp=./conf$$-$RANDOM
  36451. + (umask 077 && mkdir "$tmp")
  36452. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  36453. +# Set up the scripts for CONFIG_FILES section.
  36454. +# No need to generate them if there are no CONFIG_FILES.
  36455. +# This happens for instance with `./config.status config.h'.
  36456. +if test -n "$CONFIG_FILES"; then
  36457. -for ac_header in arpa/inet.h fcntl.h netdb.h \
  36458. - netinet/in.h stdlib.h string.h \
  36459. - sys/param.h sys/socket.h \
  36460. - sys/time.h syslog.h \
  36461. - unistd.h nss.h
  36462. -do
  36463. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  36464. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36465. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  36466. -$as_echo_n "checking for $ac_header... " >&6; }
  36467. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36468. - $as_echo_n "(cached) " >&6
  36469. -fi
  36470. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  36471. - $as_echo "$as_val"'`
  36472. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36473. -$as_echo "$ac_res" >&6; }
  36474. -else
  36475. - # Is the header compilable?
  36476. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  36477. -$as_echo_n "checking $ac_header usability... " >&6; }
  36478. -cat >conftest.$ac_ext <<_ACEOF
  36479. -/* confdefs.h. */
  36480. -_ACEOF
  36481. -cat confdefs.h >>conftest.$ac_ext
  36482. -cat >>conftest.$ac_ext <<_ACEOF
  36483. -/* end confdefs.h. */
  36484. -$ac_includes_default
  36485. -#include <$ac_header>
  36486. -_ACEOF
  36487. -rm -f conftest.$ac_objext
  36488. -if { (ac_try="$ac_compile"
  36489. -case "(($ac_try" in
  36490. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36491. - *) ac_try_echo=$ac_try;;
  36492. -esac
  36493. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36494. -$as_echo "$ac_try_echo") >&5
  36495. - (eval "$ac_compile") 2>conftest.er1
  36496. - ac_status=$?
  36497. - grep -v '^ *+' conftest.er1 >conftest.err
  36498. - rm -f conftest.er1
  36499. - cat conftest.err >&5
  36500. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36501. - (exit $ac_status); } && {
  36502. - test -z "$ac_c_werror_flag" ||
  36503. - test ! -s conftest.err
  36504. - } && test -s conftest.$ac_objext; then
  36505. - ac_header_compiler=yes
  36506. -else
  36507. - $as_echo "$as_me: failed program was:" >&5
  36508. -sed 's/^/| /' conftest.$ac_ext >&5
  36509. - ac_header_compiler=no
  36510. +ac_cr=`echo X | tr X '\015'`
  36511. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  36512. +# But we know of no other shell where ac_cr would be empty at this
  36513. +# point, so we can use a bashism as a fallback.
  36514. +if test "x$ac_cr" = x; then
  36515. + eval ac_cr=\$\'\\r\'
  36516. +fi
  36517. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  36518. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  36519. + ac_cs_awk_cr='\r'
  36520. +else
  36521. + ac_cs_awk_cr=$ac_cr
  36522. fi
  36523. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36524. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  36525. -$as_echo "$ac_header_compiler" >&6; }
  36526. -
  36527. -# Is the header present?
  36528. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  36529. -$as_echo_n "checking $ac_header presence... " >&6; }
  36530. -cat >conftest.$ac_ext <<_ACEOF
  36531. -/* confdefs.h. */
  36532. -_ACEOF
  36533. -cat confdefs.h >>conftest.$ac_ext
  36534. -cat >>conftest.$ac_ext <<_ACEOF
  36535. -/* end confdefs.h. */
  36536. -#include <$ac_header>
  36537. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  36538. _ACEOF
  36539. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  36540. -case "(($ac_try" in
  36541. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36542. - *) ac_try_echo=$ac_try;;
  36543. -esac
  36544. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36545. -$as_echo "$ac_try_echo") >&5
  36546. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  36547. - ac_status=$?
  36548. - grep -v '^ *+' conftest.er1 >conftest.err
  36549. - rm -f conftest.er1
  36550. - cat conftest.err >&5
  36551. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36552. - (exit $ac_status); } >/dev/null && {
  36553. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  36554. - test ! -s conftest.err
  36555. - }; then
  36556. - ac_header_preproc=yes
  36557. -else
  36558. - $as_echo "$as_me: failed program was:" >&5
  36559. -sed 's/^/| /' conftest.$ac_ext >&5
  36560. - ac_header_preproc=no
  36561. -fi
  36562. -rm -f conftest.err conftest.$ac_ext
  36563. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  36564. -$as_echo "$ac_header_preproc" >&6; }
  36565. +{
  36566. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  36567. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  36568. + echo "_ACEOF"
  36569. +} >conf$$subs.sh ||
  36570. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36571. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  36572. +ac_delim='%!_!# '
  36573. +for ac_last_try in false false false false false :; do
  36574. + . ./conf$$subs.sh ||
  36575. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36576. -# So? What about this header?
  36577. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  36578. - yes:no: )
  36579. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  36580. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  36581. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  36582. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  36583. - ac_header_preproc=yes
  36584. - ;;
  36585. - no:yes:* )
  36586. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  36587. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  36588. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  36589. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  36590. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  36591. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  36592. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  36593. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  36594. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  36595. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  36596. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  36597. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  36598. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  36599. + if test $ac_delim_n = $ac_delim_num; then
  36600. + break
  36601. + elif $ac_last_try; then
  36602. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  36603. + else
  36604. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  36605. + fi
  36606. +done
  36607. +rm -f conf$$subs.sh
  36608. - ;;
  36609. -esac
  36610. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  36611. -$as_echo_n "checking for $ac_header... " >&6; }
  36612. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  36613. - $as_echo_n "(cached) " >&6
  36614. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36615. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  36616. +_ACEOF
  36617. +sed -n '
  36618. +h
  36619. +s/^/S["/; s/!.*/"]=/
  36620. +p
  36621. +g
  36622. +s/^[^!]*!//
  36623. +:repl
  36624. +t repl
  36625. +s/'"$ac_delim"'$//
  36626. +t delim
  36627. +:nl
  36628. +h
  36629. +s/\(.\{148\}\)..*/\1/
  36630. +t more1
  36631. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  36632. +p
  36633. +n
  36634. +b repl
  36635. +:more1
  36636. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  36637. +p
  36638. +g
  36639. +s/.\{148\}//
  36640. +t nl
  36641. +:delim
  36642. +h
  36643. +s/\(.\{148\}\)..*/\1/
  36644. +t more2
  36645. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  36646. +p
  36647. +b
  36648. +:more2
  36649. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  36650. +p
  36651. +g
  36652. +s/.\{148\}//
  36653. +t delim
  36654. +' <conf$$subs.awk | sed '
  36655. +/^[^""]/{
  36656. + N
  36657. + s/\n//
  36658. +}
  36659. +' >>$CONFIG_STATUS || ac_write_fail=1
  36660. +rm -f conf$$subs.awk
  36661. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36662. +_ACAWK
  36663. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  36664. + for (key in S) S_is_set[key] = 1
  36665. + FS = ""
  36666. +
  36667. +}
  36668. +{
  36669. + line = $ 0
  36670. + nfields = split(line, field, "@")
  36671. + substed = 0
  36672. + len = length(field[1])
  36673. + for (i = 2; i < nfields; i++) {
  36674. + key = field[i]
  36675. + keylen = length(key)
  36676. + if (S_is_set[key]) {
  36677. + value = S[key]
  36678. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  36679. + len += length(value) + length(field[++i])
  36680. + substed = 1
  36681. + } else
  36682. + len += 1 + keylen
  36683. + }
  36684. +
  36685. + print line
  36686. +}
  36687. +
  36688. +_ACAWK
  36689. +_ACEOF
  36690. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36691. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  36692. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  36693. else
  36694. - eval "$as_ac_Header=\$ac_header_preproc"
  36695. -fi
  36696. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  36697. - $as_echo "$as_val"'`
  36698. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  36699. -$as_echo "$ac_res" >&6; }
  36700. + cat
  36701. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  36702. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  36703. +_ACEOF
  36704. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  36705. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  36706. +# trailing colons and then remove the whole line if VPATH becomes empty
  36707. +# (actually we leave an empty line to preserve line numbers).
  36708. +if test "x$srcdir" = x.; then
  36709. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  36710. +s/:*\$(srcdir):*/:/
  36711. +s/:*\${srcdir}:*/:/
  36712. +s/:*@srcdir@:*/:/
  36713. +s/^\([^=]*=[ ]*\):*/\1/
  36714. +s/:*$//
  36715. +s/^[^=]*=[ ]*$//
  36716. +}'
  36717. fi
  36718. -as_val=`eval 'as_val=${'$as_ac_Header'}
  36719. - $as_echo "$as_val"'`
  36720. - if test "x$as_val" = x""yes; then
  36721. - cat >>confdefs.h <<_ACEOF
  36722. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  36723. +
  36724. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36725. +fi # test -n "$CONFIG_FILES"
  36726. +
  36727. +# Set up the scripts for CONFIG_HEADERS section.
  36728. +# No need to generate them if there are no CONFIG_HEADERS.
  36729. +# This happens for instance with `./config.status Makefile'.
  36730. +if test -n "$CONFIG_HEADERS"; then
  36731. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  36732. +BEGIN {
  36733. _ACEOF
  36734. -fi
  36735. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  36736. +# here-document in config.status, that substitutes the proper values into
  36737. +# config.h.in to produce config.h.
  36738. +# Create a delimiter string that does not exist in confdefs.h, to ease
  36739. +# handling of long lines.
  36740. +ac_delim='%!_!# '
  36741. +for ac_last_try in false false :; do
  36742. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  36743. + if test -z "$ac_t"; then
  36744. + break
  36745. + elif $ac_last_try; then
  36746. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  36747. + else
  36748. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  36749. + fi
  36750. done
  36751. +# For the awk script, D is an array of macro values keyed by name,
  36752. +# likewise P contains macro parameters if any. Preserve backslash
  36753. +# newline sequences.
  36754. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  36755. +sed -n '
  36756. +s/.\{148\}/&'"$ac_delim"'/g
  36757. +t rset
  36758. +:rset
  36759. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  36760. +t def
  36761. +d
  36762. +:def
  36763. +s/\\$//
  36764. +t bsnl
  36765. +s/["\\]/\\&/g
  36766. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  36767. +D["\1"]=" \3"/p
  36768. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  36769. +d
  36770. +:bsnl
  36771. +s/["\\]/\\&/g
  36772. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  36773. +D["\1"]=" \3\\\\\\n"\\/p
  36774. +t cont
  36775. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  36776. +t cont
  36777. +d
  36778. +:cont
  36779. +n
  36780. +s/.\{148\}/&'"$ac_delim"'/g
  36781. +t clear
  36782. +:clear
  36783. +s/\\$//
  36784. +t bsnlc
  36785. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  36786. +d
  36787. +:bsnlc
  36788. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  36789. +b cont
  36790. +' <confdefs.h | sed '
  36791. +s/'"$ac_delim"'/"\\\
  36792. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  36793. -{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  36794. -$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  36795. -if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  36796. - $as_echo_n "(cached) " >&6
  36797. -else
  36798. - ac_check_lib_save_LIBS=$LIBS
  36799. -LIBS="-lpthread $LIBS"
  36800. -cat >conftest.$ac_ext <<_ACEOF
  36801. -/* confdefs.h. */
  36802. -_ACEOF
  36803. -cat confdefs.h >>conftest.$ac_ext
  36804. -cat >>conftest.$ac_ext <<_ACEOF
  36805. -/* end confdefs.h. */
  36806. -
  36807. -/* Override any GCC internal prototype to avoid an error.
  36808. - Use char because int might match the return type of a GCC
  36809. - builtin and then its argument prototype would still apply. */
  36810. -#ifdef __cplusplus
  36811. -extern "C"
  36812. -#endif
  36813. -char pthread_create ();
  36814. -int
  36815. -main ()
  36816. -{
  36817. -return pthread_create ();
  36818. - ;
  36819. - return 0;
  36820. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  36821. + for (key in D) D_is_set[key] = 1
  36822. + FS = ""
  36823. +}
  36824. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  36825. + line = \$ 0
  36826. + split(line, arg, " ")
  36827. + if (arg[1] == "#") {
  36828. + defundef = arg[2]
  36829. + mac1 = arg[3]
  36830. + } else {
  36831. + defundef = substr(arg[1], 2)
  36832. + mac1 = arg[2]
  36833. + }
  36834. + split(mac1, mac2, "(") #)
  36835. + macro = mac2[1]
  36836. + prefix = substr(line, 1, index(line, defundef) - 1)
  36837. + if (D_is_set[macro]) {
  36838. + # Preserve the white space surrounding the "#".
  36839. + print prefix "define", macro P[macro] D[macro]
  36840. + next
  36841. + } else {
  36842. + # Replace #undef with comments. This is necessary, for example,
  36843. + # in the case of _POSIX_SOURCE, which is predefined and required
  36844. + # on some systems where configure will not decide to define it.
  36845. + if (defundef == "undef") {
  36846. + print "/*", prefix defundef, macro, "*/"
  36847. + next
  36848. + }
  36849. + }
  36850. }
  36851. +{ print }
  36852. +_ACAWK
  36853. _ACEOF
  36854. -rm -f conftest.$ac_objext conftest$ac_exeext
  36855. -if { (ac_try="$ac_link"
  36856. -case "(($ac_try" in
  36857. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36858. - *) ac_try_echo=$ac_try;;
  36859. -esac
  36860. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  36861. -$as_echo "$ac_try_echo") >&5
  36862. - (eval "$ac_link") 2>conftest.er1
  36863. - ac_status=$?
  36864. - grep -v '^ *+' conftest.er1 >conftest.err
  36865. - rm -f conftest.er1
  36866. - cat conftest.err >&5
  36867. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36868. - (exit $ac_status); } && {
  36869. - test -z "$ac_c_werror_flag" ||
  36870. - test ! -s conftest.err
  36871. - } && test -s conftest$ac_exeext && {
  36872. - test "$cross_compiling" = yes ||
  36873. - $as_test_x conftest$ac_exeext
  36874. - }; then
  36875. - ac_cv_lib_pthread_pthread_create=yes
  36876. -else
  36877. - $as_echo "$as_me: failed program was:" >&5
  36878. -sed 's/^/| /' conftest.$ac_ext >&5
  36879. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  36880. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  36881. +fi # test -n "$CONFIG_HEADERS"
  36882. - ac_cv_lib_pthread_pthread_create=no
  36883. -fi
  36884. -rm -rf conftest.dSYM
  36885. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36886. - conftest$ac_exeext conftest.$ac_ext
  36887. -LIBS=$ac_check_lib_save_LIBS
  36888. -fi
  36889. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  36890. -$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  36891. -if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
  36892. - cat >>confdefs.h <<_ACEOF
  36893. -#define HAVE_LIBPTHREAD 1
  36894. -_ACEOF
  36895. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  36896. +shift
  36897. +for ac_tag
  36898. +do
  36899. + case $ac_tag in
  36900. + :[FHLC]) ac_mode=$ac_tag; continue;;
  36901. + esac
  36902. + case $ac_mode$ac_tag in
  36903. + :[FHL]*:*);;
  36904. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  36905. + :[FH]-) ac_tag=-:-;;
  36906. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  36907. + esac
  36908. + ac_save_IFS=$IFS
  36909. + IFS=:
  36910. + set x $ac_tag
  36911. + IFS=$ac_save_IFS
  36912. + shift
  36913. + ac_file=$1
  36914. + shift
  36915. - LIBS="-lpthread $LIBS"
  36916. + case $ac_mode in
  36917. + :L) ac_source=$1;;
  36918. + :[FH])
  36919. + ac_file_inputs=
  36920. + for ac_f
  36921. + do
  36922. + case $ac_f in
  36923. + -) ac_f="$tmp/stdin";;
  36924. + *) # Look for the file first in the build tree, then in the source tree
  36925. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  36926. + # because $ac_f cannot contain `:'.
  36927. + test -f "$ac_f" ||
  36928. + case $ac_f in
  36929. + [\\/$]*) false;;
  36930. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  36931. + esac ||
  36932. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  36933. + esac
  36934. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  36935. + as_fn_append ac_file_inputs " '$ac_f'"
  36936. + done
  36937. -fi
  36938. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  36939. + # use $as_me), people would be surprised to read:
  36940. + # /* config.h. Generated by config.status. */
  36941. + configure_input='Generated from '`
  36942. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  36943. + `' by configure.'
  36944. + if test x"$ac_file" != x-; then
  36945. + configure_input="$ac_file. $configure_input"
  36946. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  36947. +$as_echo "$as_me: creating $ac_file" >&6;}
  36948. + fi
  36949. + # Neutralize special characters interpreted by sed in replacement strings.
  36950. + case $configure_input in #(
  36951. + *\&* | *\|* | *\\* )
  36952. + ac_sed_conf_input=`$as_echo "$configure_input" |
  36953. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  36954. + *) ac_sed_conf_input=$configure_input;;
  36955. + esac
  36956. + case $ac_tag in
  36957. + *:-:* | *:-) cat >"$tmp/stdin" \
  36958. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  36959. + esac
  36960. + ;;
  36961. + esac
  36962. -{ $as_echo "$as_me:$LINENO: checking for clnt_create in -ltirpc" >&5
  36963. -$as_echo_n "checking for clnt_create in -ltirpc... " >&6; }
  36964. -if test "${ac_cv_lib_tirpc_clnt_create+set}" = set; then
  36965. - $as_echo_n "(cached) " >&6
  36966. -else
  36967. - ac_check_lib_save_LIBS=$LIBS
  36968. -LIBS="-ltirpc $LIBS"
  36969. -cat >conftest.$ac_ext <<_ACEOF
  36970. -/* confdefs.h. */
  36971. -_ACEOF
  36972. -cat confdefs.h >>conftest.$ac_ext
  36973. -cat >>conftest.$ac_ext <<_ACEOF
  36974. -/* end confdefs.h. */
  36975. + ac_dir=`$as_dirname -- "$ac_file" ||
  36976. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36977. + X"$ac_file" : 'X\(//\)[^/]' \| \
  36978. + X"$ac_file" : 'X\(//\)$' \| \
  36979. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  36980. +$as_echo X"$ac_file" |
  36981. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36982. + s//\1/
  36983. + q
  36984. + }
  36985. + /^X\(\/\/\)[^/].*/{
  36986. + s//\1/
  36987. + q
  36988. + }
  36989. + /^X\(\/\/\)$/{
  36990. + s//\1/
  36991. + q
  36992. + }
  36993. + /^X\(\/\).*/{
  36994. + s//\1/
  36995. + q
  36996. + }
  36997. + s/.*/./; q'`
  36998. + as_dir="$ac_dir"; as_fn_mkdir_p
  36999. + ac_builddir=.
  37000. -/* Override any GCC internal prototype to avoid an error.
  37001. - Use char because int might match the return type of a GCC
  37002. - builtin and then its argument prototype would still apply. */
  37003. -#ifdef __cplusplus
  37004. -extern "C"
  37005. -#endif
  37006. -char clnt_create ();
  37007. -int
  37008. -main ()
  37009. -{
  37010. -return clnt_create ();
  37011. - ;
  37012. - return 0;
  37013. -}
  37014. -_ACEOF
  37015. -rm -f conftest.$ac_objext conftest$ac_exeext
  37016. -if { (ac_try="$ac_link"
  37017. -case "(($ac_try" in
  37018. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37019. - *) ac_try_echo=$ac_try;;
  37020. +case "$ac_dir" in
  37021. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  37022. +*)
  37023. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  37024. + # A ".." for each directory in $ac_dir_suffix.
  37025. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  37026. + case $ac_top_builddir_sub in
  37027. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  37028. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  37029. + esac ;;
  37030. esac
  37031. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37032. -$as_echo "$ac_try_echo") >&5
  37033. - (eval "$ac_link") 2>conftest.er1
  37034. - ac_status=$?
  37035. - grep -v '^ *+' conftest.er1 >conftest.err
  37036. - rm -f conftest.er1
  37037. - cat conftest.err >&5
  37038. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37039. - (exit $ac_status); } && {
  37040. - test -z "$ac_c_werror_flag" ||
  37041. - test ! -s conftest.err
  37042. - } && test -s conftest$ac_exeext && {
  37043. - test "$cross_compiling" = yes ||
  37044. - $as_test_x conftest$ac_exeext
  37045. - }; then
  37046. - ac_cv_lib_tirpc_clnt_create=yes
  37047. -else
  37048. - $as_echo "$as_me: failed program was:" >&5
  37049. -sed 's/^/| /' conftest.$ac_ext >&5
  37050. -
  37051. - ac_cv_lib_tirpc_clnt_create=no
  37052. -fi
  37053. -
  37054. -rm -rf conftest.dSYM
  37055. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37056. - conftest$ac_exeext conftest.$ac_ext
  37057. -LIBS=$ac_check_lib_save_LIBS
  37058. -fi
  37059. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_create" >&5
  37060. -$as_echo "$ac_cv_lib_tirpc_clnt_create" >&6; }
  37061. -if test "x$ac_cv_lib_tirpc_clnt_create" = x""yes; then
  37062. - cat >>confdefs.h <<_ACEOF
  37063. -#define HAVE_LIBTIRPC 1
  37064. -_ACEOF
  37065. +ac_abs_top_builddir=$ac_pwd
  37066. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  37067. +# for backward compatibility:
  37068. +ac_top_builddir=$ac_top_build_prefix
  37069. - LIBS="-ltirpc $LIBS"
  37070. +case $srcdir in
  37071. + .) # We are building in place.
  37072. + ac_srcdir=.
  37073. + ac_top_srcdir=$ac_top_builddir_sub
  37074. + ac_abs_top_srcdir=$ac_pwd ;;
  37075. + [\\/]* | ?:[\\/]* ) # Absolute name.
  37076. + ac_srcdir=$srcdir$ac_dir_suffix;
  37077. + ac_top_srcdir=$srcdir
  37078. + ac_abs_top_srcdir=$srcdir ;;
  37079. + *) # Relative name.
  37080. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  37081. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  37082. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  37083. +esac
  37084. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  37085. -fi
  37086. -# Check whether --enable-libwrap was given.
  37087. -if test "${enable_libwrap+set}" = set; then
  37088. - enableval=$enable_libwrap; case "${enableval}" in
  37089. - yes) libwarp=true
  37090. + case $ac_mode in
  37091. + :F)
  37092. + #
  37093. + # CONFIG_FILE
  37094. + #
  37095. -{ $as_echo "$as_me:$LINENO: checking for hosts_access in -lwrap" >&5
  37096. -$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
  37097. -if test "${ac_cv_lib_wrap_hosts_access+set}" = set; then
  37098. - $as_echo_n "(cached) " >&6
  37099. -else
  37100. - ac_check_lib_save_LIBS=$LIBS
  37101. -LIBS="-lwrap $LIBS"
  37102. -cat >conftest.$ac_ext <<_ACEOF
  37103. -/* confdefs.h. */
  37104. + case $INSTALL in
  37105. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  37106. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  37107. + esac
  37108. + ac_MKDIR_P=$MKDIR_P
  37109. + case $MKDIR_P in
  37110. + [\\/$]* | ?:[\\/]* ) ;;
  37111. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  37112. + esac
  37113. _ACEOF
  37114. -cat confdefs.h >>conftest.$ac_ext
  37115. -cat >>conftest.$ac_ext <<_ACEOF
  37116. -/* end confdefs.h. */
  37117. -/* Override any GCC internal prototype to avoid an error.
  37118. - Use char because int might match the return type of a GCC
  37119. - builtin and then its argument prototype would still apply. */
  37120. -#ifdef __cplusplus
  37121. -extern "C"
  37122. -#endif
  37123. -char hosts_access ();
  37124. -int
  37125. -main ()
  37126. -{
  37127. -return hosts_access ();
  37128. - ;
  37129. - return 0;
  37130. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37131. +# If the template does not know about datarootdir, expand it.
  37132. +# FIXME: This hack should be removed a few years after 2.60.
  37133. +ac_datarootdir_hack=; ac_datarootdir_seen=
  37134. +ac_sed_dataroot='
  37135. +/datarootdir/ {
  37136. + p
  37137. + q
  37138. }
  37139. +/@datadir@/p
  37140. +/@docdir@/p
  37141. +/@infodir@/p
  37142. +/@localedir@/p
  37143. +/@mandir@/p'
  37144. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  37145. +*datarootdir*) ac_datarootdir_seen=yes;;
  37146. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  37147. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  37148. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  37149. _ACEOF
  37150. -rm -f conftest.$ac_objext conftest$ac_exeext
  37151. -if { (ac_try="$ac_link"
  37152. -case "(($ac_try" in
  37153. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37154. - *) ac_try_echo=$ac_try;;
  37155. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37156. + ac_datarootdir_hack='
  37157. + s&@datadir@&$datadir&g
  37158. + s&@docdir@&$docdir&g
  37159. + s&@infodir@&$infodir&g
  37160. + s&@localedir@&$localedir&g
  37161. + s&@mandir@&$mandir&g
  37162. + s&\\\${datarootdir}&$datarootdir&g' ;;
  37163. esac
  37164. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  37165. -$as_echo "$ac_try_echo") >&5
  37166. - (eval "$ac_link") 2>conftest.er1
  37167. - ac_status=$?
  37168. - grep -v '^ *+' conftest.er1 >conftest.err
  37169. - rm -f conftest.er1
  37170. - cat conftest.err >&5
  37171. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37172. - (exit $ac_status); } && {
  37173. - test -z "$ac_c_werror_flag" ||
  37174. - test ! -s conftest.err
  37175. - } && test -s conftest$ac_exeext && {
  37176. - test "$cross_compiling" = yes ||
  37177. - $as_test_x conftest$ac_exeext
  37178. - }; then
  37179. - ac_cv_lib_wrap_hosts_access=yes
  37180. -else
  37181. - $as_echo "$as_me: failed program was:" >&5
  37182. -sed 's/^/| /' conftest.$ac_ext >&5
  37183. -
  37184. - ac_cv_lib_wrap_hosts_access=no
  37185. -fi
  37186. +_ACEOF
  37187. -rm -rf conftest.dSYM
  37188. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  37189. - conftest$ac_exeext conftest.$ac_ext
  37190. -LIBS=$ac_check_lib_save_LIBS
  37191. -fi
  37192. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_hosts_access" >&5
  37193. -$as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
  37194. -if test "x$ac_cv_lib_wrap_hosts_access" = x""yes; then
  37195. - cat >>confdefs.h <<_ACEOF
  37196. -#define HAVE_LIBWRAP 1
  37197. +# Neutralize VPATH when `$srcdir' = `.'.
  37198. +# Shell code in configure.ac might set extrasub.
  37199. +# FIXME: do we really want to maintain this feature?
  37200. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37201. +ac_sed_extra="$ac_vpsub
  37202. +$extrasub
  37203. _ACEOF
  37204. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37205. +:t
  37206. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  37207. +s|@configure_input@|$ac_sed_conf_input|;t t
  37208. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  37209. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  37210. +s&@srcdir@&$ac_srcdir&;t t
  37211. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  37212. +s&@top_srcdir@&$ac_top_srcdir&;t t
  37213. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  37214. +s&@builddir@&$ac_builddir&;t t
  37215. +s&@abs_builddir@&$ac_abs_builddir&;t t
  37216. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  37217. +s&@INSTALL@&$ac_INSTALL&;t t
  37218. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  37219. +$ac_datarootdir_hack
  37220. +"
  37221. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  37222. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  37223. - LIBS="-lwrap $LIBS"
  37224. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  37225. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  37226. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  37227. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  37228. +which seems to be undefined. Please make sure it is defined." >&5
  37229. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  37230. +which seems to be undefined. Please make sure it is defined." >&2;}
  37231. -fi
  37232. + rm -f "$tmp/stdin"
  37233. + case $ac_file in
  37234. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  37235. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  37236. + esac \
  37237. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  37238. + ;;
  37239. + :H)
  37240. + #
  37241. + # CONFIG_HEADER
  37242. + #
  37243. + if test x"$ac_file" != x-; then
  37244. + {
  37245. + $as_echo "/* $configure_input */" \
  37246. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  37247. + } >"$tmp/config.h" \
  37248. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  37249. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  37250. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  37251. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  37252. + else
  37253. + rm -f "$ac_file"
  37254. + mv "$tmp/config.h" "$ac_file" \
  37255. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  37256. + fi
  37257. + else
  37258. + $as_echo "/* $configure_input */" \
  37259. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  37260. + || as_fn_error "could not create -" "$LINENO" 5
  37261. + fi
  37262. +# Compute "$ac_file"'s index in $config_headers.
  37263. +_am_arg="$ac_file"
  37264. +_am_stamp_count=1
  37265. +for _am_header in $config_headers :; do
  37266. + case $_am_header in
  37267. + $_am_arg | $_am_arg:* )
  37268. + break ;;
  37269. + * )
  37270. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  37271. + esac
  37272. +done
  37273. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  37274. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37275. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  37276. + X"$_am_arg" : 'X\(//\)$' \| \
  37277. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  37278. +$as_echo X"$_am_arg" |
  37279. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37280. + s//\1/
  37281. + q
  37282. + }
  37283. + /^X\(\/\/\)[^/].*/{
  37284. + s//\1/
  37285. + q
  37286. + }
  37287. + /^X\(\/\/\)$/{
  37288. + s//\1/
  37289. + q
  37290. + }
  37291. + /^X\(\/\).*/{
  37292. + s//\1/
  37293. + q
  37294. + }
  37295. + s/.*/./; q'`/stamp-h$_am_stamp_count
  37296. ;;
  37297. - no) libwarp=no ;;
  37298. - *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libwrap" >&5
  37299. -$as_echo "$as_me: error: bad value ${enableval} for --enable-libwrap" >&2;}
  37300. - { (exit 1); exit 1; }; } ;;
  37301. - esac
  37302. -else
  37303. - libwarp=false
  37304. -fi
  37305. - if test x$libwarp = xtrue; then
  37306. - LIBWRAP_TRUE=
  37307. - LIBWRAP_FALSE='#'
  37308. -else
  37309. - LIBWRAP_TRUE='#'
  37310. - LIBWRAP_FALSE=
  37311. -fi
  37312. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  37313. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  37314. + ;;
  37315. + esac
  37316. -ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
  37317. + case $ac_file$ac_mode in
  37318. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  37319. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  37320. + # are listed without --file. Let's play safe and only enable the eval
  37321. + # if we detect the quoting.
  37322. + case $CONFIG_FILES in
  37323. + *\'*) eval set x "$CONFIG_FILES" ;;
  37324. + *) set x $CONFIG_FILES ;;
  37325. + esac
  37326. + shift
  37327. + for mf
  37328. + do
  37329. + # Strip MF so we end up with the name of the file.
  37330. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  37331. + # Check whether this is an Automake generated Makefile or not.
  37332. + # We used to match only the files named `Makefile.in', but
  37333. + # some people rename them; so instead we look at the file content.
  37334. + # Grep'ing the first line is not enough: some people post-process
  37335. + # each Makefile.in and add a new line on top of each file to say so.
  37336. + # Grep'ing the whole file is not good either: AIX grep has a line
  37337. + # limit of 2048, but all sed's we know have understand at least 4000.
  37338. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  37339. + dirpart=`$as_dirname -- "$mf" ||
  37340. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37341. + X"$mf" : 'X\(//\)[^/]' \| \
  37342. + X"$mf" : 'X\(//\)$' \| \
  37343. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  37344. +$as_echo X"$mf" |
  37345. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37346. + s//\1/
  37347. + q
  37348. + }
  37349. + /^X\(\/\/\)[^/].*/{
  37350. + s//\1/
  37351. + q
  37352. + }
  37353. + /^X\(\/\/\)$/{
  37354. + s//\1/
  37355. + q
  37356. + }
  37357. + /^X\(\/\).*/{
  37358. + s//\1/
  37359. + q
  37360. + }
  37361. + s/.*/./; q'`
  37362. + else
  37363. + continue
  37364. + fi
  37365. + # Extract the definition of DEPDIR, am__include, and am__quote
  37366. + # from the Makefile without running `make'.
  37367. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  37368. + test -z "$DEPDIR" && continue
  37369. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  37370. + test -z "am__include" && continue
  37371. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  37372. + # When using ansi2knr, U may be empty or an underscore; expand it
  37373. + U=`sed -n 's/^U = //p' < "$mf"`
  37374. + # Find all dependency output files, they are included files with
  37375. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  37376. + # simplest approach to changing $(DEPDIR) to its actual value in the
  37377. + # expansion.
  37378. + for file in `sed -n "
  37379. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  37380. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  37381. + # Make sure the directory exists.
  37382. + test -f "$dirpart/$file" && continue
  37383. + fdir=`$as_dirname -- "$file" ||
  37384. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37385. + X"$file" : 'X\(//\)[^/]' \| \
  37386. + X"$file" : 'X\(//\)$' \| \
  37387. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  37388. +$as_echo X"$file" |
  37389. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37390. + s//\1/
  37391. + q
  37392. + }
  37393. + /^X\(\/\/\)[^/].*/{
  37394. + s//\1/
  37395. + q
  37396. + }
  37397. + /^X\(\/\/\)$/{
  37398. + s//\1/
  37399. + q
  37400. + }
  37401. + /^X\(\/\).*/{
  37402. + s//\1/
  37403. + q
  37404. + }
  37405. + s/.*/./; q'`
  37406. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  37407. + # echo "creating $dirpart/$file"
  37408. + echo '# dummy' > "$dirpart/$file"
  37409. + done
  37410. + done
  37411. +}
  37412. + ;;
  37413. + "libtool":C)
  37414. -cat >confcache <<\_ACEOF
  37415. -# This file is a shell script that caches the results of configure
  37416. -# tests run on this system so they can be shared between configure
  37417. -# scripts and configure runs, see configure's option --config-cache.
  37418. -# It is not useful on other systems. If it contains results you don't
  37419. -# want to keep, you may remove or edit it.
  37420. -#
  37421. -# config.status only pays attention to the cache file if you give it
  37422. -# the --recheck option to rerun configure.
  37423. -#
  37424. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  37425. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  37426. -# following values.
  37427. + # See if we are running on zsh, and set the options which allow our
  37428. + # commands through without removal of \ escapes.
  37429. + if test -n "${ZSH_VERSION+set}" ; then
  37430. + setopt NO_GLOB_SUBST
  37431. + fi
  37432. -_ACEOF
  37433. + cfgfile="${ofile}T"
  37434. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  37435. + $RM "$cfgfile"
  37436. -# The following way of writing the cache mishandles newlines in values,
  37437. -# but we know of no workaround that is simple, portable, and efficient.
  37438. -# So, we kill variables containing newlines.
  37439. -# Ultrix sh set writes to stderr and can't be redirected directly,
  37440. -# and sets the high bit in the cache file unless we assign to the vars.
  37441. -(
  37442. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  37443. - eval ac_val=\$$ac_var
  37444. - case $ac_val in #(
  37445. - *${as_nl}*)
  37446. - case $ac_var in #(
  37447. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  37448. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  37449. - esac
  37450. - case $ac_var in #(
  37451. - _ | IFS | as_nl) ;; #(
  37452. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  37453. - *) $as_unset $ac_var ;;
  37454. - esac ;;
  37455. - esac
  37456. - done
  37457. + cat <<_LT_EOF >> "$cfgfile"
  37458. +#! $SHELL
  37459. - (set) 2>&1 |
  37460. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  37461. - *${as_nl}ac_space=\ *)
  37462. - # `set' does not quote correctly, so add quotes (double-quote
  37463. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  37464. - sed -n \
  37465. - "s/'/'\\\\''/g;
  37466. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  37467. - ;; #(
  37468. - *)
  37469. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  37470. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  37471. - ;;
  37472. - esac |
  37473. - sort
  37474. -) |
  37475. - sed '
  37476. - /^ac_cv_env_/b end
  37477. - t clear
  37478. - :clear
  37479. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  37480. - t end
  37481. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  37482. - :end' >>confcache
  37483. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  37484. - if test -w "$cache_file"; then
  37485. - test "x$cache_file" != "x/dev/null" &&
  37486. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  37487. -$as_echo "$as_me: updating cache $cache_file" >&6;}
  37488. - cat confcache >$cache_file
  37489. - else
  37490. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  37491. -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  37492. - fi
  37493. -fi
  37494. -rm -f confcache
  37495. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  37496. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  37497. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37498. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  37499. +#
  37500. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  37501. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  37502. +# Written by Gordon Matzigkeit, 1996
  37503. +#
  37504. +# This file is part of GNU Libtool.
  37505. +#
  37506. +# GNU Libtool is free software; you can redistribute it and/or
  37507. +# modify it under the terms of the GNU General Public License as
  37508. +# published by the Free Software Foundation; either version 2 of
  37509. +# the License, or (at your option) any later version.
  37510. +#
  37511. +# As a special exception to the GNU General Public License,
  37512. +# if you distribute this file as part of a program or library that
  37513. +# is built using GNU Libtool, you may include this file under the
  37514. +# same distribution terms that you use for the rest of that program.
  37515. +#
  37516. +# GNU Libtool is distributed in the hope that it will be useful,
  37517. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  37518. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37519. +# GNU General Public License for more details.
  37520. +#
  37521. +# You should have received a copy of the GNU General Public License
  37522. +# along with GNU Libtool; see the file COPYING. If not, a copy
  37523. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  37524. +# obtained by writing to the Free Software Foundation, Inc.,
  37525. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  37526. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  37527. -# Let make expand exec_prefix.
  37528. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  37529. -DEFS=-DHAVE_CONFIG_H
  37530. +# The names of the tagged configurations supported by this script.
  37531. +available_tags=""
  37532. -ac_libobjs=
  37533. -ac_ltlibobjs=
  37534. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  37535. - # 1. Remove the extension, and $U if already installed.
  37536. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  37537. - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  37538. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  37539. - # will be set to the directory where LIBOBJS objects are built.
  37540. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  37541. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  37542. -done
  37543. -LIBOBJS=$ac_libobjs
  37544. +# ### BEGIN LIBTOOL CONFIG
  37545. -LTLIBOBJS=$ac_ltlibobjs
  37546. +# Which release of libtool.m4 was used?
  37547. +macro_version=$macro_version
  37548. +macro_revision=$macro_revision
  37549. +# Whether or not to build shared libraries.
  37550. +build_libtool_libs=$enable_shared
  37551. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  37552. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  37553. -Usually this means the macro was only invoked conditionally." >&5
  37554. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  37555. -Usually this means the macro was only invoked conditionally." >&2;}
  37556. - { (exit 1); exit 1; }; }
  37557. -fi
  37558. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  37559. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  37560. -Usually this means the macro was only invoked conditionally." >&5
  37561. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  37562. -Usually this means the macro was only invoked conditionally." >&2;}
  37563. - { (exit 1); exit 1; }; }
  37564. -fi
  37565. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  37566. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  37567. -Usually this means the macro was only invoked conditionally." >&5
  37568. -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  37569. -Usually this means the macro was only invoked conditionally." >&2;}
  37570. - { (exit 1); exit 1; }; }
  37571. -fi
  37572. -if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  37573. - { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
  37574. -Usually this means the macro was only invoked conditionally." >&5
  37575. -$as_echo "$as_me: error: conditional \"DEBUG\" was never defined.
  37576. -Usually this means the macro was only invoked conditionally." >&2;}
  37577. - { (exit 1); exit 1; }; }
  37578. -fi
  37579. -if test -z "${WARMSTART_TRUE}" && test -z "${WARMSTART_FALSE}"; then
  37580. - { { $as_echo "$as_me:$LINENO: error: conditional \"WARMSTART\" was never defined.
  37581. -Usually this means the macro was only invoked conditionally." >&5
  37582. -$as_echo "$as_me: error: conditional \"WARMSTART\" was never defined.
  37583. -Usually this means the macro was only invoked conditionally." >&2;}
  37584. - { (exit 1); exit 1; }; }
  37585. -fi
  37586. -if test -z "${LIBWRAP_TRUE}" && test -z "${LIBWRAP_FALSE}"; then
  37587. - { { $as_echo "$as_me:$LINENO: error: conditional \"LIBWRAP\" was never defined.
  37588. -Usually this means the macro was only invoked conditionally." >&5
  37589. -$as_echo "$as_me: error: conditional \"LIBWRAP\" was never defined.
  37590. -Usually this means the macro was only invoked conditionally." >&2;}
  37591. - { (exit 1); exit 1; }; }
  37592. -fi
  37593. +# Whether or not to build static libraries.
  37594. +build_old_libs=$enable_static
  37595. -: ${CONFIG_STATUS=./config.status}
  37596. -ac_write_fail=0
  37597. -ac_clean_files_save=$ac_clean_files
  37598. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  37599. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  37600. -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  37601. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37602. -#! $SHELL
  37603. -# Generated by $as_me.
  37604. -# Run this file to recreate the current configuration.
  37605. -# Compiler output produced by configure, useful for debugging
  37606. -# configure, is in config.log if it exists.
  37607. +# What type of objects to build.
  37608. +pic_mode=$pic_mode
  37609. -debug=false
  37610. -ac_cs_recheck=false
  37611. -ac_cs_silent=false
  37612. -SHELL=\${CONFIG_SHELL-$SHELL}
  37613. -_ACEOF
  37614. +# Whether or not to optimize for fast installation.
  37615. +fast_install=$enable_fast_install
  37616. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37617. -## --------------------- ##
  37618. -## M4sh Initialization. ##
  37619. -## --------------------- ##
  37620. +# The host system.
  37621. +host_alias=$host_alias
  37622. +host=$host
  37623. +host_os=$host_os
  37624. -# Be more Bourne compatible
  37625. -DUALCASE=1; export DUALCASE # for MKS sh
  37626. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  37627. - emulate sh
  37628. - NULLCMD=:
  37629. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  37630. - # is contrary to our usage. Disable this feature.
  37631. - alias -g '${1+"$@"}'='"$@"'
  37632. - setopt NO_GLOB_SUBST
  37633. -else
  37634. - case `(set -o) 2>/dev/null` in
  37635. - *posix*) set -o posix ;;
  37636. -esac
  37637. +# The build system.
  37638. +build_alias=$build_alias
  37639. +build=$build
  37640. +build_os=$build_os
  37641. -fi
  37642. +# A sed program that does not truncate output.
  37643. +SED=$lt_SED
  37644. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  37645. +Xsed="\$SED -e 1s/^X//"
  37646. +# A grep program that handles long lines.
  37647. +GREP=$lt_GREP
  37648. +# An ERE matcher.
  37649. +EGREP=$lt_EGREP
  37650. -# PATH needs CR
  37651. -# Avoid depending upon Character Ranges.
  37652. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37653. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  37654. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37655. -as_cr_digits='0123456789'
  37656. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  37657. +# A literal string matcher.
  37658. +FGREP=$lt_FGREP
  37659. -as_nl='
  37660. -'
  37661. -export as_nl
  37662. -# Printing a long string crashes Solaris 7 /usr/bin/printf.
  37663. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  37664. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37665. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  37666. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  37667. - as_echo='printf %s\n'
  37668. - as_echo_n='printf %s'
  37669. -else
  37670. - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  37671. - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  37672. - as_echo_n='/usr/ucb/echo -n'
  37673. - else
  37674. - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  37675. - as_echo_n_body='eval
  37676. - arg=$1;
  37677. - case $arg in
  37678. - *"$as_nl"*)
  37679. - expr "X$arg" : "X\\(.*\\)$as_nl";
  37680. - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  37681. - esac;
  37682. - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  37683. - '
  37684. - export as_echo_n_body
  37685. - as_echo_n='sh -c $as_echo_n_body as_echo'
  37686. - fi
  37687. - export as_echo_body
  37688. - as_echo='sh -c $as_echo_body as_echo'
  37689. -fi
  37690. +# A BSD- or MS-compatible name lister.
  37691. +NM=$lt_NM
  37692. -# The user is always right.
  37693. -if test "${PATH_SEPARATOR+set}" != set; then
  37694. - PATH_SEPARATOR=:
  37695. - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  37696. - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  37697. - PATH_SEPARATOR=';'
  37698. - }
  37699. -fi
  37700. +# Whether we need soft or hard links.
  37701. +LN_S=$lt_LN_S
  37702. -# Support unset when possible.
  37703. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  37704. - as_unset=unset
  37705. -else
  37706. - as_unset=false
  37707. -fi
  37708. +# What is the maximum length of a command?
  37709. +max_cmd_len=$max_cmd_len
  37710. +# Object file suffix (normally "o").
  37711. +objext=$ac_objext
  37712. -# IFS
  37713. -# We need space, tab and new line, in precisely that order. Quoting is
  37714. -# there to prevent editors from complaining about space-tab.
  37715. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  37716. -# splitting by setting IFS to empty value.)
  37717. -IFS=" "" $as_nl"
  37718. +# Executable file suffix (normally "").
  37719. +exeext=$exeext
  37720. -# Find who we are. Look in the path if we contain no directory separator.
  37721. -case $0 in
  37722. - *[\\/]* ) as_myself=$0 ;;
  37723. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37724. -for as_dir in $PATH
  37725. -do
  37726. - IFS=$as_save_IFS
  37727. - test -z "$as_dir" && as_dir=.
  37728. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  37729. -done
  37730. -IFS=$as_save_IFS
  37731. +# whether the shell understands "unset".
  37732. +lt_unset=$lt_unset
  37733. - ;;
  37734. -esac
  37735. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  37736. -# in which case we are not to be found in the path.
  37737. -if test "x$as_myself" = x; then
  37738. - as_myself=$0
  37739. -fi
  37740. -if test ! -f "$as_myself"; then
  37741. - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  37742. - { (exit 1); exit 1; }
  37743. -fi
  37744. +# turn spaces into newlines.
  37745. +SP2NL=$lt_lt_SP2NL
  37746. -# Work around bugs in pre-3.0 UWIN ksh.
  37747. -for as_var in ENV MAIL MAILPATH
  37748. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  37749. -done
  37750. -PS1='$ '
  37751. -PS2='> '
  37752. -PS4='+ '
  37753. +# turn newlines into spaces.
  37754. +NL2SP=$lt_lt_NL2SP
  37755. -# NLS nuisances.
  37756. -LC_ALL=C
  37757. -export LC_ALL
  37758. -LANGUAGE=C
  37759. -export LANGUAGE
  37760. +# How to create reloadable object files.
  37761. +reload_flag=$lt_reload_flag
  37762. +reload_cmds=$lt_reload_cmds
  37763. -# Required to use basename.
  37764. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  37765. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37766. - as_expr=expr
  37767. -else
  37768. - as_expr=false
  37769. -fi
  37770. +# An object symbol dumper.
  37771. +OBJDUMP=$lt_OBJDUMP
  37772. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  37773. - as_basename=basename
  37774. -else
  37775. - as_basename=false
  37776. -fi
  37777. +# Method to check whether dependent libraries are shared objects.
  37778. +deplibs_check_method=$lt_deplibs_check_method
  37779. +# Command to use when deplibs_check_method == "file_magic".
  37780. +file_magic_cmd=$lt_file_magic_cmd
  37781. -# Name of the executable.
  37782. -as_me=`$as_basename -- "$0" ||
  37783. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  37784. - X"$0" : 'X\(//\)$' \| \
  37785. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  37786. -$as_echo X/"$0" |
  37787. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  37788. - s//\1/
  37789. - q
  37790. - }
  37791. - /^X\/\(\/\/\)$/{
  37792. - s//\1/
  37793. - q
  37794. - }
  37795. - /^X\/\(\/\).*/{
  37796. - s//\1/
  37797. - q
  37798. - }
  37799. - s/.*/./; q'`
  37800. +# The archiver.
  37801. +AR=$lt_AR
  37802. +AR_FLAGS=$lt_AR_FLAGS
  37803. -# CDPATH.
  37804. -$as_unset CDPATH
  37805. +# A symbol stripping program.
  37806. +STRIP=$lt_STRIP
  37807. +# Commands used to install an old-style archive.
  37808. +RANLIB=$lt_RANLIB
  37809. +old_postinstall_cmds=$lt_old_postinstall_cmds
  37810. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37811. +# A C compiler.
  37812. +LTCC=$lt_CC
  37813. - as_lineno_1=$LINENO
  37814. - as_lineno_2=$LINENO
  37815. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  37816. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  37817. -
  37818. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  37819. - # uniformly replaced by the line number. The first 'sed' inserts a
  37820. - # line-number line after each line using $LINENO; the second 'sed'
  37821. - # does the real work. The second script uses 'N' to pair each
  37822. - # line-number line with the line containing $LINENO, and appends
  37823. - # trailing '-' during substitution so that $LINENO is not a special
  37824. - # case at line end.
  37825. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  37826. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  37827. - # E. McMahon (1931-1989) for sed's syntax. :-)
  37828. - sed -n '
  37829. - p
  37830. - /[$]LINENO/=
  37831. - ' <$as_myself |
  37832. - sed '
  37833. - s/[$]LINENO.*/&-/
  37834. - t lineno
  37835. - b
  37836. - :lineno
  37837. - N
  37838. - :loop
  37839. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  37840. - t loop
  37841. - s/-\n.*//
  37842. - ' >$as_me.lineno &&
  37843. - chmod +x "$as_me.lineno" ||
  37844. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  37845. - { (exit 1); exit 1; }; }
  37846. +# LTCC compiler flags.
  37847. +LTCFLAGS=$lt_CFLAGS
  37848. - # Don't try to exec as it changes $[0], causing all sort of problems
  37849. - # (the dirname of $[0] is not the place where we might find the
  37850. - # original and so on. Autoconf is especially sensitive to this).
  37851. - . "./$as_me.lineno"
  37852. - # Exit status is that of the last command.
  37853. - exit
  37854. -}
  37855. +# Take the output of nm and produce a listing of raw symbols and C names.
  37856. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37857. +
  37858. +# Transform the output of nm in a proper C declaration.
  37859. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37860. +
  37861. +# Transform the output of nm in a C name address pair.
  37862. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37863. +
  37864. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  37865. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  37866. +
  37867. +# The name of the directory that contains temporary libtool files.
  37868. +objdir=$objdir
  37869. +
  37870. +# Shell to use when invoking shell scripts.
  37871. +SHELL=$lt_SHELL
  37872. +
  37873. +# An echo program that does not interpret backslashes.
  37874. +ECHO=$lt_ECHO
  37875. +
  37876. +# Used to examine libraries when file_magic_cmd begins with "file".
  37877. +MAGIC_CMD=$MAGIC_CMD
  37878. +
  37879. +# Must we lock files when doing compilation?
  37880. +need_locks=$lt_need_locks
  37881. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  37882. +DSYMUTIL=$lt_DSYMUTIL
  37883. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  37884. - as_dirname=dirname
  37885. -else
  37886. - as_dirname=false
  37887. -fi
  37888. +# Tool to change global to local symbols on Mac OS X.
  37889. +NMEDIT=$lt_NMEDIT
  37890. -ECHO_C= ECHO_N= ECHO_T=
  37891. -case `echo -n x` in
  37892. --n*)
  37893. - case `echo 'x\c'` in
  37894. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  37895. - *) ECHO_C='\c';;
  37896. - esac;;
  37897. -*)
  37898. - ECHO_N='-n';;
  37899. -esac
  37900. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  37901. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37902. - as_expr=expr
  37903. -else
  37904. - as_expr=false
  37905. -fi
  37906. +# Tool to manipulate fat objects and archives on Mac OS X.
  37907. +LIPO=$lt_LIPO
  37908. -rm -f conf$$ conf$$.exe conf$$.file
  37909. -if test -d conf$$.dir; then
  37910. - rm -f conf$$.dir/conf$$.file
  37911. -else
  37912. - rm -f conf$$.dir
  37913. - mkdir conf$$.dir 2>/dev/null
  37914. -fi
  37915. -if (echo >conf$$.file) 2>/dev/null; then
  37916. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  37917. - as_ln_s='ln -s'
  37918. - # ... but there are two gotchas:
  37919. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  37920. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  37921. - # In both cases, we have to default to `cp -p'.
  37922. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  37923. - as_ln_s='cp -p'
  37924. - elif ln conf$$.file conf$$ 2>/dev/null; then
  37925. - as_ln_s=ln
  37926. - else
  37927. - as_ln_s='cp -p'
  37928. - fi
  37929. -else
  37930. - as_ln_s='cp -p'
  37931. -fi
  37932. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  37933. -rmdir conf$$.dir 2>/dev/null
  37934. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  37935. +OTOOL=$lt_OTOOL
  37936. -if mkdir -p . 2>/dev/null; then
  37937. - as_mkdir_p=:
  37938. -else
  37939. - test -d ./-p && rmdir ./-p
  37940. - as_mkdir_p=false
  37941. -fi
  37942. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  37943. +OTOOL64=$lt_OTOOL64
  37944. -if test -x / >/dev/null 2>&1; then
  37945. - as_test_x='test -x'
  37946. -else
  37947. - if ls -dL / >/dev/null 2>&1; then
  37948. - as_ls_L_option=L
  37949. - else
  37950. - as_ls_L_option=
  37951. - fi
  37952. - as_test_x='
  37953. - eval sh -c '\''
  37954. - if test -d "$1"; then
  37955. - test -d "$1/.";
  37956. - else
  37957. - case $1 in
  37958. - -*)set "./$1";;
  37959. - esac;
  37960. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  37961. - ???[sx]*):;;*)false;;esac;fi
  37962. - '\'' sh
  37963. - '
  37964. -fi
  37965. -as_executable_p=$as_test_x
  37966. +# Old archive suffix (normally "a").
  37967. +libext=$libext
  37968. -# Sed expression to map a string onto a valid CPP name.
  37969. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  37970. +# Shared library suffix (normally ".so").
  37971. +shrext_cmds=$lt_shrext_cmds
  37972. -# Sed expression to map a string onto a valid variable name.
  37973. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  37974. +# The commands to extract the exported symbol list from a shared archive.
  37975. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37976. +# Variables whose values should be saved in libtool wrapper scripts and
  37977. +# restored at link time.
  37978. +variables_saved_for_relink=$lt_variables_saved_for_relink
  37979. -exec 6>&1
  37980. +# Do we need the "lib" prefix for modules?
  37981. +need_lib_prefix=$need_lib_prefix
  37982. -# Save the log message, to keep $[0] and so on meaningful, and to
  37983. -# report actual input values of CONFIG_FILES etc. instead of their
  37984. -# values after options handling.
  37985. -ac_log="
  37986. -This file was extended by rpcbind $as_me 0.2.0, which was
  37987. -generated by GNU Autoconf 2.63. Invocation command line was
  37988. +# Do we need a version for libraries?
  37989. +need_version=$need_version
  37990. - CONFIG_FILES = $CONFIG_FILES
  37991. - CONFIG_HEADERS = $CONFIG_HEADERS
  37992. - CONFIG_LINKS = $CONFIG_LINKS
  37993. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  37994. - $ $0 $@
  37995. +# Library versioning type.
  37996. +version_type=$version_type
  37997. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  37998. -"
  37999. +# Shared library runtime path variable.
  38000. +runpath_var=$runpath_var
  38001. -_ACEOF
  38002. +# Shared library path variable.
  38003. +shlibpath_var=$shlibpath_var
  38004. -case $ac_config_files in *"
  38005. -"*) set x $ac_config_files; shift; ac_config_files=$*;;
  38006. -esac
  38007. +# Is shlibpath searched before the hard-coded library search path?
  38008. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38009. -case $ac_config_headers in *"
  38010. -"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  38011. -esac
  38012. +# Format of library name prefix.
  38013. +libname_spec=$lt_libname_spec
  38014. +# List of archive names. First name is the real one, the rest are links.
  38015. +# The last name is the one that the linker finds with -lNAME
  38016. +library_names_spec=$lt_library_names_spec
  38017. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38018. -# Files that config.status was made for.
  38019. -config_files="$ac_config_files"
  38020. -config_headers="$ac_config_headers"
  38021. -config_commands="$ac_config_commands"
  38022. +# The coded name of the library, if different from the real name.
  38023. +soname_spec=$lt_soname_spec
  38024. -_ACEOF
  38025. +# Command to use after installation of a shared archive.
  38026. +postinstall_cmds=$lt_postinstall_cmds
  38027. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38028. -ac_cs_usage="\
  38029. -\`$as_me' instantiates files from templates according to the
  38030. -current configuration.
  38031. +# Command to use after uninstallation of a shared archive.
  38032. +postuninstall_cmds=$lt_postuninstall_cmds
  38033. -Usage: $0 [OPTION]... [FILE]...
  38034. +# Commands used to finish a libtool library installation in a directory.
  38035. +finish_cmds=$lt_finish_cmds
  38036. - -h, --help print this help, then exit
  38037. - -V, --version print version number and configuration settings, then exit
  38038. - -q, --quiet, --silent
  38039. - do not print progress messages
  38040. - -d, --debug don't remove temporary files
  38041. - --recheck update $as_me by reconfiguring in the same conditions
  38042. - --file=FILE[:TEMPLATE]
  38043. - instantiate the configuration file FILE
  38044. - --header=FILE[:TEMPLATE]
  38045. - instantiate the configuration header FILE
  38046. +# As "finish_cmds", except a single script fragment to be evaled but
  38047. +# not shown.
  38048. +finish_eval=$lt_finish_eval
  38049. -Configuration files:
  38050. -$config_files
  38051. +# Whether we should hardcode library paths into libraries.
  38052. +hardcode_into_libs=$hardcode_into_libs
  38053. -Configuration headers:
  38054. -$config_headers
  38055. +# Compile-time system search path for libraries.
  38056. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38057. -Configuration commands:
  38058. -$config_commands
  38059. +# Run-time system search path for libraries.
  38060. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38061. -Report bugs to <bug-autoconf@gnu.org>."
  38062. +# Whether dlopen is supported.
  38063. +dlopen_support=$enable_dlopen
  38064. -_ACEOF
  38065. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38066. -ac_cs_version="\\
  38067. -rpcbind config.status 0.2.0
  38068. -configured by $0, generated by GNU Autoconf 2.63,
  38069. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  38070. +# Whether dlopen of programs is supported.
  38071. +dlopen_self=$enable_dlopen_self
  38072. -Copyright (C) 2008 Free Software Foundation, Inc.
  38073. -This config.status script is free software; the Free Software Foundation
  38074. -gives unlimited permission to copy, distribute and modify it."
  38075. +# Whether dlopen of statically linked programs is supported.
  38076. +dlopen_self_static=$enable_dlopen_self_static
  38077. -ac_pwd='$ac_pwd'
  38078. -srcdir='$srcdir'
  38079. -INSTALL='$INSTALL'
  38080. -MKDIR_P='$MKDIR_P'
  38081. -AWK='$AWK'
  38082. -test -n "\$AWK" || AWK=awk
  38083. -_ACEOF
  38084. +# Commands to strip libraries.
  38085. +old_striplib=$lt_old_striplib
  38086. +striplib=$lt_striplib
  38087. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38088. -# The default lists apply if the user does not specify any file.
  38089. -ac_need_defaults=:
  38090. -while test $# != 0
  38091. -do
  38092. - case $1 in
  38093. - --*=*)
  38094. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  38095. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  38096. - ac_shift=:
  38097. - ;;
  38098. - *)
  38099. - ac_option=$1
  38100. - ac_optarg=$2
  38101. - ac_shift=shift
  38102. - ;;
  38103. - esac
  38104. - case $ac_option in
  38105. - # Handling of the options.
  38106. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  38107. - ac_cs_recheck=: ;;
  38108. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  38109. - $as_echo "$ac_cs_version"; exit ;;
  38110. - --debug | --debu | --deb | --de | --d | -d )
  38111. - debug=: ;;
  38112. - --file | --fil | --fi | --f )
  38113. - $ac_shift
  38114. - case $ac_optarg in
  38115. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38116. - esac
  38117. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  38118. - ac_need_defaults=false;;
  38119. - --header | --heade | --head | --hea )
  38120. - $ac_shift
  38121. - case $ac_optarg in
  38122. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  38123. - esac
  38124. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  38125. - ac_need_defaults=false;;
  38126. - --he | --h)
  38127. - # Conflict between --help and --header
  38128. - { $as_echo "$as_me: error: ambiguous option: $1
  38129. -Try \`$0 --help' for more information." >&2
  38130. - { (exit 1); exit 1; }; };;
  38131. - --help | --hel | -h )
  38132. - $as_echo "$ac_cs_usage"; exit ;;
  38133. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  38134. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  38135. - ac_cs_silent=: ;;
  38136. +# The linker used to build libraries.
  38137. +LD=$lt_LD
  38138. - # This is an error.
  38139. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  38140. -Try \`$0 --help' for more information." >&2
  38141. - { (exit 1); exit 1; }; } ;;
  38142. +# Commands used to build an old-style archive.
  38143. +old_archive_cmds=$lt_old_archive_cmds
  38144. - *) ac_config_targets="$ac_config_targets $1"
  38145. - ac_need_defaults=false ;;
  38146. +# A language specific compiler.
  38147. +CC=$lt_compiler
  38148. - esac
  38149. - shift
  38150. -done
  38151. +# Is the compiler the GNU compiler?
  38152. +with_gcc=$GCC
  38153. -ac_configure_extra_args=
  38154. +# Compiler flag to turn off builtin functions.
  38155. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  38156. -if $ac_cs_silent; then
  38157. - exec 6>/dev/null
  38158. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  38159. -fi
  38160. +# How to pass a linker flag through the compiler.
  38161. +wl=$lt_lt_prog_compiler_wl
  38162. -_ACEOF
  38163. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38164. -if \$ac_cs_recheck; then
  38165. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  38166. - shift
  38167. - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  38168. - CONFIG_SHELL='$SHELL'
  38169. - export CONFIG_SHELL
  38170. - exec "\$@"
  38171. -fi
  38172. +# Additional compiler flags for building library objects.
  38173. +pic_flag=$lt_lt_prog_compiler_pic
  38174. +
  38175. +# Compiler flag to prevent dynamic linking.
  38176. +link_static_flag=$lt_lt_prog_compiler_static
  38177. +
  38178. +# Does compiler simultaneously support -c and -o options?
  38179. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  38180. +
  38181. +# Whether or not to add -lc for building shared libraries.
  38182. +build_libtool_need_lc=$archive_cmds_need_lc
  38183. +
  38184. +# Whether or not to disallow shared libs when runtime libs are static.
  38185. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  38186. +
  38187. +# Compiler flag to allow reflexive dlopens.
  38188. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  38189. -_ACEOF
  38190. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38191. -exec 5>>config.log
  38192. -{
  38193. - echo
  38194. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  38195. -## Running $as_me. ##
  38196. -_ASBOX
  38197. - $as_echo "$ac_log"
  38198. -} >&5
  38199. +# Compiler flag to generate shared objects directly from archives.
  38200. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  38201. -_ACEOF
  38202. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38203. -#
  38204. -# INIT-COMMANDS
  38205. -#
  38206. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  38207. +# Whether the compiler copes with passing no objects directly.
  38208. +compiler_needs_object=$lt_compiler_needs_object
  38209. -_ACEOF
  38210. +# Create an old-style archive from a shared archive.
  38211. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  38212. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38213. +# Create a temporary old-style archive to link instead of a shared archive.
  38214. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  38215. -# Handling of arguments.
  38216. -for ac_config_target in $ac_config_targets
  38217. -do
  38218. - case $ac_config_target in
  38219. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  38220. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  38221. - "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  38222. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  38223. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  38224. - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  38225. +# Commands used to build a shared archive.
  38226. +archive_cmds=$lt_archive_cmds
  38227. +archive_expsym_cmds=$lt_archive_expsym_cmds
  38228. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  38229. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  38230. - { (exit 1); exit 1; }; };;
  38231. - esac
  38232. -done
  38233. +# Commands used to build a loadable module if different from building
  38234. +# a shared archive.
  38235. +module_cmds=$lt_module_cmds
  38236. +module_expsym_cmds=$lt_module_expsym_cmds
  38237. +# Whether we are building with GNU ld or not.
  38238. +with_gnu_ld=$lt_with_gnu_ld
  38239. -# If the user did not use the arguments to specify the items to instantiate,
  38240. -# then the envvar interface is used. Set only those that are not.
  38241. -# We use the long form for the default assignment because of an extremely
  38242. -# bizarre bug on SunOS 4.1.3.
  38243. -if $ac_need_defaults; then
  38244. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  38245. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  38246. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  38247. -fi
  38248. +# Flag that allows shared libraries with undefined symbols to be built.
  38249. +allow_undefined_flag=$lt_allow_undefined_flag
  38250. -# Have a temporary directory for convenience. Make it in the build tree
  38251. -# simply because there is no reason against having it here, and in addition,
  38252. -# creating and moving files from /tmp can sometimes cause problems.
  38253. -# Hook for its removal unless debugging.
  38254. -# Note that there is a small window in which the directory will not be cleaned:
  38255. -# after its creation but before its name has been assigned to `$tmp'.
  38256. -$debug ||
  38257. -{
  38258. - tmp=
  38259. - trap 'exit_status=$?
  38260. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  38261. -' 0
  38262. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  38263. -}
  38264. -# Create a (secure) tmp directory for tmp files.
  38265. +# Flag that enforces no undefined symbols.
  38266. +no_undefined_flag=$lt_no_undefined_flag
  38267. -{
  38268. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  38269. - test -n "$tmp" && test -d "$tmp"
  38270. -} ||
  38271. -{
  38272. - tmp=./conf$$-$RANDOM
  38273. - (umask 077 && mkdir "$tmp")
  38274. -} ||
  38275. -{
  38276. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  38277. - { (exit 1); exit 1; }
  38278. -}
  38279. +# Flag to hardcode \$libdir into a binary during linking.
  38280. +# This must work even if \$libdir does not exist
  38281. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  38282. -# Set up the scripts for CONFIG_FILES section.
  38283. -# No need to generate them if there are no CONFIG_FILES.
  38284. -# This happens for instance with `./config.status config.h'.
  38285. -if test -n "$CONFIG_FILES"; then
  38286. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  38287. +# during linking. This must work even if \$libdir does not exist.
  38288. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  38289. +# Whether we need a single "-rpath" flag with a separated argument.
  38290. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  38291. -ac_cr=' '
  38292. -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  38293. -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  38294. - ac_cs_awk_cr='\\r'
  38295. -else
  38296. - ac_cs_awk_cr=$ac_cr
  38297. -fi
  38298. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  38299. +# DIR into the resulting binary.
  38300. +hardcode_direct=$hardcode_direct
  38301. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  38302. -_ACEOF
  38303. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  38304. +# DIR into the resulting binary and the resulting library dependency is
  38305. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  38306. +# library is relocated.
  38307. +hardcode_direct_absolute=$hardcode_direct_absolute
  38308. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  38309. +# into the resulting binary.
  38310. +hardcode_minus_L=$hardcode_minus_L
  38311. -{
  38312. - echo "cat >conf$$subs.awk <<_ACEOF" &&
  38313. - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  38314. - echo "_ACEOF"
  38315. -} >conf$$subs.sh ||
  38316. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  38317. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  38318. - { (exit 1); exit 1; }; }
  38319. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  38320. -ac_delim='%!_!# '
  38321. -for ac_last_try in false false false false false :; do
  38322. - . ./conf$$subs.sh ||
  38323. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  38324. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  38325. - { (exit 1); exit 1; }; }
  38326. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  38327. +# into the resulting binary.
  38328. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  38329. - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  38330. - if test $ac_delim_n = $ac_delim_num; then
  38331. - break
  38332. - elif $ac_last_try; then
  38333. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  38334. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  38335. - { (exit 1); exit 1; }; }
  38336. - else
  38337. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38338. - fi
  38339. -done
  38340. -rm -f conf$$subs.sh
  38341. +# Set to "yes" if building a shared library automatically hardcodes DIR
  38342. +# into the library and all subsequent libraries and executables linked
  38343. +# against it.
  38344. +hardcode_automatic=$hardcode_automatic
  38345. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38346. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  38347. -_ACEOF
  38348. -sed -n '
  38349. -h
  38350. -s/^/S["/; s/!.*/"]=/
  38351. -p
  38352. -g
  38353. -s/^[^!]*!//
  38354. -:repl
  38355. -t repl
  38356. -s/'"$ac_delim"'$//
  38357. -t delim
  38358. -:nl
  38359. -h
  38360. -s/\(.\{148\}\).*/\1/
  38361. -t more1
  38362. -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  38363. -p
  38364. -n
  38365. -b repl
  38366. -:more1
  38367. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38368. -p
  38369. -g
  38370. -s/.\{148\}//
  38371. -t nl
  38372. -:delim
  38373. -h
  38374. -s/\(.\{148\}\).*/\1/
  38375. -t more2
  38376. -s/["\\]/\\&/g; s/^/"/; s/$/"/
  38377. -p
  38378. -b
  38379. -:more2
  38380. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38381. -p
  38382. -g
  38383. -s/.\{148\}//
  38384. -t delim
  38385. -' <conf$$subs.awk | sed '
  38386. -/^[^""]/{
  38387. - N
  38388. - s/\n//
  38389. -}
  38390. -' >>$CONFIG_STATUS || ac_write_fail=1
  38391. -rm -f conf$$subs.awk
  38392. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38393. -_ACAWK
  38394. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  38395. - for (key in S) S_is_set[key] = 1
  38396. - FS = ""
  38397. +# Set to yes if linker adds runtime paths of dependent libraries
  38398. +# to runtime path list.
  38399. +inherit_rpath=$inherit_rpath
  38400. -}
  38401. -{
  38402. - line = $ 0
  38403. - nfields = split(line, field, "@")
  38404. - substed = 0
  38405. - len = length(field[1])
  38406. - for (i = 2; i < nfields; i++) {
  38407. - key = field[i]
  38408. - keylen = length(key)
  38409. - if (S_is_set[key]) {
  38410. - value = S[key]
  38411. - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  38412. - len += length(value) + length(field[++i])
  38413. - substed = 1
  38414. - } else
  38415. - len += 1 + keylen
  38416. - }
  38417. +# Whether libtool must link a program against all its dependency libraries.
  38418. +link_all_deplibs=$link_all_deplibs
  38419. - print line
  38420. -}
  38421. +# Fix the shell variable \$srcfile for the compiler.
  38422. +fix_srcfile_path=$lt_fix_srcfile_path
  38423. -_ACAWK
  38424. -_ACEOF
  38425. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38426. -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  38427. - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  38428. -else
  38429. - cat
  38430. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  38431. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  38432. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  38433. - { (exit 1); exit 1; }; }
  38434. -_ACEOF
  38435. +# Set to "yes" if exported symbols are required.
  38436. +always_export_symbols=$always_export_symbols
  38437. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  38438. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  38439. -# trailing colons and then remove the whole line if VPATH becomes empty
  38440. -# (actually we leave an empty line to preserve line numbers).
  38441. -if test "x$srcdir" = x.; then
  38442. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  38443. -s/:*\$(srcdir):*/:/
  38444. -s/:*\${srcdir}:*/:/
  38445. -s/:*@srcdir@:*/:/
  38446. -s/^\([^=]*=[ ]*\):*/\1/
  38447. -s/:*$//
  38448. -s/^[^=]*=[ ]*$//
  38449. -}'
  38450. -fi
  38451. +# The commands to list exported symbols.
  38452. +export_symbols_cmds=$lt_export_symbols_cmds
  38453. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38454. -fi # test -n "$CONFIG_FILES"
  38455. +# Symbols that should not be listed in the preloaded symbols.
  38456. +exclude_expsyms=$lt_exclude_expsyms
  38457. -# Set up the scripts for CONFIG_HEADERS section.
  38458. -# No need to generate them if there are no CONFIG_HEADERS.
  38459. -# This happens for instance with `./config.status Makefile'.
  38460. -if test -n "$CONFIG_HEADERS"; then
  38461. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  38462. -BEGIN {
  38463. -_ACEOF
  38464. +# Symbols that must always be exported.
  38465. +include_expsyms=$lt_include_expsyms
  38466. -# Transform confdefs.h into an awk script `defines.awk', embedded as
  38467. -# here-document in config.status, that substitutes the proper values into
  38468. -# config.h.in to produce config.h.
  38469. +# Commands necessary for linking programs (against libraries) with templates.
  38470. +prelink_cmds=$lt_prelink_cmds
  38471. -# Create a delimiter string that does not exist in confdefs.h, to ease
  38472. -# handling of long lines.
  38473. -ac_delim='%!_!# '
  38474. -for ac_last_try in false false :; do
  38475. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  38476. - if test -z "$ac_t"; then
  38477. - break
  38478. - elif $ac_last_try; then
  38479. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  38480. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  38481. - { (exit 1); exit 1; }; }
  38482. - else
  38483. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38484. - fi
  38485. -done
  38486. +# Specify filename containing input files.
  38487. +file_list_spec=$lt_file_list_spec
  38488. +
  38489. +# How to hardcode a shared library path into an executable.
  38490. +hardcode_action=$hardcode_action
  38491. +
  38492. +# ### END LIBTOOL CONFIG
  38493. +
  38494. +_LT_EOF
  38495. +
  38496. + case $host_os in
  38497. + aix3*)
  38498. + cat <<\_LT_EOF >> "$cfgfile"
  38499. +# AIX sometimes has problems with the GCC collect2 program. For some
  38500. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  38501. +# vanish in a puff of smoke.
  38502. +if test "X${COLLECT_NAMES+set}" != Xset; then
  38503. + COLLECT_NAMES=
  38504. + export COLLECT_NAMES
  38505. +fi
  38506. +_LT_EOF
  38507. + ;;
  38508. + esac
  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. +ltmain="$ac_aux_dir/ltmain.sh"
  38552. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38553. - for (key in D) D_is_set[key] = 1
  38554. - FS = ""
  38555. -}
  38556. -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  38557. - line = \$ 0
  38558. - split(line, arg, " ")
  38559. - if (arg[1] == "#") {
  38560. - defundef = arg[2]
  38561. - mac1 = arg[3]
  38562. - } else {
  38563. - defundef = substr(arg[1], 2)
  38564. - mac1 = arg[2]
  38565. - }
  38566. - split(mac1, mac2, "(") #)
  38567. - macro = mac2[1]
  38568. - prefix = substr(line, 1, index(line, defundef) - 1)
  38569. - if (D_is_set[macro]) {
  38570. - # Preserve the white space surrounding the "#".
  38571. - print prefix "define", macro P[macro] D[macro]
  38572. - next
  38573. - } else {
  38574. - # Replace #undef with comments. This is necessary, for example,
  38575. - # in the case of _POSIX_SOURCE, which is predefined and required
  38576. - # on some systems where configure will not decide to define it.
  38577. - if (defundef == "undef") {
  38578. - print "/*", prefix defundef, macro, "*/"
  38579. - next
  38580. - }
  38581. - }
  38582. -}
  38583. -{ print }
  38584. -_ACAWK
  38585. -_ACEOF
  38586. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38587. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  38588. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  38589. - { (exit 1); exit 1; }; }
  38590. -fi # test -n "$CONFIG_HEADERS"
  38591. + # We use sed instead of cat because bash on DJGPP gets confused if
  38592. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  38593. + # text mode, it properly converts lines to CR/LF. This bash problem
  38594. + # is reportedly fixed, but why not run on old versions too?
  38595. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  38596. + || (rm -f "$cfgfile"; exit 1)
  38597. -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  38598. -shift
  38599. -for ac_tag
  38600. -do
  38601. - case $ac_tag in
  38602. - :[FHLC]) ac_mode=$ac_tag; continue;;
  38603. + case $xsi_shell in
  38604. + yes)
  38605. + cat << \_LT_EOF >> "$cfgfile"
  38606. +
  38607. +# func_dirname file append nondir_replacement
  38608. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  38609. +# otherwise set result to NONDIR_REPLACEMENT.
  38610. +func_dirname ()
  38611. +{
  38612. + case ${1} in
  38613. + */*) func_dirname_result="${1%/*}${2}" ;;
  38614. + * ) func_dirname_result="${3}" ;;
  38615. esac
  38616. - case $ac_mode$ac_tag in
  38617. - :[FHL]*:*);;
  38618. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  38619. -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  38620. - { (exit 1); exit 1; }; };;
  38621. - :[FH]-) ac_tag=-:-;;
  38622. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  38623. +}
  38624. +
  38625. +# func_basename file
  38626. +func_basename ()
  38627. +{
  38628. + func_basename_result="${1##*/}"
  38629. +}
  38630. +
  38631. +# func_dirname_and_basename file append nondir_replacement
  38632. +# perform func_basename and func_dirname in a single function
  38633. +# call:
  38634. +# dirname: Compute the dirname of FILE. If nonempty,
  38635. +# add APPEND to the result, otherwise set result
  38636. +# to NONDIR_REPLACEMENT.
  38637. +# value returned in "$func_dirname_result"
  38638. +# basename: Compute filename of FILE.
  38639. +# value retuned in "$func_basename_result"
  38640. +# Implementation must be kept synchronized with func_dirname
  38641. +# and func_basename. For efficiency, we do not delegate to
  38642. +# those functions but instead duplicate the functionality here.
  38643. +func_dirname_and_basename ()
  38644. +{
  38645. + case ${1} in
  38646. + */*) func_dirname_result="${1%/*}${2}" ;;
  38647. + * ) func_dirname_result="${3}" ;;
  38648. esac
  38649. - ac_save_IFS=$IFS
  38650. - IFS=:
  38651. - set x $ac_tag
  38652. - IFS=$ac_save_IFS
  38653. - shift
  38654. - ac_file=$1
  38655. - shift
  38656. + func_basename_result="${1##*/}"
  38657. +}
  38658. - case $ac_mode in
  38659. - :L) ac_source=$1;;
  38660. - :[FH])
  38661. - ac_file_inputs=
  38662. - for ac_f
  38663. - do
  38664. - case $ac_f in
  38665. - -) ac_f="$tmp/stdin";;
  38666. - *) # Look for the file first in the build tree, then in the source tree
  38667. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  38668. - # because $ac_f cannot contain `:'.
  38669. - test -f "$ac_f" ||
  38670. - case $ac_f in
  38671. - [\\/$]*) false;;
  38672. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  38673. - esac ||
  38674. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  38675. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  38676. - { (exit 1); exit 1; }; };;
  38677. - esac
  38678. - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  38679. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  38680. - done
  38681. +# func_stripname prefix suffix name
  38682. +# strip PREFIX and SUFFIX off of NAME.
  38683. +# PREFIX and SUFFIX must not contain globbing or regex special
  38684. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  38685. +# dot (in which case that matches only a dot).
  38686. +func_stripname ()
  38687. +{
  38688. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  38689. + # positional parameters, so assign one to ordinary parameter first.
  38690. + func_stripname_result=${3}
  38691. + func_stripname_result=${func_stripname_result#"${1}"}
  38692. + func_stripname_result=${func_stripname_result%"${2}"}
  38693. +}
  38694. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  38695. - # use $as_me), people would be surprised to read:
  38696. - # /* config.h. Generated by config.status. */
  38697. - configure_input='Generated from '`
  38698. - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  38699. - `' by configure.'
  38700. - if test x"$ac_file" != x-; then
  38701. - configure_input="$ac_file. $configure_input"
  38702. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  38703. -$as_echo "$as_me: creating $ac_file" >&6;}
  38704. - fi
  38705. - # Neutralize special characters interpreted by sed in replacement strings.
  38706. - case $configure_input in #(
  38707. - *\&* | *\|* | *\\* )
  38708. - ac_sed_conf_input=`$as_echo "$configure_input" |
  38709. - sed 's/[\\\\&|]/\\\\&/g'`;; #(
  38710. - *) ac_sed_conf_input=$configure_input;;
  38711. - esac
  38712. +# func_opt_split
  38713. +func_opt_split ()
  38714. +{
  38715. + func_opt_split_opt=${1%%=*}
  38716. + func_opt_split_arg=${1#*=}
  38717. +}
  38718. - case $ac_tag in
  38719. - *:-:* | *:-) cat >"$tmp/stdin" \
  38720. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  38721. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  38722. - { (exit 1); exit 1; }; } ;;
  38723. - esac
  38724. - ;;
  38725. +# func_lo2o object
  38726. +func_lo2o ()
  38727. +{
  38728. + case ${1} in
  38729. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  38730. + *) func_lo2o_result=${1} ;;
  38731. esac
  38732. +}
  38733. - ac_dir=`$as_dirname -- "$ac_file" ||
  38734. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38735. - X"$ac_file" : 'X\(//\)[^/]' \| \
  38736. - X"$ac_file" : 'X\(//\)$' \| \
  38737. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  38738. -$as_echo X"$ac_file" |
  38739. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38740. - s//\1/
  38741. - q
  38742. - }
  38743. - /^X\(\/\/\)[^/].*/{
  38744. - s//\1/
  38745. - q
  38746. - }
  38747. - /^X\(\/\/\)$/{
  38748. - s//\1/
  38749. - q
  38750. - }
  38751. - /^X\(\/\).*/{
  38752. - s//\1/
  38753. - q
  38754. - }
  38755. - s/.*/./; q'`
  38756. - { as_dir="$ac_dir"
  38757. - case $as_dir in #(
  38758. - -*) as_dir=./$as_dir;;
  38759. - esac
  38760. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  38761. - as_dirs=
  38762. - while :; do
  38763. - case $as_dir in #(
  38764. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  38765. - *) as_qdir=$as_dir;;
  38766. - esac
  38767. - as_dirs="'$as_qdir' $as_dirs"
  38768. - as_dir=`$as_dirname -- "$as_dir" ||
  38769. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38770. - X"$as_dir" : 'X\(//\)[^/]' \| \
  38771. - X"$as_dir" : 'X\(//\)$' \| \
  38772. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38773. -$as_echo X"$as_dir" |
  38774. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38775. - s//\1/
  38776. - q
  38777. - }
  38778. - /^X\(\/\/\)[^/].*/{
  38779. - s//\1/
  38780. - q
  38781. - }
  38782. - /^X\(\/\/\)$/{
  38783. - s//\1/
  38784. - q
  38785. - }
  38786. - /^X\(\/\).*/{
  38787. - s//\1/
  38788. - q
  38789. - }
  38790. - s/.*/./; q'`
  38791. - test -d "$as_dir" && break
  38792. - done
  38793. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  38794. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  38795. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  38796. - { (exit 1); exit 1; }; }; }
  38797. - ac_builddir=.
  38798. +# func_xform libobj-or-source
  38799. +func_xform ()
  38800. +{
  38801. + func_xform_result=${1%.*}.lo
  38802. +}
  38803. -case "$ac_dir" in
  38804. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38805. -*)
  38806. - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  38807. - # A ".." for each directory in $ac_dir_suffix.
  38808. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  38809. - case $ac_top_builddir_sub in
  38810. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38811. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  38812. - esac ;;
  38813. -esac
  38814. -ac_abs_top_builddir=$ac_pwd
  38815. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  38816. -# for backward compatibility:
  38817. -ac_top_builddir=$ac_top_build_prefix
  38818. +# func_arith arithmetic-term...
  38819. +func_arith ()
  38820. +{
  38821. + func_arith_result=$(( $* ))
  38822. +}
  38823. -case $srcdir in
  38824. - .) # We are building in place.
  38825. - ac_srcdir=.
  38826. - ac_top_srcdir=$ac_top_builddir_sub
  38827. - ac_abs_top_srcdir=$ac_pwd ;;
  38828. - [\\/]* | ?:[\\/]* ) # Absolute name.
  38829. - ac_srcdir=$srcdir$ac_dir_suffix;
  38830. - ac_top_srcdir=$srcdir
  38831. - ac_abs_top_srcdir=$srcdir ;;
  38832. - *) # Relative name.
  38833. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  38834. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  38835. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  38836. -esac
  38837. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  38838. +# func_len string
  38839. +# STRING may not start with a hyphen.
  38840. +func_len ()
  38841. +{
  38842. + func_len_result=${#1}
  38843. +}
  38844. +
  38845. +_LT_EOF
  38846. + ;;
  38847. + *) # Bourne compatible functions.
  38848. + cat << \_LT_EOF >> "$cfgfile"
  38849. +# func_dirname file append nondir_replacement
  38850. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  38851. +# otherwise set result to NONDIR_REPLACEMENT.
  38852. +func_dirname ()
  38853. +{
  38854. + # Extract subdirectory from the argument.
  38855. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  38856. + if test "X$func_dirname_result" = "X${1}"; then
  38857. + func_dirname_result="${3}"
  38858. + else
  38859. + func_dirname_result="$func_dirname_result${2}"
  38860. + fi
  38861. +}
  38862. - case $ac_mode in
  38863. - :F)
  38864. - #
  38865. - # CONFIG_FILE
  38866. - #
  38867. +# func_basename file
  38868. +func_basename ()
  38869. +{
  38870. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  38871. +}
  38872. - case $INSTALL in
  38873. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  38874. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  38875. - esac
  38876. - ac_MKDIR_P=$MKDIR_P
  38877. - case $MKDIR_P in
  38878. - [\\/$]* | ?:[\\/]* ) ;;
  38879. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  38880. +
  38881. +# func_stripname prefix suffix name
  38882. +# strip PREFIX and SUFFIX off of NAME.
  38883. +# PREFIX and SUFFIX must not contain globbing or regex special
  38884. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  38885. +# dot (in which case that matches only a dot).
  38886. +# func_strip_suffix prefix name
  38887. +func_stripname ()
  38888. +{
  38889. + case ${2} in
  38890. + .*) func_stripname_result=`$ECHO "X${3}" \
  38891. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  38892. + *) func_stripname_result=`$ECHO "X${3}" \
  38893. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  38894. esac
  38895. -_ACEOF
  38896. +}
  38897. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38898. -# If the template does not know about datarootdir, expand it.
  38899. -# FIXME: This hack should be removed a few years after 2.60.
  38900. -ac_datarootdir_hack=; ac_datarootdir_seen=
  38901. +# sed scripts:
  38902. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  38903. +my_sed_long_arg='1s/^-[^=]*=//'
  38904. -ac_sed_dataroot='
  38905. -/datarootdir/ {
  38906. - p
  38907. - q
  38908. +# func_opt_split
  38909. +func_opt_split ()
  38910. +{
  38911. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  38912. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  38913. }
  38914. -/@datadir@/p
  38915. -/@docdir@/p
  38916. -/@infodir@/p
  38917. -/@localedir@/p
  38918. -/@mandir@/p
  38919. -'
  38920. -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  38921. -*datarootdir*) ac_datarootdir_seen=yes;;
  38922. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  38923. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  38924. -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  38925. -_ACEOF
  38926. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38927. - ac_datarootdir_hack='
  38928. - s&@datadir@&$datadir&g
  38929. - s&@docdir@&$docdir&g
  38930. - s&@infodir@&$infodir&g
  38931. - s&@localedir@&$localedir&g
  38932. - s&@mandir@&$mandir&g
  38933. - s&\\\${datarootdir}&$datarootdir&g' ;;
  38934. +
  38935. +# func_lo2o object
  38936. +func_lo2o ()
  38937. +{
  38938. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  38939. +}
  38940. +
  38941. +# func_xform libobj-or-source
  38942. +func_xform ()
  38943. +{
  38944. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  38945. +}
  38946. +
  38947. +# func_arith arithmetic-term...
  38948. +func_arith ()
  38949. +{
  38950. + func_arith_result=`expr "$@"`
  38951. +}
  38952. +
  38953. +# func_len string
  38954. +# STRING may not start with a hyphen.
  38955. +func_len ()
  38956. +{
  38957. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  38958. +}
  38959. +
  38960. +_LT_EOF
  38961. esac
  38962. -_ACEOF
  38963. -# Neutralize VPATH when `$srcdir' = `.'.
  38964. -# Shell code in configure.ac might set extrasub.
  38965. -# FIXME: do we really want to maintain this feature?
  38966. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38967. -ac_sed_extra="$ac_vpsub
  38968. -$extrasub
  38969. -_ACEOF
  38970. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38971. -:t
  38972. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  38973. -s|@configure_input@|$ac_sed_conf_input|;t t
  38974. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  38975. -s&@top_build_prefix@&$ac_top_build_prefix&;t t
  38976. -s&@srcdir@&$ac_srcdir&;t t
  38977. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  38978. -s&@top_srcdir@&$ac_top_srcdir&;t t
  38979. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  38980. -s&@builddir@&$ac_builddir&;t t
  38981. -s&@abs_builddir@&$ac_abs_builddir&;t t
  38982. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  38983. -s&@INSTALL@&$ac_INSTALL&;t t
  38984. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  38985. -$ac_datarootdir_hack
  38986. -"
  38987. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  38988. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  38989. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  38990. - { (exit 1); exit 1; }; }
  38991. +case $lt_shell_append in
  38992. + yes)
  38993. + cat << \_LT_EOF >> "$cfgfile"
  38994. +
  38995. +# func_append var value
  38996. +# Append VALUE to the end of shell variable VAR.
  38997. +func_append ()
  38998. +{
  38999. + eval "$1+=\$2"
  39000. +}
  39001. +_LT_EOF
  39002. + ;;
  39003. + *)
  39004. + cat << \_LT_EOF >> "$cfgfile"
  39005. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  39006. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  39007. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  39008. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39009. -which seems to be undefined. Please make sure it is defined." >&5
  39010. -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39011. -which seems to be undefined. Please make sure it is defined." >&2;}
  39012. +# func_append var value
  39013. +# Append VALUE to the end of shell variable VAR.
  39014. +func_append ()
  39015. +{
  39016. + eval "$1=\$$1\$2"
  39017. +}
  39018. - rm -f "$tmp/stdin"
  39019. - case $ac_file in
  39020. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  39021. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  39022. - esac \
  39023. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  39024. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  39025. - { (exit 1); exit 1; }; }
  39026. - ;;
  39027. - :H)
  39028. - #
  39029. - # CONFIG_HEADER
  39030. - #
  39031. - if test x"$ac_file" != x-; then
  39032. - {
  39033. - $as_echo "/* $configure_input */" \
  39034. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  39035. - } >"$tmp/config.h" \
  39036. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  39037. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  39038. - { (exit 1); exit 1; }; }
  39039. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  39040. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  39041. -$as_echo "$as_me: $ac_file is unchanged" >&6;}
  39042. - else
  39043. - rm -f "$ac_file"
  39044. - mv "$tmp/config.h" "$ac_file" \
  39045. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  39046. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  39047. - { (exit 1); exit 1; }; }
  39048. - fi
  39049. - else
  39050. - $as_echo "/* $configure_input */" \
  39051. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  39052. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  39053. -$as_echo "$as_me: error: could not create -" >&2;}
  39054. - { (exit 1); exit 1; }; }
  39055. - fi
  39056. -# Compute "$ac_file"'s index in $config_headers.
  39057. -_am_arg="$ac_file"
  39058. -_am_stamp_count=1
  39059. -for _am_header in $config_headers :; do
  39060. - case $_am_header in
  39061. - $_am_arg | $_am_arg:* )
  39062. - break ;;
  39063. - * )
  39064. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  39065. +_LT_EOF
  39066. + ;;
  39067. esac
  39068. -done
  39069. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  39070. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39071. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  39072. - X"$_am_arg" : 'X\(//\)$' \| \
  39073. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  39074. -$as_echo X"$_am_arg" |
  39075. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39076. - s//\1/
  39077. - q
  39078. - }
  39079. - /^X\(\/\/\)[^/].*/{
  39080. - s//\1/
  39081. - q
  39082. - }
  39083. - /^X\(\/\/\)$/{
  39084. - s//\1/
  39085. - q
  39086. - }
  39087. - /^X\(\/\).*/{
  39088. - s//\1/
  39089. - q
  39090. - }
  39091. - s/.*/./; q'`/stamp-h$_am_stamp_count
  39092. - ;;
  39093. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  39094. -$as_echo "$as_me: executing $ac_file commands" >&6;}
  39095. - ;;
  39096. - esac
  39097. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  39098. + || (rm -f "$cfgfile"; exit 1)
  39099. +
  39100. + mv -f "$cfgfile" "$ofile" ||
  39101. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  39102. + chmod +x "$ofile"
  39103. - case $ac_file$ac_mode in
  39104. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  39105. - # Strip MF so we end up with the name of the file.
  39106. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  39107. - # Check whether this is an Automake generated Makefile or not.
  39108. - # We used to match only the files named `Makefile.in', but
  39109. - # some people rename them; so instead we look at the file content.
  39110. - # Grep'ing the first line is not enough: some people post-process
  39111. - # each Makefile.in and add a new line on top of each file to say so.
  39112. - # Grep'ing the whole file is not good either: AIX grep has a line
  39113. - # limit of 2048, but all sed's we know have understand at least 4000.
  39114. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  39115. - dirpart=`$as_dirname -- "$mf" ||
  39116. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39117. - X"$mf" : 'X\(//\)[^/]' \| \
  39118. - X"$mf" : 'X\(//\)$' \| \
  39119. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  39120. -$as_echo X"$mf" |
  39121. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39122. - s//\1/
  39123. - q
  39124. - }
  39125. - /^X\(\/\/\)[^/].*/{
  39126. - s//\1/
  39127. - q
  39128. - }
  39129. - /^X\(\/\/\)$/{
  39130. - s//\1/
  39131. - q
  39132. - }
  39133. - /^X\(\/\).*/{
  39134. - s//\1/
  39135. - q
  39136. - }
  39137. - s/.*/./; q'`
  39138. - else
  39139. - continue
  39140. - fi
  39141. - # Extract the definition of DEPDIR, am__include, and am__quote
  39142. - # from the Makefile without running `make'.
  39143. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  39144. - test -z "$DEPDIR" && continue
  39145. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  39146. - test -z "am__include" && continue
  39147. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  39148. - # When using ansi2knr, U may be empty or an underscore; expand it
  39149. - U=`sed -n 's/^U = //p' < "$mf"`
  39150. - # Find all dependency output files, they are included files with
  39151. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  39152. - # simplest approach to changing $(DEPDIR) to its actual value in the
  39153. - # expansion.
  39154. - for file in `sed -n "
  39155. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  39156. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  39157. - # Make sure the directory exists.
  39158. - test -f "$dirpart/$file" && continue
  39159. - fdir=`$as_dirname -- "$file" ||
  39160. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39161. - X"$file" : 'X\(//\)[^/]' \| \
  39162. - X"$file" : 'X\(//\)$' \| \
  39163. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  39164. -$as_echo X"$file" |
  39165. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39166. - s//\1/
  39167. - q
  39168. - }
  39169. - /^X\(\/\/\)[^/].*/{
  39170. - s//\1/
  39171. - q
  39172. - }
  39173. - /^X\(\/\/\)$/{
  39174. - s//\1/
  39175. - q
  39176. - }
  39177. - /^X\(\/\).*/{
  39178. - s//\1/
  39179. - q
  39180. - }
  39181. - s/.*/./; q'`
  39182. - { as_dir=$dirpart/$fdir
  39183. - case $as_dir in #(
  39184. - -*) as_dir=./$as_dir;;
  39185. - esac
  39186. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  39187. - as_dirs=
  39188. - while :; do
  39189. - case $as_dir in #(
  39190. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  39191. - *) as_qdir=$as_dir;;
  39192. - esac
  39193. - as_dirs="'$as_qdir' $as_dirs"
  39194. - as_dir=`$as_dirname -- "$as_dir" ||
  39195. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39196. - X"$as_dir" : 'X\(//\)[^/]' \| \
  39197. - X"$as_dir" : 'X\(//\)$' \| \
  39198. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  39199. -$as_echo X"$as_dir" |
  39200. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39201. - s//\1/
  39202. - q
  39203. - }
  39204. - /^X\(\/\/\)[^/].*/{
  39205. - s//\1/
  39206. - q
  39207. - }
  39208. - /^X\(\/\/\)$/{
  39209. - s//\1/
  39210. - q
  39211. - }
  39212. - /^X\(\/\).*/{
  39213. - s//\1/
  39214. - q
  39215. - }
  39216. - s/.*/./; q'`
  39217. - test -d "$as_dir" && break
  39218. - done
  39219. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  39220. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  39221. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  39222. - { (exit 1); exit 1; }; }; }
  39223. - # echo "creating $dirpart/$file"
  39224. - echo '# dummy' > "$dirpart/$file"
  39225. - done
  39226. -done
  39227. ;;
  39228. esac
  39229. done # for ac_tag
  39230. -{ (exit 0); exit 0; }
  39231. +as_fn_exit 0
  39232. _ACEOF
  39233. -chmod +x $CONFIG_STATUS
  39234. ac_clean_files=$ac_clean_files_save
  39235. test $ac_write_fail = 0 ||
  39236. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  39237. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  39238. - { (exit 1); exit 1; }; }
  39239. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  39240. # configure is writing to config.log, and then calls config.status.
  39241. @@ -22117,10 +13163,10 @@
  39242. exec 5>>config.log
  39243. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  39244. # would make configure fail if this is the last instruction.
  39245. - $ac_cs_success || { (exit 1); exit 1; }
  39246. + $ac_cs_success || as_fn_exit $?
  39247. fi
  39248. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  39249. - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  39250. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  39251. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  39252. fi
  39253. diff -Nur rpcbind-0.2.0.orig/depcomp rpcbind-0.2.0/depcomp
  39254. --- rpcbind-0.2.0.orig/depcomp 2009-05-29 18:37:50.000000000 +0200
  39255. +++ rpcbind-0.2.0/depcomp 2011-02-17 19:38:37.653563114 +0100
  39256. @@ -1,10 +1,10 @@
  39257. #! /bin/sh
  39258. # depcomp - compile a program generating dependencies as side-effects
  39259. -scriptversion=2007-03-29.01
  39260. +scriptversion=2009-04-28.21; # UTC
  39261. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
  39262. -# Foundation, Inc.
  39263. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  39264. +# Software Foundation, Inc.
  39265. # This program is free software; you can redistribute it and/or modify
  39266. # it under the terms of the GNU General Public License as published by
  39267. @@ -17,9 +17,7 @@
  39268. # GNU General Public License for more details.
  39269. # You should have received a copy of the GNU General Public License
  39270. -# along with this program; if not, write to the Free Software
  39271. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  39272. -# 02110-1301, USA.
  39273. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  39274. # As a special exception to the GNU General Public License, if you
  39275. # distribute this file as part of a program that contains a
  39276. @@ -87,6 +85,15 @@
  39277. depmode=dashmstdout
  39278. fi
  39279. +cygpath_u="cygpath -u -f -"
  39280. +if test "$depmode" = msvcmsys; then
  39281. + # This is just like msvisualcpp but w/o cygpath translation.
  39282. + # Just convert the backslash-escaped backslashes to single forward
  39283. + # slashes to satisfy depend.m4
  39284. + cygpath_u="sed s,\\\\\\\\,/,g"
  39285. + depmode=msvisualcpp
  39286. +fi
  39287. +
  39288. case "$depmode" in
  39289. gcc3)
  39290. ## gcc 3 implements dependency tracking that does exactly what
  39291. @@ -192,14 +199,14 @@
  39292. ' < "$tmpdepfile" \
  39293. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  39294. tr '
  39295. -' ' ' >> $depfile
  39296. - echo >> $depfile
  39297. +' ' ' >> "$depfile"
  39298. + echo >> "$depfile"
  39299. # The second pass generates a dummy entry for each header file.
  39300. tr ' ' '
  39301. ' < "$tmpdepfile" \
  39302. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  39303. - >> $depfile
  39304. + >> "$depfile"
  39305. else
  39306. # The sourcefile does not contain any dependencies, so just
  39307. # store a dummy comment line, to avoid errors with the Makefile
  39308. @@ -328,7 +335,12 @@
  39309. if test -f "$tmpdepfile"; then
  39310. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  39311. # Add `dependent.h:' lines.
  39312. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  39313. + sed -ne '2,${
  39314. + s/^ *//
  39315. + s/ \\*$//
  39316. + s/$/:/
  39317. + p
  39318. + }' "$tmpdepfile" >> "$depfile"
  39319. else
  39320. echo "#dummy" > "$depfile"
  39321. fi
  39322. @@ -404,7 +416,7 @@
  39323. # Remove the call to Libtool.
  39324. if test "$libtool" = yes; then
  39325. - while test $1 != '--mode=compile'; do
  39326. + while test "X$1" != 'X--mode=compile'; do
  39327. shift
  39328. done
  39329. shift
  39330. @@ -455,32 +467,39 @@
  39331. "$@" || exit $?
  39332. # Remove any Libtool call
  39333. if test "$libtool" = yes; then
  39334. - while test $1 != '--mode=compile'; do
  39335. + while test "X$1" != 'X--mode=compile'; do
  39336. shift
  39337. done
  39338. shift
  39339. fi
  39340. # X makedepend
  39341. shift
  39342. - cleared=no
  39343. - for arg in "$@"; do
  39344. + cleared=no eat=no
  39345. + for arg
  39346. + do
  39347. case $cleared in
  39348. no)
  39349. set ""; shift
  39350. cleared=yes ;;
  39351. esac
  39352. + if test $eat = yes; then
  39353. + eat=no
  39354. + continue
  39355. + fi
  39356. case "$arg" in
  39357. -D*|-I*)
  39358. set fnord "$@" "$arg"; shift ;;
  39359. # Strip any option that makedepend may not understand. Remove
  39360. # the object too, otherwise makedepend will parse it as a source file.
  39361. + -arch)
  39362. + eat=yes ;;
  39363. -*|$object)
  39364. ;;
  39365. *)
  39366. set fnord "$@" "$arg"; shift ;;
  39367. esac
  39368. done
  39369. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  39370. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  39371. touch "$tmpdepfile"
  39372. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  39373. rm -f "$depfile"
  39374. @@ -500,7 +519,7 @@
  39375. # Remove the call to Libtool.
  39376. if test "$libtool" = yes; then
  39377. - while test $1 != '--mode=compile'; do
  39378. + while test "X$1" != 'X--mode=compile'; do
  39379. shift
  39380. done
  39381. shift
  39382. @@ -538,13 +557,27 @@
  39383. msvisualcpp)
  39384. # Important note: in order to support this mode, a compiler *must*
  39385. - # always write the preprocessed file to stdout, regardless of -o,
  39386. - # because we must use -o when running libtool.
  39387. + # always write the preprocessed file to stdout.
  39388. "$@" || exit $?
  39389. +
  39390. + # Remove the call to Libtool.
  39391. + if test "$libtool" = yes; then
  39392. + while test "X$1" != 'X--mode=compile'; do
  39393. + shift
  39394. + done
  39395. + shift
  39396. + fi
  39397. +
  39398. IFS=" "
  39399. for arg
  39400. do
  39401. case "$arg" in
  39402. + -o)
  39403. + shift
  39404. + ;;
  39405. + $object)
  39406. + shift
  39407. + ;;
  39408. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  39409. set fnord "$@"
  39410. shift
  39411. @@ -557,16 +590,23 @@
  39412. ;;
  39413. esac
  39414. done
  39415. - "$@" -E |
  39416. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  39417. + "$@" -E 2>/dev/null |
  39418. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  39419. rm -f "$depfile"
  39420. echo "$object : \\" > "$depfile"
  39421. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  39422. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  39423. echo " " >> "$depfile"
  39424. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  39425. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  39426. rm -f "$tmpdepfile"
  39427. ;;
  39428. +msvcmsys)
  39429. + # This case exists only to let depend.m4 do its work. It works by
  39430. + # looking at the text of this script. This case will never be run,
  39431. + # since it is checked for above.
  39432. + exit 1
  39433. + ;;
  39434. +
  39435. none)
  39436. exec "$@"
  39437. ;;
  39438. @@ -585,5 +625,6 @@
  39439. # eval: (add-hook 'write-file-hooks 'time-stamp)
  39440. # time-stamp-start: "scriptversion="
  39441. # time-stamp-format: "%:y-%02m-%02d.%02H"
  39442. -# time-stamp-end: "$"
  39443. +# time-stamp-time-zone: "UTC"
  39444. +# time-stamp-end: "; # UTC"
  39445. # End:
  39446. diff -Nur rpcbind-0.2.0.orig/INSTALL rpcbind-0.2.0/INSTALL
  39447. --- rpcbind-0.2.0.orig/INSTALL 2009-05-29 15:38:22.000000000 +0200
  39448. +++ rpcbind-0.2.0/INSTALL 2011-02-17 19:38:37.693562895 +0100
  39449. @@ -1,32 +1,25 @@
  39450. -Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
  39451. -Foundation, Inc.
  39452. +Installation Instructions
  39453. +*************************
  39454. - This file is free documentation; the Free Software Foundation gives
  39455. -unlimited permission to copy, distribute and modify it.
  39456. -
  39457. -
  39458. -rpcbind Quick Installation
  39459. -==========================
  39460. -
  39461. -$ ./configure
  39462. -$ make
  39463. -# make install
  39464. -
  39465. - The install phase will install the rpcbind and rpcinfo commands
  39466. -under /usr/bin. If you wish they replace the basic portmap and
  39467. -rpcinfo commands, you can run:
  39468. -
  39469. -# mv /sbin/portmap /sbin/portmap.sav
  39470. -# ln -s /usr/bin/rpcbind /sbin/portmap
  39471. -
  39472. -# mv /usr/sbin/rpcinfo /usr/sbin/rpcinfo.sav
  39473. -# ln -s /usr/bin/rpcinfo /usr/sbin/rpcinfo
  39474. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  39475. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  39476. + Copying and distribution of this file, with or without modification,
  39477. +are permitted in any medium without royalty provided the copyright
  39478. +notice and this notice are preserved. This file is offered as-is,
  39479. +without warranty of any kind.
  39480. Basic Installation
  39481. ==================
  39482. - These are generic installation instructions.
  39483. + Briefly, the shell commands `./configure; make; make install' should
  39484. +configure, build, and install this package. The following
  39485. +more-detailed instructions are generic; see the `README' file for
  39486. +instructions specific to this package. Some packages provide this
  39487. +`INSTALL' file but do not implement all of the features documented
  39488. +below. The lack of an optional feature in a given package is not
  39489. +necessarily a bug. More recommendations for GNU packages can be found
  39490. +in *note Makefile Conventions: (standards)Makefile Conventions.
  39491. The `configure' shell script attempts to guess correct values for
  39492. various system-dependent variables used during compilation. It uses
  39493. @@ -39,9 +32,9 @@
  39494. It can also use an optional file (typically called `config.cache'
  39495. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  39496. -the results of its tests to speed up reconfiguring. (Caching is
  39497. +the results of its tests to speed up reconfiguring. Caching is
  39498. disabled by default to prevent problems with accidental use of stale
  39499. -cache files.)
  39500. +cache files.
  39501. If you need to do unusual things to compile the package, please try
  39502. to figure out how `configure' could check whether to do them, and mail
  39503. @@ -51,30 +44,37 @@
  39504. may remove or edit it.
  39505. The file `configure.ac' (or `configure.in') is used to create
  39506. -`configure' by a program called `autoconf'. You only need
  39507. -`configure.ac' if you want to change it or regenerate `configure' using
  39508. -a newer version of `autoconf'.
  39509. +`configure' by a program called `autoconf'. You need `configure.ac' if
  39510. +you want to change it or regenerate `configure' using a newer version
  39511. +of `autoconf'.
  39512. -The simplest way to compile this package is:
  39513. + The simplest way to compile this package is:
  39514. 1. `cd' to the directory containing the package's source code and type
  39515. - `./configure' to configure the package for your system. If you're
  39516. - using `csh' on an old version of System V, you might need to type
  39517. - `sh ./configure' instead to prevent `csh' from trying to execute
  39518. - `configure' itself.
  39519. + `./configure' to configure the package for your system.
  39520. - Running `configure' takes awhile. While running, it prints some
  39521. - messages telling which features it is checking for.
  39522. + Running `configure' might take a while. While running, it prints
  39523. + some messages telling which features it is checking for.
  39524. 2. Type `make' to compile the package.
  39525. 3. Optionally, type `make check' to run any self-tests that come with
  39526. - the package.
  39527. + the package, generally using the just-built uninstalled binaries.
  39528. 4. Type `make install' to install the programs and any data files and
  39529. - documentation.
  39530. + documentation. When installing into a prefix owned by root, it is
  39531. + recommended that the package be configured and built as a regular
  39532. + user, and only the `make install' phase executed with root
  39533. + privileges.
  39534. +
  39535. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  39536. + this time using the binaries in their final installed location.
  39537. + This target does not install anything. Running this target as a
  39538. + regular user, particularly if the prior `make install' required
  39539. + root privileges, verifies that the installation completed
  39540. + correctly.
  39541. - 5. You can remove the program binaries and object files from the
  39542. + 6. You can remove the program binaries and object files from the
  39543. source code directory by typing `make clean'. To also remove the
  39544. files that `configure' created (so you can compile the package for
  39545. a different kind of computer), type `make distclean'. There is
  39546. @@ -83,6 +83,16 @@
  39547. all sorts of other programs in order to regenerate files that came
  39548. with the distribution.
  39549. + 7. Often, you can also type `make uninstall' to remove the installed
  39550. + files again. In practice, not all packages have tested that
  39551. + uninstallation works correctly, even though it is required by the
  39552. + GNU Coding Standards.
  39553. +
  39554. + 8. Some packages, particularly those that use Automake, provide `make
  39555. + distcheck', which can by used by developers to test that all other
  39556. + targets like `make install' and `make uninstall' work correctly.
  39557. + This target is generally not run by end users.
  39558. +
  39559. Compilers and Options
  39560. =====================
  39561. @@ -94,7 +104,7 @@
  39562. by setting variables in the command line or in the environment. Here
  39563. is an example:
  39564. - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  39565. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  39566. *Note Defining Variables::, for more details.
  39567. @@ -103,44 +113,89 @@
  39568. You can compile the package for more than one kind of computer at the
  39569. same time, by placing the object files for each architecture in their
  39570. -own directory. To do this, you must use a version of `make' that
  39571. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  39572. +own directory. To do this, you can use GNU `make'. `cd' to the
  39573. directory where you want the object files and executables to go and run
  39574. the `configure' script. `configure' automatically checks for the
  39575. -source code in the directory that `configure' is in and in `..'.
  39576. +source code in the directory that `configure' is in and in `..'. This
  39577. +is known as a "VPATH" build.
  39578. - If you have to use a `make' that does not support the `VPATH'
  39579. -variable, you have to compile the package for one architecture at a
  39580. -time in the source code directory. After you have installed the
  39581. -package for one architecture, use `make distclean' before reconfiguring
  39582. -for another architecture.
  39583. + With a non-GNU `make', it is safer to compile the package for one
  39584. +architecture at a time in the source code directory. After you have
  39585. +installed the package for one architecture, use `make distclean' before
  39586. +reconfiguring for another architecture.
  39587. +
  39588. + On MacOS X 10.5 and later systems, you can create libraries and
  39589. +executables that work on multiple system types--known as "fat" or
  39590. +"universal" binaries--by specifying multiple `-arch' options to the
  39591. +compiler but only a single `-arch' option to the preprocessor. Like
  39592. +this:
  39593. +
  39594. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  39595. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  39596. + CPP="gcc -E" CXXCPP="g++ -E"
  39597. +
  39598. + This is not guaranteed to produce working output in all cases, you
  39599. +may have to build one architecture at a time and combine the results
  39600. +using the `lipo' tool if you have problems.
  39601. Installation Names
  39602. ==================
  39603. - By default, `make install' will install the package's files in
  39604. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  39605. -installation prefix other than `/usr/local' by giving `configure' the
  39606. -option `--prefix=PATH'.
  39607. + By default, `make install' installs the package's commands under
  39608. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  39609. +can specify an installation prefix other than `/usr/local' by giving
  39610. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  39611. +absolute file name.
  39612. You can specify separate installation prefixes for
  39613. architecture-specific files and architecture-independent files. If you
  39614. -give `configure' the option `--exec-prefix=PATH', the package will use
  39615. -PATH as the prefix for installing programs and libraries.
  39616. -Documentation and other data files will still use the regular prefix.
  39617. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  39618. +PREFIX as the prefix for installing programs and libraries.
  39619. +Documentation and other data files still use the regular prefix.
  39620. In addition, if you use an unusual directory layout you can give
  39621. -options like `--bindir=PATH' to specify different values for particular
  39622. +options like `--bindir=DIR' to specify different values for particular
  39623. kinds of files. Run `configure --help' for a list of the directories
  39624. -you can set and what kinds of files go in them.
  39625. +you can set and what kinds of files go in them. In general, the
  39626. +default for these options is expressed in terms of `${prefix}', so that
  39627. +specifying just `--prefix' will affect all of the other directory
  39628. +specifications that were not explicitly provided.
  39629. +
  39630. + The most portable way to affect installation locations is to pass the
  39631. +correct locations to `configure'; however, many packages provide one or
  39632. +both of the following shortcuts of passing variable assignments to the
  39633. +`make install' command line to change installation locations without
  39634. +having to reconfigure or recompile.
  39635. +
  39636. + The first method involves providing an override variable for each
  39637. +affected directory. For example, `make install
  39638. +prefix=/alternate/directory' will choose an alternate location for all
  39639. +directory configuration variables that were expressed in terms of
  39640. +`${prefix}'. Any directories that were specified during `configure',
  39641. +but not in terms of `${prefix}', must each be overridden at install
  39642. +time for the entire installation to be relocated. The approach of
  39643. +makefile variable overrides for each directory variable is required by
  39644. +the GNU Coding Standards, and ideally causes no recompilation.
  39645. +However, some platforms have known limitations with the semantics of
  39646. +shared libraries that end up requiring recompilation when using this
  39647. +method, particularly noticeable in packages that use GNU Libtool.
  39648. +
  39649. + The second method involves providing the `DESTDIR' variable. For
  39650. +example, `make install DESTDIR=/alternate/directory' will prepend
  39651. +`/alternate/directory' before all installation names. The approach of
  39652. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  39653. +does not work on platforms that have drive letters. On the other hand,
  39654. +it does better at avoiding recompilation issues, and works well even
  39655. +when some directory options were not specified in terms of `${prefix}'
  39656. +at `configure' time.
  39657. +
  39658. +Optional Features
  39659. +=================
  39660. If the package supports it, you can cause programs to be installed
  39661. with an extra prefix or suffix on their names by giving `configure' the
  39662. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  39663. -Optional Features
  39664. -=================
  39665. -
  39666. Some packages pay attention to `--enable-FEATURE' options to
  39667. `configure', where FEATURE indicates an optional part of the package.
  39668. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  39669. @@ -153,6 +208,45 @@
  39670. you can use the `configure' options `--x-includes=DIR' and
  39671. `--x-libraries=DIR' to specify their locations.
  39672. + Some packages offer the ability to configure how verbose the
  39673. +execution of `make' will be. For these packages, running `./configure
  39674. +--enable-silent-rules' sets the default to minimal output, which can be
  39675. +overridden with `make V=1'; while running `./configure
  39676. +--disable-silent-rules' sets the default to verbose, which can be
  39677. +overridden with `make V=0'.
  39678. +
  39679. +Particular systems
  39680. +==================
  39681. +
  39682. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  39683. +CC is not installed, it is recommended to use the following options in
  39684. +order to use an ANSI C compiler:
  39685. +
  39686. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  39687. +
  39688. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  39689. +
  39690. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  39691. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  39692. +a workaround. If GNU CC is not installed, it is therefore recommended
  39693. +to try
  39694. +
  39695. + ./configure CC="cc"
  39696. +
  39697. +and if that doesn't work, try
  39698. +
  39699. + ./configure CC="cc -nodtk"
  39700. +
  39701. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  39702. +directory contains several dysfunctional programs; working variants of
  39703. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  39704. +in your `PATH', put it _after_ `/usr/bin'.
  39705. +
  39706. + On Haiku, software installed for all users goes in `/boot/common',
  39707. +not `/usr/local'. It is recommended to use the following options:
  39708. +
  39709. + ./configure --prefix=/boot/common
  39710. +
  39711. Specifying the System Type
  39712. ==========================
  39713. @@ -168,14 +262,15 @@
  39714. where SYSTEM can have one of these forms:
  39715. - OS KERNEL-OS
  39716. + OS
  39717. + KERNEL-OS
  39718. See the file `config.sub' for the possible values of each field. If
  39719. `config.sub' isn't included in this package, then this package doesn't
  39720. need to know the machine type.
  39721. If you are _building_ compiler tools for cross-compiling, you should
  39722. -use the `--target=TYPE' option to select the type of system they will
  39723. +use the option `--target=TYPE' to select the type of system they will
  39724. produce code for.
  39725. If you want to _use_ a cross compiler, that generates code for a
  39726. @@ -205,9 +300,14 @@
  39727. ./configure CC=/usr/local2/bin/gcc
  39728. -will cause the specified gcc to be used as the C compiler (unless it is
  39729. +causes the specified `gcc' to be used as the C compiler (unless it is
  39730. overridden in the site shell script).
  39731. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  39732. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  39733. +
  39734. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  39735. +
  39736. `configure' Invocation
  39737. ======================
  39738. @@ -216,7 +316,14 @@
  39739. `--help'
  39740. `-h'
  39741. - Print a summary of the options to `configure', and exit.
  39742. + Print a summary of all of the options to `configure', and exit.
  39743. +
  39744. +`--help=short'
  39745. +`--help=recursive'
  39746. + Print a summary of the options unique to this package's
  39747. + `configure', and exit. The `short' variant lists options used
  39748. + only in the top level, while the `recursive' variant lists options
  39749. + also present in any nested packages.
  39750. `--version'
  39751. `-V'
  39752. @@ -243,6 +350,16 @@
  39753. Look for the package's source code in directory DIR. Usually
  39754. `configure' can determine that directory automatically.
  39755. +`--prefix=DIR'
  39756. + Use DIR as the installation prefix. *note Installation Names::
  39757. + for more details, including other options available for fine-tuning
  39758. + the installation locations.
  39759. +
  39760. +`--no-create'
  39761. +`-n'
  39762. + Run the configure checks, but stop before creating any output
  39763. + files.
  39764. +
  39765. `configure' also accepts some other, not widely useful, options. Run
  39766. `configure --help' for more details.
  39767. diff -Nur rpcbind-0.2.0.orig/install-sh rpcbind-0.2.0/install-sh
  39768. --- rpcbind-0.2.0.orig/install-sh 2009-05-29 18:37:50.000000000 +0200
  39769. +++ rpcbind-0.2.0/install-sh 2011-02-17 19:38:37.583559075 +0100
  39770. @@ -1,7 +1,7 @@
  39771. #!/bin/sh
  39772. # install - install a program, script, or datafile
  39773. -scriptversion=2006-12-25.00
  39774. +scriptversion=2009-04-28.21; # UTC
  39775. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  39776. # later released in X11R6 (xc/config/util/install.sh) with the
  39777. @@ -515,5 +515,6 @@
  39778. # eval: (add-hook 'write-file-hooks 'time-stamp)
  39779. # time-stamp-start: "scriptversion="
  39780. # time-stamp-format: "%:y-%02m-%02d.%02H"
  39781. -# time-stamp-end: "$"
  39782. +# time-stamp-time-zone: "UTC"
  39783. +# time-stamp-end: "; # UTC"
  39784. # End:
  39785. diff -Nur rpcbind-0.2.0.orig/ltmain.sh rpcbind-0.2.0/ltmain.sh
  39786. --- rpcbind-0.2.0.orig/ltmain.sh 2008-08-30 00:27:25.000000000 +0200
  39787. +++ rpcbind-0.2.0/ltmain.sh 2011-02-17 19:38:34.303554167 +0100
  39788. @@ -1,52 +1,83 @@
  39789. -# ltmain.sh - Provide generalized library-building support services.
  39790. -# NOTE: Changing this file will not affect anything until you rerun configure.
  39791. -#
  39792. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  39793. -# 2007, 2008 Free Software Foundation, Inc.
  39794. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  39795. -#
  39796. -# This program is free software; you can redistribute it and/or modify
  39797. +# Generated from ltmain.m4sh.
  39798. +
  39799. +# ltmain.sh (GNU libtool) 2.2.6b
  39800. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  39801. +
  39802. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  39803. +# This is free software; see the source for copying conditions. There is NO
  39804. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  39805. +
  39806. +# GNU Libtool is free software; you can redistribute it and/or modify
  39807. # it under the terms of the GNU General Public License as published by
  39808. # the Free Software Foundation; either version 2 of the License, or
  39809. # (at your option) any later version.
  39810. #
  39811. -# This program is distributed in the hope that it will be useful, but
  39812. +# As a special exception to the GNU General Public License,
  39813. +# if you distribute this file as part of a program or library that
  39814. +# is built using GNU Libtool, you may include this file under the
  39815. +# same distribution terms that you use for the rest of that program.
  39816. +#
  39817. +# GNU Libtool is distributed in the hope that it will be useful, but
  39818. # WITHOUT ANY WARRANTY; without even the implied warranty of
  39819. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  39820. # General Public License for more details.
  39821. #
  39822. # You should have received a copy of the GNU General Public License
  39823. -# along with this program; if not, write to the Free Software
  39824. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39825. -#
  39826. -# As a special exception to the GNU General Public License, if you
  39827. -# distribute this file as part of a program that contains a
  39828. -# configuration script generated by Autoconf, you may include it under
  39829. -# the same distribution terms that you use for the rest of that program.
  39830. -
  39831. -basename="s,^.*/,,g"
  39832. -
  39833. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  39834. -# is ksh but when the shell is invoked as "sh" and the current value of
  39835. -# the _XPG environment variable is not equal to 1 (one), the special
  39836. -# positional parameter $0, within a function call, is the name of the
  39837. -# function.
  39838. -progpath="$0"
  39839. -
  39840. -# The name of this program:
  39841. -progname=`echo "$progpath" | $SED $basename`
  39842. -modename="$progname"
  39843. +# along with GNU Libtool; see the file COPYING. If not, a copy
  39844. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  39845. +# or obtained by writing to the Free Software Foundation, Inc.,
  39846. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39847. -# Global variables:
  39848. -EXIT_SUCCESS=0
  39849. -EXIT_FAILURE=1
  39850. +# Usage: $progname [OPTION]... [MODE-ARG]...
  39851. +#
  39852. +# Provide generalized library-building support services.
  39853. +#
  39854. +# --config show all configuration variables
  39855. +# --debug enable verbose shell tracing
  39856. +# -n, --dry-run display commands without modifying any files
  39857. +# --features display basic configuration information and exit
  39858. +# --mode=MODE use operation mode MODE
  39859. +# --preserve-dup-deps don't remove duplicate dependency libraries
  39860. +# --quiet, --silent don't print informational messages
  39861. +# --tag=TAG use configuration variables from tag TAG
  39862. +# -v, --verbose print informational messages (default)
  39863. +# --version print version information
  39864. +# -h, --help print short or long help message
  39865. +#
  39866. +# MODE must be one of the following:
  39867. +#
  39868. +# clean remove files from the build directory
  39869. +# compile compile a source file into a libtool object
  39870. +# execute automatically set library path, then run a program
  39871. +# finish complete the installation of libtool libraries
  39872. +# install install libraries or executables
  39873. +# link create a library or an executable
  39874. +# uninstall remove libraries from an installed directory
  39875. +#
  39876. +# MODE-ARGS vary depending on the MODE.
  39877. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  39878. +#
  39879. +# When reporting a bug, please describe a test case to reproduce it and
  39880. +# include the following information:
  39881. +#
  39882. +# host-triplet: $host
  39883. +# shell: $SHELL
  39884. +# compiler: $LTCC
  39885. +# compiler flags: $LTCFLAGS
  39886. +# linker: $LD (gnu? $with_gnu_ld)
  39887. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  39888. +# automake: $automake_version
  39889. +# autoconf: $autoconf_version
  39890. +#
  39891. +# Report bugs to <bug-libtool@gnu.org>.
  39892. PROGRAM=ltmain.sh
  39893. PACKAGE=libtool
  39894. -VERSION=1.5.26
  39895. -TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
  39896. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  39897. +TIMESTAMP=""
  39898. +package_revision=1.3017
  39899. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  39900. +# Be Bourne compatible
  39901. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  39902. emulate sh
  39903. NULLCMD=:
  39904. @@ -60,104 +91,261 @@
  39905. BIN_SH=xpg4; export BIN_SH # for Tru64
  39906. DUALCASE=1; export DUALCASE # for MKS sh
  39907. -# Check that we have a working $echo.
  39908. -if test "X$1" = X--no-reexec; then
  39909. - # Discard the --no-reexec flag, and continue.
  39910. - shift
  39911. -elif test "X$1" = X--fallback-echo; then
  39912. - # Avoid inline document here, it may be left over
  39913. - :
  39914. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  39915. - # Yippee, $echo works!
  39916. - :
  39917. -else
  39918. - # Restart under the correct shell, and then maybe $echo will work.
  39919. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  39920. -fi
  39921. -
  39922. -if test "X$1" = X--fallback-echo; then
  39923. - # used as fallback echo
  39924. - shift
  39925. - cat <<EOF
  39926. -$*
  39927. -EOF
  39928. - exit $EXIT_SUCCESS
  39929. -fi
  39930. -
  39931. -default_mode=
  39932. -help="Try \`$progname --help' for more information."
  39933. -magic="%%%MAGIC variable%%%"
  39934. -mkdir="mkdir"
  39935. -mv="mv -f"
  39936. -rm="rm -f"
  39937. -
  39938. -# Sed substitution that helps us do robust quoting. It backslashifies
  39939. -# metacharacters that are still active within double-quoted strings.
  39940. -Xsed="${SED}"' -e 1s/^X//'
  39941. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  39942. -# test EBCDIC or ASCII
  39943. -case `echo X|tr X '\101'` in
  39944. - A) # ASCII based system
  39945. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  39946. - SP2NL='tr \040 \012'
  39947. - NL2SP='tr \015\012 \040\040'
  39948. - ;;
  39949. - *) # EBCDIC based system
  39950. - SP2NL='tr \100 \n'
  39951. - NL2SP='tr \r\n \100\100'
  39952. - ;;
  39953. -esac
  39954. -
  39955. -# NLS nuisances.
  39956. +# NLS nuisances: We save the old values to restore during execute mode.
  39957. # Only set LANG and LC_ALL to C if already set.
  39958. # These must not be set unconditionally because not all systems understand
  39959. # e.g. LANG=C (notably SCO).
  39960. -# We save the old values to restore during execute mode.
  39961. -lt_env=
  39962. +lt_user_locale=
  39963. +lt_safe_locale=
  39964. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  39965. do
  39966. eval "if test \"\${$lt_var+set}\" = set; then
  39967. - save_$lt_var=\$$lt_var
  39968. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  39969. - $lt_var=C
  39970. + save_$lt_var=\$$lt_var
  39971. + $lt_var=C
  39972. export $lt_var
  39973. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  39974. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  39975. fi"
  39976. done
  39977. -if test -n "$lt_env"; then
  39978. - lt_env="env $lt_env"
  39979. -fi
  39980. +$lt_unset CDPATH
  39981. +
  39982. +
  39983. +
  39984. +
  39985. +
  39986. +: ${CP="cp -f"}
  39987. +: ${ECHO="echo"}
  39988. +: ${EGREP="/bin/grep -E"}
  39989. +: ${FGREP="/bin/grep -F"}
  39990. +: ${GREP="/bin/grep"}
  39991. +: ${LN_S="ln -s"}
  39992. +: ${MAKE="make"}
  39993. +: ${MKDIR="mkdir"}
  39994. +: ${MV="mv -f"}
  39995. +: ${RM="rm -f"}
  39996. +: ${SED="/bin/sed"}
  39997. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  39998. +: ${Xsed="$SED -e 1s/^X//"}
  39999. +
  40000. +# Global variables:
  40001. +EXIT_SUCCESS=0
  40002. +EXIT_FAILURE=1
  40003. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  40004. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  40005. +
  40006. +exit_status=$EXIT_SUCCESS
  40007. # Make sure IFS has a sensible default
  40008. lt_nl='
  40009. '
  40010. IFS=" $lt_nl"
  40011. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  40012. - $echo "$modename: not configured to build any kind of library" 1>&2
  40013. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  40014. - exit $EXIT_FAILURE
  40015. -fi
  40016. +dirname="s,/[^/]*$,,"
  40017. +basename="s,^.*/,,"
  40018. -# Global variables.
  40019. -mode=$default_mode
  40020. -nonopt=
  40021. -prev=
  40022. -prevopt=
  40023. -run=
  40024. -show="$echo"
  40025. -show_help=
  40026. -execute_dlfiles=
  40027. -duplicate_deps=no
  40028. -preserve_args=
  40029. -lo2o="s/\\.lo\$/.${objext}/"
  40030. -o2lo="s/\\.${objext}\$/.lo/"
  40031. -extracted_archives=
  40032. -extracted_serial=0
  40033. +# func_dirname_and_basename file append nondir_replacement
  40034. +# perform func_basename and func_dirname in a single function
  40035. +# call:
  40036. +# dirname: Compute the dirname of FILE. If nonempty,
  40037. +# add APPEND to the result, otherwise set result
  40038. +# to NONDIR_REPLACEMENT.
  40039. +# value returned in "$func_dirname_result"
  40040. +# basename: Compute filename of FILE.
  40041. +# value retuned in "$func_basename_result"
  40042. +# Implementation must be kept synchronized with func_dirname
  40043. +# and func_basename. For efficiency, we do not delegate to
  40044. +# those functions but instead duplicate the functionality here.
  40045. +func_dirname_and_basename ()
  40046. +{
  40047. + # Extract subdirectory from the argument.
  40048. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  40049. + if test "X$func_dirname_result" = "X${1}"; then
  40050. + func_dirname_result="${3}"
  40051. + else
  40052. + func_dirname_result="$func_dirname_result${2}"
  40053. + fi
  40054. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  40055. +}
  40056. +
  40057. +# Generated shell functions inserted here.
  40058. +
  40059. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  40060. +# is ksh but when the shell is invoked as "sh" and the current value of
  40061. +# the _XPG environment variable is not equal to 1 (one), the special
  40062. +# positional parameter $0, within a function call, is the name of the
  40063. +# function.
  40064. +progpath="$0"
  40065. +
  40066. +# The name of this program:
  40067. +# In the unlikely event $progname began with a '-', it would play havoc with
  40068. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  40069. +func_dirname_and_basename "$progpath"
  40070. +progname=$func_basename_result
  40071. +case $progname in
  40072. + -*) progname=./$progname ;;
  40073. +esac
  40074. +
  40075. +# Make sure we have an absolute path for reexecution:
  40076. +case $progpath in
  40077. + [\\/]*|[A-Za-z]:\\*) ;;
  40078. + *[\\/]*)
  40079. + progdir=$func_dirname_result
  40080. + progdir=`cd "$progdir" && pwd`
  40081. + progpath="$progdir/$progname"
  40082. + ;;
  40083. + *)
  40084. + save_IFS="$IFS"
  40085. + IFS=:
  40086. + for progdir in $PATH; do
  40087. + IFS="$save_IFS"
  40088. + test -x "$progdir/$progname" && break
  40089. + done
  40090. + IFS="$save_IFS"
  40091. + test -n "$progdir" || progdir=`pwd`
  40092. + progpath="$progdir/$progname"
  40093. + ;;
  40094. +esac
  40095. +
  40096. +# Sed substitution that helps us do robust quoting. It backslashifies
  40097. +# metacharacters that are still active within double-quoted strings.
  40098. +Xsed="${SED}"' -e 1s/^X//'
  40099. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  40100. +
  40101. +# Same as above, but do not quote variable references.
  40102. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  40103. +
  40104. +# Re-`\' parameter expansions in output of double_quote_subst that were
  40105. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  40106. +# in input to double_quote_subst, that '$' was protected from expansion.
  40107. +# Since each input `\' is now two `\'s, look for any number of runs of
  40108. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  40109. +bs='\\'
  40110. +bs2='\\\\'
  40111. +bs4='\\\\\\\\'
  40112. +dollar='\$'
  40113. +sed_double_backslash="\
  40114. + s/$bs4/&\\
  40115. +/g
  40116. + s/^$bs2$dollar/$bs&/
  40117. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  40118. + s/\n//g"
  40119. +
  40120. +# Standard options:
  40121. +opt_dry_run=false
  40122. +opt_help=false
  40123. +opt_quiet=false
  40124. +opt_verbose=false
  40125. +opt_warning=:
  40126. +
  40127. +# func_echo arg...
  40128. +# Echo program name prefixed message, along with the current mode
  40129. +# name if it has been set yet.
  40130. +func_echo ()
  40131. +{
  40132. + $ECHO "$progname${mode+: }$mode: $*"
  40133. +}
  40134. +
  40135. +# func_verbose arg...
  40136. +# Echo program name prefixed message in verbose mode only.
  40137. +func_verbose ()
  40138. +{
  40139. + $opt_verbose && func_echo ${1+"$@"}
  40140. +
  40141. + # A bug in bash halts the script if the last line of a function
  40142. + # fails when set -e is in force, so we need another command to
  40143. + # work around that:
  40144. + :
  40145. +}
  40146. +
  40147. +# func_error arg...
  40148. +# Echo program name prefixed message to standard error.
  40149. +func_error ()
  40150. +{
  40151. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  40152. +}
  40153. +
  40154. +# func_warning arg...
  40155. +# Echo program name prefixed warning message to standard error.
  40156. +func_warning ()
  40157. +{
  40158. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  40159. +
  40160. + # bash bug again:
  40161. + :
  40162. +}
  40163. +
  40164. +# func_fatal_error arg...
  40165. +# Echo program name prefixed message to standard error, and exit.
  40166. +func_fatal_error ()
  40167. +{
  40168. + func_error ${1+"$@"}
  40169. + exit $EXIT_FAILURE
  40170. +}
  40171. +
  40172. +# func_fatal_help arg...
  40173. +# Echo program name prefixed message to standard error, followed by
  40174. +# a help hint, and exit.
  40175. +func_fatal_help ()
  40176. +{
  40177. + func_error ${1+"$@"}
  40178. + func_fatal_error "$help"
  40179. +}
  40180. +help="Try \`$progname --help' for more information." ## default
  40181. +
  40182. +
  40183. +# func_grep expression filename
  40184. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  40185. +func_grep ()
  40186. +{
  40187. + $GREP "$1" "$2" >/dev/null 2>&1
  40188. +}
  40189. +
  40190. +
  40191. +# func_mkdir_p directory-path
  40192. +# Make sure the entire path to DIRECTORY-PATH is available.
  40193. +func_mkdir_p ()
  40194. +{
  40195. + my_directory_path="$1"
  40196. + my_dir_list=
  40197. +
  40198. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  40199. +
  40200. + # Protect directory names starting with `-'
  40201. + case $my_directory_path in
  40202. + -*) my_directory_path="./$my_directory_path" ;;
  40203. + esac
  40204. +
  40205. + # While some portion of DIR does not yet exist...
  40206. + while test ! -d "$my_directory_path"; do
  40207. + # ...make a list in topmost first order. Use a colon delimited
  40208. + # list incase some portion of path contains whitespace.
  40209. + my_dir_list="$my_directory_path:$my_dir_list"
  40210. +
  40211. + # If the last portion added has no slash in it, the list is done
  40212. + case $my_directory_path in */*) ;; *) break ;; esac
  40213. +
  40214. + # ...otherwise throw away the child directory and loop
  40215. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  40216. + done
  40217. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  40218. +
  40219. + save_mkdir_p_IFS="$IFS"; IFS=':'
  40220. + for my_dir in $my_dir_list; do
  40221. + IFS="$save_mkdir_p_IFS"
  40222. + # mkdir can fail with a `File exist' error if two processes
  40223. + # try to create one of the directories concurrently. Don't
  40224. + # stop in that case!
  40225. + $MKDIR "$my_dir" 2>/dev/null || :
  40226. + done
  40227. + IFS="$save_mkdir_p_IFS"
  40228. +
  40229. + # Bail out if we (or some other process) failed to create a directory.
  40230. + test -d "$my_directory_path" || \
  40231. + func_fatal_error "Failed to create \`$1'"
  40232. + fi
  40233. +}
  40234. -#####################################
  40235. -# Shell function definitions:
  40236. -# This seems to be the best place for them
  40237. # func_mktempdir [string]
  40238. # Make a temporary directory that won't clash with other running
  40239. @@ -167,7 +355,7 @@
  40240. {
  40241. my_template="${TMPDIR-/tmp}/${1-$progname}"
  40242. - if test "$run" = ":"; then
  40243. + if test "$opt_dry_run" = ":"; then
  40244. # Return a directory name, but don't create it in dry-run mode
  40245. my_tmpdir="${my_template}-$$"
  40246. else
  40247. @@ -176,526 +364,787 @@
  40248. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  40249. if test ! -d "$my_tmpdir"; then
  40250. - # Failing that, at least try and use $RANDOM to avoid a race
  40251. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  40252. + # Failing that, at least try and use $RANDOM to avoid a race
  40253. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  40254. - save_mktempdir_umask=`umask`
  40255. - umask 0077
  40256. - $mkdir "$my_tmpdir"
  40257. - umask $save_mktempdir_umask
  40258. + save_mktempdir_umask=`umask`
  40259. + umask 0077
  40260. + $MKDIR "$my_tmpdir"
  40261. + umask $save_mktempdir_umask
  40262. fi
  40263. # If we're not in dry-run mode, bomb out on failure
  40264. - test -d "$my_tmpdir" || {
  40265. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  40266. - exit $EXIT_FAILURE
  40267. - }
  40268. + test -d "$my_tmpdir" || \
  40269. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  40270. fi
  40271. - $echo "X$my_tmpdir" | $Xsed
  40272. + $ECHO "X$my_tmpdir" | $Xsed
  40273. }
  40274. -# func_win32_libid arg
  40275. -# return the library type of file 'arg'
  40276. -#
  40277. -# Need a lot of goo to handle *both* DLLs and import libs
  40278. -# Has to be a shell function in order to 'eat' the argument
  40279. -# that is supplied when $file_magic_command is called.
  40280. -func_win32_libid ()
  40281. +# func_quote_for_eval arg
  40282. +# Aesthetically quote ARG to be evaled later.
  40283. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  40284. +# is double-quoted, suitable for a subsequent eval, whereas
  40285. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  40286. +# which are still active within double quotes backslashified.
  40287. +func_quote_for_eval ()
  40288. {
  40289. - win32_libid_type="unknown"
  40290. - win32_fileres=`file -L $1 2>/dev/null`
  40291. - case $win32_fileres in
  40292. - *ar\ archive\ import\ library*) # definitely import
  40293. - win32_libid_type="x86 archive import"
  40294. - ;;
  40295. - *ar\ archive*) # could be an import, or static
  40296. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  40297. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  40298. - win32_nmres=`eval $NM -f posix -A $1 | \
  40299. - $SED -n -e '1,100{
  40300. - / I /{
  40301. - s,.*,import,
  40302. - p
  40303. - q
  40304. - }
  40305. - }'`
  40306. - case $win32_nmres in
  40307. - import*) win32_libid_type="x86 archive import";;
  40308. - *) win32_libid_type="x86 archive static";;
  40309. - esac
  40310. - fi
  40311. - ;;
  40312. - *DLL*)
  40313. - win32_libid_type="x86 DLL"
  40314. - ;;
  40315. - *executable*) # but shell scripts are "executable" too...
  40316. - case $win32_fileres in
  40317. - *MS\ Windows\ PE\ Intel*)
  40318. - win32_libid_type="x86 DLL"
  40319. - ;;
  40320. + case $1 in
  40321. + *[\\\`\"\$]*)
  40322. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  40323. + *)
  40324. + func_quote_for_eval_unquoted_result="$1" ;;
  40325. + esac
  40326. +
  40327. + case $func_quote_for_eval_unquoted_result in
  40328. + # Double-quote args containing shell metacharacters to delay
  40329. + # word splitting, command substitution and and variable
  40330. + # expansion for a subsequent eval.
  40331. + # Many Bourne shells cannot handle close brackets correctly
  40332. + # in scan sets, so we specify it separately.
  40333. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40334. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  40335. + ;;
  40336. + *)
  40337. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  40338. esac
  40339. - ;;
  40340. - esac
  40341. - $echo $win32_libid_type
  40342. }
  40343. -# func_infer_tag arg
  40344. -# Infer tagged configuration to use if any are available and
  40345. -# if one wasn't chosen via the "--tag" command line option.
  40346. -# Only attempt this if the compiler in the base compile
  40347. -# command doesn't match the default compiler.
  40348. -# arg is usually of the form 'gcc ...'
  40349. -func_infer_tag ()
  40350. +# func_quote_for_expand arg
  40351. +# Aesthetically quote ARG to be evaled later; same as above,
  40352. +# but do not quote variable references.
  40353. +func_quote_for_expand ()
  40354. {
  40355. - if test -n "$available_tags" && test -z "$tagname"; then
  40356. - CC_quoted=
  40357. - for arg in $CC; do
  40358. - case $arg in
  40359. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40360. - arg="\"$arg\""
  40361. - ;;
  40362. - esac
  40363. - CC_quoted="$CC_quoted $arg"
  40364. - done
  40365. - case $@ in
  40366. - # Blanks in the command may have been stripped by the calling shell,
  40367. - # but not from the CC environment variable when configure was run.
  40368. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  40369. - # Blanks at the start of $base_compile will cause this to fail
  40370. - # if we don't check for them as well.
  40371. + case $1 in
  40372. + *[\\\`\"]*)
  40373. + my_arg=`$ECHO "X$1" | $Xsed \
  40374. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  40375. *)
  40376. - for z in $available_tags; do
  40377. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  40378. - # Evaluate the configuration.
  40379. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  40380. - CC_quoted=
  40381. - for arg in $CC; do
  40382. - # Double-quote args containing other shell metacharacters.
  40383. - case $arg in
  40384. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40385. - arg="\"$arg\""
  40386. - ;;
  40387. - esac
  40388. - CC_quoted="$CC_quoted $arg"
  40389. - done
  40390. - case "$@ " in
  40391. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  40392. - # The compiler in the base compile command matches
  40393. - # the one in the tagged configuration.
  40394. - # Assume this is the tagged configuration we want.
  40395. - tagname=$z
  40396. - break
  40397. - ;;
  40398. - esac
  40399. - fi
  40400. - done
  40401. - # If $tagname still isn't set, then no tagged configuration
  40402. - # was found and let the user know that the "--tag" command
  40403. - # line option must be used.
  40404. - if test -z "$tagname"; then
  40405. - $echo "$modename: unable to infer tagged configuration"
  40406. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  40407. - exit $EXIT_FAILURE
  40408. -# else
  40409. -# $echo "$modename: using $tagname tagged configuration"
  40410. - fi
  40411. - ;;
  40412. - esac
  40413. - fi
  40414. + my_arg="$1" ;;
  40415. + esac
  40416. +
  40417. + case $my_arg in
  40418. + # Double-quote args containing shell metacharacters to delay
  40419. + # word splitting and command substitution for a subsequent eval.
  40420. + # Many Bourne shells cannot handle close brackets correctly
  40421. + # in scan sets, so we specify it separately.
  40422. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40423. + my_arg="\"$my_arg\""
  40424. + ;;
  40425. + esac
  40426. +
  40427. + func_quote_for_expand_result="$my_arg"
  40428. }
  40429. -# func_extract_an_archive dir oldlib
  40430. -func_extract_an_archive ()
  40431. +# func_show_eval cmd [fail_exp]
  40432. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  40433. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  40434. +# is given, then evaluate it.
  40435. +func_show_eval ()
  40436. {
  40437. - f_ex_an_ar_dir="$1"; shift
  40438. - f_ex_an_ar_oldlib="$1"
  40439. + my_cmd="$1"
  40440. + my_fail_exp="${2-:}"
  40441. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  40442. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  40443. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  40444. - :
  40445. - else
  40446. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  40447. - exit $EXIT_FAILURE
  40448. + ${opt_silent-false} || {
  40449. + func_quote_for_expand "$my_cmd"
  40450. + eval "func_echo $func_quote_for_expand_result"
  40451. + }
  40452. +
  40453. + if ${opt_dry_run-false}; then :; else
  40454. + eval "$my_cmd"
  40455. + my_status=$?
  40456. + if test "$my_status" -eq 0; then :; else
  40457. + eval "(exit $my_status); $my_fail_exp"
  40458. + fi
  40459. fi
  40460. }
  40461. -# func_extract_archives gentop oldlib ...
  40462. -func_extract_archives ()
  40463. +
  40464. +# func_show_eval_locale cmd [fail_exp]
  40465. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  40466. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  40467. +# is given, then evaluate it. Use the saved locale for evaluation.
  40468. +func_show_eval_locale ()
  40469. {
  40470. - my_gentop="$1"; shift
  40471. - my_oldlibs=${1+"$@"}
  40472. - my_oldobjs=""
  40473. - my_xlib=""
  40474. - my_xabs=""
  40475. - my_xdir=""
  40476. - my_status=""
  40477. + my_cmd="$1"
  40478. + my_fail_exp="${2-:}"
  40479. +
  40480. + ${opt_silent-false} || {
  40481. + func_quote_for_expand "$my_cmd"
  40482. + eval "func_echo $func_quote_for_expand_result"
  40483. + }
  40484. - $show "${rm}r $my_gentop"
  40485. - $run ${rm}r "$my_gentop"
  40486. - $show "$mkdir $my_gentop"
  40487. - $run $mkdir "$my_gentop"
  40488. - my_status=$?
  40489. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  40490. - exit $my_status
  40491. + if ${opt_dry_run-false}; then :; else
  40492. + eval "$lt_user_locale
  40493. + $my_cmd"
  40494. + my_status=$?
  40495. + eval "$lt_safe_locale"
  40496. + if test "$my_status" -eq 0; then :; else
  40497. + eval "(exit $my_status); $my_fail_exp"
  40498. + fi
  40499. fi
  40500. +}
  40501. - for my_xlib in $my_oldlibs; do
  40502. - # Extract the objects.
  40503. - case $my_xlib in
  40504. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  40505. - *) my_xabs=`pwd`"/$my_xlib" ;;
  40506. - esac
  40507. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  40508. - my_xlib_u=$my_xlib
  40509. - while :; do
  40510. - case " $extracted_archives " in
  40511. - *" $my_xlib_u "*)
  40512. - extracted_serial=`expr $extracted_serial + 1`
  40513. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  40514. - *) break ;;
  40515. - esac
  40516. - done
  40517. - extracted_archives="$extracted_archives $my_xlib_u"
  40518. - my_xdir="$my_gentop/$my_xlib_u"
  40519. - $show "${rm}r $my_xdir"
  40520. - $run ${rm}r "$my_xdir"
  40521. - $show "$mkdir $my_xdir"
  40522. - $run $mkdir "$my_xdir"
  40523. - exit_status=$?
  40524. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  40525. - exit $exit_status
  40526. - fi
  40527. - case $host in
  40528. - *-darwin*)
  40529. - $show "Extracting $my_xabs"
  40530. - # Do not bother doing anything if just a dry run
  40531. - if test -z "$run"; then
  40532. - darwin_orig_dir=`pwd`
  40533. - cd $my_xdir || exit $?
  40534. - darwin_archive=$my_xabs
  40535. - darwin_curdir=`pwd`
  40536. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  40537. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  40538. - if test -n "$darwin_arches"; then
  40539. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  40540. - darwin_arch=
  40541. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  40542. - for darwin_arch in $darwin_arches ; do
  40543. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  40544. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  40545. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  40546. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  40547. - cd "$darwin_curdir"
  40548. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  40549. - done # $darwin_arches
  40550. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  40551. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  40552. - darwin_file=
  40553. - darwin_files=
  40554. - for darwin_file in $darwin_filelist; do
  40555. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  40556. - lipo -create -output "$darwin_file" $darwin_files
  40557. - done # $darwin_filelist
  40558. - ${rm}r unfat-$$
  40559. - cd "$darwin_orig_dir"
  40560. - else
  40561. - cd "$darwin_orig_dir"
  40562. - func_extract_an_archive "$my_xdir" "$my_xabs"
  40563. - fi # $darwin_arches
  40564. - fi # $run
  40565. - ;;
  40566. - *)
  40567. - func_extract_an_archive "$my_xdir" "$my_xabs"
  40568. - ;;
  40569. - esac
  40570. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  40571. - done
  40572. - func_extract_archives_result="$my_oldobjs"
  40573. +
  40574. +
  40575. +
  40576. +# func_version
  40577. +# Echo version message to standard output and exit.
  40578. +func_version ()
  40579. +{
  40580. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  40581. + s/^# //
  40582. + s/^# *$//
  40583. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  40584. + p
  40585. + }' < "$progpath"
  40586. + exit $?
  40587. +}
  40588. +
  40589. +# func_usage
  40590. +# Echo short help message to standard output and exit.
  40591. +func_usage ()
  40592. +{
  40593. + $SED -n '/^# Usage:/,/# -h/ {
  40594. + s/^# //
  40595. + s/^# *$//
  40596. + s/\$progname/'$progname'/
  40597. + p
  40598. + }' < "$progpath"
  40599. + $ECHO
  40600. + $ECHO "run \`$progname --help | more' for full usage"
  40601. + exit $?
  40602. +}
  40603. +
  40604. +# func_help
  40605. +# Echo long help message to standard output and exit.
  40606. +func_help ()
  40607. +{
  40608. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  40609. + s/^# //
  40610. + s/^# *$//
  40611. + s*\$progname*'$progname'*
  40612. + s*\$host*'"$host"'*
  40613. + s*\$SHELL*'"$SHELL"'*
  40614. + s*\$LTCC*'"$LTCC"'*
  40615. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  40616. + s*\$LD*'"$LD"'*
  40617. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  40618. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  40619. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  40620. + p
  40621. + }' < "$progpath"
  40622. + exit $?
  40623. +}
  40624. +
  40625. +# func_missing_arg argname
  40626. +# Echo program name prefixed message to standard error and set global
  40627. +# exit_cmd.
  40628. +func_missing_arg ()
  40629. +{
  40630. + func_error "missing argument for $1"
  40631. + exit_cmd=exit
  40632. }
  40633. -# End of Shell function definitions
  40634. -#####################################
  40635. -# Darwin sucks
  40636. -eval std_shrext=\"$shrext_cmds\"
  40637. +exit_cmd=:
  40638. -disable_libs=no
  40639. -# Parse our command line options once, thoroughly.
  40640. -while test "$#" -gt 0
  40641. -do
  40642. - arg="$1"
  40643. +
  40644. +
  40645. +
  40646. +# Check that we have a working $ECHO.
  40647. +if test "X$1" = X--no-reexec; then
  40648. + # Discard the --no-reexec flag, and continue.
  40649. shift
  40650. +elif test "X$1" = X--fallback-echo; then
  40651. + # Avoid inline document here, it may be left over
  40652. + :
  40653. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  40654. + # Yippee, $ECHO works!
  40655. + :
  40656. +else
  40657. + # Restart under the correct shell, and then maybe $ECHO will work.
  40658. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  40659. +fi
  40660. - case $arg in
  40661. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  40662. - *) optarg= ;;
  40663. - esac
  40664. +if test "X$1" = X--fallback-echo; then
  40665. + # used as fallback echo
  40666. + shift
  40667. + cat <<EOF
  40668. +$*
  40669. +EOF
  40670. + exit $EXIT_SUCCESS
  40671. +fi
  40672. - # If the previous option needs an argument, assign it.
  40673. - if test -n "$prev"; then
  40674. - case $prev in
  40675. - execute_dlfiles)
  40676. - execute_dlfiles="$execute_dlfiles $arg"
  40677. - ;;
  40678. - tag)
  40679. - tagname="$arg"
  40680. - preserve_args="${preserve_args}=$arg"
  40681. -
  40682. - # Check whether tagname contains only valid characters
  40683. - case $tagname in
  40684. - *[!-_A-Za-z0-9,/]*)
  40685. - $echo "$progname: invalid tag name: $tagname" 1>&2
  40686. - exit $EXIT_FAILURE
  40687. - ;;
  40688. - esac
  40689. +magic="%%%MAGIC variable%%%"
  40690. +magic_exe="%%%MAGIC EXE variable%%%"
  40691. - case $tagname in
  40692. - CC)
  40693. - # Don't test for the "default" C tag, as we know, it's there, but
  40694. - # not specially marked.
  40695. - ;;
  40696. - *)
  40697. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  40698. - taglist="$taglist $tagname"
  40699. - # Evaluate the configuration.
  40700. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  40701. - else
  40702. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  40703. - fi
  40704. - ;;
  40705. - esac
  40706. - ;;
  40707. - *)
  40708. - eval "$prev=\$arg"
  40709. - ;;
  40710. - esac
  40711. +# Global variables.
  40712. +# $mode is unset
  40713. +nonopt=
  40714. +execute_dlfiles=
  40715. +preserve_args=
  40716. +lo2o="s/\\.lo\$/.${objext}/"
  40717. +o2lo="s/\\.${objext}\$/.lo/"
  40718. +extracted_archives=
  40719. +extracted_serial=0
  40720. - prev=
  40721. - prevopt=
  40722. - continue
  40723. - fi
  40724. +opt_dry_run=false
  40725. +opt_duplicate_deps=false
  40726. +opt_silent=false
  40727. +opt_debug=:
  40728. - # Have we seen a non-optional argument yet?
  40729. - case $arg in
  40730. - --help)
  40731. - show_help=yes
  40732. - ;;
  40733. +# If this variable is set in any of the actions, the command in it
  40734. +# will be execed at the end. This prevents here-documents from being
  40735. +# left over by shells.
  40736. +exec_cmd=
  40737. - --version)
  40738. - echo "\
  40739. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  40740. -
  40741. -Copyright (C) 2008 Free Software Foundation, Inc.
  40742. -This is free software; see the source for copying conditions. There is NO
  40743. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  40744. - exit $?
  40745. - ;;
  40746. +# func_fatal_configuration arg...
  40747. +# Echo program name prefixed message to standard error, followed by
  40748. +# a configuration failure hint, and exit.
  40749. +func_fatal_configuration ()
  40750. +{
  40751. + func_error ${1+"$@"}
  40752. + func_error "See the $PACKAGE documentation for more information."
  40753. + func_fatal_error "Fatal configuration error."
  40754. +}
  40755. +
  40756. +
  40757. +# func_config
  40758. +# Display the configuration for all the tags in this script.
  40759. +func_config ()
  40760. +{
  40761. + re_begincf='^# ### BEGIN LIBTOOL'
  40762. + re_endcf='^# ### END LIBTOOL'
  40763. +
  40764. + # Default configuration.
  40765. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  40766. - --config)
  40767. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  40768. # Now print the configurations for the tags.
  40769. for tagname in $taglist; do
  40770. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  40771. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  40772. done
  40773. - exit $?
  40774. - ;;
  40775. -
  40776. - --debug)
  40777. - $echo "$progname: enabling shell trace mode"
  40778. - set -x
  40779. - preserve_args="$preserve_args $arg"
  40780. - ;;
  40781. - --dry-run | -n)
  40782. - run=:
  40783. - ;;
  40784. + exit $?
  40785. +}
  40786. - --features)
  40787. - $echo "host: $host"
  40788. +# func_features
  40789. +# Display the features supported by this script.
  40790. +func_features ()
  40791. +{
  40792. + $ECHO "host: $host"
  40793. if test "$build_libtool_libs" = yes; then
  40794. - $echo "enable shared libraries"
  40795. + $ECHO "enable shared libraries"
  40796. else
  40797. - $echo "disable shared libraries"
  40798. + $ECHO "disable shared libraries"
  40799. fi
  40800. if test "$build_old_libs" = yes; then
  40801. - $echo "enable static libraries"
  40802. + $ECHO "enable static libraries"
  40803. else
  40804. - $echo "disable static libraries"
  40805. + $ECHO "disable static libraries"
  40806. fi
  40807. +
  40808. exit $?
  40809. - ;;
  40810. +}
  40811. - --finish) mode="finish" ;;
  40812. +# func_enable_tag tagname
  40813. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  40814. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  40815. +# variable here.
  40816. +func_enable_tag ()
  40817. +{
  40818. + # Global variable:
  40819. + tagname="$1"
  40820. +
  40821. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  40822. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  40823. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  40824. +
  40825. + # Validate tagname.
  40826. + case $tagname in
  40827. + *[!-_A-Za-z0-9,/]*)
  40828. + func_fatal_error "invalid tag name: $tagname"
  40829. + ;;
  40830. + esac
  40831. - --mode) prevopt="--mode" prev=mode ;;
  40832. - --mode=*) mode="$optarg" ;;
  40833. + # Don't test for the "default" C tag, as we know it's
  40834. + # there but not specially marked.
  40835. + case $tagname in
  40836. + CC) ;;
  40837. + *)
  40838. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  40839. + taglist="$taglist $tagname"
  40840. - --preserve-dup-deps) duplicate_deps="yes" ;;
  40841. + # Evaluate the configuration. Be careful to quote the path
  40842. + # and the sed script, to avoid splitting on whitespace, but
  40843. + # also don't use non-portable quotes within backquotes within
  40844. + # quotes we have to do it in 2 steps:
  40845. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  40846. + eval "$extractedcf"
  40847. + else
  40848. + func_error "ignoring unknown tag $tagname"
  40849. + fi
  40850. + ;;
  40851. + esac
  40852. +}
  40853. - --quiet | --silent)
  40854. - show=:
  40855. - preserve_args="$preserve_args $arg"
  40856. - ;;
  40857. +# Parse options once, thoroughly. This comes as soon as possible in
  40858. +# the script to make things like `libtool --version' happen quickly.
  40859. +{
  40860. - --tag)
  40861. - prevopt="--tag"
  40862. - prev=tag
  40863. - preserve_args="$preserve_args --tag"
  40864. + # Shorthand for --mode=foo, only valid as the first argument
  40865. + case $1 in
  40866. + clean|clea|cle|cl)
  40867. + shift; set dummy --mode clean ${1+"$@"}; shift
  40868. ;;
  40869. - --tag=*)
  40870. - set tag "$optarg" ${1+"$@"}
  40871. - shift
  40872. - prev=tag
  40873. - preserve_args="$preserve_args --tag"
  40874. + compile|compil|compi|comp|com|co|c)
  40875. + shift; set dummy --mode compile ${1+"$@"}; shift
  40876. ;;
  40877. -
  40878. - -dlopen)
  40879. - prevopt="-dlopen"
  40880. - prev=execute_dlfiles
  40881. + execute|execut|execu|exec|exe|ex|e)
  40882. + shift; set dummy --mode execute ${1+"$@"}; shift
  40883. ;;
  40884. -
  40885. - -*)
  40886. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  40887. - $echo "$help" 1>&2
  40888. - exit $EXIT_FAILURE
  40889. + finish|finis|fini|fin|fi|f)
  40890. + shift; set dummy --mode finish ${1+"$@"}; shift
  40891. ;;
  40892. -
  40893. - *)
  40894. - nonopt="$arg"
  40895. - break
  40896. + install|instal|insta|inst|ins|in|i)
  40897. + shift; set dummy --mode install ${1+"$@"}; shift
  40898. + ;;
  40899. + link|lin|li|l)
  40900. + shift; set dummy --mode link ${1+"$@"}; shift
  40901. + ;;
  40902. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  40903. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  40904. ;;
  40905. esac
  40906. -done
  40907. -if test -n "$prevopt"; then
  40908. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  40909. - $echo "$help" 1>&2
  40910. - exit $EXIT_FAILURE
  40911. -fi
  40912. + # Parse non-mode specific arguments:
  40913. + while test "$#" -gt 0; do
  40914. + opt="$1"
  40915. + shift
  40916. -case $disable_libs in
  40917. -no)
  40918. - ;;
  40919. -shared)
  40920. - build_libtool_libs=no
  40921. - build_old_libs=yes
  40922. - ;;
  40923. -static)
  40924. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  40925. - ;;
  40926. -esac
  40927. + case $opt in
  40928. + --config) func_config ;;
  40929. -# If this variable is set in any of the actions, the command in it
  40930. -# will be execed at the end. This prevents here-documents from being
  40931. -# left over by shells.
  40932. -exec_cmd=
  40933. + --debug) preserve_args="$preserve_args $opt"
  40934. + func_echo "enabling shell trace mode"
  40935. + opt_debug='set -x'
  40936. + $opt_debug
  40937. + ;;
  40938. -if test -z "$show_help"; then
  40939. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  40940. + execute_dlfiles="$execute_dlfiles $1"
  40941. + shift
  40942. + ;;
  40943. - # Infer the operation mode.
  40944. - if test -z "$mode"; then
  40945. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  40946. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  40947. - case $nonopt in
  40948. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  40949. - mode=link
  40950. - for arg
  40951. - do
  40952. - case $arg in
  40953. - -c)
  40954. - mode=compile
  40955. - break
  40956. - ;;
  40957. - esac
  40958. - done
  40959. - ;;
  40960. - *db | *dbx | *strace | *truss)
  40961. - mode=execute
  40962. - ;;
  40963. - *install*|cp|mv)
  40964. - mode=install
  40965. - ;;
  40966. - *rm)
  40967. - mode=uninstall
  40968. + --dry-run | -n) opt_dry_run=: ;;
  40969. + --features) func_features ;;
  40970. + --finish) mode="finish" ;;
  40971. +
  40972. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  40973. + case $1 in
  40974. + # Valid mode arguments:
  40975. + clean) ;;
  40976. + compile) ;;
  40977. + execute) ;;
  40978. + finish) ;;
  40979. + install) ;;
  40980. + link) ;;
  40981. + relink) ;;
  40982. + uninstall) ;;
  40983. +
  40984. + # Catch anything else as an error
  40985. + *) func_error "invalid argument for $opt"
  40986. + exit_cmd=exit
  40987. + break
  40988. + ;;
  40989. + esac
  40990. +
  40991. + mode="$1"
  40992. + shift
  40993. + ;;
  40994. +
  40995. + --preserve-dup-deps)
  40996. + opt_duplicate_deps=: ;;
  40997. +
  40998. + --quiet|--silent) preserve_args="$preserve_args $opt"
  40999. + opt_silent=:
  41000. + ;;
  41001. +
  41002. + --verbose| -v) preserve_args="$preserve_args $opt"
  41003. + opt_silent=false
  41004. + ;;
  41005. +
  41006. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  41007. + preserve_args="$preserve_args $opt $1"
  41008. + func_enable_tag "$1" # tagname is set here
  41009. + shift
  41010. + ;;
  41011. +
  41012. + # Separate optargs to long options:
  41013. + -dlopen=*|--mode=*|--tag=*)
  41014. + func_opt_split "$opt"
  41015. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  41016. + shift
  41017. + ;;
  41018. +
  41019. + -\?|-h) func_usage ;;
  41020. + --help) opt_help=: ;;
  41021. + --version) func_version ;;
  41022. +
  41023. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  41024. +
  41025. + *) nonopt="$opt"
  41026. + break
  41027. + ;;
  41028. + esac
  41029. + done
  41030. +
  41031. +
  41032. + case $host in
  41033. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  41034. + # don't eliminate duplications in $postdeps and $predeps
  41035. + opt_duplicate_compiler_generated_deps=:
  41036. ;;
  41037. *)
  41038. - # If we have no mode, but dlfiles were specified, then do execute mode.
  41039. - test -n "$execute_dlfiles" && mode=execute
  41040. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  41041. + ;;
  41042. + esac
  41043. - # Just use the default operation mode.
  41044. - if test -z "$mode"; then
  41045. - if test -n "$nonopt"; then
  41046. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  41047. - else
  41048. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  41049. - fi
  41050. + # Having warned about all mis-specified options, bail out if
  41051. + # anything was wrong.
  41052. + $exit_cmd $EXIT_FAILURE
  41053. +}
  41054. +
  41055. +# func_check_version_match
  41056. +# Ensure that we are using m4 macros, and libtool script from the same
  41057. +# release of libtool.
  41058. +func_check_version_match ()
  41059. +{
  41060. + if test "$package_revision" != "$macro_revision"; then
  41061. + if test "$VERSION" != "$macro_version"; then
  41062. + if test -z "$macro_version"; then
  41063. + cat >&2 <<_LT_EOF
  41064. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  41065. +$progname: definition of this LT_INIT comes from an older release.
  41066. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  41067. +$progname: and run autoconf again.
  41068. +_LT_EOF
  41069. + else
  41070. + cat >&2 <<_LT_EOF
  41071. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  41072. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  41073. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  41074. +$progname: and run autoconf again.
  41075. +_LT_EOF
  41076. fi
  41077. - ;;
  41078. - esac
  41079. + else
  41080. + cat >&2 <<_LT_EOF
  41081. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  41082. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  41083. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  41084. +$progname: of $PACKAGE $VERSION and run autoconf again.
  41085. +_LT_EOF
  41086. + fi
  41087. +
  41088. + exit $EXIT_MISMATCH
  41089. + fi
  41090. +}
  41091. +
  41092. +
  41093. +## ----------- ##
  41094. +## Main. ##
  41095. +## ----------- ##
  41096. +
  41097. +$opt_help || {
  41098. + # Sanity checks first:
  41099. + func_check_version_match
  41100. +
  41101. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  41102. + func_fatal_configuration "not configured to build any kind of library"
  41103. fi
  41104. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  41105. +
  41106. +
  41107. + # Darwin sucks
  41108. + eval std_shrext=\"$shrext_cmds\"
  41109. +
  41110. +
  41111. # Only execute mode is allowed to have -dlopen flags.
  41112. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  41113. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  41114. - $echo "$help" 1>&2
  41115. + func_error "unrecognized option \`-dlopen'"
  41116. + $ECHO "$help" 1>&2
  41117. exit $EXIT_FAILURE
  41118. fi
  41119. # Change the help message to a mode-specific one.
  41120. generic_help="$help"
  41121. - help="Try \`$modename --help --mode=$mode' for more information."
  41122. + help="Try \`$progname --help --mode=$mode' for more information."
  41123. +}
  41124. - # These modes are in order of execution frequency so that they run quickly.
  41125. - case $mode in
  41126. - # libtool compile mode
  41127. - compile)
  41128. - modename="$modename: compile"
  41129. - # Get the compilation command and the source file.
  41130. - base_compile=
  41131. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  41132. - suppress_opt=yes
  41133. - suppress_output=
  41134. - arg_mode=normal
  41135. - libobj=
  41136. - later=
  41137. - for arg
  41138. - do
  41139. - case $arg_mode in
  41140. - arg )
  41141. - # do not "continue". Instead, add this to base_compile
  41142. - lastarg="$arg"
  41143. - arg_mode=normal
  41144. - ;;
  41145. +# func_lalib_p file
  41146. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  41147. +# This function is only a basic sanity check; it will hardly flush out
  41148. +# determined imposters.
  41149. +func_lalib_p ()
  41150. +{
  41151. + test -f "$1" &&
  41152. + $SED -e 4q "$1" 2>/dev/null \
  41153. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  41154. +}
  41155. - target )
  41156. - libobj="$arg"
  41157. - arg_mode=normal
  41158. - continue
  41159. - ;;
  41160. +# func_lalib_unsafe_p file
  41161. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  41162. +# This function implements the same check as func_lalib_p without
  41163. +# resorting to external programs. To this end, it redirects stdin and
  41164. +# closes it afterwards, without saving the original file descriptor.
  41165. +# As a safety measure, use it only where a negative result would be
  41166. +# fatal anyway. Works if `file' does not exist.
  41167. +func_lalib_unsafe_p ()
  41168. +{
  41169. + lalib_p=no
  41170. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  41171. + for lalib_p_l in 1 2 3 4
  41172. + do
  41173. + read lalib_p_line
  41174. + case "$lalib_p_line" in
  41175. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  41176. + esac
  41177. + done
  41178. + exec 0<&5 5<&-
  41179. + fi
  41180. + test "$lalib_p" = yes
  41181. +}
  41182. - normal )
  41183. - # Accept any command-line options.
  41184. - case $arg in
  41185. - -o)
  41186. - if test -n "$libobj" ; then
  41187. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  41188. - exit $EXIT_FAILURE
  41189. - fi
  41190. - arg_mode=target
  41191. - continue
  41192. - ;;
  41193. +# func_ltwrapper_script_p file
  41194. +# True iff FILE is a libtool wrapper script
  41195. +# This function is only a basic sanity check; it will hardly flush out
  41196. +# determined imposters.
  41197. +func_ltwrapper_script_p ()
  41198. +{
  41199. + func_lalib_p "$1"
  41200. +}
  41201. - -static | -prefer-pic | -prefer-non-pic)
  41202. - later="$later $arg"
  41203. - continue
  41204. - ;;
  41205. +# func_ltwrapper_executable_p file
  41206. +# True iff FILE is a libtool wrapper executable
  41207. +# This function is only a basic sanity check; it will hardly flush out
  41208. +# determined imposters.
  41209. +func_ltwrapper_executable_p ()
  41210. +{
  41211. + func_ltwrapper_exec_suffix=
  41212. + case $1 in
  41213. + *.exe) ;;
  41214. + *) func_ltwrapper_exec_suffix=.exe ;;
  41215. + esac
  41216. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  41217. +}
  41218. +
  41219. +# func_ltwrapper_scriptname file
  41220. +# Assumes file is an ltwrapper_executable
  41221. +# uses $file to determine the appropriate filename for a
  41222. +# temporary ltwrapper_script.
  41223. +func_ltwrapper_scriptname ()
  41224. +{
  41225. + func_ltwrapper_scriptname_result=""
  41226. + if func_ltwrapper_executable_p "$1"; then
  41227. + func_dirname_and_basename "$1" "" "."
  41228. + func_stripname '' '.exe' "$func_basename_result"
  41229. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  41230. + fi
  41231. +}
  41232. +
  41233. +# func_ltwrapper_p file
  41234. +# True iff FILE is a libtool wrapper script or wrapper executable
  41235. +# This function is only a basic sanity check; it will hardly flush out
  41236. +# determined imposters.
  41237. +func_ltwrapper_p ()
  41238. +{
  41239. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  41240. +}
  41241. +
  41242. +
  41243. +# func_execute_cmds commands fail_cmd
  41244. +# Execute tilde-delimited COMMANDS.
  41245. +# If FAIL_CMD is given, eval that upon failure.
  41246. +# FAIL_CMD may read-access the current command in variable CMD!
  41247. +func_execute_cmds ()
  41248. +{
  41249. + $opt_debug
  41250. + save_ifs=$IFS; IFS='~'
  41251. + for cmd in $1; do
  41252. + IFS=$save_ifs
  41253. + eval cmd=\"$cmd\"
  41254. + func_show_eval "$cmd" "${2-:}"
  41255. + done
  41256. + IFS=$save_ifs
  41257. +}
  41258. +
  41259. +
  41260. +# func_source file
  41261. +# Source FILE, adding directory component if necessary.
  41262. +# Note that it is not necessary on cygwin/mingw to append a dot to
  41263. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  41264. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  41265. +# `FILE.' does not work on cygwin managed mounts.
  41266. +func_source ()
  41267. +{
  41268. + $opt_debug
  41269. + case $1 in
  41270. + */* | *\\*) . "$1" ;;
  41271. + *) . "./$1" ;;
  41272. + esac
  41273. +}
  41274. +
  41275. +
  41276. +# func_infer_tag arg
  41277. +# Infer tagged configuration to use if any are available and
  41278. +# if one wasn't chosen via the "--tag" command line option.
  41279. +# Only attempt this if the compiler in the base compile
  41280. +# command doesn't match the default compiler.
  41281. +# arg is usually of the form 'gcc ...'
  41282. +func_infer_tag ()
  41283. +{
  41284. + $opt_debug
  41285. + if test -n "$available_tags" && test -z "$tagname"; then
  41286. + CC_quoted=
  41287. + for arg in $CC; do
  41288. + func_quote_for_eval "$arg"
  41289. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  41290. + done
  41291. + case $@ in
  41292. + # Blanks in the command may have been stripped by the calling shell,
  41293. + # but not from the CC environment variable when configure was run.
  41294. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  41295. + # Blanks at the start of $base_compile will cause this to fail
  41296. + # if we don't check for them as well.
  41297. + *)
  41298. + for z in $available_tags; do
  41299. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  41300. + # Evaluate the configuration.
  41301. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  41302. + CC_quoted=
  41303. + for arg in $CC; do
  41304. + # Double-quote args containing other shell metacharacters.
  41305. + func_quote_for_eval "$arg"
  41306. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  41307. + done
  41308. + case "$@ " in
  41309. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  41310. + # The compiler in the base compile command matches
  41311. + # the one in the tagged configuration.
  41312. + # Assume this is the tagged configuration we want.
  41313. + tagname=$z
  41314. + break
  41315. + ;;
  41316. + esac
  41317. + fi
  41318. + done
  41319. + # If $tagname still isn't set, then no tagged configuration
  41320. + # was found and let the user know that the "--tag" command
  41321. + # line option must be used.
  41322. + if test -z "$tagname"; then
  41323. + func_echo "unable to infer tagged configuration"
  41324. + func_fatal_error "specify a tag with \`--tag'"
  41325. +# else
  41326. +# func_verbose "using $tagname tagged configuration"
  41327. + fi
  41328. + ;;
  41329. + esac
  41330. + fi
  41331. +}
  41332. +
  41333. +
  41334. +
  41335. +# func_write_libtool_object output_name pic_name nonpic_name
  41336. +# Create a libtool object file (analogous to a ".la" file),
  41337. +# but don't create it if we're doing a dry run.
  41338. +func_write_libtool_object ()
  41339. +{
  41340. + write_libobj=${1}
  41341. + if test "$build_libtool_libs" = yes; then
  41342. + write_lobj=\'${2}\'
  41343. + else
  41344. + write_lobj=none
  41345. + fi
  41346. +
  41347. + if test "$build_old_libs" = yes; then
  41348. + write_oldobj=\'${3}\'
  41349. + else
  41350. + write_oldobj=none
  41351. + fi
  41352. +
  41353. + $opt_dry_run || {
  41354. + cat >${write_libobj}T <<EOF
  41355. +# $write_libobj - a libtool object file
  41356. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  41357. +#
  41358. +# Please DO NOT delete this file!
  41359. +# It is necessary for linking the library.
  41360. +
  41361. +# Name of the PIC object.
  41362. +pic_object=$write_lobj
  41363. +
  41364. +# Name of the non-PIC object
  41365. +non_pic_object=$write_oldobj
  41366. +
  41367. +EOF
  41368. + $MV "${write_libobj}T" "${write_libobj}"
  41369. + }
  41370. +}
  41371. +
  41372. +# func_mode_compile arg...
  41373. +func_mode_compile ()
  41374. +{
  41375. + $opt_debug
  41376. + # Get the compilation command and the source file.
  41377. + base_compile=
  41378. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  41379. + suppress_opt=yes
  41380. + suppress_output=
  41381. + arg_mode=normal
  41382. + libobj=
  41383. + later=
  41384. + pie_flag=
  41385. +
  41386. + for arg
  41387. + do
  41388. + case $arg_mode in
  41389. + arg )
  41390. + # do not "continue". Instead, add this to base_compile
  41391. + lastarg="$arg"
  41392. + arg_mode=normal
  41393. + ;;
  41394. +
  41395. + target )
  41396. + libobj="$arg"
  41397. + arg_mode=normal
  41398. + continue
  41399. + ;;
  41400. +
  41401. + normal )
  41402. + # Accept any command-line options.
  41403. + case $arg in
  41404. + -o)
  41405. + test -n "$libobj" && \
  41406. + func_fatal_error "you cannot specify \`-o' more than once"
  41407. + arg_mode=target
  41408. + continue
  41409. + ;;
  41410. +
  41411. + -pie | -fpie | -fPIE)
  41412. + pie_flag="$pie_flag $arg"
  41413. + continue
  41414. + ;;
  41415. +
  41416. + -shared | -static | -prefer-pic | -prefer-non-pic)
  41417. + later="$later $arg"
  41418. + continue
  41419. + ;;
  41420. -no-suppress)
  41421. suppress_opt=no
  41422. @@ -708,31 +1157,25 @@
  41423. ;; # replaced later. I would guess that would be a bug.
  41424. -Wc,*)
  41425. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  41426. + func_stripname '-Wc,' '' "$arg"
  41427. + args=$func_stripname_result
  41428. lastarg=
  41429. save_ifs="$IFS"; IFS=','
  41430. - for arg in $args; do
  41431. + for arg in $args; do
  41432. IFS="$save_ifs"
  41433. -
  41434. - # Double-quote args containing other shell metacharacters.
  41435. - # Many Bourne shells cannot handle close brackets correctly
  41436. - # in scan sets, so we specify it separately.
  41437. - case $arg in
  41438. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41439. - arg="\"$arg\""
  41440. - ;;
  41441. - esac
  41442. - lastarg="$lastarg $arg"
  41443. + func_quote_for_eval "$arg"
  41444. + lastarg="$lastarg $func_quote_for_eval_result"
  41445. done
  41446. IFS="$save_ifs"
  41447. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  41448. + func_stripname ' ' '' "$lastarg"
  41449. + lastarg=$func_stripname_result
  41450. # Add the arguments to base_compile.
  41451. base_compile="$base_compile $lastarg"
  41452. continue
  41453. ;;
  41454. - * )
  41455. + *)
  41456. # Accept the current argument as the source file.
  41457. # The previous "srcfile" becomes the current argument.
  41458. #
  41459. @@ -744,66 +1187,42 @@
  41460. esac # case $arg_mode
  41461. # Aesthetically quote the previous argument.
  41462. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  41463. -
  41464. - case $lastarg in
  41465. - # Double-quote args containing other shell metacharacters.
  41466. - # Many Bourne shells cannot handle close brackets correctly
  41467. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  41468. - # in scan sets (worked around with variable expansion),
  41469. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  41470. - # at all, so we specify them separately.
  41471. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41472. - lastarg="\"$lastarg\""
  41473. - ;;
  41474. - esac
  41475. -
  41476. - base_compile="$base_compile $lastarg"
  41477. + func_quote_for_eval "$lastarg"
  41478. + base_compile="$base_compile $func_quote_for_eval_result"
  41479. done # for arg
  41480. case $arg_mode in
  41481. arg)
  41482. - $echo "$modename: you must specify an argument for -Xcompile"
  41483. - exit $EXIT_FAILURE
  41484. + func_fatal_error "you must specify an argument for -Xcompile"
  41485. ;;
  41486. target)
  41487. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  41488. - exit $EXIT_FAILURE
  41489. + func_fatal_error "you must specify a target with \`-o'"
  41490. ;;
  41491. *)
  41492. # Get the name of the library object.
  41493. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  41494. + test -z "$libobj" && {
  41495. + func_basename "$srcfile"
  41496. + libobj="$func_basename_result"
  41497. + }
  41498. ;;
  41499. esac
  41500. # Recognize several different file suffixes.
  41501. # If the user specifies -o file.o, it is replaced with file.lo
  41502. - xform='[cCFSifmso]'
  41503. case $libobj in
  41504. - *.ada) xform=ada ;;
  41505. - *.adb) xform=adb ;;
  41506. - *.ads) xform=ads ;;
  41507. - *.asm) xform=asm ;;
  41508. - *.c++) xform=c++ ;;
  41509. - *.cc) xform=cc ;;
  41510. - *.ii) xform=ii ;;
  41511. - *.class) xform=class ;;
  41512. - *.cpp) xform=cpp ;;
  41513. - *.cxx) xform=cxx ;;
  41514. - *.[fF][09]?) xform=[fF][09]. ;;
  41515. - *.for) xform=for ;;
  41516. - *.java) xform=java ;;
  41517. - *.obj) xform=obj ;;
  41518. - *.sx) xform=sx ;;
  41519. + *.[cCFSifmso] | \
  41520. + *.ada | *.adb | *.ads | *.asm | \
  41521. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  41522. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  41523. + func_xform "$libobj"
  41524. + libobj=$func_xform_result
  41525. + ;;
  41526. esac
  41527. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  41528. -
  41529. case $libobj in
  41530. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  41531. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  41532. *)
  41533. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  41534. - exit $EXIT_FAILURE
  41535. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  41536. ;;
  41537. esac
  41538. @@ -811,7 +1230,15 @@
  41539. for arg in $later; do
  41540. case $arg in
  41541. + -shared)
  41542. + test "$build_libtool_libs" != yes && \
  41543. + func_fatal_configuration "can not build a shared library"
  41544. + build_old_libs=no
  41545. + continue
  41546. + ;;
  41547. +
  41548. -static)
  41549. + build_libtool_libs=no
  41550. build_old_libs=yes
  41551. continue
  41552. ;;
  41553. @@ -828,28 +1255,17 @@
  41554. esac
  41555. done
  41556. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  41557. - case $qlibobj in
  41558. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41559. - qlibobj="\"$qlibobj\"" ;;
  41560. - esac
  41561. - test "X$libobj" != "X$qlibobj" \
  41562. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  41563. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  41564. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  41565. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  41566. - if test "X$xdir" = "X$obj"; then
  41567. - xdir=
  41568. - else
  41569. - xdir=$xdir/
  41570. - fi
  41571. + func_quote_for_eval "$libobj"
  41572. + test "X$libobj" != "X$func_quote_for_eval_result" \
  41573. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  41574. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  41575. + func_dirname_and_basename "$obj" "/" ""
  41576. + objname="$func_basename_result"
  41577. + xdir="$func_dirname_result"
  41578. lobj=${xdir}$objdir/$objname
  41579. - if test -z "$base_compile"; then
  41580. - $echo "$modename: you must specify a compilation command" 1>&2
  41581. - $echo "$help" 1>&2
  41582. - exit $EXIT_FAILURE
  41583. - fi
  41584. + test -z "$base_compile" && \
  41585. + func_fatal_help "you must specify a compilation command"
  41586. # Delete any leftover library objects.
  41587. if test "$build_old_libs" = yes; then
  41588. @@ -858,12 +1274,9 @@
  41589. removelist="$lobj $libobj ${libobj}T"
  41590. fi
  41591. - $run $rm $removelist
  41592. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  41593. -
  41594. # On Cygwin there's no "real" PIC flag so we must build both object types
  41595. case $host_os in
  41596. - cygwin* | mingw* | pw32* | os2*)
  41597. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  41598. pic_mode=default
  41599. ;;
  41600. esac
  41601. @@ -875,10 +1288,8 @@
  41602. # Calculate the filename of the output object if compiler does
  41603. # not support -o with -c
  41604. if test "$compiler_c_o" = no; then
  41605. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  41606. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  41607. lockfile="$output_obj.lock"
  41608. - removelist="$removelist $output_obj $lockfile"
  41609. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  41610. else
  41611. output_obj=
  41612. need_locks=no
  41613. @@ -888,13 +1299,13 @@
  41614. # Lock this critical section if it is needed
  41615. # We use this script file to make the link, it avoids creating a new file
  41616. if test "$need_locks" = yes; then
  41617. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  41618. - $show "Waiting for $lockfile to be removed"
  41619. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  41620. + func_echo "Waiting for $lockfile to be removed"
  41621. sleep 2
  41622. done
  41623. elif test "$need_locks" = warn; then
  41624. if test -f "$lockfile"; then
  41625. - $echo "\
  41626. + $ECHO "\
  41627. *** ERROR, $lockfile exists and contains:
  41628. `cat $lockfile 2>/dev/null`
  41629. @@ -905,34 +1316,22 @@
  41630. avoid parallel builds (make -j) in this platform, or get a better
  41631. compiler."
  41632. - $run $rm $removelist
  41633. + $opt_dry_run || $RM $removelist
  41634. exit $EXIT_FAILURE
  41635. fi
  41636. - $echo "$srcfile" > "$lockfile"
  41637. + removelist="$removelist $output_obj"
  41638. + $ECHO "$srcfile" > "$lockfile"
  41639. fi
  41640. + $opt_dry_run || $RM $removelist
  41641. + removelist="$removelist $lockfile"
  41642. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  41643. +
  41644. if test -n "$fix_srcfile_path"; then
  41645. eval srcfile=\"$fix_srcfile_path\"
  41646. fi
  41647. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  41648. - case $qsrcfile in
  41649. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41650. - qsrcfile="\"$qsrcfile\"" ;;
  41651. - esac
  41652. -
  41653. - $run $rm "$libobj" "${libobj}T"
  41654. -
  41655. - # Create a libtool object file (analogous to a ".la" file),
  41656. - # but don't create it if we're doing a dry run.
  41657. - test -z "$run" && cat > ${libobj}T <<EOF
  41658. -# $libobj - a libtool object file
  41659. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  41660. -#
  41661. -# Please DO NOT delete this file!
  41662. -# It is necessary for linking the library.
  41663. -
  41664. -# Name of the PIC object.
  41665. -EOF
  41666. + func_quote_for_eval "$srcfile"
  41667. + qsrcfile=$func_quote_for_eval_result
  41668. # Only build a PIC object if we are building libtool libraries.
  41669. if test "$build_libtool_libs" = yes; then
  41670. @@ -946,32 +1345,19 @@
  41671. command="$base_compile $qsrcfile"
  41672. fi
  41673. - if test ! -d "${xdir}$objdir"; then
  41674. - $show "$mkdir ${xdir}$objdir"
  41675. - $run $mkdir ${xdir}$objdir
  41676. - exit_status=$?
  41677. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  41678. - exit $exit_status
  41679. - fi
  41680. - fi
  41681. + func_mkdir_p "$xdir$objdir"
  41682. if test -z "$output_obj"; then
  41683. # Place PIC objects in $objdir
  41684. command="$command -o $lobj"
  41685. fi
  41686. - $run $rm "$lobj" "$output_obj"
  41687. -
  41688. - $show "$command"
  41689. - if $run eval $lt_env "$command"; then :
  41690. - else
  41691. - test -n "$output_obj" && $run $rm $removelist
  41692. - exit $EXIT_FAILURE
  41693. - fi
  41694. + func_show_eval_locale "$command" \
  41695. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  41696. if test "$need_locks" = warn &&
  41697. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  41698. - $echo "\
  41699. + $ECHO "\
  41700. *** ERROR, $lockfile contains:
  41701. `cat $lockfile 2>/dev/null`
  41702. @@ -985,45 +1371,27 @@
  41703. avoid parallel builds (make -j) in this platform, or get a better
  41704. compiler."
  41705. - $run $rm $removelist
  41706. + $opt_dry_run || $RM $removelist
  41707. exit $EXIT_FAILURE
  41708. fi
  41709. # Just move the object if needed, then go on to compile the next one
  41710. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  41711. - $show "$mv $output_obj $lobj"
  41712. - if $run $mv $output_obj $lobj; then :
  41713. - else
  41714. - error=$?
  41715. - $run $rm $removelist
  41716. - exit $error
  41717. - fi
  41718. + func_show_eval '$MV "$output_obj" "$lobj"' \
  41719. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  41720. fi
  41721. - # Append the name of the PIC object to the libtool object file.
  41722. - test -z "$run" && cat >> ${libobj}T <<EOF
  41723. -pic_object='$objdir/$objname'
  41724. -
  41725. -EOF
  41726. -
  41727. # Allow error messages only from the first compilation.
  41728. if test "$suppress_opt" = yes; then
  41729. - suppress_output=' >/dev/null 2>&1'
  41730. + suppress_output=' >/dev/null 2>&1'
  41731. fi
  41732. - else
  41733. - # No PIC object so indicate it doesn't exist in the libtool
  41734. - # object file.
  41735. - test -z "$run" && cat >> ${libobj}T <<EOF
  41736. -pic_object=none
  41737. -
  41738. -EOF
  41739. fi
  41740. # Only build a position-dependent object if we build old libraries.
  41741. if test "$build_old_libs" = yes; then
  41742. if test "$pic_mode" != yes; then
  41743. # Don't build PIC code
  41744. - command="$base_compile $qsrcfile"
  41745. + command="$base_compile $qsrcfile$pie_flag"
  41746. else
  41747. command="$base_compile $qsrcfile $pic_flag"
  41748. fi
  41749. @@ -1033,17 +1401,12 @@
  41750. # Suppress compiler output if we already did a PIC compilation.
  41751. command="$command$suppress_output"
  41752. - $run $rm "$obj" "$output_obj"
  41753. - $show "$command"
  41754. - if $run eval $lt_env "$command"; then :
  41755. - else
  41756. - $run $rm $removelist
  41757. - exit $EXIT_FAILURE
  41758. - fi
  41759. + func_show_eval_locale "$command" \
  41760. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  41761. if test "$need_locks" = warn &&
  41762. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  41763. - $echo "\
  41764. + $ECHO "\
  41765. *** ERROR, $lockfile contains:
  41766. `cat $lockfile 2>/dev/null`
  41767. @@ -1057,5477 +1420,6784 @@
  41768. avoid parallel builds (make -j) in this platform, or get a better
  41769. compiler."
  41770. - $run $rm $removelist
  41771. + $opt_dry_run || $RM $removelist
  41772. exit $EXIT_FAILURE
  41773. fi
  41774. # Just move the object if needed
  41775. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  41776. - $show "$mv $output_obj $obj"
  41777. - if $run $mv $output_obj $obj; then :
  41778. - else
  41779. - error=$?
  41780. - $run $rm $removelist
  41781. - exit $error
  41782. - fi
  41783. + func_show_eval '$MV "$output_obj" "$obj"' \
  41784. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  41785. fi
  41786. -
  41787. - # Append the name of the non-PIC object the libtool object file.
  41788. - # Only append if the libtool object file exists.
  41789. - test -z "$run" && cat >> ${libobj}T <<EOF
  41790. -# Name of the non-PIC object.
  41791. -non_pic_object='$objname'
  41792. -
  41793. -EOF
  41794. - else
  41795. - # Append the name of the non-PIC object the libtool object file.
  41796. - # Only append if the libtool object file exists.
  41797. - test -z "$run" && cat >> ${libobj}T <<EOF
  41798. -# Name of the non-PIC object.
  41799. -non_pic_object=none
  41800. -
  41801. -EOF
  41802. fi
  41803. - $run $mv "${libobj}T" "${libobj}"
  41804. + $opt_dry_run || {
  41805. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  41806. - # Unlock the critical section if it was locked
  41807. - if test "$need_locks" != no; then
  41808. - $run $rm "$lockfile"
  41809. - fi
  41810. + # Unlock the critical section if it was locked
  41811. + if test "$need_locks" != no; then
  41812. + removelist=$lockfile
  41813. + $RM "$lockfile"
  41814. + fi
  41815. + }
  41816. exit $EXIT_SUCCESS
  41817. - ;;
  41818. +}
  41819. - # libtool link mode
  41820. - link | relink)
  41821. - modename="$modename: link"
  41822. - case $host in
  41823. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  41824. - # It is impossible to link a dll without this setting, and
  41825. - # we shouldn't force the makefile maintainer to figure out
  41826. - # which system we are compiling for in order to pass an extra
  41827. - # flag for every libtool invocation.
  41828. - # allow_undefined=no
  41829. +$opt_help || {
  41830. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  41831. +}
  41832. - # FIXME: Unfortunately, there are problems with the above when trying
  41833. - # to make a dll which has undefined symbols, in which case not
  41834. - # even a static library is built. For now, we need to specify
  41835. - # -no-undefined on the libtool link line when we can be certain
  41836. - # that all symbols are satisfied, otherwise we get a static library.
  41837. - allow_undefined=yes
  41838. - ;;
  41839. - *)
  41840. - allow_undefined=yes
  41841. - ;;
  41842. - esac
  41843. - libtool_args="$nonopt"
  41844. - base_compile="$nonopt $@"
  41845. - compile_command="$nonopt"
  41846. - finalize_command="$nonopt"
  41847. +func_mode_help ()
  41848. +{
  41849. + # We need to display help for each of the modes.
  41850. + case $mode in
  41851. + "")
  41852. + # Generic help is extracted from the usage comments
  41853. + # at the start of this file.
  41854. + func_help
  41855. + ;;
  41856. - compile_rpath=
  41857. - finalize_rpath=
  41858. - compile_shlibpath=
  41859. - finalize_shlibpath=
  41860. - convenience=
  41861. - old_convenience=
  41862. - deplibs=
  41863. - old_deplibs=
  41864. - compiler_flags=
  41865. - linker_flags=
  41866. - dllsearchpath=
  41867. - lib_search_path=`pwd`
  41868. - inst_prefix_dir=
  41869. + clean)
  41870. + $ECHO \
  41871. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  41872. - avoid_version=no
  41873. - dlfiles=
  41874. - dlprefiles=
  41875. - dlself=no
  41876. - export_dynamic=no
  41877. - export_symbols=
  41878. - export_symbols_regex=
  41879. - generated=
  41880. - libobjs=
  41881. - ltlibs=
  41882. - module=no
  41883. - no_install=no
  41884. - objs=
  41885. - non_pic_objects=
  41886. - notinst_path= # paths that contain not-installed libtool libraries
  41887. - precious_files_regex=
  41888. - prefer_static_libs=no
  41889. - preload=no
  41890. - prev=
  41891. - prevarg=
  41892. - release=
  41893. - rpath=
  41894. - xrpath=
  41895. - perm_rpath=
  41896. - temp_rpath=
  41897. - thread_safe=no
  41898. - vinfo=
  41899. - vinfo_number=no
  41900. - single_module="${wl}-single_module"
  41901. +Remove files from the build directory.
  41902. - func_infer_tag $base_compile
  41903. +RM is the name of the program to use to delete files associated with each FILE
  41904. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  41905. +to RM.
  41906. - # We need to know -static, to get the right output filenames.
  41907. - for arg
  41908. - do
  41909. - case $arg in
  41910. - -all-static | -static | -static-libtool-libs)
  41911. - case $arg in
  41912. - -all-static)
  41913. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  41914. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  41915. - fi
  41916. - if test -n "$link_static_flag"; then
  41917. - dlopen_self=$dlopen_self_static
  41918. - fi
  41919. - prefer_static_libs=yes
  41920. - ;;
  41921. - -static)
  41922. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  41923. - dlopen_self=$dlopen_self_static
  41924. - fi
  41925. - prefer_static_libs=built
  41926. - ;;
  41927. - -static-libtool-libs)
  41928. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  41929. - dlopen_self=$dlopen_self_static
  41930. - fi
  41931. - prefer_static_libs=yes
  41932. - ;;
  41933. - esac
  41934. - build_libtool_libs=no
  41935. - build_old_libs=yes
  41936. - break
  41937. - ;;
  41938. - esac
  41939. - done
  41940. +If FILE is a libtool library, object or program, all the files associated
  41941. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  41942. + ;;
  41943. - # See if our shared archives depend on static archives.
  41944. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  41945. + compile)
  41946. + $ECHO \
  41947. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  41948. - # Go through the arguments, transforming them on the way.
  41949. - while test "$#" -gt 0; do
  41950. - arg="$1"
  41951. - shift
  41952. - case $arg in
  41953. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  41954. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  41955. - ;;
  41956. - *) qarg=$arg ;;
  41957. - esac
  41958. - libtool_args="$libtool_args $qarg"
  41959. +Compile a source file into a libtool library object.
  41960. - # If the previous option needs an argument, assign it.
  41961. - if test -n "$prev"; then
  41962. - case $prev in
  41963. - output)
  41964. - compile_command="$compile_command @OUTPUT@"
  41965. - finalize_command="$finalize_command @OUTPUT@"
  41966. - ;;
  41967. - esac
  41968. +This mode accepts the following additional options:
  41969. - case $prev in
  41970. - dlfiles|dlprefiles)
  41971. - if test "$preload" = no; then
  41972. - # Add the symbol object into the linking commands.
  41973. - compile_command="$compile_command @SYMFILE@"
  41974. - finalize_command="$finalize_command @SYMFILE@"
  41975. - preload=yes
  41976. - fi
  41977. - case $arg in
  41978. - *.la | *.lo) ;; # We handle these cases below.
  41979. - force)
  41980. - if test "$dlself" = no; then
  41981. - dlself=needless
  41982. - export_dynamic=yes
  41983. - fi
  41984. - prev=
  41985. - continue
  41986. - ;;
  41987. - self)
  41988. - if test "$prev" = dlprefiles; then
  41989. - dlself=yes
  41990. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  41991. - dlself=yes
  41992. - else
  41993. - dlself=needless
  41994. - export_dynamic=yes
  41995. - fi
  41996. - prev=
  41997. - continue
  41998. - ;;
  41999. - *)
  42000. - if test "$prev" = dlfiles; then
  42001. - dlfiles="$dlfiles $arg"
  42002. - else
  42003. - dlprefiles="$dlprefiles $arg"
  42004. - fi
  42005. - prev=
  42006. - continue
  42007. - ;;
  42008. - esac
  42009. - ;;
  42010. - expsyms)
  42011. - export_symbols="$arg"
  42012. - if test ! -f "$arg"; then
  42013. - $echo "$modename: symbol file \`$arg' does not exist"
  42014. - exit $EXIT_FAILURE
  42015. - fi
  42016. - prev=
  42017. - continue
  42018. - ;;
  42019. - expsyms_regex)
  42020. - export_symbols_regex="$arg"
  42021. - prev=
  42022. - continue
  42023. - ;;
  42024. - inst_prefix)
  42025. - inst_prefix_dir="$arg"
  42026. - prev=
  42027. - continue
  42028. - ;;
  42029. - precious_regex)
  42030. - precious_files_regex="$arg"
  42031. - prev=
  42032. - continue
  42033. - ;;
  42034. - release)
  42035. - release="-$arg"
  42036. - prev=
  42037. - continue
  42038. - ;;
  42039. - objectlist)
  42040. - if test -f "$arg"; then
  42041. - save_arg=$arg
  42042. - moreargs=
  42043. - for fil in `cat $save_arg`
  42044. - do
  42045. -# moreargs="$moreargs $fil"
  42046. - arg=$fil
  42047. - # A libtool-controlled object.
  42048. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  42049. + -no-suppress do not suppress compiler output for multiple passes
  42050. + -prefer-pic try to building PIC objects only
  42051. + -prefer-non-pic try to building non-PIC objects only
  42052. + -shared do not build a \`.o' file suitable for static linking
  42053. + -static only build a \`.o' file suitable for static linking
  42054. - # Check to see that this really is a libtool object.
  42055. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  42056. - pic_object=
  42057. - non_pic_object=
  42058. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  42059. +from the given SOURCEFILE.
  42060. - # Read the .lo file
  42061. - # If there is no directory component, then add one.
  42062. - case $arg in
  42063. - */* | *\\*) . $arg ;;
  42064. - *) . ./$arg ;;
  42065. - esac
  42066. +The output file name is determined by removing the directory component from
  42067. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  42068. +library object suffix, \`.lo'."
  42069. + ;;
  42070. - if test -z "$pic_object" || \
  42071. - test -z "$non_pic_object" ||
  42072. - test "$pic_object" = none && \
  42073. - test "$non_pic_object" = none; then
  42074. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  42075. - exit $EXIT_FAILURE
  42076. - fi
  42077. + execute)
  42078. + $ECHO \
  42079. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  42080. - # Extract subdirectory from the argument.
  42081. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42082. - if test "X$xdir" = "X$arg"; then
  42083. - xdir=
  42084. - else
  42085. - xdir="$xdir/"
  42086. - fi
  42087. +Automatically set library path, then run a program.
  42088. - if test "$pic_object" != none; then
  42089. - # Prepend the subdirectory the object is found in.
  42090. - pic_object="$xdir$pic_object"
  42091. +This mode accepts the following additional options:
  42092. - if test "$prev" = dlfiles; then
  42093. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  42094. - dlfiles="$dlfiles $pic_object"
  42095. - prev=
  42096. - continue
  42097. - else
  42098. - # If libtool objects are unsupported, then we need to preload.
  42099. - prev=dlprefiles
  42100. - fi
  42101. - fi
  42102. + -dlopen FILE add the directory containing FILE to the library path
  42103. - # CHECK ME: I think I busted this. -Ossama
  42104. - if test "$prev" = dlprefiles; then
  42105. - # Preload the old-style object.
  42106. - dlprefiles="$dlprefiles $pic_object"
  42107. - prev=
  42108. - fi
  42109. +This mode sets the library path environment variable according to \`-dlopen'
  42110. +flags.
  42111. - # A PIC object.
  42112. - libobjs="$libobjs $pic_object"
  42113. - arg="$pic_object"
  42114. - fi
  42115. +If any of the ARGS are libtool executable wrappers, then they are translated
  42116. +into their corresponding uninstalled binary, and any of their required library
  42117. +directories are added to the library path.
  42118. - # Non-PIC object.
  42119. - if test "$non_pic_object" != none; then
  42120. - # Prepend the subdirectory the object is found in.
  42121. - non_pic_object="$xdir$non_pic_object"
  42122. +Then, COMMAND is executed, with ARGS as arguments."
  42123. + ;;
  42124. - # A standard non-PIC object
  42125. - non_pic_objects="$non_pic_objects $non_pic_object"
  42126. - if test -z "$pic_object" || test "$pic_object" = none ; then
  42127. - arg="$non_pic_object"
  42128. - fi
  42129. - else
  42130. - # If the PIC object exists, use it instead.
  42131. - # $xdir was prepended to $pic_object above.
  42132. - non_pic_object="$pic_object"
  42133. - non_pic_objects="$non_pic_objects $non_pic_object"
  42134. - fi
  42135. - else
  42136. - # Only an error if not doing a dry-run.
  42137. - if test -z "$run"; then
  42138. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  42139. - exit $EXIT_FAILURE
  42140. - else
  42141. - # Dry-run case.
  42142. + finish)
  42143. + $ECHO \
  42144. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  42145. - # Extract subdirectory from the argument.
  42146. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42147. - if test "X$xdir" = "X$arg"; then
  42148. - xdir=
  42149. - else
  42150. - xdir="$xdir/"
  42151. - fi
  42152. +Complete the installation of libtool libraries.
  42153. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  42154. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  42155. - libobjs="$libobjs $pic_object"
  42156. - non_pic_objects="$non_pic_objects $non_pic_object"
  42157. - fi
  42158. - fi
  42159. - done
  42160. - else
  42161. - $echo "$modename: link input file \`$save_arg' does not exist"
  42162. - exit $EXIT_FAILURE
  42163. - fi
  42164. - arg=$save_arg
  42165. - prev=
  42166. - continue
  42167. - ;;
  42168. - rpath | xrpath)
  42169. - # We need an absolute path.
  42170. - case $arg in
  42171. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  42172. - *)
  42173. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  42174. - exit $EXIT_FAILURE
  42175. - ;;
  42176. - esac
  42177. - if test "$prev" = rpath; then
  42178. - case "$rpath " in
  42179. - *" $arg "*) ;;
  42180. - *) rpath="$rpath $arg" ;;
  42181. - esac
  42182. - else
  42183. - case "$xrpath " in
  42184. - *" $arg "*) ;;
  42185. - *) xrpath="$xrpath $arg" ;;
  42186. - esac
  42187. - fi
  42188. - prev=
  42189. - continue
  42190. - ;;
  42191. - xcompiler)
  42192. - compiler_flags="$compiler_flags $qarg"
  42193. - prev=
  42194. - compile_command="$compile_command $qarg"
  42195. - finalize_command="$finalize_command $qarg"
  42196. - continue
  42197. - ;;
  42198. - xlinker)
  42199. - linker_flags="$linker_flags $qarg"
  42200. - compiler_flags="$compiler_flags $wl$qarg"
  42201. - prev=
  42202. - compile_command="$compile_command $wl$qarg"
  42203. - finalize_command="$finalize_command $wl$qarg"
  42204. - continue
  42205. - ;;
  42206. - xcclinker)
  42207. - linker_flags="$linker_flags $qarg"
  42208. - compiler_flags="$compiler_flags $qarg"
  42209. - prev=
  42210. - compile_command="$compile_command $qarg"
  42211. - finalize_command="$finalize_command $qarg"
  42212. - continue
  42213. - ;;
  42214. - shrext)
  42215. - shrext_cmds="$arg"
  42216. - prev=
  42217. - continue
  42218. - ;;
  42219. - darwin_framework|darwin_framework_skip)
  42220. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  42221. - compile_command="$compile_command $arg"
  42222. - finalize_command="$finalize_command $arg"
  42223. - prev=
  42224. - continue
  42225. - ;;
  42226. - *)
  42227. - eval "$prev=\"\$arg\""
  42228. - prev=
  42229. - continue
  42230. - ;;
  42231. - esac
  42232. - fi # test -n "$prev"
  42233. +Each LIBDIR is a directory that contains libtool libraries.
  42234. - prevarg="$arg"
  42235. +The commands that this mode executes may require superuser privileges. Use
  42236. +the \`--dry-run' option if you just want to see what would be executed."
  42237. + ;;
  42238. - case $arg in
  42239. - -all-static)
  42240. - if test -n "$link_static_flag"; then
  42241. - compile_command="$compile_command $link_static_flag"
  42242. - finalize_command="$finalize_command $link_static_flag"
  42243. - fi
  42244. - continue
  42245. - ;;
  42246. + install)
  42247. + $ECHO \
  42248. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  42249. - -allow-undefined)
  42250. - # FIXME: remove this flag sometime in the future.
  42251. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  42252. - continue
  42253. - ;;
  42254. +Install executables or libraries.
  42255. - -avoid-version)
  42256. - avoid_version=yes
  42257. - continue
  42258. - ;;
  42259. +INSTALL-COMMAND is the installation command. The first component should be
  42260. +either the \`install' or \`cp' program.
  42261. - -dlopen)
  42262. - prev=dlfiles
  42263. - continue
  42264. - ;;
  42265. +The following components of INSTALL-COMMAND are treated specially:
  42266. - -dlpreopen)
  42267. - prev=dlprefiles
  42268. - continue
  42269. - ;;
  42270. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  42271. - -export-dynamic)
  42272. - export_dynamic=yes
  42273. - continue
  42274. - ;;
  42275. +The rest of the components are interpreted as arguments to that command (only
  42276. +BSD-compatible install options are recognized)."
  42277. + ;;
  42278. - -export-symbols | -export-symbols-regex)
  42279. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  42280. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  42281. - exit $EXIT_FAILURE
  42282. - fi
  42283. - if test "X$arg" = "X-export-symbols"; then
  42284. - prev=expsyms
  42285. - else
  42286. - prev=expsyms_regex
  42287. - fi
  42288. - continue
  42289. - ;;
  42290. + link)
  42291. + $ECHO \
  42292. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  42293. - -framework|-arch|-isysroot)
  42294. - case " $CC " in
  42295. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  42296. - prev=darwin_framework_skip ;;
  42297. - *) compiler_flags="$compiler_flags $arg"
  42298. - prev=darwin_framework ;;
  42299. - esac
  42300. - compile_command="$compile_command $arg"
  42301. - finalize_command="$finalize_command $arg"
  42302. - continue
  42303. - ;;
  42304. +Link object files or libraries together to form another library, or to
  42305. +create an executable program.
  42306. - -inst-prefix-dir)
  42307. - prev=inst_prefix
  42308. - continue
  42309. - ;;
  42310. +LINK-COMMAND is a command using the C compiler that you would use to create
  42311. +a program from several object files.
  42312. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  42313. - # so, if we see these flags be careful not to treat them like -L
  42314. - -L[A-Z][A-Z]*:*)
  42315. - case $with_gcc/$host in
  42316. - no/*-*-irix* | /*-*-irix*)
  42317. - compile_command="$compile_command $arg"
  42318. - finalize_command="$finalize_command $arg"
  42319. - ;;
  42320. - esac
  42321. - continue
  42322. - ;;
  42323. +The following components of LINK-COMMAND are treated specially:
  42324. - -L*)
  42325. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  42326. - # We need an absolute path.
  42327. - case $dir in
  42328. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  42329. - *)
  42330. - absdir=`cd "$dir" && pwd`
  42331. - if test -z "$absdir"; then
  42332. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  42333. - absdir="$dir"
  42334. - notinst_path="$notinst_path $dir"
  42335. - fi
  42336. - dir="$absdir"
  42337. - ;;
  42338. - esac
  42339. - case "$deplibs " in
  42340. - *" -L$dir "*) ;;
  42341. - *)
  42342. - deplibs="$deplibs -L$dir"
  42343. - lib_search_path="$lib_search_path $dir"
  42344. - ;;
  42345. - esac
  42346. - case $host in
  42347. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  42348. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  42349. - case :$dllsearchpath: in
  42350. - *":$dir:"*) ;;
  42351. - *) dllsearchpath="$dllsearchpath:$dir";;
  42352. - esac
  42353. - case :$dllsearchpath: in
  42354. - *":$testbindir:"*) ;;
  42355. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  42356. - esac
  42357. - ;;
  42358. - esac
  42359. - continue
  42360. - ;;
  42361. + -all-static do not do any dynamic linking at all
  42362. + -avoid-version do not add a version suffix if possible
  42363. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  42364. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  42365. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  42366. + -export-symbols SYMFILE
  42367. + try to export only the symbols listed in SYMFILE
  42368. + -export-symbols-regex REGEX
  42369. + try to export only the symbols matching REGEX
  42370. + -LLIBDIR search LIBDIR for required installed libraries
  42371. + -lNAME OUTPUT-FILE requires the installed library libNAME
  42372. + -module build a library that can dlopened
  42373. + -no-fast-install disable the fast-install mode
  42374. + -no-install link a not-installable executable
  42375. + -no-undefined declare that a library does not refer to external symbols
  42376. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  42377. + -objectlist FILE Use a list of object files found in FILE to specify objects
  42378. + -precious-files-regex REGEX
  42379. + don't remove output files matching REGEX
  42380. + -release RELEASE specify package release information
  42381. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  42382. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  42383. + -shared only do dynamic linking of libtool libraries
  42384. + -shrext SUFFIX override the standard shared library file extension
  42385. + -static do not do any dynamic linking of uninstalled libtool libraries
  42386. + -static-libtool-libs
  42387. + do not do any dynamic linking of libtool libraries
  42388. + -version-info CURRENT[:REVISION[:AGE]]
  42389. + specify library version info [each variable defaults to 0]
  42390. + -weak LIBNAME declare that the target provides the LIBNAME interface
  42391. - -l*)
  42392. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  42393. - case $host in
  42394. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  42395. - # These systems don't actually have a C or math library (as such)
  42396. - continue
  42397. - ;;
  42398. - *-*-os2*)
  42399. - # These systems don't actually have a C library (as such)
  42400. - test "X$arg" = "X-lc" && continue
  42401. - ;;
  42402. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  42403. - # Do not include libc due to us having libc/libc_r.
  42404. - test "X$arg" = "X-lc" && continue
  42405. - ;;
  42406. - *-*-rhapsody* | *-*-darwin1.[012])
  42407. - # Rhapsody C and math libraries are in the System framework
  42408. - deplibs="$deplibs -framework System"
  42409. - continue
  42410. - ;;
  42411. - *-*-sco3.2v5* | *-*-sco5v6*)
  42412. - # Causes problems with __ctype
  42413. - test "X$arg" = "X-lc" && continue
  42414. - ;;
  42415. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  42416. - # Compiler inserts libc in the correct place for threads to work
  42417. - test "X$arg" = "X-lc" && continue
  42418. - ;;
  42419. - esac
  42420. - elif test "X$arg" = "X-lc_r"; then
  42421. - case $host in
  42422. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  42423. - # Do not include libc_r directly, use -pthread flag.
  42424. - continue
  42425. - ;;
  42426. - esac
  42427. - fi
  42428. - deplibs="$deplibs $arg"
  42429. - continue
  42430. - ;;
  42431. +All other options (arguments beginning with \`-') are ignored.
  42432. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  42433. - # classes, name mangling, and exception handling.
  42434. - -model)
  42435. - compile_command="$compile_command $arg"
  42436. - compiler_flags="$compiler_flags $arg"
  42437. - finalize_command="$finalize_command $arg"
  42438. - prev=xcompiler
  42439. - continue
  42440. - ;;
  42441. +Every other argument is treated as a filename. Files ending in \`.la' are
  42442. +treated as uninstalled libtool libraries, other files are standard or library
  42443. +object files.
  42444. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  42445. - compiler_flags="$compiler_flags $arg"
  42446. - compile_command="$compile_command $arg"
  42447. - finalize_command="$finalize_command $arg"
  42448. - continue
  42449. - ;;
  42450. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  42451. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  42452. +required, except when creating a convenience library.
  42453. - -multi_module)
  42454. - single_module="${wl}-multi_module"
  42455. - continue
  42456. - ;;
  42457. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  42458. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  42459. - -module)
  42460. - module=yes
  42461. - continue
  42462. - ;;
  42463. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  42464. +is created, otherwise an executable program is created."
  42465. + ;;
  42466. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  42467. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  42468. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  42469. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  42470. - # -q* pass through compiler args for the IBM compiler
  42471. - # -m* pass through architecture-specific compiler args for GCC
  42472. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  42473. - # compiler args for GCC
  42474. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  42475. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  42476. - # @file GCC response files
  42477. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  42478. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  42479. + uninstall)
  42480. + $ECHO \
  42481. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  42482. - # Unknown arguments in both finalize_command and compile_command need
  42483. - # to be aesthetically quoted because they are evaled later.
  42484. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  42485. - case $arg in
  42486. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42487. - arg="\"$arg\""
  42488. - ;;
  42489. - esac
  42490. - compile_command="$compile_command $arg"
  42491. - finalize_command="$finalize_command $arg"
  42492. - compiler_flags="$compiler_flags $arg"
  42493. - continue
  42494. +Remove libraries from an installation directory.
  42495. +
  42496. +RM is the name of the program to use to delete files associated with each FILE
  42497. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  42498. +to RM.
  42499. +
  42500. +If FILE is a libtool library, all the files associated with it are deleted.
  42501. +Otherwise, only FILE itself is deleted using RM."
  42502. ;;
  42503. - -shrext)
  42504. - prev=shrext
  42505. - continue
  42506. - ;;
  42507. + *)
  42508. + func_fatal_help "invalid operation mode \`$mode'"
  42509. + ;;
  42510. + esac
  42511. - -no-fast-install)
  42512. - fast_install=no
  42513. - continue
  42514. - ;;
  42515. + $ECHO
  42516. + $ECHO "Try \`$progname --help' for more information about other modes."
  42517. - -no-install)
  42518. - case $host in
  42519. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  42520. - # The PATH hackery in wrapper scripts is required on Windows
  42521. - # and Darwin in order for the loader to find any dlls it needs.
  42522. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  42523. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  42524. - fast_install=no
  42525. - ;;
  42526. - *) no_install=yes ;;
  42527. - esac
  42528. - continue
  42529. - ;;
  42530. + exit $?
  42531. +}
  42532. - -no-undefined)
  42533. - allow_undefined=no
  42534. - continue
  42535. - ;;
  42536. + # Now that we've collected a possible --mode arg, show help if necessary
  42537. + $opt_help && func_mode_help
  42538. - -objectlist)
  42539. - prev=objectlist
  42540. - continue
  42541. - ;;
  42542. - -o) prev=output ;;
  42543. +# func_mode_execute arg...
  42544. +func_mode_execute ()
  42545. +{
  42546. + $opt_debug
  42547. + # The first argument is the command name.
  42548. + cmd="$nonopt"
  42549. + test -z "$cmd" && \
  42550. + func_fatal_help "you must specify a COMMAND"
  42551. - -precious-files-regex)
  42552. - prev=precious_regex
  42553. - continue
  42554. - ;;
  42555. + # Handle -dlopen flags immediately.
  42556. + for file in $execute_dlfiles; do
  42557. + test -f "$file" \
  42558. + || func_fatal_help "\`$file' is not a file"
  42559. - -release)
  42560. - prev=release
  42561. - continue
  42562. - ;;
  42563. + dir=
  42564. + case $file in
  42565. + *.la)
  42566. + # Check to see that this really is a libtool archive.
  42567. + func_lalib_unsafe_p "$file" \
  42568. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  42569. - -rpath)
  42570. - prev=rpath
  42571. - continue
  42572. - ;;
  42573. + # Read the libtool library.
  42574. + dlname=
  42575. + library_names=
  42576. + func_source "$file"
  42577. - -R)
  42578. - prev=xrpath
  42579. - continue
  42580. - ;;
  42581. + # Skip this library if it cannot be dlopened.
  42582. + if test -z "$dlname"; then
  42583. + # Warn if it was a shared library.
  42584. + test -n "$library_names" && \
  42585. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  42586. + continue
  42587. + fi
  42588. - -R*)
  42589. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  42590. - # We need an absolute path.
  42591. - case $dir in
  42592. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  42593. - *)
  42594. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  42595. - exit $EXIT_FAILURE
  42596. - ;;
  42597. - esac
  42598. - case "$xrpath " in
  42599. - *" $dir "*) ;;
  42600. - *) xrpath="$xrpath $dir" ;;
  42601. - esac
  42602. - continue
  42603. - ;;
  42604. + func_dirname "$file" "" "."
  42605. + dir="$func_dirname_result"
  42606. - -static | -static-libtool-libs)
  42607. - # The effects of -static are defined in a previous loop.
  42608. - # We used to do the same as -all-static on platforms that
  42609. - # didn't have a PIC flag, but the assumption that the effects
  42610. - # would be equivalent was wrong. It would break on at least
  42611. - # Digital Unix and AIX.
  42612. - continue
  42613. + if test -f "$dir/$objdir/$dlname"; then
  42614. + dir="$dir/$objdir"
  42615. + else
  42616. + if test ! -f "$dir/$dlname"; then
  42617. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  42618. + fi
  42619. + fi
  42620. ;;
  42621. - -thread-safe)
  42622. - thread_safe=yes
  42623. - continue
  42624. + *.lo)
  42625. + # Just add the directory containing the .lo file.
  42626. + func_dirname "$file" "" "."
  42627. + dir="$func_dirname_result"
  42628. ;;
  42629. - -version-info)
  42630. - prev=vinfo
  42631. - continue
  42632. - ;;
  42633. - -version-number)
  42634. - prev=vinfo
  42635. - vinfo_number=yes
  42636. + *)
  42637. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  42638. continue
  42639. ;;
  42640. + esac
  42641. - -Wc,*)
  42642. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  42643. - arg=
  42644. - save_ifs="$IFS"; IFS=','
  42645. - for flag in $args; do
  42646. - IFS="$save_ifs"
  42647. - case $flag in
  42648. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42649. - flag="\"$flag\""
  42650. - ;;
  42651. - esac
  42652. - arg="$arg $wl$flag"
  42653. - compiler_flags="$compiler_flags $flag"
  42654. - done
  42655. - IFS="$save_ifs"
  42656. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  42657. - ;;
  42658. + # Get the absolute pathname.
  42659. + absdir=`cd "$dir" && pwd`
  42660. + test -n "$absdir" && dir="$absdir"
  42661. - -Wl,*)
  42662. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  42663. - arg=
  42664. - save_ifs="$IFS"; IFS=','
  42665. - for flag in $args; do
  42666. - IFS="$save_ifs"
  42667. - case $flag in
  42668. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42669. - flag="\"$flag\""
  42670. - ;;
  42671. - esac
  42672. - arg="$arg $wl$flag"
  42673. - compiler_flags="$compiler_flags $wl$flag"
  42674. - linker_flags="$linker_flags $flag"
  42675. - done
  42676. - IFS="$save_ifs"
  42677. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  42678. - ;;
  42679. + # Now add the directory to shlibpath_var.
  42680. + if eval "test -z \"\$$shlibpath_var\""; then
  42681. + eval "$shlibpath_var=\"\$dir\""
  42682. + else
  42683. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  42684. + fi
  42685. + done
  42686. - -Xcompiler)
  42687. - prev=xcompiler
  42688. - continue
  42689. - ;;
  42690. + # This variable tells wrapper scripts just to set shlibpath_var
  42691. + # rather than running their programs.
  42692. + libtool_execute_magic="$magic"
  42693. - -Xlinker)
  42694. - prev=xlinker
  42695. - continue
  42696. + # Check if any of the arguments is a wrapper script.
  42697. + args=
  42698. + for file
  42699. + do
  42700. + case $file in
  42701. + -*) ;;
  42702. + *)
  42703. + # Do a test to see if this is really a libtool program.
  42704. + if func_ltwrapper_script_p "$file"; then
  42705. + func_source "$file"
  42706. + # Transform arg to wrapped name.
  42707. + file="$progdir/$program"
  42708. + elif func_ltwrapper_executable_p "$file"; then
  42709. + func_ltwrapper_scriptname "$file"
  42710. + func_source "$func_ltwrapper_scriptname_result"
  42711. + # Transform arg to wrapped name.
  42712. + file="$progdir/$program"
  42713. + fi
  42714. ;;
  42715. + esac
  42716. + # Quote arguments (to preserve shell metacharacters).
  42717. + func_quote_for_eval "$file"
  42718. + args="$args $func_quote_for_eval_result"
  42719. + done
  42720. - -XCClinker)
  42721. - prev=xcclinker
  42722. - continue
  42723. - ;;
  42724. + if test "X$opt_dry_run" = Xfalse; then
  42725. + if test -n "$shlibpath_var"; then
  42726. + # Export the shlibpath_var.
  42727. + eval "export $shlibpath_var"
  42728. + fi
  42729. - # Some other compiler flag.
  42730. - -* | +*)
  42731. - # Unknown arguments in both finalize_command and compile_command need
  42732. - # to be aesthetically quoted because they are evaled later.
  42733. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  42734. - case $arg in
  42735. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42736. - arg="\"$arg\""
  42737. - ;;
  42738. - esac
  42739. - ;;
  42740. + # Restore saved environment variables
  42741. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  42742. + do
  42743. + eval "if test \"\${save_$lt_var+set}\" = set; then
  42744. + $lt_var=\$save_$lt_var; export $lt_var
  42745. + else
  42746. + $lt_unset $lt_var
  42747. + fi"
  42748. + done
  42749. - *.$objext)
  42750. - # A standard object.
  42751. - objs="$objs $arg"
  42752. - ;;
  42753. + # Now prepare to actually exec the command.
  42754. + exec_cmd="\$cmd$args"
  42755. + else
  42756. + # Display what would be done.
  42757. + if test -n "$shlibpath_var"; then
  42758. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  42759. + $ECHO "export $shlibpath_var"
  42760. + fi
  42761. + $ECHO "$cmd$args"
  42762. + exit $EXIT_SUCCESS
  42763. + fi
  42764. +}
  42765. - *.lo)
  42766. - # A libtool-controlled object.
  42767. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  42768. - # Check to see that this really is a libtool object.
  42769. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  42770. - pic_object=
  42771. - non_pic_object=
  42772. - # Read the .lo file
  42773. - # If there is no directory component, then add one.
  42774. - case $arg in
  42775. - */* | *\\*) . $arg ;;
  42776. - *) . ./$arg ;;
  42777. - esac
  42778. +# func_mode_finish arg...
  42779. +func_mode_finish ()
  42780. +{
  42781. + $opt_debug
  42782. + libdirs="$nonopt"
  42783. + admincmds=
  42784. - if test -z "$pic_object" || \
  42785. - test -z "$non_pic_object" ||
  42786. - test "$pic_object" = none && \
  42787. - test "$non_pic_object" = none; then
  42788. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  42789. - exit $EXIT_FAILURE
  42790. - fi
  42791. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  42792. + for dir
  42793. + do
  42794. + libdirs="$libdirs $dir"
  42795. + done
  42796. - # Extract subdirectory from the argument.
  42797. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42798. - if test "X$xdir" = "X$arg"; then
  42799. - xdir=
  42800. - else
  42801. - xdir="$xdir/"
  42802. - fi
  42803. + for libdir in $libdirs; do
  42804. + if test -n "$finish_cmds"; then
  42805. + # Do each command in the finish commands.
  42806. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  42807. +'"$cmd"'"'
  42808. + fi
  42809. + if test -n "$finish_eval"; then
  42810. + # Do the single finish_eval.
  42811. + eval cmds=\"$finish_eval\"
  42812. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  42813. + $cmds"
  42814. + fi
  42815. + done
  42816. + fi
  42817. - if test "$pic_object" != none; then
  42818. - # Prepend the subdirectory the object is found in.
  42819. - pic_object="$xdir$pic_object"
  42820. + # Exit here if they wanted silent mode.
  42821. + $opt_silent && exit $EXIT_SUCCESS
  42822. - if test "$prev" = dlfiles; then
  42823. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  42824. - dlfiles="$dlfiles $pic_object"
  42825. - prev=
  42826. - continue
  42827. - else
  42828. - # If libtool objects are unsupported, then we need to preload.
  42829. - prev=dlprefiles
  42830. - fi
  42831. - fi
  42832. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  42833. + $ECHO "Libraries have been installed in:"
  42834. + for libdir in $libdirs; do
  42835. + $ECHO " $libdir"
  42836. + done
  42837. + $ECHO
  42838. + $ECHO "If you ever happen to want to link against installed libraries"
  42839. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  42840. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  42841. + $ECHO "flag during linking and do at least one of the following:"
  42842. + if test -n "$shlibpath_var"; then
  42843. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  42844. + $ECHO " during execution"
  42845. + fi
  42846. + if test -n "$runpath_var"; then
  42847. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  42848. + $ECHO " during linking"
  42849. + fi
  42850. + if test -n "$hardcode_libdir_flag_spec"; then
  42851. + libdir=LIBDIR
  42852. + eval flag=\"$hardcode_libdir_flag_spec\"
  42853. - # CHECK ME: I think I busted this. -Ossama
  42854. - if test "$prev" = dlprefiles; then
  42855. - # Preload the old-style object.
  42856. - dlprefiles="$dlprefiles $pic_object"
  42857. - prev=
  42858. - fi
  42859. + $ECHO " - use the \`$flag' linker flag"
  42860. + fi
  42861. + if test -n "$admincmds"; then
  42862. + $ECHO " - have your system administrator run these commands:$admincmds"
  42863. + fi
  42864. + if test -f /etc/ld.so.conf; then
  42865. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  42866. + fi
  42867. + $ECHO
  42868. - # A PIC object.
  42869. - libobjs="$libobjs $pic_object"
  42870. - arg="$pic_object"
  42871. - fi
  42872. + $ECHO "See any operating system documentation about shared libraries for"
  42873. + case $host in
  42874. + solaris2.[6789]|solaris2.1[0-9])
  42875. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  42876. + $ECHO "pages."
  42877. + ;;
  42878. + *)
  42879. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  42880. + ;;
  42881. + esac
  42882. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  42883. + exit $EXIT_SUCCESS
  42884. +}
  42885. - # Non-PIC object.
  42886. - if test "$non_pic_object" != none; then
  42887. - # Prepend the subdirectory the object is found in.
  42888. - non_pic_object="$xdir$non_pic_object"
  42889. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  42890. - # A standard non-PIC object
  42891. - non_pic_objects="$non_pic_objects $non_pic_object"
  42892. - if test -z "$pic_object" || test "$pic_object" = none ; then
  42893. - arg="$non_pic_object"
  42894. - fi
  42895. - else
  42896. - # If the PIC object exists, use it instead.
  42897. - # $xdir was prepended to $pic_object above.
  42898. - non_pic_object="$pic_object"
  42899. - non_pic_objects="$non_pic_objects $non_pic_object"
  42900. - fi
  42901. - else
  42902. - # Only an error if not doing a dry-run.
  42903. - if test -z "$run"; then
  42904. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  42905. - exit $EXIT_FAILURE
  42906. - else
  42907. - # Dry-run case.
  42908. - # Extract subdirectory from the argument.
  42909. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  42910. - if test "X$xdir" = "X$arg"; then
  42911. - xdir=
  42912. - else
  42913. - xdir="$xdir/"
  42914. - fi
  42915. +# func_mode_install arg...
  42916. +func_mode_install ()
  42917. +{
  42918. + $opt_debug
  42919. + # There may be an optional sh(1) argument at the beginning of
  42920. + # install_prog (especially on Windows NT).
  42921. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  42922. + # Allow the use of GNU shtool's install command.
  42923. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  42924. + # Aesthetically quote it.
  42925. + func_quote_for_eval "$nonopt"
  42926. + install_prog="$func_quote_for_eval_result "
  42927. + arg=$1
  42928. + shift
  42929. + else
  42930. + install_prog=
  42931. + arg=$nonopt
  42932. + fi
  42933. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  42934. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  42935. - libobjs="$libobjs $pic_object"
  42936. - non_pic_objects="$non_pic_objects $non_pic_object"
  42937. - fi
  42938. - fi
  42939. - ;;
  42940. + # The real first argument should be the name of the installation program.
  42941. + # Aesthetically quote it.
  42942. + func_quote_for_eval "$arg"
  42943. + install_prog="$install_prog$func_quote_for_eval_result"
  42944. - *.$libext)
  42945. - # An archive.
  42946. - deplibs="$deplibs $arg"
  42947. - old_deplibs="$old_deplibs $arg"
  42948. + # We need to accept at least all the BSD install flags.
  42949. + dest=
  42950. + files=
  42951. + opts=
  42952. + prev=
  42953. + install_type=
  42954. + isdir=no
  42955. + stripme=
  42956. + for arg
  42957. + do
  42958. + if test -n "$dest"; then
  42959. + files="$files $dest"
  42960. + dest=$arg
  42961. continue
  42962. - ;;
  42963. -
  42964. - *.la)
  42965. - # A libtool-controlled library.
  42966. + fi
  42967. - if test "$prev" = dlfiles; then
  42968. - # This library was specified with -dlopen.
  42969. - dlfiles="$dlfiles $arg"
  42970. - prev=
  42971. - elif test "$prev" = dlprefiles; then
  42972. - # The library was specified with -dlpreopen.
  42973. - dlprefiles="$dlprefiles $arg"
  42974. + case $arg in
  42975. + -d) isdir=yes ;;
  42976. + -f)
  42977. + case " $install_prog " in
  42978. + *[\\\ /]cp\ *) ;;
  42979. + *) prev=$arg ;;
  42980. + esac
  42981. + ;;
  42982. + -g | -m | -o)
  42983. + prev=$arg
  42984. + ;;
  42985. + -s)
  42986. + stripme=" -s"
  42987. + continue
  42988. + ;;
  42989. + -*)
  42990. + ;;
  42991. + *)
  42992. + # If the previous option needed an argument, then skip it.
  42993. + if test -n "$prev"; then
  42994. prev=
  42995. else
  42996. - deplibs="$deplibs $arg"
  42997. + dest=$arg
  42998. + continue
  42999. fi
  43000. - continue
  43001. ;;
  43002. + esac
  43003. - # Some other compiler argument.
  43004. - *)
  43005. - # Unknown arguments in both finalize_command and compile_command need
  43006. - # to be aesthetically quoted because they are evaled later.
  43007. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  43008. - case $arg in
  43009. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43010. - arg="\"$arg\""
  43011. - ;;
  43012. - esac
  43013. - ;;
  43014. - esac # arg
  43015. + # Aesthetically quote the argument.
  43016. + func_quote_for_eval "$arg"
  43017. + install_prog="$install_prog $func_quote_for_eval_result"
  43018. + done
  43019. - # Now actually substitute the argument into the commands.
  43020. - if test -n "$arg"; then
  43021. - compile_command="$compile_command $arg"
  43022. - finalize_command="$finalize_command $arg"
  43023. - fi
  43024. - done # argument parsing loop
  43025. + test -z "$install_prog" && \
  43026. + func_fatal_help "you must specify an install program"
  43027. - if test -n "$prev"; then
  43028. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  43029. - $echo "$help" 1>&2
  43030. - exit $EXIT_FAILURE
  43031. - fi
  43032. + test -n "$prev" && \
  43033. + func_fatal_help "the \`$prev' option requires an argument"
  43034. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  43035. - eval arg=\"$export_dynamic_flag_spec\"
  43036. - compile_command="$compile_command $arg"
  43037. - finalize_command="$finalize_command $arg"
  43038. + if test -z "$files"; then
  43039. + if test -z "$dest"; then
  43040. + func_fatal_help "no file or destination specified"
  43041. + else
  43042. + func_fatal_help "you must specify a destination"
  43043. + fi
  43044. fi
  43045. - oldlibs=
  43046. - # calculate the name of the file, without its directory
  43047. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  43048. - libobjs_save="$libobjs"
  43049. + # Strip any trailing slash from the destination.
  43050. + func_stripname '' '/' "$dest"
  43051. + dest=$func_stripname_result
  43052. - if test -n "$shlibpath_var"; then
  43053. - # get the directories listed in $shlibpath_var
  43054. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  43055. + # Check to see that the destination is a directory.
  43056. + test -d "$dest" && isdir=yes
  43057. + if test "$isdir" = yes; then
  43058. + destdir="$dest"
  43059. + destname=
  43060. else
  43061. - shlib_search_path=
  43062. - fi
  43063. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  43064. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  43065. + func_dirname_and_basename "$dest" "" "."
  43066. + destdir="$func_dirname_result"
  43067. + destname="$func_basename_result"
  43068. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  43069. - if test "X$output_objdir" = "X$output"; then
  43070. - output_objdir="$objdir"
  43071. - else
  43072. - output_objdir="$output_objdir/$objdir"
  43073. - fi
  43074. - # Create the object directory.
  43075. - if test ! -d "$output_objdir"; then
  43076. - $show "$mkdir $output_objdir"
  43077. - $run $mkdir $output_objdir
  43078. - exit_status=$?
  43079. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  43080. - exit $exit_status
  43081. - fi
  43082. + # Not a directory, so check to see that there is only one file specified.
  43083. + set dummy $files; shift
  43084. + test "$#" -gt 1 && \
  43085. + func_fatal_help "\`$dest' is not a directory"
  43086. fi
  43087. -
  43088. - # Determine the type of output
  43089. - case $output in
  43090. - "")
  43091. - $echo "$modename: you must specify an output file" 1>&2
  43092. - $echo "$help" 1>&2
  43093. - exit $EXIT_FAILURE
  43094. - ;;
  43095. - *.$libext) linkmode=oldlib ;;
  43096. - *.lo | *.$objext) linkmode=obj ;;
  43097. - *.la) linkmode=lib ;;
  43098. - *) linkmode=prog ;; # Anything else should be a program.
  43099. - esac
  43100. -
  43101. - case $host in
  43102. - *cygwin* | *mingw* | *pw32*)
  43103. - # don't eliminate duplications in $postdeps and $predeps
  43104. - duplicate_compiler_generated_deps=yes
  43105. - ;;
  43106. + case $destdir in
  43107. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  43108. *)
  43109. - duplicate_compiler_generated_deps=$duplicate_deps
  43110. + for file in $files; do
  43111. + case $file in
  43112. + *.lo) ;;
  43113. + *)
  43114. + func_fatal_help "\`$destdir' must be an absolute directory name"
  43115. + ;;
  43116. + esac
  43117. + done
  43118. ;;
  43119. esac
  43120. - specialdeplibs=
  43121. - libs=
  43122. - # Find all interdependent deplibs by searching for libraries
  43123. - # that are linked more than once (e.g. -la -lb -la)
  43124. - for deplib in $deplibs; do
  43125. - if test "X$duplicate_deps" = "Xyes" ; then
  43126. - case "$libs " in
  43127. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  43128. - esac
  43129. - fi
  43130. - libs="$libs $deplib"
  43131. - done
  43132. + # This variable tells wrapper scripts just to set variables rather
  43133. + # than running their programs.
  43134. + libtool_install_magic="$magic"
  43135. - if test "$linkmode" = lib; then
  43136. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  43137. + staticlibs=
  43138. + future_libdirs=
  43139. + current_libdirs=
  43140. + for file in $files; do
  43141. - # Compute libraries that are listed more than once in $predeps
  43142. - # $postdeps and mark them as special (i.e., whose duplicates are
  43143. - # not to be eliminated).
  43144. - pre_post_deps=
  43145. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  43146. - for pre_post_dep in $predeps $postdeps; do
  43147. - case "$pre_post_deps " in
  43148. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  43149. + # Do each installation.
  43150. + case $file in
  43151. + *.$libext)
  43152. + # Do the static libraries later.
  43153. + staticlibs="$staticlibs $file"
  43154. + ;;
  43155. +
  43156. + *.la)
  43157. + # Check to see that this really is a libtool archive.
  43158. + func_lalib_unsafe_p "$file" \
  43159. + || func_fatal_help "\`$file' is not a valid libtool archive"
  43160. +
  43161. + library_names=
  43162. + old_library=
  43163. + relink_command=
  43164. + func_source "$file"
  43165. +
  43166. + # Add the libdir to current_libdirs if it is the destination.
  43167. + if test "X$destdir" = "X$libdir"; then
  43168. + case "$current_libdirs " in
  43169. + *" $libdir "*) ;;
  43170. + *) current_libdirs="$current_libdirs $libdir" ;;
  43171. esac
  43172. - pre_post_deps="$pre_post_deps $pre_post_dep"
  43173. - done
  43174. - fi
  43175. - pre_post_deps=
  43176. - fi
  43177. + else
  43178. + # Note the libdir as a future libdir.
  43179. + case "$future_libdirs " in
  43180. + *" $libdir "*) ;;
  43181. + *) future_libdirs="$future_libdirs $libdir" ;;
  43182. + esac
  43183. + fi
  43184. - deplibs=
  43185. - newdependency_libs=
  43186. - newlib_search_path=
  43187. - need_relink=no # whether we're linking any uninstalled libtool libraries
  43188. - notinst_deplibs= # not-installed libtool libraries
  43189. - case $linkmode in
  43190. - lib)
  43191. - passes="conv link"
  43192. - for file in $dlfiles $dlprefiles; do
  43193. - case $file in
  43194. - *.la) ;;
  43195. - *)
  43196. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  43197. - exit $EXIT_FAILURE
  43198. + func_dirname "$file" "/" ""
  43199. + dir="$func_dirname_result"
  43200. + dir="$dir$objdir"
  43201. +
  43202. + if test -n "$relink_command"; then
  43203. + # Determine the prefix the user has applied to our future dir.
  43204. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  43205. +
  43206. + # Don't allow the user to place us outside of our expected
  43207. + # location b/c this prevents finding dependent libraries that
  43208. + # are installed to the same prefix.
  43209. + # At present, this check doesn't affect windows .dll's that
  43210. + # are installed into $libdir/../bin (currently, that works fine)
  43211. + # but it's something to keep an eye on.
  43212. + test "$inst_prefix_dir" = "$destdir" && \
  43213. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  43214. +
  43215. + if test -n "$inst_prefix_dir"; then
  43216. + # Stick the inst_prefix_dir data into the link command.
  43217. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  43218. + else
  43219. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  43220. + fi
  43221. +
  43222. + func_warning "relinking \`$file'"
  43223. + func_show_eval "$relink_command" \
  43224. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  43225. + fi
  43226. +
  43227. + # See the names of the shared library.
  43228. + set dummy $library_names; shift
  43229. + if test -n "$1"; then
  43230. + realname="$1"
  43231. + shift
  43232. +
  43233. + srcname="$realname"
  43234. + test -n "$relink_command" && srcname="$realname"T
  43235. +
  43236. + # Install the shared library and build the symlinks.
  43237. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  43238. + 'exit $?'
  43239. + tstripme="$stripme"
  43240. + case $host_os in
  43241. + cygwin* | mingw* | pw32* | cegcc*)
  43242. + case $realname in
  43243. + *.dll.a)
  43244. + tstripme=""
  43245. + ;;
  43246. + esac
  43247. ;;
  43248. esac
  43249. - done
  43250. - ;;
  43251. - prog)
  43252. - compile_deplibs=
  43253. - finalize_deplibs=
  43254. - alldeplibs=no
  43255. - newdlfiles=
  43256. - newdlprefiles=
  43257. - passes="conv scan dlopen dlpreopen link"
  43258. - ;;
  43259. - *) passes="conv"
  43260. - ;;
  43261. - esac
  43262. - for pass in $passes; do
  43263. - if test "$linkmode,$pass" = "lib,link" ||
  43264. - test "$linkmode,$pass" = "prog,scan"; then
  43265. - libs="$deplibs"
  43266. - deplibs=
  43267. - fi
  43268. - if test "$linkmode" = prog; then
  43269. - case $pass in
  43270. - dlopen) libs="$dlfiles" ;;
  43271. - dlpreopen) libs="$dlprefiles" ;;
  43272. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  43273. - esac
  43274. - fi
  43275. - if test "$pass" = dlopen; then
  43276. - # Collect dlpreopened libraries
  43277. - save_deplibs="$deplibs"
  43278. - deplibs=
  43279. - fi
  43280. - for deplib in $libs; do
  43281. - lib=
  43282. - found=no
  43283. - case $deplib in
  43284. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  43285. - if test "$linkmode,$pass" = "prog,link"; then
  43286. - compile_deplibs="$deplib $compile_deplibs"
  43287. - finalize_deplibs="$deplib $finalize_deplibs"
  43288. - else
  43289. - compiler_flags="$compiler_flags $deplib"
  43290. - fi
  43291. - continue
  43292. - ;;
  43293. - -l*)
  43294. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  43295. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  43296. - continue
  43297. - fi
  43298. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  43299. - if test "$linkmode" = lib; then
  43300. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  43301. - else
  43302. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  43303. + if test -n "$tstripme" && test -n "$striplib"; then
  43304. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  43305. fi
  43306. - for searchdir in $searchdirs; do
  43307. - for search_ext in .la $std_shrext .so .a; do
  43308. - # Search the libtool library
  43309. - lib="$searchdir/lib${name}${search_ext}"
  43310. - if test -f "$lib"; then
  43311. - if test "$search_ext" = ".la"; then
  43312. - found=yes
  43313. - else
  43314. - found=no
  43315. - fi
  43316. - break 2
  43317. - fi
  43318. +
  43319. + if test "$#" -gt 0; then
  43320. + # Delete the old symlinks, and create new ones.
  43321. + # Try `ln -sf' first, because the `ln' binary might depend on
  43322. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  43323. + # so we also need to try rm && ln -s.
  43324. + for linkname
  43325. + do
  43326. + test "$linkname" != "$realname" \
  43327. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  43328. done
  43329. - done
  43330. - if test "$found" != yes; then
  43331. - # deplib doesn't seem to be a libtool library
  43332. - if test "$linkmode,$pass" = "prog,link"; then
  43333. - compile_deplibs="$deplib $compile_deplibs"
  43334. - finalize_deplibs="$deplib $finalize_deplibs"
  43335. - else
  43336. - deplibs="$deplib $deplibs"
  43337. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  43338. - fi
  43339. - continue
  43340. - else # deplib is a libtool library
  43341. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  43342. - # We need to do some special things here, and not later.
  43343. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43344. - case " $predeps $postdeps " in
  43345. - *" $deplib "*)
  43346. - if (${SED} -e '2q' $lib |
  43347. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  43348. - library_names=
  43349. - old_library=
  43350. - case $lib in
  43351. - */* | *\\*) . $lib ;;
  43352. - *) . ./$lib ;;
  43353. - esac
  43354. - for l in $old_library $library_names; do
  43355. - ll="$l"
  43356. - done
  43357. - if test "X$ll" = "X$old_library" ; then # only static version available
  43358. - found=no
  43359. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  43360. - test "X$ladir" = "X$lib" && ladir="."
  43361. - lib=$ladir/$old_library
  43362. - if test "$linkmode,$pass" = "prog,link"; then
  43363. - compile_deplibs="$deplib $compile_deplibs"
  43364. - finalize_deplibs="$deplib $finalize_deplibs"
  43365. - else
  43366. - deplibs="$deplib $deplibs"
  43367. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  43368. - fi
  43369. - continue
  43370. - fi
  43371. - fi
  43372. - ;;
  43373. - *) ;;
  43374. - esac
  43375. - fi
  43376. - fi
  43377. - ;; # -l
  43378. - -L*)
  43379. - case $linkmode in
  43380. - lib)
  43381. - deplibs="$deplib $deplibs"
  43382. - test "$pass" = conv && continue
  43383. - newdependency_libs="$deplib $newdependency_libs"
  43384. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  43385. - ;;
  43386. - prog)
  43387. - if test "$pass" = conv; then
  43388. - deplibs="$deplib $deplibs"
  43389. - continue
  43390. - fi
  43391. - if test "$pass" = scan; then
  43392. - deplibs="$deplib $deplibs"
  43393. - else
  43394. - compile_deplibs="$deplib $compile_deplibs"
  43395. - finalize_deplibs="$deplib $finalize_deplibs"
  43396. - fi
  43397. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  43398. - ;;
  43399. - *)
  43400. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  43401. - ;;
  43402. - esac # linkmode
  43403. - continue
  43404. - ;; # -L
  43405. - -R*)
  43406. - if test "$pass" = link; then
  43407. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  43408. - # Make sure the xrpath contains only unique directories.
  43409. - case "$xrpath " in
  43410. - *" $dir "*) ;;
  43411. - *) xrpath="$xrpath $dir" ;;
  43412. - esac
  43413. - fi
  43414. - deplibs="$deplib $deplibs"
  43415. - continue
  43416. - ;;
  43417. - *.la) lib="$deplib" ;;
  43418. - *.$libext)
  43419. - if test "$pass" = conv; then
  43420. - deplibs="$deplib $deplibs"
  43421. - continue
  43422. - fi
  43423. - case $linkmode in
  43424. - lib)
  43425. - valid_a_lib=no
  43426. - case $deplibs_check_method in
  43427. - match_pattern*)
  43428. - set dummy $deplibs_check_method
  43429. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  43430. - if eval $echo \"$deplib\" 2>/dev/null \
  43431. - | $SED 10q \
  43432. - | $EGREP "$match_pattern_regex" > /dev/null; then
  43433. - valid_a_lib=yes
  43434. - fi
  43435. - ;;
  43436. - pass_all)
  43437. - valid_a_lib=yes
  43438. - ;;
  43439. - esac
  43440. - if test "$valid_a_lib" != yes; then
  43441. - $echo
  43442. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  43443. - $echo "*** I have the capability to make that library automatically link in when"
  43444. - $echo "*** you link to this library. But I can only do this if you have a"
  43445. - $echo "*** shared version of the library, which you do not appear to have"
  43446. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  43447. - $echo "*** that it is just a static archive that I should not used here."
  43448. - else
  43449. - $echo
  43450. - $echo "*** Warning: Linking the shared library $output against the"
  43451. - $echo "*** static library $deplib is not portable!"
  43452. - deplibs="$deplib $deplibs"
  43453. - fi
  43454. - continue
  43455. - ;;
  43456. - prog)
  43457. - if test "$pass" != link; then
  43458. - deplibs="$deplib $deplibs"
  43459. - else
  43460. - compile_deplibs="$deplib $compile_deplibs"
  43461. - finalize_deplibs="$deplib $finalize_deplibs"
  43462. - fi
  43463. - continue
  43464. - ;;
  43465. - esac # linkmode
  43466. - ;; # *.$libext
  43467. - *.lo | *.$objext)
  43468. - if test "$pass" = conv; then
  43469. - deplibs="$deplib $deplibs"
  43470. - elif test "$linkmode" = prog; then
  43471. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  43472. - # If there is no dlopen support or we're linking statically,
  43473. - # we need to preload.
  43474. - newdlprefiles="$newdlprefiles $deplib"
  43475. - compile_deplibs="$deplib $compile_deplibs"
  43476. - finalize_deplibs="$deplib $finalize_deplibs"
  43477. - else
  43478. - newdlfiles="$newdlfiles $deplib"
  43479. - fi
  43480. fi
  43481. - continue
  43482. - ;;
  43483. - %DEPLIBS%)
  43484. - alldeplibs=yes
  43485. - continue
  43486. - ;;
  43487. - esac # case $deplib
  43488. - if test "$found" = yes || test -f "$lib"; then :
  43489. - else
  43490. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  43491. - exit $EXIT_FAILURE
  43492. - fi
  43493. - # Check to see that this really is a libtool archive.
  43494. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  43495. - else
  43496. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  43497. - exit $EXIT_FAILURE
  43498. + # Do each command in the postinstall commands.
  43499. + lib="$destdir/$realname"
  43500. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  43501. fi
  43502. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  43503. - test "X$ladir" = "X$lib" && ladir="."
  43504. -
  43505. - dlname=
  43506. - dlopen=
  43507. - dlpreopen=
  43508. - libdir=
  43509. - library_names=
  43510. - old_library=
  43511. - # If the library was installed with an old release of libtool,
  43512. - # it will not redefine variables installed, or shouldnotlink
  43513. - installed=yes
  43514. - shouldnotlink=no
  43515. - avoidtemprpath=
  43516. + # Install the pseudo-library for information purposes.
  43517. + func_basename "$file"
  43518. + name="$func_basename_result"
  43519. + instname="$dir/$name"i
  43520. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  43521. + # Maybe install the static library, too.
  43522. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  43523. + ;;
  43524. - # Read the .la file
  43525. - case $lib in
  43526. - */* | *\\*) . $lib ;;
  43527. - *) . ./$lib ;;
  43528. - esac
  43529. + *.lo)
  43530. + # Install (i.e. copy) a libtool object.
  43531. - if test "$linkmode,$pass" = "lib,link" ||
  43532. - test "$linkmode,$pass" = "prog,scan" ||
  43533. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  43534. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  43535. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  43536. + # Figure out destination file name, if it wasn't already specified.
  43537. + if test -n "$destname"; then
  43538. + destfile="$destdir/$destname"
  43539. + else
  43540. + func_basename "$file"
  43541. + destfile="$func_basename_result"
  43542. + destfile="$destdir/$destfile"
  43543. fi
  43544. - if test "$pass" = conv; then
  43545. - # Only check for convenience libraries
  43546. - deplibs="$lib $deplibs"
  43547. - if test -z "$libdir"; then
  43548. - if test -z "$old_library"; then
  43549. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  43550. - exit $EXIT_FAILURE
  43551. - fi
  43552. - # It is a libtool convenience library, so add in its objects.
  43553. - convenience="$convenience $ladir/$objdir/$old_library"
  43554. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  43555. - tmp_libs=
  43556. - for deplib in $dependency_libs; do
  43557. - deplibs="$deplib $deplibs"
  43558. - if test "X$duplicate_deps" = "Xyes" ; then
  43559. - case "$tmp_libs " in
  43560. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  43561. - esac
  43562. - fi
  43563. - tmp_libs="$tmp_libs $deplib"
  43564. - done
  43565. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  43566. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  43567. - exit $EXIT_FAILURE
  43568. - fi
  43569. - continue
  43570. - fi # $pass = conv
  43571. + # Deduce the name of the destination old-style object file.
  43572. + case $destfile in
  43573. + *.lo)
  43574. + func_lo2o "$destfile"
  43575. + staticdest=$func_lo2o_result
  43576. + ;;
  43577. + *.$objext)
  43578. + staticdest="$destfile"
  43579. + destfile=
  43580. + ;;
  43581. + *)
  43582. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  43583. + ;;
  43584. + esac
  43585. + # Install the libtool object if requested.
  43586. + test -n "$destfile" && \
  43587. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  43588. - # Get the name of the library we link against.
  43589. - linklib=
  43590. - for l in $old_library $library_names; do
  43591. - linklib="$l"
  43592. - done
  43593. - if test -z "$linklib"; then
  43594. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  43595. - exit $EXIT_FAILURE
  43596. + # Install the old object if enabled.
  43597. + if test "$build_old_libs" = yes; then
  43598. + # Deduce the name of the old-style object file.
  43599. + func_lo2o "$file"
  43600. + staticobj=$func_lo2o_result
  43601. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  43602. fi
  43603. + exit $EXIT_SUCCESS
  43604. + ;;
  43605. - # This library was specified with -dlopen.
  43606. - if test "$pass" = dlopen; then
  43607. - if test -z "$libdir"; then
  43608. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  43609. - exit $EXIT_FAILURE
  43610. - fi
  43611. - if test -z "$dlname" ||
  43612. - test "$dlopen_support" != yes ||
  43613. - test "$build_libtool_libs" = no; then
  43614. - # If there is no dlname, no dlopen support or we're linking
  43615. - # statically, we need to preload. We also need to preload any
  43616. - # dependent libraries so libltdl's deplib preloader doesn't
  43617. - # bomb out in the load deplibs phase.
  43618. - dlprefiles="$dlprefiles $lib $dependency_libs"
  43619. - else
  43620. - newdlfiles="$newdlfiles $lib"
  43621. - fi
  43622. - continue
  43623. - fi # $pass = dlopen
  43624. + *)
  43625. + # Figure out destination file name, if it wasn't already specified.
  43626. + if test -n "$destname"; then
  43627. + destfile="$destdir/$destname"
  43628. + else
  43629. + func_basename "$file"
  43630. + destfile="$func_basename_result"
  43631. + destfile="$destdir/$destfile"
  43632. + fi
  43633. - # We need an absolute path.
  43634. - case $ladir in
  43635. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  43636. + # If the file is missing, and there is a .exe on the end, strip it
  43637. + # because it is most likely a libtool script we actually want to
  43638. + # install
  43639. + stripped_ext=""
  43640. + case $file in
  43641. + *.exe)
  43642. + if test ! -f "$file"; then
  43643. + func_stripname '' '.exe' "$file"
  43644. + file=$func_stripname_result
  43645. + stripped_ext=".exe"
  43646. + fi
  43647. + ;;
  43648. + esac
  43649. +
  43650. + # Do a test to see if this is really a libtool program.
  43651. + case $host in
  43652. + *cygwin* | *mingw*)
  43653. + if func_ltwrapper_executable_p "$file"; then
  43654. + func_ltwrapper_scriptname "$file"
  43655. + wrapper=$func_ltwrapper_scriptname_result
  43656. + else
  43657. + func_stripname '' '.exe' "$file"
  43658. + wrapper=$func_stripname_result
  43659. + fi
  43660. + ;;
  43661. *)
  43662. - abs_ladir=`cd "$ladir" && pwd`
  43663. - if test -z "$abs_ladir"; then
  43664. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  43665. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  43666. - abs_ladir="$ladir"
  43667. + wrapper=$file
  43668. + ;;
  43669. + esac
  43670. + if func_ltwrapper_script_p "$wrapper"; then
  43671. + notinst_deplibs=
  43672. + relink_command=
  43673. +
  43674. + func_source "$wrapper"
  43675. +
  43676. + # Check the variables that should have been set.
  43677. + test -z "$generated_by_libtool_version" && \
  43678. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  43679. +
  43680. + finalize=yes
  43681. + for lib in $notinst_deplibs; do
  43682. + # Check to see that each library is installed.
  43683. + libdir=
  43684. + if test -f "$lib"; then
  43685. + func_source "$lib"
  43686. + fi
  43687. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  43688. + if test -n "$libdir" && test ! -f "$libfile"; then
  43689. + func_warning "\`$lib' has not been installed in \`$libdir'"
  43690. + finalize=no
  43691. + fi
  43692. + done
  43693. +
  43694. + relink_command=
  43695. + func_source "$wrapper"
  43696. +
  43697. + outputname=
  43698. + if test "$fast_install" = no && test -n "$relink_command"; then
  43699. + $opt_dry_run || {
  43700. + if test "$finalize" = yes; then
  43701. + tmpdir=`func_mktempdir`
  43702. + func_basename "$file$stripped_ext"
  43703. + file="$func_basename_result"
  43704. + outputname="$tmpdir/$file"
  43705. + # Replace the output file specification.
  43706. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  43707. +
  43708. + $opt_silent || {
  43709. + func_quote_for_expand "$relink_command"
  43710. + eval "func_echo $func_quote_for_expand_result"
  43711. + }
  43712. + if eval "$relink_command"; then :
  43713. + else
  43714. + func_error "error: relink \`$file' with the above command before installing it"
  43715. + $opt_dry_run || ${RM}r "$tmpdir"
  43716. + continue
  43717. + fi
  43718. + file="$outputname"
  43719. + else
  43720. + func_warning "cannot relink \`$file'"
  43721. + fi
  43722. + }
  43723. + else
  43724. + # Install the binary that we compiled earlier.
  43725. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  43726. fi
  43727. + fi
  43728. +
  43729. + # remove .exe since cygwin /usr/bin/install will append another
  43730. + # one anyway
  43731. + case $install_prog,$host in
  43732. + */usr/bin/install*,*cygwin*)
  43733. + case $file:$destfile in
  43734. + *.exe:*.exe)
  43735. + # this is ok
  43736. + ;;
  43737. + *.exe:*)
  43738. + destfile=$destfile.exe
  43739. + ;;
  43740. + *:*.exe)
  43741. + func_stripname '' '.exe' "$destfile"
  43742. + destfile=$func_stripname_result
  43743. + ;;
  43744. + esac
  43745. ;;
  43746. esac
  43747. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  43748. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  43749. + $opt_dry_run || if test -n "$outputname"; then
  43750. + ${RM}r "$tmpdir"
  43751. + fi
  43752. + ;;
  43753. + esac
  43754. + done
  43755. - # Find the relevant object directory and library name.
  43756. - if test "X$installed" = Xyes; then
  43757. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  43758. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  43759. - dir="$ladir"
  43760. - absdir="$abs_ladir"
  43761. - libdir="$abs_ladir"
  43762. - else
  43763. - dir="$libdir"
  43764. - absdir="$libdir"
  43765. + for file in $staticlibs; do
  43766. + func_basename "$file"
  43767. + name="$func_basename_result"
  43768. +
  43769. + # Set up the ranlib parameters.
  43770. + oldlib="$destdir/$name"
  43771. +
  43772. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  43773. +
  43774. + if test -n "$stripme" && test -n "$old_striplib"; then
  43775. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  43776. + fi
  43777. +
  43778. + # Do each command in the postinstall commands.
  43779. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  43780. + done
  43781. +
  43782. + test -n "$future_libdirs" && \
  43783. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  43784. +
  43785. + if test -n "$current_libdirs"; then
  43786. + # Maybe just do a dry run.
  43787. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  43788. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  43789. + else
  43790. + exit $EXIT_SUCCESS
  43791. + fi
  43792. +}
  43793. +
  43794. +test "$mode" = install && func_mode_install ${1+"$@"}
  43795. +
  43796. +
  43797. +# func_generate_dlsyms outputname originator pic_p
  43798. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  43799. +# a dlpreopen symbol table.
  43800. +func_generate_dlsyms ()
  43801. +{
  43802. + $opt_debug
  43803. + my_outputname="$1"
  43804. + my_originator="$2"
  43805. + my_pic_p="${3-no}"
  43806. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  43807. + my_dlsyms=
  43808. +
  43809. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  43810. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  43811. + my_dlsyms="${my_outputname}S.c"
  43812. + else
  43813. + func_error "not configured to extract global symbols from dlpreopened files"
  43814. + fi
  43815. + fi
  43816. +
  43817. + if test -n "$my_dlsyms"; then
  43818. + case $my_dlsyms in
  43819. + "") ;;
  43820. + *.c)
  43821. + # Discover the nlist of each of the dlfiles.
  43822. + nlist="$output_objdir/${my_outputname}.nm"
  43823. +
  43824. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  43825. +
  43826. + # Parse the name list into a source file.
  43827. + func_verbose "creating $output_objdir/$my_dlsyms"
  43828. +
  43829. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  43830. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  43831. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  43832. +
  43833. +#ifdef __cplusplus
  43834. +extern \"C\" {
  43835. +#endif
  43836. +
  43837. +/* External symbol declarations for the compiler. */\
  43838. +"
  43839. +
  43840. + if test "$dlself" = yes; then
  43841. + func_verbose "generating symbol list for \`$output'"
  43842. +
  43843. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  43844. +
  43845. + # Add our own program objects to the symbol list.
  43846. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43847. + for progfile in $progfiles; do
  43848. + func_verbose "extracting global C symbols from \`$progfile'"
  43849. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  43850. + done
  43851. +
  43852. + if test -n "$exclude_expsyms"; then
  43853. + $opt_dry_run || {
  43854. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  43855. + eval '$MV "$nlist"T "$nlist"'
  43856. + }
  43857. fi
  43858. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  43859. - else
  43860. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  43861. - dir="$ladir"
  43862. - absdir="$abs_ladir"
  43863. - # Remove this search path later
  43864. - notinst_path="$notinst_path $abs_ladir"
  43865. +
  43866. + if test -n "$export_symbols_regex"; then
  43867. + $opt_dry_run || {
  43868. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  43869. + eval '$MV "$nlist"T "$nlist"'
  43870. + }
  43871. + fi
  43872. +
  43873. + # Prepare the list of exported symbols
  43874. + if test -z "$export_symbols"; then
  43875. + export_symbols="$output_objdir/$outputname.exp"
  43876. + $opt_dry_run || {
  43877. + $RM $export_symbols
  43878. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  43879. + case $host in
  43880. + *cygwin* | *mingw* | *cegcc* )
  43881. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43882. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  43883. + ;;
  43884. + esac
  43885. + }
  43886. else
  43887. - dir="$ladir/$objdir"
  43888. - absdir="$abs_ladir/$objdir"
  43889. - # Remove this search path later
  43890. - notinst_path="$notinst_path $abs_ladir"
  43891. + $opt_dry_run || {
  43892. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  43893. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  43894. + eval '$MV "$nlist"T "$nlist"'
  43895. + case $host in
  43896. + *cygwin | *mingw* | *cegcc* )
  43897. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43898. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  43899. + ;;
  43900. + esac
  43901. + }
  43902. fi
  43903. - fi # $installed = yes
  43904. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  43905. + fi
  43906. - # This library was specified with -dlpreopen.
  43907. - if test "$pass" = dlpreopen; then
  43908. - if test -z "$libdir"; then
  43909. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  43910. - exit $EXIT_FAILURE
  43911. + for dlprefile in $dlprefiles; do
  43912. + func_verbose "extracting global C symbols from \`$dlprefile'"
  43913. + func_basename "$dlprefile"
  43914. + name="$func_basename_result"
  43915. + $opt_dry_run || {
  43916. + eval '$ECHO ": $name " >> "$nlist"'
  43917. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  43918. + }
  43919. + done
  43920. +
  43921. + $opt_dry_run || {
  43922. + # Make sure we have at least an empty file.
  43923. + test -f "$nlist" || : > "$nlist"
  43924. +
  43925. + if test -n "$exclude_expsyms"; then
  43926. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  43927. + $MV "$nlist"T "$nlist"
  43928. fi
  43929. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  43930. - # are required to link).
  43931. - if test -n "$old_library"; then
  43932. - newdlprefiles="$newdlprefiles $dir/$old_library"
  43933. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  43934. - elif test -n "$dlname"; then
  43935. - newdlprefiles="$newdlprefiles $dir/$dlname"
  43936. +
  43937. + # Try sorting and uniquifying the output.
  43938. + if $GREP -v "^: " < "$nlist" |
  43939. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  43940. + sort -k 3
  43941. + else
  43942. + sort +2
  43943. + fi |
  43944. + uniq > "$nlist"S; then
  43945. + :
  43946. else
  43947. - newdlprefiles="$newdlprefiles $dir/$linklib"
  43948. + $GREP -v "^: " < "$nlist" > "$nlist"S
  43949. fi
  43950. - fi # $pass = dlpreopen
  43951. - if test -z "$libdir"; then
  43952. - # Link the convenience library
  43953. - if test "$linkmode" = lib; then
  43954. - deplibs="$dir/$old_library $deplibs"
  43955. - elif test "$linkmode,$pass" = "prog,link"; then
  43956. - compile_deplibs="$dir/$old_library $compile_deplibs"
  43957. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  43958. + if test -f "$nlist"S; then
  43959. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  43960. else
  43961. - deplibs="$lib $deplibs" # used for prog,scan pass
  43962. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  43963. fi
  43964. - continue
  43965. - fi
  43966. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43967. - if test "$linkmode" = prog && test "$pass" != link; then
  43968. - newlib_search_path="$newlib_search_path $ladir"
  43969. - deplibs="$lib $deplibs"
  43970. -
  43971. - linkalldeplibs=no
  43972. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  43973. - test "$build_libtool_libs" = no; then
  43974. - linkalldeplibs=yes
  43975. - fi
  43976. +/* The mapping between symbol names and symbols. */
  43977. +typedef struct {
  43978. + const char *name;
  43979. + void *address;
  43980. +} lt_dlsymlist;
  43981. +"
  43982. + case $host in
  43983. + *cygwin* | *mingw* | *cegcc* )
  43984. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  43985. +/* DATA imports from DLLs on WIN32 con't be const, because
  43986. + runtime relocations are performed -- see ld's documentation
  43987. + on pseudo-relocs. */"
  43988. + lt_dlsym_const= ;;
  43989. + *osf5*)
  43990. + echo >> "$output_objdir/$my_dlsyms" "\
  43991. +/* This system does not cope well with relocations in const data */"
  43992. + lt_dlsym_const= ;;
  43993. + *)
  43994. + lt_dlsym_const=const ;;
  43995. + esac
  43996. - tmp_libs=
  43997. - for deplib in $dependency_libs; do
  43998. - case $deplib in
  43999. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  44000. - esac
  44001. - # Need to link against all dependency_libs?
  44002. - if test "$linkalldeplibs" = yes; then
  44003. - deplibs="$deplib $deplibs"
  44004. - else
  44005. - # Need to hardcode shared library paths
  44006. - # or/and link against static libraries
  44007. - newdependency_libs="$deplib $newdependency_libs"
  44008. - fi
  44009. - if test "X$duplicate_deps" = "Xyes" ; then
  44010. - case "$tmp_libs " in
  44011. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  44012. - esac
  44013. - fi
  44014. - tmp_libs="$tmp_libs $deplib"
  44015. - done # for deplib
  44016. - continue
  44017. - fi # $linkmode = prog...
  44018. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  44019. +extern $lt_dlsym_const lt_dlsymlist
  44020. +lt_${my_prefix}_LTX_preloaded_symbols[];
  44021. +$lt_dlsym_const lt_dlsymlist
  44022. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  44023. +{\
  44024. + { \"$my_originator\", (void *) 0 },"
  44025. - if test "$linkmode,$pass" = "prog,link"; then
  44026. - if test -n "$library_names" &&
  44027. - { { test "$prefer_static_libs" = no ||
  44028. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  44029. - test -z "$old_library"; }; then
  44030. - # We need to hardcode the library path
  44031. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  44032. - # Make sure the rpath contains only unique directories.
  44033. - case "$temp_rpath " in
  44034. - *" $dir "*) ;;
  44035. - *" $absdir "*) ;;
  44036. - *) temp_rpath="$temp_rpath $absdir" ;;
  44037. - esac
  44038. - fi
  44039. + case $need_lib_prefix in
  44040. + no)
  44041. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  44042. + ;;
  44043. + *)
  44044. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  44045. + ;;
  44046. + esac
  44047. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  44048. + {0, (void *) 0}
  44049. +};
  44050. - # Hardcode the library path.
  44051. - # Skip directories that are in the system default run-time
  44052. - # search path.
  44053. - case " $sys_lib_dlsearch_path " in
  44054. - *" $absdir "*) ;;
  44055. - *)
  44056. - case "$compile_rpath " in
  44057. - *" $absdir "*) ;;
  44058. - *) compile_rpath="$compile_rpath $absdir"
  44059. - esac
  44060. - ;;
  44061. - esac
  44062. - case " $sys_lib_dlsearch_path " in
  44063. - *" $libdir "*) ;;
  44064. - *)
  44065. - case "$finalize_rpath " in
  44066. - *" $libdir "*) ;;
  44067. - *) finalize_rpath="$finalize_rpath $libdir"
  44068. - esac
  44069. - ;;
  44070. - esac
  44071. - fi # $linkmode,$pass = prog,link...
  44072. -
  44073. - if test "$alldeplibs" = yes &&
  44074. - { test "$deplibs_check_method" = pass_all ||
  44075. - { test "$build_libtool_libs" = yes &&
  44076. - test -n "$library_names"; }; }; then
  44077. - # We only need to search for static libraries
  44078. - continue
  44079. - fi
  44080. - fi
  44081. +/* This works around a problem in FreeBSD linker */
  44082. +#ifdef FREEBSD_WORKAROUND
  44083. +static const void *lt_preloaded_setup() {
  44084. + return lt_${my_prefix}_LTX_preloaded_symbols;
  44085. +}
  44086. +#endif
  44087. - link_static=no # Whether the deplib will be linked statically
  44088. - use_static_libs=$prefer_static_libs
  44089. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  44090. - use_static_libs=no
  44091. - fi
  44092. - if test -n "$library_names" &&
  44093. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  44094. - if test "$installed" = no; then
  44095. - notinst_deplibs="$notinst_deplibs $lib"
  44096. - need_relink=yes
  44097. - fi
  44098. - # This is a shared library
  44099. +#ifdef __cplusplus
  44100. +}
  44101. +#endif\
  44102. +"
  44103. + } # !$opt_dry_run
  44104. - # Warn about portability, can't link against -module's on
  44105. - # some systems (darwin)
  44106. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  44107. - $echo
  44108. - if test "$linkmode" = prog; then
  44109. - $echo "*** Warning: Linking the executable $output against the loadable module"
  44110. - else
  44111. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  44112. + pic_flag_for_symtable=
  44113. + case "$compile_command " in
  44114. + *" -static "*) ;;
  44115. + *)
  44116. + case $host in
  44117. + # compiling the symbol table file with pic_flag works around
  44118. + # a FreeBSD bug that causes programs to crash when -lm is
  44119. + # linked before any other PIC object. But we must not use
  44120. + # pic_flag when linking with -static. The problem exists in
  44121. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  44122. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  44123. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  44124. + *-*-hpux*)
  44125. + pic_flag_for_symtable=" $pic_flag" ;;
  44126. + *)
  44127. + if test "X$my_pic_p" != Xno; then
  44128. + pic_flag_for_symtable=" $pic_flag"
  44129. fi
  44130. - $echo "*** $linklib is not portable!"
  44131. - fi
  44132. - if test "$linkmode" = lib &&
  44133. - test "$hardcode_into_libs" = yes; then
  44134. - # Hardcode the library path.
  44135. - # Skip directories that are in the system default run-time
  44136. - # search path.
  44137. - case " $sys_lib_dlsearch_path " in
  44138. - *" $absdir "*) ;;
  44139. - *)
  44140. - case "$compile_rpath " in
  44141. - *" $absdir "*) ;;
  44142. - *) compile_rpath="$compile_rpath $absdir"
  44143. - esac
  44144. - ;;
  44145. - esac
  44146. - case " $sys_lib_dlsearch_path " in
  44147. - *" $libdir "*) ;;
  44148. - *)
  44149. - case "$finalize_rpath " in
  44150. - *" $libdir "*) ;;
  44151. - *) finalize_rpath="$finalize_rpath $libdir"
  44152. - esac
  44153. - ;;
  44154. - esac
  44155. - fi
  44156. + ;;
  44157. + esac
  44158. + ;;
  44159. + esac
  44160. + symtab_cflags=
  44161. + for arg in $LTCFLAGS; do
  44162. + case $arg in
  44163. + -pie | -fpie | -fPIE) ;;
  44164. + *) symtab_cflags="$symtab_cflags $arg" ;;
  44165. + esac
  44166. + done
  44167. - if test -n "$old_archive_from_expsyms_cmds"; then
  44168. - # figure out the soname
  44169. - set dummy $library_names
  44170. - realname="$2"
  44171. - shift; shift
  44172. - libname=`eval \\$echo \"$libname_spec\"`
  44173. - # use dlname if we got it. it's perfectly good, no?
  44174. - if test -n "$dlname"; then
  44175. - soname="$dlname"
  44176. - elif test -n "$soname_spec"; then
  44177. - # bleh windows
  44178. - case $host in
  44179. - *cygwin* | mingw*)
  44180. - major=`expr $current - $age`
  44181. - versuffix="-$major"
  44182. - ;;
  44183. - esac
  44184. - eval soname=\"$soname_spec\"
  44185. - else
  44186. - soname="$realname"
  44187. - fi
  44188. + # Now compile the dynamic symbol file.
  44189. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  44190. - # Make a new name for the extract_expsyms_cmds to use
  44191. - soroot="$soname"
  44192. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  44193. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  44194. + # Clean up the generated files.
  44195. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  44196. - # If the library has no export list, then create one now
  44197. - if test -f "$output_objdir/$soname-def"; then :
  44198. - else
  44199. - $show "extracting exported symbol list from \`$soname'"
  44200. - save_ifs="$IFS"; IFS='~'
  44201. - cmds=$extract_expsyms_cmds
  44202. - for cmd in $cmds; do
  44203. - IFS="$save_ifs"
  44204. - eval cmd=\"$cmd\"
  44205. - $show "$cmd"
  44206. - $run eval "$cmd" || exit $?
  44207. - done
  44208. - IFS="$save_ifs"
  44209. - fi
  44210. + # Transform the symbol file into the correct name.
  44211. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  44212. + case $host in
  44213. + *cygwin* | *mingw* | *cegcc* )
  44214. + if test -f "$output_objdir/$my_outputname.def"; then
  44215. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  44216. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  44217. + else
  44218. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  44219. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  44220. + fi
  44221. + ;;
  44222. + *)
  44223. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  44224. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  44225. + ;;
  44226. + esac
  44227. + ;;
  44228. + *)
  44229. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  44230. + ;;
  44231. + esac
  44232. + else
  44233. + # We keep going just in case the user didn't refer to
  44234. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  44235. + # really was required.
  44236. +
  44237. + # Nullify the symbol file.
  44238. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  44239. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  44240. + fi
  44241. +}
  44242. - # Create $newlib
  44243. - if test -f "$output_objdir/$newlib"; then :; else
  44244. - $show "generating import library for \`$soname'"
  44245. - save_ifs="$IFS"; IFS='~'
  44246. - cmds=$old_archive_from_expsyms_cmds
  44247. - for cmd in $cmds; do
  44248. - IFS="$save_ifs"
  44249. - eval cmd=\"$cmd\"
  44250. - $show "$cmd"
  44251. - $run eval "$cmd" || exit $?
  44252. - done
  44253. - IFS="$save_ifs"
  44254. - fi
  44255. - # make sure the library variables are pointing to the new library
  44256. - dir=$output_objdir
  44257. - linklib=$newlib
  44258. - fi # test -n "$old_archive_from_expsyms_cmds"
  44259. +# func_win32_libid arg
  44260. +# return the library type of file 'arg'
  44261. +#
  44262. +# Need a lot of goo to handle *both* DLLs and import libs
  44263. +# Has to be a shell function in order to 'eat' the argument
  44264. +# that is supplied when $file_magic_command is called.
  44265. +func_win32_libid ()
  44266. +{
  44267. + $opt_debug
  44268. + win32_libid_type="unknown"
  44269. + win32_fileres=`file -L $1 2>/dev/null`
  44270. + case $win32_fileres in
  44271. + *ar\ archive\ import\ library*) # definitely import
  44272. + win32_libid_type="x86 archive import"
  44273. + ;;
  44274. + *ar\ archive*) # could be an import, or static
  44275. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  44276. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  44277. + win32_nmres=`eval $NM -f posix -A $1 |
  44278. + $SED -n -e '
  44279. + 1,100{
  44280. + / I /{
  44281. + s,.*,import,
  44282. + p
  44283. + q
  44284. + }
  44285. + }'`
  44286. + case $win32_nmres in
  44287. + import*) win32_libid_type="x86 archive import";;
  44288. + *) win32_libid_type="x86 archive static";;
  44289. + esac
  44290. + fi
  44291. + ;;
  44292. + *DLL*)
  44293. + win32_libid_type="x86 DLL"
  44294. + ;;
  44295. + *executable*) # but shell scripts are "executable" too...
  44296. + case $win32_fileres in
  44297. + *MS\ Windows\ PE\ Intel*)
  44298. + win32_libid_type="x86 DLL"
  44299. + ;;
  44300. + esac
  44301. + ;;
  44302. + esac
  44303. + $ECHO "$win32_libid_type"
  44304. +}
  44305. - if test "$linkmode" = prog || test "$mode" != relink; then
  44306. - add_shlibpath=
  44307. - add_dir=
  44308. - add=
  44309. - lib_linked=yes
  44310. - case $hardcode_action in
  44311. - immediate | unsupported)
  44312. - if test "$hardcode_direct" = no; then
  44313. - add="$dir/$linklib"
  44314. - case $host in
  44315. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  44316. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  44317. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  44318. - *-*-unixware7*) add_dir="-L$dir" ;;
  44319. - *-*-darwin* )
  44320. - # if the lib is a module then we can not link against
  44321. - # it, someone is ignoring the new warnings I added
  44322. - if /usr/bin/file -L $add 2> /dev/null |
  44323. - $EGREP ": [^:]* bundle" >/dev/null ; then
  44324. - $echo "** Warning, lib $linklib is a module, not a shared library"
  44325. - if test -z "$old_library" ; then
  44326. - $echo
  44327. - $echo "** And there doesn't seem to be a static archive available"
  44328. - $echo "** The link will probably fail, sorry"
  44329. - else
  44330. - add="$dir/$old_library"
  44331. - fi
  44332. - fi
  44333. - esac
  44334. - elif test "$hardcode_minus_L" = no; then
  44335. - case $host in
  44336. - *-*-sunos*) add_shlibpath="$dir" ;;
  44337. - esac
  44338. - add_dir="-L$dir"
  44339. - add="-l$name"
  44340. - elif test "$hardcode_shlibpath_var" = no; then
  44341. - add_shlibpath="$dir"
  44342. - add="-l$name"
  44343. - else
  44344. - lib_linked=no
  44345. - fi
  44346. - ;;
  44347. - relink)
  44348. - if test "$hardcode_direct" = yes; then
  44349. - add="$dir/$linklib"
  44350. - elif test "$hardcode_minus_L" = yes; then
  44351. - add_dir="-L$dir"
  44352. - # Try looking first in the location we're being installed to.
  44353. - if test -n "$inst_prefix_dir"; then
  44354. - case $libdir in
  44355. - [\\/]*)
  44356. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  44357. - ;;
  44358. - esac
  44359. - fi
  44360. - add="-l$name"
  44361. - elif test "$hardcode_shlibpath_var" = yes; then
  44362. - add_shlibpath="$dir"
  44363. - add="-l$name"
  44364. - else
  44365. - lib_linked=no
  44366. - fi
  44367. - ;;
  44368. - *) lib_linked=no ;;
  44369. - esac
  44370. - if test "$lib_linked" != yes; then
  44371. - $echo "$modename: configuration error: unsupported hardcode properties"
  44372. - exit $EXIT_FAILURE
  44373. - fi
  44374. - if test -n "$add_shlibpath"; then
  44375. - case :$compile_shlibpath: in
  44376. - *":$add_shlibpath:"*) ;;
  44377. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  44378. - esac
  44379. - fi
  44380. - if test "$linkmode" = prog; then
  44381. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  44382. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  44383. - else
  44384. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  44385. - test -n "$add" && deplibs="$add $deplibs"
  44386. - if test "$hardcode_direct" != yes && \
  44387. - test "$hardcode_minus_L" != yes && \
  44388. - test "$hardcode_shlibpath_var" = yes; then
  44389. - case :$finalize_shlibpath: in
  44390. - *":$libdir:"*) ;;
  44391. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  44392. - esac
  44393. - fi
  44394. - fi
  44395. - fi
  44396. +# func_extract_an_archive dir oldlib
  44397. +func_extract_an_archive ()
  44398. +{
  44399. + $opt_debug
  44400. + f_ex_an_ar_dir="$1"; shift
  44401. + f_ex_an_ar_oldlib="$1"
  44402. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  44403. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  44404. + :
  44405. + else
  44406. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  44407. + fi
  44408. +}
  44409. - if test "$linkmode" = prog || test "$mode" = relink; then
  44410. - add_shlibpath=
  44411. - add_dir=
  44412. - add=
  44413. - # Finalize command for both is simple: just hardcode it.
  44414. - if test "$hardcode_direct" = yes; then
  44415. - add="$libdir/$linklib"
  44416. - elif test "$hardcode_minus_L" = yes; then
  44417. - add_dir="-L$libdir"
  44418. - add="-l$name"
  44419. - elif test "$hardcode_shlibpath_var" = yes; then
  44420. - case :$finalize_shlibpath: in
  44421. - *":$libdir:"*) ;;
  44422. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  44423. - esac
  44424. - add="-l$name"
  44425. - elif test "$hardcode_automatic" = yes; then
  44426. - if test -n "$inst_prefix_dir" &&
  44427. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  44428. - add="$inst_prefix_dir$libdir/$linklib"
  44429. - else
  44430. - add="$libdir/$linklib"
  44431. - fi
  44432. - else
  44433. - # We cannot seem to hardcode it, guess we'll fake it.
  44434. - add_dir="-L$libdir"
  44435. - # Try looking first in the location we're being installed to.
  44436. - if test -n "$inst_prefix_dir"; then
  44437. - case $libdir in
  44438. - [\\/]*)
  44439. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  44440. - ;;
  44441. - esac
  44442. - fi
  44443. - add="-l$name"
  44444. - fi
  44445. - if test "$linkmode" = prog; then
  44446. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  44447. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  44448. - else
  44449. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  44450. - test -n "$add" && deplibs="$add $deplibs"
  44451. - fi
  44452. - fi
  44453. - elif test "$linkmode" = prog; then
  44454. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  44455. - # is not unsupported. This is valid on all known static and
  44456. - # shared platforms.
  44457. - if test "$hardcode_direct" != unsupported; then
  44458. - test -n "$old_library" && linklib="$old_library"
  44459. - compile_deplibs="$dir/$linklib $compile_deplibs"
  44460. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  44461. - else
  44462. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  44463. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  44464. - fi
  44465. - elif test "$build_libtool_libs" = yes; then
  44466. - # Not a shared library
  44467. - if test "$deplibs_check_method" != pass_all; then
  44468. - # We're trying link a shared library against a static one
  44469. - # but the system doesn't support it.
  44470. +# func_extract_archives gentop oldlib ...
  44471. +func_extract_archives ()
  44472. +{
  44473. + $opt_debug
  44474. + my_gentop="$1"; shift
  44475. + my_oldlibs=${1+"$@"}
  44476. + my_oldobjs=""
  44477. + my_xlib=""
  44478. + my_xabs=""
  44479. + my_xdir=""
  44480. - # Just print a warning and add the library to dependency_libs so
  44481. - # that the program can be linked against the static library.
  44482. - $echo
  44483. - $echo "*** Warning: This system can not link to static lib archive $lib."
  44484. - $echo "*** I have the capability to make that library automatically link in when"
  44485. - $echo "*** you link to this library. But I can only do this if you have a"
  44486. - $echo "*** shared version of the library, which you do not appear to have."
  44487. - if test "$module" = yes; then
  44488. - $echo "*** But as you try to build a module library, libtool will still create "
  44489. - $echo "*** a static module, that should work as long as the dlopening application"
  44490. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  44491. - if test -z "$global_symbol_pipe"; then
  44492. - $echo
  44493. - $echo "*** However, this would only work if libtool was able to extract symbol"
  44494. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  44495. - $echo "*** not find such a program. So, this module is probably useless."
  44496. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  44497. - fi
  44498. - if test "$build_old_libs" = no; then
  44499. - build_libtool_libs=module
  44500. - build_old_libs=yes
  44501. - else
  44502. - build_libtool_libs=no
  44503. - fi
  44504. - fi
  44505. + for my_xlib in $my_oldlibs; do
  44506. + # Extract the objects.
  44507. + case $my_xlib in
  44508. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  44509. + *) my_xabs=`pwd`"/$my_xlib" ;;
  44510. + esac
  44511. + func_basename "$my_xlib"
  44512. + my_xlib="$func_basename_result"
  44513. + my_xlib_u=$my_xlib
  44514. + while :; do
  44515. + case " $extracted_archives " in
  44516. + *" $my_xlib_u "*)
  44517. + func_arith $extracted_serial + 1
  44518. + extracted_serial=$func_arith_result
  44519. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  44520. + *) break ;;
  44521. + esac
  44522. + done
  44523. + extracted_archives="$extracted_archives $my_xlib_u"
  44524. + my_xdir="$my_gentop/$my_xlib_u"
  44525. +
  44526. + func_mkdir_p "$my_xdir"
  44527. +
  44528. + case $host in
  44529. + *-darwin*)
  44530. + func_verbose "Extracting $my_xabs"
  44531. + # Do not bother doing anything if just a dry run
  44532. + $opt_dry_run || {
  44533. + darwin_orig_dir=`pwd`
  44534. + cd $my_xdir || exit $?
  44535. + darwin_archive=$my_xabs
  44536. + darwin_curdir=`pwd`
  44537. + darwin_base_archive=`basename "$darwin_archive"`
  44538. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  44539. + if test -n "$darwin_arches"; then
  44540. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  44541. + darwin_arch=
  44542. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  44543. + for darwin_arch in $darwin_arches ; do
  44544. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  44545. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  44546. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  44547. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  44548. + cd "$darwin_curdir"
  44549. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  44550. + done # $darwin_arches
  44551. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  44552. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  44553. + darwin_file=
  44554. + darwin_files=
  44555. + for darwin_file in $darwin_filelist; do
  44556. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  44557. + $LIPO -create -output "$darwin_file" $darwin_files
  44558. + done # $darwin_filelist
  44559. + $RM -rf unfat-$$
  44560. + cd "$darwin_orig_dir"
  44561. else
  44562. - deplibs="$dir/$old_library $deplibs"
  44563. - link_static=yes
  44564. - fi
  44565. - fi # link shared/static library?
  44566. + cd $darwin_orig_dir
  44567. + func_extract_an_archive "$my_xdir" "$my_xabs"
  44568. + fi # $darwin_arches
  44569. + } # !$opt_dry_run
  44570. + ;;
  44571. + *)
  44572. + func_extract_an_archive "$my_xdir" "$my_xabs"
  44573. + ;;
  44574. + esac
  44575. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  44576. + done
  44577. - if test "$linkmode" = lib; then
  44578. - if test -n "$dependency_libs" &&
  44579. - { test "$hardcode_into_libs" != yes ||
  44580. - test "$build_old_libs" = yes ||
  44581. - test "$link_static" = yes; }; then
  44582. - # Extract -R from dependency_libs
  44583. - temp_deplibs=
  44584. - for libdir in $dependency_libs; do
  44585. - case $libdir in
  44586. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  44587. - case " $xrpath " in
  44588. - *" $temp_xrpath "*) ;;
  44589. - *) xrpath="$xrpath $temp_xrpath";;
  44590. - esac;;
  44591. - *) temp_deplibs="$temp_deplibs $libdir";;
  44592. - esac
  44593. - done
  44594. - dependency_libs="$temp_deplibs"
  44595. - fi
  44596. + func_extract_archives_result="$my_oldobjs"
  44597. +}
  44598. - newlib_search_path="$newlib_search_path $absdir"
  44599. - # Link against this library
  44600. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  44601. - # ... and its dependency_libs
  44602. - tmp_libs=
  44603. - for deplib in $dependency_libs; do
  44604. - newdependency_libs="$deplib $newdependency_libs"
  44605. - if test "X$duplicate_deps" = "Xyes" ; then
  44606. - case "$tmp_libs " in
  44607. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  44608. - esac
  44609. - fi
  44610. - tmp_libs="$tmp_libs $deplib"
  44611. - done
  44612. - if test "$link_all_deplibs" != no; then
  44613. - # Add the search paths of all dependency libraries
  44614. - for deplib in $dependency_libs; do
  44615. - case $deplib in
  44616. - -L*) path="$deplib" ;;
  44617. - *.la)
  44618. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  44619. - test "X$dir" = "X$deplib" && dir="."
  44620. - # We need an absolute path.
  44621. - case $dir in
  44622. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  44623. - *)
  44624. - absdir=`cd "$dir" && pwd`
  44625. - if test -z "$absdir"; then
  44626. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  44627. - absdir="$dir"
  44628. - fi
  44629. - ;;
  44630. - esac
  44631. - if grep "^installed=no" $deplib > /dev/null; then
  44632. - path="$absdir/$objdir"
  44633. - else
  44634. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  44635. - if test -z "$libdir"; then
  44636. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  44637. - exit $EXIT_FAILURE
  44638. - fi
  44639. - if test "$absdir" != "$libdir"; then
  44640. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  44641. - fi
  44642. - path="$absdir"
  44643. - fi
  44644. - depdepl=
  44645. - case $host in
  44646. - *-*-darwin*)
  44647. - # we do not want to link against static libs,
  44648. - # but need to link against shared
  44649. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  44650. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  44651. - if test -n "$deplibrary_names" ; then
  44652. - for tmp in $deplibrary_names ; do
  44653. - depdepl=$tmp
  44654. - done
  44655. - if test -f "$deplibdir/$depdepl" ; then
  44656. - depdepl="$deplibdir/$depdepl"
  44657. - elif test -f "$path/$depdepl" ; then
  44658. - depdepl="$path/$depdepl"
  44659. - else
  44660. - # Can't find it, oh well...
  44661. - depdepl=
  44662. - fi
  44663. - # do not add paths which are already there
  44664. - case " $newlib_search_path " in
  44665. - *" $path "*) ;;
  44666. - *) newlib_search_path="$newlib_search_path $path";;
  44667. - esac
  44668. - fi
  44669. - path=""
  44670. - ;;
  44671. - *)
  44672. - path="-L$path"
  44673. - ;;
  44674. - esac
  44675. - ;;
  44676. - -l*)
  44677. - case $host in
  44678. - *-*-darwin*)
  44679. - # Again, we only want to link against shared libraries
  44680. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  44681. - for tmp in $newlib_search_path ; do
  44682. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  44683. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  44684. - break
  44685. - fi
  44686. - done
  44687. - path=""
  44688. - ;;
  44689. - *) continue ;;
  44690. - esac
  44691. - ;;
  44692. - *) continue ;;
  44693. - esac
  44694. - case " $deplibs " in
  44695. - *" $path "*) ;;
  44696. - *) deplibs="$path $deplibs" ;;
  44697. - esac
  44698. - case " $deplibs " in
  44699. - *" $depdepl "*) ;;
  44700. - *) deplibs="$depdepl $deplibs" ;;
  44701. - esac
  44702. - done
  44703. - fi # link_all_deplibs != no
  44704. - fi # linkmode = lib
  44705. - done # for deplib in $libs
  44706. - dependency_libs="$newdependency_libs"
  44707. - if test "$pass" = dlpreopen; then
  44708. - # Link the dlpreopened libraries before other libraries
  44709. - for deplib in $save_deplibs; do
  44710. - deplibs="$deplib $deplibs"
  44711. - done
  44712. - fi
  44713. - if test "$pass" != dlopen; then
  44714. - if test "$pass" != conv; then
  44715. - # Make sure lib_search_path contains only unique directories.
  44716. - lib_search_path=
  44717. - for dir in $newlib_search_path; do
  44718. - case "$lib_search_path " in
  44719. - *" $dir "*) ;;
  44720. - *) lib_search_path="$lib_search_path $dir" ;;
  44721. - esac
  44722. - done
  44723. - newlib_search_path=
  44724. - fi
  44725. - if test "$linkmode,$pass" != "prog,link"; then
  44726. - vars="deplibs"
  44727. - else
  44728. - vars="compile_deplibs finalize_deplibs"
  44729. +# func_emit_wrapper_part1 [arg=no]
  44730. +#
  44731. +# Emit the first part of a libtool wrapper script on stdout.
  44732. +# For more information, see the description associated with
  44733. +# func_emit_wrapper(), below.
  44734. +func_emit_wrapper_part1 ()
  44735. +{
  44736. + func_emit_wrapper_part1_arg1=no
  44737. + if test -n "$1" ; then
  44738. + func_emit_wrapper_part1_arg1=$1
  44739. fi
  44740. - for var in $vars dependency_libs; do
  44741. - # Add libraries to $var in reverse order
  44742. - eval tmp_libs=\"\$$var\"
  44743. - new_libs=
  44744. - for deplib in $tmp_libs; do
  44745. - # FIXME: Pedantically, this is the right thing to do, so
  44746. - # that some nasty dependency loop isn't accidentally
  44747. - # broken:
  44748. - #new_libs="$deplib $new_libs"
  44749. - # Pragmatically, this seems to cause very few problems in
  44750. - # practice:
  44751. - case $deplib in
  44752. - -L*) new_libs="$deplib $new_libs" ;;
  44753. - -R*) ;;
  44754. - *)
  44755. - # And here is the reason: when a library appears more
  44756. - # than once as an explicit dependence of a library, or
  44757. - # is implicitly linked in more than once by the
  44758. - # compiler, it is considered special, and multiple
  44759. - # occurrences thereof are not removed. Compare this
  44760. - # with having the same library being listed as a
  44761. - # dependency of multiple other libraries: in this case,
  44762. - # we know (pedantically, we assume) the library does not
  44763. - # need to be listed more than once, so we keep only the
  44764. - # last copy. This is not always right, but it is rare
  44765. - # enough that we require users that really mean to play
  44766. - # such unportable linking tricks to link the library
  44767. - # using -Wl,-lname, so that libtool does not consider it
  44768. - # for duplicate removal.
  44769. - case " $specialdeplibs " in
  44770. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  44771. - *)
  44772. - case " $new_libs " in
  44773. - *" $deplib "*) ;;
  44774. - *) new_libs="$deplib $new_libs" ;;
  44775. - esac
  44776. - ;;
  44777. - esac
  44778. - ;;
  44779. - esac
  44780. - done
  44781. - tmp_libs=
  44782. - for deplib in $new_libs; do
  44783. - case $deplib in
  44784. - -L*)
  44785. - case " $tmp_libs " in
  44786. - *" $deplib "*) ;;
  44787. - *) tmp_libs="$tmp_libs $deplib" ;;
  44788. - esac
  44789. - ;;
  44790. - *) tmp_libs="$tmp_libs $deplib" ;;
  44791. - esac
  44792. - done
  44793. - eval $var=\"$tmp_libs\"
  44794. - done # for var
  44795. - fi
  44796. - # Last step: remove runtime libs from dependency_libs
  44797. - # (they stay in deplibs)
  44798. - tmp_libs=
  44799. - for i in $dependency_libs ; do
  44800. - case " $predeps $postdeps $compiler_lib_search_path " in
  44801. - *" $i "*)
  44802. - i=""
  44803. - ;;
  44804. - esac
  44805. - if test -n "$i" ; then
  44806. - tmp_libs="$tmp_libs $i"
  44807. - fi
  44808. - done
  44809. - dependency_libs=$tmp_libs
  44810. - done # for pass
  44811. - if test "$linkmode" = prog; then
  44812. - dlfiles="$newdlfiles"
  44813. - dlprefiles="$newdlprefiles"
  44814. +
  44815. + $ECHO "\
  44816. +#! $SHELL
  44817. +
  44818. +# $output - temporary wrapper script for $objdir/$outputname
  44819. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  44820. +#
  44821. +# The $output program cannot be directly executed until all the libtool
  44822. +# libraries that it depends on are installed.
  44823. +#
  44824. +# This wrapper script should never be moved out of the build directory.
  44825. +# If it is, it will not operate correctly.
  44826. +
  44827. +# Sed substitution that helps us do robust quoting. It backslashifies
  44828. +# metacharacters that are still active within double-quoted strings.
  44829. +Xsed='${SED} -e 1s/^X//'
  44830. +sed_quote_subst='$sed_quote_subst'
  44831. +
  44832. +# Be Bourne compatible
  44833. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  44834. + emulate sh
  44835. + NULLCMD=:
  44836. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  44837. + # is contrary to our usage. Disable this feature.
  44838. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  44839. + setopt NO_GLOB_SUBST
  44840. +else
  44841. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  44842. +fi
  44843. +BIN_SH=xpg4; export BIN_SH # for Tru64
  44844. +DUALCASE=1; export DUALCASE # for MKS sh
  44845. +
  44846. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  44847. +# if CDPATH is set.
  44848. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  44849. +
  44850. +relink_command=\"$relink_command\"
  44851. +
  44852. +# This environment variable determines our operation mode.
  44853. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  44854. + # install mode needs the following variables:
  44855. + generated_by_libtool_version='$macro_version'
  44856. + notinst_deplibs='$notinst_deplibs'
  44857. +else
  44858. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  44859. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  44860. + ECHO=\"$qecho\"
  44861. + file=\"\$0\"
  44862. + # Make sure echo works.
  44863. + if test \"X\$1\" = X--no-reexec; then
  44864. + # Discard the --no-reexec flag, and continue.
  44865. + shift
  44866. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  44867. + # Yippee, \$ECHO works!
  44868. + :
  44869. + else
  44870. + # Restart under the correct shell, and then maybe \$ECHO will work.
  44871. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  44872. fi
  44873. + fi\
  44874. +"
  44875. + $ECHO "\
  44876. - case $linkmode in
  44877. - oldlib)
  44878. - case " $deplibs" in
  44879. - *\ -l* | *\ -L*)
  44880. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  44881. + # Find the directory that this script lives in.
  44882. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  44883. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  44884. +
  44885. + # Follow symbolic links until we get to the real thisdir.
  44886. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  44887. + while test -n \"\$file\"; do
  44888. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  44889. +
  44890. + # If there was a directory component, then change thisdir.
  44891. + if test \"x\$destdir\" != \"x\$file\"; then
  44892. + case \"\$destdir\" in
  44893. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  44894. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  44895. esac
  44896. + fi
  44897. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  44898. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  44899. - fi
  44900. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  44901. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  44902. + done
  44903. +"
  44904. +}
  44905. +# end: func_emit_wrapper_part1
  44906. - if test -n "$rpath"; then
  44907. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  44908. - fi
  44909. +# func_emit_wrapper_part2 [arg=no]
  44910. +#
  44911. +# Emit the second part of a libtool wrapper script on stdout.
  44912. +# For more information, see the description associated with
  44913. +# func_emit_wrapper(), below.
  44914. +func_emit_wrapper_part2 ()
  44915. +{
  44916. + func_emit_wrapper_part2_arg1=no
  44917. + if test -n "$1" ; then
  44918. + func_emit_wrapper_part2_arg1=$1
  44919. + fi
  44920. +
  44921. + $ECHO "\
  44922. +
  44923. + # Usually 'no', except on cygwin/mingw when embedded into
  44924. + # the cwrapper.
  44925. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  44926. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  44927. + # special case for '.'
  44928. + if test \"\$thisdir\" = \".\"; then
  44929. + thisdir=\`pwd\`
  44930. + fi
  44931. + # remove .libs from thisdir
  44932. + case \"\$thisdir\" in
  44933. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  44934. + $objdir ) thisdir=. ;;
  44935. + esac
  44936. + fi
  44937. - if test -n "$xrpath"; then
  44938. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  44939. - fi
  44940. + # Try to get the absolute directory name.
  44941. + absdir=\`cd \"\$thisdir\" && pwd\`
  44942. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  44943. +"
  44944. - if test -n "$vinfo"; then
  44945. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  44946. - fi
  44947. + if test "$fast_install" = yes; then
  44948. + $ECHO "\
  44949. + program=lt-'$outputname'$exeext
  44950. + progdir=\"\$thisdir/$objdir\"
  44951. - if test -n "$release"; then
  44952. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  44953. - fi
  44954. + if test ! -f \"\$progdir/\$program\" ||
  44955. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  44956. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  44957. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  44958. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  44959. - fi
  44960. + file=\"\$\$-\$program\"
  44961. - # Now set the variables for building old libraries.
  44962. - build_libtool_libs=no
  44963. - oldlibs="$output"
  44964. - objs="$objs$old_deplibs"
  44965. - ;;
  44966. + if test ! -d \"\$progdir\"; then
  44967. + $MKDIR \"\$progdir\"
  44968. + else
  44969. + $RM \"\$progdir/\$file\"
  44970. + fi"
  44971. - lib)
  44972. - # Make sure we only generate libraries of the form `libNAME.la'.
  44973. - case $outputname in
  44974. - lib*)
  44975. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  44976. - eval shared_ext=\"$shrext_cmds\"
  44977. - eval libname=\"$libname_spec\"
  44978. - ;;
  44979. - *)
  44980. - if test "$module" = no; then
  44981. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  44982. - $echo "$help" 1>&2
  44983. - exit $EXIT_FAILURE
  44984. - fi
  44985. - if test "$need_lib_prefix" != no; then
  44986. - # Add the "lib" prefix for modules if required
  44987. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  44988. - eval shared_ext=\"$shrext_cmds\"
  44989. - eval libname=\"$libname_spec\"
  44990. - else
  44991. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  44992. - fi
  44993. - ;;
  44994. - esac
  44995. + $ECHO "\
  44996. - if test -n "$objs"; then
  44997. - if test "$deplibs_check_method" != pass_all; then
  44998. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  44999. - exit $EXIT_FAILURE
  45000. + # relink executable if necessary
  45001. + if test -n \"\$relink_command\"; then
  45002. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  45003. + else
  45004. + $ECHO \"\$relink_command_output\" >&2
  45005. + $RM \"\$progdir/\$file\"
  45006. + exit 1
  45007. + fi
  45008. + fi
  45009. +
  45010. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  45011. + { $RM \"\$progdir/\$program\";
  45012. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  45013. + $RM \"\$progdir/\$file\"
  45014. + fi"
  45015. else
  45016. - $echo
  45017. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  45018. - $echo "*** objects $objs is not portable!"
  45019. - libobjs="$libobjs $objs"
  45020. + $ECHO "\
  45021. + program='$outputname'
  45022. + progdir=\"\$thisdir/$objdir\"
  45023. +"
  45024. fi
  45025. - fi
  45026. - if test "$dlself" != no; then
  45027. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  45028. - fi
  45029. + $ECHO "\
  45030. - set dummy $rpath
  45031. - if test "$#" -gt 2; then
  45032. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  45033. - fi
  45034. - install_libdir="$2"
  45035. + if test -f \"\$progdir/\$program\"; then"
  45036. - oldlibs=
  45037. - if test -z "$rpath"; then
  45038. - if test "$build_libtool_libs" = yes; then
  45039. - # Building a libtool convenience library.
  45040. - # Some compilers have problems with a `.al' extension so
  45041. - # convenience libraries should have the same extension an
  45042. - # archive normally would.
  45043. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  45044. - build_libtool_libs=convenience
  45045. - build_old_libs=yes
  45046. - fi
  45047. + # Export our shlibpath_var if we have one.
  45048. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  45049. + $ECHO "\
  45050. + # Add our own library path to $shlibpath_var
  45051. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  45052. - if test -n "$vinfo"; then
  45053. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  45054. + # Some systems cannot cope with colon-terminated $shlibpath_var
  45055. + # The second colon is a workaround for a bug in BeOS R4 sed
  45056. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  45057. +
  45058. + export $shlibpath_var
  45059. +"
  45060. fi
  45061. - if test -n "$release"; then
  45062. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  45063. + # fixup the dll searchpath if we need to.
  45064. + if test -n "$dllsearchpath"; then
  45065. + $ECHO "\
  45066. + # Add the dll search path components to the executable PATH
  45067. + PATH=$dllsearchpath:\$PATH
  45068. +"
  45069. fi
  45070. - else
  45071. - # Parse the version information argument.
  45072. - save_ifs="$IFS"; IFS=':'
  45073. - set dummy $vinfo 0 0 0
  45074. - IFS="$save_ifs"
  45075. + $ECHO "\
  45076. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  45077. + # Run the actual program with our arguments.
  45078. +"
  45079. + case $host in
  45080. + # Backslashes separate directories on plain windows
  45081. + *-*-mingw | *-*-os2* | *-cegcc*)
  45082. + $ECHO "\
  45083. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  45084. +"
  45085. + ;;
  45086. +
  45087. + *)
  45088. + $ECHO "\
  45089. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  45090. +"
  45091. + ;;
  45092. + esac
  45093. + $ECHO "\
  45094. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  45095. + exit 1
  45096. + fi
  45097. + else
  45098. + # The program doesn't exist.
  45099. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  45100. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  45101. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  45102. + exit 1
  45103. + fi
  45104. +fi\
  45105. +"
  45106. +}
  45107. +# end: func_emit_wrapper_part2
  45108. - if test -n "$8"; then
  45109. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  45110. - $echo "$help" 1>&2
  45111. - exit $EXIT_FAILURE
  45112. +
  45113. +# func_emit_wrapper [arg=no]
  45114. +#
  45115. +# Emit a libtool wrapper script on stdout.
  45116. +# Don't directly open a file because we may want to
  45117. +# incorporate the script contents within a cygwin/mingw
  45118. +# wrapper executable. Must ONLY be called from within
  45119. +# func_mode_link because it depends on a number of variables
  45120. +# set therein.
  45121. +#
  45122. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  45123. +# variable will take. If 'yes', then the emitted script
  45124. +# will assume that the directory in which it is stored is
  45125. +# the $objdir directory. This is a cygwin/mingw-specific
  45126. +# behavior.
  45127. +func_emit_wrapper ()
  45128. +{
  45129. + func_emit_wrapper_arg1=no
  45130. + if test -n "$1" ; then
  45131. + func_emit_wrapper_arg1=$1
  45132. fi
  45133. - # convert absolute version numbers to libtool ages
  45134. - # this retains compatibility with .la files and attempts
  45135. - # to make the code below a bit more comprehensible
  45136. + # split this up so that func_emit_cwrapperexe_src
  45137. + # can call each part independently.
  45138. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  45139. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  45140. +}
  45141. - case $vinfo_number in
  45142. - yes)
  45143. - number_major="$2"
  45144. - number_minor="$3"
  45145. - number_revision="$4"
  45146. - #
  45147. - # There are really only two kinds -- those that
  45148. - # use the current revision as the major version
  45149. - # and those that subtract age and use age as
  45150. - # a minor version. But, then there is irix
  45151. - # which has an extra 1 added just for fun
  45152. - #
  45153. - case $version_type in
  45154. - darwin|linux|osf|windows|none)
  45155. - current=`expr $number_major + $number_minor`
  45156. - age="$number_minor"
  45157. - revision="$number_revision"
  45158. - ;;
  45159. - freebsd-aout|freebsd-elf|sunos)
  45160. - current="$number_major"
  45161. - revision="$number_minor"
  45162. - age="0"
  45163. - ;;
  45164. - irix|nonstopux)
  45165. - current=`expr $number_major + $number_minor`
  45166. - age="$number_minor"
  45167. - revision="$number_minor"
  45168. - lt_irix_increment=no
  45169. - ;;
  45170. - esac
  45171. - ;;
  45172. - no)
  45173. - current="$2"
  45174. - revision="$3"
  45175. - age="$4"
  45176. - ;;
  45177. - esac
  45178. - # Check that each of the things are valid numbers.
  45179. - case $current in
  45180. - 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]) ;;
  45181. - *)
  45182. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  45183. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45184. - exit $EXIT_FAILURE
  45185. - ;;
  45186. - esac
  45187. +# func_to_host_path arg
  45188. +#
  45189. +# Convert paths to host format when used with build tools.
  45190. +# Intended for use with "native" mingw (where libtool itself
  45191. +# is running under the msys shell), or in the following cross-
  45192. +# build environments:
  45193. +# $build $host
  45194. +# mingw (msys) mingw [e.g. native]
  45195. +# cygwin mingw
  45196. +# *nix + wine mingw
  45197. +# where wine is equipped with the `winepath' executable.
  45198. +# In the native mingw case, the (msys) shell automatically
  45199. +# converts paths for any non-msys applications it launches,
  45200. +# but that facility isn't available from inside the cwrapper.
  45201. +# Similar accommodations are necessary for $host mingw and
  45202. +# $build cygwin. Calling this function does no harm for other
  45203. +# $host/$build combinations not listed above.
  45204. +#
  45205. +# ARG is the path (on $build) that should be converted to
  45206. +# the proper representation for $host. The result is stored
  45207. +# in $func_to_host_path_result.
  45208. +func_to_host_path ()
  45209. +{
  45210. + func_to_host_path_result="$1"
  45211. + if test -n "$1" ; then
  45212. + case $host in
  45213. + *mingw* )
  45214. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  45215. + case $build in
  45216. + *mingw* ) # actually, msys
  45217. + # awkward: cmd appends spaces to result
  45218. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  45219. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  45220. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  45221. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  45222. + $SED -e "$lt_sed_naive_backslashify"`
  45223. + ;;
  45224. + *cygwin* )
  45225. + func_to_host_path_tmp1=`cygpath -w "$1"`
  45226. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  45227. + $SED -e "$lt_sed_naive_backslashify"`
  45228. + ;;
  45229. + * )
  45230. + # Unfortunately, winepath does not exit with a non-zero
  45231. + # error code, so we are forced to check the contents of
  45232. + # stdout. On the other hand, if the command is not
  45233. + # found, the shell will set an exit code of 127 and print
  45234. + # *an error message* to stdout. So we must check for both
  45235. + # error code of zero AND non-empty stdout, which explains
  45236. + # the odd construction:
  45237. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  45238. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  45239. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  45240. + $SED -e "$lt_sed_naive_backslashify"`
  45241. + else
  45242. + # Allow warning below.
  45243. + func_to_host_path_result=""
  45244. + fi
  45245. + ;;
  45246. + esac
  45247. + if test -z "$func_to_host_path_result" ; then
  45248. + func_error "Could not determine host path corresponding to"
  45249. + func_error " '$1'"
  45250. + func_error "Continuing, but uninstalled executables may not work."
  45251. + # Fallback:
  45252. + func_to_host_path_result="$1"
  45253. + fi
  45254. + ;;
  45255. + esac
  45256. + fi
  45257. +}
  45258. +# end: func_to_host_path
  45259. - case $revision in
  45260. - 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]) ;;
  45261. - *)
  45262. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  45263. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45264. - exit $EXIT_FAILURE
  45265. - ;;
  45266. - esac
  45267. +# func_to_host_pathlist arg
  45268. +#
  45269. +# Convert pathlists to host format when used with build tools.
  45270. +# See func_to_host_path(), above. This function supports the
  45271. +# following $build/$host combinations (but does no harm for
  45272. +# combinations not listed here):
  45273. +# $build $host
  45274. +# mingw (msys) mingw [e.g. native]
  45275. +# cygwin mingw
  45276. +# *nix + wine mingw
  45277. +#
  45278. +# Path separators are also converted from $build format to
  45279. +# $host format. If ARG begins or ends with a path separator
  45280. +# character, it is preserved (but converted to $host format)
  45281. +# on output.
  45282. +#
  45283. +# ARG is a pathlist (on $build) that should be converted to
  45284. +# the proper representation on $host. The result is stored
  45285. +# in $func_to_host_pathlist_result.
  45286. +func_to_host_pathlist ()
  45287. +{
  45288. + func_to_host_pathlist_result="$1"
  45289. + if test -n "$1" ; then
  45290. + case $host in
  45291. + *mingw* )
  45292. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  45293. + # Remove leading and trailing path separator characters from
  45294. + # ARG. msys behavior is inconsistent here, cygpath turns them
  45295. + # into '.;' and ';.', and winepath ignores them completely.
  45296. + func_to_host_pathlist_tmp2="$1"
  45297. + # Once set for this call, this variable should not be
  45298. + # reassigned. It is used in tha fallback case.
  45299. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  45300. + $SED -e 's|^:*||' -e 's|:*$||'`
  45301. + case $build in
  45302. + *mingw* ) # Actually, msys.
  45303. + # Awkward: cmd appends spaces to result.
  45304. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  45305. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  45306. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  45307. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  45308. + $SED -e "$lt_sed_naive_backslashify"`
  45309. + ;;
  45310. + *cygwin* )
  45311. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  45312. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  45313. + $SED -e "$lt_sed_naive_backslashify"`
  45314. + ;;
  45315. + * )
  45316. + # unfortunately, winepath doesn't convert pathlists
  45317. + func_to_host_pathlist_result=""
  45318. + func_to_host_pathlist_oldIFS=$IFS
  45319. + IFS=:
  45320. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  45321. + IFS=$func_to_host_pathlist_oldIFS
  45322. + if test -n "$func_to_host_pathlist_f" ; then
  45323. + func_to_host_path "$func_to_host_pathlist_f"
  45324. + if test -n "$func_to_host_path_result" ; then
  45325. + if test -z "$func_to_host_pathlist_result" ; then
  45326. + func_to_host_pathlist_result="$func_to_host_path_result"
  45327. + else
  45328. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  45329. + fi
  45330. + fi
  45331. + fi
  45332. + IFS=:
  45333. + done
  45334. + IFS=$func_to_host_pathlist_oldIFS
  45335. + ;;
  45336. + esac
  45337. + if test -z "$func_to_host_pathlist_result" ; then
  45338. + func_error "Could not determine the host path(s) corresponding to"
  45339. + func_error " '$1'"
  45340. + func_error "Continuing, but uninstalled executables may not work."
  45341. + # Fallback. This may break if $1 contains DOS-style drive
  45342. + # specifications. The fix is not to complicate the expression
  45343. + # below, but for the user to provide a working wine installation
  45344. + # with winepath so that path translation in the cross-to-mingw
  45345. + # case works properly.
  45346. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  45347. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  45348. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  45349. + fi
  45350. + # Now, add the leading and trailing path separators back
  45351. + case "$1" in
  45352. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  45353. + ;;
  45354. + esac
  45355. + case "$1" in
  45356. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  45357. + ;;
  45358. + esac
  45359. + ;;
  45360. + esac
  45361. + fi
  45362. +}
  45363. +# end: func_to_host_pathlist
  45364. - case $age in
  45365. - 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]) ;;
  45366. - *)
  45367. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  45368. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45369. - exit $EXIT_FAILURE
  45370. - ;;
  45371. - esac
  45372. +# func_emit_cwrapperexe_src
  45373. +# emit the source code for a wrapper executable on stdout
  45374. +# Must ONLY be called from within func_mode_link because
  45375. +# it depends on a number of variable set therein.
  45376. +func_emit_cwrapperexe_src ()
  45377. +{
  45378. + cat <<EOF
  45379. - if test "$age" -gt "$current"; then
  45380. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  45381. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  45382. - exit $EXIT_FAILURE
  45383. - fi
  45384. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  45385. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  45386. - # Calculate the version variables.
  45387. - major=
  45388. - versuffix=
  45389. - verstring=
  45390. - case $version_type in
  45391. - none) ;;
  45392. + The $output program cannot be directly executed until all the libtool
  45393. + libraries that it depends on are installed.
  45394. - darwin)
  45395. - # Like Linux, but with the current version available in
  45396. - # verstring for coding it into the library header
  45397. - major=.`expr $current - $age`
  45398. - versuffix="$major.$age.$revision"
  45399. - # Darwin ld doesn't like 0 for these options...
  45400. - minor_current=`expr $current + 1`
  45401. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  45402. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  45403. - ;;
  45404. + This wrapper executable should never be moved out of the build directory.
  45405. + If it is, it will not operate correctly.
  45406. - freebsd-aout)
  45407. - major=".$current"
  45408. - versuffix=".$current.$revision";
  45409. - ;;
  45410. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  45411. + but could eventually absorb all of the scripts functionality and
  45412. + exec $objdir/$outputname directly.
  45413. +*/
  45414. +EOF
  45415. + cat <<"EOF"
  45416. +#include <stdio.h>
  45417. +#include <stdlib.h>
  45418. +#ifdef _MSC_VER
  45419. +# include <direct.h>
  45420. +# include <process.h>
  45421. +# include <io.h>
  45422. +# define setmode _setmode
  45423. +#else
  45424. +# include <unistd.h>
  45425. +# include <stdint.h>
  45426. +# ifdef __CYGWIN__
  45427. +# include <io.h>
  45428. +# define HAVE_SETENV
  45429. +# ifdef __STRICT_ANSI__
  45430. +char *realpath (const char *, char *);
  45431. +int putenv (char *);
  45432. +int setenv (const char *, const char *, int);
  45433. +# endif
  45434. +# endif
  45435. +#endif
  45436. +#include <malloc.h>
  45437. +#include <stdarg.h>
  45438. +#include <assert.h>
  45439. +#include <string.h>
  45440. +#include <ctype.h>
  45441. +#include <errno.h>
  45442. +#include <fcntl.h>
  45443. +#include <sys/stat.h>
  45444. - freebsd-elf)
  45445. - major=".$current"
  45446. - versuffix=".$current";
  45447. - ;;
  45448. +#if defined(PATH_MAX)
  45449. +# define LT_PATHMAX PATH_MAX
  45450. +#elif defined(MAXPATHLEN)
  45451. +# define LT_PATHMAX MAXPATHLEN
  45452. +#else
  45453. +# define LT_PATHMAX 1024
  45454. +#endif
  45455. - irix | nonstopux)
  45456. - if test "X$lt_irix_increment" = "Xno"; then
  45457. - major=`expr $current - $age`
  45458. - else
  45459. - major=`expr $current - $age + 1`
  45460. - fi
  45461. - case $version_type in
  45462. - nonstopux) verstring_prefix=nonstopux ;;
  45463. - *) verstring_prefix=sgi ;;
  45464. - esac
  45465. - verstring="$verstring_prefix$major.$revision"
  45466. +#ifndef S_IXOTH
  45467. +# define S_IXOTH 0
  45468. +#endif
  45469. +#ifndef S_IXGRP
  45470. +# define S_IXGRP 0
  45471. +#endif
  45472. - # Add in all the interfaces that we are compatible with.
  45473. - loop=$revision
  45474. - while test "$loop" -ne 0; do
  45475. - iface=`expr $revision - $loop`
  45476. - loop=`expr $loop - 1`
  45477. - verstring="$verstring_prefix$major.$iface:$verstring"
  45478. - done
  45479. +#ifdef _MSC_VER
  45480. +# define S_IXUSR _S_IEXEC
  45481. +# define stat _stat
  45482. +# ifndef _INTPTR_T_DEFINED
  45483. +# define intptr_t int
  45484. +# endif
  45485. +#endif
  45486. - # Before this point, $major must not contain `.'.
  45487. - major=.$major
  45488. - versuffix="$major.$revision"
  45489. - ;;
  45490. +#ifndef DIR_SEPARATOR
  45491. +# define DIR_SEPARATOR '/'
  45492. +# define PATH_SEPARATOR ':'
  45493. +#endif
  45494. - linux)
  45495. - major=.`expr $current - $age`
  45496. - versuffix="$major.$age.$revision"
  45497. - ;;
  45498. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  45499. + defined (__OS2__)
  45500. +# define HAVE_DOS_BASED_FILE_SYSTEM
  45501. +# define FOPEN_WB "wb"
  45502. +# ifndef DIR_SEPARATOR_2
  45503. +# define DIR_SEPARATOR_2 '\\'
  45504. +# endif
  45505. +# ifndef PATH_SEPARATOR_2
  45506. +# define PATH_SEPARATOR_2 ';'
  45507. +# endif
  45508. +#endif
  45509. - osf)
  45510. - major=.`expr $current - $age`
  45511. - versuffix=".$current.$age.$revision"
  45512. - verstring="$current.$age.$revision"
  45513. +#ifndef DIR_SEPARATOR_2
  45514. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  45515. +#else /* DIR_SEPARATOR_2 */
  45516. +# define IS_DIR_SEPARATOR(ch) \
  45517. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  45518. +#endif /* DIR_SEPARATOR_2 */
  45519. - # Add in all the interfaces that we are compatible with.
  45520. - loop=$age
  45521. - while test "$loop" -ne 0; do
  45522. - iface=`expr $current - $loop`
  45523. - loop=`expr $loop - 1`
  45524. - verstring="$verstring:${iface}.0"
  45525. - done
  45526. +#ifndef PATH_SEPARATOR_2
  45527. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  45528. +#else /* PATH_SEPARATOR_2 */
  45529. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  45530. +#endif /* PATH_SEPARATOR_2 */
  45531. - # Make executables depend on our current version.
  45532. - verstring="$verstring:${current}.0"
  45533. - ;;
  45534. +#ifdef __CYGWIN__
  45535. +# define FOPEN_WB "wb"
  45536. +#endif
  45537. - sunos)
  45538. - major=".$current"
  45539. - versuffix=".$current.$revision"
  45540. - ;;
  45541. +#ifndef FOPEN_WB
  45542. +# define FOPEN_WB "w"
  45543. +#endif
  45544. +#ifndef _O_BINARY
  45545. +# define _O_BINARY 0
  45546. +#endif
  45547. - windows)
  45548. - # Use '-' rather than '.', since we only want one
  45549. - # extension on DOS 8.3 filesystems.
  45550. - major=`expr $current - $age`
  45551. - versuffix="-$major"
  45552. - ;;
  45553. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  45554. +#define XFREE(stale) do { \
  45555. + if (stale) { free ((void *) stale); stale = 0; } \
  45556. +} while (0)
  45557. - *)
  45558. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  45559. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  45560. - exit $EXIT_FAILURE
  45561. - ;;
  45562. - esac
  45563. +#undef LTWRAPPER_DEBUGPRINTF
  45564. +#if defined DEBUGWRAPPER
  45565. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  45566. +static void
  45567. +ltwrapper_debugprintf (const char *fmt, ...)
  45568. +{
  45569. + va_list args;
  45570. + va_start (args, fmt);
  45571. + (void) vfprintf (stderr, fmt, args);
  45572. + va_end (args);
  45573. +}
  45574. +#else
  45575. +# define LTWRAPPER_DEBUGPRINTF(args)
  45576. +#endif
  45577. - # Clear the version info if we defaulted, and they specified a release.
  45578. - if test -z "$vinfo" && test -n "$release"; then
  45579. - major=
  45580. - case $version_type in
  45581. - darwin)
  45582. - # we can't check for "0.0" in archive_cmds due to quoting
  45583. - # problems, so we reset it completely
  45584. - verstring=
  45585. - ;;
  45586. - *)
  45587. - verstring="0.0"
  45588. - ;;
  45589. - esac
  45590. - if test "$need_version" = no; then
  45591. - versuffix=
  45592. - else
  45593. - versuffix=".0.0"
  45594. - fi
  45595. - fi
  45596. +const char *program_name = NULL;
  45597. - # Remove version info from name if versioning should be avoided
  45598. - if test "$avoid_version" = yes && test "$need_version" = no; then
  45599. - major=
  45600. - versuffix=
  45601. - verstring=""
  45602. - fi
  45603. +void *xmalloc (size_t num);
  45604. +char *xstrdup (const char *string);
  45605. +const char *base_name (const char *name);
  45606. +char *find_executable (const char *wrapper);
  45607. +char *chase_symlinks (const char *pathspec);
  45608. +int make_executable (const char *path);
  45609. +int check_executable (const char *path);
  45610. +char *strendzap (char *str, const char *pat);
  45611. +void lt_fatal (const char *message, ...);
  45612. +void lt_setenv (const char *name, const char *value);
  45613. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  45614. +void lt_opt_process_env_set (const char *arg);
  45615. +void lt_opt_process_env_prepend (const char *arg);
  45616. +void lt_opt_process_env_append (const char *arg);
  45617. +int lt_split_name_value (const char *arg, char** name, char** value);
  45618. +void lt_update_exe_path (const char *name, const char *value);
  45619. +void lt_update_lib_path (const char *name, const char *value);
  45620. - # Check to see if the archive will have undefined symbols.
  45621. - if test "$allow_undefined" = yes; then
  45622. - if test "$allow_undefined_flag" = unsupported; then
  45623. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  45624. - build_libtool_libs=no
  45625. - build_old_libs=yes
  45626. - fi
  45627. - else
  45628. - # Don't allow undefined symbols.
  45629. - allow_undefined_flag="$no_undefined_flag"
  45630. - fi
  45631. - fi
  45632. +static const char *script_text_part1 =
  45633. +EOF
  45634. - if test "$mode" != relink; then
  45635. - # Remove our outputs, but don't remove object files since they
  45636. - # may have been created when compiling PIC objects.
  45637. - removelist=
  45638. - tempremovelist=`$echo "$output_objdir/*"`
  45639. - for p in $tempremovelist; do
  45640. - case $p in
  45641. - *.$objext)
  45642. - ;;
  45643. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  45644. - if test "X$precious_files_regex" != "X"; then
  45645. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  45646. - then
  45647. - continue
  45648. - fi
  45649. - fi
  45650. - removelist="$removelist $p"
  45651. - ;;
  45652. - *) ;;
  45653. - esac
  45654. - done
  45655. - if test -n "$removelist"; then
  45656. - $show "${rm}r $removelist"
  45657. - $run ${rm}r $removelist
  45658. - fi
  45659. - fi
  45660. + func_emit_wrapper_part1 yes |
  45661. + $SED -e 's/\([\\"]\)/\\\1/g' \
  45662. + -e 's/^/ "/' -e 's/$/\\n"/'
  45663. + echo ";"
  45664. + cat <<EOF
  45665. - # Now set the variables for building old libraries.
  45666. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  45667. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  45668. +static const char *script_text_part2 =
  45669. +EOF
  45670. + func_emit_wrapper_part2 yes |
  45671. + $SED -e 's/\([\\"]\)/\\\1/g' \
  45672. + -e 's/^/ "/' -e 's/$/\\n"/'
  45673. + echo ";"
  45674. +
  45675. + cat <<EOF
  45676. +const char * MAGIC_EXE = "$magic_exe";
  45677. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  45678. +EOF
  45679. - # Transform .lo files to .o files.
  45680. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  45681. - fi
  45682. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  45683. + func_to_host_pathlist "$temp_rpath"
  45684. + cat <<EOF
  45685. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  45686. +EOF
  45687. + else
  45688. + cat <<"EOF"
  45689. +const char * LIB_PATH_VALUE = "";
  45690. +EOF
  45691. + fi
  45692. - # Eliminate all temporary directories.
  45693. - #for path in $notinst_path; do
  45694. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  45695. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  45696. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  45697. - #done
  45698. + if test -n "$dllsearchpath"; then
  45699. + func_to_host_pathlist "$dllsearchpath:"
  45700. + cat <<EOF
  45701. +const char * EXE_PATH_VARNAME = "PATH";
  45702. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  45703. +EOF
  45704. + else
  45705. + cat <<"EOF"
  45706. +const char * EXE_PATH_VARNAME = "";
  45707. +const char * EXE_PATH_VALUE = "";
  45708. +EOF
  45709. + fi
  45710. - if test -n "$xrpath"; then
  45711. - # If the user specified any rpath flags, then add them.
  45712. - temp_xrpath=
  45713. - for libdir in $xrpath; do
  45714. - temp_xrpath="$temp_xrpath -R$libdir"
  45715. - case "$finalize_rpath " in
  45716. - *" $libdir "*) ;;
  45717. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  45718. - esac
  45719. - done
  45720. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  45721. - dependency_libs="$temp_xrpath $dependency_libs"
  45722. - fi
  45723. - fi
  45724. + if test "$fast_install" = yes; then
  45725. + cat <<EOF
  45726. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  45727. +EOF
  45728. + else
  45729. + cat <<EOF
  45730. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  45731. +EOF
  45732. + fi
  45733. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  45734. - old_dlfiles="$dlfiles"
  45735. - dlfiles=
  45736. - for lib in $old_dlfiles; do
  45737. - case " $dlprefiles $dlfiles " in
  45738. - *" $lib "*) ;;
  45739. - *) dlfiles="$dlfiles $lib" ;;
  45740. - esac
  45741. - done
  45742. - # Make sure dlprefiles contains only unique files
  45743. - old_dlprefiles="$dlprefiles"
  45744. - dlprefiles=
  45745. - for lib in $old_dlprefiles; do
  45746. - case "$dlprefiles " in
  45747. - *" $lib "*) ;;
  45748. - *) dlprefiles="$dlprefiles $lib" ;;
  45749. - esac
  45750. - done
  45751. + cat <<"EOF"
  45752. - if test "$build_libtool_libs" = yes; then
  45753. - if test -n "$rpath"; then
  45754. - case $host in
  45755. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  45756. - # these systems don't actually have a c library (as such)!
  45757. - ;;
  45758. - *-*-rhapsody* | *-*-darwin1.[012])
  45759. - # Rhapsody C library is in the System framework
  45760. - deplibs="$deplibs -framework System"
  45761. - ;;
  45762. - *-*-netbsd*)
  45763. - # Don't link with libc until the a.out ld.so is fixed.
  45764. - ;;
  45765. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45766. - # Do not include libc due to us having libc/libc_r.
  45767. - ;;
  45768. - *-*-sco3.2v5* | *-*-sco5v6*)
  45769. - # Causes problems with __ctype
  45770. - ;;
  45771. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  45772. - # Compiler inserts libc in the correct place for threads to work
  45773. - ;;
  45774. - *)
  45775. - # Add libc to deplibs on all other systems if necessary.
  45776. - if test "$build_libtool_need_lc" = "yes"; then
  45777. - deplibs="$deplibs -lc"
  45778. - fi
  45779. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  45780. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  45781. +
  45782. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  45783. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  45784. +
  45785. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  45786. +
  45787. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  45788. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  45789. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  45790. +
  45791. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  45792. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  45793. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  45794. +
  45795. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  45796. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  45797. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  45798. +
  45799. +int
  45800. +main (int argc, char *argv[])
  45801. +{
  45802. + char **newargz;
  45803. + int newargc;
  45804. + char *tmp_pathspec;
  45805. + char *actual_cwrapper_path;
  45806. + char *actual_cwrapper_name;
  45807. + char *target_name;
  45808. + char *lt_argv_zero;
  45809. + intptr_t rval = 127;
  45810. +
  45811. + int i;
  45812. +
  45813. + program_name = (char *) xstrdup (base_name (argv[0]));
  45814. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  45815. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  45816. +
  45817. + /* very simple arg parsing; don't want to rely on getopt */
  45818. + for (i = 1; i < argc; i++)
  45819. + {
  45820. + if (strcmp (argv[i], dumpscript_opt) == 0)
  45821. + {
  45822. +EOF
  45823. + case "$host" in
  45824. + *mingw* | *cygwin* )
  45825. + # make stdout use "unix" line endings
  45826. + echo " setmode(1,_O_BINARY);"
  45827. + ;;
  45828. + esac
  45829. +
  45830. + cat <<"EOF"
  45831. + printf ("%s", script_text_part1);
  45832. + printf ("%s", script_text_part2);
  45833. + return 0;
  45834. + }
  45835. + }
  45836. +
  45837. + newargz = XMALLOC (char *, argc + 1);
  45838. + tmp_pathspec = find_executable (argv[0]);
  45839. + if (tmp_pathspec == NULL)
  45840. + lt_fatal ("Couldn't find %s", argv[0]);
  45841. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  45842. + tmp_pathspec));
  45843. +
  45844. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  45845. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  45846. + actual_cwrapper_path));
  45847. + XFREE (tmp_pathspec);
  45848. +
  45849. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  45850. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  45851. +
  45852. + /* wrapper name transforms */
  45853. + strendzap (actual_cwrapper_name, ".exe");
  45854. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  45855. + XFREE (actual_cwrapper_name);
  45856. + actual_cwrapper_name = tmp_pathspec;
  45857. + tmp_pathspec = 0;
  45858. +
  45859. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  45860. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  45861. + strendzap (target_name, ".exe");
  45862. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  45863. + XFREE (target_name);
  45864. + target_name = tmp_pathspec;
  45865. + tmp_pathspec = 0;
  45866. +
  45867. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  45868. + target_name));
  45869. +EOF
  45870. +
  45871. + cat <<EOF
  45872. + newargz[0] =
  45873. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  45874. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  45875. + strcpy (newargz[0], actual_cwrapper_path);
  45876. + strcat (newargz[0], "$objdir");
  45877. + strcat (newargz[0], "/");
  45878. +EOF
  45879. +
  45880. + cat <<"EOF"
  45881. + /* stop here, and copy so we don't have to do this twice */
  45882. + tmp_pathspec = xstrdup (newargz[0]);
  45883. +
  45884. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  45885. + strcat (newargz[0], actual_cwrapper_name);
  45886. +
  45887. + /* DO want the lt- prefix here if it exists, so use target_name */
  45888. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  45889. + XFREE (tmp_pathspec);
  45890. + tmp_pathspec = NULL;
  45891. +EOF
  45892. +
  45893. + case $host_os in
  45894. + mingw*)
  45895. + cat <<"EOF"
  45896. + {
  45897. + char* p;
  45898. + while ((p = strchr (newargz[0], '\\')) != NULL)
  45899. + {
  45900. + *p = '/';
  45901. + }
  45902. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  45903. + {
  45904. + *p = '/';
  45905. + }
  45906. + }
  45907. +EOF
  45908. ;;
  45909. - esac
  45910. - fi
  45911. + esac
  45912. +
  45913. + cat <<"EOF"
  45914. + XFREE (target_name);
  45915. + XFREE (actual_cwrapper_path);
  45916. + XFREE (actual_cwrapper_name);
  45917. +
  45918. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  45919. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  45920. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  45921. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  45922. +
  45923. + newargc=0;
  45924. + for (i = 1; i < argc; i++)
  45925. + {
  45926. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  45927. + {
  45928. + if (argv[i][env_set_opt_len] == '=')
  45929. + {
  45930. + const char *p = argv[i] + env_set_opt_len + 1;
  45931. + lt_opt_process_env_set (p);
  45932. + }
  45933. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  45934. + {
  45935. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  45936. + }
  45937. + else
  45938. + lt_fatal ("%s missing required argument", env_set_opt);
  45939. + continue;
  45940. + }
  45941. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  45942. + {
  45943. + if (argv[i][env_prepend_opt_len] == '=')
  45944. + {
  45945. + const char *p = argv[i] + env_prepend_opt_len + 1;
  45946. + lt_opt_process_env_prepend (p);
  45947. + }
  45948. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  45949. + {
  45950. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  45951. + }
  45952. + else
  45953. + lt_fatal ("%s missing required argument", env_prepend_opt);
  45954. + continue;
  45955. + }
  45956. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  45957. + {
  45958. + if (argv[i][env_append_opt_len] == '=')
  45959. + {
  45960. + const char *p = argv[i] + env_append_opt_len + 1;
  45961. + lt_opt_process_env_append (p);
  45962. + }
  45963. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  45964. + {
  45965. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  45966. + }
  45967. + else
  45968. + lt_fatal ("%s missing required argument", env_append_opt);
  45969. + continue;
  45970. + }
  45971. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  45972. + {
  45973. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  45974. + namespace, but it is not one of the ones we know about and
  45975. + have already dealt with, above (inluding dump-script), then
  45976. + report an error. Otherwise, targets might begin to believe
  45977. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  45978. + namespace. The first time any user complains about this, we'll
  45979. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  45980. + or a configure.ac-settable value.
  45981. + */
  45982. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  45983. + ltwrapper_option_prefix, argv[i]);
  45984. + }
  45985. + /* otherwise ... */
  45986. + newargz[++newargc] = xstrdup (argv[i]);
  45987. + }
  45988. + newargz[++newargc] = NULL;
  45989. +
  45990. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  45991. + for (i = 0; i < newargc; i++)
  45992. + {
  45993. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  45994. + }
  45995. - # Transform deplibs into only deplibs that can be linked in shared.
  45996. - name_save=$name
  45997. - libname_save=$libname
  45998. - release_save=$release
  45999. - versuffix_save=$versuffix
  46000. - major_save=$major
  46001. - # I'm not sure if I'm treating the release correctly. I think
  46002. - # release should show up in the -l (ie -lgmp5) so we don't want to
  46003. - # add it in twice. Is that correct?
  46004. - release=""
  46005. - versuffix=""
  46006. - major=""
  46007. - newdeplibs=
  46008. - droppeddeps=no
  46009. - case $deplibs_check_method in
  46010. - pass_all)
  46011. - # Don't check for shared/static. Everything works.
  46012. - # This might be a little naive. We might want to check
  46013. - # whether the library exists or not. But this is on
  46014. - # osf3 & osf4 and I'm not really sure... Just
  46015. - # implementing what was already the behavior.
  46016. - newdeplibs=$deplibs
  46017. - ;;
  46018. - test_compile)
  46019. - # This code stresses the "libraries are programs" paradigm to its
  46020. - # limits. Maybe even breaks it. We compile a program, linking it
  46021. - # against the deplibs as a proxy for the library. Then we can check
  46022. - # whether they linked in statically or dynamically with ldd.
  46023. - $rm conftest.c
  46024. - cat > conftest.c <<EOF
  46025. - int main() { return 0; }
  46026. EOF
  46027. - $rm conftest
  46028. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  46029. - ldd_output=`ldd conftest`
  46030. - for i in $deplibs; do
  46031. - name=`expr $i : '-l\(.*\)'`
  46032. - # If $name is empty we are operating on a -L argument.
  46033. - if test "$name" != "" && test "$name" != "0"; then
  46034. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46035. - case " $predeps $postdeps " in
  46036. - *" $i "*)
  46037. - newdeplibs="$newdeplibs $i"
  46038. - i=""
  46039. - ;;
  46040. - esac
  46041. - fi
  46042. - if test -n "$i" ; then
  46043. - libname=`eval \\$echo \"$libname_spec\"`
  46044. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46045. - set dummy $deplib_matches
  46046. - deplib_match=$2
  46047. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46048. - newdeplibs="$newdeplibs $i"
  46049. - else
  46050. - droppeddeps=yes
  46051. - $echo
  46052. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  46053. - $echo "*** I have the capability to make that library automatically link in when"
  46054. - $echo "*** you link to this library. But I can only do this if you have a"
  46055. - $echo "*** shared version of the library, which I believe you do not have"
  46056. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  46057. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  46058. - fi
  46059. - fi
  46060. - else
  46061. - newdeplibs="$newdeplibs $i"
  46062. - fi
  46063. - done
  46064. - else
  46065. - # Error occurred in the first compile. Let's try to salvage
  46066. - # the situation: Compile a separate program for each library.
  46067. - for i in $deplibs; do
  46068. - name=`expr $i : '-l\(.*\)'`
  46069. - # If $name is empty we are operating on a -L argument.
  46070. - if test "$name" != "" && test "$name" != "0"; then
  46071. - $rm conftest
  46072. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  46073. - ldd_output=`ldd conftest`
  46074. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46075. - case " $predeps $postdeps " in
  46076. - *" $i "*)
  46077. - newdeplibs="$newdeplibs $i"
  46078. - i=""
  46079. - ;;
  46080. - esac
  46081. - fi
  46082. - if test -n "$i" ; then
  46083. - libname=`eval \\$echo \"$libname_spec\"`
  46084. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  46085. - set dummy $deplib_matches
  46086. - deplib_match=$2
  46087. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46088. - newdeplibs="$newdeplibs $i"
  46089. - else
  46090. - droppeddeps=yes
  46091. - $echo
  46092. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  46093. - $echo "*** I have the capability to make that library automatically link in when"
  46094. - $echo "*** you link to this library. But I can only do this if you have a"
  46095. - $echo "*** shared version of the library, which you do not appear to have"
  46096. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  46097. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  46098. - fi
  46099. - fi
  46100. - else
  46101. - droppeddeps=yes
  46102. - $echo
  46103. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  46104. - $echo "*** make it link in! You will probably need to install it or some"
  46105. - $echo "*** library that it depends on before this library will be fully"
  46106. - $echo "*** functional. Installing it before continuing would be even better."
  46107. - fi
  46108. - else
  46109. - newdeplibs="$newdeplibs $i"
  46110. - fi
  46111. - done
  46112. - fi
  46113. - ;;
  46114. - file_magic*)
  46115. - set dummy $deplibs_check_method
  46116. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  46117. - for a_deplib in $deplibs; do
  46118. - name=`expr $a_deplib : '-l\(.*\)'`
  46119. - # If $name is empty we are operating on a -L argument.
  46120. - if test "$name" != "" && test "$name" != "0"; then
  46121. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46122. - case " $predeps $postdeps " in
  46123. - *" $a_deplib "*)
  46124. - newdeplibs="$newdeplibs $a_deplib"
  46125. - a_deplib=""
  46126. - ;;
  46127. - esac
  46128. - fi
  46129. - if test -n "$a_deplib" ; then
  46130. - libname=`eval \\$echo \"$libname_spec\"`
  46131. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46132. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46133. - for potent_lib in $potential_libs; do
  46134. - # Follow soft links.
  46135. - if ls -lLd "$potent_lib" 2>/dev/null \
  46136. - | grep " -> " >/dev/null; then
  46137. - continue
  46138. - fi
  46139. - # The statement above tries to avoid entering an
  46140. - # endless loop below, in case of cyclic links.
  46141. - # We might still enter an endless loop, since a link
  46142. - # loop can be closed while we follow links,
  46143. - # but so what?
  46144. - potlib="$potent_lib"
  46145. - while test -h "$potlib" 2>/dev/null; do
  46146. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  46147. - case $potliblink in
  46148. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  46149. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  46150. - esac
  46151. - done
  46152. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  46153. - | ${SED} 10q \
  46154. - | $EGREP "$file_magic_regex" > /dev/null; then
  46155. - newdeplibs="$newdeplibs $a_deplib"
  46156. - a_deplib=""
  46157. - break 2
  46158. - fi
  46159. - done
  46160. - done
  46161. - fi
  46162. - if test -n "$a_deplib" ; then
  46163. - droppeddeps=yes
  46164. - $echo
  46165. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  46166. - $echo "*** I have the capability to make that library automatically link in when"
  46167. - $echo "*** you link to this library. But I can only do this if you have a"
  46168. - $echo "*** shared version of the library, which you do not appear to have"
  46169. - $echo "*** because I did check the linker path looking for a file starting"
  46170. - if test -z "$potlib" ; then
  46171. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  46172. - else
  46173. - $echo "*** with $libname and none of the candidates passed a file format test"
  46174. - $echo "*** using a file magic. Last file checked: $potlib"
  46175. - fi
  46176. - fi
  46177. - else
  46178. - # Add a -L argument.
  46179. - newdeplibs="$newdeplibs $a_deplib"
  46180. - fi
  46181. - done # Gone through all deplibs.
  46182. - ;;
  46183. - match_pattern*)
  46184. - set dummy $deplibs_check_method
  46185. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  46186. - for a_deplib in $deplibs; do
  46187. - name=`expr $a_deplib : '-l\(.*\)'`
  46188. - # If $name is empty we are operating on a -L argument.
  46189. - if test -n "$name" && test "$name" != "0"; then
  46190. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46191. - case " $predeps $postdeps " in
  46192. - *" $a_deplib "*)
  46193. - newdeplibs="$newdeplibs $a_deplib"
  46194. - a_deplib=""
  46195. - ;;
  46196. - esac
  46197. - fi
  46198. - if test -n "$a_deplib" ; then
  46199. - libname=`eval \\$echo \"$libname_spec\"`
  46200. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46201. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46202. - for potent_lib in $potential_libs; do
  46203. - potlib="$potent_lib" # see symlink-check above in file_magic test
  46204. - if eval $echo \"$potent_lib\" 2>/dev/null \
  46205. - | ${SED} 10q \
  46206. - | $EGREP "$match_pattern_regex" > /dev/null; then
  46207. - newdeplibs="$newdeplibs $a_deplib"
  46208. - a_deplib=""
  46209. - break 2
  46210. - fi
  46211. - done
  46212. - done
  46213. - fi
  46214. - if test -n "$a_deplib" ; then
  46215. - droppeddeps=yes
  46216. - $echo
  46217. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  46218. - $echo "*** I have the capability to make that library automatically link in when"
  46219. - $echo "*** you link to this library. But I can only do this if you have a"
  46220. - $echo "*** shared version of the library, which you do not appear to have"
  46221. - $echo "*** because I did check the linker path looking for a file starting"
  46222. - if test -z "$potlib" ; then
  46223. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  46224. - else
  46225. - $echo "*** with $libname and none of the candidates passed a file format test"
  46226. - $echo "*** using a regex pattern. Last file checked: $potlib"
  46227. - fi
  46228. - fi
  46229. - else
  46230. - # Add a -L argument.
  46231. - newdeplibs="$newdeplibs $a_deplib"
  46232. - fi
  46233. - done # Gone through all deplibs.
  46234. - ;;
  46235. - none | unknown | *)
  46236. - newdeplibs=""
  46237. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  46238. - -e 's/ -[LR][^ ]*//g'`
  46239. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46240. - for i in $predeps $postdeps ; do
  46241. - # can't use Xsed below, because $i might contain '/'
  46242. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  46243. - done
  46244. - fi
  46245. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  46246. - | grep . >/dev/null; then
  46247. - $echo
  46248. - if test "X$deplibs_check_method" = "Xnone"; then
  46249. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  46250. - else
  46251. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  46252. - fi
  46253. - $echo "*** All declared inter-library dependencies are being dropped."
  46254. - droppeddeps=yes
  46255. - fi
  46256. - ;;
  46257. - esac
  46258. - versuffix=$versuffix_save
  46259. - major=$major_save
  46260. - release=$release_save
  46261. - libname=$libname_save
  46262. - name=$name_save
  46263. - case $host in
  46264. - *-*-rhapsody* | *-*-darwin1.[012])
  46265. - # On Rhapsody replace the C library is the System framework
  46266. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  46267. - ;;
  46268. - esac
  46269. + case $host_os in
  46270. + mingw*)
  46271. + cat <<"EOF"
  46272. + /* execv doesn't actually work on mingw as expected on unix */
  46273. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  46274. + if (rval == -1)
  46275. + {
  46276. + /* failed to start process */
  46277. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  46278. + return 127;
  46279. + }
  46280. + return rval;
  46281. +EOF
  46282. + ;;
  46283. + *)
  46284. + cat <<"EOF"
  46285. + execv (lt_argv_zero, newargz);
  46286. + return rval; /* =127, but avoids unused variable warning */
  46287. +EOF
  46288. + ;;
  46289. + esac
  46290. - if test "$droppeddeps" = yes; then
  46291. - if test "$module" = yes; then
  46292. - $echo
  46293. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  46294. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  46295. - $echo "*** a static module, that should work as long as the dlopening"
  46296. - $echo "*** application is linked with the -dlopen flag."
  46297. - if test -z "$global_symbol_pipe"; then
  46298. - $echo
  46299. - $echo "*** However, this would only work if libtool was able to extract symbol"
  46300. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46301. - $echo "*** not find such a program. So, this module is probably useless."
  46302. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  46303. - fi
  46304. - if test "$build_old_libs" = no; then
  46305. - oldlibs="$output_objdir/$libname.$libext"
  46306. - build_libtool_libs=module
  46307. - build_old_libs=yes
  46308. - else
  46309. - build_libtool_libs=no
  46310. - fi
  46311. - else
  46312. - $echo "*** The inter-library dependencies that have been dropped here will be"
  46313. - $echo "*** automatically added whenever a program is linked with this library"
  46314. - $echo "*** or is declared to -dlopen it."
  46315. + cat <<"EOF"
  46316. +}
  46317. - if test "$allow_undefined" = no; then
  46318. - $echo
  46319. - $echo "*** Since this library must not contain undefined symbols,"
  46320. - $echo "*** because either the platform does not support them or"
  46321. - $echo "*** it was explicitly requested with -no-undefined,"
  46322. - $echo "*** libtool will only create a static version of it."
  46323. - if test "$build_old_libs" = no; then
  46324. - oldlibs="$output_objdir/$libname.$libext"
  46325. - build_libtool_libs=module
  46326. - build_old_libs=yes
  46327. - else
  46328. - build_libtool_libs=no
  46329. - fi
  46330. - fi
  46331. - fi
  46332. - fi
  46333. - # Done checking deplibs!
  46334. - deplibs=$newdeplibs
  46335. - fi
  46336. +void *
  46337. +xmalloc (size_t num)
  46338. +{
  46339. + void *p = (void *) malloc (num);
  46340. + if (!p)
  46341. + lt_fatal ("Memory exhausted");
  46342. + return p;
  46343. +}
  46344. - # move library search paths that coincide with paths to not yet
  46345. - # installed libraries to the beginning of the library search list
  46346. - new_libs=
  46347. - for path in $notinst_path; do
  46348. - case " $new_libs " in
  46349. - *" -L$path/$objdir "*) ;;
  46350. - *)
  46351. - case " $deplibs " in
  46352. - *" -L$path/$objdir "*)
  46353. - new_libs="$new_libs -L$path/$objdir" ;;
  46354. - esac
  46355. - ;;
  46356. - esac
  46357. - done
  46358. - for deplib in $deplibs; do
  46359. - case $deplib in
  46360. - -L*)
  46361. - case " $new_libs " in
  46362. - *" $deplib "*) ;;
  46363. - *) new_libs="$new_libs $deplib" ;;
  46364. - esac
  46365. - ;;
  46366. - *) new_libs="$new_libs $deplib" ;;
  46367. - esac
  46368. - done
  46369. - deplibs="$new_libs"
  46370. +char *
  46371. +xstrdup (const char *string)
  46372. +{
  46373. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  46374. + string) : NULL;
  46375. +}
  46376. +const char *
  46377. +base_name (const char *name)
  46378. +{
  46379. + const char *base;
  46380. - # All the library-specific variables (install_libdir is set above).
  46381. - library_names=
  46382. - old_library=
  46383. - dlname=
  46384. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  46385. + /* Skip over the disk name in MSDOS pathnames. */
  46386. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  46387. + name += 2;
  46388. +#endif
  46389. - # Test again, we may have decided not to build it any more
  46390. - if test "$build_libtool_libs" = yes; then
  46391. - if test "$hardcode_into_libs" = yes; then
  46392. - # Hardcode the library paths
  46393. - hardcode_libdirs=
  46394. - dep_rpath=
  46395. - rpath="$finalize_rpath"
  46396. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  46397. - for libdir in $rpath; do
  46398. - if test -n "$hardcode_libdir_flag_spec"; then
  46399. - if test -n "$hardcode_libdir_separator"; then
  46400. - if test -z "$hardcode_libdirs"; then
  46401. - hardcode_libdirs="$libdir"
  46402. - else
  46403. - # Just accumulate the unique libdirs.
  46404. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  46405. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  46406. - ;;
  46407. - *)
  46408. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  46409. - ;;
  46410. - esac
  46411. - fi
  46412. - else
  46413. - eval flag=\"$hardcode_libdir_flag_spec\"
  46414. - dep_rpath="$dep_rpath $flag"
  46415. - fi
  46416. - elif test -n "$runpath_var"; then
  46417. - case "$perm_rpath " in
  46418. - *" $libdir "*) ;;
  46419. - *) perm_rpath="$perm_rpath $libdir" ;;
  46420. - esac
  46421. - fi
  46422. - done
  46423. - # Substitute the hardcoded libdirs into the rpath.
  46424. - if test -n "$hardcode_libdir_separator" &&
  46425. - test -n "$hardcode_libdirs"; then
  46426. - libdir="$hardcode_libdirs"
  46427. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  46428. - case $archive_cmds in
  46429. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  46430. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  46431. - esac
  46432. - else
  46433. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  46434. - fi
  46435. - fi
  46436. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  46437. - # We should set the runpath_var.
  46438. - rpath=
  46439. - for dir in $perm_rpath; do
  46440. - rpath="$rpath$dir:"
  46441. - done
  46442. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  46443. - fi
  46444. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  46445. - fi
  46446. + for (base = name; *name; name++)
  46447. + if (IS_DIR_SEPARATOR (*name))
  46448. + base = name + 1;
  46449. + return base;
  46450. +}
  46451. - shlibpath="$finalize_shlibpath"
  46452. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  46453. - if test -n "$shlibpath"; then
  46454. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  46455. - fi
  46456. +int
  46457. +check_executable (const char *path)
  46458. +{
  46459. + struct stat st;
  46460. - # Get the real and link names of the library.
  46461. - eval shared_ext=\"$shrext_cmds\"
  46462. - eval library_names=\"$library_names_spec\"
  46463. - set dummy $library_names
  46464. - realname="$2"
  46465. - shift; shift
  46466. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  46467. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  46468. + if ((!path) || (!*path))
  46469. + return 0;
  46470. - if test -n "$soname_spec"; then
  46471. - eval soname=\"$soname_spec\"
  46472. - else
  46473. - soname="$realname"
  46474. - fi
  46475. - if test -z "$dlname"; then
  46476. - dlname=$soname
  46477. - fi
  46478. + if ((stat (path, &st) >= 0)
  46479. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  46480. + return 1;
  46481. + else
  46482. + return 0;
  46483. +}
  46484. - lib="$output_objdir/$realname"
  46485. - linknames=
  46486. - for link
  46487. - do
  46488. - linknames="$linknames $link"
  46489. - done
  46490. -
  46491. - # Use standard objects if they are pic
  46492. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  46493. +int
  46494. +make_executable (const char *path)
  46495. +{
  46496. + int rval = 0;
  46497. + struct stat st;
  46498. - # Prepare the list of exported symbols
  46499. - if test -z "$export_symbols"; then
  46500. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  46501. - $show "generating symbol list for \`$libname.la'"
  46502. - export_symbols="$output_objdir/$libname.exp"
  46503. - $run $rm $export_symbols
  46504. - cmds=$export_symbols_cmds
  46505. - save_ifs="$IFS"; IFS='~'
  46506. - for cmd in $cmds; do
  46507. - IFS="$save_ifs"
  46508. - eval cmd=\"$cmd\"
  46509. - if len=`expr "X$cmd" : ".*"` &&
  46510. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  46511. - $show "$cmd"
  46512. - $run eval "$cmd" || exit $?
  46513. - skipped_export=false
  46514. - else
  46515. - # The command line is too long to execute in one step.
  46516. - $show "using reloadable object file for export list..."
  46517. - skipped_export=:
  46518. - # Break out early, otherwise skipped_export may be
  46519. - # set to false by a later but shorter cmd.
  46520. - break
  46521. - fi
  46522. - done
  46523. - IFS="$save_ifs"
  46524. - if test -n "$export_symbols_regex"; then
  46525. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  46526. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  46527. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  46528. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  46529. - fi
  46530. - fi
  46531. - fi
  46532. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  46533. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  46534. + if ((!path) || (!*path))
  46535. + return 0;
  46536. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  46537. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  46538. - fi
  46539. + if (stat (path, &st) >= 0)
  46540. + {
  46541. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  46542. + }
  46543. + return rval;
  46544. +}
  46545. - tmp_deplibs=
  46546. - for test_deplib in $deplibs; do
  46547. - case " $convenience " in
  46548. - *" $test_deplib "*) ;;
  46549. - *)
  46550. - tmp_deplibs="$tmp_deplibs $test_deplib"
  46551. - ;;
  46552. - esac
  46553. - done
  46554. - deplibs="$tmp_deplibs"
  46555. +/* Searches for the full path of the wrapper. Returns
  46556. + newly allocated full path name if found, NULL otherwise
  46557. + Does not chase symlinks, even on platforms that support them.
  46558. +*/
  46559. +char *
  46560. +find_executable (const char *wrapper)
  46561. +{
  46562. + int has_slash = 0;
  46563. + const char *p;
  46564. + const char *p_next;
  46565. + /* static buffer for getcwd */
  46566. + char tmp[LT_PATHMAX + 1];
  46567. + int tmp_len;
  46568. + char *concat_name;
  46569. - if test -n "$convenience"; then
  46570. - if test -n "$whole_archive_flag_spec"; then
  46571. - save_libobjs=$libobjs
  46572. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  46573. - else
  46574. - gentop="$output_objdir/${outputname}x"
  46575. - generated="$generated $gentop"
  46576. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  46577. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  46578. - func_extract_archives $gentop $convenience
  46579. - libobjs="$libobjs $func_extract_archives_result"
  46580. - fi
  46581. - fi
  46582. -
  46583. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  46584. - eval flag=\"$thread_safe_flag_spec\"
  46585. - linker_flags="$linker_flags $flag"
  46586. - fi
  46587. + if ((wrapper == NULL) || (*wrapper == '\0'))
  46588. + return NULL;
  46589. - # Make a backup of the uninstalled library when relinking
  46590. - if test "$mode" = relink; then
  46591. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  46592. - fi
  46593. + /* Absolute path? */
  46594. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  46595. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  46596. + {
  46597. + concat_name = xstrdup (wrapper);
  46598. + if (check_executable (concat_name))
  46599. + return concat_name;
  46600. + XFREE (concat_name);
  46601. + }
  46602. + else
  46603. + {
  46604. +#endif
  46605. + if (IS_DIR_SEPARATOR (wrapper[0]))
  46606. + {
  46607. + concat_name = xstrdup (wrapper);
  46608. + if (check_executable (concat_name))
  46609. + return concat_name;
  46610. + XFREE (concat_name);
  46611. + }
  46612. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  46613. + }
  46614. +#endif
  46615. - # Do each of the archive commands.
  46616. - if test "$module" = yes && test -n "$module_cmds" ; then
  46617. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  46618. - eval test_cmds=\"$module_expsym_cmds\"
  46619. - cmds=$module_expsym_cmds
  46620. - else
  46621. - eval test_cmds=\"$module_cmds\"
  46622. - cmds=$module_cmds
  46623. - fi
  46624. - else
  46625. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  46626. - eval test_cmds=\"$archive_expsym_cmds\"
  46627. - cmds=$archive_expsym_cmds
  46628. - else
  46629. - eval test_cmds=\"$archive_cmds\"
  46630. - cmds=$archive_cmds
  46631. - fi
  46632. - fi
  46633. + for (p = wrapper; *p; p++)
  46634. + if (*p == '/')
  46635. + {
  46636. + has_slash = 1;
  46637. + break;
  46638. + }
  46639. + if (!has_slash)
  46640. + {
  46641. + /* no slashes; search PATH */
  46642. + const char *path = getenv ("PATH");
  46643. + if (path != NULL)
  46644. + {
  46645. + for (p = path; *p; p = p_next)
  46646. + {
  46647. + const char *q;
  46648. + size_t p_len;
  46649. + for (q = p; *q; q++)
  46650. + if (IS_PATH_SEPARATOR (*q))
  46651. + break;
  46652. + p_len = q - p;
  46653. + p_next = (*q == '\0' ? q : q + 1);
  46654. + if (p_len == 0)
  46655. + {
  46656. + /* empty path: current directory */
  46657. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  46658. + lt_fatal ("getcwd failed");
  46659. + tmp_len = strlen (tmp);
  46660. + concat_name =
  46661. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  46662. + memcpy (concat_name, tmp, tmp_len);
  46663. + concat_name[tmp_len] = '/';
  46664. + strcpy (concat_name + tmp_len + 1, wrapper);
  46665. + }
  46666. + else
  46667. + {
  46668. + concat_name =
  46669. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  46670. + memcpy (concat_name, p, p_len);
  46671. + concat_name[p_len] = '/';
  46672. + strcpy (concat_name + p_len + 1, wrapper);
  46673. + }
  46674. + if (check_executable (concat_name))
  46675. + return concat_name;
  46676. + XFREE (concat_name);
  46677. + }
  46678. + }
  46679. + /* not found in PATH; assume curdir */
  46680. + }
  46681. + /* Relative path | not found in path: prepend cwd */
  46682. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  46683. + lt_fatal ("getcwd failed");
  46684. + tmp_len = strlen (tmp);
  46685. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  46686. + memcpy (concat_name, tmp, tmp_len);
  46687. + concat_name[tmp_len] = '/';
  46688. + strcpy (concat_name + tmp_len + 1, wrapper);
  46689. - if test "X$skipped_export" != "X:" &&
  46690. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  46691. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  46692. - :
  46693. - else
  46694. - # The command line is too long to link in one step, link piecewise.
  46695. - $echo "creating reloadable object files..."
  46696. + if (check_executable (concat_name))
  46697. + return concat_name;
  46698. + XFREE (concat_name);
  46699. + return NULL;
  46700. +}
  46701. - # Save the value of $output and $libobjs because we want to
  46702. - # use them later. If we have whole_archive_flag_spec, we
  46703. - # want to use save_libobjs as it was before
  46704. - # whole_archive_flag_spec was expanded, because we can't
  46705. - # assume the linker understands whole_archive_flag_spec.
  46706. - # This may have to be revisited, in case too many
  46707. - # convenience libraries get linked in and end up exceeding
  46708. - # the spec.
  46709. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  46710. - save_libobjs=$libobjs
  46711. - fi
  46712. - save_output=$output
  46713. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  46714. +char *
  46715. +chase_symlinks (const char *pathspec)
  46716. +{
  46717. +#ifndef S_ISLNK
  46718. + return xstrdup (pathspec);
  46719. +#else
  46720. + char buf[LT_PATHMAX];
  46721. + struct stat s;
  46722. + char *tmp_pathspec = xstrdup (pathspec);
  46723. + char *p;
  46724. + int has_symlinks = 0;
  46725. + while (strlen (tmp_pathspec) && !has_symlinks)
  46726. + {
  46727. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  46728. + tmp_pathspec));
  46729. + if (lstat (tmp_pathspec, &s) == 0)
  46730. + {
  46731. + if (S_ISLNK (s.st_mode) != 0)
  46732. + {
  46733. + has_symlinks = 1;
  46734. + break;
  46735. + }
  46736. - # Clear the reloadable object creation command queue and
  46737. - # initialize k to one.
  46738. - test_cmds=
  46739. - concat_cmds=
  46740. - objlist=
  46741. - delfiles=
  46742. - last_robj=
  46743. - k=1
  46744. - output=$output_objdir/$output_la-${k}.$objext
  46745. - # Loop over the list of objects to be linked.
  46746. - for obj in $save_libobjs
  46747. - do
  46748. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  46749. - if test "X$objlist" = X ||
  46750. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  46751. - test "$len" -le "$max_cmd_len"; }; then
  46752. - objlist="$objlist $obj"
  46753. - else
  46754. - # The command $test_cmds is almost too long, add a
  46755. - # command to the queue.
  46756. - if test "$k" -eq 1 ; then
  46757. - # The first file doesn't have a previous command to add.
  46758. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  46759. - else
  46760. - # All subsequent reloadable object files will link in
  46761. - # the last one created.
  46762. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  46763. - fi
  46764. - last_robj=$output_objdir/$output_la-${k}.$objext
  46765. - k=`expr $k + 1`
  46766. - output=$output_objdir/$output_la-${k}.$objext
  46767. - objlist=$obj
  46768. - len=1
  46769. - fi
  46770. - done
  46771. - # Handle the remaining objects by creating one last
  46772. - # reloadable object file. All subsequent reloadable object
  46773. - # files will link in the last one created.
  46774. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  46775. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  46776. + /* search backwards for last DIR_SEPARATOR */
  46777. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  46778. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  46779. + p--;
  46780. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  46781. + {
  46782. + /* no more DIR_SEPARATORS left */
  46783. + break;
  46784. + }
  46785. + *p = '\0';
  46786. + }
  46787. + else
  46788. + {
  46789. + char *errstr = strerror (errno);
  46790. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  46791. + }
  46792. + }
  46793. + XFREE (tmp_pathspec);
  46794. - if ${skipped_export-false}; then
  46795. - $show "generating symbol list for \`$libname.la'"
  46796. - export_symbols="$output_objdir/$libname.exp"
  46797. - $run $rm $export_symbols
  46798. - libobjs=$output
  46799. - # Append the command to create the export file.
  46800. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  46801. - fi
  46802. -
  46803. - # Set up a command to remove the reloadable object files
  46804. - # after they are used.
  46805. - i=0
  46806. - while test "$i" -lt "$k"
  46807. - do
  46808. - i=`expr $i + 1`
  46809. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  46810. - done
  46811. + if (!has_symlinks)
  46812. + {
  46813. + return xstrdup (pathspec);
  46814. + }
  46815. - $echo "creating a temporary reloadable object file: $output"
  46816. + tmp_pathspec = realpath (pathspec, buf);
  46817. + if (tmp_pathspec == 0)
  46818. + {
  46819. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  46820. + }
  46821. + return xstrdup (tmp_pathspec);
  46822. +#endif
  46823. +}
  46824. - # Loop through the commands generated above and execute them.
  46825. - save_ifs="$IFS"; IFS='~'
  46826. - for cmd in $concat_cmds; do
  46827. - IFS="$save_ifs"
  46828. - $show "$cmd"
  46829. - $run eval "$cmd" || exit $?
  46830. - done
  46831. - IFS="$save_ifs"
  46832. +char *
  46833. +strendzap (char *str, const char *pat)
  46834. +{
  46835. + size_t len, patlen;
  46836. - libobjs=$output
  46837. - # Restore the value of output.
  46838. - output=$save_output
  46839. + assert (str != NULL);
  46840. + assert (pat != NULL);
  46841. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  46842. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  46843. - fi
  46844. - # Expand the library linking commands again to reset the
  46845. - # value of $libobjs for piecewise linking.
  46846. + len = strlen (str);
  46847. + patlen = strlen (pat);
  46848. - # Do each of the archive commands.
  46849. - if test "$module" = yes && test -n "$module_cmds" ; then
  46850. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  46851. - cmds=$module_expsym_cmds
  46852. - else
  46853. - cmds=$module_cmds
  46854. - fi
  46855. - else
  46856. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  46857. - cmds=$archive_expsym_cmds
  46858. - else
  46859. - cmds=$archive_cmds
  46860. - fi
  46861. - fi
  46862. + if (patlen <= len)
  46863. + {
  46864. + str += len - patlen;
  46865. + if (strcmp (str, pat) == 0)
  46866. + *str = '\0';
  46867. + }
  46868. + return str;
  46869. +}
  46870. - # Append the command to remove the reloadable object files
  46871. - # to the just-reset $cmds.
  46872. - eval cmds=\"\$cmds~\$rm $delfiles\"
  46873. - fi
  46874. - save_ifs="$IFS"; IFS='~'
  46875. - for cmd in $cmds; do
  46876. - IFS="$save_ifs"
  46877. - eval cmd=\"$cmd\"
  46878. - $show "$cmd"
  46879. - $run eval "$cmd" || {
  46880. - lt_exit=$?
  46881. +static void
  46882. +lt_error_core (int exit_status, const char *mode,
  46883. + const char *message, va_list ap)
  46884. +{
  46885. + fprintf (stderr, "%s: %s: ", program_name, mode);
  46886. + vfprintf (stderr, message, ap);
  46887. + fprintf (stderr, ".\n");
  46888. - # Restore the uninstalled library and exit
  46889. - if test "$mode" = relink; then
  46890. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  46891. - fi
  46892. + if (exit_status >= 0)
  46893. + exit (exit_status);
  46894. +}
  46895. - exit $lt_exit
  46896. - }
  46897. - done
  46898. - IFS="$save_ifs"
  46899. +void
  46900. +lt_fatal (const char *message, ...)
  46901. +{
  46902. + va_list ap;
  46903. + va_start (ap, message);
  46904. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  46905. + va_end (ap);
  46906. +}
  46907. - # Restore the uninstalled library and exit
  46908. - if test "$mode" = relink; then
  46909. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  46910. +void
  46911. +lt_setenv (const char *name, const char *value)
  46912. +{
  46913. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  46914. + (name ? name : "<NULL>"),
  46915. + (value ? value : "<NULL>")));
  46916. + {
  46917. +#ifdef HAVE_SETENV
  46918. + /* always make a copy, for consistency with !HAVE_SETENV */
  46919. + char *str = xstrdup (value);
  46920. + setenv (name, str, 1);
  46921. +#else
  46922. + int len = strlen (name) + 1 + strlen (value) + 1;
  46923. + char *str = XMALLOC (char, len);
  46924. + sprintf (str, "%s=%s", name, value);
  46925. + if (putenv (str) != EXIT_SUCCESS)
  46926. + {
  46927. + XFREE (str);
  46928. + }
  46929. +#endif
  46930. + }
  46931. +}
  46932. - if test -n "$convenience"; then
  46933. - if test -z "$whole_archive_flag_spec"; then
  46934. - $show "${rm}r $gentop"
  46935. - $run ${rm}r "$gentop"
  46936. - fi
  46937. - fi
  46938. +char *
  46939. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  46940. +{
  46941. + char *new_value;
  46942. + if (orig_value && *orig_value)
  46943. + {
  46944. + int orig_value_len = strlen (orig_value);
  46945. + int add_len = strlen (add);
  46946. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  46947. + if (to_end)
  46948. + {
  46949. + strcpy (new_value, orig_value);
  46950. + strcpy (new_value + orig_value_len, add);
  46951. + }
  46952. + else
  46953. + {
  46954. + strcpy (new_value, add);
  46955. + strcpy (new_value + add_len, orig_value);
  46956. + }
  46957. + }
  46958. + else
  46959. + {
  46960. + new_value = xstrdup (add);
  46961. + }
  46962. + return new_value;
  46963. +}
  46964. - exit $EXIT_SUCCESS
  46965. - fi
  46966. +int
  46967. +lt_split_name_value (const char *arg, char** name, char** value)
  46968. +{
  46969. + const char *p;
  46970. + int len;
  46971. + if (!arg || !*arg)
  46972. + return 1;
  46973. - # Create links to the real library.
  46974. - for linkname in $linknames; do
  46975. - if test "$realname" != "$linkname"; then
  46976. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  46977. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  46978. - fi
  46979. - done
  46980. + p = strchr (arg, (int)'=');
  46981. - # If -module or -export-dynamic was specified, set the dlname.
  46982. - if test "$module" = yes || test "$export_dynamic" = yes; then
  46983. - # On all known operating systems, these are identical.
  46984. - dlname="$soname"
  46985. - fi
  46986. - fi
  46987. - ;;
  46988. + if (!p)
  46989. + return 1;
  46990. - obj)
  46991. - case " $deplibs" in
  46992. - *\ -l* | *\ -L*)
  46993. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  46994. - esac
  46995. + *value = xstrdup (++p);
  46996. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  46997. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  46998. - fi
  46999. + len = strlen (arg) - strlen (*value);
  47000. + *name = XMALLOC (char, len);
  47001. + strncpy (*name, arg, len-1);
  47002. + (*name)[len - 1] = '\0';
  47003. - if test -n "$rpath"; then
  47004. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  47005. - fi
  47006. + return 0;
  47007. +}
  47008. - if test -n "$xrpath"; then
  47009. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  47010. - fi
  47011. +void
  47012. +lt_opt_process_env_set (const char *arg)
  47013. +{
  47014. + char *name = NULL;
  47015. + char *value = NULL;
  47016. - if test -n "$vinfo"; then
  47017. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  47018. - fi
  47019. + if (lt_split_name_value (arg, &name, &value) != 0)
  47020. + {
  47021. + XFREE (name);
  47022. + XFREE (value);
  47023. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  47024. + }
  47025. - if test -n "$release"; then
  47026. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  47027. - fi
  47028. + lt_setenv (name, value);
  47029. + XFREE (name);
  47030. + XFREE (value);
  47031. +}
  47032. - case $output in
  47033. - *.lo)
  47034. - if test -n "$objs$old_deplibs"; then
  47035. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  47036. - exit $EXIT_FAILURE
  47037. - fi
  47038. - libobj="$output"
  47039. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  47040. - ;;
  47041. - *)
  47042. - libobj=
  47043. - obj="$output"
  47044. - ;;
  47045. - esac
  47046. +void
  47047. +lt_opt_process_env_prepend (const char *arg)
  47048. +{
  47049. + char *name = NULL;
  47050. + char *value = NULL;
  47051. + char *new_value = NULL;
  47052. - # Delete the old objects.
  47053. - $run $rm $obj $libobj
  47054. + if (lt_split_name_value (arg, &name, &value) != 0)
  47055. + {
  47056. + XFREE (name);
  47057. + XFREE (value);
  47058. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  47059. + }
  47060. - # Objects from convenience libraries. This assumes
  47061. - # single-version convenience libraries. Whenever we create
  47062. - # different ones for PIC/non-PIC, this we'll have to duplicate
  47063. - # the extraction.
  47064. - reload_conv_objs=
  47065. - gentop=
  47066. - # reload_cmds runs $LD directly, so let us get rid of
  47067. - # -Wl from whole_archive_flag_spec and hope we can get by with
  47068. - # turning comma into space..
  47069. - wl=
  47070. + new_value = lt_extend_str (getenv (name), value, 0);
  47071. + lt_setenv (name, new_value);
  47072. + XFREE (new_value);
  47073. + XFREE (name);
  47074. + XFREE (value);
  47075. +}
  47076. - if test -n "$convenience"; then
  47077. - if test -n "$whole_archive_flag_spec"; then
  47078. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  47079. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  47080. - else
  47081. - gentop="$output_objdir/${obj}x"
  47082. - generated="$generated $gentop"
  47083. +void
  47084. +lt_opt_process_env_append (const char *arg)
  47085. +{
  47086. + char *name = NULL;
  47087. + char *value = NULL;
  47088. + char *new_value = NULL;
  47089. - func_extract_archives $gentop $convenience
  47090. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  47091. - fi
  47092. - fi
  47093. + if (lt_split_name_value (arg, &name, &value) != 0)
  47094. + {
  47095. + XFREE (name);
  47096. + XFREE (value);
  47097. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  47098. + }
  47099. - # Create the old-style object.
  47100. - 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
  47101. + new_value = lt_extend_str (getenv (name), value, 1);
  47102. + lt_setenv (name, new_value);
  47103. + XFREE (new_value);
  47104. + XFREE (name);
  47105. + XFREE (value);
  47106. +}
  47107. - output="$obj"
  47108. - cmds=$reload_cmds
  47109. - save_ifs="$IFS"; IFS='~'
  47110. - for cmd in $cmds; do
  47111. - IFS="$save_ifs"
  47112. - eval cmd=\"$cmd\"
  47113. - $show "$cmd"
  47114. - $run eval "$cmd" || exit $?
  47115. - done
  47116. - IFS="$save_ifs"
  47117. +void
  47118. +lt_update_exe_path (const char *name, const char *value)
  47119. +{
  47120. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  47121. + (name ? name : "<NULL>"),
  47122. + (value ? value : "<NULL>")));
  47123. - # Exit if we aren't doing a library object file.
  47124. - if test -z "$libobj"; then
  47125. - if test -n "$gentop"; then
  47126. - $show "${rm}r $gentop"
  47127. - $run ${rm}r $gentop
  47128. - fi
  47129. + if (name && *name && value && *value)
  47130. + {
  47131. + char *new_value = lt_extend_str (getenv (name), value, 0);
  47132. + /* some systems can't cope with a ':'-terminated path #' */
  47133. + int len = strlen (new_value);
  47134. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  47135. + {
  47136. + new_value[len-1] = '\0';
  47137. + }
  47138. + lt_setenv (name, new_value);
  47139. + XFREE (new_value);
  47140. + }
  47141. +}
  47142. - exit $EXIT_SUCCESS
  47143. - fi
  47144. +void
  47145. +lt_update_lib_path (const char *name, const char *value)
  47146. +{
  47147. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  47148. + (name ? name : "<NULL>"),
  47149. + (value ? value : "<NULL>")));
  47150. - if test "$build_libtool_libs" != yes; then
  47151. - if test -n "$gentop"; then
  47152. - $show "${rm}r $gentop"
  47153. - $run ${rm}r $gentop
  47154. - fi
  47155. + if (name && *name && value && *value)
  47156. + {
  47157. + char *new_value = lt_extend_str (getenv (name), value, 0);
  47158. + lt_setenv (name, new_value);
  47159. + XFREE (new_value);
  47160. + }
  47161. +}
  47162. - # Create an invalid libtool object if no PIC, so that we don't
  47163. - # accidentally link it into a program.
  47164. - # $show "echo timestamp > $libobj"
  47165. - # $run eval "echo timestamp > $libobj" || exit $?
  47166. - exit $EXIT_SUCCESS
  47167. - fi
  47168. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  47169. - # Only do commands if we really have different PIC objects.
  47170. - reload_objs="$libobjs $reload_conv_objs"
  47171. - output="$libobj"
  47172. - cmds=$reload_cmds
  47173. - save_ifs="$IFS"; IFS='~'
  47174. - for cmd in $cmds; do
  47175. - IFS="$save_ifs"
  47176. - eval cmd=\"$cmd\"
  47177. - $show "$cmd"
  47178. - $run eval "$cmd" || exit $?
  47179. - done
  47180. - IFS="$save_ifs"
  47181. - fi
  47182. +EOF
  47183. +}
  47184. +# end: func_emit_cwrapperexe_src
  47185. - if test -n "$gentop"; then
  47186. - $show "${rm}r $gentop"
  47187. - $run ${rm}r $gentop
  47188. - fi
  47189. +# func_mode_link arg...
  47190. +func_mode_link ()
  47191. +{
  47192. + $opt_debug
  47193. + case $host in
  47194. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  47195. + # It is impossible to link a dll without this setting, and
  47196. + # we shouldn't force the makefile maintainer to figure out
  47197. + # which system we are compiling for in order to pass an extra
  47198. + # flag for every libtool invocation.
  47199. + # allow_undefined=no
  47200. - exit $EXIT_SUCCESS
  47201. + # FIXME: Unfortunately, there are problems with the above when trying
  47202. + # to make a dll which has undefined symbols, in which case not
  47203. + # even a static library is built. For now, we need to specify
  47204. + # -no-undefined on the libtool link line when we can be certain
  47205. + # that all symbols are satisfied, otherwise we get a static library.
  47206. + allow_undefined=yes
  47207. ;;
  47208. + *)
  47209. + allow_undefined=yes
  47210. + ;;
  47211. + esac
  47212. + libtool_args=$nonopt
  47213. + base_compile="$nonopt $@"
  47214. + compile_command=$nonopt
  47215. + finalize_command=$nonopt
  47216. - prog)
  47217. - case $host in
  47218. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  47219. - esac
  47220. - if test -n "$vinfo"; then
  47221. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  47222. - fi
  47223. -
  47224. - if test -n "$release"; then
  47225. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  47226. - fi
  47227. + compile_rpath=
  47228. + finalize_rpath=
  47229. + compile_shlibpath=
  47230. + finalize_shlibpath=
  47231. + convenience=
  47232. + old_convenience=
  47233. + deplibs=
  47234. + old_deplibs=
  47235. + compiler_flags=
  47236. + linker_flags=
  47237. + dllsearchpath=
  47238. + lib_search_path=`pwd`
  47239. + inst_prefix_dir=
  47240. + new_inherited_linker_flags=
  47241. - if test "$preload" = yes; then
  47242. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  47243. - test "$dlopen_self_static" = unknown; then
  47244. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  47245. - fi
  47246. - fi
  47247. + avoid_version=no
  47248. + dlfiles=
  47249. + dlprefiles=
  47250. + dlself=no
  47251. + export_dynamic=no
  47252. + export_symbols=
  47253. + export_symbols_regex=
  47254. + generated=
  47255. + libobjs=
  47256. + ltlibs=
  47257. + module=no
  47258. + no_install=no
  47259. + objs=
  47260. + non_pic_objects=
  47261. + precious_files_regex=
  47262. + prefer_static_libs=no
  47263. + preload=no
  47264. + prev=
  47265. + prevarg=
  47266. + release=
  47267. + rpath=
  47268. + xrpath=
  47269. + perm_rpath=
  47270. + temp_rpath=
  47271. + thread_safe=no
  47272. + vinfo=
  47273. + vinfo_number=no
  47274. + weak_libs=
  47275. + single_module="${wl}-single_module"
  47276. + func_infer_tag $base_compile
  47277. - case $host in
  47278. - *-*-rhapsody* | *-*-darwin1.[012])
  47279. - # On Rhapsody replace the C library is the System framework
  47280. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  47281. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  47282. + # We need to know -static, to get the right output filenames.
  47283. + for arg
  47284. + do
  47285. + case $arg in
  47286. + -shared)
  47287. + test "$build_libtool_libs" != yes && \
  47288. + func_fatal_configuration "can not build a shared library"
  47289. + build_old_libs=no
  47290. + break
  47291. + ;;
  47292. + -all-static | -static | -static-libtool-libs)
  47293. + case $arg in
  47294. + -all-static)
  47295. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  47296. + func_warning "complete static linking is impossible in this configuration"
  47297. + fi
  47298. + if test -n "$link_static_flag"; then
  47299. + dlopen_self=$dlopen_self_static
  47300. + fi
  47301. + prefer_static_libs=yes
  47302. + ;;
  47303. + -static)
  47304. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  47305. + dlopen_self=$dlopen_self_static
  47306. + fi
  47307. + prefer_static_libs=built
  47308. + ;;
  47309. + -static-libtool-libs)
  47310. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  47311. + dlopen_self=$dlopen_self_static
  47312. + fi
  47313. + prefer_static_libs=yes
  47314. + ;;
  47315. + esac
  47316. + build_libtool_libs=no
  47317. + build_old_libs=yes
  47318. + break
  47319. ;;
  47320. esac
  47321. + done
  47322. - case $host in
  47323. - *darwin*)
  47324. - # Don't allow lazy linking, it breaks C++ global constructors
  47325. - if test "$tagname" = CXX ; then
  47326. - compile_command="$compile_command ${wl}-bind_at_load"
  47327. - finalize_command="$finalize_command ${wl}-bind_at_load"
  47328. - fi
  47329. - ;;
  47330. - esac
  47331. + # See if our shared archives depend on static archives.
  47332. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  47333. + # Go through the arguments, transforming them on the way.
  47334. + while test "$#" -gt 0; do
  47335. + arg="$1"
  47336. + shift
  47337. + func_quote_for_eval "$arg"
  47338. + qarg=$func_quote_for_eval_unquoted_result
  47339. + func_append libtool_args " $func_quote_for_eval_result"
  47340. - # move library search paths that coincide with paths to not yet
  47341. - # installed libraries to the beginning of the library search list
  47342. - new_libs=
  47343. - for path in $notinst_path; do
  47344. - case " $new_libs " in
  47345. - *" -L$path/$objdir "*) ;;
  47346. - *)
  47347. - case " $compile_deplibs " in
  47348. - *" -L$path/$objdir "*)
  47349. - new_libs="$new_libs -L$path/$objdir" ;;
  47350. - esac
  47351. - ;;
  47352. - esac
  47353. - done
  47354. - for deplib in $compile_deplibs; do
  47355. - case $deplib in
  47356. - -L*)
  47357. - case " $new_libs " in
  47358. - *" $deplib "*) ;;
  47359. - *) new_libs="$new_libs $deplib" ;;
  47360. - esac
  47361. + # If the previous option needs an argument, assign it.
  47362. + if test -n "$prev"; then
  47363. + case $prev in
  47364. + output)
  47365. + func_append compile_command " @OUTPUT@"
  47366. + func_append finalize_command " @OUTPUT@"
  47367. ;;
  47368. - *) new_libs="$new_libs $deplib" ;;
  47369. esac
  47370. - done
  47371. - compile_deplibs="$new_libs"
  47372. -
  47373. - compile_command="$compile_command $compile_deplibs"
  47374. - finalize_command="$finalize_command $finalize_deplibs"
  47375. -
  47376. - if test -n "$rpath$xrpath"; then
  47377. - # If the user specified any rpath flags, then add them.
  47378. - for libdir in $rpath $xrpath; do
  47379. - # This is the magic to use -rpath.
  47380. - case "$finalize_rpath " in
  47381. - *" $libdir "*) ;;
  47382. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  47383. - esac
  47384. - done
  47385. - fi
  47386. -
  47387. - # Now hardcode the library paths
  47388. - rpath=
  47389. - hardcode_libdirs=
  47390. - for libdir in $compile_rpath $finalize_rpath; do
  47391. - if test -n "$hardcode_libdir_flag_spec"; then
  47392. - if test -n "$hardcode_libdir_separator"; then
  47393. - if test -z "$hardcode_libdirs"; then
  47394. - hardcode_libdirs="$libdir"
  47395. + case $prev in
  47396. + dlfiles|dlprefiles)
  47397. + if test "$preload" = no; then
  47398. + # Add the symbol object into the linking commands.
  47399. + func_append compile_command " @SYMFILE@"
  47400. + func_append finalize_command " @SYMFILE@"
  47401. + preload=yes
  47402. + fi
  47403. + case $arg in
  47404. + *.la | *.lo) ;; # We handle these cases below.
  47405. + force)
  47406. + if test "$dlself" = no; then
  47407. + dlself=needless
  47408. + export_dynamic=yes
  47409. + fi
  47410. + prev=
  47411. + continue
  47412. + ;;
  47413. + self)
  47414. + if test "$prev" = dlprefiles; then
  47415. + dlself=yes
  47416. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  47417. + dlself=yes
  47418. else
  47419. - # Just accumulate the unique libdirs.
  47420. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47421. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47422. - ;;
  47423. - *)
  47424. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  47425. - ;;
  47426. - esac
  47427. + dlself=needless
  47428. + export_dynamic=yes
  47429. fi
  47430. - else
  47431. - eval flag=\"$hardcode_libdir_flag_spec\"
  47432. - rpath="$rpath $flag"
  47433. - fi
  47434. - elif test -n "$runpath_var"; then
  47435. - case "$perm_rpath " in
  47436. - *" $libdir "*) ;;
  47437. - *) perm_rpath="$perm_rpath $libdir" ;;
  47438. - esac
  47439. - fi
  47440. - case $host in
  47441. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47442. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  47443. - case :$dllsearchpath: in
  47444. - *":$libdir:"*) ;;
  47445. - *) dllsearchpath="$dllsearchpath:$libdir";;
  47446. - esac
  47447. - case :$dllsearchpath: in
  47448. - *":$testbindir:"*) ;;
  47449. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  47450. + prev=
  47451. + continue
  47452. + ;;
  47453. + *)
  47454. + if test "$prev" = dlfiles; then
  47455. + dlfiles="$dlfiles $arg"
  47456. + else
  47457. + dlprefiles="$dlprefiles $arg"
  47458. + fi
  47459. + prev=
  47460. + continue
  47461. + ;;
  47462. esac
  47463. ;;
  47464. - esac
  47465. - done
  47466. - # Substitute the hardcoded libdirs into the rpath.
  47467. - if test -n "$hardcode_libdir_separator" &&
  47468. - test -n "$hardcode_libdirs"; then
  47469. - libdir="$hardcode_libdirs"
  47470. - eval rpath=\" $hardcode_libdir_flag_spec\"
  47471. - fi
  47472. - compile_rpath="$rpath"
  47473. -
  47474. - rpath=
  47475. - hardcode_libdirs=
  47476. - for libdir in $finalize_rpath; do
  47477. - if test -n "$hardcode_libdir_flag_spec"; then
  47478. - if test -n "$hardcode_libdir_separator"; then
  47479. - if test -z "$hardcode_libdirs"; then
  47480. - hardcode_libdirs="$libdir"
  47481. - else
  47482. - # Just accumulate the unique libdirs.
  47483. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47484. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47485. - ;;
  47486. - *)
  47487. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  47488. - ;;
  47489. + expsyms)
  47490. + export_symbols="$arg"
  47491. + test -f "$arg" \
  47492. + || func_fatal_error "symbol file \`$arg' does not exist"
  47493. + prev=
  47494. + continue
  47495. + ;;
  47496. + expsyms_regex)
  47497. + export_symbols_regex="$arg"
  47498. + prev=
  47499. + continue
  47500. + ;;
  47501. + framework)
  47502. + case $host in
  47503. + *-*-darwin*)
  47504. + case "$deplibs " in
  47505. + *" $qarg.ltframework "*) ;;
  47506. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  47507. + ;;
  47508. esac
  47509. - fi
  47510. - else
  47511. - eval flag=\"$hardcode_libdir_flag_spec\"
  47512. - rpath="$rpath $flag"
  47513. - fi
  47514. - elif test -n "$runpath_var"; then
  47515. - case "$finalize_perm_rpath " in
  47516. - *" $libdir "*) ;;
  47517. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  47518. + ;;
  47519. esac
  47520. - fi
  47521. - done
  47522. - # Substitute the hardcoded libdirs into the rpath.
  47523. - if test -n "$hardcode_libdir_separator" &&
  47524. - test -n "$hardcode_libdirs"; then
  47525. - libdir="$hardcode_libdirs"
  47526. - eval rpath=\" $hardcode_libdir_flag_spec\"
  47527. - fi
  47528. - finalize_rpath="$rpath"
  47529. -
  47530. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  47531. - # Transform all the library objects into standard objects.
  47532. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47533. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47534. - fi
  47535. + prev=
  47536. + continue
  47537. + ;;
  47538. + inst_prefix)
  47539. + inst_prefix_dir="$arg"
  47540. + prev=
  47541. + continue
  47542. + ;;
  47543. + objectlist)
  47544. + if test -f "$arg"; then
  47545. + save_arg=$arg
  47546. + moreargs=
  47547. + for fil in `cat "$save_arg"`
  47548. + do
  47549. +# moreargs="$moreargs $fil"
  47550. + arg=$fil
  47551. + # A libtool-controlled object.
  47552. - dlsyms=
  47553. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  47554. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  47555. - dlsyms="${outputname}S.c"
  47556. - else
  47557. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  47558. - fi
  47559. - fi
  47560. + # Check to see that this really is a libtool object.
  47561. + if func_lalib_unsafe_p "$arg"; then
  47562. + pic_object=
  47563. + non_pic_object=
  47564. - if test -n "$dlsyms"; then
  47565. - case $dlsyms in
  47566. - "") ;;
  47567. - *.c)
  47568. - # Discover the nlist of each of the dlfiles.
  47569. - nlist="$output_objdir/${outputname}.nm"
  47570. + # Read the .lo file
  47571. + func_source "$arg"
  47572. - $show "$rm $nlist ${nlist}S ${nlist}T"
  47573. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  47574. + if test -z "$pic_object" ||
  47575. + test -z "$non_pic_object" ||
  47576. + test "$pic_object" = none &&
  47577. + test "$non_pic_object" = none; then
  47578. + func_fatal_error "cannot find name of object for \`$arg'"
  47579. + fi
  47580. - # Parse the name list into a source file.
  47581. - $show "creating $output_objdir/$dlsyms"
  47582. + # Extract subdirectory from the argument.
  47583. + func_dirname "$arg" "/" ""
  47584. + xdir="$func_dirname_result"
  47585. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  47586. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  47587. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  47588. + if test "$pic_object" != none; then
  47589. + # Prepend the subdirectory the object is found in.
  47590. + pic_object="$xdir$pic_object"
  47591. -#ifdef __cplusplus
  47592. -extern \"C\" {
  47593. -#endif
  47594. + if test "$prev" = dlfiles; then
  47595. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47596. + dlfiles="$dlfiles $pic_object"
  47597. + prev=
  47598. + continue
  47599. + else
  47600. + # If libtool objects are unsupported, then we need to preload.
  47601. + prev=dlprefiles
  47602. + fi
  47603. + fi
  47604. -/* Prevent the only kind of declaration conflicts we can make. */
  47605. -#define lt_preloaded_symbols some_other_symbol
  47606. + # CHECK ME: I think I busted this. -Ossama
  47607. + if test "$prev" = dlprefiles; then
  47608. + # Preload the old-style object.
  47609. + dlprefiles="$dlprefiles $pic_object"
  47610. + prev=
  47611. + fi
  47612. -/* External symbol declarations for the compiler. */\
  47613. -"
  47614. + # A PIC object.
  47615. + func_append libobjs " $pic_object"
  47616. + arg="$pic_object"
  47617. + fi
  47618. - if test "$dlself" = yes; then
  47619. - $show "generating symbol list for \`$output'"
  47620. + # Non-PIC object.
  47621. + if test "$non_pic_object" != none; then
  47622. + # Prepend the subdirectory the object is found in.
  47623. + non_pic_object="$xdir$non_pic_object"
  47624. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  47625. + # A standard non-PIC object
  47626. + func_append non_pic_objects " $non_pic_object"
  47627. + if test -z "$pic_object" || test "$pic_object" = none ; then
  47628. + arg="$non_pic_object"
  47629. + fi
  47630. + else
  47631. + # If the PIC object exists, use it instead.
  47632. + # $xdir was prepended to $pic_object above.
  47633. + non_pic_object="$pic_object"
  47634. + func_append non_pic_objects " $non_pic_object"
  47635. + fi
  47636. + else
  47637. + # Only an error if not doing a dry-run.
  47638. + if $opt_dry_run; then
  47639. + # Extract subdirectory from the argument.
  47640. + func_dirname "$arg" "/" ""
  47641. + xdir="$func_dirname_result"
  47642. - # Add our own program objects to the symbol list.
  47643. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47644. - for arg in $progfiles; do
  47645. - $show "extracting global C symbols from \`$arg'"
  47646. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  47647. + func_lo2o "$arg"
  47648. + pic_object=$xdir$objdir/$func_lo2o_result
  47649. + non_pic_object=$xdir$func_lo2o_result
  47650. + func_append libobjs " $pic_object"
  47651. + func_append non_pic_objects " $non_pic_object"
  47652. + else
  47653. + func_fatal_error "\`$arg' is not a valid libtool object"
  47654. + fi
  47655. + fi
  47656. done
  47657. -
  47658. - if test -n "$exclude_expsyms"; then
  47659. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  47660. - $run eval '$mv "$nlist"T "$nlist"'
  47661. - fi
  47662. -
  47663. - if test -n "$export_symbols_regex"; then
  47664. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  47665. - $run eval '$mv "$nlist"T "$nlist"'
  47666. - fi
  47667. -
  47668. - # Prepare the list of exported symbols
  47669. - if test -z "$export_symbols"; then
  47670. - export_symbols="$output_objdir/$outputname.exp"
  47671. - $run $rm $export_symbols
  47672. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  47673. - case $host in
  47674. - *cygwin* | *mingw* )
  47675. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  47676. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  47677. - ;;
  47678. - esac
  47679. - else
  47680. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  47681. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  47682. - $run eval 'mv "$nlist"T "$nlist"'
  47683. - case $host in
  47684. - *cygwin* | *mingw* )
  47685. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  47686. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  47687. - ;;
  47688. - esac
  47689. - fi
  47690. + else
  47691. + func_fatal_error "link input file \`$arg' does not exist"
  47692. fi
  47693. -
  47694. - for arg in $dlprefiles; do
  47695. - $show "extracting global C symbols from \`$arg'"
  47696. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  47697. - $run eval '$echo ": $name " >> "$nlist"'
  47698. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  47699. - done
  47700. -
  47701. - if test -z "$run"; then
  47702. - # Make sure we have at least an empty file.
  47703. - test -f "$nlist" || : > "$nlist"
  47704. -
  47705. - if test -n "$exclude_expsyms"; then
  47706. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  47707. - $mv "$nlist"T "$nlist"
  47708. - fi
  47709. -
  47710. - # Try sorting and uniquifying the output.
  47711. - if grep -v "^: " < "$nlist" |
  47712. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  47713. - sort -k 3
  47714. - else
  47715. - sort +2
  47716. - fi |
  47717. - uniq > "$nlist"S; then
  47718. - :
  47719. - else
  47720. - grep -v "^: " < "$nlist" > "$nlist"S
  47721. - fi
  47722. -
  47723. - if test -f "$nlist"S; then
  47724. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  47725. - else
  47726. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  47727. - fi
  47728. -
  47729. - $echo >> "$output_objdir/$dlsyms" "\
  47730. -
  47731. -#undef lt_preloaded_symbols
  47732. -
  47733. -#if defined (__STDC__) && __STDC__
  47734. -# define lt_ptr void *
  47735. -#else
  47736. -# define lt_ptr char *
  47737. -# define const
  47738. -#endif
  47739. -
  47740. -/* The mapping between symbol names and symbols. */
  47741. -"
  47742. -
  47743. - case $host in
  47744. - *cygwin* | *mingw* )
  47745. - $echo >> "$output_objdir/$dlsyms" "\
  47746. -/* DATA imports from DLLs on WIN32 can't be const, because
  47747. - runtime relocations are performed -- see ld's documentation
  47748. - on pseudo-relocs */
  47749. -struct {
  47750. -"
  47751. - ;;
  47752. - * )
  47753. - $echo >> "$output_objdir/$dlsyms" "\
  47754. -const struct {
  47755. -"
  47756. - ;;
  47757. - esac
  47758. -
  47759. -
  47760. - $echo >> "$output_objdir/$dlsyms" "\
  47761. - const char *name;
  47762. - lt_ptr address;
  47763. -}
  47764. -lt_preloaded_symbols[] =
  47765. -{\
  47766. -"
  47767. -
  47768. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  47769. -
  47770. - $echo >> "$output_objdir/$dlsyms" "\
  47771. - {0, (lt_ptr) 0}
  47772. -};
  47773. -
  47774. -/* This works around a problem in FreeBSD linker */
  47775. -#ifdef FREEBSD_WORKAROUND
  47776. -static const void *lt_preloaded_setup() {
  47777. - return lt_preloaded_symbols;
  47778. -}
  47779. -#endif
  47780. -
  47781. -#ifdef __cplusplus
  47782. -}
  47783. -#endif\
  47784. -"
  47785. - fi
  47786. -
  47787. - pic_flag_for_symtable=
  47788. - case $host in
  47789. - # compiling the symbol table file with pic_flag works around
  47790. - # a FreeBSD bug that causes programs to crash when -lm is
  47791. - # linked before any other PIC object. But we must not use
  47792. - # pic_flag when linking with -static. The problem exists in
  47793. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  47794. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  47795. - case "$compile_command " in
  47796. - *" -static "*) ;;
  47797. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  47798. - esac;;
  47799. - *-*-hpux*)
  47800. - case "$compile_command " in
  47801. - *" -static "*) ;;
  47802. - *) pic_flag_for_symtable=" $pic_flag";;
  47803. - esac
  47804. + arg=$save_arg
  47805. + prev=
  47806. + continue
  47807. + ;;
  47808. + precious_regex)
  47809. + precious_files_regex="$arg"
  47810. + prev=
  47811. + continue
  47812. + ;;
  47813. + release)
  47814. + release="-$arg"
  47815. + prev=
  47816. + continue
  47817. + ;;
  47818. + rpath | xrpath)
  47819. + # We need an absolute path.
  47820. + case $arg in
  47821. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  47822. + *)
  47823. + func_fatal_error "only absolute run-paths are allowed"
  47824. + ;;
  47825. esac
  47826. -
  47827. - # Now compile the dynamic symbol file.
  47828. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  47829. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  47830. -
  47831. - # Clean up the generated files.
  47832. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  47833. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  47834. -
  47835. - # Transform the symbol file into the correct name.
  47836. - case $host in
  47837. - *cygwin* | *mingw* )
  47838. - if test -f "$output_objdir/${outputname}.def" ; then
  47839. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47840. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47841. - else
  47842. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47843. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47844. - fi
  47845. - ;;
  47846. - * )
  47847. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47848. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  47849. - ;;
  47850. - esac
  47851. + if test "$prev" = rpath; then
  47852. + case "$rpath " in
  47853. + *" $arg "*) ;;
  47854. + *) rpath="$rpath $arg" ;;
  47855. + esac
  47856. + else
  47857. + case "$xrpath " in
  47858. + *" $arg "*) ;;
  47859. + *) xrpath="$xrpath $arg" ;;
  47860. + esac
  47861. + fi
  47862. + prev=
  47863. + continue
  47864. + ;;
  47865. + shrext)
  47866. + shrext_cmds="$arg"
  47867. + prev=
  47868. + continue
  47869. + ;;
  47870. + weak)
  47871. + weak_libs="$weak_libs $arg"
  47872. + prev=
  47873. + continue
  47874. + ;;
  47875. + xcclinker)
  47876. + linker_flags="$linker_flags $qarg"
  47877. + compiler_flags="$compiler_flags $qarg"
  47878. + prev=
  47879. + func_append compile_command " $qarg"
  47880. + func_append finalize_command " $qarg"
  47881. + continue
  47882. + ;;
  47883. + xcompiler)
  47884. + compiler_flags="$compiler_flags $qarg"
  47885. + prev=
  47886. + func_append compile_command " $qarg"
  47887. + func_append finalize_command " $qarg"
  47888. + continue
  47889. + ;;
  47890. + xlinker)
  47891. + linker_flags="$linker_flags $qarg"
  47892. + compiler_flags="$compiler_flags $wl$qarg"
  47893. + prev=
  47894. + func_append compile_command " $wl$qarg"
  47895. + func_append finalize_command " $wl$qarg"
  47896. + continue
  47897. ;;
  47898. *)
  47899. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  47900. - exit $EXIT_FAILURE
  47901. + eval "$prev=\"\$arg\""
  47902. + prev=
  47903. + continue
  47904. ;;
  47905. esac
  47906. - else
  47907. - # We keep going just in case the user didn't refer to
  47908. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  47909. - # really was required.
  47910. -
  47911. - # Nullify the symbol file.
  47912. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  47913. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  47914. - fi
  47915. -
  47916. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  47917. - # Replace the output file specification.
  47918. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  47919. - link_command="$compile_command$compile_rpath"
  47920. + fi # test -n "$prev"
  47921. - # We have no uninstalled library dependencies, so finalize right now.
  47922. - $show "$link_command"
  47923. - $run eval "$link_command"
  47924. - exit_status=$?
  47925. + prevarg="$arg"
  47926. - # Delete the generated files.
  47927. - if test -n "$dlsyms"; then
  47928. - $show "$rm $output_objdir/${outputname}S.${objext}"
  47929. - $run $rm "$output_objdir/${outputname}S.${objext}"
  47930. + case $arg in
  47931. + -all-static)
  47932. + if test -n "$link_static_flag"; then
  47933. + # See comment for -static flag below, for more details.
  47934. + func_append compile_command " $link_static_flag"
  47935. + func_append finalize_command " $link_static_flag"
  47936. fi
  47937. + continue
  47938. + ;;
  47939. - exit $exit_status
  47940. - fi
  47941. -
  47942. - if test -n "$shlibpath_var"; then
  47943. - # We should set the shlibpath_var
  47944. - rpath=
  47945. - for dir in $temp_rpath; do
  47946. - case $dir in
  47947. - [\\/]* | [A-Za-z]:[\\/]*)
  47948. - # Absolute path.
  47949. - rpath="$rpath$dir:"
  47950. - ;;
  47951. - *)
  47952. - # Relative path: add a thisdir entry.
  47953. - rpath="$rpath\$thisdir/$dir:"
  47954. - ;;
  47955. - esac
  47956. - done
  47957. - temp_rpath="$rpath"
  47958. - fi
  47959. + -allow-undefined)
  47960. + # FIXME: remove this flag sometime in the future.
  47961. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  47962. + ;;
  47963. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  47964. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  47965. - fi
  47966. - if test -n "$finalize_shlibpath"; then
  47967. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  47968. - fi
  47969. + -avoid-version)
  47970. + avoid_version=yes
  47971. + continue
  47972. + ;;
  47973. - compile_var=
  47974. - finalize_var=
  47975. - if test -n "$runpath_var"; then
  47976. - if test -n "$perm_rpath"; then
  47977. - # We should set the runpath_var.
  47978. - rpath=
  47979. - for dir in $perm_rpath; do
  47980. - rpath="$rpath$dir:"
  47981. - done
  47982. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  47983. - fi
  47984. - if test -n "$finalize_perm_rpath"; then
  47985. - # We should set the runpath_var.
  47986. - rpath=
  47987. - for dir in $finalize_perm_rpath; do
  47988. - rpath="$rpath$dir:"
  47989. - done
  47990. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  47991. - fi
  47992. - fi
  47993. + -dlopen)
  47994. + prev=dlfiles
  47995. + continue
  47996. + ;;
  47997. - if test "$no_install" = yes; then
  47998. - # We don't need to create a wrapper script.
  47999. - link_command="$compile_var$compile_command$compile_rpath"
  48000. - # Replace the output file specification.
  48001. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  48002. - # Delete the old output file.
  48003. - $run $rm $output
  48004. - # Link the executable and exit
  48005. - $show "$link_command"
  48006. - $run eval "$link_command" || exit $?
  48007. - exit $EXIT_SUCCESS
  48008. - fi
  48009. + -dlpreopen)
  48010. + prev=dlprefiles
  48011. + continue
  48012. + ;;
  48013. - if test "$hardcode_action" = relink; then
  48014. - # Fast installation is not supported
  48015. - link_command="$compile_var$compile_command$compile_rpath"
  48016. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  48017. + -export-dynamic)
  48018. + export_dynamic=yes
  48019. + continue
  48020. + ;;
  48021. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  48022. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  48023. - else
  48024. - if test "$fast_install" != no; then
  48025. - link_command="$finalize_var$compile_command$finalize_rpath"
  48026. - if test "$fast_install" = yes; then
  48027. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  48028. - else
  48029. - # fast_install is set to needless
  48030. - relink_command=
  48031. - fi
  48032. + -export-symbols | -export-symbols-regex)
  48033. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  48034. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  48035. + fi
  48036. + if test "X$arg" = "X-export-symbols"; then
  48037. + prev=expsyms
  48038. else
  48039. - link_command="$compile_var$compile_command$compile_rpath"
  48040. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  48041. + prev=expsyms_regex
  48042. fi
  48043. - fi
  48044. -
  48045. - # Replace the output file specification.
  48046. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  48047. + continue
  48048. + ;;
  48049. - # Delete the old output files.
  48050. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  48051. + -framework)
  48052. + prev=framework
  48053. + continue
  48054. + ;;
  48055. - $show "$link_command"
  48056. - $run eval "$link_command" || exit $?
  48057. + -inst-prefix-dir)
  48058. + prev=inst_prefix
  48059. + continue
  48060. + ;;
  48061. - # Now create the wrapper script.
  48062. - $show "creating $output"
  48063. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  48064. + # so, if we see these flags be careful not to treat them like -L
  48065. + -L[A-Z][A-Z]*:*)
  48066. + case $with_gcc/$host in
  48067. + no/*-*-irix* | /*-*-irix*)
  48068. + func_append compile_command " $arg"
  48069. + func_append finalize_command " $arg"
  48070. + ;;
  48071. + esac
  48072. + continue
  48073. + ;;
  48074. - # Quote the relink command for shipping.
  48075. - if test -n "$relink_command"; then
  48076. - # Preserve any variables that may affect compiler behavior
  48077. - for var in $variables_saved_for_relink; do
  48078. - if eval test -z \"\${$var+set}\"; then
  48079. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  48080. - elif eval var_value=\$$var; test -z "$var_value"; then
  48081. - relink_command="$var=; export $var; $relink_command"
  48082. + -L*)
  48083. + func_stripname '-L' '' "$arg"
  48084. + dir=$func_stripname_result
  48085. + if test -z "$dir"; then
  48086. + if test "$#" -gt 0; then
  48087. + func_fatal_error "require no space between \`-L' and \`$1'"
  48088. else
  48089. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  48090. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  48091. + func_fatal_error "need path for \`-L' option"
  48092. fi
  48093. - done
  48094. - relink_command="(cd `pwd`; $relink_command)"
  48095. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  48096. - fi
  48097. -
  48098. - # Quote $echo for shipping.
  48099. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  48100. - case $progpath in
  48101. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  48102. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  48103. + fi
  48104. + # We need an absolute path.
  48105. + case $dir in
  48106. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  48107. + *)
  48108. + absdir=`cd "$dir" && pwd`
  48109. + test -z "$absdir" && \
  48110. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  48111. + dir="$absdir"
  48112. + ;;
  48113. esac
  48114. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  48115. - else
  48116. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  48117. - fi
  48118. -
  48119. - # Only actually do things if our run command is non-null.
  48120. - if test -z "$run"; then
  48121. - # win32 will think the script is a binary if it has
  48122. - # a .exe suffix, so we strip it off here.
  48123. - case $output in
  48124. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  48125. + case "$deplibs " in
  48126. + *" -L$dir "*) ;;
  48127. + *)
  48128. + deplibs="$deplibs -L$dir"
  48129. + lib_search_path="$lib_search_path $dir"
  48130. + ;;
  48131. esac
  48132. - # test for cygwin because mv fails w/o .exe extensions
  48133. case $host in
  48134. - *cygwin*)
  48135. - exeext=.exe
  48136. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  48137. - *) exeext= ;;
  48138. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  48139. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  48140. + case :$dllsearchpath: in
  48141. + *":$dir:"*) ;;
  48142. + ::) dllsearchpath=$dir;;
  48143. + *) dllsearchpath="$dllsearchpath:$dir";;
  48144. + esac
  48145. + case :$dllsearchpath: in
  48146. + *":$testbindir:"*) ;;
  48147. + ::) dllsearchpath=$testbindir;;
  48148. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  48149. + esac
  48150. + ;;
  48151. esac
  48152. - case $host in
  48153. - *cygwin* | *mingw* )
  48154. - output_name=`basename $output`
  48155. - output_path=`dirname $output`
  48156. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  48157. - cwrapper="$output_path/$output_name.exe"
  48158. - $rm $cwrappersource $cwrapper
  48159. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  48160. -
  48161. - cat > $cwrappersource <<EOF
  48162. + continue
  48163. + ;;
  48164. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  48165. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48166. + -l*)
  48167. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  48168. + case $host in
  48169. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  48170. + # These systems don't actually have a C or math library (as such)
  48171. + continue
  48172. + ;;
  48173. + *-*-os2*)
  48174. + # These systems don't actually have a C library (as such)
  48175. + test "X$arg" = "X-lc" && continue
  48176. + ;;
  48177. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48178. + # Do not include libc due to us having libc/libc_r.
  48179. + test "X$arg" = "X-lc" && continue
  48180. + ;;
  48181. + *-*-rhapsody* | *-*-darwin1.[012])
  48182. + # Rhapsody C and math libraries are in the System framework
  48183. + deplibs="$deplibs System.ltframework"
  48184. + continue
  48185. + ;;
  48186. + *-*-sco3.2v5* | *-*-sco5v6*)
  48187. + # Causes problems with __ctype
  48188. + test "X$arg" = "X-lc" && continue
  48189. + ;;
  48190. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  48191. + # Compiler inserts libc in the correct place for threads to work
  48192. + test "X$arg" = "X-lc" && continue
  48193. + ;;
  48194. + esac
  48195. + elif test "X$arg" = "X-lc_r"; then
  48196. + case $host in
  48197. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  48198. + # Do not include libc_r directly, use -pthread flag.
  48199. + continue
  48200. + ;;
  48201. + esac
  48202. + fi
  48203. + deplibs="$deplibs $arg"
  48204. + continue
  48205. + ;;
  48206. - The $output program cannot be directly executed until all the libtool
  48207. - libraries that it depends on are installed.
  48208. + -module)
  48209. + module=yes
  48210. + continue
  48211. + ;;
  48212. - This wrapper executable should never be moved out of the build directory.
  48213. - If it is, it will not operate correctly.
  48214. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  48215. + # classes, name mangling, and exception handling.
  48216. + # Darwin uses the -arch flag to determine output architecture.
  48217. + -model|-arch|-isysroot)
  48218. + compiler_flags="$compiler_flags $arg"
  48219. + func_append compile_command " $arg"
  48220. + func_append finalize_command " $arg"
  48221. + prev=xcompiler
  48222. + continue
  48223. + ;;
  48224. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  48225. - but could eventually absorb all of the scripts functionality and
  48226. - exec $objdir/$outputname directly.
  48227. -*/
  48228. -EOF
  48229. - cat >> $cwrappersource<<"EOF"
  48230. -#include <stdio.h>
  48231. -#include <stdlib.h>
  48232. -#include <unistd.h>
  48233. -#include <malloc.h>
  48234. -#include <stdarg.h>
  48235. -#include <assert.h>
  48236. -#include <string.h>
  48237. -#include <ctype.h>
  48238. -#include <sys/stat.h>
  48239. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  48240. + compiler_flags="$compiler_flags $arg"
  48241. + func_append compile_command " $arg"
  48242. + func_append finalize_command " $arg"
  48243. + case "$new_inherited_linker_flags " in
  48244. + *" $arg "*) ;;
  48245. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  48246. + esac
  48247. + continue
  48248. + ;;
  48249. -#if defined(PATH_MAX)
  48250. -# define LT_PATHMAX PATH_MAX
  48251. -#elif defined(MAXPATHLEN)
  48252. -# define LT_PATHMAX MAXPATHLEN
  48253. -#else
  48254. -# define LT_PATHMAX 1024
  48255. -#endif
  48256. + -multi_module)
  48257. + single_module="${wl}-multi_module"
  48258. + continue
  48259. + ;;
  48260. -#ifndef DIR_SEPARATOR
  48261. -# define DIR_SEPARATOR '/'
  48262. -# define PATH_SEPARATOR ':'
  48263. -#endif
  48264. + -no-fast-install)
  48265. + fast_install=no
  48266. + continue
  48267. + ;;
  48268. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  48269. - defined (__OS2__)
  48270. -# define HAVE_DOS_BASED_FILE_SYSTEM
  48271. -# ifndef DIR_SEPARATOR_2
  48272. -# define DIR_SEPARATOR_2 '\\'
  48273. -# endif
  48274. -# ifndef PATH_SEPARATOR_2
  48275. -# define PATH_SEPARATOR_2 ';'
  48276. -# endif
  48277. -#endif
  48278. + -no-install)
  48279. + case $host in
  48280. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  48281. + # The PATH hackery in wrapper scripts is required on Windows
  48282. + # and Darwin in order for the loader to find any dlls it needs.
  48283. + func_warning "\`-no-install' is ignored for $host"
  48284. + func_warning "assuming \`-no-fast-install' instead"
  48285. + fast_install=no
  48286. + ;;
  48287. + *) no_install=yes ;;
  48288. + esac
  48289. + continue
  48290. + ;;
  48291. -#ifndef DIR_SEPARATOR_2
  48292. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  48293. -#else /* DIR_SEPARATOR_2 */
  48294. -# define IS_DIR_SEPARATOR(ch) \
  48295. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  48296. -#endif /* DIR_SEPARATOR_2 */
  48297. + -no-undefined)
  48298. + allow_undefined=no
  48299. + continue
  48300. + ;;
  48301. -#ifndef PATH_SEPARATOR_2
  48302. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  48303. -#else /* PATH_SEPARATOR_2 */
  48304. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  48305. -#endif /* PATH_SEPARATOR_2 */
  48306. + -objectlist)
  48307. + prev=objectlist
  48308. + continue
  48309. + ;;
  48310. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  48311. -#define XFREE(stale) do { \
  48312. - if (stale) { free ((void *) stale); stale = 0; } \
  48313. -} while (0)
  48314. + -o) prev=output ;;
  48315. -/* -DDEBUG is fairly common in CFLAGS. */
  48316. -#undef DEBUG
  48317. -#if defined DEBUGWRAPPER
  48318. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  48319. -#else
  48320. -# define DEBUG(format, ...)
  48321. -#endif
  48322. + -precious-files-regex)
  48323. + prev=precious_regex
  48324. + continue
  48325. + ;;
  48326. -const char *program_name = NULL;
  48327. + -release)
  48328. + prev=release
  48329. + continue
  48330. + ;;
  48331. -void * xmalloc (size_t num);
  48332. -char * xstrdup (const char *string);
  48333. -const char * base_name (const char *name);
  48334. -char * find_executable(const char *wrapper);
  48335. -int check_executable(const char *path);
  48336. -char * strendzap(char *str, const char *pat);
  48337. -void lt_fatal (const char *message, ...);
  48338. + -rpath)
  48339. + prev=rpath
  48340. + continue
  48341. + ;;
  48342. -int
  48343. -main (int argc, char *argv[])
  48344. -{
  48345. - char **newargz;
  48346. - int i;
  48347. + -R)
  48348. + prev=xrpath
  48349. + continue
  48350. + ;;
  48351. - program_name = (char *) xstrdup (base_name (argv[0]));
  48352. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  48353. - DEBUG("(main) program_name : %s\n",program_name);
  48354. - newargz = XMALLOC(char *, argc+2);
  48355. -EOF
  48356. + -R*)
  48357. + func_stripname '-R' '' "$arg"
  48358. + dir=$func_stripname_result
  48359. + # We need an absolute path.
  48360. + case $dir in
  48361. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  48362. + *)
  48363. + func_fatal_error "only absolute run-paths are allowed"
  48364. + ;;
  48365. + esac
  48366. + case "$xrpath " in
  48367. + *" $dir "*) ;;
  48368. + *) xrpath="$xrpath $dir" ;;
  48369. + esac
  48370. + continue
  48371. + ;;
  48372. - cat >> $cwrappersource <<EOF
  48373. - newargz[0] = (char *) xstrdup("$SHELL");
  48374. -EOF
  48375. + -shared)
  48376. + # The effects of -shared are defined in a previous loop.
  48377. + continue
  48378. + ;;
  48379. - cat >> $cwrappersource <<"EOF"
  48380. - newargz[1] = find_executable(argv[0]);
  48381. - if (newargz[1] == NULL)
  48382. - lt_fatal("Couldn't find %s", argv[0]);
  48383. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  48384. - /* we know the script has the same name, without the .exe */
  48385. - /* so make sure newargz[1] doesn't end in .exe */
  48386. - strendzap(newargz[1],".exe");
  48387. - for (i = 1; i < argc; i++)
  48388. - newargz[i+1] = xstrdup(argv[i]);
  48389. - newargz[argc+1] = NULL;
  48390. + -shrext)
  48391. + prev=shrext
  48392. + continue
  48393. + ;;
  48394. - for (i=0; i<argc+1; i++)
  48395. - {
  48396. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  48397. - ;
  48398. - }
  48399. + -static | -static-libtool-libs)
  48400. + # The effects of -static are defined in a previous loop.
  48401. + # We used to do the same as -all-static on platforms that
  48402. + # didn't have a PIC flag, but the assumption that the effects
  48403. + # would be equivalent was wrong. It would break on at least
  48404. + # Digital Unix and AIX.
  48405. + continue
  48406. + ;;
  48407. -EOF
  48408. + -thread-safe)
  48409. + thread_safe=yes
  48410. + continue
  48411. + ;;
  48412. - case $host_os in
  48413. - mingw*)
  48414. - cat >> $cwrappersource <<EOF
  48415. - execv("$SHELL",(char const **)newargz);
  48416. -EOF
  48417. - ;;
  48418. - *)
  48419. - cat >> $cwrappersource <<EOF
  48420. - execv("$SHELL",newargz);
  48421. -EOF
  48422. - ;;
  48423. - esac
  48424. + -version-info)
  48425. + prev=vinfo
  48426. + continue
  48427. + ;;
  48428. - cat >> $cwrappersource <<"EOF"
  48429. - return 127;
  48430. -}
  48431. + -version-number)
  48432. + prev=vinfo
  48433. + vinfo_number=yes
  48434. + continue
  48435. + ;;
  48436. -void *
  48437. -xmalloc (size_t num)
  48438. -{
  48439. - void * p = (void *) malloc (num);
  48440. - if (!p)
  48441. - lt_fatal ("Memory exhausted");
  48442. + -weak)
  48443. + prev=weak
  48444. + continue
  48445. + ;;
  48446. - return p;
  48447. -}
  48448. + -Wc,*)
  48449. + func_stripname '-Wc,' '' "$arg"
  48450. + args=$func_stripname_result
  48451. + arg=
  48452. + save_ifs="$IFS"; IFS=','
  48453. + for flag in $args; do
  48454. + IFS="$save_ifs"
  48455. + func_quote_for_eval "$flag"
  48456. + arg="$arg $wl$func_quote_for_eval_result"
  48457. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  48458. + done
  48459. + IFS="$save_ifs"
  48460. + func_stripname ' ' '' "$arg"
  48461. + arg=$func_stripname_result
  48462. + ;;
  48463. -char *
  48464. -xstrdup (const char *string)
  48465. -{
  48466. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  48467. -;
  48468. -}
  48469. + -Wl,*)
  48470. + func_stripname '-Wl,' '' "$arg"
  48471. + args=$func_stripname_result
  48472. + arg=
  48473. + save_ifs="$IFS"; IFS=','
  48474. + for flag in $args; do
  48475. + IFS="$save_ifs"
  48476. + func_quote_for_eval "$flag"
  48477. + arg="$arg $wl$func_quote_for_eval_result"
  48478. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  48479. + linker_flags="$linker_flags $func_quote_for_eval_result"
  48480. + done
  48481. + IFS="$save_ifs"
  48482. + func_stripname ' ' '' "$arg"
  48483. + arg=$func_stripname_result
  48484. + ;;
  48485. -const char *
  48486. -base_name (const char *name)
  48487. -{
  48488. - const char *base;
  48489. + -Xcompiler)
  48490. + prev=xcompiler
  48491. + continue
  48492. + ;;
  48493. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48494. - /* Skip over the disk name in MSDOS pathnames. */
  48495. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  48496. - name += 2;
  48497. -#endif
  48498. + -Xlinker)
  48499. + prev=xlinker
  48500. + continue
  48501. + ;;
  48502. - for (base = name; *name; name++)
  48503. - if (IS_DIR_SEPARATOR (*name))
  48504. - base = name + 1;
  48505. - return base;
  48506. -}
  48507. + -XCClinker)
  48508. + prev=xcclinker
  48509. + continue
  48510. + ;;
  48511. -int
  48512. -check_executable(const char * path)
  48513. -{
  48514. - struct stat st;
  48515. + # -msg_* for osf cc
  48516. + -msg_*)
  48517. + func_quote_for_eval "$arg"
  48518. + arg="$func_quote_for_eval_result"
  48519. + ;;
  48520. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  48521. - if ((!path) || (!*path))
  48522. - return 0;
  48523. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  48524. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  48525. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  48526. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  48527. + # -q* pass through compiler args for the IBM compiler
  48528. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  48529. + # compiler args for GCC
  48530. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  48531. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  48532. + # @file GCC response files
  48533. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  48534. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  48535. + func_quote_for_eval "$arg"
  48536. + arg="$func_quote_for_eval_result"
  48537. + func_append compile_command " $arg"
  48538. + func_append finalize_command " $arg"
  48539. + compiler_flags="$compiler_flags $arg"
  48540. + continue
  48541. + ;;
  48542. - if ((stat (path, &st) >= 0) &&
  48543. - (
  48544. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  48545. -#if defined (S_IXOTH)
  48546. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  48547. -#endif
  48548. -#if defined (S_IXGRP)
  48549. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  48550. -#endif
  48551. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  48552. - )
  48553. - return 1;
  48554. - else
  48555. - return 0;
  48556. -}
  48557. + # Some other compiler flag.
  48558. + -* | +*)
  48559. + func_quote_for_eval "$arg"
  48560. + arg="$func_quote_for_eval_result"
  48561. + ;;
  48562. -/* Searches for the full path of the wrapper. Returns
  48563. - newly allocated full path name if found, NULL otherwise */
  48564. -char *
  48565. -find_executable (const char* wrapper)
  48566. -{
  48567. - int has_slash = 0;
  48568. - const char* p;
  48569. - const char* p_next;
  48570. - /* static buffer for getcwd */
  48571. - char tmp[LT_PATHMAX + 1];
  48572. - int tmp_len;
  48573. - char* concat_name;
  48574. + *.$objext)
  48575. + # A standard object.
  48576. + objs="$objs $arg"
  48577. + ;;
  48578. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  48579. + *.lo)
  48580. + # A libtool-controlled object.
  48581. - if ((wrapper == NULL) || (*wrapper == '\0'))
  48582. - return NULL;
  48583. + # Check to see that this really is a libtool object.
  48584. + if func_lalib_unsafe_p "$arg"; then
  48585. + pic_object=
  48586. + non_pic_object=
  48587. - /* Absolute path? */
  48588. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48589. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  48590. - {
  48591. - concat_name = xstrdup (wrapper);
  48592. - if (check_executable(concat_name))
  48593. - return concat_name;
  48594. - XFREE(concat_name);
  48595. - }
  48596. - else
  48597. - {
  48598. -#endif
  48599. - if (IS_DIR_SEPARATOR (wrapper[0]))
  48600. - {
  48601. - concat_name = xstrdup (wrapper);
  48602. - if (check_executable(concat_name))
  48603. - return concat_name;
  48604. - XFREE(concat_name);
  48605. - }
  48606. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48607. - }
  48608. -#endif
  48609. + # Read the .lo file
  48610. + func_source "$arg"
  48611. - for (p = wrapper; *p; p++)
  48612. - if (*p == '/')
  48613. - {
  48614. - has_slash = 1;
  48615. - break;
  48616. - }
  48617. - if (!has_slash)
  48618. - {
  48619. - /* no slashes; search PATH */
  48620. - const char* path = getenv ("PATH");
  48621. - if (path != NULL)
  48622. - {
  48623. - for (p = path; *p; p = p_next)
  48624. - {
  48625. - const char* q;
  48626. - size_t p_len;
  48627. - for (q = p; *q; q++)
  48628. - if (IS_PATH_SEPARATOR(*q))
  48629. - break;
  48630. - p_len = q - p;
  48631. - p_next = (*q == '\0' ? q : q + 1);
  48632. - if (p_len == 0)
  48633. - {
  48634. - /* empty path: current directory */
  48635. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  48636. - lt_fatal ("getcwd failed");
  48637. - tmp_len = strlen(tmp);
  48638. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  48639. - memcpy (concat_name, tmp, tmp_len);
  48640. - concat_name[tmp_len] = '/';
  48641. - strcpy (concat_name + tmp_len + 1, wrapper);
  48642. - }
  48643. - else
  48644. - {
  48645. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  48646. - memcpy (concat_name, p, p_len);
  48647. - concat_name[p_len] = '/';
  48648. - strcpy (concat_name + p_len + 1, wrapper);
  48649. - }
  48650. - if (check_executable(concat_name))
  48651. - return concat_name;
  48652. - XFREE(concat_name);
  48653. - }
  48654. - }
  48655. - /* not found in PATH; assume curdir */
  48656. - }
  48657. - /* Relative path | not found in path: prepend cwd */
  48658. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  48659. - lt_fatal ("getcwd failed");
  48660. - tmp_len = strlen(tmp);
  48661. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  48662. - memcpy (concat_name, tmp, tmp_len);
  48663. - concat_name[tmp_len] = '/';
  48664. - strcpy (concat_name + tmp_len + 1, wrapper);
  48665. + if test -z "$pic_object" ||
  48666. + test -z "$non_pic_object" ||
  48667. + test "$pic_object" = none &&
  48668. + test "$non_pic_object" = none; then
  48669. + func_fatal_error "cannot find name of object for \`$arg'"
  48670. + fi
  48671. - if (check_executable(concat_name))
  48672. - return concat_name;
  48673. - XFREE(concat_name);
  48674. - return NULL;
  48675. -}
  48676. + # Extract subdirectory from the argument.
  48677. + func_dirname "$arg" "/" ""
  48678. + xdir="$func_dirname_result"
  48679. -char *
  48680. -strendzap(char *str, const char *pat)
  48681. -{
  48682. - size_t len, patlen;
  48683. + if test "$pic_object" != none; then
  48684. + # Prepend the subdirectory the object is found in.
  48685. + pic_object="$xdir$pic_object"
  48686. - assert(str != NULL);
  48687. - assert(pat != NULL);
  48688. + if test "$prev" = dlfiles; then
  48689. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  48690. + dlfiles="$dlfiles $pic_object"
  48691. + prev=
  48692. + continue
  48693. + else
  48694. + # If libtool objects are unsupported, then we need to preload.
  48695. + prev=dlprefiles
  48696. + fi
  48697. + fi
  48698. - len = strlen(str);
  48699. - patlen = strlen(pat);
  48700. + # CHECK ME: I think I busted this. -Ossama
  48701. + if test "$prev" = dlprefiles; then
  48702. + # Preload the old-style object.
  48703. + dlprefiles="$dlprefiles $pic_object"
  48704. + prev=
  48705. + fi
  48706. - if (patlen <= len)
  48707. - {
  48708. - str += len - patlen;
  48709. - if (strcmp(str, pat) == 0)
  48710. - *str = '\0';
  48711. - }
  48712. - return str;
  48713. -}
  48714. + # A PIC object.
  48715. + func_append libobjs " $pic_object"
  48716. + arg="$pic_object"
  48717. + fi
  48718. -static void
  48719. -lt_error_core (int exit_status, const char * mode,
  48720. - const char * message, va_list ap)
  48721. -{
  48722. - fprintf (stderr, "%s: %s: ", program_name, mode);
  48723. - vfprintf (stderr, message, ap);
  48724. - fprintf (stderr, ".\n");
  48725. + # Non-PIC object.
  48726. + if test "$non_pic_object" != none; then
  48727. + # Prepend the subdirectory the object is found in.
  48728. + non_pic_object="$xdir$non_pic_object"
  48729. - if (exit_status >= 0)
  48730. - exit (exit_status);
  48731. -}
  48732. + # A standard non-PIC object
  48733. + func_append non_pic_objects " $non_pic_object"
  48734. + if test -z "$pic_object" || test "$pic_object" = none ; then
  48735. + arg="$non_pic_object"
  48736. + fi
  48737. + else
  48738. + # If the PIC object exists, use it instead.
  48739. + # $xdir was prepended to $pic_object above.
  48740. + non_pic_object="$pic_object"
  48741. + func_append non_pic_objects " $non_pic_object"
  48742. + fi
  48743. + else
  48744. + # Only an error if not doing a dry-run.
  48745. + if $opt_dry_run; then
  48746. + # Extract subdirectory from the argument.
  48747. + func_dirname "$arg" "/" ""
  48748. + xdir="$func_dirname_result"
  48749. -void
  48750. -lt_fatal (const char *message, ...)
  48751. -{
  48752. - va_list ap;
  48753. - va_start (ap, message);
  48754. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  48755. - va_end (ap);
  48756. -}
  48757. -EOF
  48758. - # we should really use a build-platform specific compiler
  48759. - # here, but OTOH, the wrappers (shell script and this C one)
  48760. - # are only useful if you want to execute the "real" binary.
  48761. - # Since the "real" binary is built for $host, then this
  48762. - # wrapper might as well be built for $host, too.
  48763. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  48764. - ;;
  48765. - esac
  48766. - $rm $output
  48767. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  48768. + func_lo2o "$arg"
  48769. + pic_object=$xdir$objdir/$func_lo2o_result
  48770. + non_pic_object=$xdir$func_lo2o_result
  48771. + func_append libobjs " $pic_object"
  48772. + func_append non_pic_objects " $non_pic_object"
  48773. + else
  48774. + func_fatal_error "\`$arg' is not a valid libtool object"
  48775. + fi
  48776. + fi
  48777. + ;;
  48778. - $echo > $output "\
  48779. -#! $SHELL
  48780. + *.$libext)
  48781. + # An archive.
  48782. + deplibs="$deplibs $arg"
  48783. + old_deplibs="$old_deplibs $arg"
  48784. + continue
  48785. + ;;
  48786. -# $output - temporary wrapper script for $objdir/$outputname
  48787. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48788. -#
  48789. -# The $output program cannot be directly executed until all the libtool
  48790. -# libraries that it depends on are installed.
  48791. -#
  48792. -# This wrapper script should never be moved out of the build directory.
  48793. -# If it is, it will not operate correctly.
  48794. + *.la)
  48795. + # A libtool-controlled library.
  48796. -# Sed substitution that helps us do robust quoting. It backslashifies
  48797. -# metacharacters that are still active within double-quoted strings.
  48798. -Xsed='${SED} -e 1s/^X//'
  48799. -sed_quote_subst='$sed_quote_subst'
  48800. + if test "$prev" = dlfiles; then
  48801. + # This library was specified with -dlopen.
  48802. + dlfiles="$dlfiles $arg"
  48803. + prev=
  48804. + elif test "$prev" = dlprefiles; then
  48805. + # The library was specified with -dlpreopen.
  48806. + dlprefiles="$dlprefiles $arg"
  48807. + prev=
  48808. + else
  48809. + deplibs="$deplibs $arg"
  48810. + fi
  48811. + continue
  48812. + ;;
  48813. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  48814. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  48815. - emulate sh
  48816. - NULLCMD=:
  48817. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  48818. - # is contrary to our usage. Disable this feature.
  48819. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  48820. - setopt NO_GLOB_SUBST
  48821. -else
  48822. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  48823. -fi
  48824. -BIN_SH=xpg4; export BIN_SH # for Tru64
  48825. -DUALCASE=1; export DUALCASE # for MKS sh
  48826. + # Some other compiler argument.
  48827. + *)
  48828. + # Unknown arguments in both finalize_command and compile_command need
  48829. + # to be aesthetically quoted because they are evaled later.
  48830. + func_quote_for_eval "$arg"
  48831. + arg="$func_quote_for_eval_result"
  48832. + ;;
  48833. + esac # arg
  48834. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  48835. -# if CDPATH is set.
  48836. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  48837. + # Now actually substitute the argument into the commands.
  48838. + if test -n "$arg"; then
  48839. + func_append compile_command " $arg"
  48840. + func_append finalize_command " $arg"
  48841. + fi
  48842. + done # argument parsing loop
  48843. -relink_command=\"$relink_command\"
  48844. + test -n "$prev" && \
  48845. + func_fatal_help "the \`$prevarg' option requires an argument"
  48846. -# This environment variable determines our operation mode.
  48847. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  48848. - # install mode needs the following variable:
  48849. - notinst_deplibs='$notinst_deplibs'
  48850. -else
  48851. - # When we are sourced in execute mode, \$file and \$echo are already set.
  48852. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  48853. - echo=\"$qecho\"
  48854. - file=\"\$0\"
  48855. - # Make sure echo works.
  48856. - if test \"X\$1\" = X--no-reexec; then
  48857. - # Discard the --no-reexec flag, and continue.
  48858. - shift
  48859. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  48860. - # Yippee, \$echo works!
  48861. - :
  48862. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  48863. + eval arg=\"$export_dynamic_flag_spec\"
  48864. + func_append compile_command " $arg"
  48865. + func_append finalize_command " $arg"
  48866. + fi
  48867. +
  48868. + oldlibs=
  48869. + # calculate the name of the file, without its directory
  48870. + func_basename "$output"
  48871. + outputname="$func_basename_result"
  48872. + libobjs_save="$libobjs"
  48873. +
  48874. + if test -n "$shlibpath_var"; then
  48875. + # get the directories listed in $shlibpath_var
  48876. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  48877. else
  48878. - # Restart under the correct shell, and then maybe \$echo will work.
  48879. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  48880. + shlib_search_path=
  48881. fi
  48882. - fi\
  48883. -"
  48884. - $echo >> $output "\
  48885. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  48886. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  48887. - # Find the directory that this script lives in.
  48888. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  48889. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  48890. + func_dirname "$output" "/" ""
  48891. + output_objdir="$func_dirname_result$objdir"
  48892. + # Create the object directory.
  48893. + func_mkdir_p "$output_objdir"
  48894. - # Follow symbolic links until we get to the real thisdir.
  48895. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  48896. - while test -n \"\$file\"; do
  48897. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  48898. + # Determine the type of output
  48899. + case $output in
  48900. + "")
  48901. + func_fatal_help "you must specify an output file"
  48902. + ;;
  48903. + *.$libext) linkmode=oldlib ;;
  48904. + *.lo | *.$objext) linkmode=obj ;;
  48905. + *.la) linkmode=lib ;;
  48906. + *) linkmode=prog ;; # Anything else should be a program.
  48907. + esac
  48908. +
  48909. + specialdeplibs=
  48910. +
  48911. + libs=
  48912. + # Find all interdependent deplibs by searching for libraries
  48913. + # that are linked more than once (e.g. -la -lb -la)
  48914. + for deplib in $deplibs; do
  48915. + if $opt_duplicate_deps ; then
  48916. + case "$libs " in
  48917. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48918. + esac
  48919. + fi
  48920. + libs="$libs $deplib"
  48921. + done
  48922. +
  48923. + if test "$linkmode" = lib; then
  48924. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  48925. +
  48926. + # Compute libraries that are listed more than once in $predeps
  48927. + # $postdeps and mark them as special (i.e., whose duplicates are
  48928. + # not to be eliminated).
  48929. + pre_post_deps=
  48930. + if $opt_duplicate_compiler_generated_deps; then
  48931. + for pre_post_dep in $predeps $postdeps; do
  48932. + case "$pre_post_deps " in
  48933. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  48934. + esac
  48935. + pre_post_deps="$pre_post_deps $pre_post_dep"
  48936. + done
  48937. + fi
  48938. + pre_post_deps=
  48939. + fi
  48940. +
  48941. + deplibs=
  48942. + newdependency_libs=
  48943. + newlib_search_path=
  48944. + need_relink=no # whether we're linking any uninstalled libtool libraries
  48945. + notinst_deplibs= # not-installed libtool libraries
  48946. + notinst_path= # paths that contain not-installed libtool libraries
  48947. +
  48948. + case $linkmode in
  48949. + lib)
  48950. + passes="conv dlpreopen link"
  48951. + for file in $dlfiles $dlprefiles; do
  48952. + case $file in
  48953. + *.la) ;;
  48954. + *)
  48955. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  48956. + ;;
  48957. + esac
  48958. + done
  48959. + ;;
  48960. + prog)
  48961. + compile_deplibs=
  48962. + finalize_deplibs=
  48963. + alldeplibs=no
  48964. + newdlfiles=
  48965. + newdlprefiles=
  48966. + passes="conv scan dlopen dlpreopen link"
  48967. + ;;
  48968. + *) passes="conv"
  48969. + ;;
  48970. + esac
  48971. +
  48972. + for pass in $passes; do
  48973. + # The preopen pass in lib mode reverses $deplibs; put it back here
  48974. + # so that -L comes before libs that need it for instance...
  48975. + if test "$linkmode,$pass" = "lib,link"; then
  48976. + ## FIXME: Find the place where the list is rebuilt in the wrong
  48977. + ## order, and fix it there properly
  48978. + tmp_deplibs=
  48979. + for deplib in $deplibs; do
  48980. + tmp_deplibs="$deplib $tmp_deplibs"
  48981. + done
  48982. + deplibs="$tmp_deplibs"
  48983. + fi
  48984. +
  48985. + if test "$linkmode,$pass" = "lib,link" ||
  48986. + test "$linkmode,$pass" = "prog,scan"; then
  48987. + libs="$deplibs"
  48988. + deplibs=
  48989. + fi
  48990. + if test "$linkmode" = prog; then
  48991. + case $pass in
  48992. + dlopen) libs="$dlfiles" ;;
  48993. + dlpreopen) libs="$dlprefiles" ;;
  48994. + link)
  48995. + libs="$deplibs %DEPLIBS%"
  48996. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  48997. + ;;
  48998. + esac
  48999. + fi
  49000. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  49001. + # Collect and forward deplibs of preopened libtool libs
  49002. + for lib in $dlprefiles; do
  49003. + # Ignore non-libtool-libs
  49004. + dependency_libs=
  49005. + case $lib in
  49006. + *.la) func_source "$lib" ;;
  49007. + esac
  49008. +
  49009. + # Collect preopened libtool deplibs, except any this library
  49010. + # has declared as weak libs
  49011. + for deplib in $dependency_libs; do
  49012. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  49013. + case " $weak_libs " in
  49014. + *" $deplib_base "*) ;;
  49015. + *) deplibs="$deplibs $deplib" ;;
  49016. + esac
  49017. + done
  49018. + done
  49019. + libs="$dlprefiles"
  49020. + fi
  49021. + if test "$pass" = dlopen; then
  49022. + # Collect dlpreopened libraries
  49023. + save_deplibs="$deplibs"
  49024. + deplibs=
  49025. + fi
  49026. +
  49027. + for deplib in $libs; do
  49028. + lib=
  49029. + found=no
  49030. + case $deplib in
  49031. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  49032. + if test "$linkmode,$pass" = "prog,link"; then
  49033. + compile_deplibs="$deplib $compile_deplibs"
  49034. + finalize_deplibs="$deplib $finalize_deplibs"
  49035. + else
  49036. + compiler_flags="$compiler_flags $deplib"
  49037. + if test "$linkmode" = lib ; then
  49038. + case "$new_inherited_linker_flags " in
  49039. + *" $deplib "*) ;;
  49040. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  49041. + esac
  49042. + fi
  49043. + fi
  49044. + continue
  49045. + ;;
  49046. + -l*)
  49047. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  49048. + func_warning "\`-l' is ignored for archives/objects"
  49049. + continue
  49050. + fi
  49051. + func_stripname '-l' '' "$deplib"
  49052. + name=$func_stripname_result
  49053. + if test "$linkmode" = lib; then
  49054. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  49055. + else
  49056. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  49057. + fi
  49058. + for searchdir in $searchdirs; do
  49059. + for search_ext in .la $std_shrext .so .a; do
  49060. + # Search the libtool library
  49061. + lib="$searchdir/lib${name}${search_ext}"
  49062. + if test -f "$lib"; then
  49063. + if test "$search_ext" = ".la"; then
  49064. + found=yes
  49065. + else
  49066. + found=no
  49067. + fi
  49068. + break 2
  49069. + fi
  49070. + done
  49071. + done
  49072. + if test "$found" != yes; then
  49073. + # deplib doesn't seem to be a libtool library
  49074. + if test "$linkmode,$pass" = "prog,link"; then
  49075. + compile_deplibs="$deplib $compile_deplibs"
  49076. + finalize_deplibs="$deplib $finalize_deplibs"
  49077. + else
  49078. + deplibs="$deplib $deplibs"
  49079. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49080. + fi
  49081. + continue
  49082. + else # deplib is a libtool library
  49083. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  49084. + # We need to do some special things here, and not later.
  49085. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49086. + case " $predeps $postdeps " in
  49087. + *" $deplib "*)
  49088. + if func_lalib_p "$lib"; then
  49089. + library_names=
  49090. + old_library=
  49091. + func_source "$lib"
  49092. + for l in $old_library $library_names; do
  49093. + ll="$l"
  49094. + done
  49095. + if test "X$ll" = "X$old_library" ; then # only static version available
  49096. + found=no
  49097. + func_dirname "$lib" "" "."
  49098. + ladir="$func_dirname_result"
  49099. + lib=$ladir/$old_library
  49100. + if test "$linkmode,$pass" = "prog,link"; then
  49101. + compile_deplibs="$deplib $compile_deplibs"
  49102. + finalize_deplibs="$deplib $finalize_deplibs"
  49103. + else
  49104. + deplibs="$deplib $deplibs"
  49105. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  49106. + fi
  49107. + continue
  49108. + fi
  49109. + fi
  49110. + ;;
  49111. + *) ;;
  49112. + esac
  49113. + fi
  49114. + fi
  49115. + ;; # -l
  49116. + *.ltframework)
  49117. + if test "$linkmode,$pass" = "prog,link"; then
  49118. + compile_deplibs="$deplib $compile_deplibs"
  49119. + finalize_deplibs="$deplib $finalize_deplibs"
  49120. + else
  49121. + deplibs="$deplib $deplibs"
  49122. + if test "$linkmode" = lib ; then
  49123. + case "$new_inherited_linker_flags " in
  49124. + *" $deplib "*) ;;
  49125. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  49126. + esac
  49127. + fi
  49128. + fi
  49129. + continue
  49130. + ;;
  49131. + -L*)
  49132. + case $linkmode in
  49133. + lib)
  49134. + deplibs="$deplib $deplibs"
  49135. + test "$pass" = conv && continue
  49136. + newdependency_libs="$deplib $newdependency_libs"
  49137. + func_stripname '-L' '' "$deplib"
  49138. + newlib_search_path="$newlib_search_path $func_stripname_result"
  49139. + ;;
  49140. + prog)
  49141. + if test "$pass" = conv; then
  49142. + deplibs="$deplib $deplibs"
  49143. + continue
  49144. + fi
  49145. + if test "$pass" = scan; then
  49146. + deplibs="$deplib $deplibs"
  49147. + else
  49148. + compile_deplibs="$deplib $compile_deplibs"
  49149. + finalize_deplibs="$deplib $finalize_deplibs"
  49150. + fi
  49151. + func_stripname '-L' '' "$deplib"
  49152. + newlib_search_path="$newlib_search_path $func_stripname_result"
  49153. + ;;
  49154. + *)
  49155. + func_warning "\`-L' is ignored for archives/objects"
  49156. + ;;
  49157. + esac # linkmode
  49158. + continue
  49159. + ;; # -L
  49160. + -R*)
  49161. + if test "$pass" = link; then
  49162. + func_stripname '-R' '' "$deplib"
  49163. + dir=$func_stripname_result
  49164. + # Make sure the xrpath contains only unique directories.
  49165. + case "$xrpath " in
  49166. + *" $dir "*) ;;
  49167. + *) xrpath="$xrpath $dir" ;;
  49168. + esac
  49169. + fi
  49170. + deplibs="$deplib $deplibs"
  49171. + continue
  49172. + ;;
  49173. + *.la) lib="$deplib" ;;
  49174. + *.$libext)
  49175. + if test "$pass" = conv; then
  49176. + deplibs="$deplib $deplibs"
  49177. + continue
  49178. + fi
  49179. + case $linkmode in
  49180. + lib)
  49181. + # Linking convenience modules into shared libraries is allowed,
  49182. + # but linking other static libraries is non-portable.
  49183. + case " $dlpreconveniencelibs " in
  49184. + *" $deplib "*) ;;
  49185. + *)
  49186. + valid_a_lib=no
  49187. + case $deplibs_check_method in
  49188. + match_pattern*)
  49189. + set dummy $deplibs_check_method; shift
  49190. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  49191. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  49192. + | $EGREP "$match_pattern_regex" > /dev/null; then
  49193. + valid_a_lib=yes
  49194. + fi
  49195. + ;;
  49196. + pass_all)
  49197. + valid_a_lib=yes
  49198. + ;;
  49199. + esac
  49200. + if test "$valid_a_lib" != yes; then
  49201. + $ECHO
  49202. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  49203. + $ECHO "*** I have the capability to make that library automatically link in when"
  49204. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49205. + $ECHO "*** shared version of the library, which you do not appear to have"
  49206. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  49207. + $ECHO "*** that it is just a static archive that I should not use here."
  49208. + else
  49209. + $ECHO
  49210. + $ECHO "*** Warning: Linking the shared library $output against the"
  49211. + $ECHO "*** static library $deplib is not portable!"
  49212. + deplibs="$deplib $deplibs"
  49213. + fi
  49214. + ;;
  49215. + esac
  49216. + continue
  49217. + ;;
  49218. + prog)
  49219. + if test "$pass" != link; then
  49220. + deplibs="$deplib $deplibs"
  49221. + else
  49222. + compile_deplibs="$deplib $compile_deplibs"
  49223. + finalize_deplibs="$deplib $finalize_deplibs"
  49224. + fi
  49225. + continue
  49226. + ;;
  49227. + esac # linkmode
  49228. + ;; # *.$libext
  49229. + *.lo | *.$objext)
  49230. + if test "$pass" = conv; then
  49231. + deplibs="$deplib $deplibs"
  49232. + elif test "$linkmode" = prog; then
  49233. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  49234. + # If there is no dlopen support or we're linking statically,
  49235. + # we need to preload.
  49236. + newdlprefiles="$newdlprefiles $deplib"
  49237. + compile_deplibs="$deplib $compile_deplibs"
  49238. + finalize_deplibs="$deplib $finalize_deplibs"
  49239. + else
  49240. + newdlfiles="$newdlfiles $deplib"
  49241. + fi
  49242. + fi
  49243. + continue
  49244. + ;;
  49245. + %DEPLIBS%)
  49246. + alldeplibs=yes
  49247. + continue
  49248. + ;;
  49249. + esac # case $deplib
  49250. +
  49251. + if test "$found" = yes || test -f "$lib"; then :
  49252. + else
  49253. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  49254. + fi
  49255. +
  49256. + # Check to see that this really is a libtool archive.
  49257. + func_lalib_unsafe_p "$lib" \
  49258. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  49259. +
  49260. + func_dirname "$lib" "" "."
  49261. + ladir="$func_dirname_result"
  49262. +
  49263. + dlname=
  49264. + dlopen=
  49265. + dlpreopen=
  49266. + libdir=
  49267. + library_names=
  49268. + old_library=
  49269. + inherited_linker_flags=
  49270. + # If the library was installed with an old release of libtool,
  49271. + # it will not redefine variables installed, or shouldnotlink
  49272. + installed=yes
  49273. + shouldnotlink=no
  49274. + avoidtemprpath=
  49275. +
  49276. +
  49277. + # Read the .la file
  49278. + func_source "$lib"
  49279. +
  49280. + # Convert "-framework foo" to "foo.ltframework"
  49281. + if test -n "$inherited_linker_flags"; then
  49282. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  49283. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  49284. + case " $new_inherited_linker_flags " in
  49285. + *" $tmp_inherited_linker_flag "*) ;;
  49286. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  49287. + esac
  49288. + done
  49289. + fi
  49290. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49291. + if test "$linkmode,$pass" = "lib,link" ||
  49292. + test "$linkmode,$pass" = "prog,scan" ||
  49293. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  49294. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  49295. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  49296. + fi
  49297. +
  49298. + if test "$pass" = conv; then
  49299. + # Only check for convenience libraries
  49300. + deplibs="$lib $deplibs"
  49301. + if test -z "$libdir"; then
  49302. + if test -z "$old_library"; then
  49303. + func_fatal_error "cannot find name of link library for \`$lib'"
  49304. + fi
  49305. + # It is a libtool convenience library, so add in its objects.
  49306. + convenience="$convenience $ladir/$objdir/$old_library"
  49307. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  49308. + tmp_libs=
  49309. + for deplib in $dependency_libs; do
  49310. + deplibs="$deplib $deplibs"
  49311. + if $opt_duplicate_deps ; then
  49312. + case "$tmp_libs " in
  49313. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49314. + esac
  49315. + fi
  49316. + tmp_libs="$tmp_libs $deplib"
  49317. + done
  49318. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  49319. + func_fatal_error "\`$lib' is not a convenience library"
  49320. + fi
  49321. + continue
  49322. + fi # $pass = conv
  49323. +
  49324. +
  49325. + # Get the name of the library we link against.
  49326. + linklib=
  49327. + for l in $old_library $library_names; do
  49328. + linklib="$l"
  49329. + done
  49330. + if test -z "$linklib"; then
  49331. + func_fatal_error "cannot find name of link library for \`$lib'"
  49332. + fi
  49333. +
  49334. + # This library was specified with -dlopen.
  49335. + if test "$pass" = dlopen; then
  49336. + if test -z "$libdir"; then
  49337. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  49338. + fi
  49339. + if test -z "$dlname" ||
  49340. + test "$dlopen_support" != yes ||
  49341. + test "$build_libtool_libs" = no; then
  49342. + # If there is no dlname, no dlopen support or we're linking
  49343. + # statically, we need to preload. We also need to preload any
  49344. + # dependent libraries so libltdl's deplib preloader doesn't
  49345. + # bomb out in the load deplibs phase.
  49346. + dlprefiles="$dlprefiles $lib $dependency_libs"
  49347. + else
  49348. + newdlfiles="$newdlfiles $lib"
  49349. + fi
  49350. + continue
  49351. + fi # $pass = dlopen
  49352. +
  49353. + # We need an absolute path.
  49354. + case $ladir in
  49355. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  49356. + *)
  49357. + abs_ladir=`cd "$ladir" && pwd`
  49358. + if test -z "$abs_ladir"; then
  49359. + func_warning "cannot determine absolute directory name of \`$ladir'"
  49360. + func_warning "passing it literally to the linker, although it might fail"
  49361. + abs_ladir="$ladir"
  49362. + fi
  49363. + ;;
  49364. + esac
  49365. + func_basename "$lib"
  49366. + laname="$func_basename_result"
  49367. +
  49368. + # Find the relevant object directory and library name.
  49369. + if test "X$installed" = Xyes; then
  49370. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49371. + func_warning "library \`$lib' was moved."
  49372. + dir="$ladir"
  49373. + absdir="$abs_ladir"
  49374. + libdir="$abs_ladir"
  49375. + else
  49376. + dir="$libdir"
  49377. + absdir="$libdir"
  49378. + fi
  49379. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  49380. + else
  49381. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  49382. + dir="$ladir"
  49383. + absdir="$abs_ladir"
  49384. + # Remove this search path later
  49385. + notinst_path="$notinst_path $abs_ladir"
  49386. + else
  49387. + dir="$ladir/$objdir"
  49388. + absdir="$abs_ladir/$objdir"
  49389. + # Remove this search path later
  49390. + notinst_path="$notinst_path $abs_ladir"
  49391. + fi
  49392. + fi # $installed = yes
  49393. + func_stripname 'lib' '.la' "$laname"
  49394. + name=$func_stripname_result
  49395. +
  49396. + # This library was specified with -dlpreopen.
  49397. + if test "$pass" = dlpreopen; then
  49398. + if test -z "$libdir" && test "$linkmode" = prog; then
  49399. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  49400. + fi
  49401. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  49402. + # are required to link).
  49403. + if test -n "$old_library"; then
  49404. + newdlprefiles="$newdlprefiles $dir/$old_library"
  49405. + # Keep a list of preopened convenience libraries to check
  49406. + # that they are being used correctly in the link pass.
  49407. + test -z "$libdir" && \
  49408. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  49409. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  49410. + elif test -n "$dlname"; then
  49411. + newdlprefiles="$newdlprefiles $dir/$dlname"
  49412. + else
  49413. + newdlprefiles="$newdlprefiles $dir/$linklib"
  49414. + fi
  49415. + fi # $pass = dlpreopen
  49416. +
  49417. + if test -z "$libdir"; then
  49418. + # Link the convenience library
  49419. + if test "$linkmode" = lib; then
  49420. + deplibs="$dir/$old_library $deplibs"
  49421. + elif test "$linkmode,$pass" = "prog,link"; then
  49422. + compile_deplibs="$dir/$old_library $compile_deplibs"
  49423. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  49424. + else
  49425. + deplibs="$lib $deplibs" # used for prog,scan pass
  49426. + fi
  49427. + continue
  49428. + fi
  49429. +
  49430. +
  49431. + if test "$linkmode" = prog && test "$pass" != link; then
  49432. + newlib_search_path="$newlib_search_path $ladir"
  49433. + deplibs="$lib $deplibs"
  49434. +
  49435. + linkalldeplibs=no
  49436. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  49437. + test "$build_libtool_libs" = no; then
  49438. + linkalldeplibs=yes
  49439. + fi
  49440. +
  49441. + tmp_libs=
  49442. + for deplib in $dependency_libs; do
  49443. + case $deplib in
  49444. + -L*) func_stripname '-L' '' "$deplib"
  49445. + newlib_search_path="$newlib_search_path $func_stripname_result"
  49446. + ;;
  49447. + esac
  49448. + # Need to link against all dependency_libs?
  49449. + if test "$linkalldeplibs" = yes; then
  49450. + deplibs="$deplib $deplibs"
  49451. + else
  49452. + # Need to hardcode shared library paths
  49453. + # or/and link against static libraries
  49454. + newdependency_libs="$deplib $newdependency_libs"
  49455. + fi
  49456. + if $opt_duplicate_deps ; then
  49457. + case "$tmp_libs " in
  49458. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49459. + esac
  49460. + fi
  49461. + tmp_libs="$tmp_libs $deplib"
  49462. + done # for deplib
  49463. + continue
  49464. + fi # $linkmode = prog...
  49465. +
  49466. + if test "$linkmode,$pass" = "prog,link"; then
  49467. + if test -n "$library_names" &&
  49468. + { { test "$prefer_static_libs" = no ||
  49469. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  49470. + test -z "$old_library"; }; then
  49471. + # We need to hardcode the library path
  49472. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  49473. + # Make sure the rpath contains only unique directories.
  49474. + case "$temp_rpath:" in
  49475. + *"$absdir:"*) ;;
  49476. + *) temp_rpath="$temp_rpath$absdir:" ;;
  49477. + esac
  49478. + fi
  49479. +
  49480. + # Hardcode the library path.
  49481. + # Skip directories that are in the system default run-time
  49482. + # search path.
  49483. + case " $sys_lib_dlsearch_path " in
  49484. + *" $absdir "*) ;;
  49485. + *)
  49486. + case "$compile_rpath " in
  49487. + *" $absdir "*) ;;
  49488. + *) compile_rpath="$compile_rpath $absdir"
  49489. + esac
  49490. + ;;
  49491. + esac
  49492. + case " $sys_lib_dlsearch_path " in
  49493. + *" $libdir "*) ;;
  49494. + *)
  49495. + case "$finalize_rpath " in
  49496. + *" $libdir "*) ;;
  49497. + *) finalize_rpath="$finalize_rpath $libdir"
  49498. + esac
  49499. + ;;
  49500. + esac
  49501. + fi # $linkmode,$pass = prog,link...
  49502. +
  49503. + if test "$alldeplibs" = yes &&
  49504. + { test "$deplibs_check_method" = pass_all ||
  49505. + { test "$build_libtool_libs" = yes &&
  49506. + test -n "$library_names"; }; }; then
  49507. + # We only need to search for static libraries
  49508. + continue
  49509. + fi
  49510. + fi
  49511. +
  49512. + link_static=no # Whether the deplib will be linked statically
  49513. + use_static_libs=$prefer_static_libs
  49514. + if test "$use_static_libs" = built && test "$installed" = yes; then
  49515. + use_static_libs=no
  49516. + fi
  49517. + if test -n "$library_names" &&
  49518. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  49519. + case $host in
  49520. + *cygwin* | *mingw* | *cegcc*)
  49521. + # No point in relinking DLLs because paths are not encoded
  49522. + notinst_deplibs="$notinst_deplibs $lib"
  49523. + need_relink=no
  49524. + ;;
  49525. + *)
  49526. + if test "$installed" = no; then
  49527. + notinst_deplibs="$notinst_deplibs $lib"
  49528. + need_relink=yes
  49529. + fi
  49530. + ;;
  49531. + esac
  49532. + # This is a shared library
  49533. +
  49534. + # Warn about portability, can't link against -module's on some
  49535. + # systems (darwin). Don't bleat about dlopened modules though!
  49536. + dlopenmodule=""
  49537. + for dlpremoduletest in $dlprefiles; do
  49538. + if test "X$dlpremoduletest" = "X$lib"; then
  49539. + dlopenmodule="$dlpremoduletest"
  49540. + break
  49541. + fi
  49542. + done
  49543. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  49544. + $ECHO
  49545. + if test "$linkmode" = prog; then
  49546. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  49547. + else
  49548. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  49549. + fi
  49550. + $ECHO "*** $linklib is not portable!"
  49551. + fi
  49552. + if test "$linkmode" = lib &&
  49553. + test "$hardcode_into_libs" = yes; then
  49554. + # Hardcode the library path.
  49555. + # Skip directories that are in the system default run-time
  49556. + # search path.
  49557. + case " $sys_lib_dlsearch_path " in
  49558. + *" $absdir "*) ;;
  49559. + *)
  49560. + case "$compile_rpath " in
  49561. + *" $absdir "*) ;;
  49562. + *) compile_rpath="$compile_rpath $absdir"
  49563. + esac
  49564. + ;;
  49565. + esac
  49566. + case " $sys_lib_dlsearch_path " in
  49567. + *" $libdir "*) ;;
  49568. + *)
  49569. + case "$finalize_rpath " in
  49570. + *" $libdir "*) ;;
  49571. + *) finalize_rpath="$finalize_rpath $libdir"
  49572. + esac
  49573. + ;;
  49574. + esac
  49575. + fi
  49576. +
  49577. + if test -n "$old_archive_from_expsyms_cmds"; then
  49578. + # figure out the soname
  49579. + set dummy $library_names
  49580. + shift
  49581. + realname="$1"
  49582. + shift
  49583. + libname=`eval "\\$ECHO \"$libname_spec\""`
  49584. + # use dlname if we got it. it's perfectly good, no?
  49585. + if test -n "$dlname"; then
  49586. + soname="$dlname"
  49587. + elif test -n "$soname_spec"; then
  49588. + # bleh windows
  49589. + case $host in
  49590. + *cygwin* | mingw* | *cegcc*)
  49591. + func_arith $current - $age
  49592. + major=$func_arith_result
  49593. + versuffix="-$major"
  49594. + ;;
  49595. + esac
  49596. + eval soname=\"$soname_spec\"
  49597. + else
  49598. + soname="$realname"
  49599. + fi
  49600. +
  49601. + # Make a new name for the extract_expsyms_cmds to use
  49602. + soroot="$soname"
  49603. + func_basename "$soroot"
  49604. + soname="$func_basename_result"
  49605. + func_stripname 'lib' '.dll' "$soname"
  49606. + newlib=libimp-$func_stripname_result.a
  49607. +
  49608. + # If the library has no export list, then create one now
  49609. + if test -f "$output_objdir/$soname-def"; then :
  49610. + else
  49611. + func_verbose "extracting exported symbol list from \`$soname'"
  49612. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  49613. + fi
  49614. +
  49615. + # Create $newlib
  49616. + if test -f "$output_objdir/$newlib"; then :; else
  49617. + func_verbose "generating import library for \`$soname'"
  49618. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  49619. + fi
  49620. + # make sure the library variables are pointing to the new library
  49621. + dir=$output_objdir
  49622. + linklib=$newlib
  49623. + fi # test -n "$old_archive_from_expsyms_cmds"
  49624. +
  49625. + if test "$linkmode" = prog || test "$mode" != relink; then
  49626. + add_shlibpath=
  49627. + add_dir=
  49628. + add=
  49629. + lib_linked=yes
  49630. + case $hardcode_action in
  49631. + immediate | unsupported)
  49632. + if test "$hardcode_direct" = no; then
  49633. + add="$dir/$linklib"
  49634. + case $host in
  49635. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  49636. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  49637. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  49638. + *-*-unixware7*) add_dir="-L$dir" ;;
  49639. + *-*-darwin* )
  49640. + # if the lib is a (non-dlopened) module then we can not
  49641. + # link against it, someone is ignoring the earlier warnings
  49642. + if /usr/bin/file -L $add 2> /dev/null |
  49643. + $GREP ": [^:]* bundle" >/dev/null ; then
  49644. + if test "X$dlopenmodule" != "X$lib"; then
  49645. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  49646. + if test -z "$old_library" ; then
  49647. + $ECHO
  49648. + $ECHO "*** And there doesn't seem to be a static archive available"
  49649. + $ECHO "*** The link will probably fail, sorry"
  49650. + else
  49651. + add="$dir/$old_library"
  49652. + fi
  49653. + elif test -n "$old_library"; then
  49654. + add="$dir/$old_library"
  49655. + fi
  49656. + fi
  49657. + esac
  49658. + elif test "$hardcode_minus_L" = no; then
  49659. + case $host in
  49660. + *-*-sunos*) add_shlibpath="$dir" ;;
  49661. + esac
  49662. + add_dir="-L$dir"
  49663. + add="-l$name"
  49664. + elif test "$hardcode_shlibpath_var" = no; then
  49665. + add_shlibpath="$dir"
  49666. + add="-l$name"
  49667. + else
  49668. + lib_linked=no
  49669. + fi
  49670. + ;;
  49671. + relink)
  49672. + if test "$hardcode_direct" = yes &&
  49673. + test "$hardcode_direct_absolute" = no; then
  49674. + add="$dir/$linklib"
  49675. + elif test "$hardcode_minus_L" = yes; then
  49676. + add_dir="-L$dir"
  49677. + # Try looking first in the location we're being installed to.
  49678. + if test -n "$inst_prefix_dir"; then
  49679. + case $libdir in
  49680. + [\\/]*)
  49681. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49682. + ;;
  49683. + esac
  49684. + fi
  49685. + add="-l$name"
  49686. + elif test "$hardcode_shlibpath_var" = yes; then
  49687. + add_shlibpath="$dir"
  49688. + add="-l$name"
  49689. + else
  49690. + lib_linked=no
  49691. + fi
  49692. + ;;
  49693. + *) lib_linked=no ;;
  49694. + esac
  49695. +
  49696. + if test "$lib_linked" != yes; then
  49697. + func_fatal_configuration "unsupported hardcode properties"
  49698. + fi
  49699. +
  49700. + if test -n "$add_shlibpath"; then
  49701. + case :$compile_shlibpath: in
  49702. + *":$add_shlibpath:"*) ;;
  49703. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  49704. + esac
  49705. + fi
  49706. + if test "$linkmode" = prog; then
  49707. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  49708. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  49709. + else
  49710. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49711. + test -n "$add" && deplibs="$add $deplibs"
  49712. + if test "$hardcode_direct" != yes &&
  49713. + test "$hardcode_minus_L" != yes &&
  49714. + test "$hardcode_shlibpath_var" = yes; then
  49715. + case :$finalize_shlibpath: in
  49716. + *":$libdir:"*) ;;
  49717. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49718. + esac
  49719. + fi
  49720. + fi
  49721. + fi
  49722. +
  49723. + if test "$linkmode" = prog || test "$mode" = relink; then
  49724. + add_shlibpath=
  49725. + add_dir=
  49726. + add=
  49727. + # Finalize command for both is simple: just hardcode it.
  49728. + if test "$hardcode_direct" = yes &&
  49729. + test "$hardcode_direct_absolute" = no; then
  49730. + add="$libdir/$linklib"
  49731. + elif test "$hardcode_minus_L" = yes; then
  49732. + add_dir="-L$libdir"
  49733. + add="-l$name"
  49734. + elif test "$hardcode_shlibpath_var" = yes; then
  49735. + case :$finalize_shlibpath: in
  49736. + *":$libdir:"*) ;;
  49737. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  49738. + esac
  49739. + add="-l$name"
  49740. + elif test "$hardcode_automatic" = yes; then
  49741. + if test -n "$inst_prefix_dir" &&
  49742. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  49743. + add="$inst_prefix_dir$libdir/$linklib"
  49744. + else
  49745. + add="$libdir/$linklib"
  49746. + fi
  49747. + else
  49748. + # We cannot seem to hardcode it, guess we'll fake it.
  49749. + add_dir="-L$libdir"
  49750. + # Try looking first in the location we're being installed to.
  49751. + if test -n "$inst_prefix_dir"; then
  49752. + case $libdir in
  49753. + [\\/]*)
  49754. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  49755. + ;;
  49756. + esac
  49757. + fi
  49758. + add="-l$name"
  49759. + fi
  49760. +
  49761. + if test "$linkmode" = prog; then
  49762. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  49763. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  49764. + else
  49765. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  49766. + test -n "$add" && deplibs="$add $deplibs"
  49767. + fi
  49768. + fi
  49769. + elif test "$linkmode" = prog; then
  49770. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  49771. + # is not unsupported. This is valid on all known static and
  49772. + # shared platforms.
  49773. + if test "$hardcode_direct" != unsupported; then
  49774. + test -n "$old_library" && linklib="$old_library"
  49775. + compile_deplibs="$dir/$linklib $compile_deplibs"
  49776. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  49777. + else
  49778. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  49779. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  49780. + fi
  49781. + elif test "$build_libtool_libs" = yes; then
  49782. + # Not a shared library
  49783. + if test "$deplibs_check_method" != pass_all; then
  49784. + # We're trying link a shared library against a static one
  49785. + # but the system doesn't support it.
  49786. +
  49787. + # Just print a warning and add the library to dependency_libs so
  49788. + # that the program can be linked against the static library.
  49789. + $ECHO
  49790. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  49791. + $ECHO "*** I have the capability to make that library automatically link in when"
  49792. + $ECHO "*** you link to this library. But I can only do this if you have a"
  49793. + $ECHO "*** shared version of the library, which you do not appear to have."
  49794. + if test "$module" = yes; then
  49795. + $ECHO "*** But as you try to build a module library, libtool will still create "
  49796. + $ECHO "*** a static module, that should work as long as the dlopening application"
  49797. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  49798. + if test -z "$global_symbol_pipe"; then
  49799. + $ECHO
  49800. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  49801. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49802. + $ECHO "*** not find such a program. So, this module is probably useless."
  49803. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  49804. + fi
  49805. + if test "$build_old_libs" = no; then
  49806. + build_libtool_libs=module
  49807. + build_old_libs=yes
  49808. + else
  49809. + build_libtool_libs=no
  49810. + fi
  49811. + fi
  49812. + else
  49813. + deplibs="$dir/$old_library $deplibs"
  49814. + link_static=yes
  49815. + fi
  49816. + fi # link shared/static library?
  49817. +
  49818. + if test "$linkmode" = lib; then
  49819. + if test -n "$dependency_libs" &&
  49820. + { test "$hardcode_into_libs" != yes ||
  49821. + test "$build_old_libs" = yes ||
  49822. + test "$link_static" = yes; }; then
  49823. + # Extract -R from dependency_libs
  49824. + temp_deplibs=
  49825. + for libdir in $dependency_libs; do
  49826. + case $libdir in
  49827. + -R*) func_stripname '-R' '' "$libdir"
  49828. + temp_xrpath=$func_stripname_result
  49829. + case " $xrpath " in
  49830. + *" $temp_xrpath "*) ;;
  49831. + *) xrpath="$xrpath $temp_xrpath";;
  49832. + esac;;
  49833. + *) temp_deplibs="$temp_deplibs $libdir";;
  49834. + esac
  49835. + done
  49836. + dependency_libs="$temp_deplibs"
  49837. + fi
  49838. +
  49839. + newlib_search_path="$newlib_search_path $absdir"
  49840. + # Link against this library
  49841. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  49842. + # ... and its dependency_libs
  49843. + tmp_libs=
  49844. + for deplib in $dependency_libs; do
  49845. + newdependency_libs="$deplib $newdependency_libs"
  49846. + if $opt_duplicate_deps ; then
  49847. + case "$tmp_libs " in
  49848. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  49849. + esac
  49850. + fi
  49851. + tmp_libs="$tmp_libs $deplib"
  49852. + done
  49853. +
  49854. + if test "$link_all_deplibs" != no; then
  49855. + # Add the search paths of all dependency libraries
  49856. + for deplib in $dependency_libs; do
  49857. + path=
  49858. + case $deplib in
  49859. + -L*) path="$deplib" ;;
  49860. + *.la)
  49861. + func_dirname "$deplib" "" "."
  49862. + dir="$func_dirname_result"
  49863. + # We need an absolute path.
  49864. + case $dir in
  49865. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  49866. + *)
  49867. + absdir=`cd "$dir" && pwd`
  49868. + if test -z "$absdir"; then
  49869. + func_warning "cannot determine absolute directory name of \`$dir'"
  49870. + absdir="$dir"
  49871. + fi
  49872. + ;;
  49873. + esac
  49874. + if $GREP "^installed=no" $deplib > /dev/null; then
  49875. + case $host in
  49876. + *-*-darwin*)
  49877. + depdepl=
  49878. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  49879. + if test -n "$deplibrary_names" ; then
  49880. + for tmp in $deplibrary_names ; do
  49881. + depdepl=$tmp
  49882. + done
  49883. + if test -f "$absdir/$objdir/$depdepl" ; then
  49884. + depdepl="$absdir/$objdir/$depdepl"
  49885. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  49886. + if test -z "$darwin_install_name"; then
  49887. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  49888. + fi
  49889. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  49890. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  49891. + path=
  49892. + fi
  49893. + fi
  49894. + ;;
  49895. + *)
  49896. + path="-L$absdir/$objdir"
  49897. + ;;
  49898. + esac
  49899. + else
  49900. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49901. + test -z "$libdir" && \
  49902. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  49903. + test "$absdir" != "$libdir" && \
  49904. + func_warning "\`$deplib' seems to be moved"
  49905. +
  49906. + path="-L$absdir"
  49907. + fi
  49908. + ;;
  49909. + esac
  49910. + case " $deplibs " in
  49911. + *" $path "*) ;;
  49912. + *) deplibs="$path $deplibs" ;;
  49913. + esac
  49914. + done
  49915. + fi # link_all_deplibs != no
  49916. + fi # linkmode = lib
  49917. + done # for deplib in $libs
  49918. + if test "$pass" = link; then
  49919. + if test "$linkmode" = "prog"; then
  49920. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  49921. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  49922. + else
  49923. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49924. + fi
  49925. + fi
  49926. + dependency_libs="$newdependency_libs"
  49927. + if test "$pass" = dlpreopen; then
  49928. + # Link the dlpreopened libraries before other libraries
  49929. + for deplib in $save_deplibs; do
  49930. + deplibs="$deplib $deplibs"
  49931. + done
  49932. + fi
  49933. + if test "$pass" != dlopen; then
  49934. + if test "$pass" != conv; then
  49935. + # Make sure lib_search_path contains only unique directories.
  49936. + lib_search_path=
  49937. + for dir in $newlib_search_path; do
  49938. + case "$lib_search_path " in
  49939. + *" $dir "*) ;;
  49940. + *) lib_search_path="$lib_search_path $dir" ;;
  49941. + esac
  49942. + done
  49943. + newlib_search_path=
  49944. + fi
  49945. +
  49946. + if test "$linkmode,$pass" != "prog,link"; then
  49947. + vars="deplibs"
  49948. + else
  49949. + vars="compile_deplibs finalize_deplibs"
  49950. + fi
  49951. + for var in $vars dependency_libs; do
  49952. + # Add libraries to $var in reverse order
  49953. + eval tmp_libs=\"\$$var\"
  49954. + new_libs=
  49955. + for deplib in $tmp_libs; do
  49956. + # FIXME: Pedantically, this is the right thing to do, so
  49957. + # that some nasty dependency loop isn't accidentally
  49958. + # broken:
  49959. + #new_libs="$deplib $new_libs"
  49960. + # Pragmatically, this seems to cause very few problems in
  49961. + # practice:
  49962. + case $deplib in
  49963. + -L*) new_libs="$deplib $new_libs" ;;
  49964. + -R*) ;;
  49965. + *)
  49966. + # And here is the reason: when a library appears more
  49967. + # than once as an explicit dependence of a library, or
  49968. + # is implicitly linked in more than once by the
  49969. + # compiler, it is considered special, and multiple
  49970. + # occurrences thereof are not removed. Compare this
  49971. + # with having the same library being listed as a
  49972. + # dependency of multiple other libraries: in this case,
  49973. + # we know (pedantically, we assume) the library does not
  49974. + # need to be listed more than once, so we keep only the
  49975. + # last copy. This is not always right, but it is rare
  49976. + # enough that we require users that really mean to play
  49977. + # such unportable linking tricks to link the library
  49978. + # using -Wl,-lname, so that libtool does not consider it
  49979. + # for duplicate removal.
  49980. + case " $specialdeplibs " in
  49981. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  49982. + *)
  49983. + case " $new_libs " in
  49984. + *" $deplib "*) ;;
  49985. + *) new_libs="$deplib $new_libs" ;;
  49986. + esac
  49987. + ;;
  49988. + esac
  49989. + ;;
  49990. + esac
  49991. + done
  49992. + tmp_libs=
  49993. + for deplib in $new_libs; do
  49994. + case $deplib in
  49995. + -L*)
  49996. + case " $tmp_libs " in
  49997. + *" $deplib "*) ;;
  49998. + *) tmp_libs="$tmp_libs $deplib" ;;
  49999. + esac
  50000. + ;;
  50001. + *) tmp_libs="$tmp_libs $deplib" ;;
  50002. + esac
  50003. + done
  50004. + eval $var=\"$tmp_libs\"
  50005. + done # for var
  50006. + fi
  50007. + # Last step: remove runtime libs from dependency_libs
  50008. + # (they stay in deplibs)
  50009. + tmp_libs=
  50010. + for i in $dependency_libs ; do
  50011. + case " $predeps $postdeps $compiler_lib_search_path " in
  50012. + *" $i "*)
  50013. + i=""
  50014. + ;;
  50015. + esac
  50016. + if test -n "$i" ; then
  50017. + tmp_libs="$tmp_libs $i"
  50018. + fi
  50019. + done
  50020. + dependency_libs=$tmp_libs
  50021. + done # for pass
  50022. + if test "$linkmode" = prog; then
  50023. + dlfiles="$newdlfiles"
  50024. + fi
  50025. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  50026. + dlprefiles="$newdlprefiles"
  50027. + fi
  50028. +
  50029. + case $linkmode in
  50030. + oldlib)
  50031. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  50032. + func_warning "\`-dlopen' is ignored for archives"
  50033. + fi
  50034. +
  50035. + case " $deplibs" in
  50036. + *\ -l* | *\ -L*)
  50037. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  50038. + esac
  50039. +
  50040. + test -n "$rpath" && \
  50041. + func_warning "\`-rpath' is ignored for archives"
  50042. +
  50043. + test -n "$xrpath" && \
  50044. + func_warning "\`-R' is ignored for archives"
  50045. +
  50046. + test -n "$vinfo" && \
  50047. + func_warning "\`-version-info/-version-number' is ignored for archives"
  50048. +
  50049. + test -n "$release" && \
  50050. + func_warning "\`-release' is ignored for archives"
  50051. +
  50052. + test -n "$export_symbols$export_symbols_regex" && \
  50053. + func_warning "\`-export-symbols' is ignored for archives"
  50054. +
  50055. + # Now set the variables for building old libraries.
  50056. + build_libtool_libs=no
  50057. + oldlibs="$output"
  50058. + objs="$objs$old_deplibs"
  50059. + ;;
  50060. +
  50061. + lib)
  50062. + # Make sure we only generate libraries of the form `libNAME.la'.
  50063. + case $outputname in
  50064. + lib*)
  50065. + func_stripname 'lib' '.la' "$outputname"
  50066. + name=$func_stripname_result
  50067. + eval shared_ext=\"$shrext_cmds\"
  50068. + eval libname=\"$libname_spec\"
  50069. + ;;
  50070. + *)
  50071. + test "$module" = no && \
  50072. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  50073. +
  50074. + if test "$need_lib_prefix" != no; then
  50075. + # Add the "lib" prefix for modules if required
  50076. + func_stripname '' '.la' "$outputname"
  50077. + name=$func_stripname_result
  50078. + eval shared_ext=\"$shrext_cmds\"
  50079. + eval libname=\"$libname_spec\"
  50080. + else
  50081. + func_stripname '' '.la' "$outputname"
  50082. + libname=$func_stripname_result
  50083. + fi
  50084. + ;;
  50085. + esac
  50086. +
  50087. + if test -n "$objs"; then
  50088. + if test "$deplibs_check_method" != pass_all; then
  50089. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  50090. + else
  50091. + $ECHO
  50092. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  50093. + $ECHO "*** objects $objs is not portable!"
  50094. + libobjs="$libobjs $objs"
  50095. + fi
  50096. + fi
  50097. +
  50098. + test "$dlself" != no && \
  50099. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  50100. +
  50101. + set dummy $rpath
  50102. + shift
  50103. + test "$#" -gt 1 && \
  50104. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  50105. +
  50106. + install_libdir="$1"
  50107. +
  50108. + oldlibs=
  50109. + if test -z "$rpath"; then
  50110. + if test "$build_libtool_libs" = yes; then
  50111. + # Building a libtool convenience library.
  50112. + # Some compilers have problems with a `.al' extension so
  50113. + # convenience libraries should have the same extension an
  50114. + # archive normally would.
  50115. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  50116. + build_libtool_libs=convenience
  50117. + build_old_libs=yes
  50118. + fi
  50119. +
  50120. + test -n "$vinfo" && \
  50121. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  50122. +
  50123. + test -n "$release" && \
  50124. + func_warning "\`-release' is ignored for convenience libraries"
  50125. + else
  50126. +
  50127. + # Parse the version information argument.
  50128. + save_ifs="$IFS"; IFS=':'
  50129. + set dummy $vinfo 0 0 0
  50130. + shift
  50131. + IFS="$save_ifs"
  50132. +
  50133. + test -n "$7" && \
  50134. + func_fatal_help "too many parameters to \`-version-info'"
  50135. +
  50136. + # convert absolute version numbers to libtool ages
  50137. + # this retains compatibility with .la files and attempts
  50138. + # to make the code below a bit more comprehensible
  50139. +
  50140. + case $vinfo_number in
  50141. + yes)
  50142. + number_major="$1"
  50143. + number_minor="$2"
  50144. + number_revision="$3"
  50145. + #
  50146. + # There are really only two kinds -- those that
  50147. + # use the current revision as the major version
  50148. + # and those that subtract age and use age as
  50149. + # a minor version. But, then there is irix
  50150. + # which has an extra 1 added just for fun
  50151. + #
  50152. + case $version_type in
  50153. + darwin|linux|osf|windows|none)
  50154. + func_arith $number_major + $number_minor
  50155. + current=$func_arith_result
  50156. + age="$number_minor"
  50157. + revision="$number_revision"
  50158. + ;;
  50159. + freebsd-aout|freebsd-elf|sunos)
  50160. + current="$number_major"
  50161. + revision="$number_minor"
  50162. + age="0"
  50163. + ;;
  50164. + irix|nonstopux)
  50165. + func_arith $number_major + $number_minor
  50166. + current=$func_arith_result
  50167. + age="$number_minor"
  50168. + revision="$number_minor"
  50169. + lt_irix_increment=no
  50170. + ;;
  50171. + *)
  50172. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  50173. + ;;
  50174. + esac
  50175. + ;;
  50176. + no)
  50177. + current="$1"
  50178. + revision="$2"
  50179. + age="$3"
  50180. + ;;
  50181. + esac
  50182. +
  50183. + # Check that each of the things are valid numbers.
  50184. + case $current in
  50185. + 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]) ;;
  50186. + *)
  50187. + func_error "CURRENT \`$current' must be a nonnegative integer"
  50188. + func_fatal_error "\`$vinfo' is not valid version information"
  50189. + ;;
  50190. + esac
  50191. +
  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. + func_error "REVISION \`$revision' must be a nonnegative integer"
  50196. + func_fatal_error "\`$vinfo' is not valid version information"
  50197. + ;;
  50198. + esac
  50199. +
  50200. + case $age in
  50201. + 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]) ;;
  50202. + *)
  50203. + func_error "AGE \`$age' must be a nonnegative integer"
  50204. + func_fatal_error "\`$vinfo' is not valid version information"
  50205. + ;;
  50206. + esac
  50207. +
  50208. + if test "$age" -gt "$current"; then
  50209. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  50210. + func_fatal_error "\`$vinfo' is not valid version information"
  50211. + fi
  50212. +
  50213. + # Calculate the version variables.
  50214. + major=
  50215. + versuffix=
  50216. + verstring=
  50217. + case $version_type in
  50218. + none) ;;
  50219. +
  50220. + darwin)
  50221. + # Like Linux, but with the current version available in
  50222. + # verstring for coding it into the library header
  50223. + func_arith $current - $age
  50224. + major=.$func_arith_result
  50225. + versuffix="$major.$age.$revision"
  50226. + # Darwin ld doesn't like 0 for these options...
  50227. + func_arith $current + 1
  50228. + minor_current=$func_arith_result
  50229. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  50230. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  50231. + ;;
  50232. +
  50233. + freebsd-aout)
  50234. + major=".$current"
  50235. + versuffix=".$current.$revision";
  50236. + ;;
  50237. +
  50238. + freebsd-elf)
  50239. + major=".$current"
  50240. + versuffix=".$current"
  50241. + ;;
  50242. +
  50243. + irix | nonstopux)
  50244. + if test "X$lt_irix_increment" = "Xno"; then
  50245. + func_arith $current - $age
  50246. + else
  50247. + func_arith $current - $age + 1
  50248. + fi
  50249. + major=$func_arith_result
  50250. +
  50251. + case $version_type in
  50252. + nonstopux) verstring_prefix=nonstopux ;;
  50253. + *) verstring_prefix=sgi ;;
  50254. + esac
  50255. + verstring="$verstring_prefix$major.$revision"
  50256. +
  50257. + # Add in all the interfaces that we are compatible with.
  50258. + loop=$revision
  50259. + while test "$loop" -ne 0; do
  50260. + func_arith $revision - $loop
  50261. + iface=$func_arith_result
  50262. + func_arith $loop - 1
  50263. + loop=$func_arith_result
  50264. + verstring="$verstring_prefix$major.$iface:$verstring"
  50265. + done
  50266. +
  50267. + # Before this point, $major must not contain `.'.
  50268. + major=.$major
  50269. + versuffix="$major.$revision"
  50270. + ;;
  50271. +
  50272. + linux)
  50273. + func_arith $current - $age
  50274. + major=.$func_arith_result
  50275. + versuffix="$major.$age.$revision"
  50276. + ;;
  50277. +
  50278. + osf)
  50279. + func_arith $current - $age
  50280. + major=.$func_arith_result
  50281. + versuffix=".$current.$age.$revision"
  50282. + verstring="$current.$age.$revision"
  50283. +
  50284. + # Add in all the interfaces that we are compatible with.
  50285. + loop=$age
  50286. + while test "$loop" -ne 0; do
  50287. + func_arith $current - $loop
  50288. + iface=$func_arith_result
  50289. + func_arith $loop - 1
  50290. + loop=$func_arith_result
  50291. + verstring="$verstring:${iface}.0"
  50292. + done
  50293. +
  50294. + # Make executables depend on our current version.
  50295. + verstring="$verstring:${current}.0"
  50296. + ;;
  50297. +
  50298. + qnx)
  50299. + major=".$current"
  50300. + versuffix=".$current"
  50301. + ;;
  50302. +
  50303. + sunos)
  50304. + major=".$current"
  50305. + versuffix=".$current.$revision"
  50306. + ;;
  50307. +
  50308. + windows)
  50309. + # Use '-' rather than '.', since we only want one
  50310. + # extension on DOS 8.3 filesystems.
  50311. + func_arith $current - $age
  50312. + major=$func_arith_result
  50313. + versuffix="-$major"
  50314. + ;;
  50315. +
  50316. + *)
  50317. + func_fatal_configuration "unknown library version type \`$version_type'"
  50318. + ;;
  50319. + esac
  50320. +
  50321. + # Clear the version info if we defaulted, and they specified a release.
  50322. + if test -z "$vinfo" && test -n "$release"; then
  50323. + major=
  50324. + case $version_type in
  50325. + darwin)
  50326. + # we can't check for "0.0" in archive_cmds due to quoting
  50327. + # problems, so we reset it completely
  50328. + verstring=
  50329. + ;;
  50330. + *)
  50331. + verstring="0.0"
  50332. + ;;
  50333. + esac
  50334. + if test "$need_version" = no; then
  50335. + versuffix=
  50336. + else
  50337. + versuffix=".0.0"
  50338. + fi
  50339. + fi
  50340. +
  50341. + # Remove version info from name if versioning should be avoided
  50342. + if test "$avoid_version" = yes && test "$need_version" = no; then
  50343. + major=
  50344. + versuffix=
  50345. + verstring=""
  50346. + fi
  50347. +
  50348. + # Check to see if the archive will have undefined symbols.
  50349. + if test "$allow_undefined" = yes; then
  50350. + if test "$allow_undefined_flag" = unsupported; then
  50351. + func_warning "undefined symbols not allowed in $host shared libraries"
  50352. + build_libtool_libs=no
  50353. + build_old_libs=yes
  50354. + fi
  50355. + else
  50356. + # Don't allow undefined symbols.
  50357. + allow_undefined_flag="$no_undefined_flag"
  50358. + fi
  50359. +
  50360. + fi
  50361. +
  50362. + func_generate_dlsyms "$libname" "$libname" "yes"
  50363. + libobjs="$libobjs $symfileobj"
  50364. + test "X$libobjs" = "X " && libobjs=
  50365. +
  50366. + if test "$mode" != relink; then
  50367. + # Remove our outputs, but don't remove object files since they
  50368. + # may have been created when compiling PIC objects.
  50369. + removelist=
  50370. + tempremovelist=`$ECHO "$output_objdir/*"`
  50371. + for p in $tempremovelist; do
  50372. + case $p in
  50373. + *.$objext | *.gcno)
  50374. + ;;
  50375. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  50376. + if test "X$precious_files_regex" != "X"; then
  50377. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  50378. + then
  50379. + continue
  50380. + fi
  50381. + fi
  50382. + removelist="$removelist $p"
  50383. + ;;
  50384. + *) ;;
  50385. + esac
  50386. + done
  50387. + test -n "$removelist" && \
  50388. + func_show_eval "${RM}r \$removelist"
  50389. + fi
  50390. +
  50391. + # Now set the variables for building old libraries.
  50392. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  50393. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  50394. +
  50395. + # Transform .lo files to .o files.
  50396. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  50397. + fi
  50398. +
  50399. + # Eliminate all temporary directories.
  50400. + #for path in $notinst_path; do
  50401. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  50402. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  50403. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  50404. + #done
  50405. +
  50406. + if test -n "$xrpath"; then
  50407. + # If the user specified any rpath flags, then add them.
  50408. + temp_xrpath=
  50409. + for libdir in $xrpath; do
  50410. + temp_xrpath="$temp_xrpath -R$libdir"
  50411. + case "$finalize_rpath " in
  50412. + *" $libdir "*) ;;
  50413. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  50414. + esac
  50415. + done
  50416. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  50417. + dependency_libs="$temp_xrpath $dependency_libs"
  50418. + fi
  50419. + fi
  50420. +
  50421. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  50422. + old_dlfiles="$dlfiles"
  50423. + dlfiles=
  50424. + for lib in $old_dlfiles; do
  50425. + case " $dlprefiles $dlfiles " in
  50426. + *" $lib "*) ;;
  50427. + *) dlfiles="$dlfiles $lib" ;;
  50428. + esac
  50429. + done
  50430. +
  50431. + # Make sure dlprefiles contains only unique files
  50432. + old_dlprefiles="$dlprefiles"
  50433. + dlprefiles=
  50434. + for lib in $old_dlprefiles; do
  50435. + case "$dlprefiles " in
  50436. + *" $lib "*) ;;
  50437. + *) dlprefiles="$dlprefiles $lib" ;;
  50438. + esac
  50439. + done
  50440. +
  50441. + if test "$build_libtool_libs" = yes; then
  50442. + if test -n "$rpath"; then
  50443. + case $host in
  50444. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  50445. + # these systems don't actually have a c library (as such)!
  50446. + ;;
  50447. + *-*-rhapsody* | *-*-darwin1.[012])
  50448. + # Rhapsody C library is in the System framework
  50449. + deplibs="$deplibs System.ltframework"
  50450. + ;;
  50451. + *-*-netbsd*)
  50452. + # Don't link with libc until the a.out ld.so is fixed.
  50453. + ;;
  50454. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50455. + # Do not include libc due to us having libc/libc_r.
  50456. + ;;
  50457. + *-*-sco3.2v5* | *-*-sco5v6*)
  50458. + # Causes problems with __ctype
  50459. + ;;
  50460. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  50461. + # Compiler inserts libc in the correct place for threads to work
  50462. + ;;
  50463. + *)
  50464. + # Add libc to deplibs on all other systems if necessary.
  50465. + if test "$build_libtool_need_lc" = "yes"; then
  50466. + deplibs="$deplibs -lc"
  50467. + fi
  50468. + ;;
  50469. + esac
  50470. + fi
  50471. +
  50472. + # Transform deplibs into only deplibs that can be linked in shared.
  50473. + name_save=$name
  50474. + libname_save=$libname
  50475. + release_save=$release
  50476. + versuffix_save=$versuffix
  50477. + major_save=$major
  50478. + # I'm not sure if I'm treating the release correctly. I think
  50479. + # release should show up in the -l (ie -lgmp5) so we don't want to
  50480. + # add it in twice. Is that correct?
  50481. + release=""
  50482. + versuffix=""
  50483. + major=""
  50484. + newdeplibs=
  50485. + droppeddeps=no
  50486. + case $deplibs_check_method in
  50487. + pass_all)
  50488. + # Don't check for shared/static. Everything works.
  50489. + # This might be a little naive. We might want to check
  50490. + # whether the library exists or not. But this is on
  50491. + # osf3 & osf4 and I'm not really sure... Just
  50492. + # implementing what was already the behavior.
  50493. + newdeplibs=$deplibs
  50494. + ;;
  50495. + test_compile)
  50496. + # This code stresses the "libraries are programs" paradigm to its
  50497. + # limits. Maybe even breaks it. We compile a program, linking it
  50498. + # against the deplibs as a proxy for the library. Then we can check
  50499. + # whether they linked in statically or dynamically with ldd.
  50500. + $opt_dry_run || $RM conftest.c
  50501. + cat > conftest.c <<EOF
  50502. + int main() { return 0; }
  50503. +EOF
  50504. + $opt_dry_run || $RM conftest
  50505. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  50506. + ldd_output=`ldd conftest`
  50507. + for i in $deplibs; do
  50508. + case $i in
  50509. + -l*)
  50510. + func_stripname -l '' "$i"
  50511. + name=$func_stripname_result
  50512. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50513. + case " $predeps $postdeps " in
  50514. + *" $i "*)
  50515. + newdeplibs="$newdeplibs $i"
  50516. + i=""
  50517. + ;;
  50518. + esac
  50519. + fi
  50520. + if test -n "$i" ; then
  50521. + libname=`eval "\\$ECHO \"$libname_spec\""`
  50522. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  50523. + set dummy $deplib_matches; shift
  50524. + deplib_match=$1
  50525. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  50526. + newdeplibs="$newdeplibs $i"
  50527. + else
  50528. + droppeddeps=yes
  50529. + $ECHO
  50530. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  50531. + $ECHO "*** I have the capability to make that library automatically link in when"
  50532. + $ECHO "*** you link to this library. But I can only do this if you have a"
  50533. + $ECHO "*** shared version of the library, which I believe you do not have"
  50534. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  50535. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  50536. + fi
  50537. + fi
  50538. + ;;
  50539. + *)
  50540. + newdeplibs="$newdeplibs $i"
  50541. + ;;
  50542. + esac
  50543. + done
  50544. + else
  50545. + # Error occurred in the first compile. Let's try to salvage
  50546. + # the situation: Compile a separate program for each library.
  50547. + for i in $deplibs; do
  50548. + case $i in
  50549. + -l*)
  50550. + func_stripname -l '' "$i"
  50551. + name=$func_stripname_result
  50552. + $opt_dry_run || $RM conftest
  50553. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  50554. + ldd_output=`ldd conftest`
  50555. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50556. + case " $predeps $postdeps " in
  50557. + *" $i "*)
  50558. + newdeplibs="$newdeplibs $i"
  50559. + i=""
  50560. + ;;
  50561. + esac
  50562. + fi
  50563. + if test -n "$i" ; then
  50564. + libname=`eval "\\$ECHO \"$libname_spec\""`
  50565. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  50566. + set dummy $deplib_matches; shift
  50567. + deplib_match=$1
  50568. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  50569. + newdeplibs="$newdeplibs $i"
  50570. + else
  50571. + droppeddeps=yes
  50572. + $ECHO
  50573. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  50574. + $ECHO "*** I have the capability to make that library automatically link in when"
  50575. + $ECHO "*** you link to this library. But I can only do this if you have a"
  50576. + $ECHO "*** shared version of the library, which you do not appear to have"
  50577. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  50578. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  50579. + fi
  50580. + fi
  50581. + else
  50582. + droppeddeps=yes
  50583. + $ECHO
  50584. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  50585. + $ECHO "*** make it link in! You will probably need to install it or some"
  50586. + $ECHO "*** library that it depends on before this library will be fully"
  50587. + $ECHO "*** functional. Installing it before continuing would be even better."
  50588. + fi
  50589. + ;;
  50590. + *)
  50591. + newdeplibs="$newdeplibs $i"
  50592. + ;;
  50593. + esac
  50594. + done
  50595. + fi
  50596. + ;;
  50597. + file_magic*)
  50598. + set dummy $deplibs_check_method; shift
  50599. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  50600. + for a_deplib in $deplibs; do
  50601. + case $a_deplib in
  50602. + -l*)
  50603. + func_stripname -l '' "$a_deplib"
  50604. + name=$func_stripname_result
  50605. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50606. + case " $predeps $postdeps " in
  50607. + *" $a_deplib "*)
  50608. + newdeplibs="$newdeplibs $a_deplib"
  50609. + a_deplib=""
  50610. + ;;
  50611. + esac
  50612. + fi
  50613. + if test -n "$a_deplib" ; then
  50614. + libname=`eval "\\$ECHO \"$libname_spec\""`
  50615. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50616. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  50617. + for potent_lib in $potential_libs; do
  50618. + # Follow soft links.
  50619. + if ls -lLd "$potent_lib" 2>/dev/null |
  50620. + $GREP " -> " >/dev/null; then
  50621. + continue
  50622. + fi
  50623. + # The statement above tries to avoid entering an
  50624. + # endless loop below, in case of cyclic links.
  50625. + # We might still enter an endless loop, since a link
  50626. + # loop can be closed while we follow links,
  50627. + # but so what?
  50628. + potlib="$potent_lib"
  50629. + while test -h "$potlib" 2>/dev/null; do
  50630. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  50631. + case $potliblink in
  50632. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  50633. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  50634. + esac
  50635. + done
  50636. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  50637. + $SED -e 10q |
  50638. + $EGREP "$file_magic_regex" > /dev/null; then
  50639. + newdeplibs="$newdeplibs $a_deplib"
  50640. + a_deplib=""
  50641. + break 2
  50642. + fi
  50643. + done
  50644. + done
  50645. + fi
  50646. + if test -n "$a_deplib" ; then
  50647. + droppeddeps=yes
  50648. + $ECHO
  50649. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  50650. + $ECHO "*** I have the capability to make that library automatically link in when"
  50651. + $ECHO "*** you link to this library. But I can only do this if you have a"
  50652. + $ECHO "*** shared version of the library, which you do not appear to have"
  50653. + $ECHO "*** because I did check the linker path looking for a file starting"
  50654. + if test -z "$potlib" ; then
  50655. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  50656. + else
  50657. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  50658. + $ECHO "*** using a file magic. Last file checked: $potlib"
  50659. + fi
  50660. + fi
  50661. + ;;
  50662. + *)
  50663. + # Add a -L argument.
  50664. + newdeplibs="$newdeplibs $a_deplib"
  50665. + ;;
  50666. + esac
  50667. + done # Gone through all deplibs.
  50668. + ;;
  50669. + match_pattern*)
  50670. + set dummy $deplibs_check_method; shift
  50671. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  50672. + for a_deplib in $deplibs; do
  50673. + case $a_deplib in
  50674. + -l*)
  50675. + func_stripname -l '' "$a_deplib"
  50676. + name=$func_stripname_result
  50677. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50678. + case " $predeps $postdeps " in
  50679. + *" $a_deplib "*)
  50680. + newdeplibs="$newdeplibs $a_deplib"
  50681. + a_deplib=""
  50682. + ;;
  50683. + esac
  50684. + fi
  50685. + if test -n "$a_deplib" ; then
  50686. + libname=`eval "\\$ECHO \"$libname_spec\""`
  50687. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50688. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  50689. + for potent_lib in $potential_libs; do
  50690. + potlib="$potent_lib" # see symlink-check above in file_magic test
  50691. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  50692. + $EGREP "$match_pattern_regex" > /dev/null; then
  50693. + newdeplibs="$newdeplibs $a_deplib"
  50694. + a_deplib=""
  50695. + break 2
  50696. + fi
  50697. + done
  50698. + done
  50699. + fi
  50700. + if test -n "$a_deplib" ; then
  50701. + droppeddeps=yes
  50702. + $ECHO
  50703. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  50704. + $ECHO "*** I have the capability to make that library automatically link in when"
  50705. + $ECHO "*** you link to this library. But I can only do this if you have a"
  50706. + $ECHO "*** shared version of the library, which you do not appear to have"
  50707. + $ECHO "*** because I did check the linker path looking for a file starting"
  50708. + if test -z "$potlib" ; then
  50709. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  50710. + else
  50711. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  50712. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  50713. + fi
  50714. + fi
  50715. + ;;
  50716. + *)
  50717. + # Add a -L argument.
  50718. + newdeplibs="$newdeplibs $a_deplib"
  50719. + ;;
  50720. + esac
  50721. + done # Gone through all deplibs.
  50722. + ;;
  50723. + none | unknown | *)
  50724. + newdeplibs=""
  50725. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  50726. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  50727. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50728. + for i in $predeps $postdeps ; do
  50729. + # can't use Xsed below, because $i might contain '/'
  50730. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  50731. + done
  50732. + fi
  50733. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  50734. + $GREP . >/dev/null; then
  50735. + $ECHO
  50736. + if test "X$deplibs_check_method" = "Xnone"; then
  50737. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  50738. + else
  50739. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  50740. + fi
  50741. + $ECHO "*** All declared inter-library dependencies are being dropped."
  50742. + droppeddeps=yes
  50743. + fi
  50744. + ;;
  50745. + esac
  50746. + versuffix=$versuffix_save
  50747. + major=$major_save
  50748. + release=$release_save
  50749. + libname=$libname_save
  50750. + name=$name_save
  50751. - # If there was a directory component, then change thisdir.
  50752. - if test \"x\$destdir\" != \"x\$file\"; then
  50753. - case \"\$destdir\" in
  50754. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  50755. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  50756. + case $host in
  50757. + *-*-rhapsody* | *-*-darwin1.[012])
  50758. + # On Rhapsody replace the C library with the System framework
  50759. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  50760. + ;;
  50761. + esac
  50762. +
  50763. + if test "$droppeddeps" = yes; then
  50764. + if test "$module" = yes; then
  50765. + $ECHO
  50766. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  50767. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  50768. + $ECHO "*** a static module, that should work as long as the dlopening"
  50769. + $ECHO "*** application is linked with the -dlopen flag."
  50770. + if test -z "$global_symbol_pipe"; then
  50771. + $ECHO
  50772. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  50773. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  50774. + $ECHO "*** not find such a program. So, this module is probably useless."
  50775. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  50776. + fi
  50777. + if test "$build_old_libs" = no; then
  50778. + oldlibs="$output_objdir/$libname.$libext"
  50779. + build_libtool_libs=module
  50780. + build_old_libs=yes
  50781. + else
  50782. + build_libtool_libs=no
  50783. + fi
  50784. + else
  50785. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  50786. + $ECHO "*** automatically added whenever a program is linked with this library"
  50787. + $ECHO "*** or is declared to -dlopen it."
  50788. +
  50789. + if test "$allow_undefined" = no; then
  50790. + $ECHO
  50791. + $ECHO "*** Since this library must not contain undefined symbols,"
  50792. + $ECHO "*** because either the platform does not support them or"
  50793. + $ECHO "*** it was explicitly requested with -no-undefined,"
  50794. + $ECHO "*** libtool will only create a static version of it."
  50795. + if test "$build_old_libs" = no; then
  50796. + oldlibs="$output_objdir/$libname.$libext"
  50797. + build_libtool_libs=module
  50798. + build_old_libs=yes
  50799. + else
  50800. + build_libtool_libs=no
  50801. + fi
  50802. + fi
  50803. + fi
  50804. + fi
  50805. + # Done checking deplibs!
  50806. + deplibs=$newdeplibs
  50807. + fi
  50808. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  50809. + case $host in
  50810. + *-*-darwin*)
  50811. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50812. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50813. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  50814. + ;;
  50815. esac
  50816. - fi
  50817. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  50818. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  50819. - done
  50820. + # move library search paths that coincide with paths to not yet
  50821. + # installed libraries to the beginning of the library search list
  50822. + new_libs=
  50823. + for path in $notinst_path; do
  50824. + case " $new_libs " in
  50825. + *" -L$path/$objdir "*) ;;
  50826. + *)
  50827. + case " $deplibs " in
  50828. + *" -L$path/$objdir "*)
  50829. + new_libs="$new_libs -L$path/$objdir" ;;
  50830. + esac
  50831. + ;;
  50832. + esac
  50833. + done
  50834. + for deplib in $deplibs; do
  50835. + case $deplib in
  50836. + -L*)
  50837. + case " $new_libs " in
  50838. + *" $deplib "*) ;;
  50839. + *) new_libs="$new_libs $deplib" ;;
  50840. + esac
  50841. + ;;
  50842. + *) new_libs="$new_libs $deplib" ;;
  50843. + esac
  50844. + done
  50845. + deplibs="$new_libs"
  50846. - # Try to get the absolute directory name.
  50847. - absdir=\`cd \"\$thisdir\" && pwd\`
  50848. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  50849. -"
  50850. + # All the library-specific variables (install_libdir is set above).
  50851. + library_names=
  50852. + old_library=
  50853. + dlname=
  50854. +
  50855. + # Test again, we may have decided not to build it any more
  50856. + if test "$build_libtool_libs" = yes; then
  50857. + if test "$hardcode_into_libs" = yes; then
  50858. + # Hardcode the library paths
  50859. + hardcode_libdirs=
  50860. + dep_rpath=
  50861. + rpath="$finalize_rpath"
  50862. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  50863. + for libdir in $rpath; do
  50864. + if test -n "$hardcode_libdir_flag_spec"; then
  50865. + if test -n "$hardcode_libdir_separator"; then
  50866. + if test -z "$hardcode_libdirs"; then
  50867. + hardcode_libdirs="$libdir"
  50868. + else
  50869. + # Just accumulate the unique libdirs.
  50870. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  50871. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  50872. + ;;
  50873. + *)
  50874. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  50875. + ;;
  50876. + esac
  50877. + fi
  50878. + else
  50879. + eval flag=\"$hardcode_libdir_flag_spec\"
  50880. + dep_rpath="$dep_rpath $flag"
  50881. + fi
  50882. + elif test -n "$runpath_var"; then
  50883. + case "$perm_rpath " in
  50884. + *" $libdir "*) ;;
  50885. + *) perm_rpath="$perm_rpath $libdir" ;;
  50886. + esac
  50887. + fi
  50888. + done
  50889. + # Substitute the hardcoded libdirs into the rpath.
  50890. + if test -n "$hardcode_libdir_separator" &&
  50891. + test -n "$hardcode_libdirs"; then
  50892. + libdir="$hardcode_libdirs"
  50893. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  50894. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  50895. + else
  50896. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  50897. + fi
  50898. + fi
  50899. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  50900. + # We should set the runpath_var.
  50901. + rpath=
  50902. + for dir in $perm_rpath; do
  50903. + rpath="$rpath$dir:"
  50904. + done
  50905. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  50906. + fi
  50907. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  50908. + fi
  50909. - if test "$fast_install" = yes; then
  50910. - $echo >> $output "\
  50911. - program=lt-'$outputname'$exeext
  50912. - progdir=\"\$thisdir/$objdir\"
  50913. + shlibpath="$finalize_shlibpath"
  50914. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  50915. + if test -n "$shlibpath"; then
  50916. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  50917. + fi
  50918. - if test ! -f \"\$progdir/\$program\" || \\
  50919. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  50920. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  50921. + # Get the real and link names of the library.
  50922. + eval shared_ext=\"$shrext_cmds\"
  50923. + eval library_names=\"$library_names_spec\"
  50924. + set dummy $library_names
  50925. + shift
  50926. + realname="$1"
  50927. + shift
  50928. - file=\"\$\$-\$program\"
  50929. + if test -n "$soname_spec"; then
  50930. + eval soname=\"$soname_spec\"
  50931. + else
  50932. + soname="$realname"
  50933. + fi
  50934. + if test -z "$dlname"; then
  50935. + dlname=$soname
  50936. + fi
  50937. - if test ! -d \"\$progdir\"; then
  50938. - $mkdir \"\$progdir\"
  50939. - else
  50940. - $rm \"\$progdir/\$file\"
  50941. - fi"
  50942. + lib="$output_objdir/$realname"
  50943. + linknames=
  50944. + for link
  50945. + do
  50946. + linknames="$linknames $link"
  50947. + done
  50948. - $echo >> $output "\
  50949. + # Use standard objects if they are pic
  50950. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50951. + test "X$libobjs" = "X " && libobjs=
  50952. - # relink executable if necessary
  50953. - if test -n \"\$relink_command\"; then
  50954. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  50955. - else
  50956. - $echo \"\$relink_command_output\" >&2
  50957. - $rm \"\$progdir/\$file\"
  50958. - exit $EXIT_FAILURE
  50959. - fi
  50960. - fi
  50961. + delfiles=
  50962. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50963. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  50964. + export_symbols="$output_objdir/$libname.uexp"
  50965. + delfiles="$delfiles $export_symbols"
  50966. + fi
  50967. +
  50968. + orig_export_symbols=
  50969. + case $host_os in
  50970. + cygwin* | mingw* | cegcc*)
  50971. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  50972. + # exporting using user supplied symfile
  50973. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  50974. + # and it's NOT already a .def file. Must figure out
  50975. + # which of the given symbols are data symbols and tag
  50976. + # them as such. So, trigger use of export_symbols_cmds.
  50977. + # export_symbols gets reassigned inside the "prepare
  50978. + # the list of exported symbols" if statement, so the
  50979. + # include_expsyms logic still works.
  50980. + orig_export_symbols="$export_symbols"
  50981. + export_symbols=
  50982. + always_export_symbols=yes
  50983. + fi
  50984. + fi
  50985. + ;;
  50986. + esac
  50987. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  50988. - { $rm \"\$progdir/\$program\";
  50989. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  50990. - $rm \"\$progdir/\$file\"
  50991. - fi"
  50992. - else
  50993. - $echo >> $output "\
  50994. - program='$outputname'
  50995. - progdir=\"\$thisdir/$objdir\"
  50996. -"
  50997. + # Prepare the list of exported symbols
  50998. + if test -z "$export_symbols"; then
  50999. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  51000. + func_verbose "generating symbol list for \`$libname.la'"
  51001. + export_symbols="$output_objdir/$libname.exp"
  51002. + $opt_dry_run || $RM $export_symbols
  51003. + cmds=$export_symbols_cmds
  51004. + save_ifs="$IFS"; IFS='~'
  51005. + for cmd in $cmds; do
  51006. + IFS="$save_ifs"
  51007. + eval cmd=\"$cmd\"
  51008. + func_len " $cmd"
  51009. + len=$func_len_result
  51010. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51011. + func_show_eval "$cmd" 'exit $?'
  51012. + skipped_export=false
  51013. + else
  51014. + # The command line is too long to execute in one step.
  51015. + func_verbose "using reloadable object file for export list..."
  51016. + skipped_export=:
  51017. + # Break out early, otherwise skipped_export may be
  51018. + # set to false by a later but shorter cmd.
  51019. + break
  51020. + fi
  51021. + done
  51022. + IFS="$save_ifs"
  51023. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  51024. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  51025. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  51026. + fi
  51027. + fi
  51028. fi
  51029. - $echo >> $output "\
  51030. -
  51031. - if test -f \"\$progdir/\$program\"; then"
  51032. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  51033. + tmp_export_symbols="$export_symbols"
  51034. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  51035. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  51036. + fi
  51037. +
  51038. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  51039. + # The given exports_symbols file has to be filtered, so filter it.
  51040. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  51041. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  51042. + # 's' commands which not all seds can handle. GNU sed should be fine
  51043. + # though. Also, the filter scales superlinearly with the number of
  51044. + # global variables. join(1) would be nice here, but unfortunately
  51045. + # isn't a blessed tool.
  51046. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  51047. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  51048. + export_symbols=$output_objdir/$libname.def
  51049. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  51050. + fi
  51051. - # Export our shlibpath_var if we have one.
  51052. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51053. - $echo >> $output "\
  51054. - # Add our own library path to $shlibpath_var
  51055. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  51056. + tmp_deplibs=
  51057. + for test_deplib in $deplibs; do
  51058. + case " $convenience " in
  51059. + *" $test_deplib "*) ;;
  51060. + *)
  51061. + tmp_deplibs="$tmp_deplibs $test_deplib"
  51062. + ;;
  51063. + esac
  51064. + done
  51065. + deplibs="$tmp_deplibs"
  51066. - # Some systems cannot cope with colon-terminated $shlibpath_var
  51067. - # The second colon is a workaround for a bug in BeOS R4 sed
  51068. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  51069. + if test -n "$convenience"; then
  51070. + if test -n "$whole_archive_flag_spec" &&
  51071. + test "$compiler_needs_object" = yes &&
  51072. + test -z "$libobjs"; then
  51073. + # extract the archives, so we have objects to list.
  51074. + # TODO: could optimize this to just extract one archive.
  51075. + whole_archive_flag_spec=
  51076. + fi
  51077. + if test -n "$whole_archive_flag_spec"; then
  51078. + save_libobjs=$libobjs
  51079. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51080. + test "X$libobjs" = "X " && libobjs=
  51081. + else
  51082. + gentop="$output_objdir/${outputname}x"
  51083. + generated="$generated $gentop"
  51084. - export $shlibpath_var
  51085. -"
  51086. + func_extract_archives $gentop $convenience
  51087. + libobjs="$libobjs $func_extract_archives_result"
  51088. + test "X$libobjs" = "X " && libobjs=
  51089. + fi
  51090. fi
  51091. - # fixup the dll searchpath if we need to.
  51092. - if test -n "$dllsearchpath"; then
  51093. - $echo >> $output "\
  51094. - # Add the dll search path components to the executable PATH
  51095. - PATH=$dllsearchpath:\$PATH
  51096. -"
  51097. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  51098. + eval flag=\"$thread_safe_flag_spec\"
  51099. + linker_flags="$linker_flags $flag"
  51100. fi
  51101. - $echo >> $output "\
  51102. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51103. - # Run the actual program with our arguments.
  51104. -"
  51105. - case $host in
  51106. - # Backslashes separate directories on plain windows
  51107. - *-*-mingw | *-*-os2*)
  51108. - $echo >> $output "\
  51109. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  51110. -"
  51111. - ;;
  51112. -
  51113. - *)
  51114. - $echo >> $output "\
  51115. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  51116. -"
  51117. - ;;
  51118. - esac
  51119. - $echo >> $output "\
  51120. - \$echo \"\$0: cannot exec \$program \$*\"
  51121. - exit $EXIT_FAILURE
  51122. - fi
  51123. - else
  51124. - # The program doesn't exist.
  51125. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  51126. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  51127. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  51128. - exit $EXIT_FAILURE
  51129. - fi
  51130. -fi\
  51131. -"
  51132. - chmod +x $output
  51133. - fi
  51134. - exit $EXIT_SUCCESS
  51135. - ;;
  51136. - esac
  51137. -
  51138. - # See if we need to build an old-fashioned archive.
  51139. - for oldlib in $oldlibs; do
  51140. + # Make a backup of the uninstalled library when relinking
  51141. + if test "$mode" = relink; then
  51142. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  51143. + fi
  51144. - if test "$build_libtool_libs" = convenience; then
  51145. - oldobjs="$libobjs_save"
  51146. - addlibs="$convenience"
  51147. - build_libtool_libs=no
  51148. - else
  51149. - if test "$build_libtool_libs" = module; then
  51150. - oldobjs="$libobjs_save"
  51151. - build_libtool_libs=no
  51152. + # Do each of the archive commands.
  51153. + if test "$module" = yes && test -n "$module_cmds" ; then
  51154. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51155. + eval test_cmds=\"$module_expsym_cmds\"
  51156. + cmds=$module_expsym_cmds
  51157. + else
  51158. + eval test_cmds=\"$module_cmds\"
  51159. + cmds=$module_cmds
  51160. + fi
  51161. else
  51162. - oldobjs="$old_deplibs $non_pic_objects"
  51163. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51164. + eval test_cmds=\"$archive_expsym_cmds\"
  51165. + cmds=$archive_expsym_cmds
  51166. + else
  51167. + eval test_cmds=\"$archive_cmds\"
  51168. + cmds=$archive_cmds
  51169. + fi
  51170. fi
  51171. - addlibs="$old_convenience"
  51172. - fi
  51173. - if test -n "$addlibs"; then
  51174. - gentop="$output_objdir/${outputname}x"
  51175. - generated="$generated $gentop"
  51176. + if test "X$skipped_export" != "X:" &&
  51177. + func_len " $test_cmds" &&
  51178. + len=$func_len_result &&
  51179. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51180. + :
  51181. + else
  51182. + # The command line is too long to link in one step, link piecewise
  51183. + # or, if using GNU ld and skipped_export is not :, use a linker
  51184. + # script.
  51185. - func_extract_archives $gentop $addlibs
  51186. - oldobjs="$oldobjs $func_extract_archives_result"
  51187. - fi
  51188. + # Save the value of $output and $libobjs because we want to
  51189. + # use them later. If we have whole_archive_flag_spec, we
  51190. + # want to use save_libobjs as it was before
  51191. + # whole_archive_flag_spec was expanded, because we can't
  51192. + # assume the linker understands whole_archive_flag_spec.
  51193. + # This may have to be revisited, in case too many
  51194. + # convenience libraries get linked in and end up exceeding
  51195. + # the spec.
  51196. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  51197. + save_libobjs=$libobjs
  51198. + fi
  51199. + save_output=$output
  51200. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  51201. - # Do each command in the archive commands.
  51202. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  51203. - cmds=$old_archive_from_new_cmds
  51204. - else
  51205. - # POSIX demands no paths to be encoded in archives. We have
  51206. - # to avoid creating archives with duplicate basenames if we
  51207. - # might have to extract them afterwards, e.g., when creating a
  51208. - # static archive out of a convenience library, or when linking
  51209. - # the entirety of a libtool archive into another (currently
  51210. - # not supported by libtool).
  51211. - if (for obj in $oldobjs
  51212. + # Clear the reloadable object creation command queue and
  51213. + # initialize k to one.
  51214. + test_cmds=
  51215. + concat_cmds=
  51216. + objlist=
  51217. + last_robj=
  51218. + k=1
  51219. +
  51220. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  51221. + output=${output_objdir}/${output_la}.lnkscript
  51222. + func_verbose "creating GNU ld script: $output"
  51223. + $ECHO 'INPUT (' > $output
  51224. + for obj in $save_libobjs
  51225. do
  51226. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  51227. - done | sort | sort -uc >/dev/null 2>&1); then
  51228. - :
  51229. - else
  51230. - $echo "copying selected object files to avoid basename conflicts..."
  51231. + $ECHO "$obj" >> $output
  51232. + done
  51233. + $ECHO ')' >> $output
  51234. + delfiles="$delfiles $output"
  51235. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  51236. + output=${output_objdir}/${output_la}.lnk
  51237. + func_verbose "creating linker input file list: $output"
  51238. + : > $output
  51239. + set x $save_libobjs
  51240. + shift
  51241. + firstobj=
  51242. + if test "$compiler_needs_object" = yes; then
  51243. + firstobj="$1 "
  51244. + shift
  51245. + fi
  51246. + for obj
  51247. + do
  51248. + $ECHO "$obj" >> $output
  51249. + done
  51250. + delfiles="$delfiles $output"
  51251. + output=$firstobj\"$file_list_spec$output\"
  51252. + else
  51253. + if test -n "$save_libobjs"; then
  51254. + func_verbose "creating reloadable object files..."
  51255. + output=$output_objdir/$output_la-${k}.$objext
  51256. + eval test_cmds=\"$reload_cmds\"
  51257. + func_len " $test_cmds"
  51258. + len0=$func_len_result
  51259. + len=$len0
  51260. +
  51261. + # Loop over the list of objects to be linked.
  51262. + for obj in $save_libobjs
  51263. + do
  51264. + func_len " $obj"
  51265. + func_arith $len + $func_len_result
  51266. + len=$func_arith_result
  51267. + if test "X$objlist" = X ||
  51268. + test "$len" -lt "$max_cmd_len"; then
  51269. + func_append objlist " $obj"
  51270. + else
  51271. + # The command $test_cmds is almost too long, add a
  51272. + # command to the queue.
  51273. + if test "$k" -eq 1 ; then
  51274. + # The first file doesn't have a previous command to add.
  51275. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  51276. + else
  51277. + # All subsequent reloadable object files will link in
  51278. + # the last one created.
  51279. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  51280. + fi
  51281. + last_robj=$output_objdir/$output_la-${k}.$objext
  51282. + func_arith $k + 1
  51283. + k=$func_arith_result
  51284. + output=$output_objdir/$output_la-${k}.$objext
  51285. + objlist=$obj
  51286. + func_len " $last_robj"
  51287. + func_arith $len0 + $func_len_result
  51288. + len=$func_arith_result
  51289. + fi
  51290. + done
  51291. + # Handle the remaining objects by creating one last
  51292. + # reloadable object file. All subsequent reloadable object
  51293. + # files will link in the last one created.
  51294. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51295. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  51296. + if test -n "$last_robj"; then
  51297. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  51298. + fi
  51299. + delfiles="$delfiles $output"
  51300. - if test -z "$gentop"; then
  51301. - gentop="$output_objdir/${outputname}x"
  51302. - generated="$generated $gentop"
  51303. + else
  51304. + output=
  51305. + fi
  51306. +
  51307. + if ${skipped_export-false}; then
  51308. + func_verbose "generating symbol list for \`$libname.la'"
  51309. + export_symbols="$output_objdir/$libname.exp"
  51310. + $opt_dry_run || $RM $export_symbols
  51311. + libobjs=$output
  51312. + # Append the command to create the export file.
  51313. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51314. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  51315. + if test -n "$last_robj"; then
  51316. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  51317. + fi
  51318. + fi
  51319. +
  51320. + test -n "$save_libobjs" &&
  51321. + func_verbose "creating a temporary reloadable object file: $output"
  51322. +
  51323. + # Loop through the commands generated above and execute them.
  51324. + save_ifs="$IFS"; IFS='~'
  51325. + for cmd in $concat_cmds; do
  51326. + IFS="$save_ifs"
  51327. + $opt_silent || {
  51328. + func_quote_for_expand "$cmd"
  51329. + eval "func_echo $func_quote_for_expand_result"
  51330. + }
  51331. + $opt_dry_run || eval "$cmd" || {
  51332. + lt_exit=$?
  51333. +
  51334. + # Restore the uninstalled library and exit
  51335. + if test "$mode" = relink; then
  51336. + ( cd "$output_objdir" && \
  51337. + $RM "${realname}T" && \
  51338. + $MV "${realname}U" "$realname" )
  51339. + fi
  51340. +
  51341. + exit $lt_exit
  51342. + }
  51343. + done
  51344. + IFS="$save_ifs"
  51345. - $show "${rm}r $gentop"
  51346. - $run ${rm}r "$gentop"
  51347. - $show "$mkdir $gentop"
  51348. - $run $mkdir "$gentop"
  51349. - exit_status=$?
  51350. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  51351. - exit $exit_status
  51352. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  51353. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  51354. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  51355. fi
  51356. fi
  51357. - save_oldobjs=$oldobjs
  51358. - oldobjs=
  51359. - counter=1
  51360. - for obj in $save_oldobjs
  51361. - do
  51362. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  51363. - case " $oldobjs " in
  51364. - " ") oldobjs=$obj ;;
  51365. - *[\ /]"$objbase "*)
  51366. - while :; do
  51367. - # Make sure we don't pick an alternate name that also
  51368. - # overlaps.
  51369. - newobj=lt$counter-$objbase
  51370. - counter=`expr $counter + 1`
  51371. - case " $oldobjs " in
  51372. - *[\ /]"$newobj "*) ;;
  51373. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  51374. - esac
  51375. - done
  51376. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  51377. - $run ln "$obj" "$gentop/$newobj" ||
  51378. - $run cp "$obj" "$gentop/$newobj"
  51379. - oldobjs="$oldobjs $gentop/$newobj"
  51380. - ;;
  51381. - *) oldobjs="$oldobjs $obj" ;;
  51382. - esac
  51383. - done
  51384. - fi
  51385. + if ${skipped_export-false}; then
  51386. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  51387. + tmp_export_symbols="$export_symbols"
  51388. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  51389. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  51390. + fi
  51391. +
  51392. + if test -n "$orig_export_symbols"; then
  51393. + # The given exports_symbols file has to be filtered, so filter it.
  51394. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  51395. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  51396. + # 's' commands which not all seds can handle. GNU sed should be fine
  51397. + # though. Also, the filter scales superlinearly with the number of
  51398. + # global variables. join(1) would be nice here, but unfortunately
  51399. + # isn't a blessed tool.
  51400. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  51401. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  51402. + export_symbols=$output_objdir/$libname.def
  51403. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  51404. + fi
  51405. + fi
  51406. - eval cmds=\"$old_archive_cmds\"
  51407. + libobjs=$output
  51408. + # Restore the value of output.
  51409. + output=$save_output
  51410. - if len=`expr "X$cmds" : ".*"` &&
  51411. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51412. - cmds=$old_archive_cmds
  51413. - else
  51414. - # the command line is too long to link in one step, link in parts
  51415. - $echo "using piecewise archive linking..."
  51416. - save_RANLIB=$RANLIB
  51417. - RANLIB=:
  51418. - objlist=
  51419. - concat_cmds=
  51420. - save_oldobjs=$oldobjs
  51421. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  51422. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  51423. + test "X$libobjs" = "X " && libobjs=
  51424. + fi
  51425. + # Expand the library linking commands again to reset the
  51426. + # value of $libobjs for piecewise linking.
  51427. - # Is there a better way of finding the last object in the list?
  51428. - for obj in $save_oldobjs
  51429. - do
  51430. - last_oldobj=$obj
  51431. - done
  51432. - for obj in $save_oldobjs
  51433. - do
  51434. - oldobjs="$objlist $obj"
  51435. - objlist="$objlist $obj"
  51436. - eval test_cmds=\"$old_archive_cmds\"
  51437. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51438. - test "$len" -le "$max_cmd_len"; then
  51439. - :
  51440. + # Do each of the archive commands.
  51441. + if test "$module" = yes && test -n "$module_cmds" ; then
  51442. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  51443. + cmds=$module_expsym_cmds
  51444. else
  51445. - # the above command should be used before it gets too long
  51446. - oldobjs=$objlist
  51447. - if test "$obj" = "$last_oldobj" ; then
  51448. - RANLIB=$save_RANLIB
  51449. - fi
  51450. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51451. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  51452. - objlist=
  51453. + cmds=$module_cmds
  51454. fi
  51455. - done
  51456. - RANLIB=$save_RANLIB
  51457. - oldobjs=$objlist
  51458. - if test "X$oldobjs" = "X" ; then
  51459. - eval cmds=\"\$concat_cmds\"
  51460. else
  51461. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  51462. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  51463. + cmds=$archive_expsym_cmds
  51464. + else
  51465. + cmds=$archive_cmds
  51466. + fi
  51467. fi
  51468. fi
  51469. - fi
  51470. - save_ifs="$IFS"; IFS='~'
  51471. - for cmd in $cmds; do
  51472. - eval cmd=\"$cmd\"
  51473. - IFS="$save_ifs"
  51474. - $show "$cmd"
  51475. - $run eval "$cmd" || exit $?
  51476. - done
  51477. - IFS="$save_ifs"
  51478. - done
  51479. - if test -n "$generated"; then
  51480. - $show "${rm}r$generated"
  51481. - $run ${rm}r$generated
  51482. - fi
  51483. + if test -n "$delfiles"; then
  51484. + # Append the command to remove temporary files to $cmds.
  51485. + eval cmds=\"\$cmds~\$RM $delfiles\"
  51486. + fi
  51487. - # Now create the libtool archive.
  51488. - case $output in
  51489. - *.la)
  51490. - old_library=
  51491. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  51492. - $show "creating $output"
  51493. + # Add any objects from preloaded convenience libraries
  51494. + if test -n "$dlprefiles"; then
  51495. + gentop="$output_objdir/${outputname}x"
  51496. + generated="$generated $gentop"
  51497. - # Preserve any variables that may affect compiler behavior
  51498. - for var in $variables_saved_for_relink; do
  51499. - if eval test -z \"\${$var+set}\"; then
  51500. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  51501. - elif eval var_value=\$$var; test -z "$var_value"; then
  51502. - relink_command="$var=; export $var; $relink_command"
  51503. - else
  51504. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  51505. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  51506. + func_extract_archives $gentop $dlprefiles
  51507. + libobjs="$libobjs $func_extract_archives_result"
  51508. + test "X$libobjs" = "X " && libobjs=
  51509. fi
  51510. - done
  51511. - # Quote the link command for shipping.
  51512. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  51513. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  51514. - if test "$hardcode_automatic" = yes ; then
  51515. - relink_command=
  51516. - fi
  51517. + save_ifs="$IFS"; IFS='~'
  51518. + for cmd in $cmds; do
  51519. + IFS="$save_ifs"
  51520. + eval cmd=\"$cmd\"
  51521. + $opt_silent || {
  51522. + func_quote_for_expand "$cmd"
  51523. + eval "func_echo $func_quote_for_expand_result"
  51524. + }
  51525. + $opt_dry_run || eval "$cmd" || {
  51526. + lt_exit=$?
  51527. - # Only create the output if not a dry run.
  51528. - if test -z "$run"; then
  51529. - for installed in no yes; do
  51530. - if test "$installed" = yes; then
  51531. - if test -z "$install_libdir"; then
  51532. - break
  51533. + # Restore the uninstalled library and exit
  51534. + if test "$mode" = relink; then
  51535. + ( cd "$output_objdir" && \
  51536. + $RM "${realname}T" && \
  51537. + $MV "${realname}U" "$realname" )
  51538. fi
  51539. - output="$output_objdir/$outputname"i
  51540. - # Replace all uninstalled libtool libraries with the installed ones
  51541. - newdependency_libs=
  51542. - for deplib in $dependency_libs; do
  51543. - case $deplib in
  51544. - *.la)
  51545. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  51546. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51547. - if test -z "$libdir"; then
  51548. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  51549. - exit $EXIT_FAILURE
  51550. - fi
  51551. - newdependency_libs="$newdependency_libs $libdir/$name"
  51552. - ;;
  51553. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  51554. - esac
  51555. - done
  51556. - dependency_libs="$newdependency_libs"
  51557. - newdlfiles=
  51558. - for lib in $dlfiles; do
  51559. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51560. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  51561. - if test -z "$libdir"; then
  51562. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51563. - exit $EXIT_FAILURE
  51564. - fi
  51565. - newdlfiles="$newdlfiles $libdir/$name"
  51566. - done
  51567. - dlfiles="$newdlfiles"
  51568. - newdlprefiles=
  51569. - for lib in $dlprefiles; do
  51570. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51571. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  51572. - if test -z "$libdir"; then
  51573. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51574. - exit $EXIT_FAILURE
  51575. - fi
  51576. - newdlprefiles="$newdlprefiles $libdir/$name"
  51577. - done
  51578. - dlprefiles="$newdlprefiles"
  51579. - else
  51580. - newdlfiles=
  51581. - for lib in $dlfiles; do
  51582. - case $lib in
  51583. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  51584. - *) abs=`pwd`"/$lib" ;;
  51585. - esac
  51586. - newdlfiles="$newdlfiles $abs"
  51587. - done
  51588. - dlfiles="$newdlfiles"
  51589. - newdlprefiles=
  51590. - for lib in $dlprefiles; do
  51591. - case $lib in
  51592. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  51593. - *) abs=`pwd`"/$lib" ;;
  51594. - esac
  51595. - newdlprefiles="$newdlprefiles $abs"
  51596. - done
  51597. - dlprefiles="$newdlprefiles"
  51598. - fi
  51599. - $rm $output
  51600. - # place dlname in correct position for cygwin
  51601. - tdlname=$dlname
  51602. - case $host,$output,$installed,$module,$dlname in
  51603. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  51604. - esac
  51605. - $echo > $output "\
  51606. -# $outputname - a libtool library file
  51607. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  51608. -#
  51609. -# Please DO NOT delete this file!
  51610. -# It is necessary for linking the library.
  51611. -# The name that we can dlopen(3).
  51612. -dlname='$tdlname'
  51613. + exit $lt_exit
  51614. + }
  51615. + done
  51616. + IFS="$save_ifs"
  51617. -# Names of this library.
  51618. -library_names='$library_names'
  51619. + # Restore the uninstalled library and exit
  51620. + if test "$mode" = relink; then
  51621. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  51622. -# The name of the static archive.
  51623. -old_library='$old_library'
  51624. + if test -n "$convenience"; then
  51625. + if test -z "$whole_archive_flag_spec"; then
  51626. + func_show_eval '${RM}r "$gentop"'
  51627. + fi
  51628. + fi
  51629. -# Libraries that this one depends upon.
  51630. -dependency_libs='$dependency_libs'
  51631. + exit $EXIT_SUCCESS
  51632. + fi
  51633. -# Version information for $libname.
  51634. -current=$current
  51635. -age=$age
  51636. -revision=$revision
  51637. + # Create links to the real library.
  51638. + for linkname in $linknames; do
  51639. + if test "$realname" != "$linkname"; then
  51640. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  51641. + fi
  51642. + done
  51643. -# Is this an already installed library?
  51644. -installed=$installed
  51645. + # If -module or -export-dynamic was specified, set the dlname.
  51646. + if test "$module" = yes || test "$export_dynamic" = yes; then
  51647. + # On all known operating systems, these are identical.
  51648. + dlname="$soname"
  51649. + fi
  51650. + fi
  51651. + ;;
  51652. -# Should we warn about portability when linking against -modules?
  51653. -shouldnotlink=$module
  51654. + obj)
  51655. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51656. + func_warning "\`-dlopen' is ignored for objects"
  51657. + fi
  51658. -# Files to dlopen/dlpreopen
  51659. -dlopen='$dlfiles'
  51660. -dlpreopen='$dlprefiles'
  51661. + case " $deplibs" in
  51662. + *\ -l* | *\ -L*)
  51663. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  51664. + esac
  51665. -# Directory that this library needs to be installed in:
  51666. -libdir='$install_libdir'"
  51667. - if test "$installed" = no && test "$need_relink" = yes; then
  51668. - $echo >> $output "\
  51669. -relink_command=\"$relink_command\""
  51670. - fi
  51671. - done
  51672. - fi
  51673. + test -n "$rpath" && \
  51674. + func_warning "\`-rpath' is ignored for objects"
  51675. - # Do a symbolic link so that the libtool archive can be found in
  51676. - # LD_LIBRARY_PATH before the program is installed.
  51677. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  51678. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  51679. - ;;
  51680. - esac
  51681. - exit $EXIT_SUCCESS
  51682. - ;;
  51683. + test -n "$xrpath" && \
  51684. + func_warning "\`-R' is ignored for objects"
  51685. - # libtool install mode
  51686. - install)
  51687. - modename="$modename: install"
  51688. + test -n "$vinfo" && \
  51689. + func_warning "\`-version-info' is ignored for objects"
  51690. - # There may be an optional sh(1) argument at the beginning of
  51691. - # install_prog (especially on Windows NT).
  51692. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  51693. - # Allow the use of GNU shtool's install command.
  51694. - $echo "X$nonopt" | grep shtool > /dev/null; then
  51695. - # Aesthetically quote it.
  51696. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  51697. - case $arg in
  51698. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51699. - arg="\"$arg\""
  51700. + test -n "$release" && \
  51701. + func_warning "\`-release' is ignored for objects"
  51702. +
  51703. + case $output in
  51704. + *.lo)
  51705. + test -n "$objs$old_deplibs" && \
  51706. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  51707. +
  51708. + libobj=$output
  51709. + func_lo2o "$libobj"
  51710. + obj=$func_lo2o_result
  51711. + ;;
  51712. + *)
  51713. + libobj=
  51714. + obj="$output"
  51715. ;;
  51716. esac
  51717. - install_prog="$arg "
  51718. - arg="$1"
  51719. - shift
  51720. - else
  51721. - install_prog=
  51722. - arg=$nonopt
  51723. - fi
  51724. - # The real first argument should be the name of the installation program.
  51725. - # Aesthetically quote it.
  51726. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51727. - case $arg in
  51728. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51729. - arg="\"$arg\""
  51730. - ;;
  51731. - esac
  51732. - install_prog="$install_prog$arg"
  51733. + # Delete the old objects.
  51734. + $opt_dry_run || $RM $obj $libobj
  51735. - # We need to accept at least all the BSD install flags.
  51736. - dest=
  51737. - files=
  51738. - opts=
  51739. - prev=
  51740. - install_type=
  51741. - isdir=no
  51742. - stripme=
  51743. - for arg
  51744. - do
  51745. - if test -n "$dest"; then
  51746. - files="$files $dest"
  51747. - dest=$arg
  51748. - continue
  51749. - fi
  51750. + # Objects from convenience libraries. This assumes
  51751. + # single-version convenience libraries. Whenever we create
  51752. + # different ones for PIC/non-PIC, this we'll have to duplicate
  51753. + # the extraction.
  51754. + reload_conv_objs=
  51755. + gentop=
  51756. + # reload_cmds runs $LD directly, so let us get rid of
  51757. + # -Wl from whole_archive_flag_spec and hope we can get by with
  51758. + # turning comma into space..
  51759. + wl=
  51760. - case $arg in
  51761. - -d) isdir=yes ;;
  51762. - -f)
  51763. - case " $install_prog " in
  51764. - *[\\\ /]cp\ *) ;;
  51765. - *) prev=$arg ;;
  51766. - esac
  51767. - ;;
  51768. - -g | -m | -o) prev=$arg ;;
  51769. - -s)
  51770. - stripme=" -s"
  51771. - continue
  51772. - ;;
  51773. - -*)
  51774. - ;;
  51775. - *)
  51776. - # If the previous option needed an argument, then skip it.
  51777. - if test -n "$prev"; then
  51778. - prev=
  51779. + if test -n "$convenience"; then
  51780. + if test -n "$whole_archive_flag_spec"; then
  51781. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  51782. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  51783. else
  51784. - dest=$arg
  51785. - continue
  51786. + gentop="$output_objdir/${obj}x"
  51787. + generated="$generated $gentop"
  51788. +
  51789. + func_extract_archives $gentop $convenience
  51790. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  51791. fi
  51792. - ;;
  51793. - esac
  51794. + fi
  51795. - # Aesthetically quote the argument.
  51796. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51797. - case $arg in
  51798. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51799. - arg="\"$arg\""
  51800. - ;;
  51801. - esac
  51802. - install_prog="$install_prog $arg"
  51803. - done
  51804. + # Create the old-style object.
  51805. + 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
  51806. - if test -z "$install_prog"; then
  51807. - $echo "$modename: you must specify an install program" 1>&2
  51808. - $echo "$help" 1>&2
  51809. - exit $EXIT_FAILURE
  51810. - fi
  51811. + output="$obj"
  51812. + func_execute_cmds "$reload_cmds" 'exit $?'
  51813. - if test -n "$prev"; then
  51814. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  51815. - $echo "$help" 1>&2
  51816. - exit $EXIT_FAILURE
  51817. - fi
  51818. + # Exit if we aren't doing a library object file.
  51819. + if test -z "$libobj"; then
  51820. + if test -n "$gentop"; then
  51821. + func_show_eval '${RM}r "$gentop"'
  51822. + fi
  51823. - if test -z "$files"; then
  51824. - if test -z "$dest"; then
  51825. - $echo "$modename: no file or destination specified" 1>&2
  51826. - else
  51827. - $echo "$modename: you must specify a destination" 1>&2
  51828. + exit $EXIT_SUCCESS
  51829. fi
  51830. - $echo "$help" 1>&2
  51831. - exit $EXIT_FAILURE
  51832. - fi
  51833. - # Strip any trailing slash from the destination.
  51834. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  51835. + if test "$build_libtool_libs" != yes; then
  51836. + if test -n "$gentop"; then
  51837. + func_show_eval '${RM}r "$gentop"'
  51838. + fi
  51839. - # Check to see that the destination is a directory.
  51840. - test -d "$dest" && isdir=yes
  51841. - if test "$isdir" = yes; then
  51842. - destdir="$dest"
  51843. - destname=
  51844. - else
  51845. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  51846. - test "X$destdir" = "X$dest" && destdir=.
  51847. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  51848. + # Create an invalid libtool object if no PIC, so that we don't
  51849. + # accidentally link it into a program.
  51850. + # $show "echo timestamp > $libobj"
  51851. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  51852. + exit $EXIT_SUCCESS
  51853. + fi
  51854. - # Not a directory, so check to see that there is only one file specified.
  51855. - set dummy $files
  51856. - if test "$#" -gt 2; then
  51857. - $echo "$modename: \`$dest' is not a directory" 1>&2
  51858. - $echo "$help" 1>&2
  51859. - exit $EXIT_FAILURE
  51860. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  51861. + # Only do commands if we really have different PIC objects.
  51862. + reload_objs="$libobjs $reload_conv_objs"
  51863. + output="$libobj"
  51864. + func_execute_cmds "$reload_cmds" 'exit $?'
  51865. fi
  51866. - fi
  51867. - case $destdir in
  51868. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  51869. - *)
  51870. - for file in $files; do
  51871. - case $file in
  51872. - *.lo) ;;
  51873. - *)
  51874. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  51875. - $echo "$help" 1>&2
  51876. - exit $EXIT_FAILURE
  51877. - ;;
  51878. - esac
  51879. - done
  51880. +
  51881. + if test -n "$gentop"; then
  51882. + func_show_eval '${RM}r "$gentop"'
  51883. + fi
  51884. +
  51885. + exit $EXIT_SUCCESS
  51886. ;;
  51887. - esac
  51888. - # This variable tells wrapper scripts just to set variables rather
  51889. - # than running their programs.
  51890. - libtool_install_magic="$magic"
  51891. + prog)
  51892. + case $host in
  51893. + *cygwin*) func_stripname '' '.exe' "$output"
  51894. + output=$func_stripname_result.exe;;
  51895. + esac
  51896. + test -n "$vinfo" && \
  51897. + func_warning "\`-version-info' is ignored for programs"
  51898. - staticlibs=
  51899. - future_libdirs=
  51900. - current_libdirs=
  51901. - for file in $files; do
  51902. + test -n "$release" && \
  51903. + func_warning "\`-release' is ignored for programs"
  51904. - # Do each installation.
  51905. - case $file in
  51906. - *.$libext)
  51907. - # Do the static libraries later.
  51908. - staticlibs="$staticlibs $file"
  51909. + test "$preload" = yes \
  51910. + && test "$dlopen_support" = unknown \
  51911. + && test "$dlopen_self" = unknown \
  51912. + && test "$dlopen_self_static" = unknown && \
  51913. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  51914. +
  51915. + case $host in
  51916. + *-*-rhapsody* | *-*-darwin1.[012])
  51917. + # On Rhapsody replace the C library is the System framework
  51918. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51919. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51920. ;;
  51921. + esac
  51922. - *.la)
  51923. - # Check to see that this really is a libtool archive.
  51924. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  51925. - else
  51926. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  51927. - $echo "$help" 1>&2
  51928. - exit $EXIT_FAILURE
  51929. + case $host in
  51930. + *-*-darwin*)
  51931. + # Don't allow lazy linking, it breaks C++ global constructors
  51932. + # But is supposedly fixed on 10.4 or later (yay!).
  51933. + if test "$tagname" = CXX ; then
  51934. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  51935. + 10.[0123])
  51936. + compile_command="$compile_command ${wl}-bind_at_load"
  51937. + finalize_command="$finalize_command ${wl}-bind_at_load"
  51938. + ;;
  51939. + esac
  51940. fi
  51941. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  51942. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51943. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51944. + ;;
  51945. + esac
  51946. - library_names=
  51947. - old_library=
  51948. - relink_command=
  51949. - # If there is no directory component, then add one.
  51950. - case $file in
  51951. - */* | *\\*) . $file ;;
  51952. - *) . ./$file ;;
  51953. - esac
  51954. - # Add the libdir to current_libdirs if it is the destination.
  51955. - if test "X$destdir" = "X$libdir"; then
  51956. - case "$current_libdirs " in
  51957. - *" $libdir "*) ;;
  51958. - *) current_libdirs="$current_libdirs $libdir" ;;
  51959. + # move library search paths that coincide with paths to not yet
  51960. + # installed libraries to the beginning of the library search list
  51961. + new_libs=
  51962. + for path in $notinst_path; do
  51963. + case " $new_libs " in
  51964. + *" -L$path/$objdir "*) ;;
  51965. + *)
  51966. + case " $compile_deplibs " in
  51967. + *" -L$path/$objdir "*)
  51968. + new_libs="$new_libs -L$path/$objdir" ;;
  51969. esac
  51970. - else
  51971. - # Note the libdir as a future libdir.
  51972. - case "$future_libdirs " in
  51973. - *" $libdir "*) ;;
  51974. - *) future_libdirs="$future_libdirs $libdir" ;;
  51975. + ;;
  51976. + esac
  51977. + done
  51978. + for deplib in $compile_deplibs; do
  51979. + case $deplib in
  51980. + -L*)
  51981. + case " $new_libs " in
  51982. + *" $deplib "*) ;;
  51983. + *) new_libs="$new_libs $deplib" ;;
  51984. esac
  51985. - fi
  51986. + ;;
  51987. + *) new_libs="$new_libs $deplib" ;;
  51988. + esac
  51989. + done
  51990. + compile_deplibs="$new_libs"
  51991. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  51992. - test "X$dir" = "X$file/" && dir=
  51993. - dir="$dir$objdir"
  51994. - if test -n "$relink_command"; then
  51995. - # Determine the prefix the user has applied to our future dir.
  51996. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  51997. + compile_command="$compile_command $compile_deplibs"
  51998. + finalize_command="$finalize_command $finalize_deplibs"
  51999. - # Don't allow the user to place us outside of our expected
  52000. - # location b/c this prevents finding dependent libraries that
  52001. - # are installed to the same prefix.
  52002. - # At present, this check doesn't affect windows .dll's that
  52003. - # are installed into $libdir/../bin (currently, that works fine)
  52004. - # but it's something to keep an eye on.
  52005. - if test "$inst_prefix_dir" = "$destdir"; then
  52006. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  52007. - exit $EXIT_FAILURE
  52008. - fi
  52009. + if test -n "$rpath$xrpath"; then
  52010. + # If the user specified any rpath flags, then add them.
  52011. + for libdir in $rpath $xrpath; do
  52012. + # This is the magic to use -rpath.
  52013. + case "$finalize_rpath " in
  52014. + *" $libdir "*) ;;
  52015. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  52016. + esac
  52017. + done
  52018. + fi
  52019. - if test -n "$inst_prefix_dir"; then
  52020. - # Stick the inst_prefix_dir data into the link command.
  52021. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  52022. + # Now hardcode the library paths
  52023. + rpath=
  52024. + hardcode_libdirs=
  52025. + for libdir in $compile_rpath $finalize_rpath; do
  52026. + if test -n "$hardcode_libdir_flag_spec"; then
  52027. + if test -n "$hardcode_libdir_separator"; then
  52028. + if test -z "$hardcode_libdirs"; then
  52029. + hardcode_libdirs="$libdir"
  52030. + else
  52031. + # Just accumulate the unique libdirs.
  52032. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52033. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52034. + ;;
  52035. + *)
  52036. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52037. + ;;
  52038. + esac
  52039. + fi
  52040. else
  52041. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  52042. + eval flag=\"$hardcode_libdir_flag_spec\"
  52043. + rpath="$rpath $flag"
  52044. fi
  52045. + elif test -n "$runpath_var"; then
  52046. + case "$perm_rpath " in
  52047. + *" $libdir "*) ;;
  52048. + *) perm_rpath="$perm_rpath $libdir" ;;
  52049. + esac
  52050. + fi
  52051. + case $host in
  52052. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  52053. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  52054. + case :$dllsearchpath: in
  52055. + *":$libdir:"*) ;;
  52056. + ::) dllsearchpath=$libdir;;
  52057. + *) dllsearchpath="$dllsearchpath:$libdir";;
  52058. + esac
  52059. + case :$dllsearchpath: in
  52060. + *":$testbindir:"*) ;;
  52061. + ::) dllsearchpath=$testbindir;;
  52062. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  52063. + esac
  52064. + ;;
  52065. + esac
  52066. + done
  52067. + # Substitute the hardcoded libdirs into the rpath.
  52068. + if test -n "$hardcode_libdir_separator" &&
  52069. + test -n "$hardcode_libdirs"; then
  52070. + libdir="$hardcode_libdirs"
  52071. + eval rpath=\" $hardcode_libdir_flag_spec\"
  52072. + fi
  52073. + compile_rpath="$rpath"
  52074. - $echo "$modename: warning: relinking \`$file'" 1>&2
  52075. - $show "$relink_command"
  52076. - if $run eval "$relink_command"; then :
  52077. + rpath=
  52078. + hardcode_libdirs=
  52079. + for libdir in $finalize_rpath; do
  52080. + if test -n "$hardcode_libdir_flag_spec"; then
  52081. + if test -n "$hardcode_libdir_separator"; then
  52082. + if test -z "$hardcode_libdirs"; then
  52083. + hardcode_libdirs="$libdir"
  52084. + else
  52085. + # Just accumulate the unique libdirs.
  52086. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52087. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52088. + ;;
  52089. + *)
  52090. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52091. + ;;
  52092. + esac
  52093. + fi
  52094. else
  52095. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  52096. - exit $EXIT_FAILURE
  52097. + eval flag=\"$hardcode_libdir_flag_spec\"
  52098. + rpath="$rpath $flag"
  52099. fi
  52100. + elif test -n "$runpath_var"; then
  52101. + case "$finalize_perm_rpath " in
  52102. + *" $libdir "*) ;;
  52103. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  52104. + esac
  52105. fi
  52106. + done
  52107. + # Substitute the hardcoded libdirs into the rpath.
  52108. + if test -n "$hardcode_libdir_separator" &&
  52109. + test -n "$hardcode_libdirs"; then
  52110. + libdir="$hardcode_libdirs"
  52111. + eval rpath=\" $hardcode_libdir_flag_spec\"
  52112. + fi
  52113. + finalize_rpath="$rpath"
  52114. - # See the names of the shared library.
  52115. - set dummy $library_names
  52116. - if test -n "$2"; then
  52117. - realname="$2"
  52118. - shift
  52119. - shift
  52120. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  52121. + # Transform all the library objects into standard objects.
  52122. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52123. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52124. + fi
  52125. - srcname="$realname"
  52126. - test -n "$relink_command" && srcname="$realname"T
  52127. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  52128. - # Install the shared library and build the symlinks.
  52129. - $show "$install_prog $dir/$srcname $destdir/$realname"
  52130. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  52131. - if test -n "$stripme" && test -n "$striplib"; then
  52132. - $show "$striplib $destdir/$realname"
  52133. - $run eval "$striplib $destdir/$realname" || exit $?
  52134. - fi
  52135. + # template prelinking step
  52136. + if test -n "$prelink_cmds"; then
  52137. + func_execute_cmds "$prelink_cmds" 'exit $?'
  52138. + fi
  52139. - if test "$#" -gt 0; then
  52140. - # Delete the old symlinks, and create new ones.
  52141. - # Try `ln -sf' first, because the `ln' binary might depend on
  52142. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  52143. - # so we also need to try rm && ln -s.
  52144. - for linkname
  52145. - do
  52146. - if test "$linkname" != "$realname"; then
  52147. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  52148. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  52149. - fi
  52150. - done
  52151. - fi
  52152. + wrappers_required=yes
  52153. + case $host in
  52154. + *cygwin* | *mingw* )
  52155. + if test "$build_libtool_libs" != yes; then
  52156. + wrappers_required=no
  52157. + fi
  52158. + ;;
  52159. + *cegcc)
  52160. + # Disable wrappers for cegcc, we are cross compiling anyway.
  52161. + wrappers_required=no
  52162. + ;;
  52163. + *)
  52164. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  52165. + wrappers_required=no
  52166. + fi
  52167. + ;;
  52168. + esac
  52169. + if test "$wrappers_required" = no; then
  52170. + # Replace the output file specification.
  52171. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  52172. + link_command="$compile_command$compile_rpath"
  52173. - # Do each command in the postinstall commands.
  52174. - lib="$destdir/$realname"
  52175. - cmds=$postinstall_cmds
  52176. - save_ifs="$IFS"; IFS='~'
  52177. - for cmd in $cmds; do
  52178. - IFS="$save_ifs"
  52179. - eval cmd=\"$cmd\"
  52180. - $show "$cmd"
  52181. - $run eval "$cmd" || {
  52182. - lt_exit=$?
  52183. -
  52184. - # Restore the uninstalled library and exit
  52185. - if test "$mode" = relink; then
  52186. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  52187. - fi
  52188. + # We have no uninstalled library dependencies, so finalize right now.
  52189. + exit_status=0
  52190. + func_show_eval "$link_command" 'exit_status=$?'
  52191. - exit $lt_exit
  52192. - }
  52193. - done
  52194. - IFS="$save_ifs"
  52195. + # Delete the generated files.
  52196. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  52197. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  52198. fi
  52199. - # Install the pseudo-library for information purposes.
  52200. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52201. - instname="$dir/$name"i
  52202. - $show "$install_prog $instname $destdir/$name"
  52203. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  52204. -
  52205. - # Maybe install the static library, too.
  52206. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  52207. - ;;
  52208. + exit $exit_status
  52209. + fi
  52210. - *.lo)
  52211. - # Install (i.e. copy) a libtool object.
  52212. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  52213. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  52214. + fi
  52215. + if test -n "$finalize_shlibpath"; then
  52216. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  52217. + fi
  52218. - # Figure out destination file name, if it wasn't already specified.
  52219. - if test -n "$destname"; then
  52220. - destfile="$destdir/$destname"
  52221. - else
  52222. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52223. - destfile="$destdir/$destfile"
  52224. + compile_var=
  52225. + finalize_var=
  52226. + if test -n "$runpath_var"; then
  52227. + if test -n "$perm_rpath"; then
  52228. + # We should set the runpath_var.
  52229. + rpath=
  52230. + for dir in $perm_rpath; do
  52231. + rpath="$rpath$dir:"
  52232. + done
  52233. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  52234. fi
  52235. -
  52236. - # Deduce the name of the destination old-style object file.
  52237. - case $destfile in
  52238. - *.lo)
  52239. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  52240. - ;;
  52241. - *.$objext)
  52242. - staticdest="$destfile"
  52243. - destfile=
  52244. - ;;
  52245. - *)
  52246. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  52247. - $echo "$help" 1>&2
  52248. - exit $EXIT_FAILURE
  52249. - ;;
  52250. - esac
  52251. -
  52252. - # Install the libtool object if requested.
  52253. - if test -n "$destfile"; then
  52254. - $show "$install_prog $file $destfile"
  52255. - $run eval "$install_prog $file $destfile" || exit $?
  52256. + if test -n "$finalize_perm_rpath"; then
  52257. + # We should set the runpath_var.
  52258. + rpath=
  52259. + for dir in $finalize_perm_rpath; do
  52260. + rpath="$rpath$dir:"
  52261. + done
  52262. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  52263. fi
  52264. + fi
  52265. - # Install the old object if enabled.
  52266. - if test "$build_old_libs" = yes; then
  52267. - # Deduce the name of the old-style object file.
  52268. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  52269. -
  52270. - $show "$install_prog $staticobj $staticdest"
  52271. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  52272. - fi
  52273. + if test "$no_install" = yes; then
  52274. + # We don't need to create a wrapper script.
  52275. + link_command="$compile_var$compile_command$compile_rpath"
  52276. + # Replace the output file specification.
  52277. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  52278. + # Delete the old output file.
  52279. + $opt_dry_run || $RM $output
  52280. + # Link the executable and exit
  52281. + func_show_eval "$link_command" 'exit $?'
  52282. exit $EXIT_SUCCESS
  52283. - ;;
  52284. + fi
  52285. - *)
  52286. - # Figure out destination file name, if it wasn't already specified.
  52287. - if test -n "$destname"; then
  52288. - destfile="$destdir/$destname"
  52289. + if test "$hardcode_action" = relink; then
  52290. + # Fast installation is not supported
  52291. + link_command="$compile_var$compile_command$compile_rpath"
  52292. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  52293. +
  52294. + func_warning "this platform does not like uninstalled shared libraries"
  52295. + func_warning "\`$output' will be relinked during installation"
  52296. + else
  52297. + if test "$fast_install" != no; then
  52298. + link_command="$finalize_var$compile_command$finalize_rpath"
  52299. + if test "$fast_install" = yes; then
  52300. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  52301. + else
  52302. + # fast_install is set to needless
  52303. + relink_command=
  52304. + fi
  52305. else
  52306. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52307. - destfile="$destdir/$destfile"
  52308. + link_command="$compile_var$compile_command$compile_rpath"
  52309. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  52310. fi
  52311. + fi
  52312. - # If the file is missing, and there is a .exe on the end, strip it
  52313. - # because it is most likely a libtool script we actually want to
  52314. - # install
  52315. - stripped_ext=""
  52316. - case $file in
  52317. - *.exe)
  52318. - if test ! -f "$file"; then
  52319. - file=`$echo $file|${SED} 's,.exe$,,'`
  52320. - stripped_ext=".exe"
  52321. - fi
  52322. - ;;
  52323. - esac
  52324. -
  52325. - # Do a test to see if this is really a libtool program.
  52326. - case $host in
  52327. - *cygwin*|*mingw*)
  52328. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  52329. - ;;
  52330. - *)
  52331. - wrapper=$file
  52332. - ;;
  52333. - esac
  52334. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  52335. - notinst_deplibs=
  52336. - relink_command=
  52337. -
  52338. - # Note that it is not necessary on cygwin/mingw to append a dot to
  52339. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  52340. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  52341. - # `FILE.' does not work on cygwin managed mounts.
  52342. - #
  52343. - # If there is no directory component, then add one.
  52344. - case $wrapper in
  52345. - */* | *\\*) . ${wrapper} ;;
  52346. - *) . ./${wrapper} ;;
  52347. - esac
  52348. -
  52349. - # Check the variables that should have been set.
  52350. - if test -z "$notinst_deplibs"; then
  52351. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  52352. - exit $EXIT_FAILURE
  52353. - fi
  52354. + # Replace the output file specification.
  52355. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  52356. - finalize=yes
  52357. - for lib in $notinst_deplibs; do
  52358. - # Check to see that each library is installed.
  52359. - libdir=
  52360. - if test -f "$lib"; then
  52361. - # If there is no directory component, then add one.
  52362. - case $lib in
  52363. - */* | *\\*) . $lib ;;
  52364. - *) . ./$lib ;;
  52365. - esac
  52366. - fi
  52367. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  52368. - if test -n "$libdir" && test ! -f "$libfile"; then
  52369. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  52370. - finalize=no
  52371. - fi
  52372. - done
  52373. + # Delete the old output files.
  52374. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  52375. - relink_command=
  52376. - # Note that it is not necessary on cygwin/mingw to append a dot to
  52377. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  52378. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  52379. - # `FILE.' does not work on cygwin managed mounts.
  52380. - #
  52381. - # If there is no directory component, then add one.
  52382. - case $wrapper in
  52383. - */* | *\\*) . ${wrapper} ;;
  52384. - *) . ./${wrapper} ;;
  52385. - esac
  52386. + func_show_eval "$link_command" 'exit $?'
  52387. - outputname=
  52388. - if test "$fast_install" = no && test -n "$relink_command"; then
  52389. - if test "$finalize" = yes && test -z "$run"; then
  52390. - tmpdir=`func_mktempdir`
  52391. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  52392. - outputname="$tmpdir/$file"
  52393. - # Replace the output file specification.
  52394. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  52395. + # Now create the wrapper script.
  52396. + func_verbose "creating $output"
  52397. - $show "$relink_command"
  52398. - if $run eval "$relink_command"; then :
  52399. - else
  52400. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  52401. - ${rm}r "$tmpdir"
  52402. - continue
  52403. - fi
  52404. - file="$outputname"
  52405. - else
  52406. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  52407. - fi
  52408. + # Quote the relink command for shipping.
  52409. + if test -n "$relink_command"; then
  52410. + # Preserve any variables that may affect compiler behavior
  52411. + for var in $variables_saved_for_relink; do
  52412. + if eval test -z \"\${$var+set}\"; then
  52413. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  52414. + elif eval var_value=\$$var; test -z "$var_value"; then
  52415. + relink_command="$var=; export $var; $relink_command"
  52416. else
  52417. - # Install the binary that we compiled earlier.
  52418. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  52419. + func_quote_for_eval "$var_value"
  52420. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  52421. fi
  52422. - fi
  52423. + done
  52424. + relink_command="(cd `pwd`; $relink_command)"
  52425. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  52426. + fi
  52427. - # remove .exe since cygwin /usr/bin/install will append another
  52428. - # one anyway
  52429. - case $install_prog,$host in
  52430. - */usr/bin/install*,*cygwin*)
  52431. - case $file:$destfile in
  52432. - *.exe:*.exe)
  52433. - # this is ok
  52434. - ;;
  52435. - *.exe:*)
  52436. - destfile=$destfile.exe
  52437. - ;;
  52438. - *:*.exe)
  52439. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  52440. - ;;
  52441. - esac
  52442. - ;;
  52443. + # Quote $ECHO for shipping.
  52444. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  52445. + case $progpath in
  52446. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  52447. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  52448. + esac
  52449. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  52450. + else
  52451. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  52452. + fi
  52453. +
  52454. + # Only actually do things if not in dry run mode.
  52455. + $opt_dry_run || {
  52456. + # win32 will think the script is a binary if it has
  52457. + # a .exe suffix, so we strip it off here.
  52458. + case $output in
  52459. + *.exe) func_stripname '' '.exe' "$output"
  52460. + output=$func_stripname_result ;;
  52461. + esac
  52462. + # test for cygwin because mv fails w/o .exe extensions
  52463. + case $host in
  52464. + *cygwin*)
  52465. + exeext=.exe
  52466. + func_stripname '' '.exe' "$outputname"
  52467. + outputname=$func_stripname_result ;;
  52468. + *) exeext= ;;
  52469. esac
  52470. - $show "$install_prog$stripme $file $destfile"
  52471. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  52472. - test -n "$outputname" && ${rm}r "$tmpdir"
  52473. - ;;
  52474. - esac
  52475. - done
  52476. + case $host in
  52477. + *cygwin* | *mingw* )
  52478. + func_dirname_and_basename "$output" "" "."
  52479. + output_name=$func_basename_result
  52480. + output_path=$func_dirname_result
  52481. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  52482. + cwrapper="$output_path/$output_name.exe"
  52483. + $RM $cwrappersource $cwrapper
  52484. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  52485. +
  52486. + func_emit_cwrapperexe_src > $cwrappersource
  52487. +
  52488. + # The wrapper executable is built using the $host compiler,
  52489. + # because it contains $host paths and files. If cross-
  52490. + # compiling, it, like the target executable, must be
  52491. + # executed on the $host or under an emulation environment.
  52492. + $opt_dry_run || {
  52493. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  52494. + $STRIP $cwrapper
  52495. + }
  52496. - for file in $staticlibs; do
  52497. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52498. + # Now, create the wrapper script for func_source use:
  52499. + func_ltwrapper_scriptname $cwrapper
  52500. + $RM $func_ltwrapper_scriptname_result
  52501. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  52502. + $opt_dry_run || {
  52503. + # note: this script will not be executed, so do not chmod.
  52504. + if test "x$build" = "x$host" ; then
  52505. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  52506. + else
  52507. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  52508. + fi
  52509. + }
  52510. + ;;
  52511. + * )
  52512. + $RM $output
  52513. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  52514. - # Set up the ranlib parameters.
  52515. - oldlib="$destdir/$name"
  52516. + func_emit_wrapper no > $output
  52517. + chmod +x $output
  52518. + ;;
  52519. + esac
  52520. + }
  52521. + exit $EXIT_SUCCESS
  52522. + ;;
  52523. + esac
  52524. - $show "$install_prog $file $oldlib"
  52525. - $run eval "$install_prog \$file \$oldlib" || exit $?
  52526. + # See if we need to build an old-fashioned archive.
  52527. + for oldlib in $oldlibs; do
  52528. - if test -n "$stripme" && test -n "$old_striplib"; then
  52529. - $show "$old_striplib $oldlib"
  52530. - $run eval "$old_striplib $oldlib" || exit $?
  52531. + if test "$build_libtool_libs" = convenience; then
  52532. + oldobjs="$libobjs_save $symfileobj"
  52533. + addlibs="$convenience"
  52534. + build_libtool_libs=no
  52535. + else
  52536. + if test "$build_libtool_libs" = module; then
  52537. + oldobjs="$libobjs_save"
  52538. + build_libtool_libs=no
  52539. + else
  52540. + oldobjs="$old_deplibs $non_pic_objects"
  52541. + if test "$preload" = yes && test -f "$symfileobj"; then
  52542. + oldobjs="$oldobjs $symfileobj"
  52543. + fi
  52544. + fi
  52545. + addlibs="$old_convenience"
  52546. fi
  52547. - # Do each command in the postinstall commands.
  52548. - cmds=$old_postinstall_cmds
  52549. - save_ifs="$IFS"; IFS='~'
  52550. - for cmd in $cmds; do
  52551. - IFS="$save_ifs"
  52552. - eval cmd=\"$cmd\"
  52553. - $show "$cmd"
  52554. - $run eval "$cmd" || exit $?
  52555. - done
  52556. - IFS="$save_ifs"
  52557. - done
  52558. + if test -n "$addlibs"; then
  52559. + gentop="$output_objdir/${outputname}x"
  52560. + generated="$generated $gentop"
  52561. - if test -n "$future_libdirs"; then
  52562. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  52563. - fi
  52564. + func_extract_archives $gentop $addlibs
  52565. + oldobjs="$oldobjs $func_extract_archives_result"
  52566. + fi
  52567. - if test -n "$current_libdirs"; then
  52568. - # Maybe just do a dry run.
  52569. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  52570. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  52571. - else
  52572. - exit $EXIT_SUCCESS
  52573. - fi
  52574. - ;;
  52575. + # Do each command in the archive commands.
  52576. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  52577. + cmds=$old_archive_from_new_cmds
  52578. + else
  52579. - # libtool finish mode
  52580. - finish)
  52581. - modename="$modename: finish"
  52582. - libdirs="$nonopt"
  52583. - admincmds=
  52584. + # Add any objects from preloaded convenience libraries
  52585. + if test -n "$dlprefiles"; then
  52586. + gentop="$output_objdir/${outputname}x"
  52587. + generated="$generated $gentop"
  52588. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  52589. - for dir
  52590. - do
  52591. - libdirs="$libdirs $dir"
  52592. - done
  52593. + func_extract_archives $gentop $dlprefiles
  52594. + oldobjs="$oldobjs $func_extract_archives_result"
  52595. + fi
  52596. - for libdir in $libdirs; do
  52597. - if test -n "$finish_cmds"; then
  52598. - # Do each command in the finish commands.
  52599. - cmds=$finish_cmds
  52600. - save_ifs="$IFS"; IFS='~'
  52601. - for cmd in $cmds; do
  52602. - IFS="$save_ifs"
  52603. - eval cmd=\"$cmd\"
  52604. - $show "$cmd"
  52605. - $run eval "$cmd" || admincmds="$admincmds
  52606. - $cmd"
  52607. + # POSIX demands no paths to be encoded in archives. We have
  52608. + # to avoid creating archives with duplicate basenames if we
  52609. + # might have to extract them afterwards, e.g., when creating a
  52610. + # static archive out of a convenience library, or when linking
  52611. + # the entirety of a libtool archive into another (currently
  52612. + # not supported by libtool).
  52613. + if (for obj in $oldobjs
  52614. + do
  52615. + func_basename "$obj"
  52616. + $ECHO "$func_basename_result"
  52617. + done | sort | sort -uc >/dev/null 2>&1); then
  52618. + :
  52619. + else
  52620. + $ECHO "copying selected object files to avoid basename conflicts..."
  52621. + gentop="$output_objdir/${outputname}x"
  52622. + generated="$generated $gentop"
  52623. + func_mkdir_p "$gentop"
  52624. + save_oldobjs=$oldobjs
  52625. + oldobjs=
  52626. + counter=1
  52627. + for obj in $save_oldobjs
  52628. + do
  52629. + func_basename "$obj"
  52630. + objbase="$func_basename_result"
  52631. + case " $oldobjs " in
  52632. + " ") oldobjs=$obj ;;
  52633. + *[\ /]"$objbase "*)
  52634. + while :; do
  52635. + # Make sure we don't pick an alternate name that also
  52636. + # overlaps.
  52637. + newobj=lt$counter-$objbase
  52638. + func_arith $counter + 1
  52639. + counter=$func_arith_result
  52640. + case " $oldobjs " in
  52641. + *[\ /]"$newobj "*) ;;
  52642. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  52643. + esac
  52644. + done
  52645. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  52646. + oldobjs="$oldobjs $gentop/$newobj"
  52647. + ;;
  52648. + *) oldobjs="$oldobjs $obj" ;;
  52649. + esac
  52650. done
  52651. - IFS="$save_ifs"
  52652. - fi
  52653. - if test -n "$finish_eval"; then
  52654. - # Do the single finish_eval.
  52655. - eval cmds=\"$finish_eval\"
  52656. - $run eval "$cmds" || admincmds="$admincmds
  52657. - $cmds"
  52658. fi
  52659. - done
  52660. - fi
  52661. -
  52662. - # Exit here if they wanted silent mode.
  52663. - test "$show" = : && exit $EXIT_SUCCESS
  52664. + eval cmds=\"$old_archive_cmds\"
  52665. - $echo "X----------------------------------------------------------------------" | $Xsed
  52666. - $echo "Libraries have been installed in:"
  52667. - for libdir in $libdirs; do
  52668. - $echo " $libdir"
  52669. + func_len " $cmds"
  52670. + len=$func_len_result
  52671. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52672. + cmds=$old_archive_cmds
  52673. + else
  52674. + # the command line is too long to link in one step, link in parts
  52675. + func_verbose "using piecewise archive linking..."
  52676. + save_RANLIB=$RANLIB
  52677. + RANLIB=:
  52678. + objlist=
  52679. + concat_cmds=
  52680. + save_oldobjs=$oldobjs
  52681. + oldobjs=
  52682. + # Is there a better way of finding the last object in the list?
  52683. + for obj in $save_oldobjs
  52684. + do
  52685. + last_oldobj=$obj
  52686. + done
  52687. + eval test_cmds=\"$old_archive_cmds\"
  52688. + func_len " $test_cmds"
  52689. + len0=$func_len_result
  52690. + len=$len0
  52691. + for obj in $save_oldobjs
  52692. + do
  52693. + func_len " $obj"
  52694. + func_arith $len + $func_len_result
  52695. + len=$func_arith_result
  52696. + func_append objlist " $obj"
  52697. + if test "$len" -lt "$max_cmd_len"; then
  52698. + :
  52699. + else
  52700. + # the above command should be used before it gets too long
  52701. + oldobjs=$objlist
  52702. + if test "$obj" = "$last_oldobj" ; then
  52703. + RANLIB=$save_RANLIB
  52704. + fi
  52705. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  52706. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  52707. + objlist=
  52708. + len=$len0
  52709. + fi
  52710. + done
  52711. + RANLIB=$save_RANLIB
  52712. + oldobjs=$objlist
  52713. + if test "X$oldobjs" = "X" ; then
  52714. + eval cmds=\"\$concat_cmds\"
  52715. + else
  52716. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  52717. + fi
  52718. + fi
  52719. + fi
  52720. + func_execute_cmds "$cmds" 'exit $?'
  52721. done
  52722. - $echo
  52723. - $echo "If you ever happen to want to link against installed libraries"
  52724. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  52725. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  52726. - $echo "flag during linking and do at least one of the following:"
  52727. - if test -n "$shlibpath_var"; then
  52728. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  52729. - $echo " during execution"
  52730. - fi
  52731. - if test -n "$runpath_var"; then
  52732. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  52733. - $echo " during linking"
  52734. - fi
  52735. - if test -n "$hardcode_libdir_flag_spec"; then
  52736. - libdir=LIBDIR
  52737. - eval flag=\"$hardcode_libdir_flag_spec\"
  52738. -
  52739. - $echo " - use the \`$flag' linker flag"
  52740. - fi
  52741. - if test -n "$admincmds"; then
  52742. - $echo " - have your system administrator run these commands:$admincmds"
  52743. - fi
  52744. - if test -f /etc/ld.so.conf; then
  52745. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  52746. - fi
  52747. - $echo
  52748. - $echo "See any operating system documentation about shared libraries for"
  52749. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  52750. - $echo "X----------------------------------------------------------------------" | $Xsed
  52751. - exit $EXIT_SUCCESS
  52752. - ;;
  52753. -
  52754. - # libtool execute mode
  52755. - execute)
  52756. - modename="$modename: execute"
  52757. - # The first argument is the command name.
  52758. - cmd="$nonopt"
  52759. - if test -z "$cmd"; then
  52760. - $echo "$modename: you must specify a COMMAND" 1>&2
  52761. - $echo "$help"
  52762. - exit $EXIT_FAILURE
  52763. - fi
  52764. + test -n "$generated" && \
  52765. + func_show_eval "${RM}r$generated"
  52766. - # Handle -dlopen flags immediately.
  52767. - for file in $execute_dlfiles; do
  52768. - if test ! -f "$file"; then
  52769. - $echo "$modename: \`$file' is not a file" 1>&2
  52770. - $echo "$help" 1>&2
  52771. - exit $EXIT_FAILURE
  52772. - fi
  52773. + # Now create the libtool archive.
  52774. + case $output in
  52775. + *.la)
  52776. + old_library=
  52777. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  52778. + func_verbose "creating $output"
  52779. - dir=
  52780. - case $file in
  52781. - *.la)
  52782. - # Check to see that this really is a libtool archive.
  52783. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  52784. + # Preserve any variables that may affect compiler behavior
  52785. + for var in $variables_saved_for_relink; do
  52786. + if eval test -z \"\${$var+set}\"; then
  52787. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  52788. + elif eval var_value=\$$var; test -z "$var_value"; then
  52789. + relink_command="$var=; export $var; $relink_command"
  52790. else
  52791. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  52792. - $echo "$help" 1>&2
  52793. - exit $EXIT_FAILURE
  52794. + func_quote_for_eval "$var_value"
  52795. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  52796. fi
  52797. + done
  52798. + # Quote the link command for shipping.
  52799. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  52800. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  52801. + if test "$hardcode_automatic" = yes ; then
  52802. + relink_command=
  52803. + fi
  52804. - # Read the libtool library.
  52805. - dlname=
  52806. - library_names=
  52807. + # Only create the output if not a dry run.
  52808. + $opt_dry_run || {
  52809. + for installed in no yes; do
  52810. + if test "$installed" = yes; then
  52811. + if test -z "$install_libdir"; then
  52812. + break
  52813. + fi
  52814. + output="$output_objdir/$outputname"i
  52815. + # Replace all uninstalled libtool libraries with the installed ones
  52816. + newdependency_libs=
  52817. + for deplib in $dependency_libs; do
  52818. + case $deplib in
  52819. + *.la)
  52820. + func_basename "$deplib"
  52821. + name="$func_basename_result"
  52822. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  52823. + test -z "$libdir" && \
  52824. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  52825. + newdependency_libs="$newdependency_libs $libdir/$name"
  52826. + ;;
  52827. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  52828. + esac
  52829. + done
  52830. + dependency_libs="$newdependency_libs"
  52831. + newdlfiles=
  52832. +
  52833. + for lib in $dlfiles; do
  52834. + case $lib in
  52835. + *.la)
  52836. + func_basename "$lib"
  52837. + name="$func_basename_result"
  52838. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  52839. + test -z "$libdir" && \
  52840. + func_fatal_error "\`$lib' is not a valid libtool archive"
  52841. + newdlfiles="$newdlfiles $libdir/$name"
  52842. + ;;
  52843. + *) newdlfiles="$newdlfiles $lib" ;;
  52844. + esac
  52845. + done
  52846. + dlfiles="$newdlfiles"
  52847. + newdlprefiles=
  52848. + for lib in $dlprefiles; do
  52849. + case $lib in
  52850. + *.la)
  52851. + # Only pass preopened files to the pseudo-archive (for
  52852. + # eventual linking with the app. that links it) if we
  52853. + # didn't already link the preopened objects directly into
  52854. + # the library:
  52855. + func_basename "$lib"
  52856. + name="$func_basename_result"
  52857. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  52858. + test -z "$libdir" && \
  52859. + func_fatal_error "\`$lib' is not a valid libtool archive"
  52860. + newdlprefiles="$newdlprefiles $libdir/$name"
  52861. + ;;
  52862. + esac
  52863. + done
  52864. + dlprefiles="$newdlprefiles"
  52865. + else
  52866. + newdlfiles=
  52867. + for lib in $dlfiles; do
  52868. + case $lib in
  52869. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  52870. + *) abs=`pwd`"/$lib" ;;
  52871. + esac
  52872. + newdlfiles="$newdlfiles $abs"
  52873. + done
  52874. + dlfiles="$newdlfiles"
  52875. + newdlprefiles=
  52876. + for lib in $dlprefiles; do
  52877. + case $lib in
  52878. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  52879. + *) abs=`pwd`"/$lib" ;;
  52880. + esac
  52881. + newdlprefiles="$newdlprefiles $abs"
  52882. + done
  52883. + dlprefiles="$newdlprefiles"
  52884. + fi
  52885. + $RM $output
  52886. + # place dlname in correct position for cygwin
  52887. + tdlname=$dlname
  52888. + case $host,$output,$installed,$module,$dlname in
  52889. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  52890. + esac
  52891. + $ECHO > $output "\
  52892. +# $outputname - a libtool library file
  52893. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52894. +#
  52895. +# Please DO NOT delete this file!
  52896. +# It is necessary for linking the library.
  52897. - # If there is no directory component, then add one.
  52898. - case $file in
  52899. - */* | *\\*) . $file ;;
  52900. - *) . ./$file ;;
  52901. - esac
  52902. +# The name that we can dlopen(3).
  52903. +dlname='$tdlname'
  52904. - # Skip this library if it cannot be dlopened.
  52905. - if test -z "$dlname"; then
  52906. - # Warn if it was a shared library.
  52907. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  52908. - continue
  52909. - fi
  52910. +# Names of this library.
  52911. +library_names='$library_names'
  52912. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  52913. - test "X$dir" = "X$file" && dir=.
  52914. +# The name of the static archive.
  52915. +old_library='$old_library'
  52916. - if test -f "$dir/$objdir/$dlname"; then
  52917. - dir="$dir/$objdir"
  52918. - else
  52919. - if test ! -f "$dir/$dlname"; then
  52920. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  52921. - exit $EXIT_FAILURE
  52922. - fi
  52923. - fi
  52924. - ;;
  52925. +# Linker flags that can not go in dependency_libs.
  52926. +inherited_linker_flags='$new_inherited_linker_flags'
  52927. - *.lo)
  52928. - # Just add the directory containing the .lo file.
  52929. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  52930. - test "X$dir" = "X$file" && dir=.
  52931. - ;;
  52932. +# Libraries that this one depends upon.
  52933. +dependency_libs='$dependency_libs'
  52934. - *)
  52935. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  52936. - continue
  52937. - ;;
  52938. - esac
  52939. +# Names of additional weak libraries provided by this library
  52940. +weak_library_names='$weak_libs'
  52941. - # Get the absolute pathname.
  52942. - absdir=`cd "$dir" && pwd`
  52943. - test -n "$absdir" && dir="$absdir"
  52944. +# Version information for $libname.
  52945. +current=$current
  52946. +age=$age
  52947. +revision=$revision
  52948. - # Now add the directory to shlibpath_var.
  52949. - if eval "test -z \"\$$shlibpath_var\""; then
  52950. - eval "$shlibpath_var=\"\$dir\""
  52951. - else
  52952. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  52953. - fi
  52954. - done
  52955. +# Is this an already installed library?
  52956. +installed=$installed
  52957. - # This variable tells wrapper scripts just to set shlibpath_var
  52958. - # rather than running their programs.
  52959. - libtool_execute_magic="$magic"
  52960. +# Should we warn about portability when linking against -modules?
  52961. +shouldnotlink=$module
  52962. - # Check if any of the arguments is a wrapper script.
  52963. - args=
  52964. - for file
  52965. - do
  52966. - case $file in
  52967. - -*) ;;
  52968. - *)
  52969. - # Do a test to see if this is really a libtool program.
  52970. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52971. - # If there is no directory component, then add one.
  52972. - case $file in
  52973. - */* | *\\*) . $file ;;
  52974. - *) . ./$file ;;
  52975. - esac
  52976. +# Files to dlopen/dlpreopen
  52977. +dlopen='$dlfiles'
  52978. +dlpreopen='$dlprefiles'
  52979. - # Transform arg to wrapped name.
  52980. - file="$progdir/$program"
  52981. - fi
  52982. - ;;
  52983. - esac
  52984. - # Quote arguments (to preserve shell metacharacters).
  52985. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  52986. - args="$args \"$file\""
  52987. - done
  52988. +# Directory that this library needs to be installed in:
  52989. +libdir='$install_libdir'"
  52990. + if test "$installed" = no && test "$need_relink" = yes; then
  52991. + $ECHO >> $output "\
  52992. +relink_command=\"$relink_command\""
  52993. + fi
  52994. + done
  52995. + }
  52996. - if test -z "$run"; then
  52997. - if test -n "$shlibpath_var"; then
  52998. - # Export the shlibpath_var.
  52999. - eval "export $shlibpath_var"
  53000. - fi
  53001. + # Do a symbolic link so that the libtool archive can be found in
  53002. + # LD_LIBRARY_PATH before the program is installed.
  53003. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  53004. + ;;
  53005. + esac
  53006. + exit $EXIT_SUCCESS
  53007. +}
  53008. - # Restore saved environment variables
  53009. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  53010. - do
  53011. - eval "if test \"\${save_$lt_var+set}\" = set; then
  53012. - $lt_var=\$save_$lt_var; export $lt_var
  53013. - fi"
  53014. - done
  53015. +{ test "$mode" = link || test "$mode" = relink; } &&
  53016. + func_mode_link ${1+"$@"}
  53017. - # Now prepare to actually exec the command.
  53018. - exec_cmd="\$cmd$args"
  53019. - else
  53020. - # Display what would be done.
  53021. - if test -n "$shlibpath_var"; then
  53022. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  53023. - $echo "export $shlibpath_var"
  53024. - fi
  53025. - $echo "$cmd$args"
  53026. - exit $EXIT_SUCCESS
  53027. - fi
  53028. - ;;
  53029. - # libtool clean and uninstall mode
  53030. - clean | uninstall)
  53031. - modename="$modename: $mode"
  53032. - rm="$nonopt"
  53033. +# func_mode_uninstall arg...
  53034. +func_mode_uninstall ()
  53035. +{
  53036. + $opt_debug
  53037. + RM="$nonopt"
  53038. files=
  53039. rmforce=
  53040. exit_status=0
  53041. @@ -6539,30 +8209,28 @@
  53042. for arg
  53043. do
  53044. case $arg in
  53045. - -f) rm="$rm $arg"; rmforce=yes ;;
  53046. - -*) rm="$rm $arg" ;;
  53047. + -f) RM="$RM $arg"; rmforce=yes ;;
  53048. + -*) RM="$RM $arg" ;;
  53049. *) files="$files $arg" ;;
  53050. esac
  53051. done
  53052. - if test -z "$rm"; then
  53053. - $echo "$modename: you must specify an RM program" 1>&2
  53054. - $echo "$help" 1>&2
  53055. - exit $EXIT_FAILURE
  53056. - fi
  53057. + test -z "$RM" && \
  53058. + func_fatal_help "you must specify an RM program"
  53059. rmdirs=
  53060. origobjdir="$objdir"
  53061. for file in $files; do
  53062. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  53063. - if test "X$dir" = "X$file"; then
  53064. - dir=.
  53065. + func_dirname "$file" "" "."
  53066. + dir="$func_dirname_result"
  53067. + if test "X$dir" = X.; then
  53068. objdir="$origobjdir"
  53069. else
  53070. objdir="$dir/$origobjdir"
  53071. fi
  53072. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  53073. + func_basename "$file"
  53074. + name="$func_basename_result"
  53075. test "$mode" = uninstall && objdir="$dir"
  53076. # Remember objdir for removal later, being careful to avoid duplicates
  53077. @@ -6574,9 +8242,9 @@
  53078. fi
  53079. # Don't error if the file doesn't exist and rm -f was used.
  53080. - if (test -L "$file") >/dev/null 2>&1 \
  53081. - || (test -h "$file") >/dev/null 2>&1 \
  53082. - || test -f "$file"; then
  53083. + if { test -L "$file"; } >/dev/null 2>&1 ||
  53084. + { test -h "$file"; } >/dev/null 2>&1 ||
  53085. + test -f "$file"; then
  53086. :
  53087. elif test -d "$file"; then
  53088. exit_status=1
  53089. @@ -6590,8 +8258,8 @@
  53090. case $name in
  53091. *.la)
  53092. # Possibly a libtool archive, so verify it.
  53093. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53094. - . $dir/$name
  53095. + if func_lalib_p "$file"; then
  53096. + func_source $dir/$name
  53097. # Delete the libtool libraries and symlinks.
  53098. for n in $library_names; do
  53099. @@ -6606,39 +8274,17 @@
  53100. *" $dlname "*) ;;
  53101. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  53102. esac
  53103. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  53104. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  53105. ;;
  53106. uninstall)
  53107. if test -n "$library_names"; then
  53108. # Do each command in the postuninstall commands.
  53109. - cmds=$postuninstall_cmds
  53110. - save_ifs="$IFS"; IFS='~'
  53111. - for cmd in $cmds; do
  53112. - IFS="$save_ifs"
  53113. - eval cmd=\"$cmd\"
  53114. - $show "$cmd"
  53115. - $run eval "$cmd"
  53116. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  53117. - exit_status=1
  53118. - fi
  53119. - done
  53120. - IFS="$save_ifs"
  53121. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  53122. fi
  53123. if test -n "$old_library"; then
  53124. # Do each command in the old_postuninstall commands.
  53125. - cmds=$old_postuninstall_cmds
  53126. - save_ifs="$IFS"; IFS='~'
  53127. - for cmd in $cmds; do
  53128. - IFS="$save_ifs"
  53129. - eval cmd=\"$cmd\"
  53130. - $show "$cmd"
  53131. - $run eval "$cmd"
  53132. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  53133. - exit_status=1
  53134. - fi
  53135. - done
  53136. - IFS="$save_ifs"
  53137. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  53138. fi
  53139. # FIXME: should reinstall the best remaining shared library.
  53140. ;;
  53141. @@ -6648,20 +8294,20 @@
  53142. *.lo)
  53143. # Possibly a libtool object, so verify it.
  53144. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53145. + if func_lalib_p "$file"; then
  53146. # Read the .lo file
  53147. - . $dir/$name
  53148. + func_source $dir/$name
  53149. # Add PIC object to the list of files to remove.
  53150. - if test -n "$pic_object" \
  53151. - && test "$pic_object" != none; then
  53152. + if test -n "$pic_object" &&
  53153. + test "$pic_object" != none; then
  53154. rmfiles="$rmfiles $dir/$pic_object"
  53155. fi
  53156. # Add non-PIC object to the list of files to remove.
  53157. - if test -n "$non_pic_object" \
  53158. - && test "$non_pic_object" != none; then
  53159. + if test -n "$non_pic_object" &&
  53160. + test "$non_pic_object" != none; then
  53161. rmfiles="$rmfiles $dir/$non_pic_object"
  53162. fi
  53163. fi
  53164. @@ -6672,17 +8318,26 @@
  53165. noexename=$name
  53166. case $file in
  53167. *.exe)
  53168. - file=`$echo $file|${SED} 's,.exe$,,'`
  53169. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  53170. + func_stripname '' '.exe' "$file"
  53171. + file=$func_stripname_result
  53172. + func_stripname '' '.exe' "$name"
  53173. + noexename=$func_stripname_result
  53174. # $file with .exe has already been added to rmfiles,
  53175. # add $file without .exe
  53176. rmfiles="$rmfiles $file"
  53177. ;;
  53178. esac
  53179. # Do a test to see if this is a libtool program.
  53180. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53181. - relink_command=
  53182. - . $dir/$noexename
  53183. + if func_ltwrapper_p "$file"; then
  53184. + if func_ltwrapper_executable_p "$file"; then
  53185. + func_ltwrapper_scriptname "$file"
  53186. + relink_command=
  53187. + func_source $func_ltwrapper_scriptname_result
  53188. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  53189. + else
  53190. + relink_command=
  53191. + func_source $dir/$noexename
  53192. + fi
  53193. # note $name still contains .exe if it was in $file originally
  53194. # as does the version of $file that was added into $rmfiles
  53195. @@ -6697,239 +8352,38 @@
  53196. fi
  53197. ;;
  53198. esac
  53199. - $show "$rm $rmfiles"
  53200. - $run $rm $rmfiles || exit_status=1
  53201. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  53202. done
  53203. objdir="$origobjdir"
  53204. # Try to remove the ${objdir}s in the directories where we deleted files
  53205. for dir in $rmdirs; do
  53206. if test -d "$dir"; then
  53207. - $show "rmdir $dir"
  53208. - $run rmdir $dir >/dev/null 2>&1
  53209. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  53210. fi
  53211. done
  53212. exit $exit_status
  53213. - ;;
  53214. +}
  53215. - "")
  53216. - $echo "$modename: you must specify a MODE" 1>&2
  53217. - $echo "$generic_help" 1>&2
  53218. - exit $EXIT_FAILURE
  53219. - ;;
  53220. - esac
  53221. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  53222. + func_mode_uninstall ${1+"$@"}
  53223. - if test -z "$exec_cmd"; then
  53224. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  53225. - $echo "$generic_help" 1>&2
  53226. - exit $EXIT_FAILURE
  53227. - fi
  53228. -fi # test -z "$show_help"
  53229. +test -z "$mode" && {
  53230. + help="$generic_help"
  53231. + func_fatal_help "you must specify a MODE"
  53232. +}
  53233. +
  53234. +test -z "$exec_cmd" && \
  53235. + func_fatal_help "invalid operation mode \`$mode'"
  53236. if test -n "$exec_cmd"; then
  53237. - eval exec $exec_cmd
  53238. + eval exec "$exec_cmd"
  53239. exit $EXIT_FAILURE
  53240. fi
  53241. -# We need to display help for each of the modes.
  53242. -case $mode in
  53243. -"") $echo \
  53244. -"Usage: $modename [OPTION]... [MODE-ARG]...
  53245. -
  53246. -Provide generalized library-building support services.
  53247. -
  53248. - --config show all configuration variables
  53249. - --debug enable verbose shell tracing
  53250. --n, --dry-run display commands without modifying any files
  53251. - --features display basic configuration information and exit
  53252. - --finish same as \`--mode=finish'
  53253. - --help display this help message and exit
  53254. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  53255. - --quiet same as \`--silent'
  53256. - --silent don't print informational messages
  53257. - --tag=TAG use configuration variables from tag TAG
  53258. - --version print version information
  53259. -
  53260. -MODE must be one of the following:
  53261. -
  53262. - clean remove files from the build directory
  53263. - compile compile a source file into a libtool object
  53264. - execute automatically set library path, then run a program
  53265. - finish complete the installation of libtool libraries
  53266. - install install libraries or executables
  53267. - link create a library or an executable
  53268. - uninstall remove libraries from an installed directory
  53269. -
  53270. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  53271. -a more detailed description of MODE.
  53272. -
  53273. -Report bugs to <bug-libtool@gnu.org>."
  53274. - exit $EXIT_SUCCESS
  53275. - ;;
  53276. -
  53277. -clean)
  53278. - $echo \
  53279. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  53280. -
  53281. -Remove files from the build directory.
  53282. -
  53283. -RM is the name of the program to use to delete files associated with each FILE
  53284. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  53285. -to RM.
  53286. -
  53287. -If FILE is a libtool library, object or program, all the files associated
  53288. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  53289. - ;;
  53290. -
  53291. -compile)
  53292. - $echo \
  53293. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  53294. -
  53295. -Compile a source file into a libtool library object.
  53296. -
  53297. -This mode accepts the following additional options:
  53298. -
  53299. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  53300. - -prefer-pic try to building PIC objects only
  53301. - -prefer-non-pic try to building non-PIC objects only
  53302. - -static always build a \`.o' file suitable for static linking
  53303. -
  53304. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  53305. -from the given SOURCEFILE.
  53306. -
  53307. -The output file name is determined by removing the directory component from
  53308. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  53309. -library object suffix, \`.lo'."
  53310. - ;;
  53311. -
  53312. -execute)
  53313. - $echo \
  53314. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  53315. -
  53316. -Automatically set library path, then run a program.
  53317. -
  53318. -This mode accepts the following additional options:
  53319. -
  53320. - -dlopen FILE add the directory containing FILE to the library path
  53321. -
  53322. -This mode sets the library path environment variable according to \`-dlopen'
  53323. -flags.
  53324. -
  53325. -If any of the ARGS are libtool executable wrappers, then they are translated
  53326. -into their corresponding uninstalled binary, and any of their required library
  53327. -directories are added to the library path.
  53328. -
  53329. -Then, COMMAND is executed, with ARGS as arguments."
  53330. - ;;
  53331. -
  53332. -finish)
  53333. - $echo \
  53334. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  53335. -
  53336. -Complete the installation of libtool libraries.
  53337. -
  53338. -Each LIBDIR is a directory that contains libtool libraries.
  53339. -
  53340. -The commands that this mode executes may require superuser privileges. Use
  53341. -the \`--dry-run' option if you just want to see what would be executed."
  53342. - ;;
  53343. -
  53344. -install)
  53345. - $echo \
  53346. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  53347. -
  53348. -Install executables or libraries.
  53349. -
  53350. -INSTALL-COMMAND is the installation command. The first component should be
  53351. -either the \`install' or \`cp' program.
  53352. -
  53353. -The rest of the components are interpreted as arguments to that command (only
  53354. -BSD-compatible install options are recognized)."
  53355. - ;;
  53356. -
  53357. -link)
  53358. - $echo \
  53359. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  53360. -
  53361. -Link object files or libraries together to form another library, or to
  53362. -create an executable program.
  53363. +exit $exit_status
  53364. -LINK-COMMAND is a command using the C compiler that you would use to create
  53365. -a program from several object files.
  53366. -
  53367. -The following components of LINK-COMMAND are treated specially:
  53368. -
  53369. - -all-static do not do any dynamic linking at all
  53370. - -avoid-version do not add a version suffix if possible
  53371. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  53372. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  53373. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  53374. - -export-symbols SYMFILE
  53375. - try to export only the symbols listed in SYMFILE
  53376. - -export-symbols-regex REGEX
  53377. - try to export only the symbols matching REGEX
  53378. - -LLIBDIR search LIBDIR for required installed libraries
  53379. - -lNAME OUTPUT-FILE requires the installed library libNAME
  53380. - -module build a library that can dlopened
  53381. - -no-fast-install disable the fast-install mode
  53382. - -no-install link a not-installable executable
  53383. - -no-undefined declare that a library does not refer to external symbols
  53384. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  53385. - -objectlist FILE Use a list of object files found in FILE to specify objects
  53386. - -precious-files-regex REGEX
  53387. - don't remove output files matching REGEX
  53388. - -release RELEASE specify package release information
  53389. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  53390. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  53391. - -static do not do any dynamic linking of uninstalled libtool libraries
  53392. - -static-libtool-libs
  53393. - do not do any dynamic linking of libtool libraries
  53394. - -version-info CURRENT[:REVISION[:AGE]]
  53395. - specify library version info [each variable defaults to 0]
  53396. -
  53397. -All other options (arguments beginning with \`-') are ignored.
  53398. -
  53399. -Every other argument is treated as a filename. Files ending in \`.la' are
  53400. -treated as uninstalled libtool libraries, other files are standard or library
  53401. -object files.
  53402. -
  53403. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  53404. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  53405. -required, except when creating a convenience library.
  53406. -
  53407. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  53408. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  53409. -
  53410. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  53411. -is created, otherwise an executable program is created."
  53412. - ;;
  53413. -
  53414. -uninstall)
  53415. - $echo \
  53416. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  53417. -
  53418. -Remove libraries from an installation directory.
  53419. -
  53420. -RM is the name of the program to use to delete files associated with each FILE
  53421. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  53422. -to RM.
  53423. -
  53424. -If FILE is a libtool library, all the files associated with it are deleted.
  53425. -Otherwise, only FILE itself is deleted using RM."
  53426. - ;;
  53427. -
  53428. -*)
  53429. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  53430. - $echo "$help" 1>&2
  53431. - exit $EXIT_FAILURE
  53432. - ;;
  53433. -esac
  53434. -
  53435. -$echo
  53436. -$echo "Try \`$modename --help' for more information about other modes."
  53437. -
  53438. -exit $?
  53439. # The TAGs below are defined such that we never get into a situation
  53440. # in which we disable both kinds of libraries. Given conflicting
  53441. @@ -6943,14 +8397,17 @@
  53442. # configuration. But we'll never go from static-only to shared-only.
  53443. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  53444. -disable_libs=shared
  53445. +build_libtool_libs=no
  53446. +build_old_libs=yes
  53447. # ### END LIBTOOL TAG CONFIG: disable-shared
  53448. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  53449. -disable_libs=static
  53450. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  53451. # ### END LIBTOOL TAG CONFIG: disable-static
  53452. # Local Variables:
  53453. # mode:shell-script
  53454. # sh-indentation:2
  53455. # End:
  53456. +# vi:sw=2
  53457. +
  53458. diff -Nur rpcbind-0.2.0.orig/Makefile.in rpcbind-0.2.0/Makefile.in
  53459. --- rpcbind-0.2.0.orig/Makefile.in 2009-05-29 18:37:50.000000000 +0200
  53460. +++ rpcbind-0.2.0/Makefile.in 2011-02-17 19:38:37.723563012 +0100
  53461. @@ -1,8 +1,9 @@
  53462. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  53463. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  53464. # @configure_input@
  53465. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  53466. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  53467. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  53468. +# Inc.
  53469. # This Makefile.in is free software; the Free Software Foundation
  53470. # gives unlimited permission to copy and/or distribute it,
  53471. # with or without modifications, as long as this notice is preserved.
  53472. @@ -15,8 +16,9 @@
  53473. @SET_MAKE@
  53474. VPATH = @srcdir@
  53475. pkgdatadir = $(datadir)/@PACKAGE@
  53476. -pkglibdir = $(libdir)/@PACKAGE@
  53477. pkgincludedir = $(includedir)/@PACKAGE@
  53478. +pkglibdir = $(libdir)/@PACKAGE@
  53479. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  53480. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  53481. install_sh_DATA = $(install_sh) -c -m 644
  53482. install_sh_PROGRAM = $(install_sh) -c
  53483. @@ -45,6 +47,7 @@
  53484. mkinstalldirs = $(install_sh) -d
  53485. CONFIG_HEADER = config.h $(top_builddir)/src/config.h
  53486. CONFIG_CLEAN_FILES =
  53487. +CONFIG_CLEAN_VPATH_FILES =
  53488. SOURCES =
  53489. DIST_SOURCES =
  53490. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  53491. @@ -56,6 +59,9 @@
  53492. ps-recursive uninstall-recursive
  53493. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  53494. distclean-recursive maintainer-clean-recursive
  53495. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  53496. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  53497. + distdir dist dist-all distcheck
  53498. ETAGS = etags
  53499. CTAGS = ctags
  53500. DIST_SUBDIRS = $(SUBDIRS)
  53501. @@ -63,9 +69,34 @@
  53502. distdir = $(PACKAGE)-$(VERSION)
  53503. top_distdir = $(distdir)
  53504. am__remove_distdir = \
  53505. - { test ! -d $(distdir) \
  53506. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  53507. - && rm -fr $(distdir); }; }
  53508. + { test ! -d "$(distdir)" \
  53509. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  53510. + && rm -fr "$(distdir)"; }; }
  53511. +am__relativize = \
  53512. + dir0=`pwd`; \
  53513. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  53514. + sed_rest='s,^[^/]*/*,,'; \
  53515. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  53516. + sed_butlast='s,/*[^/]*$$,,'; \
  53517. + while test -n "$$dir1"; do \
  53518. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  53519. + if test "$$first" != "."; then \
  53520. + if test "$$first" = ".."; then \
  53521. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  53522. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  53523. + else \
  53524. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  53525. + if test "$$first2" = "$$first"; then \
  53526. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  53527. + else \
  53528. + dir2="../$$dir2"; \
  53529. + fi; \
  53530. + dir0="$$dir0"/"$$first"; \
  53531. + fi; \
  53532. + fi; \
  53533. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  53534. + done; \
  53535. + reldir="$$dir2"
  53536. DIST_ARCHIVES = $(distdir).tar.gz
  53537. GZIP_ENV = --best
  53538. distuninstallcheck_listfiles = find . -type f -print
  53539. @@ -82,43 +113,45 @@
  53540. CFLAGS = @CFLAGS@
  53541. CPP = @CPP@
  53542. CPPFLAGS = @CPPFLAGS@
  53543. -CXX = @CXX@
  53544. -CXXCPP = @CXXCPP@
  53545. -CXXDEPMODE = @CXXDEPMODE@
  53546. -CXXFLAGS = @CXXFLAGS@
  53547. CYGPATH_W = @CYGPATH_W@
  53548. DEFS = @DEFS@
  53549. DEPDIR = @DEPDIR@
  53550. DSYMUTIL = @DSYMUTIL@
  53551. -ECHO = @ECHO@
  53552. +DUMPBIN = @DUMPBIN@
  53553. ECHO_C = @ECHO_C@
  53554. ECHO_N = @ECHO_N@
  53555. ECHO_T = @ECHO_T@
  53556. EGREP = @EGREP@
  53557. EXEEXT = @EXEEXT@
  53558. -F77 = @F77@
  53559. -FFLAGS = @FFLAGS@
  53560. +FGREP = @FGREP@
  53561. GREP = @GREP@
  53562. INSTALL = @INSTALL@
  53563. INSTALL_DATA = @INSTALL_DATA@
  53564. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  53565. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  53566. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  53567. +LD = @LD@
  53568. LDFLAGS = @LDFLAGS@
  53569. LIBOBJS = @LIBOBJS@
  53570. LIBS = @LIBS@
  53571. LIBTOOL = @LIBTOOL@
  53572. +LIPO = @LIPO@
  53573. LN_S = @LN_S@
  53574. LTLIBOBJS = @LTLIBOBJS@
  53575. MAKEINFO = @MAKEINFO@
  53576. MKDIR_P = @MKDIR_P@
  53577. +NM = @NM@
  53578. NMEDIT = @NMEDIT@
  53579. +OBJDUMP = @OBJDUMP@
  53580. OBJEXT = @OBJEXT@
  53581. +OTOOL = @OTOOL@
  53582. +OTOOL64 = @OTOOL64@
  53583. PACKAGE = @PACKAGE@
  53584. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  53585. PACKAGE_NAME = @PACKAGE_NAME@
  53586. PACKAGE_STRING = @PACKAGE_STRING@
  53587. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  53588. +PACKAGE_URL = @PACKAGE_URL@
  53589. PACKAGE_VERSION = @PACKAGE_VERSION@
  53590. PATH_SEPARATOR = @PATH_SEPARATOR@
  53591. RANLIB = @RANLIB@
  53592. @@ -132,8 +165,7 @@
  53593. abs_top_builddir = @abs_top_builddir@
  53594. abs_top_srcdir = @abs_top_srcdir@
  53595. ac_ct_CC = @ac_ct_CC@
  53596. -ac_ct_CXX = @ac_ct_CXX@
  53597. -ac_ct_F77 = @ac_ct_F77@
  53598. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  53599. am__include = @am__include@
  53600. am__leading_dot = @am__leading_dot@
  53601. am__quote = @am__quote@
  53602. @@ -164,6 +196,7 @@
  53603. libexecdir = @libexecdir@
  53604. localedir = @localedir@
  53605. localstatedir = @localstatedir@
  53606. +lt_ECHO = @lt_ECHO@
  53607. mandir = @mandir@
  53608. mkdir_p = @mkdir_p@
  53609. oldincludedir = @oldincludedir@
  53610. @@ -192,15 +225,15 @@
  53611. @for dep in $?; do \
  53612. case '$(am__configure_deps)' in \
  53613. *$$dep*) \
  53614. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  53615. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  53616. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  53617. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  53618. && exit 0; \
  53619. exit 1;; \
  53620. esac; \
  53621. done; \
  53622. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  53623. - cd $(top_srcdir) && \
  53624. - $(AUTOMAKE) --gnu Makefile
  53625. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  53626. + $(am__cd) $(top_srcdir) && \
  53627. + $(AUTOMAKE) --gnu Makefile
  53628. .PRECIOUS: Makefile
  53629. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  53630. @case '$?' in \
  53631. @@ -216,9 +249,10 @@
  53632. $(SHELL) ./config.status --recheck
  53633. $(top_srcdir)/configure: $(am__configure_deps)
  53634. - cd $(srcdir) && $(AUTOCONF)
  53635. + $(am__cd) $(srcdir) && $(AUTOCONF)
  53636. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  53637. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  53638. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  53639. +$(am__aclocal_m4_deps):
  53640. config.h: stamp-h1
  53641. @if test ! -f $@; then \
  53642. @@ -230,7 +264,7 @@
  53643. @rm -f stamp-h1
  53644. cd $(top_builddir) && $(SHELL) ./config.status config.h
  53645. $(srcdir)/config.h.in: $(am__configure_deps)
  53646. - cd $(top_srcdir) && $(AUTOHEADER)
  53647. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  53648. rm -f stamp-h1
  53649. touch $@
  53650. @@ -244,7 +278,7 @@
  53651. -rm -rf .libs _libs
  53652. distclean-libtool:
  53653. - -rm -f libtool
  53654. + -rm -f libtool config.lt
  53655. # This directory's subdirectories are mostly independent; you can cd
  53656. # into them and run `make' without going through this Makefile.
  53657. @@ -253,7 +287,7 @@
  53658. # (which will cause the Makefiles to be regenerated when you run `make');
  53659. # (2) otherwise, pass the desired values on the `make' command line.
  53660. $(RECURSIVE_TARGETS):
  53661. - @failcom='exit 1'; \
  53662. + @fail= failcom='exit 1'; \
  53663. for f in x $$MAKEFLAGS; do \
  53664. case $$f in \
  53665. *=* | --[!k]*);; \
  53666. @@ -270,7 +304,7 @@
  53667. else \
  53668. local_target="$$target"; \
  53669. fi; \
  53670. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53671. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53672. || eval $$failcom; \
  53673. done; \
  53674. if test "$$dot_seen" = "no"; then \
  53675. @@ -278,7 +312,7 @@
  53676. fi; test -z "$$fail"
  53677. $(RECURSIVE_CLEAN_TARGETS):
  53678. - @failcom='exit 1'; \
  53679. + @fail= failcom='exit 1'; \
  53680. for f in x $$MAKEFLAGS; do \
  53681. case $$f in \
  53682. *=* | --[!k]*);; \
  53683. @@ -304,16 +338,16 @@
  53684. else \
  53685. local_target="$$target"; \
  53686. fi; \
  53687. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53688. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  53689. || eval $$failcom; \
  53690. done && test -z "$$fail"
  53691. tags-recursive:
  53692. list='$(SUBDIRS)'; for subdir in $$list; do \
  53693. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  53694. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  53695. done
  53696. ctags-recursive:
  53697. list='$(SUBDIRS)'; for subdir in $$list; do \
  53698. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  53699. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  53700. done
  53701. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  53702. @@ -321,14 +355,14 @@
  53703. unique=`for i in $$list; do \
  53704. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53705. done | \
  53706. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  53707. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53708. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53709. mkid -fID $$unique
  53710. tags: TAGS
  53711. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  53712. $(TAGS_FILES) $(LISP)
  53713. - tags=; \
  53714. + set x; \
  53715. here=`pwd`; \
  53716. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  53717. include_option=--etags-include; \
  53718. @@ -340,7 +374,7 @@
  53719. list='$(SUBDIRS)'; for subdir in $$list; do \
  53720. if test "$$subdir" = .; then :; else \
  53721. test ! -f $$subdir/TAGS || \
  53722. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  53723. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  53724. fi; \
  53725. done; \
  53726. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  53727. @@ -349,36 +383,41 @@
  53728. done | \
  53729. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53730. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53731. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  53732. + shift; \
  53733. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  53734. test -n "$$unique" || unique=$$empty_fix; \
  53735. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53736. - $$tags $$unique; \
  53737. + if test $$# -gt 0; then \
  53738. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53739. + "$$@" $$unique; \
  53740. + else \
  53741. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  53742. + $$unique; \
  53743. + fi; \
  53744. fi
  53745. ctags: CTAGS
  53746. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  53747. $(TAGS_FILES) $(LISP)
  53748. - tags=; \
  53749. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  53750. unique=`for i in $$list; do \
  53751. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  53752. done | \
  53753. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  53754. END { if (nonempty) { for (i in files) print i; }; }'`; \
  53755. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  53756. + test -z "$(CTAGS_ARGS)$$unique" \
  53757. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  53758. - $$tags $$unique
  53759. + $$unique
  53760. GTAGS:
  53761. here=`$(am__cd) $(top_builddir) && pwd` \
  53762. - && cd $(top_srcdir) \
  53763. - && gtags -i $(GTAGS_ARGS) $$here
  53764. + && $(am__cd) $(top_srcdir) \
  53765. + && gtags -i $(GTAGS_ARGS) "$$here"
  53766. distclean-tags:
  53767. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  53768. distdir: $(DISTFILES)
  53769. $(am__remove_distdir)
  53770. - test -d $(distdir) || mkdir $(distdir)
  53771. + test -d "$(distdir)" || mkdir "$(distdir)"
  53772. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53773. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  53774. list='$(DISTFILES)'; \
  53775. @@ -394,38 +433,55 @@
  53776. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  53777. if test -d $$d/$$file; then \
  53778. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  53779. + if test -d "$(distdir)/$$file"; then \
  53780. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53781. + fi; \
  53782. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  53783. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  53784. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  53785. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  53786. fi; \
  53787. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  53788. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  53789. else \
  53790. - test -f $(distdir)/$$file \
  53791. - || cp -p $$d/$$file $(distdir)/$$file \
  53792. + test -f "$(distdir)/$$file" \
  53793. + || cp -p $$d/$$file "$(distdir)/$$file" \
  53794. || exit 1; \
  53795. fi; \
  53796. done
  53797. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53798. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53799. if test "$$subdir" = .; then :; else \
  53800. test -d "$(distdir)/$$subdir" \
  53801. || $(MKDIR_P) "$(distdir)/$$subdir" \
  53802. || exit 1; \
  53803. - distdir=`$(am__cd) $(distdir) && pwd`; \
  53804. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  53805. - (cd $$subdir && \
  53806. + fi; \
  53807. + done
  53808. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  53809. + if test "$$subdir" = .; then :; else \
  53810. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  53811. + $(am__relativize); \
  53812. + new_distdir=$$reldir; \
  53813. + dir1=$$subdir; dir2="$(top_distdir)"; \
  53814. + $(am__relativize); \
  53815. + new_top_distdir=$$reldir; \
  53816. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  53817. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  53818. + ($(am__cd) $$subdir && \
  53819. $(MAKE) $(AM_MAKEFLAGS) \
  53820. - top_distdir="$$top_distdir" \
  53821. - distdir="$$distdir/$$subdir" \
  53822. + top_distdir="$$new_top_distdir" \
  53823. + distdir="$$new_distdir" \
  53824. am__remove_distdir=: \
  53825. am__skip_length_check=: \
  53826. + am__skip_mode_fix=: \
  53827. distdir) \
  53828. || exit 1; \
  53829. fi; \
  53830. done
  53831. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  53832. + -test -n "$(am__skip_mode_fix)" \
  53833. + || find "$(distdir)" -type d ! -perm -755 \
  53834. + -exec chmod u+rwx,go+rx {} \; -o \
  53835. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  53836. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  53837. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  53838. - || chmod -R a+r $(distdir)
  53839. + || chmod -R a+r "$(distdir)"
  53840. dist-gzip: distdir
  53841. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  53842. $(am__remove_distdir)
  53843. @@ -438,6 +494,10 @@
  53844. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  53845. $(am__remove_distdir)
  53846. +dist-xz: distdir
  53847. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  53848. + $(am__remove_distdir)
  53849. +
  53850. dist-tarZ: distdir
  53851. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  53852. $(am__remove_distdir)
  53853. @@ -461,15 +521,17 @@
  53854. distcheck: dist
  53855. case '$(DIST_ARCHIVES)' in \
  53856. *.tar.gz*) \
  53857. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  53858. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  53859. *.tar.bz2*) \
  53860. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  53861. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  53862. *.tar.lzma*) \
  53863. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  53864. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  53865. + *.tar.xz*) \
  53866. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  53867. *.tar.Z*) \
  53868. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  53869. *.shar.gz*) \
  53870. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  53871. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  53872. *.zip*) \
  53873. unzip $(distdir).zip ;;\
  53874. esac
  53875. @@ -477,9 +539,11 @@
  53876. mkdir $(distdir)/_build
  53877. mkdir $(distdir)/_inst
  53878. chmod a-w $(distdir)
  53879. + test -d $(distdir)/_build || exit 0; \
  53880. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  53881. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  53882. - && cd $(distdir)/_build \
  53883. + && am__cwd=`pwd` \
  53884. + && $(am__cd) $(distdir)/_build \
  53885. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  53886. $(DISTCHECK_CONFIGURE_FLAGS) \
  53887. && $(MAKE) $(AM_MAKEFLAGS) \
  53888. @@ -501,13 +565,15 @@
  53889. && rm -rf "$$dc_destdir" \
  53890. && $(MAKE) $(AM_MAKEFLAGS) dist \
  53891. && rm -rf $(DIST_ARCHIVES) \
  53892. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  53893. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  53894. + && cd "$$am__cwd" \
  53895. + || exit 1
  53896. $(am__remove_distdir)
  53897. @(echo "$(distdir) archives ready for distribution: "; \
  53898. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  53899. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  53900. distuninstallcheck:
  53901. - @cd $(distuninstallcheck_dir) \
  53902. + @$(am__cd) '$(distuninstallcheck_dir)' \
  53903. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  53904. || { echo "ERROR: files left after uninstall:" ; \
  53905. if test -n "$(DESTDIR)"; then \
  53906. @@ -549,6 +615,7 @@
  53907. distclean-generic:
  53908. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  53909. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  53910. maintainer-clean-generic:
  53911. @echo "This command is intended for maintainers to use"
  53912. @@ -569,6 +636,8 @@
  53913. html: html-recursive
  53914. +html-am:
  53915. +
  53916. info: info-recursive
  53917. info-am:
  53918. @@ -577,18 +646,28 @@
  53919. install-dvi: install-dvi-recursive
  53920. +install-dvi-am:
  53921. +
  53922. install-exec-am:
  53923. install-html: install-html-recursive
  53924. +install-html-am:
  53925. +
  53926. install-info: install-info-recursive
  53927. +install-info-am:
  53928. +
  53929. install-man:
  53930. install-pdf: install-pdf-recursive
  53931. +install-pdf-am:
  53932. +
  53933. install-ps: install-ps-recursive
  53934. +install-ps-am:
  53935. +
  53936. installcheck-am:
  53937. maintainer-clean: maintainer-clean-recursive
  53938. @@ -611,24 +690,25 @@
  53939. uninstall-am:
  53940. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  53941. - install-strip
  53942. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  53943. + ctags-recursive install-am install-strip tags-recursive
  53944. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  53945. all all-am am--refresh check check-am clean clean-generic \
  53946. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  53947. - dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
  53948. - distclean distclean-generic distclean-hdr distclean-libtool \
  53949. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  53950. - dvi-am html html-am info info-am install install-am \
  53951. - install-data install-data-am install-dvi install-dvi-am \
  53952. - install-exec install-exec-am install-html install-html-am \
  53953. - install-info install-info-am install-man install-pdf \
  53954. - install-pdf-am install-ps install-ps-am install-strip \
  53955. - installcheck installcheck-am installdirs installdirs-am \
  53956. - maintainer-clean maintainer-clean-generic mostlyclean \
  53957. - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  53958. - tags tags-recursive uninstall uninstall-am
  53959. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  53960. + distcheck distclean distclean-generic distclean-hdr \
  53961. + distclean-libtool distclean-tags distcleancheck distdir \
  53962. + distuninstallcheck dvi dvi-am html html-am info info-am \
  53963. + install install-am install-data install-data-am install-dvi \
  53964. + install-dvi-am install-exec install-exec-am install-html \
  53965. + install-html-am install-info install-info-am install-man \
  53966. + install-pdf install-pdf-am install-ps install-ps-am \
  53967. + install-strip installcheck installcheck-am installdirs \
  53968. + installdirs-am maintainer-clean maintainer-clean-generic \
  53969. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  53970. + ps ps-am tags tags-recursive uninstall uninstall-am
  53971. +
  53972. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  53973. # Otherwise a system limit (for SysV at least) may be exceeded.
  53974. diff -Nur rpcbind-0.2.0.orig/man/Makefile.in rpcbind-0.2.0/man/Makefile.in
  53975. --- rpcbind-0.2.0.orig/man/Makefile.in 2009-05-29 18:37:50.000000000 +0200
  53976. +++ rpcbind-0.2.0/man/Makefile.in 2011-02-17 19:38:37.633563340 +0100
  53977. @@ -1,8 +1,9 @@
  53978. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  53979. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  53980. # @configure_input@
  53981. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  53982. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  53983. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  53984. +# Inc.
  53985. # This Makefile.in is free software; the Free Software Foundation
  53986. # gives unlimited permission to copy and/or distribute it,
  53987. # with or without modifications, as long as this notice is preserved.
  53988. @@ -15,8 +16,9 @@
  53989. @SET_MAKE@
  53990. VPATH = @srcdir@
  53991. pkgdatadir = $(datadir)/@PACKAGE@
  53992. -pkglibdir = $(libdir)/@PACKAGE@
  53993. pkgincludedir = $(includedir)/@PACKAGE@
  53994. +pkglibdir = $(libdir)/@PACKAGE@
  53995. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  53996. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  53997. install_sh_DATA = $(install_sh) -c -m 644
  53998. install_sh_PROGRAM = $(install_sh) -c
  53999. @@ -40,8 +42,30 @@
  54000. mkinstalldirs = $(install_sh) -d
  54001. CONFIG_HEADER = $(top_builddir)/config.h $(top_builddir)/src/config.h
  54002. CONFIG_CLEAN_FILES =
  54003. +CONFIG_CLEAN_VPATH_FILES =
  54004. SOURCES =
  54005. DIST_SOURCES =
  54006. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  54007. +am__vpath_adj = case $$p in \
  54008. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  54009. + *) f=$$p;; \
  54010. + esac;
  54011. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  54012. +am__install_max = 40
  54013. +am__nobase_strip_setup = \
  54014. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  54015. +am__nobase_strip = \
  54016. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  54017. +am__nobase_list = $(am__nobase_strip_setup); \
  54018. + for p in $$list; do echo "$$p $$p"; done | \
  54019. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  54020. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  54021. + if (++n[$$2] == $(am__install_max)) \
  54022. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  54023. + END { for (dir in files) print dir, files[dir] }'
  54024. +am__base_list = \
  54025. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  54026. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  54027. man8dir = $(mandir)/man8
  54028. am__installdirs = "$(DESTDIR)$(man8dir)"
  54029. NROFF = nroff
  54030. @@ -59,43 +83,45 @@
  54031. CFLAGS = @CFLAGS@
  54032. CPP = @CPP@
  54033. CPPFLAGS = @CPPFLAGS@
  54034. -CXX = @CXX@
  54035. -CXXCPP = @CXXCPP@
  54036. -CXXDEPMODE = @CXXDEPMODE@
  54037. -CXXFLAGS = @CXXFLAGS@
  54038. CYGPATH_W = @CYGPATH_W@
  54039. DEFS = @DEFS@
  54040. DEPDIR = @DEPDIR@
  54041. DSYMUTIL = @DSYMUTIL@
  54042. -ECHO = @ECHO@
  54043. +DUMPBIN = @DUMPBIN@
  54044. ECHO_C = @ECHO_C@
  54045. ECHO_N = @ECHO_N@
  54046. ECHO_T = @ECHO_T@
  54047. EGREP = @EGREP@
  54048. EXEEXT = @EXEEXT@
  54049. -F77 = @F77@
  54050. -FFLAGS = @FFLAGS@
  54051. +FGREP = @FGREP@
  54052. GREP = @GREP@
  54053. INSTALL = @INSTALL@
  54054. INSTALL_DATA = @INSTALL_DATA@
  54055. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  54056. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  54057. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  54058. +LD = @LD@
  54059. LDFLAGS = @LDFLAGS@
  54060. LIBOBJS = @LIBOBJS@
  54061. LIBS = @LIBS@
  54062. LIBTOOL = @LIBTOOL@
  54063. +LIPO = @LIPO@
  54064. LN_S = @LN_S@
  54065. LTLIBOBJS = @LTLIBOBJS@
  54066. MAKEINFO = @MAKEINFO@
  54067. MKDIR_P = @MKDIR_P@
  54068. +NM = @NM@
  54069. NMEDIT = @NMEDIT@
  54070. +OBJDUMP = @OBJDUMP@
  54071. OBJEXT = @OBJEXT@
  54072. +OTOOL = @OTOOL@
  54073. +OTOOL64 = @OTOOL64@
  54074. PACKAGE = @PACKAGE@
  54075. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  54076. PACKAGE_NAME = @PACKAGE_NAME@
  54077. PACKAGE_STRING = @PACKAGE_STRING@
  54078. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  54079. +PACKAGE_URL = @PACKAGE_URL@
  54080. PACKAGE_VERSION = @PACKAGE_VERSION@
  54081. PATH_SEPARATOR = @PATH_SEPARATOR@
  54082. RANLIB = @RANLIB@
  54083. @@ -109,8 +135,7 @@
  54084. abs_top_builddir = @abs_top_builddir@
  54085. abs_top_srcdir = @abs_top_srcdir@
  54086. ac_ct_CC = @ac_ct_CC@
  54087. -ac_ct_CXX = @ac_ct_CXX@
  54088. -ac_ct_F77 = @ac_ct_F77@
  54089. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  54090. am__include = @am__include@
  54091. am__leading_dot = @am__leading_dot@
  54092. am__quote = @am__quote@
  54093. @@ -141,6 +166,7 @@
  54094. libexecdir = @libexecdir@
  54095. localedir = @localedir@
  54096. localstatedir = @localstatedir@
  54097. +lt_ECHO = @lt_ECHO@
  54098. mandir = @mandir@
  54099. mkdir_p = @mkdir_p@
  54100. oldincludedir = @oldincludedir@
  54101. @@ -167,14 +193,14 @@
  54102. @for dep in $?; do \
  54103. case '$(am__configure_deps)' in \
  54104. *$$dep*) \
  54105. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  54106. - && exit 0; \
  54107. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  54108. + && { if test -f $@; then exit 0; else break; fi; }; \
  54109. exit 1;; \
  54110. esac; \
  54111. done; \
  54112. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
  54113. - cd $(top_srcdir) && \
  54114. - $(AUTOMAKE) --gnu man/Makefile
  54115. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
  54116. + $(am__cd) $(top_srcdir) && \
  54117. + $(AUTOMAKE) --gnu man/Makefile
  54118. .PRECIOUS: Makefile
  54119. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  54120. @case '$?' in \
  54121. @@ -192,57 +218,47 @@
  54122. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  54123. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  54124. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  54125. +$(am__aclocal_m4_deps):
  54126. mostlyclean-libtool:
  54127. -rm -f *.lo
  54128. clean-libtool:
  54129. -rm -rf .libs _libs
  54130. -install-man8: $(man8_MANS) $(man_MANS)
  54131. +install-man8: $(man8_MANS)
  54132. @$(NORMAL_INSTALL)
  54133. test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
  54134. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  54135. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  54136. - for i in $$l2; do \
  54137. - case "$$i" in \
  54138. - *.8*) list="$$list $$i" ;; \
  54139. - esac; \
  54140. + @list='$(man8_MANS)'; test -n "$(man8dir)" || exit 0; \
  54141. + { for i in $$list; do echo "$$i"; done; \
  54142. + } | while read p; do \
  54143. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  54144. + echo "$$d$$p"; echo "$$p"; \
  54145. + done | \
  54146. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  54147. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  54148. + sed 'N;N;s,\n, ,g' | { \
  54149. + list=; while read file base inst; do \
  54150. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  54151. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  54152. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
  54153. + fi; \
  54154. done; \
  54155. - for i in $$list; do \
  54156. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  54157. - else file=$$i; fi; \
  54158. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  54159. - case "$$ext" in \
  54160. - 8*) ;; \
  54161. - *) ext='8' ;; \
  54162. - esac; \
  54163. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  54164. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  54165. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  54166. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  54167. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
  54168. - done
  54169. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  54170. + while read files; do \
  54171. + test -z "$$files" || { \
  54172. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
  54173. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
  54174. + done; }
  54175. +
  54176. uninstall-man8:
  54177. @$(NORMAL_UNINSTALL)
  54178. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  54179. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  54180. - for i in $$l2; do \
  54181. - case "$$i" in \
  54182. - *.8*) list="$$list $$i" ;; \
  54183. - esac; \
  54184. - done; \
  54185. - for i in $$list; do \
  54186. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  54187. - case "$$ext" in \
  54188. - 8*) ;; \
  54189. - *) ext='8' ;; \
  54190. - esac; \
  54191. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  54192. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  54193. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  54194. - echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
  54195. - rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
  54196. - done
  54197. + @list='$(man8_MANS)'; test -n "$(man8dir)" || exit 0; \
  54198. + files=`{ for i in $$list; do echo "$$i"; done; \
  54199. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  54200. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  54201. + test -z "$$files" || { \
  54202. + echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \
  54203. + cd "$(DESTDIR)$(man8dir)" && rm -f $$files; }
  54204. tags: TAGS
  54205. TAGS:
  54206. @@ -251,6 +267,19 @@
  54207. distdir: $(DISTFILES)
  54208. + @list='$(MANS)'; if test -n "$$list"; then \
  54209. + list=`for p in $$list; do \
  54210. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  54211. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  54212. + if test -n "$$list" && \
  54213. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  54214. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  54215. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  54216. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  54217. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  54218. + exit 1; \
  54219. + else :; fi; \
  54220. + else :; fi
  54221. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  54222. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  54223. list='$(DISTFILES)'; \
  54224. @@ -266,13 +295,17 @@
  54225. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  54226. if test -d $$d/$$file; then \
  54227. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  54228. + if test -d "$(distdir)/$$file"; then \
  54229. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54230. + fi; \
  54231. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  54232. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  54233. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  54234. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54235. fi; \
  54236. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  54237. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  54238. else \
  54239. - test -f $(distdir)/$$file \
  54240. - || cp -p $$d/$$file $(distdir)/$$file \
  54241. + test -f "$(distdir)/$$file" \
  54242. + || cp -p $$d/$$file "$(distdir)/$$file" \
  54243. || exit 1; \
  54244. fi; \
  54245. done
  54246. @@ -303,6 +336,7 @@
  54247. distclean-generic:
  54248. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  54249. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  54250. maintainer-clean-generic:
  54251. @echo "This command is intended for maintainers to use"
  54252. @@ -321,6 +355,8 @@
  54253. html: html-am
  54254. +html-am:
  54255. +
  54256. info: info-am
  54257. info-am:
  54258. @@ -329,18 +365,28 @@
  54259. install-dvi: install-dvi-am
  54260. +install-dvi-am:
  54261. +
  54262. install-exec-am:
  54263. install-html: install-html-am
  54264. +install-html-am:
  54265. +
  54266. install-info: install-info-am
  54267. +install-info-am:
  54268. +
  54269. install-man: install-man8
  54270. install-pdf: install-pdf-am
  54271. +install-pdf-am:
  54272. +
  54273. install-ps: install-ps-am
  54274. +install-ps-am:
  54275. +
  54276. installcheck-am:
  54277. maintainer-clean: maintainer-clean-am
  54278. @@ -377,6 +423,7 @@
  54279. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  54280. uninstall uninstall-am uninstall-man uninstall-man8
  54281. +
  54282. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  54283. # Otherwise a system limit (for SysV at least) may be exceeded.
  54284. .NOEXPORT:
  54285. diff -Nur rpcbind-0.2.0.orig/missing rpcbind-0.2.0/missing
  54286. --- rpcbind-0.2.0.orig/missing 2009-05-29 18:37:50.000000000 +0200
  54287. +++ rpcbind-0.2.0/missing 2011-02-17 19:38:37.583559075 +0100
  54288. @@ -1,10 +1,10 @@
  54289. #! /bin/sh
  54290. # Common stub for a few missing GNU programs while installing.
  54291. -scriptversion=2006-05-10.23
  54292. +scriptversion=2009-04-28.21; # UTC
  54293. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  54294. -# Free Software Foundation, Inc.
  54295. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  54296. +# 2008, 2009 Free Software Foundation, Inc.
  54297. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  54298. # This program is free software; you can redistribute it and/or modify
  54299. @@ -18,9 +18,7 @@
  54300. # GNU General Public License for more details.
  54301. # You should have received a copy of the GNU General Public License
  54302. -# along with this program; if not, write to the Free Software
  54303. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  54304. -# 02110-1301, USA.
  54305. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  54306. # As a special exception to the GNU General Public License, if you
  54307. # distribute this file as part of a program that contains a
  54308. @@ -89,6 +87,9 @@
  54309. tar try tar, gnutar, gtar, then tar without non-portable flags
  54310. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  54311. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  54312. +\`g' are ignored when checking the name.
  54313. +
  54314. Send bug reports to <bug-automake@gnu.org>."
  54315. exit $?
  54316. ;;
  54317. @@ -106,15 +107,22 @@
  54318. esac
  54319. +# normalize program name to check for.
  54320. +program=`echo "$1" | sed '
  54321. + s/^gnu-//; t
  54322. + s/^gnu//; t
  54323. + s/^g//; t'`
  54324. +
  54325. # Now exit if we have it, but it failed. Also exit now if we
  54326. # don't have it and --version was passed (most likely to detect
  54327. -# the program).
  54328. +# the program). This is about non-GNU programs, so use $1 not
  54329. +# $program.
  54330. case $1 in
  54331. - lex|yacc)
  54332. + lex*|yacc*)
  54333. # Not GNU programs, they don't have --version.
  54334. ;;
  54335. - tar)
  54336. + tar*)
  54337. if test -n "$run"; then
  54338. echo 1>&2 "ERROR: \`tar' requires --run"
  54339. exit 1
  54340. @@ -138,7 +146,7 @@
  54341. # If it does not exist, or fails to run (possibly an outdated version),
  54342. # try to emulate it.
  54343. -case $1 in
  54344. +case $program in
  54345. aclocal*)
  54346. echo 1>&2 "\
  54347. WARNING: \`$1' is $msg. You should only need it if
  54348. @@ -148,7 +156,7 @@
  54349. touch aclocal.m4
  54350. ;;
  54351. - autoconf)
  54352. + autoconf*)
  54353. echo 1>&2 "\
  54354. WARNING: \`$1' is $msg. You should only need it if
  54355. you modified \`${configure_ac}'. You might want to install the
  54356. @@ -157,7 +165,7 @@
  54357. touch configure
  54358. ;;
  54359. - autoheader)
  54360. + autoheader*)
  54361. echo 1>&2 "\
  54362. WARNING: \`$1' is $msg. You should only need it if
  54363. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  54364. @@ -187,7 +195,7 @@
  54365. while read f; do touch "$f"; done
  54366. ;;
  54367. - autom4te)
  54368. + autom4te*)
  54369. echo 1>&2 "\
  54370. WARNING: \`$1' is needed, but is $msg.
  54371. You might have modified some files without having the
  54372. @@ -210,7 +218,7 @@
  54373. fi
  54374. ;;
  54375. - bison|yacc)
  54376. + bison*|yacc*)
  54377. echo 1>&2 "\
  54378. WARNING: \`$1' $msg. You should only need it if
  54379. you modified a \`.y' file. You may need the \`Bison' package
  54380. @@ -240,7 +248,7 @@
  54381. fi
  54382. ;;
  54383. - lex|flex)
  54384. + lex*|flex*)
  54385. echo 1>&2 "\
  54386. WARNING: \`$1' is $msg. You should only need it if
  54387. you modified a \`.l' file. You may need the \`Flex' package
  54388. @@ -263,7 +271,7 @@
  54389. fi
  54390. ;;
  54391. - help2man)
  54392. + help2man*)
  54393. echo 1>&2 "\
  54394. WARNING: \`$1' is $msg. You should only need it if
  54395. you modified a dependency of a manual page. You may need the
  54396. @@ -277,11 +285,11 @@
  54397. else
  54398. test -z "$file" || exec >$file
  54399. echo ".ab help2man is required to generate this page"
  54400. - exit 1
  54401. + exit $?
  54402. fi
  54403. ;;
  54404. - makeinfo)
  54405. + makeinfo*)
  54406. echo 1>&2 "\
  54407. WARNING: \`$1' is $msg. You should only need it if
  54408. you modified a \`.texi' or \`.texinfo' file, or any other file
  54409. @@ -310,7 +318,7 @@
  54410. touch $file
  54411. ;;
  54412. - tar)
  54413. + tar*)
  54414. shift
  54415. # We have already tried tar in the generic part.
  54416. @@ -363,5 +371,6 @@
  54417. # eval: (add-hook 'write-file-hooks 'time-stamp)
  54418. # time-stamp-start: "scriptversion="
  54419. # time-stamp-format: "%:y-%02m-%02d.%02H"
  54420. -# time-stamp-end: "$"
  54421. +# time-stamp-time-zone: "UTC"
  54422. +# time-stamp-end: "; # UTC"
  54423. # End:
  54424. diff -Nur rpcbind-0.2.0.orig/src/Makefile.in rpcbind-0.2.0/src/Makefile.in
  54425. --- rpcbind-0.2.0.orig/src/Makefile.in 2009-05-29 18:37:50.000000000 +0200
  54426. +++ rpcbind-0.2.0/src/Makefile.in 2011-02-17 19:38:37.683562819 +0100
  54427. @@ -1,8 +1,9 @@
  54428. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  54429. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  54430. # @configure_input@
  54431. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  54432. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  54433. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  54434. +# Inc.
  54435. # This Makefile.in is free software; the Free Software Foundation
  54436. # gives unlimited permission to copy and/or distribute it,
  54437. # with or without modifications, as long as this notice is preserved.
  54438. @@ -16,8 +17,9 @@
  54439. VPATH = @srcdir@
  54440. pkgdatadir = $(datadir)/@PACKAGE@
  54441. -pkglibdir = $(libdir)/@PACKAGE@
  54442. pkgincludedir = $(includedir)/@PACKAGE@
  54443. +pkglibdir = $(libdir)/@PACKAGE@
  54444. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  54445. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  54446. install_sh_DATA = $(install_sh) -c -m 644
  54447. install_sh_PROGRAM = $(install_sh) -c
  54448. @@ -47,8 +49,8 @@
  54449. mkinstalldirs = $(install_sh) -d
  54450. CONFIG_HEADER = $(top_builddir)/config.h config.h
  54451. CONFIG_CLEAN_FILES =
  54452. +CONFIG_CLEAN_VPATH_FILES =
  54453. am__installdirs = "$(DESTDIR)$(bindir)"
  54454. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  54455. PROGRAMS = $(bin_PROGRAMS)
  54456. am_rpcbind_OBJECTS = check_bound.$(OBJEXT) rpcbind.$(OBJEXT) \
  54457. rpcb_svc_4.$(OBJEXT) rpcb_svc_com.$(OBJEXT) util.$(OBJEXT) \
  54458. @@ -68,6 +70,7 @@
  54459. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  54460. depcomp = $(SHELL) $(top_srcdir)/depcomp
  54461. am__depfiles_maybe = depfiles
  54462. +am__mv = mv -f
  54463. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  54464. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  54465. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  54466. @@ -94,43 +97,45 @@
  54467. CFLAGS = @CFLAGS@
  54468. CPP = @CPP@
  54469. CPPFLAGS = @CPPFLAGS@
  54470. -CXX = @CXX@
  54471. -CXXCPP = @CXXCPP@
  54472. -CXXDEPMODE = @CXXDEPMODE@
  54473. -CXXFLAGS = @CXXFLAGS@
  54474. CYGPATH_W = @CYGPATH_W@
  54475. DEFS = @DEFS@
  54476. DEPDIR = @DEPDIR@
  54477. DSYMUTIL = @DSYMUTIL@
  54478. -ECHO = @ECHO@
  54479. +DUMPBIN = @DUMPBIN@
  54480. ECHO_C = @ECHO_C@
  54481. ECHO_N = @ECHO_N@
  54482. ECHO_T = @ECHO_T@
  54483. EGREP = @EGREP@
  54484. EXEEXT = @EXEEXT@
  54485. -F77 = @F77@
  54486. -FFLAGS = @FFLAGS@
  54487. +FGREP = @FGREP@
  54488. GREP = @GREP@
  54489. INSTALL = @INSTALL@
  54490. INSTALL_DATA = @INSTALL_DATA@
  54491. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  54492. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  54493. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  54494. +LD = @LD@
  54495. LDFLAGS = @LDFLAGS@
  54496. LIBOBJS = @LIBOBJS@
  54497. LIBS = @LIBS@
  54498. LIBTOOL = @LIBTOOL@
  54499. +LIPO = @LIPO@
  54500. LN_S = @LN_S@
  54501. LTLIBOBJS = @LTLIBOBJS@
  54502. MAKEINFO = @MAKEINFO@
  54503. MKDIR_P = @MKDIR_P@
  54504. +NM = @NM@
  54505. NMEDIT = @NMEDIT@
  54506. +OBJDUMP = @OBJDUMP@
  54507. OBJEXT = @OBJEXT@
  54508. +OTOOL = @OTOOL@
  54509. +OTOOL64 = @OTOOL64@
  54510. PACKAGE = @PACKAGE@
  54511. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  54512. PACKAGE_NAME = @PACKAGE_NAME@
  54513. PACKAGE_STRING = @PACKAGE_STRING@
  54514. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  54515. +PACKAGE_URL = @PACKAGE_URL@
  54516. PACKAGE_VERSION = @PACKAGE_VERSION@
  54517. PATH_SEPARATOR = @PATH_SEPARATOR@
  54518. RANLIB = @RANLIB@
  54519. @@ -144,8 +149,7 @@
  54520. abs_top_builddir = @abs_top_builddir@
  54521. abs_top_srcdir = @abs_top_srcdir@
  54522. ac_ct_CC = @ac_ct_CC@
  54523. -ac_ct_CXX = @ac_ct_CXX@
  54524. -ac_ct_F77 = @ac_ct_F77@
  54525. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  54526. am__include = @am__include@
  54527. am__leading_dot = @am__leading_dot@
  54528. am__quote = @am__quote@
  54529. @@ -176,6 +180,7 @@
  54530. libexecdir = @libexecdir@
  54531. localedir = @localedir@
  54532. localstatedir = @localstatedir@
  54533. +lt_ECHO = @lt_ECHO@
  54534. mandir = @mandir@
  54535. mkdir_p = @mkdir_p@
  54536. oldincludedir = @oldincludedir@
  54537. @@ -219,14 +224,14 @@
  54538. @for dep in $?; do \
  54539. case '$(am__configure_deps)' in \
  54540. *$$dep*) \
  54541. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  54542. - && exit 0; \
  54543. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  54544. + && { if test -f $@; then exit 0; else break; fi; }; \
  54545. exit 1;; \
  54546. esac; \
  54547. done; \
  54548. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  54549. - cd $(top_srcdir) && \
  54550. - $(AUTOMAKE) --gnu src/Makefile
  54551. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  54552. + $(am__cd) $(top_srcdir) && \
  54553. + $(AUTOMAKE) --gnu src/Makefile
  54554. .PRECIOUS: Makefile
  54555. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  54556. @case '$?' in \
  54557. @@ -244,6 +249,7 @@
  54558. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  54559. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  54560. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  54561. +$(am__aclocal_m4_deps):
  54562. config.h: stamp-h2
  54563. @if test ! -f $@; then \
  54564. @@ -255,7 +261,7 @@
  54565. @rm -f stamp-h2
  54566. cd $(top_builddir) && $(SHELL) ./config.status src/config.h
  54567. $(srcdir)/config.h.in: $(am__configure_deps)
  54568. - cd $(top_srcdir) && $(AUTOHEADER)
  54569. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  54570. rm -f stamp-h2
  54571. touch $@
  54572. @@ -264,31 +270,46 @@
  54573. install-binPROGRAMS: $(bin_PROGRAMS)
  54574. @$(NORMAL_INSTALL)
  54575. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  54576. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  54577. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  54578. - if test -f $$p \
  54579. - || test -f $$p1 \
  54580. - ; then \
  54581. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  54582. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  54583. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  54584. - else :; fi; \
  54585. - done
  54586. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  54587. + for p in $$list; do echo "$$p $$p"; done | \
  54588. + sed 's/$(EXEEXT)$$//' | \
  54589. + while read p p1; do if test -f $$p || test -f $$p1; \
  54590. + then echo "$$p"; echo "$$p"; else :; fi; \
  54591. + done | \
  54592. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  54593. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  54594. + sed 'N;N;N;s,\n, ,g' | \
  54595. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  54596. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  54597. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  54598. + else { print "f", $$3 "/" $$4, $$1; } } \
  54599. + END { for (d in files) print "f", d, files[d] }' | \
  54600. + while read type dir files; do \
  54601. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  54602. + test -z "$$files" || { \
  54603. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  54604. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  54605. + } \
  54606. + ; done
  54607. uninstall-binPROGRAMS:
  54608. @$(NORMAL_UNINSTALL)
  54609. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  54610. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  54611. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  54612. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  54613. - done
  54614. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  54615. + files=`for p in $$list; do echo "$$p"; done | \
  54616. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  54617. + -e 's/$$/$(EXEEXT)/' `; \
  54618. + test -n "$$list" || exit 0; \
  54619. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  54620. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  54621. clean-binPROGRAMS:
  54622. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  54623. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  54624. - echo " rm -f $$p $$f"; \
  54625. - rm -f $$p $$f ; \
  54626. - done
  54627. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  54628. + echo " rm -f" $$list; \
  54629. + rm -f $$list || exit $$?; \
  54630. + test -n "$(EXEEXT)" || exit 0; \
  54631. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  54632. + echo " rm -f" $$list; \
  54633. + rm -f $$list
  54634. rpcbind$(EXEEXT): $(rpcbind_OBJECTS) $(rpcbind_DEPENDENCIES)
  54635. @rm -f rpcbind$(EXEEXT)
  54636. $(rpcbind_LINK) $(rpcbind_OBJECTS) $(rpcbind_LDADD) $(LIBS)
  54637. @@ -316,21 +337,21 @@
  54638. .c.o:
  54639. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  54640. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  54641. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  54642. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  54643. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  54644. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  54645. .c.obj:
  54646. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  54647. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  54648. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  54649. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  54650. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  54651. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  54652. .c.lo:
  54653. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  54654. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  54655. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  54656. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  54657. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  54658. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  54659. @@ -346,14 +367,14 @@
  54660. unique=`for i in $$list; do \
  54661. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  54662. done | \
  54663. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  54664. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  54665. END { if (nonempty) { for (i in files) print i; }; }'`; \
  54666. mkid -fID $$unique
  54667. tags: TAGS
  54668. TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  54669. $(TAGS_FILES) $(LISP)
  54670. - tags=; \
  54671. + set x; \
  54672. here=`pwd`; \
  54673. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  54674. unique=`for i in $$list; do \
  54675. @@ -361,29 +382,34 @@
  54676. done | \
  54677. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  54678. END { if (nonempty) { for (i in files) print i; }; }'`; \
  54679. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  54680. + shift; \
  54681. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  54682. test -n "$$unique" || unique=$$empty_fix; \
  54683. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54684. - $$tags $$unique; \
  54685. + if test $$# -gt 0; then \
  54686. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54687. + "$$@" $$unique; \
  54688. + else \
  54689. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  54690. + $$unique; \
  54691. + fi; \
  54692. fi
  54693. ctags: CTAGS
  54694. CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  54695. $(TAGS_FILES) $(LISP)
  54696. - tags=; \
  54697. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  54698. unique=`for i in $$list; do \
  54699. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  54700. done | \
  54701. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  54702. END { if (nonempty) { for (i in files) print i; }; }'`; \
  54703. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  54704. + test -z "$(CTAGS_ARGS)$$unique" \
  54705. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  54706. - $$tags $$unique
  54707. + $$unique
  54708. GTAGS:
  54709. here=`$(am__cd) $(top_builddir) && pwd` \
  54710. - && cd $(top_srcdir) \
  54711. - && gtags -i $(GTAGS_ARGS) $$here
  54712. + && $(am__cd) $(top_srcdir) \
  54713. + && gtags -i $(GTAGS_ARGS) "$$here"
  54714. distclean-tags:
  54715. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  54716. @@ -404,13 +430,17 @@
  54717. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  54718. if test -d $$d/$$file; then \
  54719. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  54720. + if test -d "$(distdir)/$$file"; then \
  54721. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54722. + fi; \
  54723. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  54724. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  54725. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  54726. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  54727. fi; \
  54728. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  54729. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  54730. else \
  54731. - test -f $(distdir)/$$file \
  54732. - || cp -p $$d/$$file $(distdir)/$$file \
  54733. + test -f "$(distdir)/$$file" \
  54734. + || cp -p $$d/$$file "$(distdir)/$$file" \
  54735. || exit 1; \
  54736. fi; \
  54737. done
  54738. @@ -441,6 +471,7 @@
  54739. distclean-generic:
  54740. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  54741. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  54742. maintainer-clean-generic:
  54743. @echo "This command is intended for maintainers to use"
  54744. @@ -461,6 +492,8 @@
  54745. html: html-am
  54746. +html-am:
  54747. +
  54748. info: info-am
  54749. info-am:
  54750. @@ -469,18 +502,28 @@
  54751. install-dvi: install-dvi-am
  54752. +install-dvi-am:
  54753. +
  54754. install-exec-am: install-binPROGRAMS
  54755. install-html: install-html-am
  54756. +install-html-am:
  54757. +
  54758. install-info: install-info-am
  54759. +install-info-am:
  54760. +
  54761. install-man:
  54762. install-pdf: install-pdf-am
  54763. +install-pdf-am:
  54764. +
  54765. install-ps: install-ps-am
  54766. +install-ps-am:
  54767. +
  54768. installcheck-am:
  54769. maintainer-clean: maintainer-clean-am
  54770. @@ -503,7 +546,7 @@
  54771. uninstall-am: uninstall-binPROGRAMS
  54772. -.MAKE: install-am install-strip
  54773. +.MAKE: all install-am install-strip
  54774. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
  54775. clean-generic clean-libtool ctags distclean distclean-compile \
  54776. @@ -519,6 +562,7 @@
  54777. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  54778. tags uninstall uninstall-am uninstall-binPROGRAMS
  54779. +
  54780. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  54781. # Otherwise a system limit (for SysV at least) may be exceeded.
  54782. .NOEXPORT: