autotool.patch 1.7 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429
  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 cgilib-0.7.orig/aclocal.m4 cgilib-0.7/aclocal.m4
  6. --- cgilib-0.7.orig/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
  7. +++ cgilib-0.7/aclocal.m4 2011-02-21 14:57:57.433560549 +0100
  8. @@ -0,0 +1,8917 @@
  9. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  10. +
  11. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13. +# This file is free software; the Free Software Foundation
  14. +# gives unlimited permission to copy and/or distribute it,
  15. +# with or without modifications, as long as this notice is preserved.
  16. +
  17. +# This program is distributed in the hope that it will be useful,
  18. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  19. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. +# PARTICULAR PURPOSE.
  21. +
  22. +m4_ifndef([AC_AUTOCONF_VERSION],
  23. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  24. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  25. +[m4_warning([this file was generated for autoconf 2.65.
  26. +You have another version of autoconf. It may work, but is not guaranteed to.
  27. +If you have problems, you may need to regenerate the build system entirely.
  28. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  29. +
  30. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  31. +#
  32. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  33. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  34. +# Written by Gordon Matzigkeit, 1996
  35. +#
  36. +# This file is free software; the Free Software Foundation gives
  37. +# unlimited permission to copy and/or distribute it, with or without
  38. +# modifications, as long as this notice is preserved.
  39. +
  40. +m4_define([_LT_COPYING], [dnl
  41. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  42. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  43. +# Written by Gordon Matzigkeit, 1996
  44. +#
  45. +# This file is part of GNU Libtool.
  46. +#
  47. +# GNU Libtool is free software; you can redistribute it and/or
  48. +# modify it under the terms of the GNU General Public License as
  49. +# published by the Free Software Foundation; either version 2 of
  50. +# the License, or (at your option) any later version.
  51. +#
  52. +# As a special exception to the GNU General Public License,
  53. +# if you distribute this file as part of a program or library that
  54. +# is built using GNU Libtool, you may include this file under the
  55. +# same distribution terms that you use for the rest of that program.
  56. +#
  57. +# GNU Libtool is distributed in the hope that it will be useful,
  58. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  59. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  60. +# GNU General Public License for more details.
  61. +#
  62. +# You should have received a copy of the GNU General Public License
  63. +# along with GNU Libtool; see the file COPYING. If not, a copy
  64. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  65. +# obtained by writing to the Free Software Foundation, Inc.,
  66. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  67. +])
  68. +
  69. +# serial 56 LT_INIT
  70. +
  71. +
  72. +# LT_PREREQ(VERSION)
  73. +# ------------------
  74. +# Complain and exit if this libtool version is less that VERSION.
  75. +m4_defun([LT_PREREQ],
  76. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  77. + [m4_default([$3],
  78. + [m4_fatal([Libtool version $1 or higher is required],
  79. + 63)])],
  80. + [$2])])
  81. +
  82. +
  83. +# _LT_CHECK_BUILDDIR
  84. +# ------------------
  85. +# Complain if the absolute build directory name contains unusual characters
  86. +m4_defun([_LT_CHECK_BUILDDIR],
  87. +[case `pwd` in
  88. + *\ * | *\ *)
  89. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  90. +esac
  91. +])
  92. +
  93. +
  94. +# LT_INIT([OPTIONS])
  95. +# ------------------
  96. +AC_DEFUN([LT_INIT],
  97. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  98. +AC_BEFORE([$0], [LT_LANG])dnl
  99. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  100. +AC_BEFORE([$0], [LTDL_INIT])dnl
  101. +m4_require([_LT_CHECK_BUILDDIR])dnl
  102. +
  103. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  104. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  105. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  106. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  107. +dnl unless we require an AC_DEFUNed macro:
  108. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  109. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  110. +AC_REQUIRE([LTVERSION_VERSION])dnl
  111. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  112. +m4_require([_LT_PROG_LTMAIN])dnl
  113. +
  114. +dnl Parse OPTIONS
  115. +_LT_SET_OPTIONS([$0], [$1])
  116. +
  117. +# This can be used to rebuild libtool when needed
  118. +LIBTOOL_DEPS="$ltmain"
  119. +
  120. +# Always use our own libtool.
  121. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  122. +AC_SUBST(LIBTOOL)dnl
  123. +
  124. +_LT_SETUP
  125. +
  126. +# Only expand once:
  127. +m4_define([LT_INIT])
  128. +])# LT_INIT
  129. +
  130. +# Old names:
  131. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  132. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  133. +dnl aclocal-1.4 backwards compatibility:
  134. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  135. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  136. +
  137. +
  138. +# _LT_CC_BASENAME(CC)
  139. +# -------------------
  140. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  141. +m4_defun([_LT_CC_BASENAME],
  142. +[for cc_temp in $1""; do
  143. + case $cc_temp in
  144. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  145. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  146. + \-*) ;;
  147. + *) break;;
  148. + esac
  149. +done
  150. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  151. +])
  152. +
  153. +
  154. +# _LT_FILEUTILS_DEFAULTS
  155. +# ----------------------
  156. +# It is okay to use these file commands and assume they have been set
  157. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  158. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  159. +[: ${CP="cp -f"}
  160. +: ${MV="mv -f"}
  161. +: ${RM="rm -f"}
  162. +])# _LT_FILEUTILS_DEFAULTS
  163. +
  164. +
  165. +# _LT_SETUP
  166. +# ---------
  167. +m4_defun([_LT_SETUP],
  168. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  169. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  170. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  171. +_LT_DECL([], [host], [0])dnl
  172. +_LT_DECL([], [host_os], [0])dnl
  173. +dnl
  174. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  175. +_LT_DECL([], [build], [0])dnl
  176. +_LT_DECL([], [build_os], [0])dnl
  177. +dnl
  178. +AC_REQUIRE([AC_PROG_CC])dnl
  179. +AC_REQUIRE([LT_PATH_LD])dnl
  180. +AC_REQUIRE([LT_PATH_NM])dnl
  181. +dnl
  182. +AC_REQUIRE([AC_PROG_LN_S])dnl
  183. +test -z "$LN_S" && LN_S="ln -s"
  184. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  185. +dnl
  186. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  187. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  188. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  189. +dnl
  190. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  191. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  192. +m4_require([_LT_CMD_RELOAD])dnl
  193. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  194. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  195. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  196. +
  197. +_LT_CONFIG_LIBTOOL_INIT([
  198. +# See if we are running on zsh, and set the options which allow our
  199. +# commands through without removal of \ escapes INIT.
  200. +if test -n "\${ZSH_VERSION+set}" ; then
  201. + setopt NO_GLOB_SUBST
  202. +fi
  203. +])
  204. +if test -n "${ZSH_VERSION+set}" ; then
  205. + setopt NO_GLOB_SUBST
  206. +fi
  207. +
  208. +_LT_CHECK_OBJDIR
  209. +
  210. +m4_require([_LT_TAG_COMPILER])dnl
  211. +_LT_PROG_ECHO_BACKSLASH
  212. +
  213. +case $host_os in
  214. +aix3*)
  215. + # AIX sometimes has problems with the GCC collect2 program. For some
  216. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  217. + # vanish in a puff of smoke.
  218. + if test "X${COLLECT_NAMES+set}" != Xset; then
  219. + COLLECT_NAMES=
  220. + export COLLECT_NAMES
  221. + fi
  222. + ;;
  223. +esac
  224. +
  225. +# Sed substitution that helps us do robust quoting. It backslashifies
  226. +# metacharacters that are still active within double-quoted strings.
  227. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  228. +
  229. +# Same as above, but do not quote variable references.
  230. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  231. +
  232. +# Sed substitution to delay expansion of an escaped shell variable in a
  233. +# double_quote_subst'ed string.
  234. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  235. +
  236. +# Sed substitution to delay expansion of an escaped single quote.
  237. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  238. +
  239. +# Sed substitution to avoid accidental globbing in evaled expressions
  240. +no_glob_subst='s/\*/\\\*/g'
  241. +
  242. +# Global variables:
  243. +ofile=libtool
  244. +can_build_shared=yes
  245. +
  246. +# All known linkers require a `.a' archive for static linking (except MSVC,
  247. +# which needs '.lib').
  248. +libext=a
  249. +
  250. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  251. +
  252. +old_CC="$CC"
  253. +old_CFLAGS="$CFLAGS"
  254. +
  255. +# Set sane defaults for various variables
  256. +test -z "$CC" && CC=cc
  257. +test -z "$LTCC" && LTCC=$CC
  258. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  259. +test -z "$LD" && LD=ld
  260. +test -z "$ac_objext" && ac_objext=o
  261. +
  262. +_LT_CC_BASENAME([$compiler])
  263. +
  264. +# Only perform the check for file, if the check method requires it
  265. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  266. +case $deplibs_check_method in
  267. +file_magic*)
  268. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  269. + _LT_PATH_MAGIC
  270. + fi
  271. + ;;
  272. +esac
  273. +
  274. +# Use C for the default configuration in the libtool script
  275. +LT_SUPPORTED_TAG([CC])
  276. +_LT_LANG_C_CONFIG
  277. +_LT_LANG_DEFAULT_CONFIG
  278. +_LT_CONFIG_COMMANDS
  279. +])# _LT_SETUP
  280. +
  281. +
  282. +# _LT_PROG_LTMAIN
  283. +# ---------------
  284. +# Note that this code is called both from `configure', and `config.status'
  285. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  286. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  287. +# so we pass a copy along to make sure it has a sensible value anyway.
  288. +m4_defun([_LT_PROG_LTMAIN],
  289. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  290. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  291. +ltmain="$ac_aux_dir/ltmain.sh"
  292. +])# _LT_PROG_LTMAIN
  293. +
  294. +
  295. +
  296. +# So that we can recreate a full libtool script including additional
  297. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  298. +# in macros and then make a single call at the end using the `libtool'
  299. +# label.
  300. +
  301. +
  302. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  303. +# ----------------------------------------
  304. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  305. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  306. +[m4_ifval([$1],
  307. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  308. + [$1
  309. +])])])
  310. +
  311. +# Initialize.
  312. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  313. +
  314. +
  315. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  316. +# ------------------------------
  317. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  318. +m4_define([_LT_CONFIG_LIBTOOL],
  319. +[m4_ifval([$1],
  320. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  321. + [$1
  322. +])])])
  323. +
  324. +# Initialize.
  325. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  326. +
  327. +
  328. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  329. +# -----------------------------------------------------
  330. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  331. +[_LT_CONFIG_LIBTOOL([$1])
  332. +_LT_CONFIG_LIBTOOL_INIT([$2])
  333. +])
  334. +
  335. +
  336. +# _LT_FORMAT_COMMENT([COMMENT])
  337. +# -----------------------------
  338. +# Add leading comment marks to the start of each line, and a trailing
  339. +# full-stop to the whole comment if one is not present already.
  340. +m4_define([_LT_FORMAT_COMMENT],
  341. +[m4_ifval([$1], [
  342. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  343. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  344. +)])
  345. +
  346. +
  347. +
  348. +
  349. +
  350. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  351. +# -------------------------------------------------------------------
  352. +# CONFIGNAME is the name given to the value in the libtool script.
  353. +# VARNAME is the (base) name used in the configure script.
  354. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  355. +# VARNAME. Any other value will be used directly.
  356. +m4_define([_LT_DECL],
  357. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  358. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  359. + [m4_ifval([$1], [$1], [$2])])
  360. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  361. + m4_ifval([$4],
  362. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  363. + lt_dict_add_subkey([lt_decl_dict], [$2],
  364. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  365. +])
  366. +
  367. +
  368. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  369. +# --------------------------------------------------------
  370. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  371. +
  372. +
  373. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  374. +# ------------------------------------------------
  375. +m4_define([lt_decl_tag_varnames],
  376. +[_lt_decl_filter([tagged?], [yes], $@)])
  377. +
  378. +
  379. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  380. +# ---------------------------------------------------------
  381. +m4_define([_lt_decl_filter],
  382. +[m4_case([$#],
  383. + [0], [m4_fatal([$0: too few arguments: $#])],
  384. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  385. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  386. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  387. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  388. +])
  389. +
  390. +
  391. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  392. +# --------------------------------------------------
  393. +m4_define([lt_decl_quote_varnames],
  394. +[_lt_decl_filter([value], [1], $@)])
  395. +
  396. +
  397. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  398. +# ---------------------------------------------------
  399. +m4_define([lt_decl_dquote_varnames],
  400. +[_lt_decl_filter([value], [2], $@)])
  401. +
  402. +
  403. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  404. +# ---------------------------------------------------
  405. +m4_define([lt_decl_varnames_tagged],
  406. +[m4_assert([$# <= 2])dnl
  407. +_$0(m4_quote(m4_default([$1], [[, ]])),
  408. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  409. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  410. +m4_define([_lt_decl_varnames_tagged],
  411. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  412. +
  413. +
  414. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  415. +# ------------------------------------------------
  416. +m4_define([lt_decl_all_varnames],
  417. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  418. + m4_if([$2], [],
  419. + m4_quote(lt_decl_varnames),
  420. + m4_quote(m4_shift($@))))[]dnl
  421. +])
  422. +m4_define([_lt_decl_all_varnames],
  423. +[lt_join($@, lt_decl_varnames_tagged([$1],
  424. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  425. +])
  426. +
  427. +
  428. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  429. +# ------------------------------------
  430. +# Quote a variable value, and forward it to `config.status' so that its
  431. +# declaration there will have the same value as in `configure'. VARNAME
  432. +# must have a single quote delimited value for this to work.
  433. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  434. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  435. +
  436. +
  437. +# _LT_CONFIG_STATUS_DECLARATIONS
  438. +# ------------------------------
  439. +# We delimit libtool config variables with single quotes, so when
  440. +# we write them to config.status, we have to be sure to quote all
  441. +# embedded single quotes properly. In configure, this macro expands
  442. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  443. +#
  444. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  445. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  446. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  447. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  448. +
  449. +
  450. +# _LT_LIBTOOL_TAGS
  451. +# ----------------
  452. +# Output comment and list of tags supported by the script
  453. +m4_defun([_LT_LIBTOOL_TAGS],
  454. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  455. +available_tags="_LT_TAGS"dnl
  456. +])
  457. +
  458. +
  459. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  460. +# -----------------------------------
  461. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  462. +# expand to a commented shell variable setting:
  463. +#
  464. +# # Some comment about what VAR is for.
  465. +# visible_name=$lt_internal_name
  466. +m4_define([_LT_LIBTOOL_DECLARE],
  467. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  468. + [description])))[]dnl
  469. +m4_pushdef([_libtool_name],
  470. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  471. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  472. + [0], [_libtool_name=[$]$1],
  473. + [1], [_libtool_name=$lt_[]$1],
  474. + [2], [_libtool_name=$lt_[]$1],
  475. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  476. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  477. +])
  478. +
  479. +
  480. +# _LT_LIBTOOL_CONFIG_VARS
  481. +# -----------------------
  482. +# Produce commented declarations of non-tagged libtool config variables
  483. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  484. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  485. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  486. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  487. +[m4_foreach([_lt_var],
  488. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  489. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  490. +
  491. +
  492. +# _LT_LIBTOOL_TAG_VARS(TAG)
  493. +# -------------------------
  494. +m4_define([_LT_LIBTOOL_TAG_VARS],
  495. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  496. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  497. +
  498. +
  499. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  500. +# ------------------------------
  501. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  502. +
  503. +
  504. +# _LT_CONFIG_COMMANDS
  505. +# -------------------
  506. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  507. +# variables for single and double quote escaping we saved from calls
  508. +# to _LT_DECL, we can put quote escaped variables declarations
  509. +# into `config.status', and then the shell code to quote escape them in
  510. +# for loops in `config.status'. Finally, any additional code accumulated
  511. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  512. +m4_defun([_LT_CONFIG_COMMANDS],
  513. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  514. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  515. + dnl instead of duplicating it all over again into config.status,
  516. + dnl then we will have config.status run $CONFIG_LT later, so it
  517. + dnl needs to know what name is stored there:
  518. + [AC_CONFIG_COMMANDS([libtool],
  519. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  520. + dnl If the libtool generation code is destined for config.status,
  521. + dnl expand the accumulated commands and init code now:
  522. + [AC_CONFIG_COMMANDS([libtool],
  523. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  524. +])#_LT_CONFIG_COMMANDS
  525. +
  526. +
  527. +# Initialize.
  528. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  529. +[
  530. +
  531. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  532. +# if CDPATH is set.
  533. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  534. +
  535. +sed_quote_subst='$sed_quote_subst'
  536. +double_quote_subst='$double_quote_subst'
  537. +delay_variable_subst='$delay_variable_subst'
  538. +_LT_CONFIG_STATUS_DECLARATIONS
  539. +LTCC='$LTCC'
  540. +LTCFLAGS='$LTCFLAGS'
  541. +compiler='$compiler_DEFAULT'
  542. +
  543. +# Quote evaled strings.
  544. +for var in lt_decl_all_varnames([[ \
  545. +]], lt_decl_quote_varnames); do
  546. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  547. + *[[\\\\\\\`\\"\\\$]]*)
  548. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  549. + ;;
  550. + *)
  551. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  552. + ;;
  553. + esac
  554. +done
  555. +
  556. +# Double-quote double-evaled strings.
  557. +for var in lt_decl_all_varnames([[ \
  558. +]], lt_decl_dquote_varnames); do
  559. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  560. + *[[\\\\\\\`\\"\\\$]]*)
  561. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  562. + ;;
  563. + *)
  564. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  565. + ;;
  566. + esac
  567. +done
  568. +
  569. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  570. +case \$lt_ECHO in
  571. +*'\\\[$]0 --fallback-echo"')dnl "
  572. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  573. + ;;
  574. +esac
  575. +
  576. +_LT_OUTPUT_LIBTOOL_INIT
  577. +])
  578. +
  579. +
  580. +# LT_OUTPUT
  581. +# ---------
  582. +# This macro allows early generation of the libtool script (before
  583. +# AC_OUTPUT is called), incase it is used in configure for compilation
  584. +# tests.
  585. +AC_DEFUN([LT_OUTPUT],
  586. +[: ${CONFIG_LT=./config.lt}
  587. +AC_MSG_NOTICE([creating $CONFIG_LT])
  588. +cat >"$CONFIG_LT" <<_LTEOF
  589. +#! $SHELL
  590. +# Generated by $as_me.
  591. +# Run this file to recreate a libtool stub with the current configuration.
  592. +
  593. +lt_cl_silent=false
  594. +SHELL=\${CONFIG_SHELL-$SHELL}
  595. +_LTEOF
  596. +
  597. +cat >>"$CONFIG_LT" <<\_LTEOF
  598. +AS_SHELL_SANITIZE
  599. +_AS_PREPARE
  600. +
  601. +exec AS_MESSAGE_FD>&1
  602. +exec AS_MESSAGE_LOG_FD>>config.log
  603. +{
  604. + echo
  605. + AS_BOX([Running $as_me.])
  606. +} >&AS_MESSAGE_LOG_FD
  607. +
  608. +lt_cl_help="\
  609. +\`$as_me' creates a local libtool stub from the current configuration,
  610. +for use in further configure time tests before the real libtool is
  611. +generated.
  612. +
  613. +Usage: $[0] [[OPTIONS]]
  614. +
  615. + -h, --help print this help, then exit
  616. + -V, --version print version number, then exit
  617. + -q, --quiet do not print progress messages
  618. + -d, --debug don't remove temporary files
  619. +
  620. +Report bugs to <bug-libtool@gnu.org>."
  621. +
  622. +lt_cl_version="\
  623. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  624. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  625. +configured by $[0], generated by m4_PACKAGE_STRING.
  626. +
  627. +Copyright (C) 2008 Free Software Foundation, Inc.
  628. +This config.lt script is free software; the Free Software Foundation
  629. +gives unlimited permision to copy, distribute and modify it."
  630. +
  631. +while test $[#] != 0
  632. +do
  633. + case $[1] in
  634. + --version | --v* | -V )
  635. + echo "$lt_cl_version"; exit 0 ;;
  636. + --help | --h* | -h )
  637. + echo "$lt_cl_help"; exit 0 ;;
  638. + --debug | --d* | -d )
  639. + debug=: ;;
  640. + --quiet | --q* | --silent | --s* | -q )
  641. + lt_cl_silent=: ;;
  642. +
  643. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  644. +Try \`$[0] --help' for more information.]) ;;
  645. +
  646. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  647. +Try \`$[0] --help' for more information.]) ;;
  648. + esac
  649. + shift
  650. +done
  651. +
  652. +if $lt_cl_silent; then
  653. + exec AS_MESSAGE_FD>/dev/null
  654. +fi
  655. +_LTEOF
  656. +
  657. +cat >>"$CONFIG_LT" <<_LTEOF
  658. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  659. +_LTEOF
  660. +
  661. +cat >>"$CONFIG_LT" <<\_LTEOF
  662. +AC_MSG_NOTICE([creating $ofile])
  663. +_LT_OUTPUT_LIBTOOL_COMMANDS
  664. +AS_EXIT(0)
  665. +_LTEOF
  666. +chmod +x "$CONFIG_LT"
  667. +
  668. +# configure is writing to config.log, but config.lt does its own redirection,
  669. +# appending to config.log, which fails on DOS, as config.log is still kept
  670. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  671. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  672. +if test "$no_create" != yes; then
  673. + lt_cl_success=:
  674. + test "$silent" = yes &&
  675. + lt_config_lt_args="$lt_config_lt_args --quiet"
  676. + exec AS_MESSAGE_LOG_FD>/dev/null
  677. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  678. + exec AS_MESSAGE_LOG_FD>>config.log
  679. + $lt_cl_success || AS_EXIT(1)
  680. +fi
  681. +])# LT_OUTPUT
  682. +
  683. +
  684. +# _LT_CONFIG(TAG)
  685. +# ---------------
  686. +# If TAG is the built-in tag, create an initial libtool script with a
  687. +# default configuration from the untagged config vars. Otherwise add code
  688. +# to config.status for appending the configuration named by TAG from the
  689. +# matching tagged config vars.
  690. +m4_defun([_LT_CONFIG],
  691. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  692. +_LT_CONFIG_SAVE_COMMANDS([
  693. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  694. + m4_if(_LT_TAG, [C], [
  695. + # See if we are running on zsh, and set the options which allow our
  696. + # commands through without removal of \ escapes.
  697. + if test -n "${ZSH_VERSION+set}" ; then
  698. + setopt NO_GLOB_SUBST
  699. + fi
  700. +
  701. + cfgfile="${ofile}T"
  702. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  703. + $RM "$cfgfile"
  704. +
  705. + cat <<_LT_EOF >> "$cfgfile"
  706. +#! $SHELL
  707. +
  708. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  709. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  710. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  711. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  712. +#
  713. +_LT_COPYING
  714. +_LT_LIBTOOL_TAGS
  715. +
  716. +# ### BEGIN LIBTOOL CONFIG
  717. +_LT_LIBTOOL_CONFIG_VARS
  718. +_LT_LIBTOOL_TAG_VARS
  719. +# ### END LIBTOOL CONFIG
  720. +
  721. +_LT_EOF
  722. +
  723. + case $host_os in
  724. + aix3*)
  725. + cat <<\_LT_EOF >> "$cfgfile"
  726. +# AIX sometimes has problems with the GCC collect2 program. For some
  727. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  728. +# vanish in a puff of smoke.
  729. +if test "X${COLLECT_NAMES+set}" != Xset; then
  730. + COLLECT_NAMES=
  731. + export COLLECT_NAMES
  732. +fi
  733. +_LT_EOF
  734. + ;;
  735. + esac
  736. +
  737. + _LT_PROG_LTMAIN
  738. +
  739. + # We use sed instead of cat because bash on DJGPP gets confused if
  740. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  741. + # text mode, it properly converts lines to CR/LF. This bash problem
  742. + # is reportedly fixed, but why not run on old versions too?
  743. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  744. + || (rm -f "$cfgfile"; exit 1)
  745. +
  746. + _LT_PROG_XSI_SHELLFNS
  747. +
  748. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  749. + || (rm -f "$cfgfile"; exit 1)
  750. +
  751. + mv -f "$cfgfile" "$ofile" ||
  752. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  753. + chmod +x "$ofile"
  754. +],
  755. +[cat <<_LT_EOF >> "$ofile"
  756. +
  757. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  758. +dnl in a comment (ie after a #).
  759. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  760. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  761. +# ### END LIBTOOL TAG CONFIG: $1
  762. +_LT_EOF
  763. +])dnl /m4_if
  764. +],
  765. +[m4_if([$1], [], [
  766. + PACKAGE='$PACKAGE'
  767. + VERSION='$VERSION'
  768. + TIMESTAMP='$TIMESTAMP'
  769. + RM='$RM'
  770. + ofile='$ofile'], [])
  771. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  772. +])# _LT_CONFIG
  773. +
  774. +
  775. +# LT_SUPPORTED_TAG(TAG)
  776. +# ---------------------
  777. +# Trace this macro to discover what tags are supported by the libtool
  778. +# --tag option, using:
  779. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  780. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  781. +
  782. +
  783. +# C support is built-in for now
  784. +m4_define([_LT_LANG_C_enabled], [])
  785. +m4_define([_LT_TAGS], [])
  786. +
  787. +
  788. +# LT_LANG(LANG)
  789. +# -------------
  790. +# Enable libtool support for the given language if not already enabled.
  791. +AC_DEFUN([LT_LANG],
  792. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  793. +m4_case([$1],
  794. + [C], [_LT_LANG(C)],
  795. + [C++], [_LT_LANG(CXX)],
  796. + [Java], [_LT_LANG(GCJ)],
  797. + [Fortran 77], [_LT_LANG(F77)],
  798. + [Fortran], [_LT_LANG(FC)],
  799. + [Windows Resource], [_LT_LANG(RC)],
  800. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  801. + [_LT_LANG($1)],
  802. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  803. +])# LT_LANG
  804. +
  805. +
  806. +# _LT_LANG(LANGNAME)
  807. +# ------------------
  808. +m4_defun([_LT_LANG],
  809. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  810. + [LT_SUPPORTED_TAG([$1])dnl
  811. + m4_append([_LT_TAGS], [$1 ])dnl
  812. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  813. + _LT_LANG_$1_CONFIG($1)])dnl
  814. +])# _LT_LANG
  815. +
  816. +
  817. +# _LT_LANG_DEFAULT_CONFIG
  818. +# -----------------------
  819. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  820. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  821. + [LT_LANG(CXX)],
  822. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  823. +
  824. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  825. + [LT_LANG(F77)],
  826. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  827. +
  828. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  829. + [LT_LANG(FC)],
  830. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  831. +
  832. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  833. +dnl pulling things in needlessly.
  834. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  835. + [LT_LANG(GCJ)],
  836. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  837. + [LT_LANG(GCJ)],
  838. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  839. + [LT_LANG(GCJ)],
  840. + [m4_ifdef([AC_PROG_GCJ],
  841. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  842. + m4_ifdef([A][M_PROG_GCJ],
  843. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  844. + m4_ifdef([LT_PROG_GCJ],
  845. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  846. +
  847. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  848. + [LT_LANG(RC)],
  849. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  850. +])# _LT_LANG_DEFAULT_CONFIG
  851. +
  852. +# Obsolete macros:
  853. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  854. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  855. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  856. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  857. +dnl aclocal-1.4 backwards compatibility:
  858. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  859. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  860. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  861. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  862. +
  863. +
  864. +# _LT_TAG_COMPILER
  865. +# ----------------
  866. +m4_defun([_LT_TAG_COMPILER],
  867. +[AC_REQUIRE([AC_PROG_CC])dnl
  868. +
  869. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  870. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  871. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  872. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  873. +
  874. +# If no C compiler was specified, use CC.
  875. +LTCC=${LTCC-"$CC"}
  876. +
  877. +# If no C compiler flags were specified, use CFLAGS.
  878. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  879. +
  880. +# Allow CC to be a program name with arguments.
  881. +compiler=$CC
  882. +])# _LT_TAG_COMPILER
  883. +
  884. +
  885. +# _LT_COMPILER_BOILERPLATE
  886. +# ------------------------
  887. +# Check for compiler boilerplate output or warnings with
  888. +# the simple compiler test code.
  889. +m4_defun([_LT_COMPILER_BOILERPLATE],
  890. +[m4_require([_LT_DECL_SED])dnl
  891. +ac_outfile=conftest.$ac_objext
  892. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  893. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  894. +_lt_compiler_boilerplate=`cat conftest.err`
  895. +$RM conftest*
  896. +])# _LT_COMPILER_BOILERPLATE
  897. +
  898. +
  899. +# _LT_LINKER_BOILERPLATE
  900. +# ----------------------
  901. +# Check for linker boilerplate output or warnings with
  902. +# the simple link test code.
  903. +m4_defun([_LT_LINKER_BOILERPLATE],
  904. +[m4_require([_LT_DECL_SED])dnl
  905. +ac_outfile=conftest.$ac_objext
  906. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  907. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  908. +_lt_linker_boilerplate=`cat conftest.err`
  909. +$RM -r conftest*
  910. +])# _LT_LINKER_BOILERPLATE
  911. +
  912. +# _LT_REQUIRED_DARWIN_CHECKS
  913. +# -------------------------
  914. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  915. + case $host_os in
  916. + rhapsody* | darwin*)
  917. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  918. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  919. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  920. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  921. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  922. + _LT_DECL([], [DSYMUTIL], [1],
  923. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  924. + _LT_DECL([], [NMEDIT], [1],
  925. + [Tool to change global to local symbols on Mac OS X])
  926. + _LT_DECL([], [LIPO], [1],
  927. + [Tool to manipulate fat objects and archives on Mac OS X])
  928. + _LT_DECL([], [OTOOL], [1],
  929. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  930. + _LT_DECL([], [OTOOL64], [1],
  931. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  932. +
  933. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  934. + [lt_cv_apple_cc_single_mod=no
  935. + if test -z "${LT_MULTI_MODULE}"; then
  936. + # By default we will add the -single_module flag. You can override
  937. + # by either setting the environment variable LT_MULTI_MODULE
  938. + # non-empty at configure time, or by adding -multi_module to the
  939. + # link flags.
  940. + rm -rf libconftest.dylib*
  941. + echo "int foo(void){return 1;}" > conftest.c
  942. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  943. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  944. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  945. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  946. + _lt_result=$?
  947. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  948. + lt_cv_apple_cc_single_mod=yes
  949. + else
  950. + cat conftest.err >&AS_MESSAGE_LOG_FD
  951. + fi
  952. + rm -rf libconftest.dylib*
  953. + rm -f conftest.*
  954. + fi])
  955. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  956. + [lt_cv_ld_exported_symbols_list],
  957. + [lt_cv_ld_exported_symbols_list=no
  958. + save_LDFLAGS=$LDFLAGS
  959. + echo "_main" > conftest.sym
  960. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  961. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  962. + [lt_cv_ld_exported_symbols_list=yes],
  963. + [lt_cv_ld_exported_symbols_list=no])
  964. + LDFLAGS="$save_LDFLAGS"
  965. + ])
  966. + case $host_os in
  967. + rhapsody* | darwin1.[[012]])
  968. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  969. + darwin1.*)
  970. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  971. + darwin*) # darwin 5.x on
  972. + # if running on 10.5 or later, the deployment target defaults
  973. + # to the OS version, if on x86, and 10.4, the deployment
  974. + # target defaults to 10.4. Don't you love it?
  975. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  976. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  977. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  978. + 10.[[012]]*)
  979. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  980. + 10.*)
  981. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  982. + esac
  983. + ;;
  984. + esac
  985. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  986. + _lt_dar_single_mod='$single_module'
  987. + fi
  988. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  989. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  990. + else
  991. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  992. + fi
  993. + if test "$DSYMUTIL" != ":"; then
  994. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  995. + else
  996. + _lt_dsymutil=
  997. + fi
  998. + ;;
  999. + esac
  1000. +])
  1001. +
  1002. +
  1003. +# _LT_DARWIN_LINKER_FEATURES
  1004. +# --------------------------
  1005. +# Checks for linker and compiler features on darwin
  1006. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1007. +[
  1008. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1009. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1010. + _LT_TAGVAR(hardcode_direct, $1)=no
  1011. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1012. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1013. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1014. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1015. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1016. + case $cc_basename in
  1017. + ifort*) _lt_dar_can_shared=yes ;;
  1018. + *) _lt_dar_can_shared=$GCC ;;
  1019. + esac
  1020. + if test "$_lt_dar_can_shared" = "yes"; then
  1021. + output_verbose_link_cmd=echo
  1022. + _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}"
  1023. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1024. + _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}"
  1025. + _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}"
  1026. + m4_if([$1], [CXX],
  1027. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1028. + _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}"
  1029. + _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}"
  1030. + fi
  1031. +],[])
  1032. + else
  1033. + _LT_TAGVAR(ld_shlibs, $1)=no
  1034. + fi
  1035. +])
  1036. +
  1037. +# _LT_SYS_MODULE_PATH_AIX
  1038. +# -----------------------
  1039. +# Links a minimal program and checks the executable
  1040. +# for the system default hardcoded library path. In most cases,
  1041. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1042. +# the location of the communication and MPI libs are included too.
  1043. +# If we don't find anything, use the default library path according
  1044. +# to the aix ld manual.
  1045. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1046. +[m4_require([_LT_DECL_SED])dnl
  1047. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1048. +lt_aix_libpath_sed='
  1049. + /Import File Strings/,/^$/ {
  1050. + /^0/ {
  1051. + s/^0 *\(.*\)$/\1/
  1052. + p
  1053. + }
  1054. + }'
  1055. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1056. +# Check for a 64-bit object if we didn't find anything.
  1057. +if test -z "$aix_libpath"; then
  1058. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1059. +fi],[])
  1060. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1061. +])# _LT_SYS_MODULE_PATH_AIX
  1062. +
  1063. +
  1064. +# _LT_SHELL_INIT(ARG)
  1065. +# -------------------
  1066. +m4_define([_LT_SHELL_INIT],
  1067. +[ifdef([AC_DIVERSION_NOTICE],
  1068. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1069. + [AC_DIVERT_PUSH(NOTICE)])
  1070. +$1
  1071. +AC_DIVERT_POP
  1072. +])# _LT_SHELL_INIT
  1073. +
  1074. +
  1075. +# _LT_PROG_ECHO_BACKSLASH
  1076. +# -----------------------
  1077. +# Add some code to the start of the generated configure script which
  1078. +# will find an echo command which doesn't interpret backslashes.
  1079. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1080. +[_LT_SHELL_INIT([
  1081. +# Check that we are running under the correct shell.
  1082. +SHELL=${CONFIG_SHELL-/bin/sh}
  1083. +
  1084. +case X$lt_ECHO in
  1085. +X*--fallback-echo)
  1086. + # Remove one level of quotation (which was required for Make).
  1087. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1088. + ;;
  1089. +esac
  1090. +
  1091. +ECHO=${lt_ECHO-echo}
  1092. +if test "X[$]1" = X--no-reexec; then
  1093. + # Discard the --no-reexec flag, and continue.
  1094. + shift
  1095. +elif test "X[$]1" = X--fallback-echo; then
  1096. + # Avoid inline document here, it may be left over
  1097. + :
  1098. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1099. + # Yippee, $ECHO works!
  1100. + :
  1101. +else
  1102. + # Restart under the correct shell.
  1103. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1104. +fi
  1105. +
  1106. +if test "X[$]1" = X--fallback-echo; then
  1107. + # used as fallback echo
  1108. + shift
  1109. + cat <<_LT_EOF
  1110. +[$]*
  1111. +_LT_EOF
  1112. + exit 0
  1113. +fi
  1114. +
  1115. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1116. +# if CDPATH is set.
  1117. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1118. +
  1119. +if test -z "$lt_ECHO"; then
  1120. + if test "X${echo_test_string+set}" != Xset; then
  1121. + # find a string as large as possible, as long as the shell can cope with it
  1122. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1123. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1124. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1125. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1126. + then
  1127. + break
  1128. + fi
  1129. + done
  1130. + fi
  1131. +
  1132. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1133. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1134. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1135. + :
  1136. + else
  1137. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1138. + # backslashes. This makes it impossible to quote backslashes using
  1139. + # echo "$something" | sed 's/\\/\\\\/g'
  1140. + #
  1141. + # So, first we look for a working echo in the user's PATH.
  1142. +
  1143. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1144. + for dir in $PATH /usr/ucb; do
  1145. + IFS="$lt_save_ifs"
  1146. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1147. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1148. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1149. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1150. + ECHO="$dir/echo"
  1151. + break
  1152. + fi
  1153. + done
  1154. + IFS="$lt_save_ifs"
  1155. +
  1156. + if test "X$ECHO" = Xecho; then
  1157. + # We didn't find a better echo, so look for alternatives.
  1158. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1159. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1160. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1161. + # This shell has a builtin print -r that does the trick.
  1162. + ECHO='print -r'
  1163. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1164. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1165. + # If we have ksh, try running configure again with it.
  1166. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1167. + export ORIGINAL_CONFIG_SHELL
  1168. + CONFIG_SHELL=/bin/ksh
  1169. + export CONFIG_SHELL
  1170. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1171. + else
  1172. + # Try using printf.
  1173. + ECHO='printf %s\n'
  1174. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1175. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1176. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1177. + # Cool, printf works
  1178. + :
  1179. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1180. + test "X$echo_testing_string" = 'X\t' &&
  1181. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1182. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1183. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1184. + export CONFIG_SHELL
  1185. + SHELL="$CONFIG_SHELL"
  1186. + export SHELL
  1187. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1188. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1189. + test "X$echo_testing_string" = 'X\t' &&
  1190. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1191. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1192. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1193. + else
  1194. + # maybe with a smaller string...
  1195. + prev=:
  1196. +
  1197. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1198. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1199. + then
  1200. + break
  1201. + fi
  1202. + prev="$cmd"
  1203. + done
  1204. +
  1205. + if test "$prev" != 'sed 50q "[$]0"'; then
  1206. + echo_test_string=`eval $prev`
  1207. + export echo_test_string
  1208. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1209. + else
  1210. + # Oops. We lost completely, so just stick with echo.
  1211. + ECHO=echo
  1212. + fi
  1213. + fi
  1214. + fi
  1215. + fi
  1216. + fi
  1217. +fi
  1218. +
  1219. +# Copy echo and quote the copy suitably for passing to libtool from
  1220. +# the Makefile, instead of quoting the original, which is used later.
  1221. +lt_ECHO=$ECHO
  1222. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1223. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1224. +fi
  1225. +
  1226. +AC_SUBST(lt_ECHO)
  1227. +])
  1228. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1229. +_LT_DECL([], [ECHO], [1],
  1230. + [An echo program that does not interpret backslashes])
  1231. +])# _LT_PROG_ECHO_BACKSLASH
  1232. +
  1233. +
  1234. +# _LT_ENABLE_LOCK
  1235. +# ---------------
  1236. +m4_defun([_LT_ENABLE_LOCK],
  1237. +[AC_ARG_ENABLE([libtool-lock],
  1238. + [AS_HELP_STRING([--disable-libtool-lock],
  1239. + [avoid locking (might break parallel builds)])])
  1240. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1241. +
  1242. +# Some flags need to be propagated to the compiler or linker for good
  1243. +# libtool support.
  1244. +case $host in
  1245. +ia64-*-hpux*)
  1246. + # Find out which ABI we are using.
  1247. + echo 'int i;' > conftest.$ac_ext
  1248. + if AC_TRY_EVAL(ac_compile); then
  1249. + case `/usr/bin/file conftest.$ac_objext` in
  1250. + *ELF-32*)
  1251. + HPUX_IA64_MODE="32"
  1252. + ;;
  1253. + *ELF-64*)
  1254. + HPUX_IA64_MODE="64"
  1255. + ;;
  1256. + esac
  1257. + fi
  1258. + rm -rf conftest*
  1259. + ;;
  1260. +*-*-irix6*)
  1261. + # Find out which ABI we are using.
  1262. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1263. + if AC_TRY_EVAL(ac_compile); then
  1264. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1265. + case `/usr/bin/file conftest.$ac_objext` in
  1266. + *32-bit*)
  1267. + LD="${LD-ld} -melf32bsmip"
  1268. + ;;
  1269. + *N32*)
  1270. + LD="${LD-ld} -melf32bmipn32"
  1271. + ;;
  1272. + *64-bit*)
  1273. + LD="${LD-ld} -melf64bmip"
  1274. + ;;
  1275. + esac
  1276. + else
  1277. + case `/usr/bin/file conftest.$ac_objext` in
  1278. + *32-bit*)
  1279. + LD="${LD-ld} -32"
  1280. + ;;
  1281. + *N32*)
  1282. + LD="${LD-ld} -n32"
  1283. + ;;
  1284. + *64-bit*)
  1285. + LD="${LD-ld} -64"
  1286. + ;;
  1287. + esac
  1288. + fi
  1289. + fi
  1290. + rm -rf conftest*
  1291. + ;;
  1292. +
  1293. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1294. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1295. + # Find out which ABI we are using.
  1296. + echo 'int i;' > conftest.$ac_ext
  1297. + if AC_TRY_EVAL(ac_compile); then
  1298. + case `/usr/bin/file conftest.o` in
  1299. + *32-bit*)
  1300. + case $host in
  1301. + x86_64-*kfreebsd*-gnu)
  1302. + LD="${LD-ld} -m elf_i386_fbsd"
  1303. + ;;
  1304. + x86_64-*linux*)
  1305. + LD="${LD-ld} -m elf_i386"
  1306. + ;;
  1307. + ppc64-*linux*|powerpc64-*linux*)
  1308. + LD="${LD-ld} -m elf32ppclinux"
  1309. + ;;
  1310. + s390x-*linux*)
  1311. + LD="${LD-ld} -m elf_s390"
  1312. + ;;
  1313. + sparc64-*linux*)
  1314. + LD="${LD-ld} -m elf32_sparc"
  1315. + ;;
  1316. + esac
  1317. + ;;
  1318. + *64-bit*)
  1319. + case $host in
  1320. + x86_64-*kfreebsd*-gnu)
  1321. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1322. + ;;
  1323. + x86_64-*linux*)
  1324. + LD="${LD-ld} -m elf_x86_64"
  1325. + ;;
  1326. + ppc*-*linux*|powerpc*-*linux*)
  1327. + LD="${LD-ld} -m elf64ppc"
  1328. + ;;
  1329. + s390*-*linux*|s390*-*tpf*)
  1330. + LD="${LD-ld} -m elf64_s390"
  1331. + ;;
  1332. + sparc*-*linux*)
  1333. + LD="${LD-ld} -m elf64_sparc"
  1334. + ;;
  1335. + esac
  1336. + ;;
  1337. + esac
  1338. + fi
  1339. + rm -rf conftest*
  1340. + ;;
  1341. +
  1342. +*-*-sco3.2v5*)
  1343. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1344. + SAVE_CFLAGS="$CFLAGS"
  1345. + CFLAGS="$CFLAGS -belf"
  1346. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1347. + [AC_LANG_PUSH(C)
  1348. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1349. + AC_LANG_POP])
  1350. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1351. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1352. + CFLAGS="$SAVE_CFLAGS"
  1353. + fi
  1354. + ;;
  1355. +sparc*-*solaris*)
  1356. + # Find out which ABI we are using.
  1357. + echo 'int i;' > conftest.$ac_ext
  1358. + if AC_TRY_EVAL(ac_compile); then
  1359. + case `/usr/bin/file conftest.o` in
  1360. + *64-bit*)
  1361. + case $lt_cv_prog_gnu_ld in
  1362. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1363. + *)
  1364. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1365. + LD="${LD-ld} -64"
  1366. + fi
  1367. + ;;
  1368. + esac
  1369. + ;;
  1370. + esac
  1371. + fi
  1372. + rm -rf conftest*
  1373. + ;;
  1374. +esac
  1375. +
  1376. +need_locks="$enable_libtool_lock"
  1377. +])# _LT_ENABLE_LOCK
  1378. +
  1379. +
  1380. +# _LT_CMD_OLD_ARCHIVE
  1381. +# -------------------
  1382. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1383. +[AC_CHECK_TOOL(AR, ar, false)
  1384. +test -z "$AR" && AR=ar
  1385. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1386. +_LT_DECL([], [AR], [1], [The archiver])
  1387. +_LT_DECL([], [AR_FLAGS], [1])
  1388. +
  1389. +AC_CHECK_TOOL(STRIP, strip, :)
  1390. +test -z "$STRIP" && STRIP=:
  1391. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1392. +
  1393. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1394. +test -z "$RANLIB" && RANLIB=:
  1395. +_LT_DECL([], [RANLIB], [1],
  1396. + [Commands used to install an old-style archive])
  1397. +
  1398. +# Determine commands to create old-style static archives.
  1399. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1400. +old_postinstall_cmds='chmod 644 $oldlib'
  1401. +old_postuninstall_cmds=
  1402. +
  1403. +if test -n "$RANLIB"; then
  1404. + case $host_os in
  1405. + openbsd*)
  1406. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1407. + ;;
  1408. + *)
  1409. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1410. + ;;
  1411. + esac
  1412. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1413. +fi
  1414. +_LT_DECL([], [old_postinstall_cmds], [2])
  1415. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1416. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1417. + [Commands used to build an old-style archive])
  1418. +])# _LT_CMD_OLD_ARCHIVE
  1419. +
  1420. +
  1421. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1422. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1423. +# ----------------------------------------------------------------
  1424. +# Check whether the given compiler option works
  1425. +AC_DEFUN([_LT_COMPILER_OPTION],
  1426. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1427. +m4_require([_LT_DECL_SED])dnl
  1428. +AC_CACHE_CHECK([$1], [$2],
  1429. + [$2=no
  1430. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1431. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1432. + lt_compiler_flag="$3"
  1433. + # Insert the option either (1) after the last *FLAGS variable, or
  1434. + # (2) before a word containing "conftest.", or (3) at the end.
  1435. + # Note that $ac_compile itself does not contain backslashes and begins
  1436. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1437. + # The option is referenced via a variable to avoid confusing sed.
  1438. + lt_compile=`echo "$ac_compile" | $SED \
  1439. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1440. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1441. + -e 's:$: $lt_compiler_flag:'`
  1442. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1443. + (eval "$lt_compile" 2>conftest.err)
  1444. + ac_status=$?
  1445. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1446. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1447. + if (exit $ac_status) && test -s "$ac_outfile"; then
  1448. + # The compiler can only warn and ignore the option if not recognized
  1449. + # So say no if there are warnings other than the usual output.
  1450. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1451. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1452. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1453. + $2=yes
  1454. + fi
  1455. + fi
  1456. + $RM conftest*
  1457. +])
  1458. +
  1459. +if test x"[$]$2" = xyes; then
  1460. + m4_if([$5], , :, [$5])
  1461. +else
  1462. + m4_if([$6], , :, [$6])
  1463. +fi
  1464. +])# _LT_COMPILER_OPTION
  1465. +
  1466. +# Old name:
  1467. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1468. +dnl aclocal-1.4 backwards compatibility:
  1469. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1470. +
  1471. +
  1472. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1473. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1474. +# ----------------------------------------------------
  1475. +# Check whether the given linker option works
  1476. +AC_DEFUN([_LT_LINKER_OPTION],
  1477. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1478. +m4_require([_LT_DECL_SED])dnl
  1479. +AC_CACHE_CHECK([$1], [$2],
  1480. + [$2=no
  1481. + save_LDFLAGS="$LDFLAGS"
  1482. + LDFLAGS="$LDFLAGS $3"
  1483. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1484. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1485. + # The linker can only warn and ignore the option if not recognized
  1486. + # So say no if there are warnings
  1487. + if test -s conftest.err; then
  1488. + # Append any errors to the config.log.
  1489. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1490. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1491. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1492. + if diff conftest.exp conftest.er2 >/dev/null; then
  1493. + $2=yes
  1494. + fi
  1495. + else
  1496. + $2=yes
  1497. + fi
  1498. + fi
  1499. + $RM -r conftest*
  1500. + LDFLAGS="$save_LDFLAGS"
  1501. +])
  1502. +
  1503. +if test x"[$]$2" = xyes; then
  1504. + m4_if([$4], , :, [$4])
  1505. +else
  1506. + m4_if([$5], , :, [$5])
  1507. +fi
  1508. +])# _LT_LINKER_OPTION
  1509. +
  1510. +# Old name:
  1511. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1512. +dnl aclocal-1.4 backwards compatibility:
  1513. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1514. +
  1515. +
  1516. +# LT_CMD_MAX_LEN
  1517. +#---------------
  1518. +AC_DEFUN([LT_CMD_MAX_LEN],
  1519. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1520. +# find the maximum length of command line arguments
  1521. +AC_MSG_CHECKING([the maximum length of command line arguments])
  1522. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1523. + i=0
  1524. + teststring="ABCD"
  1525. +
  1526. + case $build_os in
  1527. + msdosdjgpp*)
  1528. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  1529. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  1530. + # during glob expansion). Even if it were fixed, the result of this
  1531. + # check would be larger than it should be.
  1532. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1533. + ;;
  1534. +
  1535. + gnu*)
  1536. + # Under GNU Hurd, this test is not required because there is
  1537. + # no limit to the length of command line arguments.
  1538. + # Libtool will interpret -1 as no limit whatsoever
  1539. + lt_cv_sys_max_cmd_len=-1;
  1540. + ;;
  1541. +
  1542. + cygwin* | mingw* | cegcc*)
  1543. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  1544. + # about 5 minutes as the teststring grows exponentially.
  1545. + # Worse, since 9x/ME are not pre-emptively multitasking,
  1546. + # you end up with a "frozen" computer, even though with patience
  1547. + # the test eventually succeeds (with a max line length of 256k).
  1548. + # Instead, let's just punt: use the minimum linelength reported by
  1549. + # all of the supported platforms: 8192 (on NT/2K/XP).
  1550. + lt_cv_sys_max_cmd_len=8192;
  1551. + ;;
  1552. +
  1553. + amigaos*)
  1554. + # On AmigaOS with pdksh, this test takes hours, literally.
  1555. + # So we just punt and use a minimum line length of 8192.
  1556. + lt_cv_sys_max_cmd_len=8192;
  1557. + ;;
  1558. +
  1559. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1560. + # This has been around since 386BSD, at least. Likely further.
  1561. + if test -x /sbin/sysctl; then
  1562. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1563. + elif test -x /usr/sbin/sysctl; then
  1564. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1565. + else
  1566. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1567. + fi
  1568. + # And add a safety zone
  1569. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1570. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1571. + ;;
  1572. +
  1573. + interix*)
  1574. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1575. + lt_cv_sys_max_cmd_len=196608
  1576. + ;;
  1577. +
  1578. + osf*)
  1579. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1580. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1581. + # nice to cause kernel panics so lets avoid the loop below.
  1582. + # First set a reasonable default.
  1583. + lt_cv_sys_max_cmd_len=16384
  1584. + #
  1585. + if test -x /sbin/sysconfig; then
  1586. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1587. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1588. + esac
  1589. + fi
  1590. + ;;
  1591. + sco3.2v5*)
  1592. + lt_cv_sys_max_cmd_len=102400
  1593. + ;;
  1594. + sysv5* | sco5v6* | sysv4.2uw2*)
  1595. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1596. + if test -n "$kargmax"; then
  1597. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1598. + else
  1599. + lt_cv_sys_max_cmd_len=32768
  1600. + fi
  1601. + ;;
  1602. + *)
  1603. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1604. + if test -n "$lt_cv_sys_max_cmd_len"; then
  1605. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1606. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1607. + else
  1608. + # Make teststring a little bigger before we do anything with it.
  1609. + # a 1K string should be a reasonable start.
  1610. + for i in 1 2 3 4 5 6 7 8 ; do
  1611. + teststring=$teststring$teststring
  1612. + done
  1613. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1614. + # If test is not a shell built-in, we'll probably end up computing a
  1615. + # maximum length that is only half of the actual maximum length, but
  1616. + # we can't tell.
  1617. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1618. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1619. + test $i != 17 # 1/2 MB should be enough
  1620. + do
  1621. + i=`expr $i + 1`
  1622. + teststring=$teststring$teststring
  1623. + done
  1624. + # Only check the string length outside the loop.
  1625. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1626. + teststring=
  1627. + # Add a significant safety factor because C++ compilers can tack on
  1628. + # massive amounts of additional arguments before passing them to the
  1629. + # linker. It appears as though 1/2 is a usable value.
  1630. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1631. + fi
  1632. + ;;
  1633. + esac
  1634. +])
  1635. +if test -n $lt_cv_sys_max_cmd_len ; then
  1636. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1637. +else
  1638. + AC_MSG_RESULT(none)
  1639. +fi
  1640. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1641. +_LT_DECL([], [max_cmd_len], [0],
  1642. + [What is the maximum length of a command?])
  1643. +])# LT_CMD_MAX_LEN
  1644. +
  1645. +# Old name:
  1646. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1647. +dnl aclocal-1.4 backwards compatibility:
  1648. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1649. +
  1650. +
  1651. +# _LT_HEADER_DLFCN
  1652. +# ----------------
  1653. +m4_defun([_LT_HEADER_DLFCN],
  1654. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1655. +])# _LT_HEADER_DLFCN
  1656. +
  1657. +
  1658. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1659. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1660. +# ----------------------------------------------------------------
  1661. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1662. +[m4_require([_LT_HEADER_DLFCN])dnl
  1663. +if test "$cross_compiling" = yes; then :
  1664. + [$4]
  1665. +else
  1666. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1667. + lt_status=$lt_dlunknown
  1668. + cat > conftest.$ac_ext <<_LT_EOF
  1669. +[#line __oline__ "configure"
  1670. +#include "confdefs.h"
  1671. +
  1672. +#if HAVE_DLFCN_H
  1673. +#include <dlfcn.h>
  1674. +#endif
  1675. +
  1676. +#include <stdio.h>
  1677. +
  1678. +#ifdef RTLD_GLOBAL
  1679. +# define LT_DLGLOBAL RTLD_GLOBAL
  1680. +#else
  1681. +# ifdef DL_GLOBAL
  1682. +# define LT_DLGLOBAL DL_GLOBAL
  1683. +# else
  1684. +# define LT_DLGLOBAL 0
  1685. +# endif
  1686. +#endif
  1687. +
  1688. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1689. + find out it does not work in some platform. */
  1690. +#ifndef LT_DLLAZY_OR_NOW
  1691. +# ifdef RTLD_LAZY
  1692. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1693. +# else
  1694. +# ifdef DL_LAZY
  1695. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1696. +# else
  1697. +# ifdef RTLD_NOW
  1698. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  1699. +# else
  1700. +# ifdef DL_NOW
  1701. +# define LT_DLLAZY_OR_NOW DL_NOW
  1702. +# else
  1703. +# define LT_DLLAZY_OR_NOW 0
  1704. +# endif
  1705. +# endif
  1706. +# endif
  1707. +# endif
  1708. +#endif
  1709. +
  1710. +void fnord() { int i=42;}
  1711. +int main ()
  1712. +{
  1713. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1714. + int status = $lt_dlunknown;
  1715. +
  1716. + if (self)
  1717. + {
  1718. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1719. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1720. + /* dlclose (self); */
  1721. + }
  1722. + else
  1723. + puts (dlerror ());
  1724. +
  1725. + return status;
  1726. +}]
  1727. +_LT_EOF
  1728. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1729. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1730. + lt_status=$?
  1731. + case x$lt_status in
  1732. + x$lt_dlno_uscore) $1 ;;
  1733. + x$lt_dlneed_uscore) $2 ;;
  1734. + x$lt_dlunknown|x*) $3 ;;
  1735. + esac
  1736. + else :
  1737. + # compilation failed
  1738. + $3
  1739. + fi
  1740. +fi
  1741. +rm -fr conftest*
  1742. +])# _LT_TRY_DLOPEN_SELF
  1743. +
  1744. +
  1745. +# LT_SYS_DLOPEN_SELF
  1746. +# ------------------
  1747. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1748. +[m4_require([_LT_HEADER_DLFCN])dnl
  1749. +if test "x$enable_dlopen" != xyes; then
  1750. + enable_dlopen=unknown
  1751. + enable_dlopen_self=unknown
  1752. + enable_dlopen_self_static=unknown
  1753. +else
  1754. + lt_cv_dlopen=no
  1755. + lt_cv_dlopen_libs=
  1756. +
  1757. + case $host_os in
  1758. + beos*)
  1759. + lt_cv_dlopen="load_add_on"
  1760. + lt_cv_dlopen_libs=
  1761. + lt_cv_dlopen_self=yes
  1762. + ;;
  1763. +
  1764. + mingw* | pw32* | cegcc*)
  1765. + lt_cv_dlopen="LoadLibrary"
  1766. + lt_cv_dlopen_libs=
  1767. + ;;
  1768. +
  1769. + cygwin*)
  1770. + lt_cv_dlopen="dlopen"
  1771. + lt_cv_dlopen_libs=
  1772. + ;;
  1773. +
  1774. + darwin*)
  1775. + # if libdl is installed we need to link against it
  1776. + AC_CHECK_LIB([dl], [dlopen],
  1777. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1778. + lt_cv_dlopen="dyld"
  1779. + lt_cv_dlopen_libs=
  1780. + lt_cv_dlopen_self=yes
  1781. + ])
  1782. + ;;
  1783. +
  1784. + *)
  1785. + AC_CHECK_FUNC([shl_load],
  1786. + [lt_cv_dlopen="shl_load"],
  1787. + [AC_CHECK_LIB([dld], [shl_load],
  1788. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1789. + [AC_CHECK_FUNC([dlopen],
  1790. + [lt_cv_dlopen="dlopen"],
  1791. + [AC_CHECK_LIB([dl], [dlopen],
  1792. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1793. + [AC_CHECK_LIB([svld], [dlopen],
  1794. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1795. + [AC_CHECK_LIB([dld], [dld_link],
  1796. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1797. + ])
  1798. + ])
  1799. + ])
  1800. + ])
  1801. + ])
  1802. + ;;
  1803. + esac
  1804. +
  1805. + if test "x$lt_cv_dlopen" != xno; then
  1806. + enable_dlopen=yes
  1807. + else
  1808. + enable_dlopen=no
  1809. + fi
  1810. +
  1811. + case $lt_cv_dlopen in
  1812. + dlopen)
  1813. + save_CPPFLAGS="$CPPFLAGS"
  1814. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1815. +
  1816. + save_LDFLAGS="$LDFLAGS"
  1817. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1818. +
  1819. + save_LIBS="$LIBS"
  1820. + LIBS="$lt_cv_dlopen_libs $LIBS"
  1821. +
  1822. + AC_CACHE_CHECK([whether a program can dlopen itself],
  1823. + lt_cv_dlopen_self, [dnl
  1824. + _LT_TRY_DLOPEN_SELF(
  1825. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1826. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1827. + ])
  1828. +
  1829. + if test "x$lt_cv_dlopen_self" = xyes; then
  1830. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1831. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1832. + lt_cv_dlopen_self_static, [dnl
  1833. + _LT_TRY_DLOPEN_SELF(
  1834. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1835. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1836. + ])
  1837. + fi
  1838. +
  1839. + CPPFLAGS="$save_CPPFLAGS"
  1840. + LDFLAGS="$save_LDFLAGS"
  1841. + LIBS="$save_LIBS"
  1842. + ;;
  1843. + esac
  1844. +
  1845. + case $lt_cv_dlopen_self in
  1846. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1847. + *) enable_dlopen_self=unknown ;;
  1848. + esac
  1849. +
  1850. + case $lt_cv_dlopen_self_static in
  1851. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1852. + *) enable_dlopen_self_static=unknown ;;
  1853. + esac
  1854. +fi
  1855. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1856. + [Whether dlopen is supported])
  1857. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1858. + [Whether dlopen of programs is supported])
  1859. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1860. + [Whether dlopen of statically linked programs is supported])
  1861. +])# LT_SYS_DLOPEN_SELF
  1862. +
  1863. +# Old name:
  1864. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1865. +dnl aclocal-1.4 backwards compatibility:
  1866. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1867. +
  1868. +
  1869. +# _LT_COMPILER_C_O([TAGNAME])
  1870. +# ---------------------------
  1871. +# Check to see if options -c and -o are simultaneously supported by compiler.
  1872. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1873. +m4_defun([_LT_COMPILER_C_O],
  1874. +[m4_require([_LT_DECL_SED])dnl
  1875. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1876. +m4_require([_LT_TAG_COMPILER])dnl
  1877. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1878. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1879. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1880. + $RM -r conftest 2>/dev/null
  1881. + mkdir conftest
  1882. + cd conftest
  1883. + mkdir out
  1884. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1885. +
  1886. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  1887. + # Insert the option either (1) after the last *FLAGS variable, or
  1888. + # (2) before a word containing "conftest.", or (3) at the end.
  1889. + # Note that $ac_compile itself does not contain backslashes and begins
  1890. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1891. + lt_compile=`echo "$ac_compile" | $SED \
  1892. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1893. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1894. + -e 's:$: $lt_compiler_flag:'`
  1895. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1896. + (eval "$lt_compile" 2>out/conftest.err)
  1897. + ac_status=$?
  1898. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1899. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1900. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1901. + then
  1902. + # The compiler can only warn and ignore the option if not recognized
  1903. + # So say no if there are warnings
  1904. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1905. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1906. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1907. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1908. + fi
  1909. + fi
  1910. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1911. + $RM conftest*
  1912. + # SGI C++ compiler will create directory out/ii_files/ for
  1913. + # template instantiation
  1914. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1915. + $RM out/* && rmdir out
  1916. + cd ..
  1917. + $RM -r conftest
  1918. + $RM conftest*
  1919. +])
  1920. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1921. + [Does compiler simultaneously support -c and -o options?])
  1922. +])# _LT_COMPILER_C_O
  1923. +
  1924. +
  1925. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1926. +# ----------------------------------
  1927. +# Check to see if we can do hard links to lock some files if needed
  1928. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  1929. +[m4_require([_LT_ENABLE_LOCK])dnl
  1930. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1931. +_LT_COMPILER_C_O([$1])
  1932. +
  1933. +hard_links="nottested"
  1934. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1935. + # do not overwrite the value of need_locks provided by the user
  1936. + AC_MSG_CHECKING([if we can lock with hard links])
  1937. + hard_links=yes
  1938. + $RM conftest*
  1939. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1940. + touch conftest.a
  1941. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1942. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1943. + AC_MSG_RESULT([$hard_links])
  1944. + if test "$hard_links" = no; then
  1945. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1946. + need_locks=warn
  1947. + fi
  1948. +else
  1949. + need_locks=no
  1950. +fi
  1951. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1952. +])# _LT_COMPILER_FILE_LOCKS
  1953. +
  1954. +
  1955. +# _LT_CHECK_OBJDIR
  1956. +# ----------------
  1957. +m4_defun([_LT_CHECK_OBJDIR],
  1958. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1959. +[rm -f .libs 2>/dev/null
  1960. +mkdir .libs 2>/dev/null
  1961. +if test -d .libs; then
  1962. + lt_cv_objdir=.libs
  1963. +else
  1964. + # MS-DOS does not allow filenames that begin with a dot.
  1965. + lt_cv_objdir=_libs
  1966. +fi
  1967. +rmdir .libs 2>/dev/null])
  1968. +objdir=$lt_cv_objdir
  1969. +_LT_DECL([], [objdir], [0],
  1970. + [The name of the directory that contains temporary libtool files])dnl
  1971. +m4_pattern_allow([LT_OBJDIR])dnl
  1972. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1973. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1974. +])# _LT_CHECK_OBJDIR
  1975. +
  1976. +
  1977. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1978. +# --------------------------------------
  1979. +# Check hardcoding attributes.
  1980. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1981. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1982. +_LT_TAGVAR(hardcode_action, $1)=
  1983. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1984. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1985. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1986. +
  1987. + # We can hardcode non-existent directories.
  1988. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1989. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1990. + # have to relink, otherwise we might link with an installed library
  1991. + # when we should be linking with a yet-to-be-installed one
  1992. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1993. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1994. + # Linking always hardcodes the temporary library directory.
  1995. + _LT_TAGVAR(hardcode_action, $1)=relink
  1996. + else
  1997. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1998. + _LT_TAGVAR(hardcode_action, $1)=immediate
  1999. + fi
  2000. +else
  2001. + # We cannot hardcode anything, or else we can only hardcode existing
  2002. + # directories.
  2003. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2004. +fi
  2005. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2006. +
  2007. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2008. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2009. + # Fast installation is not supported
  2010. + enable_fast_install=no
  2011. +elif test "$shlibpath_overrides_runpath" = yes ||
  2012. + test "$enable_shared" = no; then
  2013. + # Fast installation is not necessary
  2014. + enable_fast_install=needless
  2015. +fi
  2016. +_LT_TAGDECL([], [hardcode_action], [0],
  2017. + [How to hardcode a shared library path into an executable])
  2018. +])# _LT_LINKER_HARDCODE_LIBPATH
  2019. +
  2020. +
  2021. +# _LT_CMD_STRIPLIB
  2022. +# ----------------
  2023. +m4_defun([_LT_CMD_STRIPLIB],
  2024. +[m4_require([_LT_DECL_EGREP])
  2025. +striplib=
  2026. +old_striplib=
  2027. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2028. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2029. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2030. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2031. + AC_MSG_RESULT([yes])
  2032. +else
  2033. +# FIXME - insert some real tests, host_os isn't really good enough
  2034. + case $host_os in
  2035. + darwin*)
  2036. + if test -n "$STRIP" ; then
  2037. + striplib="$STRIP -x"
  2038. + old_striplib="$STRIP -S"
  2039. + AC_MSG_RESULT([yes])
  2040. + else
  2041. + AC_MSG_RESULT([no])
  2042. + fi
  2043. + ;;
  2044. + *)
  2045. + AC_MSG_RESULT([no])
  2046. + ;;
  2047. + esac
  2048. +fi
  2049. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2050. +_LT_DECL([], [striplib], [1])
  2051. +])# _LT_CMD_STRIPLIB
  2052. +
  2053. +
  2054. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2055. +# -----------------------------
  2056. +# PORTME Fill in your ld.so characteristics
  2057. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2058. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2059. +m4_require([_LT_DECL_EGREP])dnl
  2060. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2061. +m4_require([_LT_DECL_OBJDUMP])dnl
  2062. +m4_require([_LT_DECL_SED])dnl
  2063. +AC_MSG_CHECKING([dynamic linker characteristics])
  2064. +m4_if([$1],
  2065. + [], [
  2066. +if test "$GCC" = yes; then
  2067. + case $host_os in
  2068. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2069. + *) lt_awk_arg="/^libraries:/" ;;
  2070. + esac
  2071. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2072. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2073. + # if the path contains ";" then we assume it to be the separator
  2074. + # otherwise default to the standard path separator (i.e. ":") - it is
  2075. + # assumed that no part of a normal pathname contains ";" but that should
  2076. + # okay in the real world where ";" in dirpaths is itself problematic.
  2077. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2078. + else
  2079. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2080. + fi
  2081. + # Ok, now we have the path, separated by spaces, we can step through it
  2082. + # and add multilib dir if necessary.
  2083. + lt_tmp_lt_search_path_spec=
  2084. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2085. + for lt_sys_path in $lt_search_path_spec; do
  2086. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2087. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2088. + else
  2089. + test -d "$lt_sys_path" && \
  2090. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2091. + fi
  2092. + done
  2093. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2094. +BEGIN {RS=" "; FS="/|\n";} {
  2095. + lt_foo="";
  2096. + lt_count=0;
  2097. + for (lt_i = NF; lt_i > 0; lt_i--) {
  2098. + if ($lt_i != "" && $lt_i != ".") {
  2099. + if ($lt_i == "..") {
  2100. + lt_count++;
  2101. + } else {
  2102. + if (lt_count == 0) {
  2103. + lt_foo="/" $lt_i lt_foo;
  2104. + } else {
  2105. + lt_count--;
  2106. + }
  2107. + }
  2108. + }
  2109. + }
  2110. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2111. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2112. +}'`
  2113. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2114. +else
  2115. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2116. +fi])
  2117. +library_names_spec=
  2118. +libname_spec='lib$name'
  2119. +soname_spec=
  2120. +shrext_cmds=".so"
  2121. +postinstall_cmds=
  2122. +postuninstall_cmds=
  2123. +finish_cmds=
  2124. +finish_eval=
  2125. +shlibpath_var=
  2126. +shlibpath_overrides_runpath=unknown
  2127. +version_type=none
  2128. +dynamic_linker="$host_os ld.so"
  2129. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2130. +need_lib_prefix=unknown
  2131. +hardcode_into_libs=no
  2132. +
  2133. +# when you set need_version to no, make sure it does not cause -set_version
  2134. +# flags to be left without arguments
  2135. +need_version=unknown
  2136. +
  2137. +case $host_os in
  2138. +aix3*)
  2139. + version_type=linux
  2140. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2141. + shlibpath_var=LIBPATH
  2142. +
  2143. + # AIX 3 has no versioning support, so we append a major version to the name.
  2144. + soname_spec='${libname}${release}${shared_ext}$major'
  2145. + ;;
  2146. +
  2147. +aix[[4-9]]*)
  2148. + version_type=linux
  2149. + need_lib_prefix=no
  2150. + need_version=no
  2151. + hardcode_into_libs=yes
  2152. + if test "$host_cpu" = ia64; then
  2153. + # AIX 5 supports IA64
  2154. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2155. + shlibpath_var=LD_LIBRARY_PATH
  2156. + else
  2157. + # With GCC up to 2.95.x, collect2 would create an import file
  2158. + # for dependence libraries. The import file would start with
  2159. + # the line `#! .'. This would cause the generated library to
  2160. + # depend on `.', always an invalid library. This was fixed in
  2161. + # development snapshots of GCC prior to 3.0.
  2162. + case $host_os in
  2163. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2164. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2165. + echo ' yes '
  2166. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2167. + :
  2168. + else
  2169. + can_build_shared=no
  2170. + fi
  2171. + ;;
  2172. + esac
  2173. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2174. + # soname into executable. Probably we can add versioning support to
  2175. + # collect2, so additional links can be useful in future.
  2176. + if test "$aix_use_runtimelinking" = yes; then
  2177. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2178. + # instead of lib<name>.a to let people know that these are not
  2179. + # typical AIX shared libraries.
  2180. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2181. + else
  2182. + # We preserve .a as extension for shared libraries through AIX4.2
  2183. + # and later when we are not doing run time linking.
  2184. + library_names_spec='${libname}${release}.a $libname.a'
  2185. + soname_spec='${libname}${release}${shared_ext}$major'
  2186. + fi
  2187. + shlibpath_var=LIBPATH
  2188. + fi
  2189. + ;;
  2190. +
  2191. +amigaos*)
  2192. + case $host_cpu in
  2193. + powerpc)
  2194. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2195. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2196. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2197. + ;;
  2198. + m68k)
  2199. + library_names_spec='$libname.ixlibrary $libname.a'
  2200. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2201. + 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'
  2202. + ;;
  2203. + esac
  2204. + ;;
  2205. +
  2206. +beos*)
  2207. + library_names_spec='${libname}${shared_ext}'
  2208. + dynamic_linker="$host_os ld.so"
  2209. + shlibpath_var=LIBRARY_PATH
  2210. + ;;
  2211. +
  2212. +bsdi[[45]]*)
  2213. + version_type=linux
  2214. + need_version=no
  2215. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2216. + soname_spec='${libname}${release}${shared_ext}$major'
  2217. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2218. + shlibpath_var=LD_LIBRARY_PATH
  2219. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2220. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2221. + # the default ld.so.conf also contains /usr/contrib/lib and
  2222. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2223. + # libtool to hard-code these into programs
  2224. + ;;
  2225. +
  2226. +cygwin* | mingw* | pw32* | cegcc*)
  2227. + version_type=windows
  2228. + shrext_cmds=".dll"
  2229. + need_version=no
  2230. + need_lib_prefix=no
  2231. +
  2232. + case $GCC,$host_os in
  2233. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2234. + library_names_spec='$libname.dll.a'
  2235. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2236. + postinstall_cmds='base_file=`basename \${file}`~
  2237. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2238. + dldir=$destdir/`dirname \$dlpath`~
  2239. + test -d \$dldir || mkdir -p \$dldir~
  2240. + $install_prog $dir/$dlname \$dldir/$dlname~
  2241. + chmod a+x \$dldir/$dlname~
  2242. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2243. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2244. + fi'
  2245. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2246. + dlpath=$dir/\$dldll~
  2247. + $RM \$dlpath'
  2248. + shlibpath_overrides_runpath=yes
  2249. +
  2250. + case $host_os in
  2251. + cygwin*)
  2252. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2253. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2254. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2255. + ;;
  2256. + mingw* | cegcc*)
  2257. + # MinGW DLLs use traditional 'lib' prefix
  2258. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2259. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2260. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2261. + # It is most probably a Windows format PATH printed by
  2262. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2263. + # path with ; separators, and with drive letters. We can handle the
  2264. + # drive letters (cygwin fileutils understands them), so leave them,
  2265. + # especially as we might pass files found there to a mingw objdump,
  2266. + # which wouldn't understand a cygwinified path. Ahh.
  2267. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2268. + else
  2269. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2270. + fi
  2271. + ;;
  2272. + pw32*)
  2273. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  2274. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2275. + ;;
  2276. + esac
  2277. + ;;
  2278. +
  2279. + *)
  2280. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2281. + ;;
  2282. + esac
  2283. + dynamic_linker='Win32 ld.exe'
  2284. + # FIXME: first we should search . and the directory the executable is in
  2285. + shlibpath_var=PATH
  2286. + ;;
  2287. +
  2288. +darwin* | rhapsody*)
  2289. + dynamic_linker="$host_os dyld"
  2290. + version_type=darwin
  2291. + need_lib_prefix=no
  2292. + need_version=no
  2293. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2294. + soname_spec='${libname}${release}${major}$shared_ext'
  2295. + shlibpath_overrides_runpath=yes
  2296. + shlibpath_var=DYLD_LIBRARY_PATH
  2297. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2298. +m4_if([$1], [],[
  2299. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2300. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2301. + ;;
  2302. +
  2303. +dgux*)
  2304. + version_type=linux
  2305. + need_lib_prefix=no
  2306. + need_version=no
  2307. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2308. + soname_spec='${libname}${release}${shared_ext}$major'
  2309. + shlibpath_var=LD_LIBRARY_PATH
  2310. + ;;
  2311. +
  2312. +freebsd1*)
  2313. + dynamic_linker=no
  2314. + ;;
  2315. +
  2316. +freebsd* | dragonfly*)
  2317. + # DragonFly does not have aout. When/if they implement a new
  2318. + # versioning mechanism, adjust this.
  2319. + if test -x /usr/bin/objformat; then
  2320. + objformat=`/usr/bin/objformat`
  2321. + else
  2322. + case $host_os in
  2323. + freebsd[[123]]*) objformat=aout ;;
  2324. + *) objformat=elf ;;
  2325. + esac
  2326. + fi
  2327. + version_type=freebsd-$objformat
  2328. + case $version_type in
  2329. + freebsd-elf*)
  2330. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2331. + need_version=no
  2332. + need_lib_prefix=no
  2333. + ;;
  2334. + freebsd-*)
  2335. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2336. + need_version=yes
  2337. + ;;
  2338. + esac
  2339. + shlibpath_var=LD_LIBRARY_PATH
  2340. + case $host_os in
  2341. + freebsd2*)
  2342. + shlibpath_overrides_runpath=yes
  2343. + ;;
  2344. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2345. + shlibpath_overrides_runpath=yes
  2346. + hardcode_into_libs=yes
  2347. + ;;
  2348. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2349. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2350. + shlibpath_overrides_runpath=no
  2351. + hardcode_into_libs=yes
  2352. + ;;
  2353. + *) # from 4.6 on, and DragonFly
  2354. + shlibpath_overrides_runpath=yes
  2355. + hardcode_into_libs=yes
  2356. + ;;
  2357. + esac
  2358. + ;;
  2359. +
  2360. +gnu*)
  2361. + version_type=linux
  2362. + need_lib_prefix=no
  2363. + need_version=no
  2364. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2365. + soname_spec='${libname}${release}${shared_ext}$major'
  2366. + shlibpath_var=LD_LIBRARY_PATH
  2367. + hardcode_into_libs=yes
  2368. + ;;
  2369. +
  2370. +hpux9* | hpux10* | hpux11*)
  2371. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2372. + # link against other versions.
  2373. + version_type=sunos
  2374. + need_lib_prefix=no
  2375. + need_version=no
  2376. + case $host_cpu in
  2377. + ia64*)
  2378. + shrext_cmds='.so'
  2379. + hardcode_into_libs=yes
  2380. + dynamic_linker="$host_os dld.so"
  2381. + shlibpath_var=LD_LIBRARY_PATH
  2382. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2383. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2384. + soname_spec='${libname}${release}${shared_ext}$major'
  2385. + if test "X$HPUX_IA64_MODE" = X32; then
  2386. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2387. + else
  2388. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2389. + fi
  2390. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2391. + ;;
  2392. + hppa*64*)
  2393. + shrext_cmds='.sl'
  2394. + hardcode_into_libs=yes
  2395. + dynamic_linker="$host_os dld.sl"
  2396. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2397. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2398. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2399. + soname_spec='${libname}${release}${shared_ext}$major'
  2400. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2401. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2402. + ;;
  2403. + *)
  2404. + shrext_cmds='.sl'
  2405. + dynamic_linker="$host_os dld.sl"
  2406. + shlibpath_var=SHLIB_PATH
  2407. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2408. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2409. + soname_spec='${libname}${release}${shared_ext}$major'
  2410. + ;;
  2411. + esac
  2412. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2413. + postinstall_cmds='chmod 555 $lib'
  2414. + ;;
  2415. +
  2416. +interix[[3-9]]*)
  2417. + version_type=linux
  2418. + need_lib_prefix=no
  2419. + need_version=no
  2420. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2421. + soname_spec='${libname}${release}${shared_ext}$major'
  2422. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2423. + shlibpath_var=LD_LIBRARY_PATH
  2424. + shlibpath_overrides_runpath=no
  2425. + hardcode_into_libs=yes
  2426. + ;;
  2427. +
  2428. +irix5* | irix6* | nonstopux*)
  2429. + case $host_os in
  2430. + nonstopux*) version_type=nonstopux ;;
  2431. + *)
  2432. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2433. + version_type=linux
  2434. + else
  2435. + version_type=irix
  2436. + fi ;;
  2437. + esac
  2438. + need_lib_prefix=no
  2439. + need_version=no
  2440. + soname_spec='${libname}${release}${shared_ext}$major'
  2441. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2442. + case $host_os in
  2443. + irix5* | nonstopux*)
  2444. + libsuff= shlibsuff=
  2445. + ;;
  2446. + *)
  2447. + case $LD in # libtool.m4 will add one of these switches to LD
  2448. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2449. + libsuff= shlibsuff= libmagic=32-bit;;
  2450. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2451. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  2452. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2453. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2454. + *) libsuff= shlibsuff= libmagic=never-match;;
  2455. + esac
  2456. + ;;
  2457. + esac
  2458. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2459. + shlibpath_overrides_runpath=no
  2460. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2461. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2462. + hardcode_into_libs=yes
  2463. + ;;
  2464. +
  2465. +# No shared lib support for Linux oldld, aout, or coff.
  2466. +linux*oldld* | linux*aout* | linux*coff*)
  2467. + dynamic_linker=no
  2468. + ;;
  2469. +
  2470. +# This must be Linux ELF.
  2471. +linux* | k*bsd*-gnu | kopensolaris*-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. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2478. + shlibpath_var=LD_LIBRARY_PATH
  2479. + shlibpath_overrides_runpath=no
  2480. + # Some binutils ld are patched to set DT_RUNPATH
  2481. + save_LDFLAGS=$LDFLAGS
  2482. + save_libdir=$libdir
  2483. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2484. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2485. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2486. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2487. + [shlibpath_overrides_runpath=yes])])
  2488. + LDFLAGS=$save_LDFLAGS
  2489. + libdir=$save_libdir
  2490. +
  2491. + # This implies no fast_install, which is unacceptable.
  2492. + # Some rework will be needed to allow for fast_install
  2493. + # before this can be enabled.
  2494. + hardcode_into_libs=yes
  2495. +
  2496. + # Append ld.so.conf contents to the search path
  2497. + if test -f /etc/ld.so.conf; then
  2498. + 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' ' '`
  2499. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2500. + fi
  2501. +
  2502. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2503. + # powerpc, because MkLinux only supported shared libraries with the
  2504. + # GNU dynamic linker. Since this was broken with cross compilers,
  2505. + # most powerpc-linux boxes support dynamic linking these days and
  2506. + # people can always --disable-shared, the test was removed, and we
  2507. + # assume the GNU/Linux dynamic linker is in use.
  2508. + dynamic_linker='GNU/Linux ld.so'
  2509. + ;;
  2510. +
  2511. +netbsdelf*-gnu)
  2512. + version_type=linux
  2513. + need_lib_prefix=no
  2514. + need_version=no
  2515. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2516. + soname_spec='${libname}${release}${shared_ext}$major'
  2517. + shlibpath_var=LD_LIBRARY_PATH
  2518. + shlibpath_overrides_runpath=no
  2519. + hardcode_into_libs=yes
  2520. + dynamic_linker='NetBSD ld.elf_so'
  2521. + ;;
  2522. +
  2523. +netbsd*)
  2524. + version_type=sunos
  2525. + need_lib_prefix=no
  2526. + need_version=no
  2527. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2528. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2529. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2530. + dynamic_linker='NetBSD (a.out) ld.so'
  2531. + else
  2532. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2533. + soname_spec='${libname}${release}${shared_ext}$major'
  2534. + dynamic_linker='NetBSD ld.elf_so'
  2535. + fi
  2536. + shlibpath_var=LD_LIBRARY_PATH
  2537. + shlibpath_overrides_runpath=yes
  2538. + hardcode_into_libs=yes
  2539. + ;;
  2540. +
  2541. +newsos6)
  2542. + version_type=linux
  2543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2544. + shlibpath_var=LD_LIBRARY_PATH
  2545. + shlibpath_overrides_runpath=yes
  2546. + ;;
  2547. +
  2548. +*nto* | *qnx*)
  2549. + version_type=qnx
  2550. + need_lib_prefix=no
  2551. + need_version=no
  2552. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2553. + soname_spec='${libname}${release}${shared_ext}$major'
  2554. + shlibpath_var=LD_LIBRARY_PATH
  2555. + shlibpath_overrides_runpath=no
  2556. + hardcode_into_libs=yes
  2557. + dynamic_linker='ldqnx.so'
  2558. + ;;
  2559. +
  2560. +openbsd*)
  2561. + version_type=sunos
  2562. + sys_lib_dlsearch_path_spec="/usr/lib"
  2563. + need_lib_prefix=no
  2564. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2565. + case $host_os in
  2566. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2567. + *) need_version=no ;;
  2568. + esac
  2569. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2570. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2571. + shlibpath_var=LD_LIBRARY_PATH
  2572. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2573. + case $host_os in
  2574. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2575. + shlibpath_overrides_runpath=no
  2576. + ;;
  2577. + *)
  2578. + shlibpath_overrides_runpath=yes
  2579. + ;;
  2580. + esac
  2581. + else
  2582. + shlibpath_overrides_runpath=yes
  2583. + fi
  2584. + ;;
  2585. +
  2586. +os2*)
  2587. + libname_spec='$name'
  2588. + shrext_cmds=".dll"
  2589. + need_lib_prefix=no
  2590. + library_names_spec='$libname${shared_ext} $libname.a'
  2591. + dynamic_linker='OS/2 ld.exe'
  2592. + shlibpath_var=LIBPATH
  2593. + ;;
  2594. +
  2595. +osf3* | osf4* | osf5*)
  2596. + version_type=osf
  2597. + need_lib_prefix=no
  2598. + need_version=no
  2599. + soname_spec='${libname}${release}${shared_ext}$major'
  2600. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2601. + shlibpath_var=LD_LIBRARY_PATH
  2602. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2603. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2604. + ;;
  2605. +
  2606. +rdos*)
  2607. + dynamic_linker=no
  2608. + ;;
  2609. +
  2610. +solaris*)
  2611. + version_type=linux
  2612. + need_lib_prefix=no
  2613. + need_version=no
  2614. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2615. + soname_spec='${libname}${release}${shared_ext}$major'
  2616. + shlibpath_var=LD_LIBRARY_PATH
  2617. + shlibpath_overrides_runpath=yes
  2618. + hardcode_into_libs=yes
  2619. + # ldd complains unless libraries are executable
  2620. + postinstall_cmds='chmod +x $lib'
  2621. + ;;
  2622. +
  2623. +sunos4*)
  2624. + version_type=sunos
  2625. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2626. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2627. + shlibpath_var=LD_LIBRARY_PATH
  2628. + shlibpath_overrides_runpath=yes
  2629. + if test "$with_gnu_ld" = yes; then
  2630. + need_lib_prefix=no
  2631. + fi
  2632. + need_version=yes
  2633. + ;;
  2634. +
  2635. +sysv4 | sysv4.3*)
  2636. + version_type=linux
  2637. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2638. + soname_spec='${libname}${release}${shared_ext}$major'
  2639. + shlibpath_var=LD_LIBRARY_PATH
  2640. + case $host_vendor in
  2641. + sni)
  2642. + shlibpath_overrides_runpath=no
  2643. + need_lib_prefix=no
  2644. + runpath_var=LD_RUN_PATH
  2645. + ;;
  2646. + siemens)
  2647. + need_lib_prefix=no
  2648. + ;;
  2649. + motorola)
  2650. + need_lib_prefix=no
  2651. + need_version=no
  2652. + shlibpath_overrides_runpath=no
  2653. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2654. + ;;
  2655. + esac
  2656. + ;;
  2657. +
  2658. +sysv4*MP*)
  2659. + if test -d /usr/nec ;then
  2660. + version_type=linux
  2661. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2662. + soname_spec='$libname${shared_ext}.$major'
  2663. + shlibpath_var=LD_LIBRARY_PATH
  2664. + fi
  2665. + ;;
  2666. +
  2667. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2668. + version_type=freebsd-elf
  2669. + need_lib_prefix=no
  2670. + need_version=no
  2671. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2672. + soname_spec='${libname}${release}${shared_ext}$major'
  2673. + shlibpath_var=LD_LIBRARY_PATH
  2674. + shlibpath_overrides_runpath=yes
  2675. + hardcode_into_libs=yes
  2676. + if test "$with_gnu_ld" = yes; then
  2677. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2678. + else
  2679. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2680. + case $host_os in
  2681. + sco3.2v5*)
  2682. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2683. + ;;
  2684. + esac
  2685. + fi
  2686. + sys_lib_dlsearch_path_spec='/usr/lib'
  2687. + ;;
  2688. +
  2689. +tpf*)
  2690. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2691. + version_type=linux
  2692. + need_lib_prefix=no
  2693. + need_version=no
  2694. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2695. + shlibpath_var=LD_LIBRARY_PATH
  2696. + shlibpath_overrides_runpath=no
  2697. + hardcode_into_libs=yes
  2698. + ;;
  2699. +
  2700. +uts4*)
  2701. + version_type=linux
  2702. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2703. + soname_spec='${libname}${release}${shared_ext}$major'
  2704. + shlibpath_var=LD_LIBRARY_PATH
  2705. + ;;
  2706. +
  2707. +*)
  2708. + dynamic_linker=no
  2709. + ;;
  2710. +esac
  2711. +AC_MSG_RESULT([$dynamic_linker])
  2712. +test "$dynamic_linker" = no && can_build_shared=no
  2713. +
  2714. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2715. +if test "$GCC" = yes; then
  2716. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2717. +fi
  2718. +
  2719. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2720. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2721. +fi
  2722. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2723. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2724. +fi
  2725. +
  2726. +_LT_DECL([], [variables_saved_for_relink], [1],
  2727. + [Variables whose values should be saved in libtool wrapper scripts and
  2728. + restored at link time])
  2729. +_LT_DECL([], [need_lib_prefix], [0],
  2730. + [Do we need the "lib" prefix for modules?])
  2731. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2732. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2733. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2734. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2735. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2736. + [Is shlibpath searched before the hard-coded library search path?])
  2737. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2738. +_LT_DECL([], [library_names_spec], [1],
  2739. + [[List of archive names. First name is the real one, the rest are links.
  2740. + The last name is the one that the linker finds with -lNAME]])
  2741. +_LT_DECL([], [soname_spec], [1],
  2742. + [[The coded name of the library, if different from the real name]])
  2743. +_LT_DECL([], [postinstall_cmds], [2],
  2744. + [Command to use after installation of a shared archive])
  2745. +_LT_DECL([], [postuninstall_cmds], [2],
  2746. + [Command to use after uninstallation of a shared archive])
  2747. +_LT_DECL([], [finish_cmds], [2],
  2748. + [Commands used to finish a libtool library installation in a directory])
  2749. +_LT_DECL([], [finish_eval], [1],
  2750. + [[As "finish_cmds", except a single script fragment to be evaled but
  2751. + not shown]])
  2752. +_LT_DECL([], [hardcode_into_libs], [0],
  2753. + [Whether we should hardcode library paths into libraries])
  2754. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2755. + [Compile-time system search path for libraries])
  2756. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2757. + [Run-time system search path for libraries])
  2758. +])# _LT_SYS_DYNAMIC_LINKER
  2759. +
  2760. +
  2761. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2762. +# --------------------------
  2763. +# find a file program which can recognize shared library
  2764. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2765. +[m4_require([_LT_DECL_EGREP])dnl
  2766. +AC_MSG_CHECKING([for $1])
  2767. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2768. +[case $MAGIC_CMD in
  2769. +[[\\/*] | ?:[\\/]*])
  2770. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2771. + ;;
  2772. +*)
  2773. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  2774. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2775. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  2776. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  2777. +dnl not every word. This closes a longstanding sh security hole.
  2778. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2779. + for ac_dir in $ac_dummy; do
  2780. + IFS="$lt_save_ifs"
  2781. + test -z "$ac_dir" && ac_dir=.
  2782. + if test -f $ac_dir/$1; then
  2783. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2784. + if test -n "$file_magic_test_file"; then
  2785. + case $deplibs_check_method in
  2786. + "file_magic "*)
  2787. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2788. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2789. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2790. + $EGREP "$file_magic_regex" > /dev/null; then
  2791. + :
  2792. + else
  2793. + cat <<_LT_EOF 1>&2
  2794. +
  2795. +*** Warning: the command libtool uses to detect shared libraries,
  2796. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  2797. +*** The result is that libtool may fail to recognize shared libraries
  2798. +*** as such. This will affect the creation of libtool libraries that
  2799. +*** depend on shared libraries, but programs linked with such libtool
  2800. +*** libraries will work regardless of this problem. Nevertheless, you
  2801. +*** may want to report the problem to your system manager and/or to
  2802. +*** bug-libtool@gnu.org
  2803. +
  2804. +_LT_EOF
  2805. + fi ;;
  2806. + esac
  2807. + fi
  2808. + break
  2809. + fi
  2810. + done
  2811. + IFS="$lt_save_ifs"
  2812. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  2813. + ;;
  2814. +esac])
  2815. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2816. +if test -n "$MAGIC_CMD"; then
  2817. + AC_MSG_RESULT($MAGIC_CMD)
  2818. +else
  2819. + AC_MSG_RESULT(no)
  2820. +fi
  2821. +_LT_DECL([], [MAGIC_CMD], [0],
  2822. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2823. +])# _LT_PATH_TOOL_PREFIX
  2824. +
  2825. +# Old name:
  2826. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2827. +dnl aclocal-1.4 backwards compatibility:
  2828. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2829. +
  2830. +
  2831. +# _LT_PATH_MAGIC
  2832. +# --------------
  2833. +# find a file program which can recognize a shared library
  2834. +m4_defun([_LT_PATH_MAGIC],
  2835. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2836. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  2837. + if test -n "$ac_tool_prefix"; then
  2838. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2839. + else
  2840. + MAGIC_CMD=:
  2841. + fi
  2842. +fi
  2843. +])# _LT_PATH_MAGIC
  2844. +
  2845. +
  2846. +# LT_PATH_LD
  2847. +# ----------
  2848. +# find the pathname to the GNU or non-GNU linker
  2849. +AC_DEFUN([LT_PATH_LD],
  2850. +[AC_REQUIRE([AC_PROG_CC])dnl
  2851. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2852. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2853. +m4_require([_LT_DECL_SED])dnl
  2854. +m4_require([_LT_DECL_EGREP])dnl
  2855. +
  2856. +AC_ARG_WITH([gnu-ld],
  2857. + [AS_HELP_STRING([--with-gnu-ld],
  2858. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2859. + [test "$withval" = no || with_gnu_ld=yes],
  2860. + [with_gnu_ld=no])dnl
  2861. +
  2862. +ac_prog=ld
  2863. +if test "$GCC" = yes; then
  2864. + # Check if gcc -print-prog-name=ld gives a path.
  2865. + AC_MSG_CHECKING([for ld used by $CC])
  2866. + case $host in
  2867. + *-*-mingw*)
  2868. + # gcc leaves a trailing carriage return which upsets mingw
  2869. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2870. + *)
  2871. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2872. + esac
  2873. + case $ac_prog in
  2874. + # Accept absolute paths.
  2875. + [[\\/]]* | ?:[[\\/]]*)
  2876. + re_direlt='/[[^/]][[^/]]*/\.\./'
  2877. + # Canonicalize the pathname of ld
  2878. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2879. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2880. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2881. + done
  2882. + test -z "$LD" && LD="$ac_prog"
  2883. + ;;
  2884. + "")
  2885. + # If it fails, then pretend we aren't using GCC.
  2886. + ac_prog=ld
  2887. + ;;
  2888. + *)
  2889. + # If it is relative, then search for the first ld in PATH.
  2890. + with_gnu_ld=unknown
  2891. + ;;
  2892. + esac
  2893. +elif test "$with_gnu_ld" = yes; then
  2894. + AC_MSG_CHECKING([for GNU ld])
  2895. +else
  2896. + AC_MSG_CHECKING([for non-GNU ld])
  2897. +fi
  2898. +AC_CACHE_VAL(lt_cv_path_LD,
  2899. +[if test -z "$LD"; then
  2900. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2901. + for ac_dir in $PATH; do
  2902. + IFS="$lt_save_ifs"
  2903. + test -z "$ac_dir" && ac_dir=.
  2904. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2905. + lt_cv_path_LD="$ac_dir/$ac_prog"
  2906. + # Check to see if the program is GNU ld. I'd rather use --version,
  2907. + # but apparently some variants of GNU ld only accept -v.
  2908. + # Break only if it was the GNU/non-GNU ld that we prefer.
  2909. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2910. + *GNU* | *'with BFD'*)
  2911. + test "$with_gnu_ld" != no && break
  2912. + ;;
  2913. + *)
  2914. + test "$with_gnu_ld" != yes && break
  2915. + ;;
  2916. + esac
  2917. + fi
  2918. + done
  2919. + IFS="$lt_save_ifs"
  2920. +else
  2921. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2922. +fi])
  2923. +LD="$lt_cv_path_LD"
  2924. +if test -n "$LD"; then
  2925. + AC_MSG_RESULT($LD)
  2926. +else
  2927. + AC_MSG_RESULT(no)
  2928. +fi
  2929. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2930. +_LT_PATH_LD_GNU
  2931. +AC_SUBST([LD])
  2932. +
  2933. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2934. +])# LT_PATH_LD
  2935. +
  2936. +# Old names:
  2937. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2938. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2939. +dnl aclocal-1.4 backwards compatibility:
  2940. +dnl AC_DEFUN([AM_PROG_LD], [])
  2941. +dnl AC_DEFUN([AC_PROG_LD], [])
  2942. +
  2943. +
  2944. +# _LT_PATH_LD_GNU
  2945. +#- --------------
  2946. +m4_defun([_LT_PATH_LD_GNU],
  2947. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2948. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2949. +case `$LD -v 2>&1 </dev/null` in
  2950. +*GNU* | *'with BFD'*)
  2951. + lt_cv_prog_gnu_ld=yes
  2952. + ;;
  2953. +*)
  2954. + lt_cv_prog_gnu_ld=no
  2955. + ;;
  2956. +esac])
  2957. +with_gnu_ld=$lt_cv_prog_gnu_ld
  2958. +])# _LT_PATH_LD_GNU
  2959. +
  2960. +
  2961. +# _LT_CMD_RELOAD
  2962. +# --------------
  2963. +# find reload flag for linker
  2964. +# -- PORTME Some linkers may need a different reload flag.
  2965. +m4_defun([_LT_CMD_RELOAD],
  2966. +[AC_CACHE_CHECK([for $LD option to reload object files],
  2967. + lt_cv_ld_reload_flag,
  2968. + [lt_cv_ld_reload_flag='-r'])
  2969. +reload_flag=$lt_cv_ld_reload_flag
  2970. +case $reload_flag in
  2971. +"" | " "*) ;;
  2972. +*) reload_flag=" $reload_flag" ;;
  2973. +esac
  2974. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2975. +case $host_os in
  2976. + darwin*)
  2977. + if test "$GCC" = yes; then
  2978. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2979. + else
  2980. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2981. + fi
  2982. + ;;
  2983. +esac
  2984. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2985. +_LT_DECL([], [reload_cmds], [2])dnl
  2986. +])# _LT_CMD_RELOAD
  2987. +
  2988. +
  2989. +# _LT_CHECK_MAGIC_METHOD
  2990. +# ----------------------
  2991. +# how to check for library dependencies
  2992. +# -- PORTME fill in with the dynamic library characteristics
  2993. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  2994. +[m4_require([_LT_DECL_EGREP])
  2995. +m4_require([_LT_DECL_OBJDUMP])
  2996. +AC_CACHE_CHECK([how to recognize dependent libraries],
  2997. +lt_cv_deplibs_check_method,
  2998. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  2999. +lt_cv_file_magic_test_file=
  3000. +lt_cv_deplibs_check_method='unknown'
  3001. +# Need to set the preceding variable on all platforms that support
  3002. +# interlibrary dependencies.
  3003. +# 'none' -- dependencies not supported.
  3004. +# `unknown' -- same as none, but documents that we really don't know.
  3005. +# 'pass_all' -- all dependencies passed with no checks.
  3006. +# 'test_compile' -- check by making test program.
  3007. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3008. +# which responds to the $file_magic_cmd with a given extended regex.
  3009. +# If you have `file' or equivalent on your system and you're not sure
  3010. +# whether `pass_all' will *always* work, you probably want this one.
  3011. +
  3012. +case $host_os in
  3013. +aix[[4-9]]*)
  3014. + lt_cv_deplibs_check_method=pass_all
  3015. + ;;
  3016. +
  3017. +beos*)
  3018. + lt_cv_deplibs_check_method=pass_all
  3019. + ;;
  3020. +
  3021. +bsdi[[45]]*)
  3022. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3023. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3024. + lt_cv_file_magic_test_file=/shlib/libc.so
  3025. + ;;
  3026. +
  3027. +cygwin*)
  3028. + # func_win32_libid is a shell function defined in ltmain.sh
  3029. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3030. + lt_cv_file_magic_cmd='func_win32_libid'
  3031. + ;;
  3032. +
  3033. +mingw* | pw32*)
  3034. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3035. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3036. + # unless we find 'file', for example because we are cross-compiling.
  3037. + if ( file / ) >/dev/null 2>&1; then
  3038. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3039. + lt_cv_file_magic_cmd='func_win32_libid'
  3040. + else
  3041. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3042. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3043. + fi
  3044. + ;;
  3045. +
  3046. +cegcc)
  3047. + # use the weaker test based on 'objdump'. See mingw*.
  3048. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3049. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3050. + ;;
  3051. +
  3052. +darwin* | rhapsody*)
  3053. + lt_cv_deplibs_check_method=pass_all
  3054. + ;;
  3055. +
  3056. +freebsd* | dragonfly*)
  3057. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3058. + case $host_cpu in
  3059. + i*86 )
  3060. + # Not sure whether the presence of OpenBSD here was a mistake.
  3061. + # Let's accept both of them until this is cleared up.
  3062. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3063. + lt_cv_file_magic_cmd=/usr/bin/file
  3064. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3065. + ;;
  3066. + esac
  3067. + else
  3068. + lt_cv_deplibs_check_method=pass_all
  3069. + fi
  3070. + ;;
  3071. +
  3072. +gnu*)
  3073. + lt_cv_deplibs_check_method=pass_all
  3074. + ;;
  3075. +
  3076. +hpux10.20* | hpux11*)
  3077. + lt_cv_file_magic_cmd=/usr/bin/file
  3078. + case $host_cpu in
  3079. + ia64*)
  3080. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3081. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3082. + ;;
  3083. + hppa*64*)
  3084. + [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]']
  3085. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3086. + ;;
  3087. + *)
  3088. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3089. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3090. + ;;
  3091. + esac
  3092. + ;;
  3093. +
  3094. +interix[[3-9]]*)
  3095. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3096. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3097. + ;;
  3098. +
  3099. +irix5* | irix6* | nonstopux*)
  3100. + case $LD in
  3101. + *-32|*"-32 ") libmagic=32-bit;;
  3102. + *-n32|*"-n32 ") libmagic=N32;;
  3103. + *-64|*"-64 ") libmagic=64-bit;;
  3104. + *) libmagic=never-match;;
  3105. + esac
  3106. + lt_cv_deplibs_check_method=pass_all
  3107. + ;;
  3108. +
  3109. +# This must be Linux ELF.
  3110. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3111. + lt_cv_deplibs_check_method=pass_all
  3112. + ;;
  3113. +
  3114. +netbsd* | netbsdelf*-gnu)
  3115. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3116. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3117. + else
  3118. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3119. + fi
  3120. + ;;
  3121. +
  3122. +newos6*)
  3123. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3124. + lt_cv_file_magic_cmd=/usr/bin/file
  3125. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3126. + ;;
  3127. +
  3128. +*nto* | *qnx*)
  3129. + lt_cv_deplibs_check_method=pass_all
  3130. + ;;
  3131. +
  3132. +openbsd*)
  3133. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3134. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3135. + else
  3136. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3137. + fi
  3138. + ;;
  3139. +
  3140. +osf3* | osf4* | osf5*)
  3141. + lt_cv_deplibs_check_method=pass_all
  3142. + ;;
  3143. +
  3144. +rdos*)
  3145. + lt_cv_deplibs_check_method=pass_all
  3146. + ;;
  3147. +
  3148. +solaris*)
  3149. + lt_cv_deplibs_check_method=pass_all
  3150. + ;;
  3151. +
  3152. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3153. + lt_cv_deplibs_check_method=pass_all
  3154. + ;;
  3155. +
  3156. +sysv4 | sysv4.3*)
  3157. + case $host_vendor in
  3158. + motorola)
  3159. + 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]]'
  3160. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3161. + ;;
  3162. + ncr)
  3163. + lt_cv_deplibs_check_method=pass_all
  3164. + ;;
  3165. + sequent)
  3166. + lt_cv_file_magic_cmd='/bin/file'
  3167. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3168. + ;;
  3169. + sni)
  3170. + lt_cv_file_magic_cmd='/bin/file'
  3171. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3172. + lt_cv_file_magic_test_file=/lib/libc.so
  3173. + ;;
  3174. + siemens)
  3175. + lt_cv_deplibs_check_method=pass_all
  3176. + ;;
  3177. + pc)
  3178. + lt_cv_deplibs_check_method=pass_all
  3179. + ;;
  3180. + esac
  3181. + ;;
  3182. +
  3183. +tpf*)
  3184. + lt_cv_deplibs_check_method=pass_all
  3185. + ;;
  3186. +esac
  3187. +])
  3188. +file_magic_cmd=$lt_cv_file_magic_cmd
  3189. +deplibs_check_method=$lt_cv_deplibs_check_method
  3190. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3191. +
  3192. +_LT_DECL([], [deplibs_check_method], [1],
  3193. + [Method to check whether dependent libraries are shared objects])
  3194. +_LT_DECL([], [file_magic_cmd], [1],
  3195. + [Command to use when deplibs_check_method == "file_magic"])
  3196. +])# _LT_CHECK_MAGIC_METHOD
  3197. +
  3198. +
  3199. +# LT_PATH_NM
  3200. +# ----------
  3201. +# find the pathname to a BSD- or MS-compatible name lister
  3202. +AC_DEFUN([LT_PATH_NM],
  3203. +[AC_REQUIRE([AC_PROG_CC])dnl
  3204. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3205. +[if test -n "$NM"; then
  3206. + # Let the user override the test.
  3207. + lt_cv_path_NM="$NM"
  3208. +else
  3209. + lt_nm_to_check="${ac_tool_prefix}nm"
  3210. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3211. + lt_nm_to_check="$lt_nm_to_check nm"
  3212. + fi
  3213. + for lt_tmp_nm in $lt_nm_to_check; do
  3214. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3215. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3216. + IFS="$lt_save_ifs"
  3217. + test -z "$ac_dir" && ac_dir=.
  3218. + tmp_nm="$ac_dir/$lt_tmp_nm"
  3219. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3220. + # Check to see if the nm accepts a BSD-compat flag.
  3221. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3222. + # nm: unknown option "B" ignored
  3223. + # Tru64's nm complains that /dev/null is an invalid object file
  3224. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3225. + */dev/null* | *'Invalid file or object type'*)
  3226. + lt_cv_path_NM="$tmp_nm -B"
  3227. + break
  3228. + ;;
  3229. + *)
  3230. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3231. + */dev/null*)
  3232. + lt_cv_path_NM="$tmp_nm -p"
  3233. + break
  3234. + ;;
  3235. + *)
  3236. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3237. + continue # so that we can try to find one that supports BSD flags
  3238. + ;;
  3239. + esac
  3240. + ;;
  3241. + esac
  3242. + fi
  3243. + done
  3244. + IFS="$lt_save_ifs"
  3245. + done
  3246. + : ${lt_cv_path_NM=no}
  3247. +fi])
  3248. +if test "$lt_cv_path_NM" != "no"; then
  3249. + NM="$lt_cv_path_NM"
  3250. +else
  3251. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3252. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3253. + AC_SUBST([DUMPBIN])
  3254. + if test "$DUMPBIN" != ":"; then
  3255. + NM="$DUMPBIN"
  3256. + fi
  3257. +fi
  3258. +test -z "$NM" && NM=nm
  3259. +AC_SUBST([NM])
  3260. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3261. +
  3262. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3263. + [lt_cv_nm_interface="BSD nm"
  3264. + echo "int some_variable = 0;" > conftest.$ac_ext
  3265. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3266. + (eval "$ac_compile" 2>conftest.err)
  3267. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3268. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3269. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3270. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3271. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3272. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3273. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3274. + lt_cv_nm_interface="MS dumpbin"
  3275. + fi
  3276. + rm -f conftest*])
  3277. +])# LT_PATH_NM
  3278. +
  3279. +# Old names:
  3280. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3281. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3282. +dnl aclocal-1.4 backwards compatibility:
  3283. +dnl AC_DEFUN([AM_PROG_NM], [])
  3284. +dnl AC_DEFUN([AC_PROG_NM], [])
  3285. +
  3286. +
  3287. +# LT_LIB_M
  3288. +# --------
  3289. +# check for math library
  3290. +AC_DEFUN([LT_LIB_M],
  3291. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3292. +LIBM=
  3293. +case $host in
  3294. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3295. + # These system don't have libm, or don't need it
  3296. + ;;
  3297. +*-ncr-sysv4.3*)
  3298. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3299. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3300. + ;;
  3301. +*)
  3302. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  3303. + ;;
  3304. +esac
  3305. +AC_SUBST([LIBM])
  3306. +])# LT_LIB_M
  3307. +
  3308. +# Old name:
  3309. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3310. +dnl aclocal-1.4 backwards compatibility:
  3311. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3312. +
  3313. +
  3314. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3315. +# -------------------------------
  3316. +m4_defun([_LT_COMPILER_NO_RTTI],
  3317. +[m4_require([_LT_TAG_COMPILER])dnl
  3318. +
  3319. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3320. +
  3321. +if test "$GCC" = yes; then
  3322. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3323. +
  3324. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3325. + lt_cv_prog_compiler_rtti_exceptions,
  3326. + [-fno-rtti -fno-exceptions], [],
  3327. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3328. +fi
  3329. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3330. + [Compiler flag to turn off builtin functions])
  3331. +])# _LT_COMPILER_NO_RTTI
  3332. +
  3333. +
  3334. +# _LT_CMD_GLOBAL_SYMBOLS
  3335. +# ----------------------
  3336. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3337. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3338. +AC_REQUIRE([AC_PROG_CC])dnl
  3339. +AC_REQUIRE([LT_PATH_NM])dnl
  3340. +AC_REQUIRE([LT_PATH_LD])dnl
  3341. +m4_require([_LT_DECL_SED])dnl
  3342. +m4_require([_LT_DECL_EGREP])dnl
  3343. +m4_require([_LT_TAG_COMPILER])dnl
  3344. +
  3345. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3346. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3347. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3348. +[
  3349. +# These are sane defaults that work on at least a few old systems.
  3350. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3351. +
  3352. +# Character class describing NM global symbol codes.
  3353. +symcode='[[BCDEGRST]]'
  3354. +
  3355. +# Regexp to match symbols that can be accessed directly from C.
  3356. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3357. +
  3358. +# Define system-specific variables.
  3359. +case $host_os in
  3360. +aix*)
  3361. + symcode='[[BCDT]]'
  3362. + ;;
  3363. +cygwin* | mingw* | pw32* | cegcc*)
  3364. + symcode='[[ABCDGISTW]]'
  3365. + ;;
  3366. +hpux*)
  3367. + if test "$host_cpu" = ia64; then
  3368. + symcode='[[ABCDEGRST]]'
  3369. + fi
  3370. + ;;
  3371. +irix* | nonstopux*)
  3372. + symcode='[[BCDEGRST]]'
  3373. + ;;
  3374. +osf*)
  3375. + symcode='[[BCDEGQRST]]'
  3376. + ;;
  3377. +solaris*)
  3378. + symcode='[[BDRT]]'
  3379. + ;;
  3380. +sco3.2v5*)
  3381. + symcode='[[DT]]'
  3382. + ;;
  3383. +sysv4.2uw2*)
  3384. + symcode='[[DT]]'
  3385. + ;;
  3386. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3387. + symcode='[[ABDT]]'
  3388. + ;;
  3389. +sysv4)
  3390. + symcode='[[DFNSTU]]'
  3391. + ;;
  3392. +esac
  3393. +
  3394. +# If we're using GNU nm, then use its standard symbol codes.
  3395. +case `$NM -V 2>&1` in
  3396. +*GNU* | *'with BFD'*)
  3397. + symcode='[[ABCDGIRSTW]]' ;;
  3398. +esac
  3399. +
  3400. +# Transform an extracted symbol line into a proper C declaration.
  3401. +# Some systems (esp. on ia64) link data and code symbols differently,
  3402. +# so use this general approach.
  3403. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3404. +
  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. +
  3409. +# Handle CRLF in mingw tool chain
  3410. +opt_cr=
  3411. +case $build_os in
  3412. +mingw*)
  3413. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3414. + ;;
  3415. +esac
  3416. +
  3417. +# Try without a prefix underscore, then with it.
  3418. +for ac_symprfx in "" "_"; do
  3419. +
  3420. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3421. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3422. +
  3423. + # Write the raw and C identifiers.
  3424. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3425. + # Fake it for dumpbin and say T for any non-static function
  3426. + # and D for any global variable.
  3427. + # Also find C++ and __fastcall symbols from MSVC++,
  3428. + # which start with @ or ?.
  3429. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3430. +" {last_section=section; section=\$ 3};"\
  3431. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3432. +" \$ 0!~/External *\|/{next};"\
  3433. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3434. +" {if(hide[section]) next};"\
  3435. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3436. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3437. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3438. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3439. +" ' prfx=^$ac_symprfx]"
  3440. + else
  3441. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3442. + fi
  3443. +
  3444. + # Check to see that the pipe works correctly.
  3445. + pipe_works=no
  3446. +
  3447. + rm -f conftest*
  3448. + cat > conftest.$ac_ext <<_LT_EOF
  3449. +#ifdef __cplusplus
  3450. +extern "C" {
  3451. +#endif
  3452. +char nm_test_var;
  3453. +void nm_test_func(void);
  3454. +void nm_test_func(void){}
  3455. +#ifdef __cplusplus
  3456. +}
  3457. +#endif
  3458. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3459. +_LT_EOF
  3460. +
  3461. + if AC_TRY_EVAL(ac_compile); then
  3462. + # Now try to grab the symbols.
  3463. + nlist=conftest.nm
  3464. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3465. + # Try sorting and uniquifying the output.
  3466. + if sort "$nlist" | uniq > "$nlist"T; then
  3467. + mv -f "$nlist"T "$nlist"
  3468. + else
  3469. + rm -f "$nlist"T
  3470. + fi
  3471. +
  3472. + # Make sure that we snagged all the symbols we need.
  3473. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3474. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3475. + cat <<_LT_EOF > conftest.$ac_ext
  3476. +#ifdef __cplusplus
  3477. +extern "C" {
  3478. +#endif
  3479. +
  3480. +_LT_EOF
  3481. + # Now generate the symbol file.
  3482. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3483. +
  3484. + cat <<_LT_EOF >> conftest.$ac_ext
  3485. +
  3486. +/* The mapping between symbol names and symbols. */
  3487. +const struct {
  3488. + const char *name;
  3489. + void *address;
  3490. +}
  3491. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3492. +{
  3493. + { "@PROGRAM@", (void *) 0 },
  3494. +_LT_EOF
  3495. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3496. + cat <<\_LT_EOF >> conftest.$ac_ext
  3497. + {0, (void *) 0}
  3498. +};
  3499. +
  3500. +/* This works around a problem in FreeBSD linker */
  3501. +#ifdef FREEBSD_WORKAROUND
  3502. +static const void *lt_preloaded_setup() {
  3503. + return lt__PROGRAM__LTX_preloaded_symbols;
  3504. +}
  3505. +#endif
  3506. +
  3507. +#ifdef __cplusplus
  3508. +}
  3509. +#endif
  3510. +_LT_EOF
  3511. + # Now try linking the two files.
  3512. + mv conftest.$ac_objext conftstm.$ac_objext
  3513. + lt_save_LIBS="$LIBS"
  3514. + lt_save_CFLAGS="$CFLAGS"
  3515. + LIBS="conftstm.$ac_objext"
  3516. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3517. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3518. + pipe_works=yes
  3519. + fi
  3520. + LIBS="$lt_save_LIBS"
  3521. + CFLAGS="$lt_save_CFLAGS"
  3522. + else
  3523. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3524. + fi
  3525. + else
  3526. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3527. + fi
  3528. + else
  3529. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3530. + fi
  3531. + else
  3532. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3533. + cat conftest.$ac_ext >&5
  3534. + fi
  3535. + rm -rf conftest* conftst*
  3536. +
  3537. + # Do not use the global_symbol_pipe unless it works.
  3538. + if test "$pipe_works" = yes; then
  3539. + break
  3540. + else
  3541. + lt_cv_sys_global_symbol_pipe=
  3542. + fi
  3543. +done
  3544. +])
  3545. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3546. + lt_cv_sys_global_symbol_to_cdecl=
  3547. +fi
  3548. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3549. + AC_MSG_RESULT(failed)
  3550. +else
  3551. + AC_MSG_RESULT(ok)
  3552. +fi
  3553. +
  3554. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3555. + [Take the output of nm and produce a listing of raw symbols and C names])
  3556. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3557. + [Transform the output of nm in a proper C declaration])
  3558. +_LT_DECL([global_symbol_to_c_name_address],
  3559. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3560. + [Transform the output of nm in a C name address pair])
  3561. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3562. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3563. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3564. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3565. +
  3566. +
  3567. +# _LT_COMPILER_PIC([TAGNAME])
  3568. +# ---------------------------
  3569. +m4_defun([_LT_COMPILER_PIC],
  3570. +[m4_require([_LT_TAG_COMPILER])dnl
  3571. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3572. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3573. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3574. +
  3575. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3576. +m4_if([$1], [CXX], [
  3577. + # C++ specific cases for pic, static, wl, etc.
  3578. + if test "$GXX" = yes; then
  3579. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3580. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3581. +
  3582. + case $host_os in
  3583. + aix*)
  3584. + # All AIX code is PIC.
  3585. + if test "$host_cpu" = ia64; then
  3586. + # AIX 5 now supports IA64 processor
  3587. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3588. + fi
  3589. + ;;
  3590. +
  3591. + amigaos*)
  3592. + case $host_cpu in
  3593. + powerpc)
  3594. + # see comment about AmigaOS4 .so support
  3595. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3596. + ;;
  3597. + m68k)
  3598. + # FIXME: we need at least 68020 code to build shared libraries, but
  3599. + # adding the `-m68020' flag to GCC prevents building anything better,
  3600. + # like `-m68040'.
  3601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3602. + ;;
  3603. + esac
  3604. + ;;
  3605. +
  3606. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3607. + # PIC is the default for these OSes.
  3608. + ;;
  3609. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  3610. + # This hack is so that the source file can tell whether it is being
  3611. + # built for inclusion in a dll (and should export symbols for example).
  3612. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3613. + # (--disable-auto-import) libraries
  3614. + m4_if([$1], [GCJ], [],
  3615. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3616. + ;;
  3617. + darwin* | rhapsody*)
  3618. + # PIC is the default on this platform
  3619. + # Common symbols not allowed in MH_DYLIB files
  3620. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3621. + ;;
  3622. + *djgpp*)
  3623. + # DJGPP does not support shared libraries at all
  3624. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3625. + ;;
  3626. + interix[[3-9]]*)
  3627. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3628. + # Instead, we relocate shared libraries at runtime.
  3629. + ;;
  3630. + sysv4*MP*)
  3631. + if test -d /usr/nec; then
  3632. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3633. + fi
  3634. + ;;
  3635. + hpux*)
  3636. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3637. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3638. + # sets the default TLS model and affects inlining.
  3639. + case $host_cpu in
  3640. + hppa*64*)
  3641. + ;;
  3642. + *)
  3643. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3644. + ;;
  3645. + esac
  3646. + ;;
  3647. + *qnx* | *nto*)
  3648. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3649. + # it will coredump.
  3650. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3651. + ;;
  3652. + *)
  3653. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3654. + ;;
  3655. + esac
  3656. + else
  3657. + case $host_os in
  3658. + aix[[4-9]]*)
  3659. + # All AIX code is PIC.
  3660. + if test "$host_cpu" = ia64; then
  3661. + # AIX 5 now supports IA64 processor
  3662. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3663. + else
  3664. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3665. + fi
  3666. + ;;
  3667. + chorus*)
  3668. + case $cc_basename in
  3669. + cxch68*)
  3670. + # Green Hills C++ Compiler
  3671. + # _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"
  3672. + ;;
  3673. + esac
  3674. + ;;
  3675. + dgux*)
  3676. + case $cc_basename in
  3677. + ec++*)
  3678. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3679. + ;;
  3680. + ghcx*)
  3681. + # Green Hills C++ Compiler
  3682. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3683. + ;;
  3684. + *)
  3685. + ;;
  3686. + esac
  3687. + ;;
  3688. + freebsd* | dragonfly*)
  3689. + # FreeBSD uses GNU C++
  3690. + ;;
  3691. + hpux9* | hpux10* | hpux11*)
  3692. + case $cc_basename in
  3693. + CC*)
  3694. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3695. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3696. + if test "$host_cpu" != ia64; then
  3697. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3698. + fi
  3699. + ;;
  3700. + aCC*)
  3701. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3702. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3703. + case $host_cpu in
  3704. + hppa*64*|ia64*)
  3705. + # +Z the default
  3706. + ;;
  3707. + *)
  3708. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3709. + ;;
  3710. + esac
  3711. + ;;
  3712. + *)
  3713. + ;;
  3714. + esac
  3715. + ;;
  3716. + interix*)
  3717. + # This is c89, which is MS Visual C++ (no shared libs)
  3718. + # Anyone wants to do a port?
  3719. + ;;
  3720. + irix5* | irix6* | nonstopux*)
  3721. + case $cc_basename in
  3722. + CC*)
  3723. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3724. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3725. + # CC pic flag -KPIC is the default.
  3726. + ;;
  3727. + *)
  3728. + ;;
  3729. + esac
  3730. + ;;
  3731. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3732. + case $cc_basename in
  3733. + KCC*)
  3734. + # KAI C++ Compiler
  3735. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3736. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3737. + ;;
  3738. + ecpc* )
  3739. + # old Intel C++ for x86_64 which still supported -KPIC.
  3740. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3741. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3742. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3743. + ;;
  3744. + icpc* )
  3745. + # Intel C++, used to be incompatible with GCC.
  3746. + # ICC 10 doesn't accept -KPIC any more.
  3747. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3748. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3749. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3750. + ;;
  3751. + pgCC* | pgcpp*)
  3752. + # Portland Group C++ compiler
  3753. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3754. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3755. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3756. + ;;
  3757. + cxx*)
  3758. + # Compaq C++
  3759. + # Make sure the PIC flag is empty. It appears that all Alpha
  3760. + # Linux and Compaq Tru64 Unix objects are PIC.
  3761. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3762. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3763. + ;;
  3764. + xlc* | xlC*)
  3765. + # IBM XL 8.0 on PPC
  3766. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3767. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3768. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3769. + ;;
  3770. + *)
  3771. + case `$CC -V 2>&1 | sed 5q` in
  3772. + *Sun\ C*)
  3773. + # Sun C++ 5.9
  3774. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3775. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3776. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3777. + ;;
  3778. + esac
  3779. + ;;
  3780. + esac
  3781. + ;;
  3782. + lynxos*)
  3783. + ;;
  3784. + m88k*)
  3785. + ;;
  3786. + mvs*)
  3787. + case $cc_basename in
  3788. + cxx*)
  3789. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3790. + ;;
  3791. + *)
  3792. + ;;
  3793. + esac
  3794. + ;;
  3795. + netbsd* | netbsdelf*-gnu)
  3796. + ;;
  3797. + *qnx* | *nto*)
  3798. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3799. + # it will coredump.
  3800. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3801. + ;;
  3802. + osf3* | osf4* | osf5*)
  3803. + case $cc_basename in
  3804. + KCC*)
  3805. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3806. + ;;
  3807. + RCC*)
  3808. + # Rational C++ 2.4.1
  3809. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3810. + ;;
  3811. + cxx*)
  3812. + # Digital/Compaq C++
  3813. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3814. + # Make sure the PIC flag is empty. It appears that all Alpha
  3815. + # Linux and Compaq Tru64 Unix objects are PIC.
  3816. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3817. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3818. + ;;
  3819. + *)
  3820. + ;;
  3821. + esac
  3822. + ;;
  3823. + psos*)
  3824. + ;;
  3825. + solaris*)
  3826. + case $cc_basename in
  3827. + CC*)
  3828. + # Sun C++ 4.2, 5.x and Centerline C++
  3829. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3830. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3831. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3832. + ;;
  3833. + gcx*)
  3834. + # Green Hills C++ Compiler
  3835. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3836. + ;;
  3837. + *)
  3838. + ;;
  3839. + esac
  3840. + ;;
  3841. + sunos4*)
  3842. + case $cc_basename in
  3843. + CC*)
  3844. + # Sun C++ 4.x
  3845. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3846. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3847. + ;;
  3848. + lcc*)
  3849. + # Lucid
  3850. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3851. + ;;
  3852. + *)
  3853. + ;;
  3854. + esac
  3855. + ;;
  3856. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3857. + case $cc_basename in
  3858. + CC*)
  3859. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3860. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3861. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3862. + ;;
  3863. + esac
  3864. + ;;
  3865. + tandem*)
  3866. + case $cc_basename in
  3867. + NCC*)
  3868. + # NonStop-UX NCC 3.20
  3869. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3870. + ;;
  3871. + *)
  3872. + ;;
  3873. + esac
  3874. + ;;
  3875. + vxworks*)
  3876. + ;;
  3877. + *)
  3878. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3879. + ;;
  3880. + esac
  3881. + fi
  3882. +],
  3883. +[
  3884. + if test "$GCC" = yes; then
  3885. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3886. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3887. +
  3888. + case $host_os in
  3889. + aix*)
  3890. + # All AIX code is PIC.
  3891. + if test "$host_cpu" = ia64; then
  3892. + # AIX 5 now supports IA64 processor
  3893. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3894. + fi
  3895. + ;;
  3896. +
  3897. + amigaos*)
  3898. + case $host_cpu in
  3899. + powerpc)
  3900. + # see comment about AmigaOS4 .so support
  3901. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3902. + ;;
  3903. + m68k)
  3904. + # FIXME: we need at least 68020 code to build shared libraries, but
  3905. + # adding the `-m68020' flag to GCC prevents building anything better,
  3906. + # like `-m68040'.
  3907. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3908. + ;;
  3909. + esac
  3910. + ;;
  3911. +
  3912. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3913. + # PIC is the default for these OSes.
  3914. + ;;
  3915. +
  3916. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  3917. + # This hack is so that the source file can tell whether it is being
  3918. + # built for inclusion in a dll (and should export symbols for example).
  3919. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3920. + # (--disable-auto-import) libraries
  3921. + m4_if([$1], [GCJ], [],
  3922. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3923. + ;;
  3924. +
  3925. + darwin* | rhapsody*)
  3926. + # PIC is the default on this platform
  3927. + # Common symbols not allowed in MH_DYLIB files
  3928. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3929. + ;;
  3930. +
  3931. + hpux*)
  3932. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3933. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3934. + # sets the default TLS model and affects inlining.
  3935. + case $host_cpu in
  3936. + hppa*64*)
  3937. + # +Z the default
  3938. + ;;
  3939. + *)
  3940. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3941. + ;;
  3942. + esac
  3943. + ;;
  3944. +
  3945. + interix[[3-9]]*)
  3946. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3947. + # Instead, we relocate shared libraries at runtime.
  3948. + ;;
  3949. +
  3950. + msdosdjgpp*)
  3951. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  3952. + # on systems that don't support them.
  3953. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3954. + enable_shared=no
  3955. + ;;
  3956. +
  3957. + *nto* | *qnx*)
  3958. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3959. + # it will coredump.
  3960. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3961. + ;;
  3962. +
  3963. + sysv4*MP*)
  3964. + if test -d /usr/nec; then
  3965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3966. + fi
  3967. + ;;
  3968. +
  3969. + *)
  3970. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3971. + ;;
  3972. + esac
  3973. + else
  3974. + # PORTME Check for flag to pass linker flags through the system compiler.
  3975. + case $host_os in
  3976. + aix*)
  3977. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3978. + if test "$host_cpu" = ia64; then
  3979. + # AIX 5 now supports IA64 processor
  3980. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3981. + else
  3982. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3983. + fi
  3984. + ;;
  3985. +
  3986. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  3987. + # This hack is so that the source file can tell whether it is being
  3988. + # built for inclusion in a dll (and should export symbols for example).
  3989. + m4_if([$1], [GCJ], [],
  3990. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3991. + ;;
  3992. +
  3993. + hpux9* | hpux10* | hpux11*)
  3994. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3995. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3996. + # not for PA HP-UX.
  3997. + case $host_cpu in
  3998. + hppa*64*|ia64*)
  3999. + # +Z the default
  4000. + ;;
  4001. + *)
  4002. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4003. + ;;
  4004. + esac
  4005. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4006. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4007. + ;;
  4008. +
  4009. + irix5* | irix6* | nonstopux*)
  4010. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4011. + # PIC (with -KPIC) is the default.
  4012. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4013. + ;;
  4014. +
  4015. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4016. + case $cc_basename in
  4017. + # old Intel for x86_64 which still supported -KPIC.
  4018. + ecc*)
  4019. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4020. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4021. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4022. + ;;
  4023. + # icc used to be incompatible with GCC.
  4024. + # ICC 10 doesn't accept -KPIC any more.
  4025. + icc* | ifort*)
  4026. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4027. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4028. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4029. + ;;
  4030. + # Lahey Fortran 8.1.
  4031. + lf95*)
  4032. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4033. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4034. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4035. + ;;
  4036. + pgcc* | pgf77* | pgf90* | pgf95*)
  4037. + # Portland Group compilers (*not* the Pentium gcc compiler,
  4038. + # which looks to be a dead project)
  4039. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4040. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4041. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4042. + ;;
  4043. + ccc*)
  4044. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4045. + # All Alpha code is PIC.
  4046. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4047. + ;;
  4048. + xl*)
  4049. + # IBM XL C 8.0/Fortran 10.1 on PPC
  4050. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4051. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4052. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4053. + ;;
  4054. + *)
  4055. + case `$CC -V 2>&1 | sed 5q` in
  4056. + *Sun\ C*)
  4057. + # Sun C 5.9
  4058. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4059. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4060. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4061. + ;;
  4062. + *Sun\ F*)
  4063. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4065. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4066. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4067. + ;;
  4068. + esac
  4069. + ;;
  4070. + esac
  4071. + ;;
  4072. +
  4073. + newsos6)
  4074. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4075. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4076. + ;;
  4077. +
  4078. + *nto* | *qnx*)
  4079. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4080. + # it will coredump.
  4081. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4082. + ;;
  4083. +
  4084. + osf3* | osf4* | osf5*)
  4085. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4086. + # All OSF/1 code is PIC.
  4087. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4088. + ;;
  4089. +
  4090. + rdos*)
  4091. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4092. + ;;
  4093. +
  4094. + solaris*)
  4095. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4096. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4097. + case $cc_basename in
  4098. + f77* | f90* | f95*)
  4099. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4100. + *)
  4101. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4102. + esac
  4103. + ;;
  4104. +
  4105. + sunos4*)
  4106. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4107. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4108. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4109. + ;;
  4110. +
  4111. + sysv4 | sysv4.2uw2* | sysv4.3*)
  4112. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4113. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4114. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4115. + ;;
  4116. +
  4117. + sysv4*MP*)
  4118. + if test -d /usr/nec ;then
  4119. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4120. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4121. + fi
  4122. + ;;
  4123. +
  4124. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4125. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4126. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4127. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4128. + ;;
  4129. +
  4130. + unicos*)
  4131. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4132. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4133. + ;;
  4134. +
  4135. + uts4*)
  4136. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4137. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4138. + ;;
  4139. +
  4140. + *)
  4141. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4142. + ;;
  4143. + esac
  4144. + fi
  4145. +])
  4146. +case $host_os in
  4147. + # For platforms which do not support PIC, -DPIC is meaningless:
  4148. + *djgpp*)
  4149. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4150. + ;;
  4151. + *)
  4152. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4153. + ;;
  4154. +esac
  4155. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4156. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4157. + [How to pass a linker flag through the compiler])
  4158. +
  4159. +#
  4160. +# Check to make sure the PIC flag actually works.
  4161. +#
  4162. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4163. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4164. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4165. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4166. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4167. + "" | " "*) ;;
  4168. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4169. + esac],
  4170. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4171. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4172. +fi
  4173. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4174. + [Additional compiler flags for building library objects])
  4175. +
  4176. +#
  4177. +# Check to make sure the static flag actually works.
  4178. +#
  4179. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4180. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4181. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4182. + $lt_tmp_static_flag,
  4183. + [],
  4184. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4185. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4186. + [Compiler flag to prevent dynamic linking])
  4187. +])# _LT_COMPILER_PIC
  4188. +
  4189. +
  4190. +# _LT_LINKER_SHLIBS([TAGNAME])
  4191. +# ----------------------------
  4192. +# See if the linker supports building shared libraries.
  4193. +m4_defun([_LT_LINKER_SHLIBS],
  4194. +[AC_REQUIRE([LT_PATH_LD])dnl
  4195. +AC_REQUIRE([LT_PATH_NM])dnl
  4196. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4197. +m4_require([_LT_DECL_EGREP])dnl
  4198. +m4_require([_LT_DECL_SED])dnl
  4199. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4200. +m4_require([_LT_TAG_COMPILER])dnl
  4201. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4202. +m4_if([$1], [CXX], [
  4203. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4204. + case $host_os in
  4205. + aix[[4-9]]*)
  4206. + # If we're using GNU nm, then we don't want the "-C" option.
  4207. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4208. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4209. + _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'
  4210. + else
  4211. + _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'
  4212. + fi
  4213. + ;;
  4214. + pw32*)
  4215. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4216. + ;;
  4217. + cygwin* | mingw* | cegcc*)
  4218. + _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'
  4219. + ;;
  4220. + linux* | k*bsd*-gnu)
  4221. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4222. + ;;
  4223. + *)
  4224. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4225. + ;;
  4226. + esac
  4227. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4228. +], [
  4229. + runpath_var=
  4230. + _LT_TAGVAR(allow_undefined_flag, $1)=
  4231. + _LT_TAGVAR(always_export_symbols, $1)=no
  4232. + _LT_TAGVAR(archive_cmds, $1)=
  4233. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  4234. + _LT_TAGVAR(compiler_needs_object, $1)=no
  4235. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4236. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4237. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4238. + _LT_TAGVAR(hardcode_automatic, $1)=no
  4239. + _LT_TAGVAR(hardcode_direct, $1)=no
  4240. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4241. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4242. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4243. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4244. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  4245. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4246. + _LT_TAGVAR(inherit_rpath, $1)=no
  4247. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4248. + _LT_TAGVAR(module_cmds, $1)=
  4249. + _LT_TAGVAR(module_expsym_cmds, $1)=
  4250. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4251. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4252. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4253. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4254. + # include_expsyms should be a list of space-separated symbols to be *always*
  4255. + # included in the symbol list
  4256. + _LT_TAGVAR(include_expsyms, $1)=
  4257. + # exclude_expsyms can be an extended regexp of symbols to exclude
  4258. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4259. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4260. + # as well as any symbol that contains `d'.
  4261. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4262. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4263. + # platforms (ab)use it in PIC code, but their linkers get confused if
  4264. + # the symbol is explicitly referenced. Since portable code cannot
  4265. + # rely on this symbol name, it's probably fine to never include it in
  4266. + # preloaded symbol tables.
  4267. + # Exclude shared library initialization/finalization symbols.
  4268. +dnl Note also adjust exclude_expsyms for C++ above.
  4269. + extract_expsyms_cmds=
  4270. +
  4271. + case $host_os in
  4272. + cygwin* | mingw* | pw32* | cegcc*)
  4273. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4274. + # When not using gcc, we currently assume that we are using
  4275. + # Microsoft Visual C++.
  4276. + if test "$GCC" != yes; then
  4277. + with_gnu_ld=no
  4278. + fi
  4279. + ;;
  4280. + interix*)
  4281. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  4282. + with_gnu_ld=yes
  4283. + ;;
  4284. + openbsd*)
  4285. + with_gnu_ld=no
  4286. + ;;
  4287. + linux* | k*bsd*-gnu)
  4288. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4289. + ;;
  4290. + esac
  4291. +
  4292. + _LT_TAGVAR(ld_shlibs, $1)=yes
  4293. + if test "$with_gnu_ld" = yes; then
  4294. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4295. + wlarc='${wl}'
  4296. +
  4297. + # Set some defaults for GNU ld with shared library support. These
  4298. + # are reset later if shared libraries are not supported. Putting them
  4299. + # here allows them to be overridden if necessary.
  4300. + runpath_var=LD_RUN_PATH
  4301. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4302. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4303. + # ancient GNU ld didn't support --whole-archive et. al.
  4304. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4305. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4306. + else
  4307. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4308. + fi
  4309. + supports_anon_versioning=no
  4310. + case `$LD -v 2>&1` in
  4311. + *GNU\ gold*) supports_anon_versioning=yes ;;
  4312. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4313. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4314. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4315. + *\ 2.11.*) ;; # other 2.11 versions
  4316. + *) supports_anon_versioning=yes ;;
  4317. + esac
  4318. +
  4319. + # See if GNU ld supports shared libraries.
  4320. + case $host_os in
  4321. + aix[[3-9]]*)
  4322. + # On AIX/PPC, the GNU linker is very broken
  4323. + if test "$host_cpu" != ia64; then
  4324. + _LT_TAGVAR(ld_shlibs, $1)=no
  4325. + cat <<_LT_EOF 1>&2
  4326. +
  4327. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4328. +*** to be unable to reliably create shared libraries on AIX.
  4329. +*** Therefore, libtool is disabling shared libraries support. If you
  4330. +*** really care for shared libraries, you may want to modify your PATH
  4331. +*** so that a non-GNU linker is found, and then restart.
  4332. +
  4333. +_LT_EOF
  4334. + fi
  4335. + ;;
  4336. +
  4337. + amigaos*)
  4338. + case $host_cpu in
  4339. + powerpc)
  4340. + # see comment about AmigaOS4 .so support
  4341. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4342. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4343. + ;;
  4344. + m68k)
  4345. + _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)'
  4346. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4347. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4348. + ;;
  4349. + esac
  4350. + ;;
  4351. +
  4352. + beos*)
  4353. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4354. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4355. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4356. + # support --undefined. This deserves some investigation. FIXME
  4357. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4358. + else
  4359. + _LT_TAGVAR(ld_shlibs, $1)=no
  4360. + fi
  4361. + ;;
  4362. +
  4363. + cygwin* | mingw* | pw32* | cegcc*)
  4364. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4365. + # as there is no search path for DLLs.
  4366. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4367. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4368. + _LT_TAGVAR(always_export_symbols, $1)=no
  4369. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4370. + _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'
  4371. +
  4372. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4373. + _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'
  4374. + # If the export-symbols file already is a .def file (1st line
  4375. + # is EXPORTS), use it as is; otherwise, prepend...
  4376. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4377. + cp $export_symbols $output_objdir/$soname.def;
  4378. + else
  4379. + echo EXPORTS > $output_objdir/$soname.def;
  4380. + cat $export_symbols >> $output_objdir/$soname.def;
  4381. + fi~
  4382. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4383. + else
  4384. + _LT_TAGVAR(ld_shlibs, $1)=no
  4385. + fi
  4386. + ;;
  4387. +
  4388. + interix[[3-9]]*)
  4389. + _LT_TAGVAR(hardcode_direct, $1)=no
  4390. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4391. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4392. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4393. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4394. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  4395. + # default) and relocated if they conflict, which is a slow very memory
  4396. + # consuming and fragmenting process. To avoid this, we pick a random,
  4397. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4398. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4399. + _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'
  4400. + _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'
  4401. + ;;
  4402. +
  4403. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4404. + tmp_diet=no
  4405. + if test "$host_os" = linux-dietlibc; then
  4406. + case $cc_basename in
  4407. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4408. + esac
  4409. + fi
  4410. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4411. + && test "$tmp_diet" = no
  4412. + then
  4413. + tmp_addflag=
  4414. + tmp_sharedflag='-shared'
  4415. + case $cc_basename,$host_cpu in
  4416. + pgcc*) # Portland Group C compiler
  4417. + _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'
  4418. + tmp_addflag=' $pic_flag'
  4419. + ;;
  4420. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  4421. + _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'
  4422. + tmp_addflag=' $pic_flag -Mnomain' ;;
  4423. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4424. + tmp_addflag=' -i_dynamic' ;;
  4425. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4426. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  4427. + ifc* | ifort*) # Intel Fortran compiler
  4428. + tmp_addflag=' -nofor_main' ;;
  4429. + lf95*) # Lahey Fortran 8.1
  4430. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4431. + tmp_sharedflag='--shared' ;;
  4432. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4433. + tmp_sharedflag='-qmkshrobj'
  4434. + tmp_addflag= ;;
  4435. + esac
  4436. + case `$CC -V 2>&1 | sed 5q` in
  4437. + *Sun\ C*) # Sun C 5.9
  4438. + _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'
  4439. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  4440. + tmp_sharedflag='-G' ;;
  4441. + *Sun\ F*) # Sun Fortran 8.3
  4442. + tmp_sharedflag='-G' ;;
  4443. + esac
  4444. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4445. +
  4446. + if test "x$supports_anon_versioning" = xyes; then
  4447. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4448. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4449. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4450. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4451. + fi
  4452. +
  4453. + case $cc_basename in
  4454. + xlf*)
  4455. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4456. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4457. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4458. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4459. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  4460. + if test "x$supports_anon_versioning" = xyes; then
  4461. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4462. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4463. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4464. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4465. + fi
  4466. + ;;
  4467. + esac
  4468. + else
  4469. + _LT_TAGVAR(ld_shlibs, $1)=no
  4470. + fi
  4471. + ;;
  4472. +
  4473. + netbsd* | netbsdelf*-gnu)
  4474. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4475. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4476. + wlarc=
  4477. + else
  4478. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4479. + _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'
  4480. + fi
  4481. + ;;
  4482. +
  4483. + solaris*)
  4484. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4485. + _LT_TAGVAR(ld_shlibs, $1)=no
  4486. + cat <<_LT_EOF 1>&2
  4487. +
  4488. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4489. +*** create shared libraries on Solaris systems. Therefore, libtool
  4490. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4491. +*** binutils to release 2.9.1 or newer. Another option is to modify
  4492. +*** your PATH or compiler configuration so that the native linker is
  4493. +*** used, and then restart.
  4494. +
  4495. +_LT_EOF
  4496. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4497. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4498. + _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'
  4499. + else
  4500. + _LT_TAGVAR(ld_shlibs, $1)=no
  4501. + fi
  4502. + ;;
  4503. +
  4504. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4505. + case `$LD -v 2>&1` in
  4506. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4507. + _LT_TAGVAR(ld_shlibs, $1)=no
  4508. + cat <<_LT_EOF 1>&2
  4509. +
  4510. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4511. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  4512. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4513. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4514. +*** your PATH or compiler configuration so that the native linker is
  4515. +*** used, and then restart.
  4516. +
  4517. +_LT_EOF
  4518. + ;;
  4519. + *)
  4520. + # For security reasons, it is highly recommended that you always
  4521. + # use absolute paths for naming shared libraries, and exclude the
  4522. + # DT_RUNPATH tag from executables and libraries. But doing so
  4523. + # requires that you compile everything twice, which is a pain.
  4524. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4525. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4526. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4527. + _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'
  4528. + else
  4529. + _LT_TAGVAR(ld_shlibs, $1)=no
  4530. + fi
  4531. + ;;
  4532. + esac
  4533. + ;;
  4534. +
  4535. + sunos4*)
  4536. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4537. + wlarc=
  4538. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4539. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4540. + ;;
  4541. +
  4542. + *)
  4543. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4544. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4545. + _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'
  4546. + else
  4547. + _LT_TAGVAR(ld_shlibs, $1)=no
  4548. + fi
  4549. + ;;
  4550. + esac
  4551. +
  4552. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4553. + runpath_var=
  4554. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4555. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4556. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4557. + fi
  4558. + else
  4559. + # PORTME fill in a description of your system's linker (not GNU ld)
  4560. + case $host_os in
  4561. + aix3*)
  4562. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4563. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4564. + _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'
  4565. + # Note: this linker hardcodes the directories in LIBPATH if there
  4566. + # are no directories specified by -L.
  4567. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4568. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4569. + # Neither direct hardcoding nor static linking is supported with a
  4570. + # broken collect2.
  4571. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4572. + fi
  4573. + ;;
  4574. +
  4575. + aix[[4-9]]*)
  4576. + if test "$host_cpu" = ia64; then
  4577. + # On IA64, the linker does run time linking by default, so we don't
  4578. + # have to do anything special.
  4579. + aix_use_runtimelinking=no
  4580. + exp_sym_flag='-Bexport'
  4581. + no_entry_flag=""
  4582. + else
  4583. + # If we're using GNU nm, then we don't want the "-C" option.
  4584. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4585. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4586. + _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'
  4587. + else
  4588. + _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'
  4589. + fi
  4590. + aix_use_runtimelinking=no
  4591. +
  4592. + # Test if we are trying to use run time linking or normal
  4593. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4594. + # need to do runtime linking.
  4595. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4596. + for ld_flag in $LDFLAGS; do
  4597. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4598. + aix_use_runtimelinking=yes
  4599. + break
  4600. + fi
  4601. + done
  4602. + ;;
  4603. + esac
  4604. +
  4605. + exp_sym_flag='-bexport'
  4606. + no_entry_flag='-bnoentry'
  4607. + fi
  4608. +
  4609. + # When large executables or shared objects are built, AIX ld can
  4610. + # have problems creating the table of contents. If linking a library
  4611. + # or program results in "error TOC overflow" add -mminimal-toc to
  4612. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4613. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4614. +
  4615. + _LT_TAGVAR(archive_cmds, $1)=''
  4616. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4617. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4618. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4619. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  4620. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4621. +
  4622. + if test "$GCC" = yes; then
  4623. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4624. + # We only want to do this on AIX 4.2 and lower, the check
  4625. + # below for broken collect2 doesn't work under 4.3+
  4626. + collect2name=`${CC} -print-prog-name=collect2`
  4627. + if test -f "$collect2name" &&
  4628. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4629. + then
  4630. + # We have reworked collect2
  4631. + :
  4632. + else
  4633. + # We have old collect2
  4634. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4635. + # It fails to find uninstalled libraries when the uninstalled
  4636. + # path is not listed in the libpath. Setting hardcode_minus_L
  4637. + # to unsupported forces relinking
  4638. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4639. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4640. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4641. + fi
  4642. + ;;
  4643. + esac
  4644. + shared_flag='-shared'
  4645. + if test "$aix_use_runtimelinking" = yes; then
  4646. + shared_flag="$shared_flag "'${wl}-G'
  4647. + fi
  4648. + _LT_TAGVAR(link_all_deplibs, $1)=no
  4649. + else
  4650. + # not using gcc
  4651. + if test "$host_cpu" = ia64; then
  4652. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4653. + # chokes on -Wl,-G. The following line is correct:
  4654. + shared_flag='-G'
  4655. + else
  4656. + if test "$aix_use_runtimelinking" = yes; then
  4657. + shared_flag='${wl}-G'
  4658. + else
  4659. + shared_flag='${wl}-bM:SRE'
  4660. + fi
  4661. + fi
  4662. + fi
  4663. +
  4664. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4665. + # It seems that -bexpall does not export symbols beginning with
  4666. + # underscore (_), so it is better to generate a list of symbols to export.
  4667. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4668. + if test "$aix_use_runtimelinking" = yes; then
  4669. + # Warning - without using the other runtime loading flags (-brtl),
  4670. + # -berok will link without error, but may produce a broken library.
  4671. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4672. + # Determine the default libpath from the value encoded in an
  4673. + # empty executable.
  4674. + _LT_SYS_MODULE_PATH_AIX
  4675. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4676. + _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"
  4677. + else
  4678. + if test "$host_cpu" = ia64; then
  4679. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4680. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4681. + _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"
  4682. + else
  4683. + # Determine the default libpath from the value encoded in an
  4684. + # empty executable.
  4685. + _LT_SYS_MODULE_PATH_AIX
  4686. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4687. + # Warning - without using the other run time loading flags,
  4688. + # -berok will link without error, but may produce a broken library.
  4689. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4690. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4691. + # Exported symbols can be pulled into shared objects from archives
  4692. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4693. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4694. + # This is similar to how AIX traditionally builds its shared libraries.
  4695. + _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'
  4696. + fi
  4697. + fi
  4698. + ;;
  4699. +
  4700. + amigaos*)
  4701. + case $host_cpu in
  4702. + powerpc)
  4703. + # see comment about AmigaOS4 .so support
  4704. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4705. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4706. + ;;
  4707. + m68k)
  4708. + _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)'
  4709. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4710. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4711. + ;;
  4712. + esac
  4713. + ;;
  4714. +
  4715. + bsdi[[45]]*)
  4716. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4717. + ;;
  4718. +
  4719. + cygwin* | mingw* | pw32* | cegcc*)
  4720. + # When not using gcc, we currently assume that we are using
  4721. + # Microsoft Visual C++.
  4722. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  4723. + # no search path for DLLs.
  4724. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4725. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4726. + # Tell ltmain to make .lib files, not .a files.
  4727. + libext=lib
  4728. + # Tell ltmain to make .dll files, not .so files.
  4729. + shrext_cmds=".dll"
  4730. + # FIXME: Setting linknames here is a bad hack.
  4731. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4732. + # The linker will automatically build a .lib file if we build a DLL.
  4733. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4734. + # FIXME: Should let the user specify the lib program.
  4735. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4736. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4737. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4738. + ;;
  4739. +
  4740. + darwin* | rhapsody*)
  4741. + _LT_DARWIN_LINKER_FEATURES($1)
  4742. + ;;
  4743. +
  4744. + dgux*)
  4745. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4746. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4747. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4748. + ;;
  4749. +
  4750. + freebsd1*)
  4751. + _LT_TAGVAR(ld_shlibs, $1)=no
  4752. + ;;
  4753. +
  4754. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4755. + # support. Future versions do this automatically, but an explicit c++rt0.o
  4756. + # does not break anything, and helps significantly (at the cost of a little
  4757. + # extra space).
  4758. + freebsd2.2*)
  4759. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4760. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4761. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4762. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4763. + ;;
  4764. +
  4765. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4766. + freebsd2*)
  4767. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4768. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4769. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4770. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4771. + ;;
  4772. +
  4773. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4774. + freebsd* | dragonfly*)
  4775. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4776. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4777. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4778. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4779. + ;;
  4780. +
  4781. + hpux9*)
  4782. + if test "$GCC" = yes; then
  4783. + _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'
  4784. + else
  4785. + _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'
  4786. + fi
  4787. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4788. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4789. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4790. +
  4791. + # hardcode_minus_L: Not really in the search PATH,
  4792. + # but as the default location of the library.
  4793. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4794. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4795. + ;;
  4796. +
  4797. + hpux10*)
  4798. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4799. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4800. + else
  4801. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4802. + fi
  4803. + if test "$with_gnu_ld" = no; then
  4804. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4805. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4806. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4807. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4808. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4809. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4810. + # hardcode_minus_L: Not really in the search PATH,
  4811. + # but as the default location of the library.
  4812. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4813. + fi
  4814. + ;;
  4815. +
  4816. + hpux11*)
  4817. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4818. + case $host_cpu in
  4819. + hppa*64*)
  4820. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4821. + ;;
  4822. + ia64*)
  4823. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4824. + ;;
  4825. + *)
  4826. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4827. + ;;
  4828. + esac
  4829. + else
  4830. + case $host_cpu in
  4831. + hppa*64*)
  4832. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4833. + ;;
  4834. + ia64*)
  4835. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4836. + ;;
  4837. + *)
  4838. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4839. + ;;
  4840. + esac
  4841. + fi
  4842. + if test "$with_gnu_ld" = no; then
  4843. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4844. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4845. +
  4846. + case $host_cpu in
  4847. + hppa*64*|ia64*)
  4848. + _LT_TAGVAR(hardcode_direct, $1)=no
  4849. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4850. + ;;
  4851. + *)
  4852. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4853. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4854. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4855. +
  4856. + # hardcode_minus_L: Not really in the search PATH,
  4857. + # but as the default location of the library.
  4858. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4859. + ;;
  4860. + esac
  4861. + fi
  4862. + ;;
  4863. +
  4864. + irix5* | irix6* | nonstopux*)
  4865. + if test "$GCC" = yes; then
  4866. + _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'
  4867. + # Try to use the -exported_symbol ld option, if it does not
  4868. + # work, assume that -exports_file does not work either and
  4869. + # implicitly export all symbols.
  4870. + save_LDFLAGS="$LDFLAGS"
  4871. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4872. + AC_LINK_IFELSE(int foo(void) {},
  4873. + _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'
  4874. + )
  4875. + LDFLAGS="$save_LDFLAGS"
  4876. + else
  4877. + _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'
  4878. + _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'
  4879. + fi
  4880. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4882. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4883. + _LT_TAGVAR(inherit_rpath, $1)=yes
  4884. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  4885. + ;;
  4886. +
  4887. + netbsd* | netbsdelf*-gnu)
  4888. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4889. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4890. + else
  4891. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4892. + fi
  4893. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4894. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4895. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4896. + ;;
  4897. +
  4898. + newsos6)
  4899. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4900. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4902. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4903. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4904. + ;;
  4905. +
  4906. + *nto* | *qnx*)
  4907. + ;;
  4908. +
  4909. + openbsd*)
  4910. + if test -f /usr/libexec/ld.so; then
  4911. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4912. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4913. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4914. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4915. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4916. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4917. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4918. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4919. + else
  4920. + case $host_os in
  4921. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4922. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4923. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4924. + ;;
  4925. + *)
  4926. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4927. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4928. + ;;
  4929. + esac
  4930. + fi
  4931. + else
  4932. + _LT_TAGVAR(ld_shlibs, $1)=no
  4933. + fi
  4934. + ;;
  4935. +
  4936. + os2*)
  4937. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4938. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4939. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4940. + _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'
  4941. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4942. + ;;
  4943. +
  4944. + osf3*)
  4945. + if test "$GCC" = yes; then
  4946. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4947. + _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'
  4948. + else
  4949. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4950. + _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'
  4951. + fi
  4952. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4953. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4954. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4955. + ;;
  4956. +
  4957. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  4958. + if test "$GCC" = yes; then
  4959. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4960. + _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'
  4961. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4962. + else
  4963. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4964. + _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'
  4965. + _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~
  4966. + $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'
  4967. +
  4968. + # Both c and cxx compiler support -rpath directly
  4969. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4970. + fi
  4971. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4972. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4973. + ;;
  4974. +
  4975. + solaris*)
  4976. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4977. + if test "$GCC" = yes; then
  4978. + wlarc='${wl}'
  4979. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4980. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4981. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4982. + else
  4983. + case `$CC -V 2>&1` in
  4984. + *"Compilers 5.0"*)
  4985. + wlarc=''
  4986. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4987. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4988. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4989. + ;;
  4990. + *)
  4991. + wlarc='${wl}'
  4992. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4993. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4994. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4995. + ;;
  4996. + esac
  4997. + fi
  4998. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4999. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5000. + case $host_os in
  5001. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5002. + *)
  5003. + # The compiler driver will combine and reorder linker options,
  5004. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  5005. + # but is careful enough not to reorder.
  5006. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5007. + if test "$GCC" = yes; then
  5008. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5009. + else
  5010. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5011. + fi
  5012. + ;;
  5013. + esac
  5014. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5015. + ;;
  5016. +
  5017. + sunos4*)
  5018. + if test "x$host_vendor" = xsequent; then
  5019. + # Use $CC to link under sequent, because it throws in some extra .o
  5020. + # files that make .init and .fini sections work.
  5021. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5022. + else
  5023. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5024. + fi
  5025. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5026. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5027. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5028. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5029. + ;;
  5030. +
  5031. + sysv4)
  5032. + case $host_vendor in
  5033. + sni)
  5034. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5035. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5036. + ;;
  5037. + siemens)
  5038. + ## LD is ld it makes a PLAMLIB
  5039. + ## CC just makes a GrossModule.
  5040. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5041. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5042. + _LT_TAGVAR(hardcode_direct, $1)=no
  5043. + ;;
  5044. + motorola)
  5045. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5046. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5047. + ;;
  5048. + esac
  5049. + runpath_var='LD_RUN_PATH'
  5050. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5051. + ;;
  5052. +
  5053. + sysv4.3*)
  5054. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5055. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5056. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5057. + ;;
  5058. +
  5059. + sysv4*MP*)
  5060. + if test -d /usr/nec; then
  5061. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5062. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5063. + runpath_var=LD_RUN_PATH
  5064. + hardcode_runpath_var=yes
  5065. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5066. + fi
  5067. + ;;
  5068. +
  5069. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5070. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5071. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5072. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5073. + runpath_var='LD_RUN_PATH'
  5074. +
  5075. + if test "$GCC" = yes; then
  5076. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5077. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5078. + else
  5079. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5080. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5081. + fi
  5082. + ;;
  5083. +
  5084. + sysv5* | sco3.2v5* | sco5v6*)
  5085. + # Note: We can NOT use -z defs as we might desire, because we do not
  5086. + # link with -lc, and that would cause any symbols used from libc to
  5087. + # always be unresolved, which means just about no library would
  5088. + # ever link correctly. If we're not using GNU ld we use -z text
  5089. + # though, which does catch some bad symbols but isn't as heavy-handed
  5090. + # as -z defs.
  5091. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5092. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5093. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5094. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5095. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5096. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5097. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5098. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5099. + runpath_var='LD_RUN_PATH'
  5100. +
  5101. + if test "$GCC" = yes; then
  5102. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5103. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5104. + else
  5105. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5106. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5107. + fi
  5108. + ;;
  5109. +
  5110. + uts4*)
  5111. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5112. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5113. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5114. + ;;
  5115. +
  5116. + *)
  5117. + _LT_TAGVAR(ld_shlibs, $1)=no
  5118. + ;;
  5119. + esac
  5120. +
  5121. + if test x$host_vendor = xsni; then
  5122. + case $host in
  5123. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5124. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5125. + ;;
  5126. + esac
  5127. + fi
  5128. + fi
  5129. +])
  5130. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5131. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5132. +
  5133. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5134. +
  5135. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5136. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5137. +_LT_DECL([], [extract_expsyms_cmds], [2],
  5138. + [The commands to extract the exported symbol list from a shared archive])
  5139. +
  5140. +#
  5141. +# Do we need to explicitly link libc?
  5142. +#
  5143. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5144. +x|xyes)
  5145. + # Assume -lc should be added
  5146. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5147. +
  5148. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  5149. + case $_LT_TAGVAR(archive_cmds, $1) in
  5150. + *'~'*)
  5151. + # FIXME: we may have to deal with multi-command sequences.
  5152. + ;;
  5153. + '$CC '*)
  5154. + # Test whether the compiler implicitly links with -lc since on some
  5155. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5156. + # to ld, don't add -lc before -lgcc.
  5157. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5158. + $RM conftest*
  5159. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5160. +
  5161. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5162. + soname=conftest
  5163. + lib=conftest
  5164. + libobjs=conftest.$ac_objext
  5165. + deplibs=
  5166. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5167. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5168. + compiler_flags=-v
  5169. + linker_flags=-v
  5170. + verstring=
  5171. + output_objdir=.
  5172. + libname=conftest
  5173. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5174. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5175. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5176. + then
  5177. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5178. + else
  5179. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5180. + fi
  5181. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5182. + else
  5183. + cat conftest.err 1>&5
  5184. + fi
  5185. + $RM conftest*
  5186. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  5187. + ;;
  5188. + esac
  5189. + fi
  5190. + ;;
  5191. +esac
  5192. +
  5193. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5194. + [Whether or not to add -lc for building shared libraries])
  5195. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5196. + [enable_shared_with_static_runtimes], [0],
  5197. + [Whether or not to disallow shared libs when runtime libs are static])
  5198. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5199. + [Compiler flag to allow reflexive dlopens])
  5200. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5201. + [Compiler flag to generate shared objects directly from archives])
  5202. +_LT_TAGDECL([], [compiler_needs_object], [1],
  5203. + [Whether the compiler copes with passing no objects directly])
  5204. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5205. + [Create an old-style archive from a shared archive])
  5206. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5207. + [Create a temporary old-style archive to link instead of a shared archive])
  5208. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5209. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  5210. +_LT_TAGDECL([], [module_cmds], [2],
  5211. + [Commands used to build a loadable module if different from building
  5212. + a shared archive.])
  5213. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  5214. +_LT_TAGDECL([], [with_gnu_ld], [1],
  5215. + [Whether we are building with GNU ld or not])
  5216. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  5217. + [Flag that allows shared libraries with undefined symbols to be built])
  5218. +_LT_TAGDECL([], [no_undefined_flag], [1],
  5219. + [Flag that enforces no undefined symbols])
  5220. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5221. + [Flag to hardcode $libdir into a binary during linking.
  5222. + This must work even if $libdir does not exist])
  5223. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5224. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  5225. + during linking. This must work even if $libdir does not exist]])
  5226. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5227. + [Whether we need a single "-rpath" flag with a separated argument])
  5228. +_LT_TAGDECL([], [hardcode_direct], [0],
  5229. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5230. + DIR into the resulting binary])
  5231. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5232. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5233. + DIR into the resulting binary and the resulting library dependency is
  5234. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5235. + library is relocated])
  5236. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  5237. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5238. + into the resulting binary])
  5239. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5240. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5241. + into the resulting binary])
  5242. +_LT_TAGDECL([], [hardcode_automatic], [0],
  5243. + [Set to "yes" if building a shared library automatically hardcodes DIR
  5244. + into the library and all subsequent libraries and executables linked
  5245. + against it])
  5246. +_LT_TAGDECL([], [inherit_rpath], [0],
  5247. + [Set to yes if linker adds runtime paths of dependent libraries
  5248. + to runtime path list])
  5249. +_LT_TAGDECL([], [link_all_deplibs], [0],
  5250. + [Whether libtool must link a program against all its dependency libraries])
  5251. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  5252. + [Fix the shell variable $srcfile for the compiler])
  5253. +_LT_TAGDECL([], [always_export_symbols], [0],
  5254. + [Set to "yes" if exported symbols are required])
  5255. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  5256. + [The commands to list exported symbols])
  5257. +_LT_TAGDECL([], [exclude_expsyms], [1],
  5258. + [Symbols that should not be listed in the preloaded symbols])
  5259. +_LT_TAGDECL([], [include_expsyms], [1],
  5260. + [Symbols that must always be exported])
  5261. +_LT_TAGDECL([], [prelink_cmds], [2],
  5262. + [Commands necessary for linking programs (against libraries) with templates])
  5263. +_LT_TAGDECL([], [file_list_spec], [1],
  5264. + [Specify filename containing input files])
  5265. +dnl FIXME: Not yet implemented
  5266. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5267. +dnl [Compiler flag to generate thread safe objects])
  5268. +])# _LT_LINKER_SHLIBS
  5269. +
  5270. +
  5271. +# _LT_LANG_C_CONFIG([TAG])
  5272. +# ------------------------
  5273. +# Ensure that the configuration variables for a C compiler are suitably
  5274. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5275. +# the compiler configuration to `libtool'.
  5276. +m4_defun([_LT_LANG_C_CONFIG],
  5277. +[m4_require([_LT_DECL_EGREP])dnl
  5278. +lt_save_CC="$CC"
  5279. +AC_LANG_PUSH(C)
  5280. +
  5281. +# Source file extension for C test sources.
  5282. +ac_ext=c
  5283. +
  5284. +# Object file extension for compiled C test sources.
  5285. +objext=o
  5286. +_LT_TAGVAR(objext, $1)=$objext
  5287. +
  5288. +# Code to be used in simple compile tests
  5289. +lt_simple_compile_test_code="int some_variable = 0;"
  5290. +
  5291. +# Code to be used in simple link tests
  5292. +lt_simple_link_test_code='int main(){return(0);}'
  5293. +
  5294. +_LT_TAG_COMPILER
  5295. +# Save the default compiler, since it gets overwritten when the other
  5296. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5297. +compiler_DEFAULT=$CC
  5298. +
  5299. +# save warnings/boilerplate of simple test code
  5300. +_LT_COMPILER_BOILERPLATE
  5301. +_LT_LINKER_BOILERPLATE
  5302. +
  5303. +if test -n "$compiler"; then
  5304. + _LT_COMPILER_NO_RTTI($1)
  5305. + _LT_COMPILER_PIC($1)
  5306. + _LT_COMPILER_C_O($1)
  5307. + _LT_COMPILER_FILE_LOCKS($1)
  5308. + _LT_LINKER_SHLIBS($1)
  5309. + _LT_SYS_DYNAMIC_LINKER($1)
  5310. + _LT_LINKER_HARDCODE_LIBPATH($1)
  5311. + LT_SYS_DLOPEN_SELF
  5312. + _LT_CMD_STRIPLIB
  5313. +
  5314. + # Report which library types will actually be built
  5315. + AC_MSG_CHECKING([if libtool supports shared libraries])
  5316. + AC_MSG_RESULT([$can_build_shared])
  5317. +
  5318. + AC_MSG_CHECKING([whether to build shared libraries])
  5319. + test "$can_build_shared" = "no" && enable_shared=no
  5320. +
  5321. + # On AIX, shared libraries and static libraries use the same namespace, and
  5322. + # are all built from PIC.
  5323. + case $host_os in
  5324. + aix3*)
  5325. + test "$enable_shared" = yes && enable_static=no
  5326. + if test -n "$RANLIB"; then
  5327. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5328. + postinstall_cmds='$RANLIB $lib'
  5329. + fi
  5330. + ;;
  5331. +
  5332. + aix[[4-9]]*)
  5333. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5334. + test "$enable_shared" = yes && enable_static=no
  5335. + fi
  5336. + ;;
  5337. + esac
  5338. + AC_MSG_RESULT([$enable_shared])
  5339. +
  5340. + AC_MSG_CHECKING([whether to build static libraries])
  5341. + # Make sure either enable_shared or enable_static is yes.
  5342. + test "$enable_shared" = yes || enable_static=yes
  5343. + AC_MSG_RESULT([$enable_static])
  5344. +
  5345. + _LT_CONFIG($1)
  5346. +fi
  5347. +AC_LANG_POP
  5348. +CC="$lt_save_CC"
  5349. +])# _LT_LANG_C_CONFIG
  5350. +
  5351. +
  5352. +# _LT_PROG_CXX
  5353. +# ------------
  5354. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  5355. +# compiler, we have our own version here.
  5356. +m4_defun([_LT_PROG_CXX],
  5357. +[
  5358. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  5359. +AC_PROG_CXX
  5360. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5361. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5362. + (test "X$CXX" != "Xg++"))) ; then
  5363. + AC_PROG_CXXCPP
  5364. +else
  5365. + _lt_caught_CXX_error=yes
  5366. +fi
  5367. +popdef([AC_MSG_ERROR])
  5368. +])# _LT_PROG_CXX
  5369. +
  5370. +dnl aclocal-1.4 backwards compatibility:
  5371. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  5372. +
  5373. +
  5374. +# _LT_LANG_CXX_CONFIG([TAG])
  5375. +# --------------------------
  5376. +# Ensure that the configuration variables for a C++ compiler are suitably
  5377. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5378. +# the compiler configuration to `libtool'.
  5379. +m4_defun([_LT_LANG_CXX_CONFIG],
  5380. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  5381. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5382. +m4_require([_LT_DECL_EGREP])dnl
  5383. +
  5384. +AC_LANG_PUSH(C++)
  5385. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5386. +_LT_TAGVAR(allow_undefined_flag, $1)=
  5387. +_LT_TAGVAR(always_export_symbols, $1)=no
  5388. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  5389. +_LT_TAGVAR(compiler_needs_object, $1)=no
  5390. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5391. +_LT_TAGVAR(hardcode_direct, $1)=no
  5392. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5393. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5394. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5395. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  5396. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  5397. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5398. +_LT_TAGVAR(hardcode_automatic, $1)=no
  5399. +_LT_TAGVAR(inherit_rpath, $1)=no
  5400. +_LT_TAGVAR(module_cmds, $1)=
  5401. +_LT_TAGVAR(module_expsym_cmds, $1)=
  5402. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  5403. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5404. +_LT_TAGVAR(no_undefined_flag, $1)=
  5405. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  5406. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5407. +
  5408. +# Source file extension for C++ test sources.
  5409. +ac_ext=cpp
  5410. +
  5411. +# Object file extension for compiled C++ test sources.
  5412. +objext=o
  5413. +_LT_TAGVAR(objext, $1)=$objext
  5414. +
  5415. +# No sense in running all these tests if we already determined that
  5416. +# the CXX compiler isn't working. Some variables (like enable_shared)
  5417. +# are currently assumed to apply to all compilers on this platform,
  5418. +# and will be corrupted by setting them based on a non-working compiler.
  5419. +if test "$_lt_caught_CXX_error" != yes; then
  5420. + # Code to be used in simple compile tests
  5421. + lt_simple_compile_test_code="int some_variable = 0;"
  5422. +
  5423. + # Code to be used in simple link tests
  5424. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5425. +
  5426. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5427. + _LT_TAG_COMPILER
  5428. +
  5429. + # save warnings/boilerplate of simple test code
  5430. + _LT_COMPILER_BOILERPLATE
  5431. + _LT_LINKER_BOILERPLATE
  5432. +
  5433. + # Allow CC to be a program name with arguments.
  5434. + lt_save_CC=$CC
  5435. + lt_save_LD=$LD
  5436. + lt_save_GCC=$GCC
  5437. + GCC=$GXX
  5438. + lt_save_with_gnu_ld=$with_gnu_ld
  5439. + lt_save_path_LD=$lt_cv_path_LD
  5440. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5441. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5442. + else
  5443. + $as_unset lt_cv_prog_gnu_ld
  5444. + fi
  5445. + if test -n "${lt_cv_path_LDCXX+set}"; then
  5446. + lt_cv_path_LD=$lt_cv_path_LDCXX
  5447. + else
  5448. + $as_unset lt_cv_path_LD
  5449. + fi
  5450. + test -z "${LDCXX+set}" || LD=$LDCXX
  5451. + CC=${CXX-"c++"}
  5452. + compiler=$CC
  5453. + _LT_TAGVAR(compiler, $1)=$CC
  5454. + _LT_CC_BASENAME([$compiler])
  5455. +
  5456. + if test -n "$compiler"; then
  5457. + # We don't want -fno-exception when compiling C++ code, so set the
  5458. + # no_builtin_flag separately
  5459. + if test "$GXX" = yes; then
  5460. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5461. + else
  5462. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5463. + fi
  5464. +
  5465. + if test "$GXX" = yes; then
  5466. + # Set up default GNU C++ configuration
  5467. +
  5468. + LT_PATH_LD
  5469. +
  5470. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5471. + # archiving commands below assume that GNU ld is being used.
  5472. + if test "$with_gnu_ld" = yes; then
  5473. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5474. + _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'
  5475. +
  5476. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5477. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5478. +
  5479. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5480. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5481. + # investigate it a little bit more. (MM)
  5482. + wlarc='${wl}'
  5483. +
  5484. + # ancient GNU ld didn't support --whole-archive et. al.
  5485. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5486. + $GREP 'no-whole-archive' > /dev/null; then
  5487. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5488. + else
  5489. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5490. + fi
  5491. + else
  5492. + with_gnu_ld=no
  5493. + wlarc=
  5494. +
  5495. + # A generic and very simple default shared library creation
  5496. + # command for GNU C++ for the case where it uses the native
  5497. + # linker, instead of GNU ld. If possible, this setting should
  5498. + # overridden to take advantage of the native linker features on
  5499. + # the platform it is being used on.
  5500. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5501. + fi
  5502. +
  5503. + # Commands to make compiler produce verbose output that lists
  5504. + # what "hidden" libraries, object files and flags are used when
  5505. + # linking a shared library.
  5506. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5507. +
  5508. + else
  5509. + GXX=no
  5510. + with_gnu_ld=no
  5511. + wlarc=
  5512. + fi
  5513. +
  5514. + # PORTME: fill in a description of your system's C++ link characteristics
  5515. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5516. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5517. + case $host_os in
  5518. + aix3*)
  5519. + # FIXME: insert proper C++ library support
  5520. + _LT_TAGVAR(ld_shlibs, $1)=no
  5521. + ;;
  5522. + aix[[4-9]]*)
  5523. + if test "$host_cpu" = ia64; then
  5524. + # On IA64, the linker does run time linking by default, so we don't
  5525. + # have to do anything special.
  5526. + aix_use_runtimelinking=no
  5527. + exp_sym_flag='-Bexport'
  5528. + no_entry_flag=""
  5529. + else
  5530. + aix_use_runtimelinking=no
  5531. +
  5532. + # Test if we are trying to use run time linking or normal
  5533. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5534. + # need to do runtime linking.
  5535. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5536. + for ld_flag in $LDFLAGS; do
  5537. + case $ld_flag in
  5538. + *-brtl*)
  5539. + aix_use_runtimelinking=yes
  5540. + break
  5541. + ;;
  5542. + esac
  5543. + done
  5544. + ;;
  5545. + esac
  5546. +
  5547. + exp_sym_flag='-bexport'
  5548. + no_entry_flag='-bnoentry'
  5549. + fi
  5550. +
  5551. + # When large executables or shared objects are built, AIX ld can
  5552. + # have problems creating the table of contents. If linking a library
  5553. + # or program results in "error TOC overflow" add -mminimal-toc to
  5554. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5555. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5556. +
  5557. + _LT_TAGVAR(archive_cmds, $1)=''
  5558. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5559. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5560. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5561. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5562. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5563. +
  5564. + if test "$GXX" = yes; then
  5565. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5566. + # We only want to do this on AIX 4.2 and lower, the check
  5567. + # below for broken collect2 doesn't work under 4.3+
  5568. + collect2name=`${CC} -print-prog-name=collect2`
  5569. + if test -f "$collect2name" &&
  5570. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5571. + then
  5572. + # We have reworked collect2
  5573. + :
  5574. + else
  5575. + # We have old collect2
  5576. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5577. + # It fails to find uninstalled libraries when the uninstalled
  5578. + # path is not listed in the libpath. Setting hardcode_minus_L
  5579. + # to unsupported forces relinking
  5580. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5581. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5582. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5583. + fi
  5584. + esac
  5585. + shared_flag='-shared'
  5586. + if test "$aix_use_runtimelinking" = yes; then
  5587. + shared_flag="$shared_flag "'${wl}-G'
  5588. + fi
  5589. + else
  5590. + # not using gcc
  5591. + if test "$host_cpu" = ia64; then
  5592. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5593. + # chokes on -Wl,-G. The following line is correct:
  5594. + shared_flag='-G'
  5595. + else
  5596. + if test "$aix_use_runtimelinking" = yes; then
  5597. + shared_flag='${wl}-G'
  5598. + else
  5599. + shared_flag='${wl}-bM:SRE'
  5600. + fi
  5601. + fi
  5602. + fi
  5603. +
  5604. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5605. + # It seems that -bexpall does not export symbols beginning with
  5606. + # underscore (_), so it is better to generate a list of symbols to
  5607. + # export.
  5608. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5609. + if test "$aix_use_runtimelinking" = yes; then
  5610. + # Warning - without using the other runtime loading flags (-brtl),
  5611. + # -berok will link without error, but may produce a broken library.
  5612. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5613. + # Determine the default libpath from the value encoded in an empty
  5614. + # executable.
  5615. + _LT_SYS_MODULE_PATH_AIX
  5616. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5617. +
  5618. + _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"
  5619. + else
  5620. + if test "$host_cpu" = ia64; then
  5621. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5622. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5623. + _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"
  5624. + else
  5625. + # Determine the default libpath from the value encoded in an
  5626. + # empty executable.
  5627. + _LT_SYS_MODULE_PATH_AIX
  5628. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5629. + # Warning - without using the other run time loading flags,
  5630. + # -berok will link without error, but may produce a broken library.
  5631. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5632. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5633. + # Exported symbols can be pulled into shared objects from archives
  5634. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5635. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5636. + # This is similar to how AIX traditionally builds its shared
  5637. + # libraries.
  5638. + _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'
  5639. + fi
  5640. + fi
  5641. + ;;
  5642. +
  5643. + beos*)
  5644. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5645. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5646. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5647. + # support --undefined. This deserves some investigation. FIXME
  5648. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5649. + else
  5650. + _LT_TAGVAR(ld_shlibs, $1)=no
  5651. + fi
  5652. + ;;
  5653. +
  5654. + chorus*)
  5655. + case $cc_basename in
  5656. + *)
  5657. + # FIXME: insert proper C++ library support
  5658. + _LT_TAGVAR(ld_shlibs, $1)=no
  5659. + ;;
  5660. + esac
  5661. + ;;
  5662. +
  5663. + cygwin* | mingw* | pw32* | cegcc*)
  5664. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5665. + # as there is no search path for DLLs.
  5666. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5667. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5668. + _LT_TAGVAR(always_export_symbols, $1)=no
  5669. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5670. +
  5671. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5672. + _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'
  5673. + # If the export-symbols file already is a .def file (1st line
  5674. + # is EXPORTS), use it as is; otherwise, prepend...
  5675. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5676. + cp $export_symbols $output_objdir/$soname.def;
  5677. + else
  5678. + echo EXPORTS > $output_objdir/$soname.def;
  5679. + cat $export_symbols >> $output_objdir/$soname.def;
  5680. + fi~
  5681. + $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'
  5682. + else
  5683. + _LT_TAGVAR(ld_shlibs, $1)=no
  5684. + fi
  5685. + ;;
  5686. + darwin* | rhapsody*)
  5687. + _LT_DARWIN_LINKER_FEATURES($1)
  5688. + ;;
  5689. +
  5690. + dgux*)
  5691. + case $cc_basename in
  5692. + ec++*)
  5693. + # FIXME: insert proper C++ library support
  5694. + _LT_TAGVAR(ld_shlibs, $1)=no
  5695. + ;;
  5696. + ghcx*)
  5697. + # Green Hills C++ Compiler
  5698. + # FIXME: insert proper C++ library support
  5699. + _LT_TAGVAR(ld_shlibs, $1)=no
  5700. + ;;
  5701. + *)
  5702. + # FIXME: insert proper C++ library support
  5703. + _LT_TAGVAR(ld_shlibs, $1)=no
  5704. + ;;
  5705. + esac
  5706. + ;;
  5707. +
  5708. + freebsd[[12]]*)
  5709. + # C++ shared libraries reported to be fairly broken before
  5710. + # switch to ELF
  5711. + _LT_TAGVAR(ld_shlibs, $1)=no
  5712. + ;;
  5713. +
  5714. + freebsd-elf*)
  5715. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5716. + ;;
  5717. +
  5718. + freebsd* | dragonfly*)
  5719. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5720. + # conventions
  5721. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5722. + ;;
  5723. +
  5724. + gnu*)
  5725. + ;;
  5726. +
  5727. + hpux9*)
  5728. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5729. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5730. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5731. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5732. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5733. + # but as the default
  5734. + # location of the library.
  5735. +
  5736. + case $cc_basename in
  5737. + CC*)
  5738. + # FIXME: insert proper C++ library support
  5739. + _LT_TAGVAR(ld_shlibs, $1)=no
  5740. + ;;
  5741. + aCC*)
  5742. + _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'
  5743. + # Commands to make compiler produce verbose output that lists
  5744. + # what "hidden" libraries, object files and flags are used when
  5745. + # linking a shared library.
  5746. + #
  5747. + # There doesn't appear to be a way to prevent this compiler from
  5748. + # explicitly linking system object files so we need to strip them
  5749. + # from the output so that they don't get included in the library
  5750. + # dependencies.
  5751. + 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'
  5752. + ;;
  5753. + *)
  5754. + if test "$GXX" = yes; then
  5755. + _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'
  5756. + else
  5757. + # FIXME: insert proper C++ library support
  5758. + _LT_TAGVAR(ld_shlibs, $1)=no
  5759. + fi
  5760. + ;;
  5761. + esac
  5762. + ;;
  5763. +
  5764. + hpux10*|hpux11*)
  5765. + if test $with_gnu_ld = no; then
  5766. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5767. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5768. +
  5769. + case $host_cpu in
  5770. + hppa*64*|ia64*)
  5771. + ;;
  5772. + *)
  5773. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5774. + ;;
  5775. + esac
  5776. + fi
  5777. + case $host_cpu in
  5778. + hppa*64*|ia64*)
  5779. + _LT_TAGVAR(hardcode_direct, $1)=no
  5780. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5781. + ;;
  5782. + *)
  5783. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5784. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5785. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5786. + # but as the default
  5787. + # location of the library.
  5788. + ;;
  5789. + esac
  5790. +
  5791. + case $cc_basename in
  5792. + CC*)
  5793. + # FIXME: insert proper C++ library support
  5794. + _LT_TAGVAR(ld_shlibs, $1)=no
  5795. + ;;
  5796. + aCC*)
  5797. + case $host_cpu in
  5798. + hppa*64*)
  5799. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5800. + ;;
  5801. + ia64*)
  5802. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5803. + ;;
  5804. + *)
  5805. + _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'
  5806. + ;;
  5807. + esac
  5808. + # Commands to make compiler produce verbose output that lists
  5809. + # what "hidden" libraries, object files and flags are used when
  5810. + # linking a shared library.
  5811. + #
  5812. + # There doesn't appear to be a way to prevent this compiler from
  5813. + # explicitly linking system object files so we need to strip them
  5814. + # from the output so that they don't get included in the library
  5815. + # dependencies.
  5816. + 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'
  5817. + ;;
  5818. + *)
  5819. + if test "$GXX" = yes; then
  5820. + if test $with_gnu_ld = no; then
  5821. + case $host_cpu in
  5822. + hppa*64*)
  5823. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5824. + ;;
  5825. + ia64*)
  5826. + _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'
  5827. + ;;
  5828. + *)
  5829. + _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'
  5830. + ;;
  5831. + esac
  5832. + fi
  5833. + else
  5834. + # FIXME: insert proper C++ library support
  5835. + _LT_TAGVAR(ld_shlibs, $1)=no
  5836. + fi
  5837. + ;;
  5838. + esac
  5839. + ;;
  5840. +
  5841. + interix[[3-9]]*)
  5842. + _LT_TAGVAR(hardcode_direct, $1)=no
  5843. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5844. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5845. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5846. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5847. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5848. + # default) and relocated if they conflict, which is a slow very memory
  5849. + # consuming and fragmenting process. To avoid this, we pick a random,
  5850. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5851. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5852. + _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'
  5853. + _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'
  5854. + ;;
  5855. + irix5* | irix6*)
  5856. + case $cc_basename in
  5857. + CC*)
  5858. + # SGI C++
  5859. + _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'
  5860. +
  5861. + # Archives containing C++ object files must be created using
  5862. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5863. + # necessary to make sure instantiated templates are included
  5864. + # in the archive.
  5865. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5866. + ;;
  5867. + *)
  5868. + if test "$GXX" = yes; then
  5869. + if test "$with_gnu_ld" = no; then
  5870. + _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'
  5871. + else
  5872. + _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'
  5873. + fi
  5874. + fi
  5875. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5876. + ;;
  5877. + esac
  5878. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5879. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5880. + _LT_TAGVAR(inherit_rpath, $1)=yes
  5881. + ;;
  5882. +
  5883. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5884. + case $cc_basename in
  5885. + KCC*)
  5886. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5887. +
  5888. + # KCC will only create a shared library if the output file
  5889. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5890. + # to its proper name (with version) after linking.
  5891. + _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'
  5892. + _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'
  5893. + # Commands to make compiler produce verbose output that lists
  5894. + # what "hidden" libraries, object files and flags are used when
  5895. + # linking a shared library.
  5896. + #
  5897. + # There doesn't appear to be a way to prevent this compiler from
  5898. + # explicitly linking system object files so we need to strip them
  5899. + # from the output so that they don't get included in the library
  5900. + # dependencies.
  5901. + 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'
  5902. +
  5903. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5904. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5905. +
  5906. + # Archives containing C++ object files must be created using
  5907. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5908. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5909. + ;;
  5910. + icpc* | ecpc* )
  5911. + # Intel C++
  5912. + with_gnu_ld=yes
  5913. + # version 8.0 and above of icpc choke on multiply defined symbols
  5914. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  5915. + # earlier do not add the objects themselves.
  5916. + case `$CC -V 2>&1` in
  5917. + *"Version 7."*)
  5918. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5919. + _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'
  5920. + ;;
  5921. + *) # Version 8.0 or newer
  5922. + tmp_idyn=
  5923. + case $host_cpu in
  5924. + ia64*) tmp_idyn=' -i_dynamic';;
  5925. + esac
  5926. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5927. + _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'
  5928. + ;;
  5929. + esac
  5930. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5931. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5932. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5933. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5934. + ;;
  5935. + pgCC* | pgcpp*)
  5936. + # Portland Group C++ compiler
  5937. + case `$CC -V` in
  5938. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  5939. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5940. + rm -rf $tpldir~
  5941. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5942. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  5943. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5944. + rm -rf $tpldir~
  5945. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5946. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  5947. + $RANLIB $oldlib'
  5948. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5949. + rm -rf $tpldir~
  5950. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5951. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5952. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5953. + rm -rf $tpldir~
  5954. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5955. + $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'
  5956. + ;;
  5957. + *) # Version 6 will use weak symbols
  5958. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5959. + _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'
  5960. + ;;
  5961. + esac
  5962. +
  5963. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5964. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5965. + _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'
  5966. + ;;
  5967. + cxx*)
  5968. + # Compaq C++
  5969. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5970. + _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'
  5971. +
  5972. + runpath_var=LD_RUN_PATH
  5973. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5974. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5975. +
  5976. + # Commands to make compiler produce verbose output that lists
  5977. + # what "hidden" libraries, object files and flags are used when
  5978. + # linking a shared library.
  5979. + #
  5980. + # There doesn't appear to be a way to prevent this compiler from
  5981. + # explicitly linking system object files so we need to strip them
  5982. + # from the output so that they don't get included in the library
  5983. + # dependencies.
  5984. + 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'
  5985. + ;;
  5986. + xl*)
  5987. + # IBM XL 8.0 on PPC, with GNU ld
  5988. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5989. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5990. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5991. + if test "x$supports_anon_versioning" = xyes; then
  5992. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5993. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5994. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5995. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5996. + fi
  5997. + ;;
  5998. + *)
  5999. + case `$CC -V 2>&1 | sed 5q` in
  6000. + *Sun\ C*)
  6001. + # Sun C++ 5.9
  6002. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6003. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6004. + _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'
  6005. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6006. + _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'
  6007. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  6008. +
  6009. + # Not sure whether something based on
  6010. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6011. + # would be better.
  6012. + output_verbose_link_cmd='echo'
  6013. +
  6014. + # Archives containing C++ object files must be created using
  6015. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6016. + # necessary to make sure instantiated templates are included
  6017. + # in the archive.
  6018. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6019. + ;;
  6020. + esac
  6021. + ;;
  6022. + esac
  6023. + ;;
  6024. +
  6025. + lynxos*)
  6026. + # FIXME: insert proper C++ library support
  6027. + _LT_TAGVAR(ld_shlibs, $1)=no
  6028. + ;;
  6029. +
  6030. + m88k*)
  6031. + # FIXME: insert proper C++ library support
  6032. + _LT_TAGVAR(ld_shlibs, $1)=no
  6033. + ;;
  6034. +
  6035. + mvs*)
  6036. + case $cc_basename in
  6037. + cxx*)
  6038. + # FIXME: insert proper C++ library support
  6039. + _LT_TAGVAR(ld_shlibs, $1)=no
  6040. + ;;
  6041. + *)
  6042. + # FIXME: insert proper C++ library support
  6043. + _LT_TAGVAR(ld_shlibs, $1)=no
  6044. + ;;
  6045. + esac
  6046. + ;;
  6047. +
  6048. + netbsd*)
  6049. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6050. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6051. + wlarc=
  6052. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6053. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6054. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6055. + fi
  6056. + # Workaround some broken pre-1.5 toolchains
  6057. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6058. + ;;
  6059. +
  6060. + *nto* | *qnx*)
  6061. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6062. + ;;
  6063. +
  6064. + openbsd2*)
  6065. + # C++ shared libraries are fairly broken
  6066. + _LT_TAGVAR(ld_shlibs, $1)=no
  6067. + ;;
  6068. +
  6069. + openbsd*)
  6070. + if test -f /usr/libexec/ld.so; then
  6071. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6072. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6073. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6074. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6075. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6076. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6077. + _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'
  6078. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6079. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6080. + fi
  6081. + output_verbose_link_cmd=echo
  6082. + else
  6083. + _LT_TAGVAR(ld_shlibs, $1)=no
  6084. + fi
  6085. + ;;
  6086. +
  6087. + osf3* | osf4* | osf5*)
  6088. + case $cc_basename in
  6089. + KCC*)
  6090. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6091. +
  6092. + # KCC will only create a shared library if the output file
  6093. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6094. + # to its proper name (with version) after linking.
  6095. + _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'
  6096. +
  6097. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6098. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6099. +
  6100. + # Archives containing C++ object files must be created using
  6101. + # the KAI C++ compiler.
  6102. + case $host in
  6103. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6104. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6105. + esac
  6106. + ;;
  6107. + RCC*)
  6108. + # Rational C++ 2.4.1
  6109. + # FIXME: insert proper C++ library support
  6110. + _LT_TAGVAR(ld_shlibs, $1)=no
  6111. + ;;
  6112. + cxx*)
  6113. + case $host in
  6114. + osf3*)
  6115. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6116. + _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'
  6117. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6118. + ;;
  6119. + *)
  6120. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6121. + _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'
  6122. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6123. + echo "-hidden">> $lib.exp~
  6124. + $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~
  6125. + $RM $lib.exp'
  6126. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6127. + ;;
  6128. + esac
  6129. +
  6130. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6131. +
  6132. + # Commands to make compiler produce verbose output that lists
  6133. + # what "hidden" libraries, object files and flags are used when
  6134. + # linking a shared library.
  6135. + #
  6136. + # There doesn't appear to be a way to prevent this compiler from
  6137. + # explicitly linking system object files so we need to strip them
  6138. + # from the output so that they don't get included in the library
  6139. + # dependencies.
  6140. + 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'
  6141. + ;;
  6142. + *)
  6143. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6144. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6145. + case $host in
  6146. + osf3*)
  6147. + _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'
  6148. + ;;
  6149. + *)
  6150. + _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'
  6151. + ;;
  6152. + esac
  6153. +
  6154. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6155. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6156. +
  6157. + # Commands to make compiler produce verbose output that lists
  6158. + # what "hidden" libraries, object files and flags are used when
  6159. + # linking a shared library.
  6160. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6161. +
  6162. + else
  6163. + # FIXME: insert proper C++ library support
  6164. + _LT_TAGVAR(ld_shlibs, $1)=no
  6165. + fi
  6166. + ;;
  6167. + esac
  6168. + ;;
  6169. +
  6170. + psos*)
  6171. + # FIXME: insert proper C++ library support
  6172. + _LT_TAGVAR(ld_shlibs, $1)=no
  6173. + ;;
  6174. +
  6175. + sunos4*)
  6176. + case $cc_basename in
  6177. + CC*)
  6178. + # Sun C++ 4.x
  6179. + # FIXME: insert proper C++ library support
  6180. + _LT_TAGVAR(ld_shlibs, $1)=no
  6181. + ;;
  6182. + lcc*)
  6183. + # Lucid
  6184. + # FIXME: insert proper C++ library support
  6185. + _LT_TAGVAR(ld_shlibs, $1)=no
  6186. + ;;
  6187. + *)
  6188. + # FIXME: insert proper C++ library support
  6189. + _LT_TAGVAR(ld_shlibs, $1)=no
  6190. + ;;
  6191. + esac
  6192. + ;;
  6193. +
  6194. + solaris*)
  6195. + case $cc_basename in
  6196. + CC*)
  6197. + # Sun C++ 4.2, 5.x and Centerline C++
  6198. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6199. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6200. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6201. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6202. + $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'
  6203. +
  6204. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6205. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6206. + case $host_os in
  6207. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6208. + *)
  6209. + # The compiler driver will combine and reorder linker options,
  6210. + # but understands `-z linker_flag'.
  6211. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6212. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6213. + ;;
  6214. + esac
  6215. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6216. +
  6217. + output_verbose_link_cmd='echo'
  6218. +
  6219. + # Archives containing C++ object files must be created using
  6220. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6221. + # necessary to make sure instantiated templates are included
  6222. + # in the archive.
  6223. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6224. + ;;
  6225. + gcx*)
  6226. + # Green Hills C++ Compiler
  6227. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6228. +
  6229. + # The C++ compiler must be used to create the archive.
  6230. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6231. + ;;
  6232. + *)
  6233. + # GNU C++ compiler with Solaris linker
  6234. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6235. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6236. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6237. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6238. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6239. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6240. +
  6241. + # Commands to make compiler produce verbose output that lists
  6242. + # what "hidden" libraries, object files and flags are used when
  6243. + # linking a shared library.
  6244. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6245. + else
  6246. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6247. + # platform.
  6248. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6249. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6250. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6251. +
  6252. + # Commands to make compiler produce verbose output that lists
  6253. + # what "hidden" libraries, object files and flags are used when
  6254. + # linking a shared library.
  6255. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6256. + fi
  6257. +
  6258. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6259. + case $host_os in
  6260. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6261. + *)
  6262. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6263. + ;;
  6264. + esac
  6265. + fi
  6266. + ;;
  6267. + esac
  6268. + ;;
  6269. +
  6270. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6271. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6272. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6273. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6274. + runpath_var='LD_RUN_PATH'
  6275. +
  6276. + case $cc_basename in
  6277. + CC*)
  6278. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6279. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6280. + ;;
  6281. + *)
  6282. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6283. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6284. + ;;
  6285. + esac
  6286. + ;;
  6287. +
  6288. + sysv5* | sco3.2v5* | sco5v6*)
  6289. + # Note: We can NOT use -z defs as we might desire, because we do not
  6290. + # link with -lc, and that would cause any symbols used from libc to
  6291. + # always be unresolved, which means just about no library would
  6292. + # ever link correctly. If we're not using GNU ld we use -z text
  6293. + # though, which does catch some bad symbols but isn't as heavy-handed
  6294. + # as -z defs.
  6295. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6296. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6297. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6298. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6299. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6300. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6301. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6302. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6303. + runpath_var='LD_RUN_PATH'
  6304. +
  6305. + case $cc_basename in
  6306. + CC*)
  6307. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6308. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6309. + ;;
  6310. + *)
  6311. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6312. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6313. + ;;
  6314. + esac
  6315. + ;;
  6316. +
  6317. + tandem*)
  6318. + case $cc_basename in
  6319. + NCC*)
  6320. + # NonStop-UX NCC 3.20
  6321. + # FIXME: insert proper C++ library support
  6322. + _LT_TAGVAR(ld_shlibs, $1)=no
  6323. + ;;
  6324. + *)
  6325. + # FIXME: insert proper C++ library support
  6326. + _LT_TAGVAR(ld_shlibs, $1)=no
  6327. + ;;
  6328. + esac
  6329. + ;;
  6330. +
  6331. + vxworks*)
  6332. + # FIXME: insert proper C++ library support
  6333. + _LT_TAGVAR(ld_shlibs, $1)=no
  6334. + ;;
  6335. +
  6336. + *)
  6337. + # FIXME: insert proper C++ library support
  6338. + _LT_TAGVAR(ld_shlibs, $1)=no
  6339. + ;;
  6340. + esac
  6341. +
  6342. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6343. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6344. +
  6345. + _LT_TAGVAR(GCC, $1)="$GXX"
  6346. + _LT_TAGVAR(LD, $1)="$LD"
  6347. +
  6348. + ## CAVEAT EMPTOR:
  6349. + ## There is no encapsulation within the following macros, do not change
  6350. + ## the running order or otherwise move them around unless you know exactly
  6351. + ## what you are doing...
  6352. + _LT_SYS_HIDDEN_LIBDEPS($1)
  6353. + _LT_COMPILER_PIC($1)
  6354. + _LT_COMPILER_C_O($1)
  6355. + _LT_COMPILER_FILE_LOCKS($1)
  6356. + _LT_LINKER_SHLIBS($1)
  6357. + _LT_SYS_DYNAMIC_LINKER($1)
  6358. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6359. +
  6360. + _LT_CONFIG($1)
  6361. + fi # test -n "$compiler"
  6362. +
  6363. + CC=$lt_save_CC
  6364. + LDCXX=$LD
  6365. + LD=$lt_save_LD
  6366. + GCC=$lt_save_GCC
  6367. + with_gnu_ld=$lt_save_with_gnu_ld
  6368. + lt_cv_path_LDCXX=$lt_cv_path_LD
  6369. + lt_cv_path_LD=$lt_save_path_LD
  6370. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6371. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6372. +fi # test "$_lt_caught_CXX_error" != yes
  6373. +
  6374. +AC_LANG_POP
  6375. +])# _LT_LANG_CXX_CONFIG
  6376. +
  6377. +
  6378. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6379. +# ---------------------------------
  6380. +# Figure out "hidden" library dependencies from verbose
  6381. +# compiler output when linking a shared library.
  6382. +# Parse the compiler output and extract the necessary
  6383. +# objects, libraries and library flags.
  6384. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6385. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6386. +# Dependencies to place before and after the object being linked:
  6387. +_LT_TAGVAR(predep_objects, $1)=
  6388. +_LT_TAGVAR(postdep_objects, $1)=
  6389. +_LT_TAGVAR(predeps, $1)=
  6390. +_LT_TAGVAR(postdeps, $1)=
  6391. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  6392. +
  6393. +dnl we can't use the lt_simple_compile_test_code here,
  6394. +dnl because it contains code intended for an executable,
  6395. +dnl not a library. It's possible we should let each
  6396. +dnl tag define a new lt_????_link_test_code variable,
  6397. +dnl but it's only used here...
  6398. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6399. +int a;
  6400. +void foo (void) { a = 0; }
  6401. +_LT_EOF
  6402. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6403. +class Foo
  6404. +{
  6405. +public:
  6406. + Foo (void) { a = 0; }
  6407. +private:
  6408. + int a;
  6409. +};
  6410. +_LT_EOF
  6411. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6412. + subroutine foo
  6413. + implicit none
  6414. + integer*4 a
  6415. + a=0
  6416. + return
  6417. + end
  6418. +_LT_EOF
  6419. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6420. + subroutine foo
  6421. + implicit none
  6422. + integer a
  6423. + a=0
  6424. + return
  6425. + end
  6426. +_LT_EOF
  6427. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6428. +public class foo {
  6429. + private int a;
  6430. + public void bar (void) {
  6431. + a = 0;
  6432. + }
  6433. +};
  6434. +_LT_EOF
  6435. +])
  6436. +dnl Parse the compiler output and extract the necessary
  6437. +dnl objects, libraries and library flags.
  6438. +if AC_TRY_EVAL(ac_compile); then
  6439. + # Parse the compiler output and extract the necessary
  6440. + # objects, libraries and library flags.
  6441. +
  6442. + # Sentinel used to keep track of whether or not we are before
  6443. + # the conftest object file.
  6444. + pre_test_object_deps_done=no
  6445. +
  6446. + for p in `eval "$output_verbose_link_cmd"`; do
  6447. + case $p in
  6448. +
  6449. + -L* | -R* | -l*)
  6450. + # Some compilers place space between "-{L,R}" and the path.
  6451. + # Remove the space.
  6452. + if test $p = "-L" ||
  6453. + test $p = "-R"; then
  6454. + prev=$p
  6455. + continue
  6456. + else
  6457. + prev=
  6458. + fi
  6459. +
  6460. + if test "$pre_test_object_deps_done" = no; then
  6461. + case $p in
  6462. + -L* | -R*)
  6463. + # Internal compiler library paths should come after those
  6464. + # provided the user. The postdeps already come after the
  6465. + # user supplied libs so there is no need to process them.
  6466. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6467. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6468. + else
  6469. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6470. + fi
  6471. + ;;
  6472. + # The "-l" case would never come before the object being
  6473. + # linked, so don't bother handling this case.
  6474. + esac
  6475. + else
  6476. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6477. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6478. + else
  6479. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6480. + fi
  6481. + fi
  6482. + ;;
  6483. +
  6484. + *.$objext)
  6485. + # This assumes that the test object file only shows up
  6486. + # once in the compiler output.
  6487. + if test "$p" = "conftest.$objext"; then
  6488. + pre_test_object_deps_done=yes
  6489. + continue
  6490. + fi
  6491. +
  6492. + if test "$pre_test_object_deps_done" = no; then
  6493. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6494. + _LT_TAGVAR(predep_objects, $1)="$p"
  6495. + else
  6496. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6497. + fi
  6498. + else
  6499. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6500. + _LT_TAGVAR(postdep_objects, $1)="$p"
  6501. + else
  6502. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6503. + fi
  6504. + fi
  6505. + ;;
  6506. +
  6507. + *) ;; # Ignore the rest.
  6508. +
  6509. + esac
  6510. + done
  6511. +
  6512. + # Clean up.
  6513. + rm -f a.out a.exe
  6514. +else
  6515. + echo "libtool.m4: error: problem compiling $1 test program"
  6516. +fi
  6517. +
  6518. +$RM -f confest.$objext
  6519. +
  6520. +# PORTME: override above test on systems where it is broken
  6521. +m4_if([$1], [CXX],
  6522. +[case $host_os in
  6523. +interix[[3-9]]*)
  6524. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6525. + # hack all around it, let's just trust "g++" to DTRT.
  6526. + _LT_TAGVAR(predep_objects,$1)=
  6527. + _LT_TAGVAR(postdep_objects,$1)=
  6528. + _LT_TAGVAR(postdeps,$1)=
  6529. + ;;
  6530. +
  6531. +linux*)
  6532. + case `$CC -V 2>&1 | sed 5q` in
  6533. + *Sun\ C*)
  6534. + # Sun C++ 5.9
  6535. +
  6536. + # The more standards-conforming stlport4 library is
  6537. + # incompatible with the Cstd library. Avoid specifying
  6538. + # it if it's in CXXFLAGS. Ignore libCrun as
  6539. + # -library=stlport4 depends on it.
  6540. + case " $CXX $CXXFLAGS " in
  6541. + *" -library=stlport4 "*)
  6542. + solaris_use_stlport4=yes
  6543. + ;;
  6544. + esac
  6545. +
  6546. + if test "$solaris_use_stlport4" != yes; then
  6547. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6548. + fi
  6549. + ;;
  6550. + esac
  6551. + ;;
  6552. +
  6553. +solaris*)
  6554. + case $cc_basename in
  6555. + CC*)
  6556. + # The more standards-conforming stlport4 library is
  6557. + # incompatible with the Cstd library. Avoid specifying
  6558. + # it if it's in CXXFLAGS. Ignore libCrun as
  6559. + # -library=stlport4 depends on it.
  6560. + case " $CXX $CXXFLAGS " in
  6561. + *" -library=stlport4 "*)
  6562. + solaris_use_stlport4=yes
  6563. + ;;
  6564. + esac
  6565. +
  6566. + # Adding this requires a known-good setup of shared libraries for
  6567. + # Sun compiler versions before 5.6, else PIC objects from an old
  6568. + # archive will be linked into the output, leading to subtle bugs.
  6569. + if test "$solaris_use_stlport4" != yes; then
  6570. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6571. + fi
  6572. + ;;
  6573. + esac
  6574. + ;;
  6575. +esac
  6576. +])
  6577. +
  6578. +case " $_LT_TAGVAR(postdeps, $1) " in
  6579. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6580. +esac
  6581. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6582. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6583. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6584. +fi
  6585. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6586. + [The directories searched by this compiler when creating a shared library])
  6587. +_LT_TAGDECL([], [predep_objects], [1],
  6588. + [Dependencies to place before and after the objects being linked to
  6589. + create a shared library])
  6590. +_LT_TAGDECL([], [postdep_objects], [1])
  6591. +_LT_TAGDECL([], [predeps], [1])
  6592. +_LT_TAGDECL([], [postdeps], [1])
  6593. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  6594. + [The library search path used internally by the compiler when linking
  6595. + a shared library])
  6596. +])# _LT_SYS_HIDDEN_LIBDEPS
  6597. +
  6598. +
  6599. +# _LT_PROG_F77
  6600. +# ------------
  6601. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  6602. +# if there is no fortran compiler, we have our own version here.
  6603. +m4_defun([_LT_PROG_F77],
  6604. +[
  6605. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  6606. +AC_PROG_F77
  6607. +if test -z "$F77" || test "X$F77" = "Xno"; then
  6608. + _lt_disable_F77=yes
  6609. +fi
  6610. +popdef([AC_MSG_ERROR])
  6611. +])# _LT_PROG_F77
  6612. +
  6613. +dnl aclocal-1.4 backwards compatibility:
  6614. +dnl AC_DEFUN([_LT_PROG_F77], [])
  6615. +
  6616. +
  6617. +# _LT_LANG_F77_CONFIG([TAG])
  6618. +# --------------------------
  6619. +# Ensure that the configuration variables for a Fortran 77 compiler are
  6620. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  6621. +# to write the compiler configuration to `libtool'.
  6622. +m4_defun([_LT_LANG_F77_CONFIG],
  6623. +[AC_REQUIRE([_LT_PROG_F77])dnl
  6624. +AC_LANG_PUSH(Fortran 77)
  6625. +
  6626. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6627. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6628. +_LT_TAGVAR(always_export_symbols, $1)=no
  6629. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6630. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6631. +_LT_TAGVAR(hardcode_direct, $1)=no
  6632. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6633. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6634. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6635. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6636. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6637. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6638. +_LT_TAGVAR(inherit_rpath, $1)=no
  6639. +_LT_TAGVAR(module_cmds, $1)=
  6640. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6641. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6642. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6643. +_LT_TAGVAR(no_undefined_flag, $1)=
  6644. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6645. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6646. +
  6647. +# Source file extension for f77 test sources.
  6648. +ac_ext=f
  6649. +
  6650. +# Object file extension for compiled f77 test sources.
  6651. +objext=o
  6652. +_LT_TAGVAR(objext, $1)=$objext
  6653. +
  6654. +# No sense in running all these tests if we already determined that
  6655. +# the F77 compiler isn't working. Some variables (like enable_shared)
  6656. +# are currently assumed to apply to all compilers on this platform,
  6657. +# and will be corrupted by setting them based on a non-working compiler.
  6658. +if test "$_lt_disable_F77" != yes; then
  6659. + # Code to be used in simple compile tests
  6660. + lt_simple_compile_test_code="\
  6661. + subroutine t
  6662. + return
  6663. + end
  6664. +"
  6665. +
  6666. + # Code to be used in simple link tests
  6667. + lt_simple_link_test_code="\
  6668. + program t
  6669. + end
  6670. +"
  6671. +
  6672. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6673. + _LT_TAG_COMPILER
  6674. +
  6675. + # save warnings/boilerplate of simple test code
  6676. + _LT_COMPILER_BOILERPLATE
  6677. + _LT_LINKER_BOILERPLATE
  6678. +
  6679. + # Allow CC to be a program name with arguments.
  6680. + lt_save_CC="$CC"
  6681. + lt_save_GCC=$GCC
  6682. + CC=${F77-"f77"}
  6683. + compiler=$CC
  6684. + _LT_TAGVAR(compiler, $1)=$CC
  6685. + _LT_CC_BASENAME([$compiler])
  6686. + GCC=$G77
  6687. + if test -n "$compiler"; then
  6688. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6689. + AC_MSG_RESULT([$can_build_shared])
  6690. +
  6691. + AC_MSG_CHECKING([whether to build shared libraries])
  6692. + test "$can_build_shared" = "no" && enable_shared=no
  6693. +
  6694. + # On AIX, shared libraries and static libraries use the same namespace, and
  6695. + # are all built from PIC.
  6696. + case $host_os in
  6697. + aix3*)
  6698. + test "$enable_shared" = yes && enable_static=no
  6699. + if test -n "$RANLIB"; then
  6700. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6701. + postinstall_cmds='$RANLIB $lib'
  6702. + fi
  6703. + ;;
  6704. + aix[[4-9]]*)
  6705. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6706. + test "$enable_shared" = yes && enable_static=no
  6707. + fi
  6708. + ;;
  6709. + esac
  6710. + AC_MSG_RESULT([$enable_shared])
  6711. +
  6712. + AC_MSG_CHECKING([whether to build static libraries])
  6713. + # Make sure either enable_shared or enable_static is yes.
  6714. + test "$enable_shared" = yes || enable_static=yes
  6715. + AC_MSG_RESULT([$enable_static])
  6716. +
  6717. + _LT_TAGVAR(GCC, $1)="$G77"
  6718. + _LT_TAGVAR(LD, $1)="$LD"
  6719. +
  6720. + ## CAVEAT EMPTOR:
  6721. + ## There is no encapsulation within the following macros, do not change
  6722. + ## the running order or otherwise move them around unless you know exactly
  6723. + ## what you are doing...
  6724. + _LT_COMPILER_PIC($1)
  6725. + _LT_COMPILER_C_O($1)
  6726. + _LT_COMPILER_FILE_LOCKS($1)
  6727. + _LT_LINKER_SHLIBS($1)
  6728. + _LT_SYS_DYNAMIC_LINKER($1)
  6729. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6730. +
  6731. + _LT_CONFIG($1)
  6732. + fi # test -n "$compiler"
  6733. +
  6734. + GCC=$lt_save_GCC
  6735. + CC="$lt_save_CC"
  6736. +fi # test "$_lt_disable_F77" != yes
  6737. +
  6738. +AC_LANG_POP
  6739. +])# _LT_LANG_F77_CONFIG
  6740. +
  6741. +
  6742. +# _LT_PROG_FC
  6743. +# -----------
  6744. +# Since AC_PROG_FC is broken, in that it returns the empty string
  6745. +# if there is no fortran compiler, we have our own version here.
  6746. +m4_defun([_LT_PROG_FC],
  6747. +[
  6748. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  6749. +AC_PROG_FC
  6750. +if test -z "$FC" || test "X$FC" = "Xno"; then
  6751. + _lt_disable_FC=yes
  6752. +fi
  6753. +popdef([AC_MSG_ERROR])
  6754. +])# _LT_PROG_FC
  6755. +
  6756. +dnl aclocal-1.4 backwards compatibility:
  6757. +dnl AC_DEFUN([_LT_PROG_FC], [])
  6758. +
  6759. +
  6760. +# _LT_LANG_FC_CONFIG([TAG])
  6761. +# -------------------------
  6762. +# Ensure that the configuration variables for a Fortran compiler are
  6763. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  6764. +# to write the compiler configuration to `libtool'.
  6765. +m4_defun([_LT_LANG_FC_CONFIG],
  6766. +[AC_REQUIRE([_LT_PROG_FC])dnl
  6767. +AC_LANG_PUSH(Fortran)
  6768. +
  6769. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6770. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6771. +_LT_TAGVAR(always_export_symbols, $1)=no
  6772. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6773. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6774. +_LT_TAGVAR(hardcode_direct, $1)=no
  6775. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6776. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6777. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6778. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6779. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6780. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6781. +_LT_TAGVAR(inherit_rpath, $1)=no
  6782. +_LT_TAGVAR(module_cmds, $1)=
  6783. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6784. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6785. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6786. +_LT_TAGVAR(no_undefined_flag, $1)=
  6787. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6788. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6789. +
  6790. +# Source file extension for fc test sources.
  6791. +ac_ext=${ac_fc_srcext-f}
  6792. +
  6793. +# Object file extension for compiled fc test sources.
  6794. +objext=o
  6795. +_LT_TAGVAR(objext, $1)=$objext
  6796. +
  6797. +# No sense in running all these tests if we already determined that
  6798. +# the FC compiler isn't working. Some variables (like enable_shared)
  6799. +# are currently assumed to apply to all compilers on this platform,
  6800. +# and will be corrupted by setting them based on a non-working compiler.
  6801. +if test "$_lt_disable_FC" != yes; then
  6802. + # Code to be used in simple compile tests
  6803. + lt_simple_compile_test_code="\
  6804. + subroutine t
  6805. + return
  6806. + end
  6807. +"
  6808. +
  6809. + # Code to be used in simple link tests
  6810. + lt_simple_link_test_code="\
  6811. + program t
  6812. + end
  6813. +"
  6814. +
  6815. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6816. + _LT_TAG_COMPILER
  6817. +
  6818. + # save warnings/boilerplate of simple test code
  6819. + _LT_COMPILER_BOILERPLATE
  6820. + _LT_LINKER_BOILERPLATE
  6821. +
  6822. + # Allow CC to be a program name with arguments.
  6823. + lt_save_CC="$CC"
  6824. + lt_save_GCC=$GCC
  6825. + CC=${FC-"f95"}
  6826. + compiler=$CC
  6827. + GCC=$ac_cv_fc_compiler_gnu
  6828. +
  6829. + _LT_TAGVAR(compiler, $1)=$CC
  6830. + _LT_CC_BASENAME([$compiler])
  6831. +
  6832. + if test -n "$compiler"; then
  6833. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6834. + AC_MSG_RESULT([$can_build_shared])
  6835. +
  6836. + AC_MSG_CHECKING([whether to build shared libraries])
  6837. + test "$can_build_shared" = "no" && enable_shared=no
  6838. +
  6839. + # On AIX, shared libraries and static libraries use the same namespace, and
  6840. + # are all built from PIC.
  6841. + case $host_os in
  6842. + aix3*)
  6843. + test "$enable_shared" = yes && enable_static=no
  6844. + if test -n "$RANLIB"; then
  6845. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6846. + postinstall_cmds='$RANLIB $lib'
  6847. + fi
  6848. + ;;
  6849. + aix[[4-9]]*)
  6850. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6851. + test "$enable_shared" = yes && enable_static=no
  6852. + fi
  6853. + ;;
  6854. + esac
  6855. + AC_MSG_RESULT([$enable_shared])
  6856. +
  6857. + AC_MSG_CHECKING([whether to build static libraries])
  6858. + # Make sure either enable_shared or enable_static is yes.
  6859. + test "$enable_shared" = yes || enable_static=yes
  6860. + AC_MSG_RESULT([$enable_static])
  6861. +
  6862. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6863. + _LT_TAGVAR(LD, $1)="$LD"
  6864. +
  6865. + ## CAVEAT EMPTOR:
  6866. + ## There is no encapsulation within the following macros, do not change
  6867. + ## the running order or otherwise move them around unless you know exactly
  6868. + ## what you are doing...
  6869. + _LT_SYS_HIDDEN_LIBDEPS($1)
  6870. + _LT_COMPILER_PIC($1)
  6871. + _LT_COMPILER_C_O($1)
  6872. + _LT_COMPILER_FILE_LOCKS($1)
  6873. + _LT_LINKER_SHLIBS($1)
  6874. + _LT_SYS_DYNAMIC_LINKER($1)
  6875. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6876. +
  6877. + _LT_CONFIG($1)
  6878. + fi # test -n "$compiler"
  6879. +
  6880. + GCC=$lt_save_GCC
  6881. + CC="$lt_save_CC"
  6882. +fi # test "$_lt_disable_FC" != yes
  6883. +
  6884. +AC_LANG_POP
  6885. +])# _LT_LANG_FC_CONFIG
  6886. +
  6887. +
  6888. +# _LT_LANG_GCJ_CONFIG([TAG])
  6889. +# --------------------------
  6890. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  6891. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  6892. +# to write the compiler configuration to `libtool'.
  6893. +m4_defun([_LT_LANG_GCJ_CONFIG],
  6894. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  6895. +AC_LANG_SAVE
  6896. +
  6897. +# Source file extension for Java test sources.
  6898. +ac_ext=java
  6899. +
  6900. +# Object file extension for compiled Java test sources.
  6901. +objext=o
  6902. +_LT_TAGVAR(objext, $1)=$objext
  6903. +
  6904. +# Code to be used in simple compile tests
  6905. +lt_simple_compile_test_code="class foo {}"
  6906. +
  6907. +# Code to be used in simple link tests
  6908. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6909. +
  6910. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6911. +_LT_TAG_COMPILER
  6912. +
  6913. +# save warnings/boilerplate of simple test code
  6914. +_LT_COMPILER_BOILERPLATE
  6915. +_LT_LINKER_BOILERPLATE
  6916. +
  6917. +# Allow CC to be a program name with arguments.
  6918. +lt_save_CC="$CC"
  6919. +lt_save_GCC=$GCC
  6920. +GCC=yes
  6921. +CC=${GCJ-"gcj"}
  6922. +compiler=$CC
  6923. +_LT_TAGVAR(compiler, $1)=$CC
  6924. +_LT_TAGVAR(LD, $1)="$LD"
  6925. +_LT_CC_BASENAME([$compiler])
  6926. +
  6927. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6928. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6929. +
  6930. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6931. +
  6932. +if test -n "$compiler"; then
  6933. + _LT_COMPILER_NO_RTTI($1)
  6934. + _LT_COMPILER_PIC($1)
  6935. + _LT_COMPILER_C_O($1)
  6936. + _LT_COMPILER_FILE_LOCKS($1)
  6937. + _LT_LINKER_SHLIBS($1)
  6938. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6939. +
  6940. + _LT_CONFIG($1)
  6941. +fi
  6942. +
  6943. +AC_LANG_RESTORE
  6944. +
  6945. +GCC=$lt_save_GCC
  6946. +CC="$lt_save_CC"
  6947. +])# _LT_LANG_GCJ_CONFIG
  6948. +
  6949. +
  6950. +# _LT_LANG_RC_CONFIG([TAG])
  6951. +# -------------------------
  6952. +# Ensure that the configuration variables for the Windows resource compiler
  6953. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  6954. +# to write the compiler configuration to `libtool'.
  6955. +m4_defun([_LT_LANG_RC_CONFIG],
  6956. +[AC_REQUIRE([LT_PROG_RC])dnl
  6957. +AC_LANG_SAVE
  6958. +
  6959. +# Source file extension for RC test sources.
  6960. +ac_ext=rc
  6961. +
  6962. +# Object file extension for compiled RC test sources.
  6963. +objext=o
  6964. +_LT_TAGVAR(objext, $1)=$objext
  6965. +
  6966. +# Code to be used in simple compile tests
  6967. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6968. +
  6969. +# Code to be used in simple link tests
  6970. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  6971. +
  6972. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6973. +_LT_TAG_COMPILER
  6974. +
  6975. +# save warnings/boilerplate of simple test code
  6976. +_LT_COMPILER_BOILERPLATE
  6977. +_LT_LINKER_BOILERPLATE
  6978. +
  6979. +# Allow CC to be a program name with arguments.
  6980. +lt_save_CC="$CC"
  6981. +lt_save_GCC=$GCC
  6982. +GCC=
  6983. +CC=${RC-"windres"}
  6984. +compiler=$CC
  6985. +_LT_TAGVAR(compiler, $1)=$CC
  6986. +_LT_CC_BASENAME([$compiler])
  6987. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6988. +
  6989. +if test -n "$compiler"; then
  6990. + :
  6991. + _LT_CONFIG($1)
  6992. +fi
  6993. +
  6994. +GCC=$lt_save_GCC
  6995. +AC_LANG_RESTORE
  6996. +CC="$lt_save_CC"
  6997. +])# _LT_LANG_RC_CONFIG
  6998. +
  6999. +
  7000. +# LT_PROG_GCJ
  7001. +# -----------
  7002. +AC_DEFUN([LT_PROG_GCJ],
  7003. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7004. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7005. + [AC_CHECK_TOOL(GCJ, gcj,)
  7006. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7007. + AC_SUBST(GCJFLAGS)])])[]dnl
  7008. +])
  7009. +
  7010. +# Old name:
  7011. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7012. +dnl aclocal-1.4 backwards compatibility:
  7013. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7014. +
  7015. +
  7016. +# LT_PROG_RC
  7017. +# ----------
  7018. +AC_DEFUN([LT_PROG_RC],
  7019. +[AC_CHECK_TOOL(RC, windres,)
  7020. +])
  7021. +
  7022. +# Old name:
  7023. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7024. +dnl aclocal-1.4 backwards compatibility:
  7025. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7026. +
  7027. +
  7028. +# _LT_DECL_EGREP
  7029. +# --------------
  7030. +# If we don't have a new enough Autoconf to choose the best grep
  7031. +# available, choose the one first in the user's PATH.
  7032. +m4_defun([_LT_DECL_EGREP],
  7033. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  7034. +AC_REQUIRE([AC_PROG_FGREP])dnl
  7035. +test -z "$GREP" && GREP=grep
  7036. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7037. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  7038. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  7039. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7040. +AC_SUBST([GREP])
  7041. +])
  7042. +
  7043. +
  7044. +# _LT_DECL_OBJDUMP
  7045. +# --------------
  7046. +# If we don't have a new enough Autoconf to choose the best objdump
  7047. +# available, choose the one first in the user's PATH.
  7048. +m4_defun([_LT_DECL_OBJDUMP],
  7049. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7050. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7051. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7052. +AC_SUBST([OBJDUMP])
  7053. +])
  7054. +
  7055. +
  7056. +# _LT_DECL_SED
  7057. +# ------------
  7058. +# Check for a fully-functional sed program, that truncates
  7059. +# as few characters as possible. Prefer GNU sed if found.
  7060. +m4_defun([_LT_DECL_SED],
  7061. +[AC_PROG_SED
  7062. +test -z "$SED" && SED=sed
  7063. +Xsed="$SED -e 1s/^X//"
  7064. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7065. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7066. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7067. +])# _LT_DECL_SED
  7068. +
  7069. +m4_ifndef([AC_PROG_SED], [
  7070. +# NOTE: This macro has been submitted for inclusion into #
  7071. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  7072. +# a released version of Autoconf we should remove this #
  7073. +# macro and use it instead. #
  7074. +
  7075. +m4_defun([AC_PROG_SED],
  7076. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  7077. +AC_CACHE_VAL(lt_cv_path_SED,
  7078. +[# Loop through the user's path and test for sed and gsed.
  7079. +# Then use that list of sed's as ones to test for truncation.
  7080. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7081. +for as_dir in $PATH
  7082. +do
  7083. + IFS=$as_save_IFS
  7084. + test -z "$as_dir" && as_dir=.
  7085. + for lt_ac_prog in sed gsed; do
  7086. + for ac_exec_ext in '' $ac_executable_extensions; do
  7087. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7088. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7089. + fi
  7090. + done
  7091. + done
  7092. +done
  7093. +IFS=$as_save_IFS
  7094. +lt_ac_max=0
  7095. +lt_ac_count=0
  7096. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7097. +# along with /bin/sed that truncates output.
  7098. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7099. + test ! -f $lt_ac_sed && continue
  7100. + cat /dev/null > conftest.in
  7101. + lt_ac_count=0
  7102. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7103. + # Check for GNU sed and select it if it is found.
  7104. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7105. + lt_cv_path_SED=$lt_ac_sed
  7106. + break
  7107. + fi
  7108. + while true; do
  7109. + cat conftest.in conftest.in >conftest.tmp
  7110. + mv conftest.tmp conftest.in
  7111. + cp conftest.in conftest.nl
  7112. + echo >>conftest.nl
  7113. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7114. + cmp -s conftest.out conftest.nl || break
  7115. + # 10000 chars as input seems more than enough
  7116. + test $lt_ac_count -gt 10 && break
  7117. + lt_ac_count=`expr $lt_ac_count + 1`
  7118. + if test $lt_ac_count -gt $lt_ac_max; then
  7119. + lt_ac_max=$lt_ac_count
  7120. + lt_cv_path_SED=$lt_ac_sed
  7121. + fi
  7122. + done
  7123. +done
  7124. +])
  7125. +SED=$lt_cv_path_SED
  7126. +AC_SUBST([SED])
  7127. +AC_MSG_RESULT([$SED])
  7128. +])#AC_PROG_SED
  7129. +])#m4_ifndef
  7130. +
  7131. +# Old name:
  7132. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7133. +dnl aclocal-1.4 backwards compatibility:
  7134. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7135. +
  7136. +
  7137. +# _LT_CHECK_SHELL_FEATURES
  7138. +# ------------------------
  7139. +# Find out whether the shell is Bourne or XSI compatible,
  7140. +# or has some other useful features.
  7141. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  7142. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7143. +# Try some XSI features
  7144. +xsi_shell=no
  7145. +( _lt_dummy="a/b/c"
  7146. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  7147. + = c,a/b,, \
  7148. + && eval 'test $(( 1 + 1 )) -eq 2 \
  7149. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7150. + && xsi_shell=yes
  7151. +AC_MSG_RESULT([$xsi_shell])
  7152. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7153. +
  7154. +AC_MSG_CHECKING([whether the shell understands "+="])
  7155. +lt_shell_append=no
  7156. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7157. + >/dev/null 2>&1 \
  7158. + && lt_shell_append=yes
  7159. +AC_MSG_RESULT([$lt_shell_append])
  7160. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7161. +
  7162. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7163. + lt_unset=unset
  7164. +else
  7165. + lt_unset=false
  7166. +fi
  7167. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7168. +
  7169. +# test EBCDIC or ASCII
  7170. +case `echo X|tr X '\101'` in
  7171. + A) # ASCII based system
  7172. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7173. + lt_SP2NL='tr \040 \012'
  7174. + lt_NL2SP='tr \015\012 \040\040'
  7175. + ;;
  7176. + *) # EBCDIC based system
  7177. + lt_SP2NL='tr \100 \n'
  7178. + lt_NL2SP='tr \r\n \100\100'
  7179. + ;;
  7180. +esac
  7181. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7182. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7183. +])# _LT_CHECK_SHELL_FEATURES
  7184. +
  7185. +
  7186. +# _LT_PROG_XSI_SHELLFNS
  7187. +# ---------------------
  7188. +# Bourne and XSI compatible variants of some useful shell functions.
  7189. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  7190. +[case $xsi_shell in
  7191. + yes)
  7192. + cat << \_LT_EOF >> "$cfgfile"
  7193. +
  7194. +# func_dirname file append nondir_replacement
  7195. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7196. +# otherwise set result to NONDIR_REPLACEMENT.
  7197. +func_dirname ()
  7198. +{
  7199. + case ${1} in
  7200. + */*) func_dirname_result="${1%/*}${2}" ;;
  7201. + * ) func_dirname_result="${3}" ;;
  7202. + esac
  7203. +}
  7204. +
  7205. +# func_basename file
  7206. +func_basename ()
  7207. +{
  7208. + func_basename_result="${1##*/}"
  7209. +}
  7210. +
  7211. +# func_dirname_and_basename file append nondir_replacement
  7212. +# perform func_basename and func_dirname in a single function
  7213. +# call:
  7214. +# dirname: Compute the dirname of FILE. If nonempty,
  7215. +# add APPEND to the result, otherwise set result
  7216. +# to NONDIR_REPLACEMENT.
  7217. +# value returned in "$func_dirname_result"
  7218. +# basename: Compute filename of FILE.
  7219. +# value retuned in "$func_basename_result"
  7220. +# Implementation must be kept synchronized with func_dirname
  7221. +# and func_basename. For efficiency, we do not delegate to
  7222. +# those functions but instead duplicate the functionality here.
  7223. +func_dirname_and_basename ()
  7224. +{
  7225. + case ${1} in
  7226. + */*) func_dirname_result="${1%/*}${2}" ;;
  7227. + * ) func_dirname_result="${3}" ;;
  7228. + esac
  7229. + func_basename_result="${1##*/}"
  7230. +}
  7231. +
  7232. +# func_stripname prefix suffix name
  7233. +# strip PREFIX and SUFFIX off of NAME.
  7234. +# PREFIX and SUFFIX must not contain globbing or regex special
  7235. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7236. +# dot (in which case that matches only a dot).
  7237. +func_stripname ()
  7238. +{
  7239. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7240. + # positional parameters, so assign one to ordinary parameter first.
  7241. + func_stripname_result=${3}
  7242. + func_stripname_result=${func_stripname_result#"${1}"}
  7243. + func_stripname_result=${func_stripname_result%"${2}"}
  7244. +}
  7245. +
  7246. +# func_opt_split
  7247. +func_opt_split ()
  7248. +{
  7249. + func_opt_split_opt=${1%%=*}
  7250. + func_opt_split_arg=${1#*=}
  7251. +}
  7252. +
  7253. +# func_lo2o object
  7254. +func_lo2o ()
  7255. +{
  7256. + case ${1} in
  7257. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7258. + *) func_lo2o_result=${1} ;;
  7259. + esac
  7260. +}
  7261. +
  7262. +# func_xform libobj-or-source
  7263. +func_xform ()
  7264. +{
  7265. + func_xform_result=${1%.*}.lo
  7266. +}
  7267. +
  7268. +# func_arith arithmetic-term...
  7269. +func_arith ()
  7270. +{
  7271. + func_arith_result=$(( $[*] ))
  7272. +}
  7273. +
  7274. +# func_len string
  7275. +# STRING may not start with a hyphen.
  7276. +func_len ()
  7277. +{
  7278. + func_len_result=${#1}
  7279. +}
  7280. +
  7281. +_LT_EOF
  7282. + ;;
  7283. + *) # Bourne compatible functions.
  7284. + cat << \_LT_EOF >> "$cfgfile"
  7285. +
  7286. +# func_dirname file append nondir_replacement
  7287. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7288. +# otherwise set result to NONDIR_REPLACEMENT.
  7289. +func_dirname ()
  7290. +{
  7291. + # Extract subdirectory from the argument.
  7292. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  7293. + if test "X$func_dirname_result" = "X${1}"; then
  7294. + func_dirname_result="${3}"
  7295. + else
  7296. + func_dirname_result="$func_dirname_result${2}"
  7297. + fi
  7298. +}
  7299. +
  7300. +# func_basename file
  7301. +func_basename ()
  7302. +{
  7303. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  7304. +}
  7305. +
  7306. +dnl func_dirname_and_basename
  7307. +dnl A portable version of this function is already defined in general.m4sh
  7308. +dnl so there is no need for it here.
  7309. +
  7310. +# func_stripname prefix suffix name
  7311. +# strip PREFIX and SUFFIX off of NAME.
  7312. +# PREFIX and SUFFIX must not contain globbing or regex special
  7313. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7314. +# dot (in which case that matches only a dot).
  7315. +# func_strip_suffix prefix name
  7316. +func_stripname ()
  7317. +{
  7318. + case ${2} in
  7319. + .*) func_stripname_result=`$ECHO "X${3}" \
  7320. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  7321. + *) func_stripname_result=`$ECHO "X${3}" \
  7322. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  7323. + esac
  7324. +}
  7325. +
  7326. +# sed scripts:
  7327. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  7328. +my_sed_long_arg='1s/^-[[^=]]*=//'
  7329. +
  7330. +# func_opt_split
  7331. +func_opt_split ()
  7332. +{
  7333. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  7334. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  7335. +}
  7336. +
  7337. +# func_lo2o object
  7338. +func_lo2o ()
  7339. +{
  7340. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  7341. +}
  7342. +
  7343. +# func_xform libobj-or-source
  7344. +func_xform ()
  7345. +{
  7346. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  7347. +}
  7348. +
  7349. +# func_arith arithmetic-term...
  7350. +func_arith ()
  7351. +{
  7352. + func_arith_result=`expr "$[@]"`
  7353. +}
  7354. +
  7355. +# func_len string
  7356. +# STRING may not start with a hyphen.
  7357. +func_len ()
  7358. +{
  7359. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  7360. +}
  7361. +
  7362. +_LT_EOF
  7363. +esac
  7364. +
  7365. +case $lt_shell_append in
  7366. + yes)
  7367. + cat << \_LT_EOF >> "$cfgfile"
  7368. +
  7369. +# func_append var value
  7370. +# Append VALUE to the end of shell variable VAR.
  7371. +func_append ()
  7372. +{
  7373. + eval "$[1]+=\$[2]"
  7374. +}
  7375. +_LT_EOF
  7376. + ;;
  7377. + *)
  7378. + cat << \_LT_EOF >> "$cfgfile"
  7379. +
  7380. +# func_append var value
  7381. +# Append VALUE to the end of shell variable VAR.
  7382. +func_append ()
  7383. +{
  7384. + eval "$[1]=\$$[1]\$[2]"
  7385. +}
  7386. +
  7387. +_LT_EOF
  7388. + ;;
  7389. + esac
  7390. +])
  7391. +
  7392. +# Helper functions for option handling. -*- Autoconf -*-
  7393. +#
  7394. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7395. +# Written by Gary V. Vaughan, 2004
  7396. +#
  7397. +# This file is free software; the Free Software Foundation gives
  7398. +# unlimited permission to copy and/or distribute it, with or without
  7399. +# modifications, as long as this notice is preserved.
  7400. +
  7401. +# serial 6 ltoptions.m4
  7402. +
  7403. +# This is to help aclocal find these macros, as it can't see m4_define.
  7404. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7405. +
  7406. +
  7407. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7408. +# ------------------------------------------
  7409. +m4_define([_LT_MANGLE_OPTION],
  7410. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7411. +
  7412. +
  7413. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7414. +# ---------------------------------------
  7415. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7416. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7417. +# saved as a flag.
  7418. +m4_define([_LT_SET_OPTION],
  7419. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7420. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7421. + _LT_MANGLE_DEFUN([$1], [$2]),
  7422. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  7423. +])
  7424. +
  7425. +
  7426. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7427. +# ------------------------------------------------------------
  7428. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7429. +m4_define([_LT_IF_OPTION],
  7430. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7431. +
  7432. +
  7433. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7434. +# -------------------------------------------------------
  7435. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7436. +# are set.
  7437. +m4_define([_LT_UNLESS_OPTIONS],
  7438. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7439. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7440. + [m4_define([$0_found])])])[]dnl
  7441. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7442. +])[]dnl
  7443. +])
  7444. +
  7445. +
  7446. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7447. +# ----------------------------------------
  7448. +# OPTION-LIST is a space-separated list of Libtool options associated
  7449. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  7450. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7451. +# the unknown option and exit.
  7452. +m4_defun([_LT_SET_OPTIONS],
  7453. +[# Set options
  7454. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7455. + [_LT_SET_OPTION([$1], _LT_Option)])
  7456. +
  7457. +m4_if([$1],[LT_INIT],[
  7458. + dnl
  7459. + dnl Simply set some default values (i.e off) if boolean options were not
  7460. + dnl specified:
  7461. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7462. + ])
  7463. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7464. + ])
  7465. + dnl
  7466. + dnl If no reference was made to various pairs of opposing options, then
  7467. + dnl we run the default mode handler for the pair. For example, if neither
  7468. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7469. + dnl archives by default:
  7470. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7471. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7472. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7473. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7474. + [_LT_ENABLE_FAST_INSTALL])
  7475. + ])
  7476. +])# _LT_SET_OPTIONS
  7477. +
  7478. +
  7479. +
  7480. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7481. +# -----------------------------------------
  7482. +m4_define([_LT_MANGLE_DEFUN],
  7483. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7484. +
  7485. +
  7486. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7487. +# -----------------------------------------------
  7488. +m4_define([LT_OPTION_DEFINE],
  7489. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7490. +])# LT_OPTION_DEFINE
  7491. +
  7492. +
  7493. +# dlopen
  7494. +# ------
  7495. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7496. +])
  7497. +
  7498. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7499. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  7500. +AC_DIAGNOSE([obsolete],
  7501. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7502. +put the `dlopen' option into LT_INIT's first parameter.])
  7503. +])
  7504. +
  7505. +dnl aclocal-1.4 backwards compatibility:
  7506. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7507. +
  7508. +
  7509. +# win32-dll
  7510. +# ---------
  7511. +# Declare package support for building win32 dll's.
  7512. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7513. +[enable_win32_dll=yes
  7514. +
  7515. +case $host in
  7516. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  7517. + AC_CHECK_TOOL(AS, as, false)
  7518. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7519. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7520. + ;;
  7521. +esac
  7522. +
  7523. +test -z "$AS" && AS=as
  7524. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  7525. +
  7526. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  7527. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  7528. +
  7529. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7530. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  7531. +])# win32-dll
  7532. +
  7533. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7534. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7535. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  7536. +AC_DIAGNOSE([obsolete],
  7537. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7538. +put the `win32-dll' option into LT_INIT's first parameter.])
  7539. +])
  7540. +
  7541. +dnl aclocal-1.4 backwards compatibility:
  7542. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7543. +
  7544. +
  7545. +# _LT_ENABLE_SHARED([DEFAULT])
  7546. +# ----------------------------
  7547. +# implement the --enable-shared flag, and supports the `shared' and
  7548. +# `disable-shared' LT_INIT options.
  7549. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7550. +m4_define([_LT_ENABLE_SHARED],
  7551. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7552. +AC_ARG_ENABLE([shared],
  7553. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7554. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7555. + [p=${PACKAGE-default}
  7556. + case $enableval in
  7557. + yes) enable_shared=yes ;;
  7558. + no) enable_shared=no ;;
  7559. + *)
  7560. + enable_shared=no
  7561. + # Look at the argument we got. We use all the common list separators.
  7562. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7563. + for pkg in $enableval; do
  7564. + IFS="$lt_save_ifs"
  7565. + if test "X$pkg" = "X$p"; then
  7566. + enable_shared=yes
  7567. + fi
  7568. + done
  7569. + IFS="$lt_save_ifs"
  7570. + ;;
  7571. + esac],
  7572. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7573. +
  7574. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7575. + [Whether or not to build shared libraries])
  7576. +])# _LT_ENABLE_SHARED
  7577. +
  7578. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7579. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7580. +
  7581. +# Old names:
  7582. +AC_DEFUN([AC_ENABLE_SHARED],
  7583. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7584. +])
  7585. +
  7586. +AC_DEFUN([AC_DISABLE_SHARED],
  7587. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  7588. +])
  7589. +
  7590. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7591. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7592. +
  7593. +dnl aclocal-1.4 backwards compatibility:
  7594. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7595. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7596. +
  7597. +
  7598. +
  7599. +# _LT_ENABLE_STATIC([DEFAULT])
  7600. +# ----------------------------
  7601. +# implement the --enable-static flag, and support the `static' and
  7602. +# `disable-static' LT_INIT options.
  7603. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7604. +m4_define([_LT_ENABLE_STATIC],
  7605. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7606. +AC_ARG_ENABLE([static],
  7607. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7608. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7609. + [p=${PACKAGE-default}
  7610. + case $enableval in
  7611. + yes) enable_static=yes ;;
  7612. + no) enable_static=no ;;
  7613. + *)
  7614. + enable_static=no
  7615. + # Look at the argument we got. We use all the common list separators.
  7616. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7617. + for pkg in $enableval; do
  7618. + IFS="$lt_save_ifs"
  7619. + if test "X$pkg" = "X$p"; then
  7620. + enable_static=yes
  7621. + fi
  7622. + done
  7623. + IFS="$lt_save_ifs"
  7624. + ;;
  7625. + esac],
  7626. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7627. +
  7628. + _LT_DECL([build_old_libs], [enable_static], [0],
  7629. + [Whether or not to build static libraries])
  7630. +])# _LT_ENABLE_STATIC
  7631. +
  7632. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7633. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7634. +
  7635. +# Old names:
  7636. +AC_DEFUN([AC_ENABLE_STATIC],
  7637. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7638. +])
  7639. +
  7640. +AC_DEFUN([AC_DISABLE_STATIC],
  7641. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  7642. +])
  7643. +
  7644. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7645. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7646. +
  7647. +dnl aclocal-1.4 backwards compatibility:
  7648. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7649. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7650. +
  7651. +
  7652. +
  7653. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7654. +# ----------------------------------
  7655. +# implement the --enable-fast-install flag, and support the `fast-install'
  7656. +# and `disable-fast-install' LT_INIT options.
  7657. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7658. +m4_define([_LT_ENABLE_FAST_INSTALL],
  7659. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7660. +AC_ARG_ENABLE([fast-install],
  7661. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7662. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7663. + [p=${PACKAGE-default}
  7664. + case $enableval in
  7665. + yes) enable_fast_install=yes ;;
  7666. + no) enable_fast_install=no ;;
  7667. + *)
  7668. + enable_fast_install=no
  7669. + # Look at the argument we got. We use all the common list separators.
  7670. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7671. + for pkg in $enableval; do
  7672. + IFS="$lt_save_ifs"
  7673. + if test "X$pkg" = "X$p"; then
  7674. + enable_fast_install=yes
  7675. + fi
  7676. + done
  7677. + IFS="$lt_save_ifs"
  7678. + ;;
  7679. + esac],
  7680. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7681. +
  7682. +_LT_DECL([fast_install], [enable_fast_install], [0],
  7683. + [Whether or not to optimize for fast installation])dnl
  7684. +])# _LT_ENABLE_FAST_INSTALL
  7685. +
  7686. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7687. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7688. +
  7689. +# Old names:
  7690. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7691. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7692. +AC_DIAGNOSE([obsolete],
  7693. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7694. +the `fast-install' option into LT_INIT's first parameter.])
  7695. +])
  7696. +
  7697. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7698. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7699. +AC_DIAGNOSE([obsolete],
  7700. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7701. +the `disable-fast-install' option into LT_INIT's first parameter.])
  7702. +])
  7703. +
  7704. +dnl aclocal-1.4 backwards compatibility:
  7705. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7706. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7707. +
  7708. +
  7709. +# _LT_WITH_PIC([MODE])
  7710. +# --------------------
  7711. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7712. +# LT_INIT options.
  7713. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7714. +m4_define([_LT_WITH_PIC],
  7715. +[AC_ARG_WITH([pic],
  7716. + [AS_HELP_STRING([--with-pic],
  7717. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7718. + [pic_mode="$withval"],
  7719. + [pic_mode=default])
  7720. +
  7721. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7722. +
  7723. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7724. +])# _LT_WITH_PIC
  7725. +
  7726. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7727. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7728. +
  7729. +# Old name:
  7730. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  7731. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  7732. +AC_DIAGNOSE([obsolete],
  7733. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7734. +put the `pic-only' option into LT_INIT's first parameter.])
  7735. +])
  7736. +
  7737. +dnl aclocal-1.4 backwards compatibility:
  7738. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7739. +
  7740. +
  7741. +m4_define([_LTDL_MODE], [])
  7742. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7743. + [m4_define([_LTDL_MODE], [nonrecursive])])
  7744. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7745. + [m4_define([_LTDL_MODE], [recursive])])
  7746. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7747. + [m4_define([_LTDL_MODE], [subproject])])
  7748. +
  7749. +m4_define([_LTDL_TYPE], [])
  7750. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7751. + [m4_define([_LTDL_TYPE], [installable])])
  7752. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7753. + [m4_define([_LTDL_TYPE], [convenience])])
  7754. +
  7755. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7756. +#
  7757. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7758. +# Written by Gary V. Vaughan, 2004
  7759. +#
  7760. +# This file is free software; the Free Software Foundation gives
  7761. +# unlimited permission to copy and/or distribute it, with or without
  7762. +# modifications, as long as this notice is preserved.
  7763. +
  7764. +# serial 6 ltsugar.m4
  7765. +
  7766. +# This is to help aclocal find these macros, as it can't see m4_define.
  7767. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7768. +
  7769. +
  7770. +# lt_join(SEP, ARG1, [ARG2...])
  7771. +# -----------------------------
  7772. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7773. +# associated separator.
  7774. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7775. +# versions in m4sugar had bugs.
  7776. +m4_define([lt_join],
  7777. +[m4_if([$#], [1], [],
  7778. + [$#], [2], [[$2]],
  7779. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7780. +m4_define([_lt_join],
  7781. +[m4_if([$#$2], [2], [],
  7782. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7783. +
  7784. +
  7785. +# lt_car(LIST)
  7786. +# lt_cdr(LIST)
  7787. +# ------------
  7788. +# Manipulate m4 lists.
  7789. +# These macros are necessary as long as will still need to support
  7790. +# Autoconf-2.59 which quotes differently.
  7791. +m4_define([lt_car], [[$1]])
  7792. +m4_define([lt_cdr],
  7793. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7794. + [$#], 1, [],
  7795. + [m4_dquote(m4_shift($@))])])
  7796. +m4_define([lt_unquote], $1)
  7797. +
  7798. +
  7799. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7800. +# ------------------------------------------
  7801. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7802. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  7803. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7804. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7805. +# than defined and empty).
  7806. +#
  7807. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  7808. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7809. +m4_define([lt_append],
  7810. +[m4_define([$1],
  7811. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7812. +
  7813. +
  7814. +
  7815. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7816. +# ----------------------------------------------------------
  7817. +# Produce a SEP delimited list of all paired combinations of elements of
  7818. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7819. +# has the form PREFIXmINFIXSUFFIXn.
  7820. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  7821. +m4_define([lt_combine],
  7822. +[m4_if(m4_eval([$# > 3]), [1],
  7823. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7824. +[[m4_foreach([_Lt_prefix], [$2],
  7825. + [m4_foreach([_Lt_suffix],
  7826. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7827. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7828. +
  7829. +
  7830. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7831. +# -----------------------------------------------------------------------
  7832. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7833. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7834. +m4_define([lt_if_append_uniq],
  7835. +[m4_ifdef([$1],
  7836. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7837. + [lt_append([$1], [$2], [$3])$4],
  7838. + [$5])],
  7839. + [lt_append([$1], [$2], [$3])$4])])
  7840. +
  7841. +
  7842. +# lt_dict_add(DICT, KEY, VALUE)
  7843. +# -----------------------------
  7844. +m4_define([lt_dict_add],
  7845. +[m4_define([$1($2)], [$3])])
  7846. +
  7847. +
  7848. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7849. +# --------------------------------------------
  7850. +m4_define([lt_dict_add_subkey],
  7851. +[m4_define([$1($2:$3)], [$4])])
  7852. +
  7853. +
  7854. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  7855. +# ----------------------------------
  7856. +m4_define([lt_dict_fetch],
  7857. +[m4_ifval([$3],
  7858. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7859. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7860. +
  7861. +
  7862. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7863. +# -----------------------------------------------------------------
  7864. +m4_define([lt_if_dict_fetch],
  7865. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7866. + [$5],
  7867. + [$6])])
  7868. +
  7869. +
  7870. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7871. +# --------------------------------------------------------------
  7872. +m4_define([lt_dict_filter],
  7873. +[m4_if([$5], [], [],
  7874. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7875. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7876. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7877. +])
  7878. +
  7879. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  7880. +#
  7881. +# Copyright (C) 2004 Free Software Foundation, Inc.
  7882. +# Written by Scott James Remnant, 2004
  7883. +#
  7884. +# This file is free software; the Free Software Foundation gives
  7885. +# unlimited permission to copy and/or distribute it, with or without
  7886. +# modifications, as long as this notice is preserved.
  7887. +
  7888. +# Generated from ltversion.in.
  7889. +
  7890. +# serial 3017 ltversion.m4
  7891. +# This file is part of GNU Libtool
  7892. +
  7893. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  7894. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  7895. +
  7896. +AC_DEFUN([LTVERSION_VERSION],
  7897. +[macro_version='2.2.6b'
  7898. +macro_revision='1.3017'
  7899. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7900. +_LT_DECL(, macro_revision, 0)
  7901. +])
  7902. +
  7903. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7904. +#
  7905. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  7906. +# Written by Scott James Remnant, 2004.
  7907. +#
  7908. +# This file is free software; the Free Software Foundation gives
  7909. +# unlimited permission to copy and/or distribute it, with or without
  7910. +# modifications, as long as this notice is preserved.
  7911. +
  7912. +# serial 4 lt~obsolete.m4
  7913. +
  7914. +# These exist entirely to fool aclocal when bootstrapping libtool.
  7915. +#
  7916. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7917. +# which have later been changed to m4_define as they aren't part of the
  7918. +# exported API, or moved to Autoconf or Automake where they belong.
  7919. +#
  7920. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7921. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7922. +# using a macro with the same name in our local m4/libtool.m4 it'll
  7923. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7924. +# and doesn't know about Autoconf macros at all.)
  7925. +#
  7926. +# So we provide this file, which has a silly filename so it's always
  7927. +# included after everything else. This provides aclocal with the
  7928. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7929. +# because those macros already exist, or will be overwritten later.
  7930. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7931. +#
  7932. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7933. +# Yes, that means every name once taken will need to remain here until
  7934. +# we give up compatibility with versions before 1.7, at which point
  7935. +# we need to keep only those names which we still refer to.
  7936. +
  7937. +# This is to help aclocal find these macros, as it can't see m4_define.
  7938. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7939. +
  7940. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7941. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7942. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7943. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7944. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7945. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7946. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7947. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7948. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7949. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7950. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7951. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7952. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7953. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7954. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7955. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7956. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7957. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7958. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7959. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7960. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7961. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7962. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7963. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7964. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7965. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7966. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7967. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7968. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7969. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7970. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7971. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7972. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7973. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7974. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7975. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7976. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7977. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7978. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7979. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7980. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7981. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7982. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  7983. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7984. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7985. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7986. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7987. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7988. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7989. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7990. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7991. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7992. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7993. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7994. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7995. +
  7996. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7997. +#
  7998. +# This file is free software; the Free Software Foundation
  7999. +# gives unlimited permission to copy and/or distribute it,
  8000. +# with or without modifications, as long as this notice is preserved.
  8001. +
  8002. +# AM_AUTOMAKE_VERSION(VERSION)
  8003. +# ----------------------------
  8004. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  8005. +# generated from the m4 files accompanying Automake X.Y.
  8006. +# (This private macro should not be called outside this file.)
  8007. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  8008. +[am__api_version='1.11'
  8009. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  8010. +dnl require some minimum version. Point them to the right macro.
  8011. +m4_if([$1], [1.11.1], [],
  8012. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  8013. +])
  8014. +
  8015. +# _AM_AUTOCONF_VERSION(VERSION)
  8016. +# -----------------------------
  8017. +# aclocal traces this macro to find the Autoconf version.
  8018. +# This is a private macro too. Using m4_define simplifies
  8019. +# the logic in aclocal, which can simply ignore this definition.
  8020. +m4_define([_AM_AUTOCONF_VERSION], [])
  8021. +
  8022. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  8023. +# -------------------------------
  8024. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  8025. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  8026. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8027. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  8028. +m4_ifndef([AC_AUTOCONF_VERSION],
  8029. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  8030. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  8031. +
  8032. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  8033. +
  8034. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8035. +#
  8036. +# This file is free software; the Free Software Foundation
  8037. +# gives unlimited permission to copy and/or distribute it,
  8038. +# with or without modifications, as long as this notice is preserved.
  8039. +
  8040. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8041. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  8042. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  8043. +#
  8044. +# Of course, Automake must honor this variable whenever it calls a
  8045. +# tool from the auxiliary directory. The problem is that $srcdir (and
  8046. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  8047. +# depending on how configure is run. This is pretty annoying, since
  8048. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8049. +# source directory, any form will work fine, but in subdirectories a
  8050. +# relative path needs to be adjusted first.
  8051. +#
  8052. +# $ac_aux_dir/missing
  8053. +# fails when called from a subdirectory if $ac_aux_dir is relative
  8054. +# $top_srcdir/$ac_aux_dir/missing
  8055. +# fails if $ac_aux_dir is absolute,
  8056. +# fails when called from a subdirectory in a VPATH build with
  8057. +# a relative $ac_aux_dir
  8058. +#
  8059. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8060. +# are both prefixed by $srcdir. In an in-source build this is usually
  8061. +# harmless because $srcdir is `.', but things will broke when you
  8062. +# start a VPATH build or use an absolute $srcdir.
  8063. +#
  8064. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8065. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8066. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8067. +# and then we would define $MISSING as
  8068. +# MISSING="\${SHELL} $am_aux_dir/missing"
  8069. +# This will work as long as MISSING is not called from configure, because
  8070. +# unfortunately $(top_srcdir) has no meaning in configure.
  8071. +# However there are other variables, like CC, which are often used in
  8072. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  8073. +#
  8074. +# Another solution, used here, is to always expand $ac_aux_dir to an
  8075. +# absolute PATH. The drawback is that using absolute paths prevent a
  8076. +# configured tree to be moved without reconfiguration.
  8077. +
  8078. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  8079. +[dnl Rely on autoconf to set up CDPATH properly.
  8080. +AC_PREREQ([2.50])dnl
  8081. +# expand $ac_aux_dir to an absolute path
  8082. +am_aux_dir=`cd $ac_aux_dir && pwd`
  8083. +])
  8084. +
  8085. +# AM_CONDITIONAL -*- Autoconf -*-
  8086. +
  8087. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  8088. +# Free Software Foundation, Inc.
  8089. +#
  8090. +# This file is free software; the Free Software Foundation
  8091. +# gives unlimited permission to copy and/or distribute it,
  8092. +# with or without modifications, as long as this notice is preserved.
  8093. +
  8094. +# serial 9
  8095. +
  8096. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8097. +# -------------------------------------
  8098. +# Define a conditional.
  8099. +AC_DEFUN([AM_CONDITIONAL],
  8100. +[AC_PREREQ(2.52)dnl
  8101. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8102. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8103. +AC_SUBST([$1_TRUE])dnl
  8104. +AC_SUBST([$1_FALSE])dnl
  8105. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8106. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8107. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8108. +if $2; then
  8109. + $1_TRUE=
  8110. + $1_FALSE='#'
  8111. +else
  8112. + $1_TRUE='#'
  8113. + $1_FALSE=
  8114. +fi
  8115. +AC_CONFIG_COMMANDS_PRE(
  8116. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8117. + AC_MSG_ERROR([[conditional "$1" was never defined.
  8118. +Usually this means the macro was only invoked conditionally.]])
  8119. +fi])])
  8120. +
  8121. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  8122. +# Free Software Foundation, Inc.
  8123. +#
  8124. +# This file is free software; the Free Software Foundation
  8125. +# gives unlimited permission to copy and/or distribute it,
  8126. +# with or without modifications, as long as this notice is preserved.
  8127. +
  8128. +# serial 10
  8129. +
  8130. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8131. +# written in clear, in which case automake, when reading aclocal.m4,
  8132. +# will think it sees a *use*, and therefore will trigger all it's
  8133. +# C support machinery. Also note that it means that autoscan, seeing
  8134. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8135. +
  8136. +
  8137. +# _AM_DEPENDENCIES(NAME)
  8138. +# ----------------------
  8139. +# See how the compiler implements dependency checking.
  8140. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  8141. +# We try a few techniques and use that to set a single cache variable.
  8142. +#
  8143. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8144. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8145. +# dependency, and given that the user is not expected to run this macro,
  8146. +# just rely on AC_PROG_CC.
  8147. +AC_DEFUN([_AM_DEPENDENCIES],
  8148. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  8149. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8150. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8151. +AC_REQUIRE([AM_DEP_TRACK])dnl
  8152. +
  8153. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8154. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8155. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8156. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  8157. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8158. + [depcc="$$1" am_compiler_list=])
  8159. +
  8160. +AC_CACHE_CHECK([dependency style of $depcc],
  8161. + [am_cv_$1_dependencies_compiler_type],
  8162. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8163. + # We make a subdir and do the tests there. Otherwise we can end up
  8164. + # making bogus files that we don't know about and never remove. For
  8165. + # instance it was reported that on HP-UX the gcc test will end up
  8166. + # making a dummy file named `D' -- because `-MD' means `put the output
  8167. + # in D'.
  8168. + mkdir conftest.dir
  8169. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8170. + # using a relative directory.
  8171. + cp "$am_depcomp" conftest.dir
  8172. + cd conftest.dir
  8173. + # We will build objects and dependencies in a subdirectory because
  8174. + # it helps to detect inapplicable dependency modes. For instance
  8175. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8176. + # side effect of compilation, but ICC will put the dependencies in
  8177. + # the current directory while Tru64 will put them in the object
  8178. + # directory.
  8179. + mkdir sub
  8180. +
  8181. + am_cv_$1_dependencies_compiler_type=none
  8182. + if test "$am_compiler_list" = ""; then
  8183. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8184. + fi
  8185. + am__universal=false
  8186. + m4_case([$1], [CC],
  8187. + [case " $depcc " in #(
  8188. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8189. + esac],
  8190. + [CXX],
  8191. + [case " $depcc " in #(
  8192. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8193. + esac])
  8194. +
  8195. + for depmode in $am_compiler_list; do
  8196. + # Setup a source with many dependencies, because some compilers
  8197. + # like to wrap large dependency lists on column 80 (with \), and
  8198. + # we should not choose a depcomp mode which is confused by this.
  8199. + #
  8200. + # We need to recreate these files for each test, as the compiler may
  8201. + # overwrite some of them when testing with obscure command lines.
  8202. + # This happens at least with the AIX C compiler.
  8203. + : > sub/conftest.c
  8204. + for i in 1 2 3 4 5 6; do
  8205. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8206. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8207. + # Solaris 8's {/usr,}/bin/sh.
  8208. + touch sub/conftst$i.h
  8209. + done
  8210. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8211. +
  8212. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8213. + # mode. It turns out that the SunPro C++ compiler does not properly
  8214. + # handle `-M -o', and we need to detect this. Also, some Intel
  8215. + # versions had trouble with output in subdirs
  8216. + am__obj=sub/conftest.${OBJEXT-o}
  8217. + am__minus_obj="-o $am__obj"
  8218. + case $depmode in
  8219. + gcc)
  8220. + # This depmode causes a compiler race in universal mode.
  8221. + test "$am__universal" = false || continue
  8222. + ;;
  8223. + nosideeffect)
  8224. + # after this tag, mechanisms are not by side-effect, so they'll
  8225. + # only be used when explicitly requested
  8226. + if test "x$enable_dependency_tracking" = xyes; then
  8227. + continue
  8228. + else
  8229. + break
  8230. + fi
  8231. + ;;
  8232. + msvisualcpp | msvcmsys)
  8233. + # This compiler won't grok `-c -o', but also, the minuso test has
  8234. + # not run yet. These depmodes are late enough in the game, and
  8235. + # so weak that their functioning should not be impacted.
  8236. + am__obj=conftest.${OBJEXT-o}
  8237. + am__minus_obj=
  8238. + ;;
  8239. + none) break ;;
  8240. + esac
  8241. + if depmode=$depmode \
  8242. + source=sub/conftest.c object=$am__obj \
  8243. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8244. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8245. + >/dev/null 2>conftest.err &&
  8246. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8247. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8248. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8249. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8250. + # icc doesn't choke on unknown options, it will just issue warnings
  8251. + # or remarks (even with -Werror). So we grep stderr for any message
  8252. + # that says an option was ignored or not supported.
  8253. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8254. + # icc: Command line warning: ignoring option '-M'; no argument required
  8255. + # The diagnosis changed in icc 8.0:
  8256. + # icc: Command line remark: option '-MP' not supported
  8257. + if (grep 'ignoring option' conftest.err ||
  8258. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8259. + am_cv_$1_dependencies_compiler_type=$depmode
  8260. + break
  8261. + fi
  8262. + fi
  8263. + done
  8264. +
  8265. + cd ..
  8266. + rm -rf conftest.dir
  8267. +else
  8268. + am_cv_$1_dependencies_compiler_type=none
  8269. +fi
  8270. +])
  8271. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8272. +AM_CONDITIONAL([am__fastdep$1], [
  8273. + test "x$enable_dependency_tracking" != xno \
  8274. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8275. +])
  8276. +
  8277. +
  8278. +# AM_SET_DEPDIR
  8279. +# -------------
  8280. +# Choose a directory name for dependency files.
  8281. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8282. +AC_DEFUN([AM_SET_DEPDIR],
  8283. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8284. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8285. +])
  8286. +
  8287. +
  8288. +# AM_DEP_TRACK
  8289. +# ------------
  8290. +AC_DEFUN([AM_DEP_TRACK],
  8291. +[AC_ARG_ENABLE(dependency-tracking,
  8292. +[ --disable-dependency-tracking speeds up one-time build
  8293. + --enable-dependency-tracking do not reject slow dependency extractors])
  8294. +if test "x$enable_dependency_tracking" != xno; then
  8295. + am_depcomp="$ac_aux_dir/depcomp"
  8296. + AMDEPBACKSLASH='\'
  8297. +fi
  8298. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8299. +AC_SUBST([AMDEPBACKSLASH])dnl
  8300. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8301. +])
  8302. +
  8303. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  8304. +
  8305. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8306. +# Free Software Foundation, Inc.
  8307. +#
  8308. +# This file is free software; the Free Software Foundation
  8309. +# gives unlimited permission to copy and/or distribute it,
  8310. +# with or without modifications, as long as this notice is preserved.
  8311. +
  8312. +#serial 5
  8313. +
  8314. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8315. +# ------------------------------
  8316. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8317. +[{
  8318. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8319. + # are listed without --file. Let's play safe and only enable the eval
  8320. + # if we detect the quoting.
  8321. + case $CONFIG_FILES in
  8322. + *\'*) eval set x "$CONFIG_FILES" ;;
  8323. + *) set x $CONFIG_FILES ;;
  8324. + esac
  8325. + shift
  8326. + for mf
  8327. + do
  8328. + # Strip MF so we end up with the name of the file.
  8329. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  8330. + # Check whether this is an Automake generated Makefile or not.
  8331. + # We used to match only the files named `Makefile.in', but
  8332. + # some people rename them; so instead we look at the file content.
  8333. + # Grep'ing the first line is not enough: some people post-process
  8334. + # each Makefile.in and add a new line on top of each file to say so.
  8335. + # Grep'ing the whole file is not good either: AIX grep has a line
  8336. + # limit of 2048, but all sed's we know have understand at least 4000.
  8337. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8338. + dirpart=`AS_DIRNAME("$mf")`
  8339. + else
  8340. + continue
  8341. + fi
  8342. + # Extract the definition of DEPDIR, am__include, and am__quote
  8343. + # from the Makefile without running `make'.
  8344. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8345. + test -z "$DEPDIR" && continue
  8346. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8347. + test -z "am__include" && continue
  8348. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8349. + # When using ansi2knr, U may be empty or an underscore; expand it
  8350. + U=`sed -n 's/^U = //p' < "$mf"`
  8351. + # Find all dependency output files, they are included files with
  8352. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  8353. + # simplest approach to changing $(DEPDIR) to its actual value in the
  8354. + # expansion.
  8355. + for file in `sed -n "
  8356. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8357. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8358. + # Make sure the directory exists.
  8359. + test -f "$dirpart/$file" && continue
  8360. + fdir=`AS_DIRNAME(["$file"])`
  8361. + AS_MKDIR_P([$dirpart/$fdir])
  8362. + # echo "creating $dirpart/$file"
  8363. + echo '# dummy' > "$dirpart/$file"
  8364. + done
  8365. + done
  8366. +}
  8367. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8368. +
  8369. +
  8370. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  8371. +# -----------------------------
  8372. +# This macro should only be invoked once -- use via AC_REQUIRE.
  8373. +#
  8374. +# This code is only required when automatic dependency tracking
  8375. +# is enabled. FIXME. This creates each `.P' file that we will
  8376. +# need in order to bootstrap the dependency handling code.
  8377. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8378. +[AC_CONFIG_COMMANDS([depfiles],
  8379. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8380. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8381. +])
  8382. +
  8383. +# Do all the work for Automake. -*- Autoconf -*-
  8384. +
  8385. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8386. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8387. +#
  8388. +# This file is free software; the Free Software Foundation
  8389. +# gives unlimited permission to copy and/or distribute it,
  8390. +# with or without modifications, as long as this notice is preserved.
  8391. +
  8392. +# serial 16
  8393. +
  8394. +# This macro actually does too much. Some checks are only needed if
  8395. +# your package does certain things. But this isn't really a big deal.
  8396. +
  8397. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8398. +# AM_INIT_AUTOMAKE([OPTIONS])
  8399. +# -----------------------------------------------
  8400. +# The call with PACKAGE and VERSION arguments is the old style
  8401. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  8402. +# and VERSION should now be passed to AC_INIT and removed from
  8403. +# the call to AM_INIT_AUTOMAKE.
  8404. +# We support both call styles for the transition. After
  8405. +# the next Automake release, Autoconf can make the AC_INIT
  8406. +# arguments mandatory, and then we can depend on a new Autoconf
  8407. +# release and drop the old call support.
  8408. +AC_DEFUN([AM_INIT_AUTOMAKE],
  8409. +[AC_PREREQ([2.62])dnl
  8410. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8411. +dnl the ones we care about.
  8412. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8413. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8414. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  8415. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8416. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8417. + # is not polluted with repeated "-I."
  8418. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8419. + # test to see if srcdir already configured
  8420. + if test -f $srcdir/config.status; then
  8421. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8422. + fi
  8423. +fi
  8424. +
  8425. +# test whether we have cygpath
  8426. +if test -z "$CYGPATH_W"; then
  8427. + if (cygpath --version) >/dev/null 2>/dev/null; then
  8428. + CYGPATH_W='cygpath -w'
  8429. + else
  8430. + CYGPATH_W=echo
  8431. + fi
  8432. +fi
  8433. +AC_SUBST([CYGPATH_W])
  8434. +
  8435. +# Define the identity of the package.
  8436. +dnl Distinguish between old-style and new-style calls.
  8437. +m4_ifval([$2],
  8438. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8439. + AC_SUBST([PACKAGE], [$1])dnl
  8440. + AC_SUBST([VERSION], [$2])],
  8441. +[_AM_SET_OPTIONS([$1])dnl
  8442. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8443. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8444. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8445. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8446. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8447. +
  8448. +_AM_IF_OPTION([no-define],,
  8449. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8450. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8451. +
  8452. +# Some tools Automake needs.
  8453. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  8454. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8455. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8456. +AM_MISSING_PROG(AUTOCONF, autoconf)
  8457. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8458. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  8459. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  8460. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8461. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8462. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8463. +# We need awk for the "check" target. The system "awk" is bad on
  8464. +# some platforms.
  8465. +AC_REQUIRE([AC_PROG_AWK])dnl
  8466. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8467. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8468. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8469. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8470. + [_AM_PROG_TAR([v7])])])
  8471. +_AM_IF_OPTION([no-dependencies],,
  8472. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  8473. + [_AM_DEPENDENCIES(CC)],
  8474. + [define([AC_PROG_CC],
  8475. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8476. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8477. + [_AM_DEPENDENCIES(CXX)],
  8478. + [define([AC_PROG_CXX],
  8479. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8480. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8481. + [_AM_DEPENDENCIES(OBJC)],
  8482. + [define([AC_PROG_OBJC],
  8483. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8484. +])
  8485. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8486. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8487. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8488. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8489. +AC_CONFIG_COMMANDS_PRE(dnl
  8490. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  8491. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8492. +])
  8493. +
  8494. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8495. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8496. +dnl mangled by Autoconf and run in a shell conditional statement.
  8497. +m4_define([_AC_COMPILER_EXEEXT],
  8498. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8499. +
  8500. +
  8501. +# When config.status generates a header, we must update the stamp-h file.
  8502. +# This file resides in the same directory as the config header
  8503. +# that is generated. The stamp files are numbered to have different names.
  8504. +
  8505. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8506. +# loop where config.status creates the headers, so we can generate
  8507. +# our stamp files there.
  8508. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8509. +[# Compute $1's index in $config_headers.
  8510. +_am_arg=$1
  8511. +_am_stamp_count=1
  8512. +for _am_header in $config_headers :; do
  8513. + case $_am_header in
  8514. + $_am_arg | $_am_arg:* )
  8515. + break ;;
  8516. + * )
  8517. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8518. + esac
  8519. +done
  8520. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8521. +
  8522. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8523. +#
  8524. +# This file is free software; the Free Software Foundation
  8525. +# gives unlimited permission to copy and/or distribute it,
  8526. +# with or without modifications, as long as this notice is preserved.
  8527. +
  8528. +# AM_PROG_INSTALL_SH
  8529. +# ------------------
  8530. +# Define $install_sh.
  8531. +AC_DEFUN([AM_PROG_INSTALL_SH],
  8532. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8533. +if test x"${install_sh}" != xset; then
  8534. + case $am_aux_dir in
  8535. + *\ * | *\ *)
  8536. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8537. + *)
  8538. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  8539. + esac
  8540. +fi
  8541. +AC_SUBST(install_sh)])
  8542. +
  8543. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8544. +#
  8545. +# This file is free software; the Free Software Foundation
  8546. +# gives unlimited permission to copy and/or distribute it,
  8547. +# with or without modifications, as long as this notice is preserved.
  8548. +
  8549. +# serial 2
  8550. +
  8551. +# Check whether the underlying file-system supports filenames
  8552. +# with a leading dot. For instance MS-DOS doesn't.
  8553. +AC_DEFUN([AM_SET_LEADING_DOT],
  8554. +[rm -rf .tst 2>/dev/null
  8555. +mkdir .tst 2>/dev/null
  8556. +if test -d .tst; then
  8557. + am__leading_dot=.
  8558. +else
  8559. + am__leading_dot=_
  8560. +fi
  8561. +rmdir .tst 2>/dev/null
  8562. +AC_SUBST([am__leading_dot])])
  8563. +
  8564. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  8565. +
  8566. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8567. +#
  8568. +# This file is free software; the Free Software Foundation
  8569. +# gives unlimited permission to copy and/or distribute it,
  8570. +# with or without modifications, as long as this notice is preserved.
  8571. +
  8572. +# serial 4
  8573. +
  8574. +# AM_MAKE_INCLUDE()
  8575. +# -----------------
  8576. +# Check to see how make treats includes.
  8577. +AC_DEFUN([AM_MAKE_INCLUDE],
  8578. +[am_make=${MAKE-make}
  8579. +cat > confinc << 'END'
  8580. +am__doit:
  8581. + @echo this is the am__doit target
  8582. +.PHONY: am__doit
  8583. +END
  8584. +# If we don't find an include directive, just comment out the code.
  8585. +AC_MSG_CHECKING([for style of include used by $am_make])
  8586. +am__include="#"
  8587. +am__quote=
  8588. +_am_result=none
  8589. +# First try GNU make style include.
  8590. +echo "include confinc" > confmf
  8591. +# Ignore all kinds of additional output from `make'.
  8592. +case `$am_make -s -f confmf 2> /dev/null` in #(
  8593. +*the\ am__doit\ target*)
  8594. + am__include=include
  8595. + am__quote=
  8596. + _am_result=GNU
  8597. + ;;
  8598. +esac
  8599. +# Now try BSD make style include.
  8600. +if test "$am__include" = "#"; then
  8601. + echo '.include "confinc"' > confmf
  8602. + case `$am_make -s -f confmf 2> /dev/null` in #(
  8603. + *the\ am__doit\ target*)
  8604. + am__include=.include
  8605. + am__quote="\""
  8606. + _am_result=BSD
  8607. + ;;
  8608. + esac
  8609. +fi
  8610. +AC_SUBST([am__include])
  8611. +AC_SUBST([am__quote])
  8612. +AC_MSG_RESULT([$_am_result])
  8613. +rm -f confinc confmf
  8614. +])
  8615. +
  8616. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8617. +
  8618. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8619. +# Free Software Foundation, Inc.
  8620. +#
  8621. +# This file is free software; the Free Software Foundation
  8622. +# gives unlimited permission to copy and/or distribute it,
  8623. +# with or without modifications, as long as this notice is preserved.
  8624. +
  8625. +# serial 6
  8626. +
  8627. +# AM_MISSING_PROG(NAME, PROGRAM)
  8628. +# ------------------------------
  8629. +AC_DEFUN([AM_MISSING_PROG],
  8630. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  8631. +$1=${$1-"${am_missing_run}$2"}
  8632. +AC_SUBST($1)])
  8633. +
  8634. +
  8635. +# AM_MISSING_HAS_RUN
  8636. +# ------------------
  8637. +# Define MISSING if not defined so far and test if it supports --run.
  8638. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  8639. +AC_DEFUN([AM_MISSING_HAS_RUN],
  8640. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8641. +AC_REQUIRE_AUX_FILE([missing])dnl
  8642. +if test x"${MISSING+set}" != xset; then
  8643. + case $am_aux_dir in
  8644. + *\ * | *\ *)
  8645. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8646. + *)
  8647. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8648. + esac
  8649. +fi
  8650. +# Use eval to expand $SHELL
  8651. +if eval "$MISSING --run true"; then
  8652. + am_missing_run="$MISSING --run "
  8653. +else
  8654. + am_missing_run=
  8655. + AC_MSG_WARN([`missing' script is too old or missing])
  8656. +fi
  8657. +])
  8658. +
  8659. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8660. +#
  8661. +# This file is free software; the Free Software Foundation
  8662. +# gives unlimited permission to copy and/or distribute it,
  8663. +# with or without modifications, as long as this notice is preserved.
  8664. +
  8665. +# AM_PROG_MKDIR_P
  8666. +# ---------------
  8667. +# Check for `mkdir -p'.
  8668. +AC_DEFUN([AM_PROG_MKDIR_P],
  8669. +[AC_PREREQ([2.60])dnl
  8670. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8671. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8672. +dnl while keeping a definition of mkdir_p for backward compatibility.
  8673. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8674. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8675. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8676. +dnl adjustment using top_builddir (which is defined more often than
  8677. +dnl MKDIR_P).
  8678. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8679. +case $mkdir_p in
  8680. + [[\\/$]]* | ?:[[\\/]]*) ;;
  8681. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8682. +esac
  8683. +])
  8684. +
  8685. +# Helper functions for option handling. -*- Autoconf -*-
  8686. +
  8687. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8688. +#
  8689. +# This file is free software; the Free Software Foundation
  8690. +# gives unlimited permission to copy and/or distribute it,
  8691. +# with or without modifications, as long as this notice is preserved.
  8692. +
  8693. +# serial 4
  8694. +
  8695. +# _AM_MANGLE_OPTION(NAME)
  8696. +# -----------------------
  8697. +AC_DEFUN([_AM_MANGLE_OPTION],
  8698. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8699. +
  8700. +# _AM_SET_OPTION(NAME)
  8701. +# ------------------------------
  8702. +# Set option NAME. Presently that only means defining a flag for this option.
  8703. +AC_DEFUN([_AM_SET_OPTION],
  8704. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8705. +
  8706. +# _AM_SET_OPTIONS(OPTIONS)
  8707. +# ----------------------------------
  8708. +# OPTIONS is a space-separated list of Automake options.
  8709. +AC_DEFUN([_AM_SET_OPTIONS],
  8710. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8711. +
  8712. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8713. +# -------------------------------------------
  8714. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8715. +AC_DEFUN([_AM_IF_OPTION],
  8716. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8717. +
  8718. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  8719. +
  8720. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8721. +# Free Software Foundation, Inc.
  8722. +#
  8723. +# This file is free software; the Free Software Foundation
  8724. +# gives unlimited permission to copy and/or distribute it,
  8725. +# with or without modifications, as long as this notice is preserved.
  8726. +
  8727. +# serial 5
  8728. +
  8729. +# AM_SANITY_CHECK
  8730. +# ---------------
  8731. +AC_DEFUN([AM_SANITY_CHECK],
  8732. +[AC_MSG_CHECKING([whether build environment is sane])
  8733. +# Just in case
  8734. +sleep 1
  8735. +echo timestamp > conftest.file
  8736. +# Reject unsafe characters in $srcdir or the absolute working directory
  8737. +# name. Accept space and tab only in the latter.
  8738. +am_lf='
  8739. +'
  8740. +case `pwd` in
  8741. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  8742. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  8743. +esac
  8744. +case $srcdir in
  8745. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8746. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8747. +esac
  8748. +
  8749. +# Do `set' in a subshell so we don't clobber the current shell's
  8750. +# arguments. Must try -L first in case configure is actually a
  8751. +# symlink; some systems play weird games with the mod time of symlinks
  8752. +# (eg FreeBSD returns the mod time of the symlink's containing
  8753. +# directory).
  8754. +if (
  8755. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8756. + if test "$[*]" = "X"; then
  8757. + # -L didn't work.
  8758. + set X `ls -t "$srcdir/configure" conftest.file`
  8759. + fi
  8760. + rm -f conftest.file
  8761. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  8762. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8763. +
  8764. + # If neither matched, then we have a broken ls. This can happen
  8765. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  8766. + # broken ls alias from the environment. This has actually
  8767. + # happened. Such a system could not be considered "sane".
  8768. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8769. +alias in your environment])
  8770. + fi
  8771. +
  8772. + test "$[2]" = conftest.file
  8773. + )
  8774. +then
  8775. + # Ok.
  8776. + :
  8777. +else
  8778. + AC_MSG_ERROR([newly created file is older than distributed files!
  8779. +Check your system clock])
  8780. +fi
  8781. +AC_MSG_RESULT(yes)])
  8782. +
  8783. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8784. +#
  8785. +# This file is free software; the Free Software Foundation
  8786. +# gives unlimited permission to copy and/or distribute it,
  8787. +# with or without modifications, as long as this notice is preserved.
  8788. +
  8789. +# AM_PROG_INSTALL_STRIP
  8790. +# ---------------------
  8791. +# One issue with vendor `install' (even GNU) is that you can't
  8792. +# specify the program used to strip binaries. This is especially
  8793. +# annoying in cross-compiling environments, where the build's strip
  8794. +# is unlikely to handle the host's binaries.
  8795. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  8796. +# always use install-sh in `make install-strip', and initialize
  8797. +# STRIPPROG with the value of the STRIP variable (set by the user).
  8798. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8799. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8800. +# Installed binaries are usually stripped using `strip' when the user
  8801. +# run `make install-strip'. However `strip' might not be the right
  8802. +# tool to use in cross-compilation environments, therefore Automake
  8803. +# will honor the `STRIP' environment variable to overrule this program.
  8804. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8805. +if test "$cross_compiling" != no; then
  8806. + AC_CHECK_TOOL([STRIP], [strip], :)
  8807. +fi
  8808. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8809. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8810. +
  8811. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8812. +#
  8813. +# This file is free software; the Free Software Foundation
  8814. +# gives unlimited permission to copy and/or distribute it,
  8815. +# with or without modifications, as long as this notice is preserved.
  8816. +
  8817. +# serial 2
  8818. +
  8819. +# _AM_SUBST_NOTMAKE(VARIABLE)
  8820. +# ---------------------------
  8821. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8822. +# This macro is traced by Automake.
  8823. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  8824. +
  8825. +# AM_SUBST_NOTMAKE(VARIABLE)
  8826. +# ---------------------------
  8827. +# Public sister of _AM_SUBST_NOTMAKE.
  8828. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8829. +
  8830. +# Check how to create a tarball. -*- Autoconf -*-
  8831. +
  8832. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8833. +#
  8834. +# This file is free software; the Free Software Foundation
  8835. +# gives unlimited permission to copy and/or distribute it,
  8836. +# with or without modifications, as long as this notice is preserved.
  8837. +
  8838. +# serial 2
  8839. +
  8840. +# _AM_PROG_TAR(FORMAT)
  8841. +# --------------------
  8842. +# Check how to create a tarball in format FORMAT.
  8843. +# FORMAT should be one of `v7', `ustar', or `pax'.
  8844. +#
  8845. +# Substitute a variable $(am__tar) that is a command
  8846. +# writing to stdout a FORMAT-tarball containing the directory
  8847. +# $tardir.
  8848. +# tardir=directory && $(am__tar) > result.tar
  8849. +#
  8850. +# Substitute a variable $(am__untar) that extract such
  8851. +# a tarball read from stdin.
  8852. +# $(am__untar) < result.tar
  8853. +AC_DEFUN([_AM_PROG_TAR],
  8854. +[# Always define AMTAR for backward compatibility.
  8855. +AM_MISSING_PROG([AMTAR], [tar])
  8856. +m4_if([$1], [v7],
  8857. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8858. + [m4_case([$1], [ustar],, [pax],,
  8859. + [m4_fatal([Unknown tar format])])
  8860. +AC_MSG_CHECKING([how to create a $1 tar archive])
  8861. +# Loop over all known methods to create a tar archive until one works.
  8862. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8863. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8864. +# Do not fold the above two line into one, because Tru64 sh and
  8865. +# Solaris sh will not grok spaces in the rhs of `-'.
  8866. +for _am_tool in $_am_tools
  8867. +do
  8868. + case $_am_tool in
  8869. + gnutar)
  8870. + for _am_tar in tar gnutar gtar;
  8871. + do
  8872. + AM_RUN_LOG([$_am_tar --version]) && break
  8873. + done
  8874. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8875. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8876. + am__untar="$_am_tar -xf -"
  8877. + ;;
  8878. + plaintar)
  8879. + # Must skip GNU tar: if it does not support --format= it doesn't create
  8880. + # ustar tarball either.
  8881. + (tar --version) >/dev/null 2>&1 && continue
  8882. + am__tar='tar chf - "$$tardir"'
  8883. + am__tar_='tar chf - "$tardir"'
  8884. + am__untar='tar xf -'
  8885. + ;;
  8886. + pax)
  8887. + am__tar='pax -L -x $1 -w "$$tardir"'
  8888. + am__tar_='pax -L -x $1 -w "$tardir"'
  8889. + am__untar='pax -r'
  8890. + ;;
  8891. + cpio)
  8892. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8893. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8894. + am__untar='cpio -i -H $1 -d'
  8895. + ;;
  8896. + none)
  8897. + am__tar=false
  8898. + am__tar_=false
  8899. + am__untar=false
  8900. + ;;
  8901. + esac
  8902. +
  8903. + # If the value was cached, stop now. We just wanted to have am__tar
  8904. + # and am__untar set.
  8905. + test -n "${am_cv_prog_tar_$1}" && break
  8906. +
  8907. + # tar/untar a dummy directory, and stop if the command works
  8908. + rm -rf conftest.dir
  8909. + mkdir conftest.dir
  8910. + echo GrepMe > conftest.dir/file
  8911. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8912. + rm -rf conftest.dir
  8913. + if test -s conftest.tar; then
  8914. + AM_RUN_LOG([$am__untar <conftest.tar])
  8915. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8916. + fi
  8917. +done
  8918. +rm -rf conftest.dir
  8919. +
  8920. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8921. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8922. +AC_SUBST([am__tar])
  8923. +AC_SUBST([am__untar])
  8924. +]) # _AM_PROG_TAR
  8925. +
  8926. diff -Nur cgilib-0.7.orig/config.guess cgilib-0.7/config.guess
  8927. --- cgilib-0.7.orig/config.guess 2008-07-08 01:41:25.000000000 +0200
  8928. +++ cgilib-0.7/config.guess 2011-02-21 14:57:58.553558591 +0100
  8929. @@ -1,10 +1,10 @@
  8930. #! /bin/sh
  8931. # Attempt to guess a canonical system name.
  8932. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  8933. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  8934. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  8935. # Free Software Foundation, Inc.
  8936. -timestamp='2008-01-23'
  8937. +timestamp='2009-06-10'
  8938. # This file is free software; you can redistribute it and/or modify it
  8939. # under the terms of the GNU General Public License as published by
  8940. @@ -170,7 +170,7 @@
  8941. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  8942. eval $set_cc_for_build
  8943. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  8944. - | grep __ELF__ >/dev/null
  8945. + | grep -q __ELF__
  8946. then
  8947. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  8948. # Return netbsd for either. FIX?
  8949. @@ -324,6 +324,9 @@
  8950. case `/usr/bin/uname -p` in
  8951. sparc) echo sparc-icl-nx7; exit ;;
  8952. esac ;;
  8953. + s390x:SunOS:*:*)
  8954. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  8955. + exit ;;
  8956. sun4H:SunOS:5.*:*)
  8957. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  8958. exit ;;
  8959. @@ -331,7 +334,20 @@
  8960. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  8961. exit ;;
  8962. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  8963. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  8964. + eval $set_cc_for_build
  8965. + SUN_ARCH="i386"
  8966. + # If there is a compiler, see if it is configured for 64-bit objects.
  8967. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  8968. + # This test works for both compilers.
  8969. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  8970. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  8971. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  8972. + grep IS_64BIT_ARCH >/dev/null
  8973. + then
  8974. + SUN_ARCH="x86_64"
  8975. + fi
  8976. + fi
  8977. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  8978. exit ;;
  8979. sun4*:SunOS:6*:*)
  8980. # According to config.sub, this is the proper way to canonicalize
  8981. @@ -640,7 +656,7 @@
  8982. # => hppa64-hp-hpux11.23
  8983. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  8984. - grep __LP64__ >/dev/null
  8985. + grep -q __LP64__
  8986. then
  8987. HP_ARCH="hppa2.0w"
  8988. else
  8989. @@ -796,7 +812,7 @@
  8990. x86)
  8991. echo i586-pc-interix${UNAME_RELEASE}
  8992. exit ;;
  8993. - EM64T | authenticamd)
  8994. + EM64T | authenticamd | genuineintel)
  8995. echo x86_64-unknown-interix${UNAME_RELEASE}
  8996. exit ;;
  8997. IA64)
  8998. @@ -806,6 +822,9 @@
  8999. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  9000. echo i${UNAME_MACHINE}-pc-mks
  9001. exit ;;
  9002. + 8664:Windows_NT:*)
  9003. + echo x86_64-pc-mks
  9004. + exit ;;
  9005. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  9006. # How do we know it's Interix rather than the generic POSIX subsystem?
  9007. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  9008. @@ -866,40 +885,17 @@
  9009. m68*:Linux:*:*)
  9010. echo ${UNAME_MACHINE}-unknown-linux-gnu
  9011. exit ;;
  9012. - mips:Linux:*:*)
  9013. + mips:Linux:*:* | mips64:Linux:*:*)
  9014. eval $set_cc_for_build
  9015. sed 's/^ //' << EOF >$dummy.c
  9016. #undef CPU
  9017. - #undef mips
  9018. - #undef mipsel
  9019. + #undef ${UNAME_MACHINE}
  9020. + #undef ${UNAME_MACHINE}el
  9021. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  9022. - CPU=mipsel
  9023. + CPU=${UNAME_MACHINE}el
  9024. #else
  9025. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  9026. - CPU=mips
  9027. - #else
  9028. - CPU=
  9029. - #endif
  9030. - #endif
  9031. -EOF
  9032. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  9033. - /^CPU/{
  9034. - s: ::g
  9035. - p
  9036. - }'`"
  9037. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  9038. - ;;
  9039. - mips64:Linux:*:*)
  9040. - eval $set_cc_for_build
  9041. - sed 's/^ //' << EOF >$dummy.c
  9042. - #undef CPU
  9043. - #undef mips64
  9044. - #undef mips64el
  9045. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  9046. - CPU=mips64el
  9047. - #else
  9048. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  9049. - CPU=mips64
  9050. + CPU=${UNAME_MACHINE}
  9051. #else
  9052. CPU=
  9053. #endif
  9054. @@ -931,10 +927,13 @@
  9055. EV67) UNAME_MACHINE=alphaev67 ;;
  9056. EV68*) UNAME_MACHINE=alphaev68 ;;
  9057. esac
  9058. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  9059. + objdump --private-headers /bin/sh | grep -q ld.so.1
  9060. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  9061. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  9062. exit ;;
  9063. + padre:Linux:*:*)
  9064. + echo sparc-unknown-linux-gnu
  9065. + exit ;;
  9066. parisc:Linux:*:* | hppa:Linux:*:*)
  9067. # Look for CPU level
  9068. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  9069. @@ -982,17 +981,6 @@
  9070. elf32-i386)
  9071. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  9072. ;;
  9073. - a.out-i386-linux)
  9074. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  9075. - exit ;;
  9076. - coff-i386)
  9077. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  9078. - exit ;;
  9079. - "")
  9080. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  9081. - # one that does not give us useful --help.
  9082. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  9083. - exit ;;
  9084. esac
  9085. # Determine whether the default compiler is a.out or elf
  9086. eval $set_cc_for_build
  9087. @@ -1058,7 +1046,7 @@
  9088. i*86:syllable:*:*)
  9089. echo ${UNAME_MACHINE}-pc-syllable
  9090. exit ;;
  9091. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  9092. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  9093. echo i386-unknown-lynxos${UNAME_RELEASE}
  9094. exit ;;
  9095. i*86:*DOS:*:*)
  9096. @@ -1102,8 +1090,11 @@
  9097. pc:*:*:*)
  9098. # Left here for compatibility:
  9099. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  9100. - # the processor, so we play safe by assuming i386.
  9101. - echo i386-pc-msdosdjgpp
  9102. + # the processor, so we play safe by assuming i586.
  9103. + # Note: whatever this is, it MUST be the same as what config.sub
  9104. + # prints for the "djgpp" host, or else GDB configury will decide that
  9105. + # this is a cross-build.
  9106. + echo i586-pc-msdosdjgpp
  9107. exit ;;
  9108. Intel:Mach:3*:*)
  9109. echo i386-pc-mach3
  9110. @@ -1141,6 +1132,16 @@
  9111. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  9112. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  9113. && { echo i486-ncr-sysv4; exit; } ;;
  9114. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  9115. + OS_REL='.3'
  9116. + test -r /etc/.relid \
  9117. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  9118. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  9119. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  9120. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  9121. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  9122. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  9123. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  9124. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  9125. echo m68k-unknown-lynxos${UNAME_RELEASE}
  9126. exit ;;
  9127. @@ -1153,7 +1154,7 @@
  9128. rs6000:LynxOS:2.*:*)
  9129. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  9130. exit ;;
  9131. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  9132. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  9133. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  9134. exit ;;
  9135. SM[BE]S:UNIX_SV:*:*)
  9136. @@ -1216,6 +1217,9 @@
  9137. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  9138. echo i586-pc-beos
  9139. exit ;;
  9140. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  9141. + echo i586-pc-haiku
  9142. + exit ;;
  9143. SX-4:SUPER-UX:*:*)
  9144. echo sx4-nec-superux${UNAME_RELEASE}
  9145. exit ;;
  9146. @@ -1324,6 +1328,9 @@
  9147. i*86:rdos:*:*)
  9148. echo ${UNAME_MACHINE}-pc-rdos
  9149. exit ;;
  9150. + i*86:AROS:*:*)
  9151. + echo ${UNAME_MACHINE}-pc-aros
  9152. + exit ;;
  9153. esac
  9154. #echo '(No uname command or uname output not recognized.)' 1>&2
  9155. diff -Nur cgilib-0.7.orig/config.sub cgilib-0.7/config.sub
  9156. --- cgilib-0.7.orig/config.sub 2008-07-08 01:41:25.000000000 +0200
  9157. +++ cgilib-0.7/config.sub 2011-02-21 14:57:58.553558591 +0100
  9158. @@ -1,10 +1,10 @@
  9159. #! /bin/sh
  9160. # Configuration validation subroutine script.
  9161. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  9162. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  9163. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  9164. # Free Software Foundation, Inc.
  9165. -timestamp='2008-01-16'
  9166. +timestamp='2009-06-11'
  9167. # This file is (in principle) common to ALL GNU software.
  9168. # The presence of a machine in this file suggests that SOME GNU software
  9169. @@ -122,6 +122,7 @@
  9170. case $maybe_os in
  9171. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  9172. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  9173. + kopensolaris*-gnu* | \
  9174. storm-chaos* | os2-emx* | rtmk-nova*)
  9175. os=-$maybe_os
  9176. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  9177. @@ -152,6 +153,9 @@
  9178. os=
  9179. basic_machine=$1
  9180. ;;
  9181. + -bluegene*)
  9182. + os=-cnk
  9183. + ;;
  9184. -sim | -cisco | -oki | -wec | -winbond)
  9185. os=
  9186. basic_machine=$1
  9187. @@ -249,13 +253,16 @@
  9188. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  9189. | i370 | i860 | i960 | ia64 \
  9190. | ip2k | iq2000 \
  9191. + | lm32 \
  9192. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  9193. - | maxq | mb | microblaze | mcore | mep \
  9194. + | maxq | mb | microblaze | mcore | mep | metag \
  9195. | mips | mipsbe | mipseb | mipsel | mipsle \
  9196. | mips16 \
  9197. | mips64 | mips64el \
  9198. - | mips64vr | mips64vrel \
  9199. + | mips64octeon | mips64octeonel \
  9200. | mips64orion | mips64orionel \
  9201. + | mips64r5900 | mips64r5900el \
  9202. + | mips64vr | mips64vrel \
  9203. | mips64vr4100 | mips64vr4100el \
  9204. | mips64vr4300 | mips64vr4300el \
  9205. | mips64vr5000 | mips64vr5000el \
  9206. @@ -268,6 +275,7 @@
  9207. | mipsisa64sr71k | mipsisa64sr71kel \
  9208. | mipstx39 | mipstx39el \
  9209. | mn10200 | mn10300 \
  9210. + | moxie \
  9211. | mt \
  9212. | msp430 \
  9213. | nios | nios2 \
  9214. @@ -277,7 +285,7 @@
  9215. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  9216. | pyramid \
  9217. | score \
  9218. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  9219. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  9220. | sh64 | sh64le \
  9221. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  9222. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  9223. @@ -286,7 +294,7 @@
  9224. | v850 | v850e \
  9225. | we32k \
  9226. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  9227. - | z8k)
  9228. + | z8k | z80)
  9229. basic_machine=$basic_machine-unknown
  9230. ;;
  9231. m6811 | m68hc11 | m6812 | m68hc12)
  9232. @@ -329,14 +337,17 @@
  9233. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  9234. | i*86-* | i860-* | i960-* | ia64-* \
  9235. | ip2k-* | iq2000-* \
  9236. + | lm32-* \
  9237. | m32c-* | m32r-* | m32rle-* \
  9238. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  9239. - | m88110-* | m88k-* | maxq-* | mcore-* \
  9240. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  9241. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  9242. | mips16-* \
  9243. | mips64-* | mips64el-* \
  9244. - | mips64vr-* | mips64vrel-* \
  9245. + | mips64octeon-* | mips64octeonel-* \
  9246. | mips64orion-* | mips64orionel-* \
  9247. + | mips64r5900-* | mips64r5900el-* \
  9248. + | mips64vr-* | mips64vrel-* \
  9249. | mips64vr4100-* | mips64vr4100el-* \
  9250. | mips64vr4300-* | mips64vr4300el-* \
  9251. | mips64vr5000-* | mips64vr5000el-* \
  9252. @@ -358,20 +369,20 @@
  9253. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  9254. | pyramid-* \
  9255. | romp-* | rs6000-* \
  9256. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  9257. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  9258. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  9259. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  9260. | sparclite-* \
  9261. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  9262. | tahoe-* | thumb-* \
  9263. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  9264. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  9265. | tron-* \
  9266. | v850-* | v850e-* | vax-* \
  9267. | we32k-* \
  9268. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  9269. | xstormy16-* | xtensa*-* \
  9270. | ymp-* \
  9271. - | z8k-*)
  9272. + | z8k-* | z80-*)
  9273. ;;
  9274. # Recognize the basic CPU types without company name, with glob match.
  9275. xtensa*)
  9276. @@ -439,6 +450,10 @@
  9277. basic_machine=m68k-apollo
  9278. os=-bsd
  9279. ;;
  9280. + aros)
  9281. + basic_machine=i386-pc
  9282. + os=-aros
  9283. + ;;
  9284. aux)
  9285. basic_machine=m68k-apple
  9286. os=-aux
  9287. @@ -455,10 +470,18 @@
  9288. basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  9289. os=-linux
  9290. ;;
  9291. + bluegene*)
  9292. + basic_machine=powerpc-ibm
  9293. + os=-cnk
  9294. + ;;
  9295. c90)
  9296. basic_machine=c90-cray
  9297. os=-unicos
  9298. ;;
  9299. + cegcc)
  9300. + basic_machine=arm-unknown
  9301. + os=-cegcc
  9302. + ;;
  9303. convex-c1)
  9304. basic_machine=c1-convex
  9305. os=-bsd
  9306. @@ -526,6 +549,10 @@
  9307. basic_machine=m88k-motorola
  9308. os=-sysv3
  9309. ;;
  9310. + dicos)
  9311. + basic_machine=i686-pc
  9312. + os=-dicos
  9313. + ;;
  9314. djgpp)
  9315. basic_machine=i586-pc
  9316. os=-msdosdjgpp
  9317. @@ -1128,6 +1155,10 @@
  9318. basic_machine=z8k-unknown
  9319. os=-sim
  9320. ;;
  9321. + z80-*-coff)
  9322. + basic_machine=z80-unknown
  9323. + os=-sim
  9324. + ;;
  9325. none)
  9326. basic_machine=none-none
  9327. os=-none
  9328. @@ -1166,7 +1197,7 @@
  9329. we32k)
  9330. basic_machine=we32k-att
  9331. ;;
  9332. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  9333. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  9334. basic_machine=sh-unknown
  9335. ;;
  9336. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  9337. @@ -1236,10 +1267,11 @@
  9338. # Each alternative MUST END IN A *, to match a version number.
  9339. # -sysv* is not here because it comes later, after sysvr4.
  9340. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  9341. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  9342. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  9343. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  9344. + | -kopensolaris* \
  9345. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  9346. - | -aos* \
  9347. + | -aos* | -aros* \
  9348. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  9349. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  9350. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  9351. @@ -1248,7 +1280,7 @@
  9352. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  9353. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  9354. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  9355. - | -chorusos* | -chorusrdb* \
  9356. + | -chorusos* | -chorusrdb* | -cegcc* \
  9357. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  9358. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  9359. | -uxpv* | -beos* | -mpeix* | -udk* \
  9360. @@ -1388,6 +1420,9 @@
  9361. -zvmoe)
  9362. os=-zvmoe
  9363. ;;
  9364. + -dicos*)
  9365. + os=-dicos
  9366. + ;;
  9367. -none)
  9368. ;;
  9369. *)
  9370. @@ -1585,7 +1620,7 @@
  9371. -sunos*)
  9372. vendor=sun
  9373. ;;
  9374. - -aix*)
  9375. + -cnk*|-aix*)
  9376. vendor=ibm
  9377. ;;
  9378. -beos*)
  9379. diff -Nur cgilib-0.7.orig/configure cgilib-0.7/configure
  9380. --- cgilib-0.7.orig/configure 2009-02-08 19:47:03.000000000 +0100
  9381. +++ cgilib-0.7/configure 2011-02-21 14:57:57.983726728 +0100
  9382. @@ -1,60 +1,83 @@
  9383. #! /bin/sh
  9384. # Guess values for system-dependent variables and create Makefiles.
  9385. -# Generated by GNU Autoconf 2.61.
  9386. +# Generated by GNU Autoconf 2.65.
  9387. +#
  9388. #
  9389. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9390. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9391. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  9392. +# Inc.
  9393. +#
  9394. +#
  9395. # This configure script is free software; the Free Software Foundation
  9396. # gives unlimited permission to copy, distribute and modify it.
  9397. -## --------------------- ##
  9398. -## M4sh Initialization. ##
  9399. -## --------------------- ##
  9400. +## -------------------- ##
  9401. +## M4sh Initialization. ##
  9402. +## -------------------- ##
  9403. # Be more Bourne compatible
  9404. DUALCASE=1; export DUALCASE # for MKS sh
  9405. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9406. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9407. emulate sh
  9408. NULLCMD=:
  9409. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9410. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9411. # is contrary to our usage. Disable this feature.
  9412. alias -g '${1+"$@"}'='"$@"'
  9413. setopt NO_GLOB_SUBST
  9414. else
  9415. - case `(set -o) 2>/dev/null` in
  9416. - *posix*) set -o posix ;;
  9417. + case `(set -o) 2>/dev/null` in #(
  9418. + *posix*) :
  9419. + set -o posix ;; #(
  9420. + *) :
  9421. + ;;
  9422. esac
  9423. -
  9424. fi
  9425. -
  9426. -
  9427. -# PATH needs CR
  9428. -# Avoid depending upon Character Ranges.
  9429. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9430. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9431. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9432. -as_cr_digits='0123456789'
  9433. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  9434. -
  9435. -# The user is always right.
  9436. -if test "${PATH_SEPARATOR+set}" != set; then
  9437. - echo "#! /bin/sh" >conf$$.sh
  9438. - echo "exit 0" >>conf$$.sh
  9439. - chmod +x conf$$.sh
  9440. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9441. - PATH_SEPARATOR=';'
  9442. - else
  9443. - PATH_SEPARATOR=:
  9444. +as_nl='
  9445. +'
  9446. +export as_nl
  9447. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  9448. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9449. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9450. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9451. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  9452. +# but without wasting forks for bash or zsh.
  9453. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  9454. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9455. + as_echo='print -r --'
  9456. + as_echo_n='print -rn --'
  9457. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9458. + as_echo='printf %s\n'
  9459. + as_echo_n='printf %s'
  9460. +else
  9461. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9462. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9463. + as_echo_n='/usr/ucb/echo -n'
  9464. + else
  9465. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9466. + as_echo_n_body='eval
  9467. + arg=$1;
  9468. + case $arg in #(
  9469. + *"$as_nl"*)
  9470. + expr "X$arg" : "X\\(.*\\)$as_nl";
  9471. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9472. + esac;
  9473. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9474. + '
  9475. + export as_echo_n_body
  9476. + as_echo_n='sh -c $as_echo_n_body as_echo'
  9477. fi
  9478. - rm -f conf$$.sh
  9479. + export as_echo_body
  9480. + as_echo='sh -c $as_echo_body as_echo'
  9481. fi
  9482. -# Support unset when possible.
  9483. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9484. - as_unset=unset
  9485. -else
  9486. - as_unset=false
  9487. +# The user is always right.
  9488. +if test "${PATH_SEPARATOR+set}" != set; then
  9489. + PATH_SEPARATOR=:
  9490. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9491. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9492. + PATH_SEPARATOR=';'
  9493. + }
  9494. fi
  9495. @@ -63,20 +86,18 @@
  9496. # there to prevent editors from complaining about space-tab.
  9497. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9498. # splitting by setting IFS to empty value.)
  9499. -as_nl='
  9500. -'
  9501. IFS=" "" $as_nl"
  9502. # Find who we are. Look in the path if we contain no directory separator.
  9503. -case $0 in
  9504. +case $0 in #((
  9505. *[\\/]* ) as_myself=$0 ;;
  9506. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9507. for as_dir in $PATH
  9508. do
  9509. IFS=$as_save_IFS
  9510. test -z "$as_dir" && as_dir=.
  9511. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9512. -done
  9513. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9514. + done
  9515. IFS=$as_save_IFS
  9516. ;;
  9517. @@ -87,32 +108,270 @@
  9518. as_myself=$0
  9519. fi
  9520. if test ! -f "$as_myself"; then
  9521. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9522. - { (exit 1); exit 1; }
  9523. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9524. + exit 1
  9525. fi
  9526. -# Work around bugs in pre-3.0 UWIN ksh.
  9527. -for as_var in ENV MAIL MAILPATH
  9528. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9529. +# Unset variables that we do not need and which cause bugs (e.g. in
  9530. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9531. +# suppresses any "Segmentation fault" message there. '((' could
  9532. +# trigger a bug in pdksh 5.2.14.
  9533. +for as_var in BASH_ENV ENV MAIL MAILPATH
  9534. +do eval test x\${$as_var+set} = xset \
  9535. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9536. done
  9537. PS1='$ '
  9538. PS2='> '
  9539. PS4='+ '
  9540. # NLS nuisances.
  9541. -for as_var in \
  9542. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9543. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9544. - LC_TELEPHONE LC_TIME
  9545. +LC_ALL=C
  9546. +export LC_ALL
  9547. +LANGUAGE=C
  9548. +export LANGUAGE
  9549. +
  9550. +# CDPATH.
  9551. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9552. +
  9553. +if test "x$CONFIG_SHELL" = x; then
  9554. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  9555. + emulate sh
  9556. + NULLCMD=:
  9557. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  9558. + # is contrary to our usage. Disable this feature.
  9559. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  9560. + setopt NO_GLOB_SUBST
  9561. +else
  9562. + case \`(set -o) 2>/dev/null\` in #(
  9563. + *posix*) :
  9564. + set -o posix ;; #(
  9565. + *) :
  9566. + ;;
  9567. +esac
  9568. +fi
  9569. +"
  9570. + as_required="as_fn_return () { (exit \$1); }
  9571. +as_fn_success () { as_fn_return 0; }
  9572. +as_fn_failure () { as_fn_return 1; }
  9573. +as_fn_ret_success () { return 0; }
  9574. +as_fn_ret_failure () { return 1; }
  9575. +
  9576. +exitcode=0
  9577. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  9578. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  9579. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  9580. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  9581. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  9582. +
  9583. +else
  9584. + exitcode=1; echo positional parameters were not saved.
  9585. +fi
  9586. +test x\$exitcode = x0 || exit 1"
  9587. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  9588. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  9589. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  9590. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  9591. +test \$(( 1 + 1 )) = 2 || exit 1"
  9592. + if (eval "$as_required") 2>/dev/null; then :
  9593. + as_have_required=yes
  9594. +else
  9595. + as_have_required=no
  9596. +fi
  9597. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  9598. +
  9599. +else
  9600. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9601. +as_found=false
  9602. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9603. do
  9604. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9605. - eval $as_var=C; export $as_var
  9606. - else
  9607. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9608. - fi
  9609. + IFS=$as_save_IFS
  9610. + test -z "$as_dir" && as_dir=.
  9611. + as_found=:
  9612. + case $as_dir in #(
  9613. + /*)
  9614. + for as_base in sh bash ksh sh5; do
  9615. + # Try only shells that exist, to save several forks.
  9616. + as_shell=$as_dir/$as_base
  9617. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  9618. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  9619. + CONFIG_SHELL=$as_shell as_have_required=yes
  9620. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  9621. + break 2
  9622. +fi
  9623. +fi
  9624. + done;;
  9625. + esac
  9626. + as_found=false
  9627. done
  9628. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  9629. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  9630. + CONFIG_SHELL=$SHELL as_have_required=yes
  9631. +fi; }
  9632. +IFS=$as_save_IFS
  9633. +
  9634. +
  9635. + if test "x$CONFIG_SHELL" != x; then :
  9636. + # We cannot yet assume a decent shell, so we have to provide a
  9637. + # neutralization value for shells without unset; and this also
  9638. + # works around shells that cannot unset nonexistent variables.
  9639. + BASH_ENV=/dev/null
  9640. + ENV=/dev/null
  9641. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  9642. + export CONFIG_SHELL
  9643. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  9644. +fi
  9645. +
  9646. + if test x$as_have_required = xno; then :
  9647. + $as_echo "$0: This script requires a shell more modern than all"
  9648. + $as_echo "$0: the shells that I found on your system."
  9649. + if test x${ZSH_VERSION+set} = xset ; then
  9650. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  9651. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  9652. + else
  9653. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  9654. +$0: including any error possibly output before this
  9655. +$0: message. Then install a modern shell, or manually run
  9656. +$0: the script under such a shell if you do have one."
  9657. + fi
  9658. + exit 1
  9659. +fi
  9660. +fi
  9661. +fi
  9662. +SHELL=${CONFIG_SHELL-/bin/sh}
  9663. +export SHELL
  9664. +# Unset more variables known to interfere with behavior of common tools.
  9665. +CLICOLOR_FORCE= GREP_OPTIONS=
  9666. +unset CLICOLOR_FORCE GREP_OPTIONS
  9667. +
  9668. +## --------------------- ##
  9669. +## M4sh Shell Functions. ##
  9670. +## --------------------- ##
  9671. +# as_fn_unset VAR
  9672. +# ---------------
  9673. +# Portably unset VAR.
  9674. +as_fn_unset ()
  9675. +{
  9676. + { eval $1=; unset $1;}
  9677. +}
  9678. +as_unset=as_fn_unset
  9679. +
  9680. +# as_fn_set_status STATUS
  9681. +# -----------------------
  9682. +# Set $? to STATUS, without forking.
  9683. +as_fn_set_status ()
  9684. +{
  9685. + return $1
  9686. +} # as_fn_set_status
  9687. +
  9688. +# as_fn_exit STATUS
  9689. +# -----------------
  9690. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9691. +as_fn_exit ()
  9692. +{
  9693. + set +e
  9694. + as_fn_set_status $1
  9695. + exit $1
  9696. +} # as_fn_exit
  9697. +
  9698. +# as_fn_mkdir_p
  9699. +# -------------
  9700. +# Create "$as_dir" as a directory, including parents if necessary.
  9701. +as_fn_mkdir_p ()
  9702. +{
  9703. +
  9704. + case $as_dir in #(
  9705. + -*) as_dir=./$as_dir;;
  9706. + esac
  9707. + test -d "$as_dir" || eval $as_mkdir_p || {
  9708. + as_dirs=
  9709. + while :; do
  9710. + case $as_dir in #(
  9711. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9712. + *) as_qdir=$as_dir;;
  9713. + esac
  9714. + as_dirs="'$as_qdir' $as_dirs"
  9715. + as_dir=`$as_dirname -- "$as_dir" ||
  9716. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9717. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9718. + X"$as_dir" : 'X\(//\)$' \| \
  9719. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9720. +$as_echo X"$as_dir" |
  9721. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9722. + s//\1/
  9723. + q
  9724. + }
  9725. + /^X\(\/\/\)[^/].*/{
  9726. + s//\1/
  9727. + q
  9728. + }
  9729. + /^X\(\/\/\)$/{
  9730. + s//\1/
  9731. + q
  9732. + }
  9733. + /^X\(\/\).*/{
  9734. + s//\1/
  9735. + q
  9736. + }
  9737. + s/.*/./; q'`
  9738. + test -d "$as_dir" && break
  9739. + done
  9740. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  9741. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  9742. +
  9743. +
  9744. +} # as_fn_mkdir_p
  9745. +# as_fn_append VAR VALUE
  9746. +# ----------------------
  9747. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  9748. +# advantage of any shell optimizations that allow amortized linear growth over
  9749. +# repeated appends, instead of the typical quadratic growth present in naive
  9750. +# implementations.
  9751. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9752. + eval 'as_fn_append ()
  9753. + {
  9754. + eval $1+=\$2
  9755. + }'
  9756. +else
  9757. + as_fn_append ()
  9758. + {
  9759. + eval $1=\$$1\$2
  9760. + }
  9761. +fi # as_fn_append
  9762. +
  9763. +# as_fn_arith ARG...
  9764. +# ------------------
  9765. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  9766. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  9767. +# must be portable across $(()) and expr.
  9768. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9769. + eval 'as_fn_arith ()
  9770. + {
  9771. + as_val=$(( $* ))
  9772. + }'
  9773. +else
  9774. + as_fn_arith ()
  9775. + {
  9776. + as_val=`expr "$@" || test $? -eq 1`
  9777. + }
  9778. +fi # as_fn_arith
  9779. +
  9780. +
  9781. +# as_fn_error ERROR [LINENO LOG_FD]
  9782. +# ---------------------------------
  9783. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9784. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9785. +# script with status $?, using 1 if that was 0.
  9786. +as_fn_error ()
  9787. +{
  9788. + as_status=$?; test $as_status -eq 0 && as_status=1
  9789. + if test "$3"; then
  9790. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9791. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9792. + fi
  9793. + $as_echo "$as_me: error: $1" >&2
  9794. + as_fn_exit $as_status
  9795. +} # as_fn_error
  9796. -# Required to use basename.
  9797. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9798. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9799. as_expr=expr
  9800. @@ -126,13 +385,17 @@
  9801. as_basename=false
  9802. fi
  9803. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9804. + as_dirname=dirname
  9805. +else
  9806. + as_dirname=false
  9807. +fi
  9808. -# Name of the executable.
  9809. as_me=`$as_basename -- "$0" ||
  9810. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9811. X"$0" : 'X\(//\)$' \| \
  9812. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9813. -echo X/"$0" |
  9814. +$as_echo X/"$0" |
  9815. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9816. s//\1/
  9817. q
  9818. @@ -147,428 +410,142 @@
  9819. }
  9820. s/.*/./; q'`
  9821. -# CDPATH.
  9822. -$as_unset CDPATH
  9823. +# Avoid depending upon Character Ranges.
  9824. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9825. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9826. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9827. +as_cr_digits='0123456789'
  9828. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  9829. -if test "x$CONFIG_SHELL" = x; then
  9830. - if (eval ":") 2>/dev/null; then
  9831. - as_have_required=yes
  9832. -else
  9833. - as_have_required=no
  9834. -fi
  9835. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  9836. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  9837. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  9838. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  9839. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  9840. + sed -n '
  9841. + p
  9842. + /[$]LINENO/=
  9843. + ' <$as_myself |
  9844. + sed '
  9845. + s/[$]LINENO.*/&-/
  9846. + t lineno
  9847. + b
  9848. + :lineno
  9849. + N
  9850. + :loop
  9851. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9852. + t loop
  9853. + s/-\n.*//
  9854. + ' >$as_me.lineno &&
  9855. + chmod +x "$as_me.lineno" ||
  9856. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  9857. - if test $as_have_required = yes && (eval ":
  9858. -(as_func_return () {
  9859. - (exit \$1)
  9860. -}
  9861. -as_func_success () {
  9862. - as_func_return 0
  9863. -}
  9864. -as_func_failure () {
  9865. - as_func_return 1
  9866. -}
  9867. -as_func_ret_success () {
  9868. - return 0
  9869. -}
  9870. -as_func_ret_failure () {
  9871. - return 1
  9872. + # Don't try to exec as it changes $[0], causing all sort of problems
  9873. + # (the dirname of $[0] is not the place where we might find the
  9874. + # original and so on. Autoconf is especially sensitive to this).
  9875. + . "./$as_me.lineno"
  9876. + # Exit status is that of the last command.
  9877. + exit
  9878. }
  9879. -exitcode=0
  9880. -if as_func_success; then
  9881. - :
  9882. -else
  9883. - exitcode=1
  9884. - echo as_func_success failed.
  9885. -fi
  9886. +ECHO_C= ECHO_N= ECHO_T=
  9887. +case `echo -n x` in #(((((
  9888. +-n*)
  9889. + case `echo 'xy\c'` in
  9890. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9891. + xy) ECHO_C='\c';;
  9892. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9893. + ECHO_T=' ';;
  9894. + esac;;
  9895. +*)
  9896. + ECHO_N='-n';;
  9897. +esac
  9898. -if as_func_failure; then
  9899. - exitcode=1
  9900. - echo as_func_failure succeeded.
  9901. +rm -f conf$$ conf$$.exe conf$$.file
  9902. +if test -d conf$$.dir; then
  9903. + rm -f conf$$.dir/conf$$.file
  9904. +else
  9905. + rm -f conf$$.dir
  9906. + mkdir conf$$.dir 2>/dev/null
  9907. fi
  9908. -
  9909. -if as_func_ret_success; then
  9910. - :
  9911. +if (echo >conf$$.file) 2>/dev/null; then
  9912. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  9913. + as_ln_s='ln -s'
  9914. + # ... but there are two gotchas:
  9915. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9916. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9917. + # In both cases, we have to default to `cp -p'.
  9918. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9919. + as_ln_s='cp -p'
  9920. + elif ln conf$$.file conf$$ 2>/dev/null; then
  9921. + as_ln_s=ln
  9922. + else
  9923. + as_ln_s='cp -p'
  9924. + fi
  9925. else
  9926. - exitcode=1
  9927. - echo as_func_ret_success failed.
  9928. + as_ln_s='cp -p'
  9929. fi
  9930. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9931. +rmdir conf$$.dir 2>/dev/null
  9932. -if as_func_ret_failure; then
  9933. - exitcode=1
  9934. - echo as_func_ret_failure succeeded.
  9935. +if mkdir -p . 2>/dev/null; then
  9936. + as_mkdir_p='mkdir -p "$as_dir"'
  9937. +else
  9938. + test -d ./-p && rmdir ./-p
  9939. + as_mkdir_p=false
  9940. fi
  9941. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  9942. - :
  9943. +if test -x / >/dev/null 2>&1; then
  9944. + as_test_x='test -x'
  9945. else
  9946. - exitcode=1
  9947. - echo positional parameters were not saved.
  9948. + if ls -dL / >/dev/null 2>&1; then
  9949. + as_ls_L_option=L
  9950. + else
  9951. + as_ls_L_option=
  9952. + fi
  9953. + as_test_x='
  9954. + eval sh -c '\''
  9955. + if test -d "$1"; then
  9956. + test -d "$1/.";
  9957. + else
  9958. + case $1 in #(
  9959. + -*)set "./$1";;
  9960. + esac;
  9961. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  9962. + ???[sx]*):;;*)false;;esac;fi
  9963. + '\'' sh
  9964. + '
  9965. fi
  9966. +as_executable_p=$as_test_x
  9967. -test \$exitcode = 0) || { (exit 1); exit 1; }
  9968. -
  9969. -(
  9970. - as_lineno_1=\$LINENO
  9971. - as_lineno_2=\$LINENO
  9972. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  9973. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  9974. -") 2> /dev/null; then
  9975. - :
  9976. -else
  9977. - as_candidate_shells=
  9978. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9979. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9980. -do
  9981. - IFS=$as_save_IFS
  9982. - test -z "$as_dir" && as_dir=.
  9983. - case $as_dir in
  9984. - /*)
  9985. - for as_base in sh bash ksh sh5; do
  9986. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  9987. - done;;
  9988. - esac
  9989. -done
  9990. -IFS=$as_save_IFS
  9991. +# Sed expression to map a string onto a valid CPP name.
  9992. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9993. +# Sed expression to map a string onto a valid variable name.
  9994. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9995. - for as_shell in $as_candidate_shells $SHELL; do
  9996. - # Try only shells that exist, to save several forks.
  9997. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  9998. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  9999. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10000. - emulate sh
  10001. - NULLCMD=:
  10002. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10003. - # is contrary to our usage. Disable this feature.
  10004. - alias -g '${1+"$@"}'='"$@"'
  10005. - setopt NO_GLOB_SUBST
  10006. -else
  10007. - case `(set -o) 2>/dev/null` in
  10008. - *posix*) set -o posix ;;
  10009. -esac
  10010. -fi
  10011. +# Check that we are running under the correct shell.
  10012. +SHELL=${CONFIG_SHELL-/bin/sh}
  10013. -:
  10014. -_ASEOF
  10015. -}; then
  10016. - CONFIG_SHELL=$as_shell
  10017. - as_have_required=yes
  10018. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  10019. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10020. - emulate sh
  10021. - NULLCMD=:
  10022. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10023. - # is contrary to our usage. Disable this feature.
  10024. - alias -g '${1+"$@"}'='"$@"'
  10025. - setopt NO_GLOB_SUBST
  10026. -else
  10027. - case `(set -o) 2>/dev/null` in
  10028. - *posix*) set -o posix ;;
  10029. +case X$lt_ECHO in
  10030. +X*--fallback-echo)
  10031. + # Remove one level of quotation (which was required for Make).
  10032. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  10033. + ;;
  10034. esac
  10035. -fi
  10036. -
  10037. -
  10038. -:
  10039. -(as_func_return () {
  10040. - (exit $1)
  10041. -}
  10042. -as_func_success () {
  10043. - as_func_return 0
  10044. -}
  10045. -as_func_failure () {
  10046. - as_func_return 1
  10047. -}
  10048. -as_func_ret_success () {
  10049. - return 0
  10050. -}
  10051. -as_func_ret_failure () {
  10052. - return 1
  10053. -}
  10054. -
  10055. -exitcode=0
  10056. -if as_func_success; then
  10057. - :
  10058. -else
  10059. - exitcode=1
  10060. - echo as_func_success failed.
  10061. -fi
  10062. -
  10063. -if as_func_failure; then
  10064. - exitcode=1
  10065. - echo as_func_failure succeeded.
  10066. -fi
  10067. -
  10068. -if as_func_ret_success; then
  10069. - :
  10070. -else
  10071. - exitcode=1
  10072. - echo as_func_ret_success failed.
  10073. -fi
  10074. -
  10075. -if as_func_ret_failure; then
  10076. - exitcode=1
  10077. - echo as_func_ret_failure succeeded.
  10078. -fi
  10079. -
  10080. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  10081. - :
  10082. -else
  10083. - exitcode=1
  10084. - echo positional parameters were not saved.
  10085. -fi
  10086. -
  10087. -test $exitcode = 0) || { (exit 1); exit 1; }
  10088. -
  10089. -(
  10090. - as_lineno_1=$LINENO
  10091. - as_lineno_2=$LINENO
  10092. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  10093. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  10094. -
  10095. -_ASEOF
  10096. -}; then
  10097. - break
  10098. -fi
  10099. -
  10100. -fi
  10101. -
  10102. - done
  10103. -
  10104. - if test "x$CONFIG_SHELL" != x; then
  10105. - for as_var in BASH_ENV ENV
  10106. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10107. - done
  10108. - export CONFIG_SHELL
  10109. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  10110. -fi
  10111. -
  10112. -
  10113. - if test $as_have_required = no; then
  10114. - echo This script requires a shell more modern than all the
  10115. - echo shells that I found on your system. Please install a
  10116. - echo modern shell, or manually run the script under such a
  10117. - echo shell if you do have one.
  10118. - { (exit 1); exit 1; }
  10119. -fi
  10120. -
  10121. -
  10122. -fi
  10123. -
  10124. -fi
  10125. -
  10126. -
  10127. -
  10128. -(eval "as_func_return () {
  10129. - (exit \$1)
  10130. -}
  10131. -as_func_success () {
  10132. - as_func_return 0
  10133. -}
  10134. -as_func_failure () {
  10135. - as_func_return 1
  10136. -}
  10137. -as_func_ret_success () {
  10138. - return 0
  10139. -}
  10140. -as_func_ret_failure () {
  10141. - return 1
  10142. -}
  10143. -
  10144. -exitcode=0
  10145. -if as_func_success; then
  10146. - :
  10147. -else
  10148. - exitcode=1
  10149. - echo as_func_success failed.
  10150. -fi
  10151. -
  10152. -if as_func_failure; then
  10153. - exitcode=1
  10154. - echo as_func_failure succeeded.
  10155. -fi
  10156. -
  10157. -if as_func_ret_success; then
  10158. - :
  10159. -else
  10160. - exitcode=1
  10161. - echo as_func_ret_success failed.
  10162. -fi
  10163. -
  10164. -if as_func_ret_failure; then
  10165. - exitcode=1
  10166. - echo as_func_ret_failure succeeded.
  10167. -fi
  10168. -
  10169. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  10170. - :
  10171. -else
  10172. - exitcode=1
  10173. - echo positional parameters were not saved.
  10174. -fi
  10175. -
  10176. -test \$exitcode = 0") || {
  10177. - echo No shell found that supports shell functions.
  10178. - echo Please tell autoconf@gnu.org about your system,
  10179. - echo including any error possibly output before this
  10180. - echo message
  10181. -}
  10182. -
  10183. -
  10184. -
  10185. - as_lineno_1=$LINENO
  10186. - as_lineno_2=$LINENO
  10187. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  10188. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10189. -
  10190. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10191. - # uniformly replaced by the line number. The first 'sed' inserts a
  10192. - # line-number line after each line using $LINENO; the second 'sed'
  10193. - # does the real work. The second script uses 'N' to pair each
  10194. - # line-number line with the line containing $LINENO, and appends
  10195. - # trailing '-' during substitution so that $LINENO is not a special
  10196. - # case at line end.
  10197. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10198. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  10199. - # E. McMahon (1931-1989) for sed's syntax. :-)
  10200. - sed -n '
  10201. - p
  10202. - /[$]LINENO/=
  10203. - ' <$as_myself |
  10204. - sed '
  10205. - s/[$]LINENO.*/&-/
  10206. - t lineno
  10207. - b
  10208. - :lineno
  10209. - N
  10210. - :loop
  10211. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10212. - t loop
  10213. - s/-\n.*//
  10214. - ' >$as_me.lineno &&
  10215. - chmod +x "$as_me.lineno" ||
  10216. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10217. - { (exit 1); exit 1; }; }
  10218. -
  10219. - # Don't try to exec as it changes $[0], causing all sort of problems
  10220. - # (the dirname of $[0] is not the place where we might find the
  10221. - # original and so on. Autoconf is especially sensitive to this).
  10222. - . "./$as_me.lineno"
  10223. - # Exit status is that of the last command.
  10224. - exit
  10225. -}
  10226. -
  10227. -
  10228. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10229. - as_dirname=dirname
  10230. -else
  10231. - as_dirname=false
  10232. -fi
  10233. -
  10234. -ECHO_C= ECHO_N= ECHO_T=
  10235. -case `echo -n x` in
  10236. --n*)
  10237. - case `echo 'x\c'` in
  10238. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10239. - *) ECHO_C='\c';;
  10240. - esac;;
  10241. -*)
  10242. - ECHO_N='-n';;
  10243. -esac
  10244. -
  10245. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  10246. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10247. - as_expr=expr
  10248. -else
  10249. - as_expr=false
  10250. -fi
  10251. -
  10252. -rm -f conf$$ conf$$.exe conf$$.file
  10253. -if test -d conf$$.dir; then
  10254. - rm -f conf$$.dir/conf$$.file
  10255. -else
  10256. - rm -f conf$$.dir
  10257. - mkdir conf$$.dir
  10258. -fi
  10259. -echo >conf$$.file
  10260. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  10261. - as_ln_s='ln -s'
  10262. - # ... but there are two gotchas:
  10263. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10264. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10265. - # In both cases, we have to default to `cp -p'.
  10266. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10267. - as_ln_s='cp -p'
  10268. -elif ln conf$$.file conf$$ 2>/dev/null; then
  10269. - as_ln_s=ln
  10270. -else
  10271. - as_ln_s='cp -p'
  10272. -fi
  10273. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10274. -rmdir conf$$.dir 2>/dev/null
  10275. -
  10276. -if mkdir -p . 2>/dev/null; then
  10277. - as_mkdir_p=:
  10278. -else
  10279. - test -d ./-p && rmdir ./-p
  10280. - as_mkdir_p=false
  10281. -fi
  10282. -
  10283. -if test -x / >/dev/null 2>&1; then
  10284. - as_test_x='test -x'
  10285. -else
  10286. - if ls -dL / >/dev/null 2>&1; then
  10287. - as_ls_L_option=L
  10288. - else
  10289. - as_ls_L_option=
  10290. - fi
  10291. - as_test_x='
  10292. - eval sh -c '\''
  10293. - if test -d "$1"; then
  10294. - test -d "$1/.";
  10295. - else
  10296. - case $1 in
  10297. - -*)set "./$1";;
  10298. - esac;
  10299. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10300. - ???[sx]*):;;*)false;;esac;fi
  10301. - '\'' sh
  10302. - '
  10303. -fi
  10304. -as_executable_p=$as_test_x
  10305. -
  10306. -# Sed expression to map a string onto a valid CPP name.
  10307. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10308. -
  10309. -# Sed expression to map a string onto a valid variable name.
  10310. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10311. -
  10312. -
  10313. -
  10314. -
  10315. -# Check that we are running under the correct shell.
  10316. -SHELL=${CONFIG_SHELL-/bin/sh}
  10317. -
  10318. -case X$ECHO in
  10319. -X*--fallback-echo)
  10320. - # Remove one level of quotation (which was required for Make).
  10321. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  10322. - ;;
  10323. -esac
  10324. -
  10325. -echo=${ECHO-echo}
  10326. +ECHO=${lt_ECHO-echo}
  10327. if test "X$1" = X--no-reexec; then
  10328. # Discard the --no-reexec flag, and continue.
  10329. shift
  10330. elif test "X$1" = X--fallback-echo; then
  10331. # Avoid inline document here, it may be left over
  10332. :
  10333. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  10334. - # Yippee, $echo works!
  10335. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  10336. + # Yippee, $ECHO works!
  10337. :
  10338. else
  10339. # Restart under the correct shell.
  10340. @@ -578,9 +555,9 @@
  10341. if test "X$1" = X--fallback-echo; then
  10342. # used as fallback echo
  10343. shift
  10344. - cat <<EOF
  10345. + cat <<_LT_EOF
  10346. $*
  10347. -EOF
  10348. +_LT_EOF
  10349. exit 0
  10350. fi
  10351. @@ -588,122 +565,118 @@
  10352. # if CDPATH is set.
  10353. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10354. -if test -z "$ECHO"; then
  10355. -if test "X${echo_test_string+set}" != Xset; then
  10356. -# find a string as large as possible, as long as the shell can cope with it
  10357. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  10358. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  10359. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  10360. - echo_test_string=`eval $cmd` &&
  10361. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  10362. - then
  10363. - break
  10364. - fi
  10365. - done
  10366. -fi
  10367. +if test -z "$lt_ECHO"; then
  10368. + if test "X${echo_test_string+set}" != Xset; then
  10369. + # find a string as large as possible, as long as the shell can cope with it
  10370. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  10371. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  10372. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  10373. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  10374. + then
  10375. + break
  10376. + fi
  10377. + done
  10378. + fi
  10379. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  10380. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  10381. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10382. - :
  10383. -else
  10384. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  10385. - # backslashes. This makes it impossible to quote backslashes using
  10386. - # echo "$something" | sed 's/\\/\\\\/g'
  10387. - #
  10388. - # So, first we look for a working echo in the user's PATH.
  10389. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  10390. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  10391. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10392. + :
  10393. + else
  10394. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  10395. + # backslashes. This makes it impossible to quote backslashes using
  10396. + # echo "$something" | sed 's/\\/\\\\/g'
  10397. + #
  10398. + # So, first we look for a working echo in the user's PATH.
  10399. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10400. - for dir in $PATH /usr/ucb; do
  10401. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10402. + for dir in $PATH /usr/ucb; do
  10403. + IFS="$lt_save_ifs"
  10404. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  10405. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  10406. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  10407. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10408. + ECHO="$dir/echo"
  10409. + break
  10410. + fi
  10411. + done
  10412. IFS="$lt_save_ifs"
  10413. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  10414. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  10415. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  10416. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10417. - echo="$dir/echo"
  10418. - break
  10419. - fi
  10420. - done
  10421. - IFS="$lt_save_ifs"
  10422. - if test "X$echo" = Xecho; then
  10423. - # We didn't find a better echo, so look for alternatives.
  10424. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  10425. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  10426. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10427. - # This shell has a builtin print -r that does the trick.
  10428. - echo='print -r'
  10429. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  10430. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  10431. - # If we have ksh, try running configure again with it.
  10432. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10433. - export ORIGINAL_CONFIG_SHELL
  10434. - CONFIG_SHELL=/bin/ksh
  10435. - export CONFIG_SHELL
  10436. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  10437. - else
  10438. - # Try using printf.
  10439. - echo='printf %s\n'
  10440. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  10441. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  10442. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10443. - # Cool, printf works
  10444. - :
  10445. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  10446. - test "X$echo_testing_string" = 'X\t' &&
  10447. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  10448. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10449. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  10450. - export CONFIG_SHELL
  10451. - SHELL="$CONFIG_SHELL"
  10452. - export SHELL
  10453. - echo="$CONFIG_SHELL $0 --fallback-echo"
  10454. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  10455. - test "X$echo_testing_string" = 'X\t' &&
  10456. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  10457. - test "X$echo_testing_string" = "X$echo_test_string"; then
  10458. - echo="$CONFIG_SHELL $0 --fallback-echo"
  10459. + if test "X$ECHO" = Xecho; then
  10460. + # We didn't find a better echo, so look for alternatives.
  10461. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  10462. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  10463. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10464. + # This shell has a builtin print -r that does the trick.
  10465. + ECHO='print -r'
  10466. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  10467. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  10468. + # If we have ksh, try running configure again with it.
  10469. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10470. + export ORIGINAL_CONFIG_SHELL
  10471. + CONFIG_SHELL=/bin/ksh
  10472. + export CONFIG_SHELL
  10473. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  10474. else
  10475. - # maybe with a smaller string...
  10476. - prev=:
  10477. + # Try using printf.
  10478. + ECHO='printf %s\n'
  10479. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  10480. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  10481. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10482. + # Cool, printf works
  10483. + :
  10484. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  10485. + test "X$echo_testing_string" = 'X\t' &&
  10486. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  10487. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10488. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  10489. + export CONFIG_SHELL
  10490. + SHELL="$CONFIG_SHELL"
  10491. + export SHELL
  10492. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  10493. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  10494. + test "X$echo_testing_string" = 'X\t' &&
  10495. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  10496. + test "X$echo_testing_string" = "X$echo_test_string"; then
  10497. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  10498. + else
  10499. + # maybe with a smaller string...
  10500. + prev=:
  10501. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  10502. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  10503. - then
  10504. - break
  10505. - fi
  10506. - prev="$cmd"
  10507. - done
  10508. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  10509. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  10510. + then
  10511. + break
  10512. + fi
  10513. + prev="$cmd"
  10514. + done
  10515. - if test "$prev" != 'sed 50q "$0"'; then
  10516. - echo_test_string=`eval $prev`
  10517. - export echo_test_string
  10518. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  10519. - else
  10520. - # Oops. We lost completely, so just stick with echo.
  10521. - echo=echo
  10522. - fi
  10523. + if test "$prev" != 'sed 50q "$0"'; then
  10524. + echo_test_string=`eval $prev`
  10525. + export echo_test_string
  10526. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  10527. + else
  10528. + # Oops. We lost completely, so just stick with echo.
  10529. + ECHO=echo
  10530. + fi
  10531. + fi
  10532. fi
  10533. fi
  10534. fi
  10535. fi
  10536. -fi
  10537. # Copy echo and quote the copy suitably for passing to libtool from
  10538. # the Makefile, instead of quoting the original, which is used later.
  10539. -ECHO=$echo
  10540. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  10541. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  10542. +lt_ECHO=$ECHO
  10543. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  10544. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  10545. fi
  10546. -tagnames=${tagnames+${tagnames},}CXX
  10547. -
  10548. -tagnames=${tagnames+${tagnames},}F77
  10549. -
  10550. -exec 7<&0 </dev/null 6>&1
  10551. +test -n "$DJDIR" || exec 7<&0 </dev/null
  10552. +exec 6>&1
  10553. # Name of the host.
  10554. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  10555. @@ -721,7 +694,6 @@
  10556. subdirs=
  10557. MFLAGS=
  10558. MAKEFLAGS=
  10559. -SHELL=${CONFIG_SHELL-/bin/sh}
  10560. # Identity of this package.
  10561. PACKAGE_NAME=
  10562. @@ -729,6 +701,7 @@
  10563. PACKAGE_VERSION=
  10564. PACKAGE_STRING=
  10565. PACKAGE_BUGREPORT=
  10566. +PACKAGE_URL=
  10567. ac_unique_file="cgi.c"
  10568. # Factoring default headers for most tests.
  10569. @@ -767,114 +740,127 @@
  10570. # include <unistd.h>
  10571. #endif"
  10572. -ac_subst_vars='SHELL
  10573. -PATH_SEPARATOR
  10574. -PACKAGE_NAME
  10575. -PACKAGE_TARNAME
  10576. -PACKAGE_VERSION
  10577. -PACKAGE_STRING
  10578. -PACKAGE_BUGREPORT
  10579. -exec_prefix
  10580. -prefix
  10581. -program_transform_name
  10582. -bindir
  10583. -sbindir
  10584. -libexecdir
  10585. -datarootdir
  10586. -datadir
  10587. -sysconfdir
  10588. -sharedstatedir
  10589. -localstatedir
  10590. -includedir
  10591. -oldincludedir
  10592. -docdir
  10593. -infodir
  10594. -htmldir
  10595. -dvidir
  10596. -pdfdir
  10597. -psdir
  10598. -libdir
  10599. -localedir
  10600. -mandir
  10601. -DEFS
  10602. -ECHO_C
  10603. -ECHO_N
  10604. -ECHO_T
  10605. -LIBS
  10606. -build_alias
  10607. -host_alias
  10608. -target_alias
  10609. -INSTALL_PROGRAM
  10610. -INSTALL_SCRIPT
  10611. -INSTALL_DATA
  10612. -am__isrc
  10613. -CYGPATH_W
  10614. -PACKAGE
  10615. -VERSION
  10616. -ACLOCAL
  10617. -AUTOCONF
  10618. -AUTOMAKE
  10619. -AUTOHEADER
  10620. -MAKEINFO
  10621. -install_sh
  10622. -STRIP
  10623. -INSTALL_STRIP_PROGRAM
  10624. -mkdir_p
  10625. -AWK
  10626. -SET_MAKE
  10627. -am__leading_dot
  10628. -AMTAR
  10629. -am__tar
  10630. -am__untar
  10631. -CC
  10632. -CFLAGS
  10633. -LDFLAGS
  10634. -CPPFLAGS
  10635. -ac_ct_CC
  10636. -EXEEXT
  10637. -OBJEXT
  10638. -DEPDIR
  10639. -am__include
  10640. -am__quote
  10641. -AMDEP_TRUE
  10642. -AMDEP_FALSE
  10643. -AMDEPBACKSLASH
  10644. -CCDEPMODE
  10645. -am__fastdepCC_TRUE
  10646. -am__fastdepCC_FALSE
  10647. -build
  10648. -build_cpu
  10649. -build_vendor
  10650. -build_os
  10651. -host
  10652. -host_cpu
  10653. -host_vendor
  10654. -host_os
  10655. -SED
  10656. -GREP
  10657. -EGREP
  10658. -LN_S
  10659. -ECHO
  10660. -AR
  10661. -RANLIB
  10662. -DSYMUTIL
  10663. -NMEDIT
  10664. +ac_subst_vars='am__EXEEXT_FALSE
  10665. +am__EXEEXT_TRUE
  10666. +LTLIBOBJS
  10667. +LIBOBJS
  10668. +SO_VERSION
  10669. CPP
  10670. -CXX
  10671. -CXXFLAGS
  10672. -ac_ct_CXX
  10673. -CXXDEPMODE
  10674. -am__fastdepCXX_TRUE
  10675. -am__fastdepCXX_FALSE
  10676. -CXXCPP
  10677. -F77
  10678. -FFLAGS
  10679. -ac_ct_F77
  10680. +OTOOL64
  10681. +OTOOL
  10682. +LIPO
  10683. +NMEDIT
  10684. +DSYMUTIL
  10685. +lt_ECHO
  10686. +RANLIB
  10687. +AR
  10688. +OBJDUMP
  10689. +LN_S
  10690. +NM
  10691. +ac_ct_DUMPBIN
  10692. +DUMPBIN
  10693. +LD
  10694. +FGREP
  10695. +EGREP
  10696. +GREP
  10697. +SED
  10698. +host_os
  10699. +host_vendor
  10700. +host_cpu
  10701. +host
  10702. +build_os
  10703. +build_vendor
  10704. +build_cpu
  10705. +build
  10706. LIBTOOL
  10707. -SO_VERSION
  10708. -LIBOBJS
  10709. -LTLIBOBJS'
  10710. +am__fastdepCC_FALSE
  10711. +am__fastdepCC_TRUE
  10712. +CCDEPMODE
  10713. +AMDEPBACKSLASH
  10714. +AMDEP_FALSE
  10715. +AMDEP_TRUE
  10716. +am__quote
  10717. +am__include
  10718. +DEPDIR
  10719. +OBJEXT
  10720. +EXEEXT
  10721. +ac_ct_CC
  10722. +CPPFLAGS
  10723. +LDFLAGS
  10724. +CFLAGS
  10725. +CC
  10726. +am__untar
  10727. +am__tar
  10728. +AMTAR
  10729. +am__leading_dot
  10730. +SET_MAKE
  10731. +AWK
  10732. +mkdir_p
  10733. +MKDIR_P
  10734. +INSTALL_STRIP_PROGRAM
  10735. +STRIP
  10736. +install_sh
  10737. +MAKEINFO
  10738. +AUTOHEADER
  10739. +AUTOMAKE
  10740. +AUTOCONF
  10741. +ACLOCAL
  10742. +VERSION
  10743. +PACKAGE
  10744. +CYGPATH_W
  10745. +am__isrc
  10746. +INSTALL_DATA
  10747. +INSTALL_SCRIPT
  10748. +INSTALL_PROGRAM
  10749. +target_alias
  10750. +host_alias
  10751. +build_alias
  10752. +LIBS
  10753. +ECHO_T
  10754. +ECHO_N
  10755. +ECHO_C
  10756. +DEFS
  10757. +mandir
  10758. +localedir
  10759. +libdir
  10760. +psdir
  10761. +pdfdir
  10762. +dvidir
  10763. +htmldir
  10764. +infodir
  10765. +docdir
  10766. +oldincludedir
  10767. +includedir
  10768. +localstatedir
  10769. +sharedstatedir
  10770. +sysconfdir
  10771. +datadir
  10772. +datarootdir
  10773. +libexecdir
  10774. +sbindir
  10775. +bindir
  10776. +program_transform_name
  10777. +prefix
  10778. +exec_prefix
  10779. +PACKAGE_URL
  10780. +PACKAGE_BUGREPORT
  10781. +PACKAGE_STRING
  10782. +PACKAGE_VERSION
  10783. +PACKAGE_TARNAME
  10784. +PACKAGE_NAME
  10785. +PATH_SEPARATOR
  10786. +SHELL'
  10787. ac_subst_files=''
  10788. +ac_user_opts='
  10789. +enable_option_checking
  10790. +enable_dependency_tracking
  10791. +enable_shared
  10792. +enable_static
  10793. +with_pic
  10794. +enable_fast_install
  10795. +with_gnu_ld
  10796. +enable_libtool_lock
  10797. +'
  10798. ac_precious_vars='build_alias
  10799. host_alias
  10800. target_alias
  10801. @@ -883,18 +869,14 @@
  10802. LDFLAGS
  10803. LIBS
  10804. CPPFLAGS
  10805. -CPP
  10806. -CXX
  10807. -CXXFLAGS
  10808. -CCC
  10809. -CXXCPP
  10810. -F77
  10811. -FFLAGS'
  10812. +CPP'
  10813. # Initialize some variables set by options.
  10814. ac_init_help=
  10815. ac_init_version=false
  10816. +ac_unrecognized_opts=
  10817. +ac_unrecognized_sep=
  10818. # The variables have the same names as the options, with
  10819. # dashes changed to underlines.
  10820. cache_file=/dev/null
  10821. @@ -993,13 +975,20 @@
  10822. datarootdir=$ac_optarg ;;
  10823. -disable-* | --disable-*)
  10824. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  10825. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  10826. # Reject names that are not valid shell variable names.
  10827. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  10828. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  10829. - { (exit 1); exit 1; }; }
  10830. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  10831. - eval enable_$ac_feature=no ;;
  10832. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  10833. + as_fn_error "invalid feature name: $ac_useropt"
  10834. + ac_useropt_orig=$ac_useropt
  10835. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  10836. + case $ac_user_opts in
  10837. + *"
  10838. +"enable_$ac_useropt"
  10839. +"*) ;;
  10840. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  10841. + ac_unrecognized_sep=', ';;
  10842. + esac
  10843. + eval enable_$ac_useropt=no ;;
  10844. -docdir | --docdir | --docdi | --doc | --do)
  10845. ac_prev=docdir ;;
  10846. @@ -1012,13 +1001,20 @@
  10847. dvidir=$ac_optarg ;;
  10848. -enable-* | --enable-*)
  10849. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  10850. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  10851. # Reject names that are not valid shell variable names.
  10852. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  10853. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  10854. - { (exit 1); exit 1; }; }
  10855. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  10856. - eval enable_$ac_feature=\$ac_optarg ;;
  10857. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  10858. + as_fn_error "invalid feature name: $ac_useropt"
  10859. + ac_useropt_orig=$ac_useropt
  10860. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  10861. + case $ac_user_opts in
  10862. + *"
  10863. +"enable_$ac_useropt"
  10864. +"*) ;;
  10865. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  10866. + ac_unrecognized_sep=', ';;
  10867. + esac
  10868. + eval enable_$ac_useropt=\$ac_optarg ;;
  10869. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  10870. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  10871. @@ -1209,22 +1205,36 @@
  10872. ac_init_version=: ;;
  10873. -with-* | --with-*)
  10874. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  10875. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  10876. # Reject names that are not valid shell variable names.
  10877. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  10878. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  10879. - { (exit 1); exit 1; }; }
  10880. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  10881. - eval with_$ac_package=\$ac_optarg ;;
  10882. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  10883. + as_fn_error "invalid package name: $ac_useropt"
  10884. + ac_useropt_orig=$ac_useropt
  10885. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  10886. + case $ac_user_opts in
  10887. + *"
  10888. +"with_$ac_useropt"
  10889. +"*) ;;
  10890. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  10891. + ac_unrecognized_sep=', ';;
  10892. + esac
  10893. + eval with_$ac_useropt=\$ac_optarg ;;
  10894. -without-* | --without-*)
  10895. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  10896. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  10897. # Reject names that are not valid shell variable names.
  10898. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  10899. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  10900. - { (exit 1); exit 1; }; }
  10901. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  10902. - eval with_$ac_package=no ;;
  10903. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  10904. + as_fn_error "invalid package name: $ac_useropt"
  10905. + ac_useropt_orig=$ac_useropt
  10906. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  10907. + case $ac_user_opts in
  10908. + *"
  10909. +"with_$ac_useropt"
  10910. +"*) ;;
  10911. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  10912. + ac_unrecognized_sep=', ';;
  10913. + esac
  10914. + eval with_$ac_useropt=no ;;
  10915. --x)
  10916. # Obsolete; use --with-x.
  10917. @@ -1244,25 +1254,25 @@
  10918. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  10919. x_libraries=$ac_optarg ;;
  10920. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  10921. -Try \`$0 --help' for more information." >&2
  10922. - { (exit 1); exit 1; }; }
  10923. + -*) as_fn_error "unrecognized option: \`$ac_option'
  10924. +Try \`$0 --help' for more information."
  10925. ;;
  10926. *=*)
  10927. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  10928. # Reject names that are not valid shell variable names.
  10929. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  10930. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  10931. - { (exit 1); exit 1; }; }
  10932. + case $ac_envvar in #(
  10933. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  10934. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  10935. + esac
  10936. eval $ac_envvar=\$ac_optarg
  10937. export $ac_envvar ;;
  10938. *)
  10939. # FIXME: should be removed in autoconf 3.0.
  10940. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  10941. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  10942. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  10943. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  10944. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  10945. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  10946. ;;
  10947. @@ -1271,23 +1281,36 @@
  10948. if test -n "$ac_prev"; then
  10949. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  10950. - { echo "$as_me: error: missing argument to $ac_option" >&2
  10951. - { (exit 1); exit 1; }; }
  10952. + as_fn_error "missing argument to $ac_option"
  10953. +fi
  10954. +
  10955. +if test -n "$ac_unrecognized_opts"; then
  10956. + case $enable_option_checking in
  10957. + no) ;;
  10958. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  10959. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  10960. + esac
  10961. fi
  10962. -# Be sure to have absolute directory names.
  10963. +# Check all directory arguments for consistency.
  10964. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  10965. datadir sysconfdir sharedstatedir localstatedir includedir \
  10966. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  10967. libdir localedir mandir
  10968. do
  10969. eval ac_val=\$$ac_var
  10970. + # Remove trailing slashes.
  10971. + case $ac_val in
  10972. + */ )
  10973. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  10974. + eval $ac_var=\$ac_val;;
  10975. + esac
  10976. + # Be sure to have absolute directory names.
  10977. case $ac_val in
  10978. [\\/$]* | ?:[\\/]* ) continue;;
  10979. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  10980. esac
  10981. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  10982. - { (exit 1); exit 1; }; }
  10983. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  10984. done
  10985. # There might be people who depend on the old broken behavior: `$host'
  10986. @@ -1301,7 +1324,7 @@
  10987. if test "x$host_alias" != x; then
  10988. if test "x$build_alias" = x; then
  10989. cross_compiling=maybe
  10990. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  10991. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  10992. If a cross compiler is detected then cross compile mode will be used." >&2
  10993. elif test "x$build_alias" != "x$host_alias"; then
  10994. cross_compiling=yes
  10995. @@ -1317,23 +1340,21 @@
  10996. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  10997. ac_ls_di=`ls -di .` &&
  10998. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  10999. - { echo "$as_me: error: Working directory cannot be determined" >&2
  11000. - { (exit 1); exit 1; }; }
  11001. + as_fn_error "working directory cannot be determined"
  11002. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  11003. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  11004. - { (exit 1); exit 1; }; }
  11005. + as_fn_error "pwd does not report name of working directory"
  11006. # Find the source files, if location was not specified.
  11007. if test -z "$srcdir"; then
  11008. ac_srcdir_defaulted=yes
  11009. # Try the directory containing this script, then the parent directory.
  11010. - ac_confdir=`$as_dirname -- "$0" ||
  11011. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11012. - X"$0" : 'X\(//\)[^/]' \| \
  11013. - X"$0" : 'X\(//\)$' \| \
  11014. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11015. -echo X"$0" |
  11016. + ac_confdir=`$as_dirname -- "$as_myself" ||
  11017. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11018. + X"$as_myself" : 'X\(//\)[^/]' \| \
  11019. + X"$as_myself" : 'X\(//\)$' \| \
  11020. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  11021. +$as_echo X"$as_myself" |
  11022. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11023. s//\1/
  11024. q
  11025. @@ -1360,13 +1381,11 @@
  11026. fi
  11027. if test ! -r "$srcdir/$ac_unique_file"; then
  11028. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  11029. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  11030. - { (exit 1); exit 1; }; }
  11031. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  11032. fi
  11033. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  11034. ac_abs_confdir=`(
  11035. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  11036. - { (exit 1); exit 1; }; }
  11037. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  11038. pwd)`
  11039. # When building in place, set srcdir=.
  11040. if test "$ac_abs_confdir" = "$ac_pwd"; then
  11041. @@ -1414,9 +1433,9 @@
  11042. Installation directories:
  11043. --prefix=PREFIX install architecture-independent files in PREFIX
  11044. - [$ac_default_prefix]
  11045. + [$ac_default_prefix]
  11046. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  11047. - [PREFIX]
  11048. + [PREFIX]
  11049. By default, \`make install' will install all the files in
  11050. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  11051. @@ -1426,25 +1445,25 @@
  11052. For better control, use the options below.
  11053. Fine tuning of the installation directories:
  11054. - --bindir=DIR user executables [EPREFIX/bin]
  11055. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  11056. - --libexecdir=DIR program executables [EPREFIX/libexec]
  11057. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  11058. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  11059. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  11060. - --libdir=DIR object code libraries [EPREFIX/lib]
  11061. - --includedir=DIR C header files [PREFIX/include]
  11062. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  11063. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  11064. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  11065. - --infodir=DIR info documentation [DATAROOTDIR/info]
  11066. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  11067. - --mandir=DIR man documentation [DATAROOTDIR/man]
  11068. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  11069. - --htmldir=DIR html documentation [DOCDIR]
  11070. - --dvidir=DIR dvi documentation [DOCDIR]
  11071. - --pdfdir=DIR pdf documentation [DOCDIR]
  11072. - --psdir=DIR ps documentation [DOCDIR]
  11073. + --bindir=DIR user executables [EPREFIX/bin]
  11074. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  11075. + --libexecdir=DIR program executables [EPREFIX/libexec]
  11076. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  11077. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  11078. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  11079. + --libdir=DIR object code libraries [EPREFIX/lib]
  11080. + --includedir=DIR C header files [PREFIX/include]
  11081. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  11082. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  11083. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  11084. + --infodir=DIR info documentation [DATAROOTDIR/info]
  11085. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  11086. + --mandir=DIR man documentation [DATAROOTDIR/man]
  11087. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  11088. + --htmldir=DIR html documentation [DOCDIR]
  11089. + --dvidir=DIR dvi documentation [DOCDIR]
  11090. + --pdfdir=DIR pdf documentation [DOCDIR]
  11091. + --psdir=DIR ps documentation [DOCDIR]
  11092. _ACEOF
  11093. cat <<\_ACEOF
  11094. @@ -1465,6 +1484,7 @@
  11095. cat <<\_ACEOF
  11096. Optional Features:
  11097. + --disable-option-checking ignore unrecognized --enable/--with options
  11098. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  11099. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  11100. --disable-dependency-tracking speeds up one-time build
  11101. @@ -1478,10 +1498,9 @@
  11102. Optional Packages:
  11103. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  11104. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  11105. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  11106. --with-pic try to use only PIC/non-PIC objects [default=use
  11107. both]
  11108. - --with-tags[=TAGS] include additional configurations [automatic]
  11109. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  11110. Some influential environment variables:
  11111. CC C compiler command
  11112. @@ -1489,18 +1508,14 @@
  11113. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  11114. nonstandard directory <lib dir>
  11115. LIBS libraries to pass to the linker, e.g. -l<library>
  11116. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  11117. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  11118. you have headers in a nonstandard directory <include dir>
  11119. CPP C preprocessor
  11120. - CXX C++ compiler command
  11121. - CXXFLAGS C++ compiler flags
  11122. - CXXCPP C++ preprocessor
  11123. - F77 Fortran 77 compiler command
  11124. - FFLAGS Fortran 77 compiler flags
  11125. Use these variables to override the choices made by `configure' or to help
  11126. it to find libraries and programs with nonstandard names/locations.
  11127. +Report bugs to the package provider.
  11128. _ACEOF
  11129. ac_status=$?
  11130. fi
  11131. @@ -1508,15 +1523,17 @@
  11132. if test "$ac_init_help" = "recursive"; then
  11133. # If there are subdirs, report their specific --help.
  11134. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  11135. - test -d "$ac_dir" || continue
  11136. + test -d "$ac_dir" ||
  11137. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  11138. + continue
  11139. ac_builddir=.
  11140. case "$ac_dir" in
  11141. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11142. *)
  11143. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11144. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11145. # A ".." for each directory in $ac_dir_suffix.
  11146. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11147. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11148. case $ac_top_builddir_sub in
  11149. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11150. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11151. @@ -1552,7 +1569,7 @@
  11152. echo &&
  11153. $SHELL "$ac_srcdir/configure" --help=recursive
  11154. else
  11155. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  11156. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  11157. fi || ac_status=$?
  11158. cd "$ac_pwd" || { ac_status=$?; break; }
  11159. done
  11160. @@ -1562,70 +1579,334 @@
  11161. if $ac_init_version; then
  11162. cat <<\_ACEOF
  11163. configure
  11164. -generated by GNU Autoconf 2.61
  11165. +generated by GNU Autoconf 2.65
  11166. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  11167. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  11168. +Copyright (C) 2009 Free Software Foundation, Inc.
  11169. This configure script is free software; the Free Software Foundation
  11170. gives unlimited permission to copy, distribute and modify it.
  11171. _ACEOF
  11172. exit
  11173. fi
  11174. -cat >config.log <<_ACEOF
  11175. -This file contains any messages produced by compilers while
  11176. -running configure, to aid debugging if configure makes a mistake.
  11177. -
  11178. -It was created by $as_me, which was
  11179. -generated by GNU Autoconf 2.61. Invocation command line was
  11180. -
  11181. - $ $0 $@
  11182. -_ACEOF
  11183. -exec 5>>config.log
  11184. +## ------------------------ ##
  11185. +## Autoconf initialization. ##
  11186. +## ------------------------ ##
  11187. +
  11188. +# ac_fn_c_try_compile LINENO
  11189. +# --------------------------
  11190. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  11191. +ac_fn_c_try_compile ()
  11192. {
  11193. -cat <<_ASUNAME
  11194. -## --------- ##
  11195. -## Platform. ##
  11196. -## --------- ##
  11197. -
  11198. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  11199. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  11200. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  11201. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  11202. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  11203. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11204. + rm -f conftest.$ac_objext
  11205. + if { { ac_try="$ac_compile"
  11206. +case "(($ac_try" in
  11207. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11208. + *) ac_try_echo=$ac_try;;
  11209. +esac
  11210. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11211. +$as_echo "$ac_try_echo"; } >&5
  11212. + (eval "$ac_compile") 2>conftest.err
  11213. + ac_status=$?
  11214. + if test -s conftest.err; then
  11215. + grep -v '^ *+' conftest.err >conftest.er1
  11216. + cat conftest.er1 >&5
  11217. + mv -f conftest.er1 conftest.err
  11218. + fi
  11219. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11220. + test $ac_status = 0; } && {
  11221. + test -z "$ac_c_werror_flag" ||
  11222. + test ! -s conftest.err
  11223. + } && test -s conftest.$ac_objext; then :
  11224. + ac_retval=0
  11225. +else
  11226. + $as_echo "$as_me: failed program was:" >&5
  11227. +sed 's/^/| /' conftest.$ac_ext >&5
  11228. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  11229. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  11230. + ac_retval=1
  11231. +fi
  11232. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11233. + as_fn_set_status $ac_retval
  11234. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  11235. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  11236. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  11237. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  11238. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  11239. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  11240. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  11241. +} # ac_fn_c_try_compile
  11242. -_ASUNAME
  11243. +# ac_fn_c_try_link LINENO
  11244. +# -----------------------
  11245. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  11246. +ac_fn_c_try_link ()
  11247. +{
  11248. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11249. + rm -f conftest.$ac_objext conftest$ac_exeext
  11250. + if { { ac_try="$ac_link"
  11251. +case "(($ac_try" in
  11252. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. + *) ac_try_echo=$ac_try;;
  11254. +esac
  11255. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11256. +$as_echo "$ac_try_echo"; } >&5
  11257. + (eval "$ac_link") 2>conftest.err
  11258. + ac_status=$?
  11259. + if test -s conftest.err; then
  11260. + grep -v '^ *+' conftest.err >conftest.er1
  11261. + cat conftest.er1 >&5
  11262. + mv -f conftest.er1 conftest.err
  11263. + fi
  11264. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11265. + test $ac_status = 0; } && {
  11266. + test -z "$ac_c_werror_flag" ||
  11267. + test ! -s conftest.err
  11268. + } && test -s conftest$ac_exeext && {
  11269. + test "$cross_compiling" = yes ||
  11270. + $as_test_x conftest$ac_exeext
  11271. + }; then :
  11272. + ac_retval=0
  11273. +else
  11274. + $as_echo "$as_me: failed program was:" >&5
  11275. +sed 's/^/| /' conftest.$ac_ext >&5
  11276. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11277. -for as_dir in $PATH
  11278. -do
  11279. - IFS=$as_save_IFS
  11280. - test -z "$as_dir" && as_dir=.
  11281. - echo "PATH: $as_dir"
  11282. -done
  11283. -IFS=$as_save_IFS
  11284. + ac_retval=1
  11285. +fi
  11286. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  11287. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  11288. + # interfere with the next link command; also delete a directory that is
  11289. + # left behind by Apple's compiler. We do this before executing the actions.
  11290. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  11291. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11292. + as_fn_set_status $ac_retval
  11293. -} >&5
  11294. +} # ac_fn_c_try_link
  11295. -cat >&5 <<_ACEOF
  11296. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  11297. +# -------------------------------------------------------
  11298. +# Tests whether HEADER exists and can be compiled using the include files in
  11299. +# INCLUDES, setting the cache variable VAR accordingly.
  11300. +ac_fn_c_check_header_compile ()
  11301. +{
  11302. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11303. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  11304. +$as_echo_n "checking for $2... " >&6; }
  11305. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  11306. + $as_echo_n "(cached) " >&6
  11307. +else
  11308. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11309. +/* end confdefs.h. */
  11310. +$4
  11311. +#include <$2>
  11312. +_ACEOF
  11313. +if ac_fn_c_try_compile "$LINENO"; then :
  11314. + eval "$3=yes"
  11315. +else
  11316. + eval "$3=no"
  11317. +fi
  11318. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11319. +fi
  11320. +eval ac_res=\$$3
  11321. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11322. +$as_echo "$ac_res" >&6; }
  11323. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11324. +} # ac_fn_c_check_header_compile
  11325. -## ----------- ##
  11326. -## Core tests. ##
  11327. -## ----------- ##
  11328. +# ac_fn_c_try_cpp LINENO
  11329. +# ----------------------
  11330. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  11331. +ac_fn_c_try_cpp ()
  11332. +{
  11333. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11334. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  11335. +case "(($ac_try" in
  11336. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11337. + *) ac_try_echo=$ac_try;;
  11338. +esac
  11339. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11340. +$as_echo "$ac_try_echo"; } >&5
  11341. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  11342. + ac_status=$?
  11343. + if test -s conftest.err; then
  11344. + grep -v '^ *+' conftest.err >conftest.er1
  11345. + cat conftest.er1 >&5
  11346. + mv -f conftest.er1 conftest.err
  11347. + fi
  11348. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11349. + test $ac_status = 0; } >/dev/null && {
  11350. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  11351. + test ! -s conftest.err
  11352. + }; then :
  11353. + ac_retval=0
  11354. +else
  11355. + $as_echo "$as_me: failed program was:" >&5
  11356. +sed 's/^/| /' conftest.$ac_ext >&5
  11357. -_ACEOF
  11358. + ac_retval=1
  11359. +fi
  11360. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11361. + as_fn_set_status $ac_retval
  11362. +
  11363. +} # ac_fn_c_try_cpp
  11364. +
  11365. +# ac_fn_c_try_run LINENO
  11366. +# ----------------------
  11367. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  11368. +# that executables *can* be run.
  11369. +ac_fn_c_try_run ()
  11370. +{
  11371. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11372. + if { { ac_try="$ac_link"
  11373. +case "(($ac_try" in
  11374. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11375. + *) ac_try_echo=$ac_try;;
  11376. +esac
  11377. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11378. +$as_echo "$ac_try_echo"; } >&5
  11379. + (eval "$ac_link") 2>&5
  11380. + ac_status=$?
  11381. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11382. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  11383. + { { case "(($ac_try" in
  11384. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11385. + *) ac_try_echo=$ac_try;;
  11386. +esac
  11387. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11388. +$as_echo "$ac_try_echo"; } >&5
  11389. + (eval "$ac_try") 2>&5
  11390. + ac_status=$?
  11391. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11392. + test $ac_status = 0; }; }; then :
  11393. + ac_retval=0
  11394. +else
  11395. + $as_echo "$as_me: program exited with status $ac_status" >&5
  11396. + $as_echo "$as_me: failed program was:" >&5
  11397. +sed 's/^/| /' conftest.$ac_ext >&5
  11398. +
  11399. + ac_retval=$ac_status
  11400. +fi
  11401. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  11402. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11403. + as_fn_set_status $ac_retval
  11404. +
  11405. +} # ac_fn_c_try_run
  11406. +
  11407. +# ac_fn_c_check_func LINENO FUNC VAR
  11408. +# ----------------------------------
  11409. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  11410. +ac_fn_c_check_func ()
  11411. +{
  11412. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11413. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  11414. +$as_echo_n "checking for $2... " >&6; }
  11415. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  11416. + $as_echo_n "(cached) " >&6
  11417. +else
  11418. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11419. +/* end confdefs.h. */
  11420. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  11421. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11422. +#define $2 innocuous_$2
  11423. +
  11424. +/* System header to define __stub macros and hopefully few prototypes,
  11425. + which can conflict with char $2 (); below.
  11426. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11427. + <limits.h> exists even on freestanding compilers. */
  11428. +
  11429. +#ifdef __STDC__
  11430. +# include <limits.h>
  11431. +#else
  11432. +# include <assert.h>
  11433. +#endif
  11434. +
  11435. +#undef $2
  11436. +
  11437. +/* Override any GCC internal prototype to avoid an error.
  11438. + Use char because int might match the return type of a GCC
  11439. + builtin and then its argument prototype would still apply. */
  11440. +#ifdef __cplusplus
  11441. +extern "C"
  11442. +#endif
  11443. +char $2 ();
  11444. +/* The GNU C library defines this for functions which it implements
  11445. + to always fail with ENOSYS. Some functions are actually named
  11446. + something starting with __ and the normal name is an alias. */
  11447. +#if defined __stub_$2 || defined __stub___$2
  11448. +choke me
  11449. +#endif
  11450. +
  11451. +int
  11452. +main ()
  11453. +{
  11454. +return $2 ();
  11455. + ;
  11456. + return 0;
  11457. +}
  11458. +_ACEOF
  11459. +if ac_fn_c_try_link "$LINENO"; then :
  11460. + eval "$3=yes"
  11461. +else
  11462. + eval "$3=no"
  11463. +fi
  11464. +rm -f core conftest.err conftest.$ac_objext \
  11465. + conftest$ac_exeext conftest.$ac_ext
  11466. +fi
  11467. +eval ac_res=\$$3
  11468. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11469. +$as_echo "$ac_res" >&6; }
  11470. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  11471. +
  11472. +} # ac_fn_c_check_func
  11473. +cat >config.log <<_ACEOF
  11474. +This file contains any messages produced by compilers while
  11475. +running configure, to aid debugging if configure makes a mistake.
  11476. +
  11477. +It was created by $as_me, which was
  11478. +generated by GNU Autoconf 2.65. Invocation command line was
  11479. +
  11480. + $ $0 $@
  11481. +
  11482. +_ACEOF
  11483. +exec 5>>config.log
  11484. +{
  11485. +cat <<_ASUNAME
  11486. +## --------- ##
  11487. +## Platform. ##
  11488. +## --------- ##
  11489. +
  11490. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  11491. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  11492. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  11493. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  11494. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  11495. +
  11496. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  11497. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  11498. +
  11499. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  11500. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  11501. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  11502. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  11503. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  11504. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  11505. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  11506. +
  11507. +_ASUNAME
  11508. +
  11509. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11510. +for as_dir in $PATH
  11511. +do
  11512. + IFS=$as_save_IFS
  11513. + test -z "$as_dir" && as_dir=.
  11514. + $as_echo "PATH: $as_dir"
  11515. + done
  11516. +IFS=$as_save_IFS
  11517. +
  11518. +} >&5
  11519. +
  11520. +cat >&5 <<_ACEOF
  11521. +
  11522. +
  11523. +## ----------- ##
  11524. +## Core tests. ##
  11525. +## ----------- ##
  11526. +
  11527. +_ACEOF
  11528. # Keep a trace of the command line.
  11529. @@ -1647,12 +1928,12 @@
  11530. | -silent | --silent | --silen | --sile | --sil)
  11531. continue ;;
  11532. *\'*)
  11533. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11534. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11535. esac
  11536. case $ac_pass in
  11537. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  11538. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  11539. 2)
  11540. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  11541. + as_fn_append ac_configure_args1 " '$ac_arg'"
  11542. if test $ac_must_keep_next = true; then
  11543. ac_must_keep_next=false # Got value, back to normal.
  11544. else
  11545. @@ -1668,13 +1949,13 @@
  11546. -* ) ac_must_keep_next=true ;;
  11547. esac
  11548. fi
  11549. - ac_configure_args="$ac_configure_args '$ac_arg'"
  11550. + as_fn_append ac_configure_args " '$ac_arg'"
  11551. ;;
  11552. esac
  11553. done
  11554. done
  11555. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  11556. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  11557. +{ ac_configure_args0=; unset ac_configure_args0;}
  11558. +{ ac_configure_args1=; unset ac_configure_args1;}
  11559. # When interrupted or exit'd, cleanup temporary files, and complete
  11560. # config.log. We remove comments because anyway the quotes in there
  11561. @@ -1699,12 +1980,13 @@
  11562. case $ac_val in #(
  11563. *${as_nl}*)
  11564. case $ac_var in #(
  11565. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11566. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11567. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11568. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11569. esac
  11570. case $ac_var in #(
  11571. _ | IFS | as_nl) ;; #(
  11572. - *) $as_unset $ac_var ;;
  11573. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11574. + *) { eval $ac_var=; unset $ac_var;} ;;
  11575. esac ;;
  11576. esac
  11577. done
  11578. @@ -1733,9 +2015,9 @@
  11579. do
  11580. eval ac_val=\$$ac_var
  11581. case $ac_val in
  11582. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  11583. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  11584. esac
  11585. - echo "$ac_var='\''$ac_val'\''"
  11586. + $as_echo "$ac_var='\''$ac_val'\''"
  11587. done | sort
  11588. echo
  11589. @@ -1750,9 +2032,9 @@
  11590. do
  11591. eval ac_val=\$$ac_var
  11592. case $ac_val in
  11593. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  11594. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  11595. esac
  11596. - echo "$ac_var='\''$ac_val'\''"
  11597. + $as_echo "$ac_var='\''$ac_val'\''"
  11598. done | sort
  11599. echo
  11600. fi
  11601. @@ -1768,83 +2050,88 @@
  11602. echo
  11603. fi
  11604. test "$ac_signal" != 0 &&
  11605. - echo "$as_me: caught signal $ac_signal"
  11606. - echo "$as_me: exit $exit_status"
  11607. + $as_echo "$as_me: caught signal $ac_signal"
  11608. + $as_echo "$as_me: exit $exit_status"
  11609. } >&5
  11610. rm -f core *.core core.conftest.* &&
  11611. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  11612. exit $exit_status
  11613. ' 0
  11614. for ac_signal in 1 2 13 15; do
  11615. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  11616. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  11617. done
  11618. ac_signal=0
  11619. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  11620. rm -f -r conftest* confdefs.h
  11621. +$as_echo "/* confdefs.h */" > confdefs.h
  11622. +
  11623. # Predefined preprocessor variables.
  11624. cat >>confdefs.h <<_ACEOF
  11625. #define PACKAGE_NAME "$PACKAGE_NAME"
  11626. _ACEOF
  11627. -
  11628. cat >>confdefs.h <<_ACEOF
  11629. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  11630. _ACEOF
  11631. -
  11632. cat >>confdefs.h <<_ACEOF
  11633. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  11634. _ACEOF
  11635. -
  11636. cat >>confdefs.h <<_ACEOF
  11637. #define PACKAGE_STRING "$PACKAGE_STRING"
  11638. _ACEOF
  11639. -
  11640. cat >>confdefs.h <<_ACEOF
  11641. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  11642. _ACEOF
  11643. +cat >>confdefs.h <<_ACEOF
  11644. +#define PACKAGE_URL "$PACKAGE_URL"
  11645. +_ACEOF
  11646. +
  11647. # Let the site file select an alternate cache file if it wants to.
  11648. -# Prefer explicitly selected file to automatically selected ones.
  11649. +# Prefer an explicitly selected file to automatically selected ones.
  11650. +ac_site_file1=NONE
  11651. +ac_site_file2=NONE
  11652. if test -n "$CONFIG_SITE"; then
  11653. - set x "$CONFIG_SITE"
  11654. + ac_site_file1=$CONFIG_SITE
  11655. elif test "x$prefix" != xNONE; then
  11656. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  11657. + ac_site_file1=$prefix/share/config.site
  11658. + ac_site_file2=$prefix/etc/config.site
  11659. else
  11660. - set x "$ac_default_prefix/share/config.site" \
  11661. - "$ac_default_prefix/etc/config.site"
  11662. + ac_site_file1=$ac_default_prefix/share/config.site
  11663. + ac_site_file2=$ac_default_prefix/etc/config.site
  11664. fi
  11665. -shift
  11666. -for ac_site_file
  11667. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  11668. do
  11669. - if test -r "$ac_site_file"; then
  11670. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  11671. -echo "$as_me: loading site script $ac_site_file" >&6;}
  11672. + test "x$ac_site_file" = xNONE && continue
  11673. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  11674. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  11675. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  11676. sed 's/^/| /' "$ac_site_file" >&5
  11677. . "$ac_site_file"
  11678. fi
  11679. done
  11680. if test -r "$cache_file"; then
  11681. - # Some versions of bash will fail to source /dev/null (special
  11682. - # files actually), so we avoid doing that.
  11683. - if test -f "$cache_file"; then
  11684. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  11685. -echo "$as_me: loading cache $cache_file" >&6;}
  11686. + # Some versions of bash will fail to source /dev/null (special files
  11687. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  11688. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  11689. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  11690. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  11691. case $cache_file in
  11692. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  11693. *) . "./$cache_file";;
  11694. esac
  11695. fi
  11696. else
  11697. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  11698. -echo "$as_me: creating cache $cache_file" >&6;}
  11699. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  11700. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  11701. >$cache_file
  11702. fi
  11703. @@ -1858,60 +2145,56 @@
  11704. eval ac_new_val=\$ac_env_${ac_var}_value
  11705. case $ac_old_set,$ac_new_set in
  11706. set,)
  11707. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  11708. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  11709. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  11710. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  11711. ac_cache_corrupted=: ;;
  11712. ,set)
  11713. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  11714. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  11715. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  11716. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  11717. ac_cache_corrupted=: ;;
  11718. ,);;
  11719. *)
  11720. if test "x$ac_old_val" != "x$ac_new_val"; then
  11721. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  11722. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  11723. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  11724. -echo "$as_me: former value: $ac_old_val" >&2;}
  11725. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  11726. -echo "$as_me: current value: $ac_new_val" >&2;}
  11727. - ac_cache_corrupted=:
  11728. + # differences in whitespace do not lead to failure.
  11729. + ac_old_val_w=`echo x $ac_old_val`
  11730. + ac_new_val_w=`echo x $ac_new_val`
  11731. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  11732. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  11733. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  11734. + ac_cache_corrupted=:
  11735. + else
  11736. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  11737. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  11738. + eval $ac_var=\$ac_old_val
  11739. + fi
  11740. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  11741. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  11742. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  11743. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  11744. fi;;
  11745. esac
  11746. # Pass precious variables to config.status.
  11747. if test "$ac_new_set" = set; then
  11748. case $ac_new_val in
  11749. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  11750. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  11751. *) ac_arg=$ac_var=$ac_new_val ;;
  11752. esac
  11753. case " $ac_configure_args " in
  11754. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  11755. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  11756. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  11757. esac
  11758. fi
  11759. done
  11760. if $ac_cache_corrupted; then
  11761. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  11762. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  11763. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  11764. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  11765. - { (exit 1); exit 1; }; }
  11766. -fi
  11767. -
  11768. -
  11769. -
  11770. -
  11771. -
  11772. -
  11773. -
  11774. -
  11775. -
  11776. -
  11777. -
  11778. -
  11779. -
  11780. -
  11781. -
  11782. -
  11783. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11784. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11785. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  11786. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  11787. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  11788. +fi
  11789. +## -------------------- ##
  11790. +## Main body of script. ##
  11791. +## -------------------- ##
  11792. ac_ext=c
  11793. ac_cpp='$CPP $CPPFLAGS'
  11794. @@ -1921,28 +2204,20 @@
  11795. -am__api_version='1.10'
  11796. +am__api_version='1.11'
  11797. ac_aux_dir=
  11798. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  11799. - if test -f "$ac_dir/install-sh"; then
  11800. - ac_aux_dir=$ac_dir
  11801. - ac_install_sh="$ac_aux_dir/install-sh -c"
  11802. - break
  11803. - elif test -f "$ac_dir/install.sh"; then
  11804. - ac_aux_dir=$ac_dir
  11805. - ac_install_sh="$ac_aux_dir/install.sh -c"
  11806. - break
  11807. - elif test -f "$ac_dir/shtool"; then
  11808. - ac_aux_dir=$ac_dir
  11809. - ac_install_sh="$ac_aux_dir/shtool install -c"
  11810. - break
  11811. - fi
  11812. + for ac_t in install-sh install.sh shtool; do
  11813. + if test -f "$ac_dir/$ac_t"; then
  11814. + ac_aux_dir=$ac_dir
  11815. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  11816. + break 2
  11817. + fi
  11818. + done
  11819. done
  11820. if test -z "$ac_aux_dir"; then
  11821. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  11822. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  11823. - { (exit 1); exit 1; }; }
  11824. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  11825. fi
  11826. # These three variables are undocumented and unsupported,
  11827. @@ -1967,22 +2242,23 @@
  11828. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11829. # OS/2's system install, which has a completely different semantic
  11830. # ./install, which can be erroneously created by make from ./install.sh.
  11831. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  11832. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  11833. +# Reject install programs that cannot install multiple files.
  11834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11835. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  11836. if test -z "$INSTALL"; then
  11837. -if test "${ac_cv_path_install+set}" = set; then
  11838. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11839. +if test "${ac_cv_path_install+set}" = set; then :
  11840. + $as_echo_n "(cached) " >&6
  11841. else
  11842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11843. for as_dir in $PATH
  11844. do
  11845. IFS=$as_save_IFS
  11846. test -z "$as_dir" && as_dir=.
  11847. - # Account for people who put trailing slashes in PATH elements.
  11848. -case $as_dir/ in
  11849. - ./ | .// | /cC/* | \
  11850. + # Account for people who put trailing slashes in PATH elements.
  11851. +case $as_dir/ in #((
  11852. + ./ | .// | /[cC]/* | \
  11853. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11854. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  11855. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11856. /usr/ucb/* ) ;;
  11857. *)
  11858. # OSF1 and SCO ODT 3.0 have their own names for install.
  11859. @@ -2000,17 +2276,29 @@
  11860. # program-specific install script used by HP pwplus--don't use.
  11861. :
  11862. else
  11863. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11864. - break 3
  11865. + rm -rf conftest.one conftest.two conftest.dir
  11866. + echo one > conftest.one
  11867. + echo two > conftest.two
  11868. + mkdir conftest.dir
  11869. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  11870. + test -s conftest.one && test -s conftest.two &&
  11871. + test -s conftest.dir/conftest.one &&
  11872. + test -s conftest.dir/conftest.two
  11873. + then
  11874. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11875. + break 3
  11876. + fi
  11877. fi
  11878. fi
  11879. done
  11880. done
  11881. ;;
  11882. esac
  11883. -done
  11884. +
  11885. + done
  11886. IFS=$as_save_IFS
  11887. +rm -rf conftest.one conftest.two conftest.dir
  11888. fi
  11889. if test "${ac_cv_path_install+set}" = set; then
  11890. @@ -2023,8 +2311,8 @@
  11891. INSTALL=$ac_install_sh
  11892. fi
  11893. fi
  11894. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  11895. -echo "${ECHO_T}$INSTALL" >&6; }
  11896. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  11897. +$as_echo "$INSTALL" >&6; }
  11898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  11899. # It thinks the first close brace ends the variable substitution.
  11900. @@ -2034,21 +2322,34 @@
  11901. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  11902. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  11903. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  11904. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  11905. +$as_echo_n "checking whether build environment is sane... " >&6; }
  11906. # Just in case
  11907. sleep 1
  11908. echo timestamp > conftest.file
  11909. +# Reject unsafe characters in $srcdir or the absolute working directory
  11910. +# name. Accept space and tab only in the latter.
  11911. +am_lf='
  11912. +'
  11913. +case `pwd` in
  11914. + *[\\\"\#\$\&\'\`$am_lf]*)
  11915. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  11916. +esac
  11917. +case $srcdir in
  11918. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  11919. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  11920. +esac
  11921. +
  11922. # Do `set' in a subshell so we don't clobber the current shell's
  11923. # arguments. Must try -L first in case configure is actually a
  11924. # symlink; some systems play weird games with the mod time of symlinks
  11925. # (eg FreeBSD returns the mod time of the symlink's containing
  11926. # directory).
  11927. if (
  11928. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11929. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11930. if test "$*" = "X"; then
  11931. # -L didn't work.
  11932. - set X `ls -t $srcdir/configure conftest.file`
  11933. + set X `ls -t "$srcdir/configure" conftest.file`
  11934. fi
  11935. rm -f conftest.file
  11936. if test "$*" != "X $srcdir/configure conftest.file" \
  11937. @@ -2058,11 +2359,8 @@
  11938. # if, for instance, CONFIG_SHELL is bash and it inherits a
  11939. # broken ls alias from the environment. This has actually
  11940. # happened. Such a system could not be considered "sane".
  11941. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  11942. -alias in your environment" >&5
  11943. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  11944. -alias in your environment" >&2;}
  11945. - { (exit 1); exit 1; }; }
  11946. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  11947. +alias in your environment" "$LINENO" 5
  11948. fi
  11949. test "$2" = conftest.file
  11950. @@ -2071,52 +2369,162 @@
  11951. # Ok.
  11952. :
  11953. else
  11954. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  11955. -Check your system clock" >&5
  11956. -echo "$as_me: error: newly created file is older than distributed files!
  11957. -Check your system clock" >&2;}
  11958. - { (exit 1); exit 1; }; }
  11959. + as_fn_error "newly created file is older than distributed files!
  11960. +Check your system clock" "$LINENO" 5
  11961. fi
  11962. -{ echo "$as_me:$LINENO: result: yes" >&5
  11963. -echo "${ECHO_T}yes" >&6; }
  11964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11965. +$as_echo "yes" >&6; }
  11966. test "$program_prefix" != NONE &&
  11967. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  11968. # Use a double $ so make ignores it.
  11969. test "$program_suffix" != NONE &&
  11970. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  11971. -# Double any \ or $. echo might interpret backslashes.
  11972. +# Double any \ or $.
  11973. # By default was `s,x,x', remove it if useless.
  11974. -cat <<\_ACEOF >conftest.sed
  11975. -s/[\\$]/&&/g;s/;s,x,x,$//
  11976. -_ACEOF
  11977. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  11978. -rm -f conftest.sed
  11979. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  11980. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  11981. # expand $ac_aux_dir to an absolute path
  11982. am_aux_dir=`cd $ac_aux_dir && pwd`
  11983. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11984. +if test x"${MISSING+set}" != xset; then
  11985. + case $am_aux_dir in
  11986. + *\ * | *\ *)
  11987. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11988. + *)
  11989. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11990. + esac
  11991. +fi
  11992. # Use eval to expand $SHELL
  11993. if eval "$MISSING --run true"; then
  11994. am_missing_run="$MISSING --run "
  11995. else
  11996. am_missing_run=
  11997. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  11998. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  11999. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12000. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12001. +fi
  12002. +
  12003. +if test x"${install_sh}" != xset; then
  12004. + case $am_aux_dir in
  12005. + *\ * | *\ *)
  12006. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12007. + *)
  12008. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  12009. + esac
  12010. +fi
  12011. +
  12012. +# Installed binaries are usually stripped using `strip' when the user
  12013. +# run `make install-strip'. However `strip' might not be the right
  12014. +# tool to use in cross-compilation environments, therefore Automake
  12015. +# will honor the `STRIP' environment variable to overrule this program.
  12016. +if test "$cross_compiling" != no; then
  12017. + if test -n "$ac_tool_prefix"; then
  12018. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12019. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  12020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12021. +$as_echo_n "checking for $ac_word... " >&6; }
  12022. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  12023. + $as_echo_n "(cached) " >&6
  12024. +else
  12025. + if test -n "$STRIP"; then
  12026. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12027. +else
  12028. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12029. +for as_dir in $PATH
  12030. +do
  12031. + IFS=$as_save_IFS
  12032. + test -z "$as_dir" && as_dir=.
  12033. + for ac_exec_ext in '' $ac_executable_extensions; do
  12034. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12035. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12036. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12037. + break 2
  12038. + fi
  12039. +done
  12040. + done
  12041. +IFS=$as_save_IFS
  12042. +
  12043. +fi
  12044. +fi
  12045. +STRIP=$ac_cv_prog_STRIP
  12046. +if test -n "$STRIP"; then
  12047. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12048. +$as_echo "$STRIP" >&6; }
  12049. +else
  12050. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12051. +$as_echo "no" >&6; }
  12052. +fi
  12053. +
  12054. +
  12055. +fi
  12056. +if test -z "$ac_cv_prog_STRIP"; then
  12057. + ac_ct_STRIP=$STRIP
  12058. + # Extract the first word of "strip", so it can be a program name with args.
  12059. +set dummy strip; ac_word=$2
  12060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12061. +$as_echo_n "checking for $ac_word... " >&6; }
  12062. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12063. + $as_echo_n "(cached) " >&6
  12064. +else
  12065. + if test -n "$ac_ct_STRIP"; then
  12066. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12067. +else
  12068. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12069. +for as_dir in $PATH
  12070. +do
  12071. + IFS=$as_save_IFS
  12072. + test -z "$as_dir" && as_dir=.
  12073. + for ac_exec_ext in '' $ac_executable_extensions; do
  12074. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12075. + ac_cv_prog_ac_ct_STRIP="strip"
  12076. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12077. + break 2
  12078. + fi
  12079. +done
  12080. + done
  12081. +IFS=$as_save_IFS
  12082. +
  12083. +fi
  12084. +fi
  12085. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12086. +if test -n "$ac_ct_STRIP"; then
  12087. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12088. +$as_echo "$ac_ct_STRIP" >&6; }
  12089. +else
  12090. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12091. +$as_echo "no" >&6; }
  12092. +fi
  12093. +
  12094. + if test "x$ac_ct_STRIP" = x; then
  12095. + STRIP=":"
  12096. + else
  12097. + case $cross_compiling:$ac_tool_warned in
  12098. +yes:)
  12099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12100. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12101. +ac_tool_warned=yes ;;
  12102. +esac
  12103. + STRIP=$ac_ct_STRIP
  12104. + fi
  12105. +else
  12106. + STRIP="$ac_cv_prog_STRIP"
  12107. fi
  12108. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  12109. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  12110. +fi
  12111. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12112. +
  12113. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12114. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12115. if test -z "$MKDIR_P"; then
  12116. - if test "${ac_cv_path_mkdir+set}" = set; then
  12117. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12118. + if test "${ac_cv_path_mkdir+set}" = set; then :
  12119. + $as_echo_n "(cached) " >&6
  12120. else
  12121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12122. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12123. do
  12124. IFS=$as_save_IFS
  12125. test -z "$as_dir" && as_dir=.
  12126. - for ac_prog in mkdir gmkdir; do
  12127. + for ac_prog in mkdir gmkdir; do
  12128. for ac_exec_ext in '' $ac_executable_extensions; do
  12129. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12130. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12131. @@ -2128,11 +2536,12 @@
  12132. esac
  12133. done
  12134. done
  12135. -done
  12136. + done
  12137. IFS=$as_save_IFS
  12138. fi
  12139. + test -d ./--version && rmdir ./--version
  12140. if test "${ac_cv_path_mkdir+set}" = set; then
  12141. MKDIR_P="$ac_cv_path_mkdir -p"
  12142. else
  12143. @@ -2140,12 +2549,11 @@
  12144. # value for MKDIR_P within a source directory, because that will
  12145. # break other packages using the cache if that directory is
  12146. # removed, or if the value is a relative name.
  12147. - test -d ./--version && rmdir ./--version
  12148. MKDIR_P="$ac_install_sh -d"
  12149. fi
  12150. fi
  12151. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  12152. -echo "${ECHO_T}$MKDIR_P" >&6; }
  12153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12154. +$as_echo "$MKDIR_P" >&6; }
  12155. mkdir_p="$MKDIR_P"
  12156. case $mkdir_p in
  12157. @@ -2157,10 +2565,10 @@
  12158. do
  12159. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12160. set dummy $ac_prog; ac_word=$2
  12161. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12162. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12163. -if test "${ac_cv_prog_AWK+set}" = set; then
  12164. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12165. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12166. +$as_echo_n "checking for $ac_word... " >&6; }
  12167. +if test "${ac_cv_prog_AWK+set}" = set; then :
  12168. + $as_echo_n "(cached) " >&6
  12169. else
  12170. if test -n "$AWK"; then
  12171. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12172. @@ -2170,36 +2578,37 @@
  12173. do
  12174. IFS=$as_save_IFS
  12175. test -z "$as_dir" && as_dir=.
  12176. - for ac_exec_ext in '' $ac_executable_extensions; do
  12177. + for ac_exec_ext in '' $ac_executable_extensions; do
  12178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12179. ac_cv_prog_AWK="$ac_prog"
  12180. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12181. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12182. break 2
  12183. fi
  12184. done
  12185. -done
  12186. + done
  12187. IFS=$as_save_IFS
  12188. fi
  12189. fi
  12190. AWK=$ac_cv_prog_AWK
  12191. if test -n "$AWK"; then
  12192. - { echo "$as_me:$LINENO: result: $AWK" >&5
  12193. -echo "${ECHO_T}$AWK" >&6; }
  12194. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12195. +$as_echo "$AWK" >&6; }
  12196. else
  12197. - { echo "$as_me:$LINENO: result: no" >&5
  12198. -echo "${ECHO_T}no" >&6; }
  12199. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12200. +$as_echo "no" >&6; }
  12201. fi
  12202. test -n "$AWK" && break
  12203. done
  12204. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12205. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  12206. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12207. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  12208. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12210. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12211. +set x ${MAKE-make}
  12212. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12213. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12214. + $as_echo_n "(cached) " >&6
  12215. else
  12216. cat >conftest.make <<\_ACEOF
  12217. SHELL = /bin/sh
  12218. @@ -2216,12 +2625,12 @@
  12219. rm -f conftest.make
  12220. fi
  12221. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12222. - { echo "$as_me:$LINENO: result: yes" >&5
  12223. -echo "${ECHO_T}yes" >&6; }
  12224. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12225. +$as_echo "yes" >&6; }
  12226. SET_MAKE=
  12227. else
  12228. - { echo "$as_me:$LINENO: result: no" >&5
  12229. -echo "${ECHO_T}no" >&6; }
  12230. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12231. +$as_echo "no" >&6; }
  12232. SET_MAKE="MAKE=${MAKE-make}"
  12233. fi
  12234. @@ -2240,9 +2649,7 @@
  12235. am__isrc=' -I$(srcdir)'
  12236. # test to see if srcdir already configured
  12237. if test -f $srcdir/config.status; then
  12238. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  12239. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  12240. - { (exit 1); exit 1; }; }
  12241. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12242. fi
  12243. fi
  12244. @@ -2286,115 +2693,9 @@
  12245. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  12246. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  12247. -
  12248. -# Installed binaries are usually stripped using `strip' when the user
  12249. -# run `make install-strip'. However `strip' might not be the right
  12250. -# tool to use in cross-compilation environments, therefore Automake
  12251. -# will honor the `STRIP' environment variable to overrule this program.
  12252. -if test "$cross_compiling" != no; then
  12253. - if test -n "$ac_tool_prefix"; then
  12254. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12255. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  12256. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12257. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12258. -if test "${ac_cv_prog_STRIP+set}" = set; then
  12259. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12260. -else
  12261. - if test -n "$STRIP"; then
  12262. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12263. -else
  12264. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12265. -for as_dir in $PATH
  12266. -do
  12267. - IFS=$as_save_IFS
  12268. - test -z "$as_dir" && as_dir=.
  12269. - for ac_exec_ext in '' $ac_executable_extensions; do
  12270. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12271. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12272. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12273. - break 2
  12274. - fi
  12275. -done
  12276. -done
  12277. -IFS=$as_save_IFS
  12278. -
  12279. -fi
  12280. -fi
  12281. -STRIP=$ac_cv_prog_STRIP
  12282. -if test -n "$STRIP"; then
  12283. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  12284. -echo "${ECHO_T}$STRIP" >&6; }
  12285. -else
  12286. - { echo "$as_me:$LINENO: result: no" >&5
  12287. -echo "${ECHO_T}no" >&6; }
  12288. -fi
  12289. -
  12290. -
  12291. -fi
  12292. -if test -z "$ac_cv_prog_STRIP"; then
  12293. - ac_ct_STRIP=$STRIP
  12294. - # Extract the first word of "strip", so it can be a program name with args.
  12295. -set dummy strip; ac_word=$2
  12296. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12297. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12298. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  12299. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12300. -else
  12301. - if test -n "$ac_ct_STRIP"; then
  12302. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12303. -else
  12304. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12305. -for as_dir in $PATH
  12306. -do
  12307. - IFS=$as_save_IFS
  12308. - test -z "$as_dir" && as_dir=.
  12309. - for ac_exec_ext in '' $ac_executable_extensions; do
  12310. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12311. - ac_cv_prog_ac_ct_STRIP="strip"
  12312. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12313. - break 2
  12314. - fi
  12315. -done
  12316. -done
  12317. -IFS=$as_save_IFS
  12318. -
  12319. -fi
  12320. -fi
  12321. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12322. -if test -n "$ac_ct_STRIP"; then
  12323. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  12324. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  12325. -else
  12326. - { echo "$as_me:$LINENO: result: no" >&5
  12327. -echo "${ECHO_T}no" >&6; }
  12328. -fi
  12329. -
  12330. - if test "x$ac_ct_STRIP" = x; then
  12331. - STRIP=":"
  12332. - else
  12333. - case $cross_compiling:$ac_tool_warned in
  12334. -yes:)
  12335. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12336. -whose name does not start with the host triplet. If you think this
  12337. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  12338. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12339. -whose name does not start with the host triplet. If you think this
  12340. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12341. -ac_tool_warned=yes ;;
  12342. -esac
  12343. - STRIP=$ac_ct_STRIP
  12344. - fi
  12345. -else
  12346. - STRIP="$ac_cv_prog_STRIP"
  12347. -fi
  12348. -
  12349. -fi
  12350. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12351. -
  12352. -# We need awk for the "check" target. The system "awk" is bad on
  12353. -# some platforms.
  12354. -# Always define AMTAR for backward compatibility.
  12355. +# We need awk for the "check" target. The system "awk" is bad on
  12356. +# some platforms.
  12357. +# Always define AMTAR for backward compatibility.
  12358. AMTAR=${AMTAR-"${am_missing_run}tar"}
  12359. @@ -2414,10 +2715,10 @@
  12360. if test -n "$ac_tool_prefix"; then
  12361. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  12362. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  12363. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12364. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12365. -if test "${ac_cv_prog_CC+set}" = set; then
  12366. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12368. +$as_echo_n "checking for $ac_word... " >&6; }
  12369. +if test "${ac_cv_prog_CC+set}" = set; then :
  12370. + $as_echo_n "(cached) " >&6
  12371. else
  12372. if test -n "$CC"; then
  12373. ac_cv_prog_CC="$CC" # Let the user override the test.
  12374. @@ -2427,25 +2728,25 @@
  12375. do
  12376. IFS=$as_save_IFS
  12377. test -z "$as_dir" && as_dir=.
  12378. - for ac_exec_ext in '' $ac_executable_extensions; do
  12379. + for ac_exec_ext in '' $ac_executable_extensions; do
  12380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12381. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  12382. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12383. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12384. break 2
  12385. fi
  12386. done
  12387. -done
  12388. + done
  12389. IFS=$as_save_IFS
  12390. fi
  12391. fi
  12392. CC=$ac_cv_prog_CC
  12393. if test -n "$CC"; then
  12394. - { echo "$as_me:$LINENO: result: $CC" >&5
  12395. -echo "${ECHO_T}$CC" >&6; }
  12396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12397. +$as_echo "$CC" >&6; }
  12398. else
  12399. - { echo "$as_me:$LINENO: result: no" >&5
  12400. -echo "${ECHO_T}no" >&6; }
  12401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12402. +$as_echo "no" >&6; }
  12403. fi
  12404. @@ -2454,10 +2755,10 @@
  12405. ac_ct_CC=$CC
  12406. # Extract the first word of "gcc", so it can be a program name with args.
  12407. set dummy gcc; ac_word=$2
  12408. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12409. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12410. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  12411. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12413. +$as_echo_n "checking for $ac_word... " >&6; }
  12414. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  12415. + $as_echo_n "(cached) " >&6
  12416. else
  12417. if test -n "$ac_ct_CC"; then
  12418. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12419. @@ -2467,25 +2768,25 @@
  12420. do
  12421. IFS=$as_save_IFS
  12422. test -z "$as_dir" && as_dir=.
  12423. - for ac_exec_ext in '' $ac_executable_extensions; do
  12424. + for ac_exec_ext in '' $ac_executable_extensions; do
  12425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12426. ac_cv_prog_ac_ct_CC="gcc"
  12427. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12428. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12429. break 2
  12430. fi
  12431. done
  12432. -done
  12433. + done
  12434. IFS=$as_save_IFS
  12435. fi
  12436. fi
  12437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12438. if test -n "$ac_ct_CC"; then
  12439. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  12440. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  12441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12442. +$as_echo "$ac_ct_CC" >&6; }
  12443. else
  12444. - { echo "$as_me:$LINENO: result: no" >&5
  12445. -echo "${ECHO_T}no" >&6; }
  12446. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12447. +$as_echo "no" >&6; }
  12448. fi
  12449. if test "x$ac_ct_CC" = x; then
  12450. @@ -2493,12 +2794,8 @@
  12451. else
  12452. case $cross_compiling:$ac_tool_warned in
  12453. yes:)
  12454. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12455. -whose name does not start with the host triplet. If you think this
  12456. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  12457. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12458. -whose name does not start with the host triplet. If you think this
  12459. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12461. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12462. ac_tool_warned=yes ;;
  12463. esac
  12464. CC=$ac_ct_CC
  12465. @@ -2511,10 +2808,10 @@
  12466. if test -n "$ac_tool_prefix"; then
  12467. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  12468. set dummy ${ac_tool_prefix}cc; ac_word=$2
  12469. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12470. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12471. -if test "${ac_cv_prog_CC+set}" = set; then
  12472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12474. +$as_echo_n "checking for $ac_word... " >&6; }
  12475. +if test "${ac_cv_prog_CC+set}" = set; then :
  12476. + $as_echo_n "(cached) " >&6
  12477. else
  12478. if test -n "$CC"; then
  12479. ac_cv_prog_CC="$CC" # Let the user override the test.
  12480. @@ -2524,25 +2821,25 @@
  12481. do
  12482. IFS=$as_save_IFS
  12483. test -z "$as_dir" && as_dir=.
  12484. - for ac_exec_ext in '' $ac_executable_extensions; do
  12485. + for ac_exec_ext in '' $ac_executable_extensions; do
  12486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12487. ac_cv_prog_CC="${ac_tool_prefix}cc"
  12488. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12489. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12490. break 2
  12491. fi
  12492. done
  12493. -done
  12494. + done
  12495. IFS=$as_save_IFS
  12496. fi
  12497. fi
  12498. CC=$ac_cv_prog_CC
  12499. if test -n "$CC"; then
  12500. - { echo "$as_me:$LINENO: result: $CC" >&5
  12501. -echo "${ECHO_T}$CC" >&6; }
  12502. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12503. +$as_echo "$CC" >&6; }
  12504. else
  12505. - { echo "$as_me:$LINENO: result: no" >&5
  12506. -echo "${ECHO_T}no" >&6; }
  12507. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12508. +$as_echo "no" >&6; }
  12509. fi
  12510. @@ -2551,10 +2848,10 @@
  12511. if test -z "$CC"; then
  12512. # Extract the first word of "cc", so it can be a program name with args.
  12513. set dummy cc; ac_word=$2
  12514. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12515. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12516. -if test "${ac_cv_prog_CC+set}" = set; then
  12517. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12519. +$as_echo_n "checking for $ac_word... " >&6; }
  12520. +if test "${ac_cv_prog_CC+set}" = set; then :
  12521. + $as_echo_n "(cached) " >&6
  12522. else
  12523. if test -n "$CC"; then
  12524. ac_cv_prog_CC="$CC" # Let the user override the test.
  12525. @@ -2565,18 +2862,18 @@
  12526. do
  12527. IFS=$as_save_IFS
  12528. test -z "$as_dir" && as_dir=.
  12529. - for ac_exec_ext in '' $ac_executable_extensions; do
  12530. + for ac_exec_ext in '' $ac_executable_extensions; do
  12531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12532. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  12533. ac_prog_rejected=yes
  12534. continue
  12535. fi
  12536. ac_cv_prog_CC="cc"
  12537. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12538. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12539. break 2
  12540. fi
  12541. done
  12542. -done
  12543. + done
  12544. IFS=$as_save_IFS
  12545. if test $ac_prog_rejected = yes; then
  12546. @@ -2595,11 +2892,11 @@
  12547. fi
  12548. CC=$ac_cv_prog_CC
  12549. if test -n "$CC"; then
  12550. - { echo "$as_me:$LINENO: result: $CC" >&5
  12551. -echo "${ECHO_T}$CC" >&6; }
  12552. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12553. +$as_echo "$CC" >&6; }
  12554. else
  12555. - { echo "$as_me:$LINENO: result: no" >&5
  12556. -echo "${ECHO_T}no" >&6; }
  12557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12558. +$as_echo "no" >&6; }
  12559. fi
  12560. @@ -2610,10 +2907,10 @@
  12561. do
  12562. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12563. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12564. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12565. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12566. -if test "${ac_cv_prog_CC+set}" = set; then
  12567. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12569. +$as_echo_n "checking for $ac_word... " >&6; }
  12570. +if test "${ac_cv_prog_CC+set}" = set; then :
  12571. + $as_echo_n "(cached) " >&6
  12572. else
  12573. if test -n "$CC"; then
  12574. ac_cv_prog_CC="$CC" # Let the user override the test.
  12575. @@ -2623,25 +2920,25 @@
  12576. do
  12577. IFS=$as_save_IFS
  12578. test -z "$as_dir" && as_dir=.
  12579. - for ac_exec_ext in '' $ac_executable_extensions; do
  12580. + for ac_exec_ext in '' $ac_executable_extensions; do
  12581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12582. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  12583. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12584. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12585. break 2
  12586. fi
  12587. done
  12588. -done
  12589. + done
  12590. IFS=$as_save_IFS
  12591. fi
  12592. fi
  12593. CC=$ac_cv_prog_CC
  12594. if test -n "$CC"; then
  12595. - { echo "$as_me:$LINENO: result: $CC" >&5
  12596. -echo "${ECHO_T}$CC" >&6; }
  12597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12598. +$as_echo "$CC" >&6; }
  12599. else
  12600. - { echo "$as_me:$LINENO: result: no" >&5
  12601. -echo "${ECHO_T}no" >&6; }
  12602. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12603. +$as_echo "no" >&6; }
  12604. fi
  12605. @@ -2654,10 +2951,10 @@
  12606. do
  12607. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12608. set dummy $ac_prog; ac_word=$2
  12609. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  12610. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12611. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  12612. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12613. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12614. +$as_echo_n "checking for $ac_word... " >&6; }
  12615. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  12616. + $as_echo_n "(cached) " >&6
  12617. else
  12618. if test -n "$ac_ct_CC"; then
  12619. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12620. @@ -2667,25 +2964,25 @@
  12621. do
  12622. IFS=$as_save_IFS
  12623. test -z "$as_dir" && as_dir=.
  12624. - for ac_exec_ext in '' $ac_executable_extensions; do
  12625. + for ac_exec_ext in '' $ac_executable_extensions; do
  12626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12627. ac_cv_prog_ac_ct_CC="$ac_prog"
  12628. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12629. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12630. break 2
  12631. fi
  12632. done
  12633. -done
  12634. + done
  12635. IFS=$as_save_IFS
  12636. fi
  12637. fi
  12638. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12639. if test -n "$ac_ct_CC"; then
  12640. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  12641. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  12642. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12643. +$as_echo "$ac_ct_CC" >&6; }
  12644. else
  12645. - { echo "$as_me:$LINENO: result: no" >&5
  12646. -echo "${ECHO_T}no" >&6; }
  12647. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12648. +$as_echo "no" >&6; }
  12649. fi
  12650. @@ -2697,12 +2994,8 @@
  12651. else
  12652. case $cross_compiling:$ac_tool_warned in
  12653. yes:)
  12654. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  12655. -whose name does not start with the host triplet. If you think this
  12656. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  12657. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  12658. -whose name does not start with the host triplet. If you think this
  12659. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  12660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12661. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12662. ac_tool_warned=yes ;;
  12663. esac
  12664. CC=$ac_ct_CC
  12665. @@ -2712,51 +3005,37 @@
  12666. fi
  12667. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  12668. -See \`config.log' for more details." >&5
  12669. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  12670. -See \`config.log' for more details." >&2;}
  12671. - { (exit 1); exit 1; }; }
  12672. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12673. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12674. +as_fn_error "no acceptable C compiler found in \$PATH
  12675. +See \`config.log' for more details." "$LINENO" 5; }
  12676. # Provide some information about the compiler.
  12677. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  12678. -ac_compiler=`set X $ac_compile; echo $2`
  12679. -{ (ac_try="$ac_compiler --version >&5"
  12680. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12681. +set X $ac_compile
  12682. +ac_compiler=$2
  12683. +for ac_option in --version -v -V -qversion; do
  12684. + { { ac_try="$ac_compiler $ac_option >&5"
  12685. case "(($ac_try" in
  12686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12687. *) ac_try_echo=$ac_try;;
  12688. esac
  12689. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12690. - (eval "$ac_compiler --version >&5") 2>&5
  12691. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12692. +$as_echo "$ac_try_echo"; } >&5
  12693. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12694. ac_status=$?
  12695. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12696. - (exit $ac_status); }
  12697. -{ (ac_try="$ac_compiler -v >&5"
  12698. -case "(($ac_try" in
  12699. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12700. - *) ac_try_echo=$ac_try;;
  12701. -esac
  12702. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12703. - (eval "$ac_compiler -v >&5") 2>&5
  12704. - ac_status=$?
  12705. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12706. - (exit $ac_status); }
  12707. -{ (ac_try="$ac_compiler -V >&5"
  12708. -case "(($ac_try" in
  12709. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12710. - *) ac_try_echo=$ac_try;;
  12711. -esac
  12712. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12713. - (eval "$ac_compiler -V >&5") 2>&5
  12714. - ac_status=$?
  12715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12716. - (exit $ac_status); }
  12717. + if test -s conftest.err; then
  12718. + sed '10a\
  12719. +... rest of stderr output deleted ...
  12720. + 10q' conftest.err >conftest.er1
  12721. + cat conftest.er1 >&5
  12722. + fi
  12723. + rm -f conftest.er1 conftest.err
  12724. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12725. + test $ac_status = 0; }
  12726. +done
  12727. -cat >conftest.$ac_ext <<_ACEOF
  12728. -/* confdefs.h. */
  12729. -_ACEOF
  12730. -cat confdefs.h >>conftest.$ac_ext
  12731. -cat >>conftest.$ac_ext <<_ACEOF
  12732. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12733. /* end confdefs.h. */
  12734. int
  12735. @@ -2768,42 +3047,38 @@
  12736. }
  12737. _ACEOF
  12738. ac_clean_files_save=$ac_clean_files
  12739. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  12740. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  12741. # Try to create an executable without -o first, disregard a.out.
  12742. # It will help us diagnose broken compilers, and finding out an intuition
  12743. # of exeext.
  12744. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  12745. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  12746. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  12747. -#
  12748. -# List of possible output files, starting from the most likely.
  12749. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  12750. -# only as a last resort. b.out is created by i960 compilers.
  12751. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  12752. -#
  12753. -# The IRIX 6 linker writes into existing files which may not be
  12754. -# executable, retaining their permissions. Remove them first so a
  12755. -# subsequent execution test works.
  12756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  12757. +$as_echo_n "checking whether the C compiler works... " >&6; }
  12758. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  12759. +
  12760. +# The possible output files:
  12761. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  12762. +
  12763. ac_rmfiles=
  12764. for ac_file in $ac_files
  12765. do
  12766. case $ac_file in
  12767. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  12768. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  12769. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  12770. esac
  12771. done
  12772. rm -f $ac_rmfiles
  12773. -if { (ac_try="$ac_link_default"
  12774. +if { { ac_try="$ac_link_default"
  12775. case "(($ac_try" in
  12776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12777. *) ac_try_echo=$ac_try;;
  12778. esac
  12779. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12780. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12781. +$as_echo "$ac_try_echo"; } >&5
  12782. (eval "$ac_link_default") 2>&5
  12783. ac_status=$?
  12784. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12785. - (exit $ac_status); }; then
  12786. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12787. + test $ac_status = 0; }; then :
  12788. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  12789. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  12790. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  12791. @@ -2813,14 +3088,14 @@
  12792. do
  12793. test -f "$ac_file" || continue
  12794. case $ac_file in
  12795. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  12796. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  12797. ;;
  12798. [ab].out )
  12799. # We found the default executable, but exeext='' is most
  12800. # certainly right.
  12801. break;;
  12802. *.* )
  12803. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  12804. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  12805. then :; else
  12806. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  12807. fi
  12808. @@ -2839,78 +3114,42 @@
  12809. else
  12810. ac_file=''
  12811. fi
  12812. -
  12813. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  12814. -echo "${ECHO_T}$ac_file" >&6; }
  12815. -if test -z "$ac_file"; then
  12816. - echo "$as_me: failed program was:" >&5
  12817. -sed 's/^/| /' conftest.$ac_ext >&5
  12818. -
  12819. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  12820. -See \`config.log' for more details." >&5
  12821. -echo "$as_me: error: C compiler cannot create executables
  12822. -See \`config.log' for more details." >&2;}
  12823. - { (exit 77); exit 77; }; }
  12824. -fi
  12825. -
  12826. +if test -z "$ac_file"; then :
  12827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12828. +$as_echo "no" >&6; }
  12829. +$as_echo "$as_me: failed program was:" >&5
  12830. +sed 's/^/| /' conftest.$ac_ext >&5
  12831. +
  12832. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12833. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12834. +{ as_fn_set_status 77
  12835. +as_fn_error "C compiler cannot create executables
  12836. +See \`config.log' for more details." "$LINENO" 5; }; }
  12837. +else
  12838. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12839. +$as_echo "yes" >&6; }
  12840. +fi
  12841. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  12842. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  12843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  12844. +$as_echo "$ac_file" >&6; }
  12845. ac_exeext=$ac_cv_exeext
  12846. -# Check that the compiler produces executables we can run. If not, either
  12847. -# the compiler is broken, or we cross compile.
  12848. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  12849. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  12850. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  12851. -# If not cross compiling, check that we can run a simple program.
  12852. -if test "$cross_compiling" != yes; then
  12853. - if { ac_try='./$ac_file'
  12854. - { (case "(($ac_try" in
  12855. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12856. - *) ac_try_echo=$ac_try;;
  12857. -esac
  12858. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12859. - (eval "$ac_try") 2>&5
  12860. - ac_status=$?
  12861. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12862. - (exit $ac_status); }; }; then
  12863. - cross_compiling=no
  12864. - else
  12865. - if test "$cross_compiling" = maybe; then
  12866. - cross_compiling=yes
  12867. - else
  12868. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  12869. -If you meant to cross compile, use \`--host'.
  12870. -See \`config.log' for more details." >&5
  12871. -echo "$as_me: error: cannot run C compiled programs.
  12872. -If you meant to cross compile, use \`--host'.
  12873. -See \`config.log' for more details." >&2;}
  12874. - { (exit 1); exit 1; }; }
  12875. - fi
  12876. - fi
  12877. -fi
  12878. -{ echo "$as_me:$LINENO: result: yes" >&5
  12879. -echo "${ECHO_T}yes" >&6; }
  12880. -
  12881. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  12882. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  12883. ac_clean_files=$ac_clean_files_save
  12884. -# Check that the compiler produces executables we can run. If not, either
  12885. -# the compiler is broken, or we cross compile.
  12886. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  12887. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  12888. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  12889. -echo "${ECHO_T}$cross_compiling" >&6; }
  12890. -
  12891. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  12892. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  12893. -if { (ac_try="$ac_link"
  12894. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  12895. +$as_echo_n "checking for suffix of executables... " >&6; }
  12896. +if { { ac_try="$ac_link"
  12897. case "(($ac_try" in
  12898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12899. *) ac_try_echo=$ac_try;;
  12900. esac
  12901. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12902. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12903. +$as_echo "$ac_try_echo"; } >&5
  12904. (eval "$ac_link") 2>&5
  12905. ac_status=$?
  12906. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12907. - (exit $ac_status); }; then
  12908. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12909. + test $ac_status = 0; }; then :
  12910. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  12911. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  12912. # work properly (i.e., refer to `conftest.exe'), while it won't with
  12913. @@ -2918,37 +3157,90 @@
  12914. for ac_file in conftest.exe conftest conftest.*; do
  12915. test -f "$ac_file" || continue
  12916. case $ac_file in
  12917. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  12918. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  12919. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  12920. break;;
  12921. * ) break;;
  12922. esac
  12923. done
  12924. else
  12925. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  12926. -See \`config.log' for more details." >&5
  12927. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  12928. -See \`config.log' for more details." >&2;}
  12929. - { (exit 1); exit 1; }; }
  12930. -fi
  12931. -
  12932. -rm -f conftest$ac_cv_exeext
  12933. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  12934. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  12935. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12936. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12937. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  12938. +See \`config.log' for more details." "$LINENO" 5; }
  12939. +fi
  12940. +rm -f conftest conftest$ac_cv_exeext
  12941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  12942. +$as_echo "$ac_cv_exeext" >&6; }
  12943. rm -f conftest.$ac_ext
  12944. EXEEXT=$ac_cv_exeext
  12945. ac_exeext=$EXEEXT
  12946. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  12947. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  12948. -if test "${ac_cv_objext+set}" = set; then
  12949. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12950. -else
  12951. - cat >conftest.$ac_ext <<_ACEOF
  12952. -/* confdefs.h. */
  12953. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12954. +/* end confdefs.h. */
  12955. +#include <stdio.h>
  12956. +int
  12957. +main ()
  12958. +{
  12959. +FILE *f = fopen ("conftest.out", "w");
  12960. + return ferror (f) || fclose (f) != 0;
  12961. +
  12962. + ;
  12963. + return 0;
  12964. +}
  12965. _ACEOF
  12966. -cat confdefs.h >>conftest.$ac_ext
  12967. -cat >>conftest.$ac_ext <<_ACEOF
  12968. +ac_clean_files="$ac_clean_files conftest.out"
  12969. +# Check that the compiler produces executables we can run. If not, either
  12970. +# the compiler is broken, or we cross compile.
  12971. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  12972. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  12973. +if test "$cross_compiling" != yes; then
  12974. + { { ac_try="$ac_link"
  12975. +case "(($ac_try" in
  12976. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12977. + *) ac_try_echo=$ac_try;;
  12978. +esac
  12979. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12980. +$as_echo "$ac_try_echo"; } >&5
  12981. + (eval "$ac_link") 2>&5
  12982. + ac_status=$?
  12983. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12984. + test $ac_status = 0; }
  12985. + if { ac_try='./conftest$ac_cv_exeext'
  12986. + { { case "(($ac_try" in
  12987. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12988. + *) ac_try_echo=$ac_try;;
  12989. +esac
  12990. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12991. +$as_echo "$ac_try_echo"; } >&5
  12992. + (eval "$ac_try") 2>&5
  12993. + ac_status=$?
  12994. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12995. + test $ac_status = 0; }; }; then
  12996. + cross_compiling=no
  12997. + else
  12998. + if test "$cross_compiling" = maybe; then
  12999. + cross_compiling=yes
  13000. + else
  13001. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13002. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13003. +as_fn_error "cannot run C compiled programs.
  13004. +If you meant to cross compile, use \`--host'.
  13005. +See \`config.log' for more details." "$LINENO" 5; }
  13006. + fi
  13007. + fi
  13008. +fi
  13009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  13010. +$as_echo "$cross_compiling" >&6; }
  13011. +
  13012. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  13013. +ac_clean_files=$ac_clean_files_save
  13014. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  13015. +$as_echo_n "checking for suffix of object files... " >&6; }
  13016. +if test "${ac_cv_objext+set}" = set; then :
  13017. + $as_echo_n "(cached) " >&6
  13018. +else
  13019. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13020. /* end confdefs.h. */
  13021. int
  13022. @@ -2960,51 +3252,46 @@
  13023. }
  13024. _ACEOF
  13025. rm -f conftest.o conftest.obj
  13026. -if { (ac_try="$ac_compile"
  13027. +if { { ac_try="$ac_compile"
  13028. case "(($ac_try" in
  13029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13030. *) ac_try_echo=$ac_try;;
  13031. esac
  13032. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13033. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13034. +$as_echo "$ac_try_echo"; } >&5
  13035. (eval "$ac_compile") 2>&5
  13036. ac_status=$?
  13037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13038. - (exit $ac_status); }; then
  13039. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13040. + test $ac_status = 0; }; then :
  13041. for ac_file in conftest.o conftest.obj conftest.*; do
  13042. test -f "$ac_file" || continue;
  13043. case $ac_file in
  13044. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  13045. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  13046. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  13047. break;;
  13048. esac
  13049. done
  13050. else
  13051. - echo "$as_me: failed program was:" >&5
  13052. + $as_echo "$as_me: failed program was:" >&5
  13053. sed 's/^/| /' conftest.$ac_ext >&5
  13054. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  13055. -See \`config.log' for more details." >&5
  13056. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  13057. -See \`config.log' for more details." >&2;}
  13058. - { (exit 1); exit 1; }; }
  13059. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13060. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13061. +as_fn_error "cannot compute suffix of object files: cannot compile
  13062. +See \`config.log' for more details." "$LINENO" 5; }
  13063. fi
  13064. -
  13065. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  13066. fi
  13067. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  13068. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  13069. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  13070. +$as_echo "$ac_cv_objext" >&6; }
  13071. OBJEXT=$ac_cv_objext
  13072. ac_objext=$OBJEXT
  13073. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  13074. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  13075. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  13076. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  13078. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  13079. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  13080. + $as_echo_n "(cached) " >&6
  13081. else
  13082. - cat >conftest.$ac_ext <<_ACEOF
  13083. -/* confdefs.h. */
  13084. -_ACEOF
  13085. -cat confdefs.h >>conftest.$ac_ext
  13086. -cat >>conftest.$ac_ext <<_ACEOF
  13087. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13088. /* end confdefs.h. */
  13089. int
  13090. @@ -3018,54 +3305,34 @@
  13091. return 0;
  13092. }
  13093. _ACEOF
  13094. -rm -f conftest.$ac_objext
  13095. -if { (ac_try="$ac_compile"
  13096. -case "(($ac_try" in
  13097. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13098. - *) ac_try_echo=$ac_try;;
  13099. -esac
  13100. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13101. - (eval "$ac_compile") 2>conftest.er1
  13102. - ac_status=$?
  13103. - grep -v '^ *+' conftest.er1 >conftest.err
  13104. - rm -f conftest.er1
  13105. - cat conftest.err >&5
  13106. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13107. - (exit $ac_status); } && {
  13108. - test -z "$ac_c_werror_flag" ||
  13109. - test ! -s conftest.err
  13110. - } && test -s conftest.$ac_objext; then
  13111. +if ac_fn_c_try_compile "$LINENO"; then :
  13112. ac_compiler_gnu=yes
  13113. else
  13114. - echo "$as_me: failed program was:" >&5
  13115. -sed 's/^/| /' conftest.$ac_ext >&5
  13116. -
  13117. - ac_compiler_gnu=no
  13118. + ac_compiler_gnu=no
  13119. fi
  13120. -
  13121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13122. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  13123. fi
  13124. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  13125. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  13126. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  13127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  13128. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  13129. +if test $ac_compiler_gnu = yes; then
  13130. + GCC=yes
  13131. +else
  13132. + GCC=
  13133. +fi
  13134. ac_test_CFLAGS=${CFLAGS+set}
  13135. ac_save_CFLAGS=$CFLAGS
  13136. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  13137. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  13138. -if test "${ac_cv_prog_cc_g+set}" = set; then
  13139. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  13141. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  13142. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  13143. + $as_echo_n "(cached) " >&6
  13144. else
  13145. ac_save_c_werror_flag=$ac_c_werror_flag
  13146. ac_c_werror_flag=yes
  13147. ac_cv_prog_cc_g=no
  13148. CFLAGS="-g"
  13149. - cat >conftest.$ac_ext <<_ACEOF
  13150. -/* confdefs.h. */
  13151. -_ACEOF
  13152. -cat confdefs.h >>conftest.$ac_ext
  13153. -cat >>conftest.$ac_ext <<_ACEOF
  13154. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13155. /* end confdefs.h. */
  13156. int
  13157. @@ -3076,34 +3343,11 @@
  13158. return 0;
  13159. }
  13160. _ACEOF
  13161. -rm -f conftest.$ac_objext
  13162. -if { (ac_try="$ac_compile"
  13163. -case "(($ac_try" in
  13164. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13165. - *) ac_try_echo=$ac_try;;
  13166. -esac
  13167. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13168. - (eval "$ac_compile") 2>conftest.er1
  13169. - ac_status=$?
  13170. - grep -v '^ *+' conftest.er1 >conftest.err
  13171. - rm -f conftest.er1
  13172. - cat conftest.err >&5
  13173. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13174. - (exit $ac_status); } && {
  13175. - test -z "$ac_c_werror_flag" ||
  13176. - test ! -s conftest.err
  13177. - } && test -s conftest.$ac_objext; then
  13178. +if ac_fn_c_try_compile "$LINENO"; then :
  13179. ac_cv_prog_cc_g=yes
  13180. else
  13181. - echo "$as_me: failed program was:" >&5
  13182. -sed 's/^/| /' conftest.$ac_ext >&5
  13183. -
  13184. - CFLAGS=""
  13185. - cat >conftest.$ac_ext <<_ACEOF
  13186. -/* confdefs.h. */
  13187. -_ACEOF
  13188. -cat confdefs.h >>conftest.$ac_ext
  13189. -cat >>conftest.$ac_ext <<_ACEOF
  13190. + CFLAGS=""
  13191. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13192. /* end confdefs.h. */
  13193. int
  13194. @@ -3114,35 +3358,12 @@
  13195. return 0;
  13196. }
  13197. _ACEOF
  13198. -rm -f conftest.$ac_objext
  13199. -if { (ac_try="$ac_compile"
  13200. -case "(($ac_try" in
  13201. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13202. - *) ac_try_echo=$ac_try;;
  13203. -esac
  13204. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13205. - (eval "$ac_compile") 2>conftest.er1
  13206. - ac_status=$?
  13207. - grep -v '^ *+' conftest.er1 >conftest.err
  13208. - rm -f conftest.er1
  13209. - cat conftest.err >&5
  13210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13211. - (exit $ac_status); } && {
  13212. - test -z "$ac_c_werror_flag" ||
  13213. - test ! -s conftest.err
  13214. - } && test -s conftest.$ac_objext; then
  13215. - :
  13216. -else
  13217. - echo "$as_me: failed program was:" >&5
  13218. -sed 's/^/| /' conftest.$ac_ext >&5
  13219. +if ac_fn_c_try_compile "$LINENO"; then :
  13220. - ac_c_werror_flag=$ac_save_c_werror_flag
  13221. +else
  13222. + ac_c_werror_flag=$ac_save_c_werror_flag
  13223. CFLAGS="-g"
  13224. - cat >conftest.$ac_ext <<_ACEOF
  13225. -/* confdefs.h. */
  13226. -_ACEOF
  13227. -cat confdefs.h >>conftest.$ac_ext
  13228. -cat >>conftest.$ac_ext <<_ACEOF
  13229. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13230. /* end confdefs.h. */
  13231. int
  13232. @@ -3153,42 +3374,18 @@
  13233. return 0;
  13234. }
  13235. _ACEOF
  13236. -rm -f conftest.$ac_objext
  13237. -if { (ac_try="$ac_compile"
  13238. -case "(($ac_try" in
  13239. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13240. - *) ac_try_echo=$ac_try;;
  13241. -esac
  13242. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13243. - (eval "$ac_compile") 2>conftest.er1
  13244. - ac_status=$?
  13245. - grep -v '^ *+' conftest.er1 >conftest.err
  13246. - rm -f conftest.er1
  13247. - cat conftest.err >&5
  13248. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13249. - (exit $ac_status); } && {
  13250. - test -z "$ac_c_werror_flag" ||
  13251. - test ! -s conftest.err
  13252. - } && test -s conftest.$ac_objext; then
  13253. +if ac_fn_c_try_compile "$LINENO"; then :
  13254. ac_cv_prog_cc_g=yes
  13255. -else
  13256. - echo "$as_me: failed program was:" >&5
  13257. -sed 's/^/| /' conftest.$ac_ext >&5
  13258. -
  13259. -
  13260. fi
  13261. -
  13262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13263. fi
  13264. -
  13265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13266. fi
  13267. -
  13268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13269. ac_c_werror_flag=$ac_save_c_werror_flag
  13270. fi
  13271. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  13272. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  13273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  13274. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  13275. if test "$ac_test_CFLAGS" = set; then
  13276. CFLAGS=$ac_save_CFLAGS
  13277. elif test $ac_cv_prog_cc_g = yes; then
  13278. @@ -3204,18 +3401,14 @@
  13279. CFLAGS=
  13280. fi
  13281. fi
  13282. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  13283. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  13284. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  13285. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13286. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  13287. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  13288. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  13289. + $as_echo_n "(cached) " >&6
  13290. else
  13291. ac_cv_prog_cc_c89=no
  13292. ac_save_CC=$CC
  13293. -cat >conftest.$ac_ext <<_ACEOF
  13294. -/* confdefs.h. */
  13295. -_ACEOF
  13296. -cat confdefs.h >>conftest.$ac_ext
  13297. -cat >>conftest.$ac_ext <<_ACEOF
  13298. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13299. /* end confdefs.h. */
  13300. #include <stdarg.h>
  13301. #include <stdio.h>
  13302. @@ -3272,31 +3465,9 @@
  13303. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  13304. do
  13305. CC="$ac_save_CC $ac_arg"
  13306. - rm -f conftest.$ac_objext
  13307. -if { (ac_try="$ac_compile"
  13308. -case "(($ac_try" in
  13309. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13310. - *) ac_try_echo=$ac_try;;
  13311. -esac
  13312. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13313. - (eval "$ac_compile") 2>conftest.er1
  13314. - ac_status=$?
  13315. - grep -v '^ *+' conftest.er1 >conftest.err
  13316. - rm -f conftest.er1
  13317. - cat conftest.err >&5
  13318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13319. - (exit $ac_status); } && {
  13320. - test -z "$ac_c_werror_flag" ||
  13321. - test ! -s conftest.err
  13322. - } && test -s conftest.$ac_objext; then
  13323. + if ac_fn_c_try_compile "$LINENO"; then :
  13324. ac_cv_prog_cc_c89=$ac_arg
  13325. -else
  13326. - echo "$as_me: failed program was:" >&5
  13327. -sed 's/^/| /' conftest.$ac_ext >&5
  13328. -
  13329. -
  13330. fi
  13331. -
  13332. rm -f core conftest.err conftest.$ac_objext
  13333. test "x$ac_cv_prog_cc_c89" != "xno" && break
  13334. done
  13335. @@ -3307,17 +3478,19 @@
  13336. # AC_CACHE_VAL
  13337. case "x$ac_cv_prog_cc_c89" in
  13338. x)
  13339. - { echo "$as_me:$LINENO: result: none needed" >&5
  13340. -echo "${ECHO_T}none needed" >&6; } ;;
  13341. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13342. +$as_echo "none needed" >&6; } ;;
  13343. xno)
  13344. - { echo "$as_me:$LINENO: result: unsupported" >&5
  13345. -echo "${ECHO_T}unsupported" >&6; } ;;
  13346. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13347. +$as_echo "unsupported" >&6; } ;;
  13348. *)
  13349. CC="$CC $ac_cv_prog_cc_c89"
  13350. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  13351. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  13352. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  13353. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  13354. esac
  13355. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  13356. +fi
  13357. ac_ext=c
  13358. ac_cpp='$CPP $CPPFLAGS'
  13359. @@ -3332,44 +3505,44 @@
  13360. am_make=${MAKE-make}
  13361. cat > confinc << 'END'
  13362. am__doit:
  13363. - @echo done
  13364. + @echo this is the am__doit target
  13365. .PHONY: am__doit
  13366. END
  13367. # If we don't find an include directive, just comment out the code.
  13368. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  13369. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  13370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13371. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  13372. am__include="#"
  13373. am__quote=
  13374. _am_result=none
  13375. # First try GNU make style include.
  13376. echo "include confinc" > confmf
  13377. -# We grep out `Entering directory' and `Leaving directory'
  13378. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13379. -# In particular we don't look at `^make:' because GNU make might
  13380. -# be invoked under some other name (usually "gmake"), in which
  13381. -# case it prints its new name instead of `make'.
  13382. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13383. - am__include=include
  13384. - am__quote=
  13385. - _am_result=GNU
  13386. -fi
  13387. +# Ignore all kinds of additional output from `make'.
  13388. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13389. +*the\ am__doit\ target*)
  13390. + am__include=include
  13391. + am__quote=
  13392. + _am_result=GNU
  13393. + ;;
  13394. +esac
  13395. # Now try BSD make style include.
  13396. if test "$am__include" = "#"; then
  13397. echo '.include "confinc"' > confmf
  13398. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13399. - am__include=.include
  13400. - am__quote="\""
  13401. - _am_result=BSD
  13402. - fi
  13403. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13404. + *the\ am__doit\ target*)
  13405. + am__include=.include
  13406. + am__quote="\""
  13407. + _am_result=BSD
  13408. + ;;
  13409. + esac
  13410. fi
  13411. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  13412. -echo "${ECHO_T}$_am_result" >&6; }
  13413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13414. +$as_echo "$_am_result" >&6; }
  13415. rm -f confinc confmf
  13416. # Check whether --enable-dependency-tracking was given.
  13417. -if test "${enable_dependency_tracking+set}" = set; then
  13418. +if test "${enable_dependency_tracking+set}" = set; then :
  13419. enableval=$enable_dependency_tracking;
  13420. fi
  13421. @@ -3389,10 +3562,10 @@
  13422. depcc="$CC" am_compiler_list=
  13423. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  13424. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  13425. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  13426. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13428. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  13429. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  13430. + $as_echo_n "(cached) " >&6
  13431. else
  13432. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13433. # We make a subdir and do the tests there. Otherwise we can end up
  13434. @@ -3417,6 +3590,11 @@
  13435. if test "$am_compiler_list" = ""; then
  13436. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13437. fi
  13438. + am__universal=false
  13439. + case " $depcc " in #(
  13440. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13441. + esac
  13442. +
  13443. for depmode in $am_compiler_list; do
  13444. # Setup a source with many dependencies, because some compilers
  13445. # like to wrap large dependency lists on column 80 (with \), and
  13446. @@ -3434,7 +3612,17 @@
  13447. done
  13448. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13449. - case $depmode in
  13450. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13451. + # mode. It turns out that the SunPro C++ compiler does not properly
  13452. + # handle `-M -o', and we need to detect this. Also, some Intel
  13453. + # versions had trouble with output in subdirs
  13454. + am__obj=sub/conftest.${OBJEXT-o}
  13455. + am__minus_obj="-o $am__obj"
  13456. + case $depmode in
  13457. + gcc)
  13458. + # This depmode causes a compiler race in universal mode.
  13459. + test "$am__universal" = false || continue
  13460. + ;;
  13461. nosideeffect)
  13462. # after this tag, mechanisms are not by side-effect, so they'll
  13463. # only be used when explicitly requested
  13464. @@ -3444,19 +3632,23 @@
  13465. break
  13466. fi
  13467. ;;
  13468. + msvisualcpp | msvcmsys)
  13469. + # This compiler won't grok `-c -o', but also, the minuso test has
  13470. + # not run yet. These depmodes are late enough in the game, and
  13471. + # so weak that their functioning should not be impacted.
  13472. + am__obj=conftest.${OBJEXT-o}
  13473. + am__minus_obj=
  13474. + ;;
  13475. none) break ;;
  13476. esac
  13477. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13478. - # mode. It turns out that the SunPro C++ compiler does not properly
  13479. - # handle `-M -o', and we need to detect this.
  13480. if depmode=$depmode \
  13481. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13482. + source=sub/conftest.c object=$am__obj \
  13483. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13484. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13485. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13486. >/dev/null 2>conftest.err &&
  13487. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13488. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13489. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13490. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13491. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13492. # icc doesn't choke on unknown options, it will just issue warnings
  13493. # or remarks (even with -Werror). So we grep stderr for any message
  13494. @@ -3480,8 +3672,8 @@
  13495. fi
  13496. fi
  13497. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  13498. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  13499. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13500. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13501. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13502. if
  13503. @@ -3495,189 +3687,55 @@
  13504. fi
  13505. -# Find a good install program. We prefer a C program (faster),
  13506. -# so one script is as good as another. But avoid the broken or
  13507. -# incompatible versions:
  13508. -# SysV /etc/install, /usr/sbin/install
  13509. -# SunOS /usr/etc/install
  13510. -# IRIX /sbin/install
  13511. -# AIX /bin/install
  13512. -# AmigaOS /C/install, which installs bootblocks on floppy discs
  13513. -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13514. -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13515. -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13516. -# OS/2's system install, which has a completely different semantic
  13517. -# ./install, which can be erroneously created by make from ./install.sh.
  13518. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  13519. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  13520. -if test -z "$INSTALL"; then
  13521. -if test "${ac_cv_path_install+set}" = set; then
  13522. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13523. -else
  13524. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13525. -for as_dir in $PATH
  13526. -do
  13527. - IFS=$as_save_IFS
  13528. - test -z "$as_dir" && as_dir=.
  13529. - # Account for people who put trailing slashes in PATH elements.
  13530. -case $as_dir/ in
  13531. - ./ | .// | /cC/* | \
  13532. - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13533. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  13534. - /usr/ucb/* ) ;;
  13535. - *)
  13536. - # OSF1 and SCO ODT 3.0 have their own names for install.
  13537. - # Don't use installbsd from OSF since it installs stuff as root
  13538. - # by default.
  13539. - for ac_prog in ginstall scoinst install; do
  13540. - for ac_exec_ext in '' $ac_executable_extensions; do
  13541. - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13542. - if test $ac_prog = install &&
  13543. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13544. - # AIX install. It has an incompatible calling convention.
  13545. - :
  13546. - elif test $ac_prog = install &&
  13547. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13548. - # program-specific install script used by HP pwplus--don't use.
  13549. - :
  13550. - else
  13551. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13552. - break 3
  13553. - fi
  13554. - fi
  13555. - done
  13556. - done
  13557. - ;;
  13558. +
  13559. +case `pwd` in
  13560. + *\ * | *\ *)
  13561. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  13562. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  13563. esac
  13564. -done
  13565. -IFS=$as_save_IFS
  13566. -fi
  13567. - if test "${ac_cv_path_install+set}" = set; then
  13568. - INSTALL=$ac_cv_path_install
  13569. - else
  13570. - # As a last resort, use the slow shell script. Don't cache a
  13571. - # value for INSTALL within a source directory, because that will
  13572. - # break other packages using the cache if that directory is
  13573. - # removed, or if the value is a relative name.
  13574. - INSTALL=$ac_install_sh
  13575. - fi
  13576. -fi
  13577. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  13578. -echo "${ECHO_T}$INSTALL" >&6; }
  13579. -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13580. -# It thinks the first close brace ends the variable substitution.
  13581. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13582. +macro_version='2.2.6b'
  13583. +macro_revision='1.3017'
  13584. +
  13585. +
  13586. +
  13587. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13588. -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13589. -# Check whether --enable-shared was given.
  13590. -if test "${enable_shared+set}" = set; then
  13591. - enableval=$enable_shared; p=${PACKAGE-default}
  13592. - case $enableval in
  13593. - yes) enable_shared=yes ;;
  13594. - no) enable_shared=no ;;
  13595. - *)
  13596. - enable_shared=no
  13597. - # Look at the argument we got. We use all the common list separators.
  13598. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13599. - for pkg in $enableval; do
  13600. - IFS="$lt_save_ifs"
  13601. - if test "X$pkg" = "X$p"; then
  13602. - enable_shared=yes
  13603. - fi
  13604. - done
  13605. - IFS="$lt_save_ifs"
  13606. - ;;
  13607. - esac
  13608. -else
  13609. - enable_shared=yes
  13610. -fi
  13611. -# Check whether --enable-static was given.
  13612. -if test "${enable_static+set}" = set; then
  13613. - enableval=$enable_static; p=${PACKAGE-default}
  13614. - case $enableval in
  13615. - yes) enable_static=yes ;;
  13616. - no) enable_static=no ;;
  13617. - *)
  13618. - enable_static=no
  13619. - # Look at the argument we got. We use all the common list separators.
  13620. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13621. - for pkg in $enableval; do
  13622. - IFS="$lt_save_ifs"
  13623. - if test "X$pkg" = "X$p"; then
  13624. - enable_static=yes
  13625. - fi
  13626. - done
  13627. - IFS="$lt_save_ifs"
  13628. - ;;
  13629. - esac
  13630. -else
  13631. - enable_static=yes
  13632. -fi
  13633. -# Check whether --enable-fast-install was given.
  13634. -if test "${enable_fast_install+set}" = set; then
  13635. - enableval=$enable_fast_install; p=${PACKAGE-default}
  13636. - case $enableval in
  13637. - yes) enable_fast_install=yes ;;
  13638. - no) enable_fast_install=no ;;
  13639. - *)
  13640. - enable_fast_install=no
  13641. - # Look at the argument we got. We use all the common list separators.
  13642. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13643. - for pkg in $enableval; do
  13644. - IFS="$lt_save_ifs"
  13645. - if test "X$pkg" = "X$p"; then
  13646. - enable_fast_install=yes
  13647. - fi
  13648. - done
  13649. - IFS="$lt_save_ifs"
  13650. - ;;
  13651. - esac
  13652. -else
  13653. - enable_fast_install=yes
  13654. -fi
  13655. +
  13656. +ltmain="$ac_aux_dir/ltmain.sh"
  13657. +
  13658. # Make sure we can run config.sub.
  13659. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  13660. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  13661. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  13662. - { (exit 1); exit 1; }; }
  13663. -
  13664. -{ echo "$as_me:$LINENO: checking build system type" >&5
  13665. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  13666. -if test "${ac_cv_build+set}" = set; then
  13667. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13668. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  13669. +
  13670. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  13671. +$as_echo_n "checking build system type... " >&6; }
  13672. +if test "${ac_cv_build+set}" = set; then :
  13673. + $as_echo_n "(cached) " >&6
  13674. else
  13675. ac_build_alias=$build_alias
  13676. test "x$ac_build_alias" = x &&
  13677. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  13678. test "x$ac_build_alias" = x &&
  13679. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  13680. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  13681. - { (exit 1); exit 1; }; }
  13682. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  13683. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  13684. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  13685. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  13686. - { (exit 1); exit 1; }; }
  13687. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  13688. fi
  13689. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  13690. -echo "${ECHO_T}$ac_cv_build" >&6; }
  13691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  13692. +$as_echo "$ac_cv_build" >&6; }
  13693. case $ac_cv_build in
  13694. *-*-*) ;;
  13695. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  13696. -echo "$as_me: error: invalid value of canonical build" >&2;}
  13697. - { (exit 1); exit 1; }; };;
  13698. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  13699. esac
  13700. build=$ac_cv_build
  13701. ac_save_IFS=$IFS; IFS='-'
  13702. @@ -3693,28 +3751,24 @@
  13703. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  13704. -{ echo "$as_me:$LINENO: checking host system type" >&5
  13705. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  13706. -if test "${ac_cv_host+set}" = set; then
  13707. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13708. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  13709. +$as_echo_n "checking host system type... " >&6; }
  13710. +if test "${ac_cv_host+set}" = set; then :
  13711. + $as_echo_n "(cached) " >&6
  13712. else
  13713. if test "x$host_alias" = x; then
  13714. ac_cv_host=$ac_cv_build
  13715. else
  13716. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  13717. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  13718. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  13719. - { (exit 1); exit 1; }; }
  13720. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  13721. fi
  13722. fi
  13723. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  13724. -echo "${ECHO_T}$ac_cv_host" >&6; }
  13725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  13726. +$as_echo "$ac_cv_host" >&6; }
  13727. case $ac_cv_host in
  13728. *-*-*) ;;
  13729. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  13730. -echo "$as_me: error: invalid value of canonical host" >&2;}
  13731. - { (exit 1); exit 1; }; };;
  13732. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  13733. esac
  13734. host=$ac_cv_host
  13735. ac_save_IFS=$IFS; IFS='-'
  13736. @@ -3730,104 +3784,122 @@
  13737. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  13738. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  13739. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  13740. -if test "${lt_cv_path_SED+set}" = set; then
  13741. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13742. -else
  13743. - # Loop through the user's path and test for sed and gsed.
  13744. -# Then use that list of sed's as ones to test for truncation.
  13745. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13746. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  13747. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  13748. +if test "${ac_cv_path_SED+set}" = set; then :
  13749. + $as_echo_n "(cached) " >&6
  13750. +else
  13751. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  13752. + for ac_i in 1 2 3 4 5 6 7; do
  13753. + ac_script="$ac_script$as_nl$ac_script"
  13754. + done
  13755. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  13756. + { ac_script=; unset ac_script;}
  13757. + if test -z "$SED"; then
  13758. + ac_path_SED_found=false
  13759. + # Loop through the user's path and test for each of PROGNAME-LIST
  13760. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13761. for as_dir in $PATH
  13762. do
  13763. IFS=$as_save_IFS
  13764. test -z "$as_dir" && as_dir=.
  13765. - for lt_ac_prog in sed gsed; do
  13766. + for ac_prog in sed gsed; do
  13767. for ac_exec_ext in '' $ac_executable_extensions; do
  13768. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  13769. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  13770. - fi
  13771. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  13772. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  13773. +# Check for GNU ac_path_SED and select it if it is found.
  13774. + # Check for GNU $ac_path_SED
  13775. +case `"$ac_path_SED" --version 2>&1` in
  13776. +*GNU*)
  13777. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  13778. +*)
  13779. + ac_count=0
  13780. + $as_echo_n 0123456789 >"conftest.in"
  13781. + while :
  13782. + do
  13783. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  13784. + mv "conftest.tmp" "conftest.in"
  13785. + cp "conftest.in" "conftest.nl"
  13786. + $as_echo '' >> "conftest.nl"
  13787. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  13788. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  13789. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  13790. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  13791. + # Best one so far, save it but keep looking for a better one
  13792. + ac_cv_path_SED="$ac_path_SED"
  13793. + ac_path_SED_max=$ac_count
  13794. + fi
  13795. + # 10*(2^10) chars as input seems more than enough
  13796. + test $ac_count -gt 10 && break
  13797. + done
  13798. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  13799. +esac
  13800. +
  13801. + $ac_path_SED_found && break 3
  13802. done
  13803. done
  13804. -done
  13805. + done
  13806. IFS=$as_save_IFS
  13807. -lt_ac_max=0
  13808. -lt_ac_count=0
  13809. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  13810. -# along with /bin/sed that truncates output.
  13811. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  13812. - test ! -f $lt_ac_sed && continue
  13813. - cat /dev/null > conftest.in
  13814. - lt_ac_count=0
  13815. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  13816. - # Check for GNU sed and select it if it is found.
  13817. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  13818. - lt_cv_path_SED=$lt_ac_sed
  13819. - break
  13820. + if test -z "$ac_cv_path_SED"; then
  13821. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  13822. fi
  13823. - while true; do
  13824. - cat conftest.in conftest.in >conftest.tmp
  13825. - mv conftest.tmp conftest.in
  13826. - cp conftest.in conftest.nl
  13827. - echo >>conftest.nl
  13828. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  13829. - cmp -s conftest.out conftest.nl || break
  13830. - # 10000 chars as input seems more than enough
  13831. - test $lt_ac_count -gt 10 && break
  13832. - lt_ac_count=`expr $lt_ac_count + 1`
  13833. - if test $lt_ac_count -gt $lt_ac_max; then
  13834. - lt_ac_max=$lt_ac_count
  13835. - lt_cv_path_SED=$lt_ac_sed
  13836. - fi
  13837. - done
  13838. -done
  13839. +else
  13840. + ac_cv_path_SED=$SED
  13841. +fi
  13842. fi
  13843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  13844. +$as_echo "$ac_cv_path_SED" >&6; }
  13845. + SED="$ac_cv_path_SED"
  13846. + rm -f conftest.sed
  13847. +
  13848. +test -z "$SED" && SED=sed
  13849. +Xsed="$SED -e 1s/^X//"
  13850. +
  13851. +
  13852. +
  13853. +
  13854. +
  13855. +
  13856. +
  13857. +
  13858. -SED=$lt_cv_path_SED
  13859. -{ echo "$as_me:$LINENO: result: $SED" >&5
  13860. -echo "${ECHO_T}$SED" >&6; }
  13861. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  13862. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  13863. -if test "${ac_cv_path_GREP+set}" = set; then
  13864. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13865. -else
  13866. - # Extract the first word of "grep ggrep" to use in msg output
  13867. -if test -z "$GREP"; then
  13868. -set dummy grep ggrep; ac_prog_name=$2
  13869. -if test "${ac_cv_path_GREP+set}" = set; then
  13870. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  13872. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  13873. +if test "${ac_cv_path_GREP+set}" = set; then :
  13874. + $as_echo_n "(cached) " >&6
  13875. else
  13876. + if test -z "$GREP"; then
  13877. ac_path_GREP_found=false
  13878. -# Loop through the user's path and test for each of PROGNAME-LIST
  13879. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13880. + # Loop through the user's path and test for each of PROGNAME-LIST
  13881. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13882. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  13883. do
  13884. IFS=$as_save_IFS
  13885. test -z "$as_dir" && as_dir=.
  13886. - for ac_prog in grep ggrep; do
  13887. - for ac_exec_ext in '' $ac_executable_extensions; do
  13888. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  13889. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  13890. - # Check for GNU ac_path_GREP and select it if it is found.
  13891. + for ac_prog in grep ggrep; do
  13892. + for ac_exec_ext in '' $ac_executable_extensions; do
  13893. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  13894. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  13895. +# Check for GNU ac_path_GREP and select it if it is found.
  13896. # Check for GNU $ac_path_GREP
  13897. case `"$ac_path_GREP" --version 2>&1` in
  13898. *GNU*)
  13899. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  13900. *)
  13901. ac_count=0
  13902. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  13903. + $as_echo_n 0123456789 >"conftest.in"
  13904. while :
  13905. do
  13906. cat "conftest.in" "conftest.in" >"conftest.tmp"
  13907. mv "conftest.tmp" "conftest.in"
  13908. cp "conftest.in" "conftest.nl"
  13909. - echo 'GREP' >> "conftest.nl"
  13910. + $as_echo 'GREP' >> "conftest.nl"
  13911. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  13912. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  13913. - ac_count=`expr $ac_count + 1`
  13914. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  13915. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  13916. # Best one so far, save it but keep looking for a better one
  13917. ac_cv_path_GREP="$ac_path_GREP"
  13918. @@ -3839,77 +3911,61 @@
  13919. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  13920. esac
  13921. -
  13922. - $ac_path_GREP_found && break 3
  13923. + $ac_path_GREP_found && break 3
  13924. + done
  13925. + done
  13926. done
  13927. -done
  13928. -
  13929. -done
  13930. IFS=$as_save_IFS
  13931. -
  13932. -
  13933. -fi
  13934. -
  13935. -GREP="$ac_cv_path_GREP"
  13936. -if test -z "$GREP"; then
  13937. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  13938. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  13939. - { (exit 1); exit 1; }; }
  13940. -fi
  13941. -
  13942. + if test -z "$ac_cv_path_GREP"; then
  13943. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  13944. + fi
  13945. else
  13946. ac_cv_path_GREP=$GREP
  13947. fi
  13948. -
  13949. fi
  13950. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  13951. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  13952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  13953. +$as_echo "$ac_cv_path_GREP" >&6; }
  13954. GREP="$ac_cv_path_GREP"
  13955. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  13956. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  13957. -if test "${ac_cv_path_EGREP+set}" = set; then
  13958. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13959. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  13960. +$as_echo_n "checking for egrep... " >&6; }
  13961. +if test "${ac_cv_path_EGREP+set}" = set; then :
  13962. + $as_echo_n "(cached) " >&6
  13963. else
  13964. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  13965. then ac_cv_path_EGREP="$GREP -E"
  13966. else
  13967. - # Extract the first word of "egrep" to use in msg output
  13968. -if test -z "$EGREP"; then
  13969. -set dummy egrep; ac_prog_name=$2
  13970. -if test "${ac_cv_path_EGREP+set}" = set; then
  13971. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13972. -else
  13973. + if test -z "$EGREP"; then
  13974. ac_path_EGREP_found=false
  13975. -# Loop through the user's path and test for each of PROGNAME-LIST
  13976. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13977. + # Loop through the user's path and test for each of PROGNAME-LIST
  13978. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13979. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  13980. do
  13981. IFS=$as_save_IFS
  13982. test -z "$as_dir" && as_dir=.
  13983. - for ac_prog in egrep; do
  13984. - for ac_exec_ext in '' $ac_executable_extensions; do
  13985. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  13986. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  13987. - # Check for GNU ac_path_EGREP and select it if it is found.
  13988. + for ac_prog in egrep; do
  13989. + for ac_exec_ext in '' $ac_executable_extensions; do
  13990. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  13991. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  13992. +# Check for GNU ac_path_EGREP and select it if it is found.
  13993. # Check for GNU $ac_path_EGREP
  13994. case `"$ac_path_EGREP" --version 2>&1` in
  13995. *GNU*)
  13996. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  13997. *)
  13998. ac_count=0
  13999. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  14000. + $as_echo_n 0123456789 >"conftest.in"
  14001. while :
  14002. do
  14003. cat "conftest.in" "conftest.in" >"conftest.tmp"
  14004. mv "conftest.tmp" "conftest.in"
  14005. cp "conftest.in" "conftest.nl"
  14006. - echo 'EGREP' >> "conftest.nl"
  14007. + $as_echo 'EGREP' >> "conftest.nl"
  14008. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14009. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14010. - ac_count=`expr $ac_count + 1`
  14011. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14012. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  14013. # Best one so far, save it but keep looking for a better one
  14014. ac_cv_path_EGREP="$ac_path_EGREP"
  14015. @@ -3921,64 +3977,139 @@
  14016. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14017. esac
  14018. -
  14019. - $ac_path_EGREP_found && break 3
  14020. + $ac_path_EGREP_found && break 3
  14021. + done
  14022. + done
  14023. done
  14024. -done
  14025. -
  14026. -done
  14027. IFS=$as_save_IFS
  14028. -
  14029. -
  14030. -fi
  14031. -
  14032. -EGREP="$ac_cv_path_EGREP"
  14033. -if test -z "$EGREP"; then
  14034. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  14035. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  14036. - { (exit 1); exit 1; }; }
  14037. -fi
  14038. -
  14039. + if test -z "$ac_cv_path_EGREP"; then
  14040. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  14041. + fi
  14042. else
  14043. ac_cv_path_EGREP=$EGREP
  14044. fi
  14045. -
  14046. fi
  14047. fi
  14048. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  14049. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  14050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  14051. +$as_echo "$ac_cv_path_EGREP" >&6; }
  14052. EGREP="$ac_cv_path_EGREP"
  14053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  14054. +$as_echo_n "checking for fgrep... " >&6; }
  14055. +if test "${ac_cv_path_FGREP+set}" = set; then :
  14056. + $as_echo_n "(cached) " >&6
  14057. +else
  14058. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  14059. + then ac_cv_path_FGREP="$GREP -F"
  14060. + else
  14061. + if test -z "$FGREP"; then
  14062. + ac_path_FGREP_found=false
  14063. + # Loop through the user's path and test for each of PROGNAME-LIST
  14064. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14065. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  14066. +do
  14067. + IFS=$as_save_IFS
  14068. + test -z "$as_dir" && as_dir=.
  14069. + for ac_prog in fgrep; do
  14070. + for ac_exec_ext in '' $ac_executable_extensions; do
  14071. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  14072. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  14073. +# Check for GNU ac_path_FGREP and select it if it is found.
  14074. + # Check for GNU $ac_path_FGREP
  14075. +case `"$ac_path_FGREP" --version 2>&1` in
  14076. +*GNU*)
  14077. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  14078. +*)
  14079. + ac_count=0
  14080. + $as_echo_n 0123456789 >"conftest.in"
  14081. + while :
  14082. + do
  14083. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  14084. + mv "conftest.tmp" "conftest.in"
  14085. + cp "conftest.in" "conftest.nl"
  14086. + $as_echo 'FGREP' >> "conftest.nl"
  14087. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14088. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14089. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  14090. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  14091. + # Best one so far, save it but keep looking for a better one
  14092. + ac_cv_path_FGREP="$ac_path_FGREP"
  14093. + ac_path_FGREP_max=$ac_count
  14094. + fi
  14095. + # 10*(2^10) chars as input seems more than enough
  14096. + test $ac_count -gt 10 && break
  14097. + done
  14098. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14099. +esac
  14100. -# Check whether --with-gnu-ld was given.
  14101. -if test "${with_gnu_ld+set}" = set; then
  14102. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14103. + $ac_path_FGREP_found && break 3
  14104. + done
  14105. + done
  14106. + done
  14107. +IFS=$as_save_IFS
  14108. + if test -z "$ac_cv_path_FGREP"; then
  14109. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  14110. + fi
  14111. else
  14112. - with_gnu_ld=no
  14113. + ac_cv_path_FGREP=$FGREP
  14114. fi
  14115. -ac_prog=ld
  14116. -if test "$GCC" = yes; then
  14117. - # Check if gcc -print-prog-name=ld gives a path.
  14118. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  14119. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  14120. - case $host in
  14121. - *-*-mingw*)
  14122. - # gcc leaves a trailing carriage return which upsets mingw
  14123. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14124. - *)
  14125. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14126. - esac
  14127. - case $ac_prog in
  14128. - # Accept absolute paths.
  14129. - [\\/]* | ?:[\\/]*)
  14130. + fi
  14131. +fi
  14132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  14133. +$as_echo "$ac_cv_path_FGREP" >&6; }
  14134. + FGREP="$ac_cv_path_FGREP"
  14135. +
  14136. +
  14137. +test -z "$GREP" && GREP=grep
  14138. +
  14139. +
  14140. +
  14141. +
  14142. +
  14143. +
  14144. +
  14145. +
  14146. +
  14147. +
  14148. +
  14149. +
  14150. +
  14151. +
  14152. +
  14153. +
  14154. +
  14155. +
  14156. +
  14157. +# Check whether --with-gnu-ld was given.
  14158. +if test "${with_gnu_ld+set}" = set; then :
  14159. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14160. +else
  14161. + with_gnu_ld=no
  14162. +fi
  14163. +
  14164. +ac_prog=ld
  14165. +if test "$GCC" = yes; then
  14166. + # Check if gcc -print-prog-name=ld gives a path.
  14167. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14168. +$as_echo_n "checking for ld used by $CC... " >&6; }
  14169. + case $host in
  14170. + *-*-mingw*)
  14171. + # gcc leaves a trailing carriage return which upsets mingw
  14172. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14173. + *)
  14174. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14175. + esac
  14176. + case $ac_prog in
  14177. + # Accept absolute paths.
  14178. + [\\/]* | ?:[\\/]*)
  14179. re_direlt='/[^/][^/]*/\.\./'
  14180. # Canonicalize the pathname of ld
  14181. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  14182. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  14183. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  14184. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14185. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14186. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14187. done
  14188. test -z "$LD" && LD="$ac_prog"
  14189. ;;
  14190. @@ -3992,14 +4123,14 @@
  14191. ;;
  14192. esac
  14193. elif test "$with_gnu_ld" = yes; then
  14194. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  14195. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  14196. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14197. +$as_echo_n "checking for GNU ld... " >&6; }
  14198. else
  14199. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  14200. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  14201. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14202. +$as_echo_n "checking for non-GNU ld... " >&6; }
  14203. fi
  14204. -if test "${lt_cv_path_LD+set}" = set; then
  14205. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14206. +if test "${lt_cv_path_LD+set}" = set; then :
  14207. + $as_echo_n "(cached) " >&6
  14208. else
  14209. if test -z "$LD"; then
  14210. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14211. @@ -4029,19 +4160,17 @@
  14212. LD="$lt_cv_path_LD"
  14213. if test -n "$LD"; then
  14214. - { echo "$as_me:$LINENO: result: $LD" >&5
  14215. -echo "${ECHO_T}$LD" >&6; }
  14216. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14217. +$as_echo "$LD" >&6; }
  14218. else
  14219. - { echo "$as_me:$LINENO: result: no" >&5
  14220. -echo "${ECHO_T}no" >&6; }
  14221. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14222. +$as_echo "no" >&6; }
  14223. fi
  14224. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  14225. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  14226. - { (exit 1); exit 1; }; }
  14227. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  14228. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  14229. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  14230. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14231. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  14232. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14233. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  14234. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  14235. + $as_echo_n "(cached) " >&6
  14236. else
  14237. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14238. case `$LD -v 2>&1 </dev/null` in
  14239. @@ -4053,40 +4182,22 @@
  14240. ;;
  14241. esac
  14242. fi
  14243. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  14244. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  14245. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14246. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  14247. with_gnu_ld=$lt_cv_prog_gnu_ld
  14248. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  14249. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  14250. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  14251. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14252. -else
  14253. - lt_cv_ld_reload_flag='-r'
  14254. -fi
  14255. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  14256. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  14257. -reload_flag=$lt_cv_ld_reload_flag
  14258. -case $reload_flag in
  14259. -"" | " "*) ;;
  14260. -*) reload_flag=" $reload_flag" ;;
  14261. -esac
  14262. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14263. -case $host_os in
  14264. - darwin*)
  14265. - if test "$GCC" = yes; then
  14266. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  14267. - else
  14268. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14269. - fi
  14270. - ;;
  14271. -esac
  14272. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  14273. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  14274. -if test "${lt_cv_path_NM+set}" = set; then
  14275. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14276. +
  14277. +
  14278. +
  14279. +
  14280. +
  14281. +
  14282. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  14283. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  14284. +if test "${lt_cv_path_NM+set}" = set; then :
  14285. + $as_echo_n "(cached) " >&6
  14286. else
  14287. if test -n "$NM"; then
  14288. # Let the user override the test.
  14289. @@ -4129,2162 +4240,1070 @@
  14290. done
  14291. IFS="$lt_save_ifs"
  14292. done
  14293. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  14294. + : ${lt_cv_path_NM=no}
  14295. fi
  14296. fi
  14297. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  14298. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  14299. -NM="$lt_cv_path_NM"
  14300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  14301. +$as_echo "$lt_cv_path_NM" >&6; }
  14302. +if test "$lt_cv_path_NM" != "no"; then
  14303. + NM="$lt_cv_path_NM"
  14304. +else
  14305. + # Didn't find any BSD compatible name lister, look for dumpbin.
  14306. + if test -n "$ac_tool_prefix"; then
  14307. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  14308. + do
  14309. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14310. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14311. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14312. +$as_echo_n "checking for $ac_word... " >&6; }
  14313. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  14314. + $as_echo_n "(cached) " >&6
  14315. +else
  14316. + if test -n "$DUMPBIN"; then
  14317. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  14318. +else
  14319. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14320. +for as_dir in $PATH
  14321. +do
  14322. + IFS=$as_save_IFS
  14323. + test -z "$as_dir" && as_dir=.
  14324. + for ac_exec_ext in '' $ac_executable_extensions; do
  14325. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14326. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  14327. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14328. + break 2
  14329. + fi
  14330. +done
  14331. + done
  14332. +IFS=$as_save_IFS
  14333. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  14334. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  14335. -LN_S=$as_ln_s
  14336. -if test "$LN_S" = "ln -s"; then
  14337. - { echo "$as_me:$LINENO: result: yes" >&5
  14338. -echo "${ECHO_T}yes" >&6; }
  14339. +fi
  14340. +fi
  14341. +DUMPBIN=$ac_cv_prog_DUMPBIN
  14342. +if test -n "$DUMPBIN"; then
  14343. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  14344. +$as_echo "$DUMPBIN" >&6; }
  14345. else
  14346. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  14347. -echo "${ECHO_T}no, using $LN_S" >&6; }
  14348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14349. +$as_echo "no" >&6; }
  14350. fi
  14351. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  14352. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  14353. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  14354. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14355. -else
  14356. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  14357. -lt_cv_file_magic_test_file=
  14358. -lt_cv_deplibs_check_method='unknown'
  14359. -# Need to set the preceding variable on all platforms that support
  14360. -# interlibrary dependencies.
  14361. -# 'none' -- dependencies not supported.
  14362. -# `unknown' -- same as none, but documents that we really don't know.
  14363. -# 'pass_all' -- all dependencies passed with no checks.
  14364. -# 'test_compile' -- check by making test program.
  14365. -# 'file_magic [[regex]]' -- check by looking for files in library path
  14366. -# which responds to the $file_magic_cmd with a given extended regex.
  14367. -# If you have `file' or equivalent on your system and you're not sure
  14368. -# whether `pass_all' will *always* work, you probably want this one.
  14369. -case $host_os in
  14370. -aix[4-9]*)
  14371. - lt_cv_deplibs_check_method=pass_all
  14372. - ;;
  14373. + test -n "$DUMPBIN" && break
  14374. + done
  14375. +fi
  14376. +if test -z "$DUMPBIN"; then
  14377. + ac_ct_DUMPBIN=$DUMPBIN
  14378. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  14379. +do
  14380. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  14381. +set dummy $ac_prog; ac_word=$2
  14382. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14383. +$as_echo_n "checking for $ac_word... " >&6; }
  14384. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  14385. + $as_echo_n "(cached) " >&6
  14386. +else
  14387. + if test -n "$ac_ct_DUMPBIN"; then
  14388. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  14389. +else
  14390. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14391. +for as_dir in $PATH
  14392. +do
  14393. + IFS=$as_save_IFS
  14394. + test -z "$as_dir" && as_dir=.
  14395. + for ac_exec_ext in '' $ac_executable_extensions; do
  14396. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14397. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  14398. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14399. + break 2
  14400. + fi
  14401. +done
  14402. + done
  14403. +IFS=$as_save_IFS
  14404. -beos*)
  14405. - lt_cv_deplibs_check_method=pass_all
  14406. - ;;
  14407. +fi
  14408. +fi
  14409. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  14410. +if test -n "$ac_ct_DUMPBIN"; then
  14411. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  14412. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  14413. +else
  14414. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14415. +$as_echo "no" >&6; }
  14416. +fi
  14417. -bsdi[45]*)
  14418. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  14419. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  14420. - lt_cv_file_magic_test_file=/shlib/libc.so
  14421. - ;;
  14422. -cygwin*)
  14423. - # func_win32_libid is a shell function defined in ltmain.sh
  14424. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14425. - lt_cv_file_magic_cmd='func_win32_libid'
  14426. - ;;
  14427. + test -n "$ac_ct_DUMPBIN" && break
  14428. +done
  14429. -mingw* | pw32*)
  14430. - # Base MSYS/MinGW do not provide the 'file' command needed by
  14431. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  14432. - # unless we find 'file', for example because we are cross-compiling.
  14433. - if ( file / ) >/dev/null 2>&1; then
  14434. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14435. - lt_cv_file_magic_cmd='func_win32_libid'
  14436. + if test "x$ac_ct_DUMPBIN" = x; then
  14437. + DUMPBIN=":"
  14438. else
  14439. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  14440. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  14441. + case $cross_compiling:$ac_tool_warned in
  14442. +yes:)
  14443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14444. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14445. +ac_tool_warned=yes ;;
  14446. +esac
  14447. + DUMPBIN=$ac_ct_DUMPBIN
  14448. fi
  14449. - ;;
  14450. +fi
  14451. -darwin* | rhapsody*)
  14452. - lt_cv_deplibs_check_method=pass_all
  14453. - ;;
  14454. -freebsd* | dragonfly*)
  14455. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14456. - case $host_cpu in
  14457. - i*86 )
  14458. - # Not sure whether the presence of OpenBSD here was a mistake.
  14459. - # Let's accept both of them until this is cleared up.
  14460. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  14461. - lt_cv_file_magic_cmd=/usr/bin/file
  14462. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  14463. - ;;
  14464. - esac
  14465. - else
  14466. - lt_cv_deplibs_check_method=pass_all
  14467. + if test "$DUMPBIN" != ":"; then
  14468. + NM="$DUMPBIN"
  14469. fi
  14470. - ;;
  14471. +fi
  14472. +test -z "$NM" && NM=nm
  14473. -gnu*)
  14474. - lt_cv_deplibs_check_method=pass_all
  14475. - ;;
  14476. -hpux10.20* | hpux11*)
  14477. - lt_cv_file_magic_cmd=/usr/bin/file
  14478. - case $host_cpu in
  14479. - ia64*)
  14480. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  14481. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  14482. - ;;
  14483. - hppa*64*)
  14484. - 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]'
  14485. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  14486. - ;;
  14487. - *)
  14488. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  14489. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  14490. - ;;
  14491. - esac
  14492. - ;;
  14493. -interix[3-9]*)
  14494. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  14495. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  14496. - ;;
  14497. -irix5* | irix6* | nonstopux*)
  14498. - case $LD in
  14499. - *-32|*"-32 ") libmagic=32-bit;;
  14500. - *-n32|*"-n32 ") libmagic=N32;;
  14501. - *-64|*"-64 ") libmagic=64-bit;;
  14502. - *) libmagic=never-match;;
  14503. - esac
  14504. - lt_cv_deplibs_check_method=pass_all
  14505. - ;;
  14506. -# This must be Linux ELF.
  14507. -linux* | k*bsd*-gnu)
  14508. - lt_cv_deplibs_check_method=pass_all
  14509. - ;;
  14510. -netbsd* | netbsdelf*-gnu)
  14511. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14512. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14513. - else
  14514. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  14515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  14516. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  14517. +if test "${lt_cv_nm_interface+set}" = set; then :
  14518. + $as_echo_n "(cached) " >&6
  14519. +else
  14520. + lt_cv_nm_interface="BSD nm"
  14521. + echo "int some_variable = 0;" > conftest.$ac_ext
  14522. + (eval echo "\"\$as_me:4371: $ac_compile\"" >&5)
  14523. + (eval "$ac_compile" 2>conftest.err)
  14524. + cat conftest.err >&5
  14525. + (eval echo "\"\$as_me:4374: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  14526. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  14527. + cat conftest.err >&5
  14528. + (eval echo "\"\$as_me:4377: output\"" >&5)
  14529. + cat conftest.out >&5
  14530. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  14531. + lt_cv_nm_interface="MS dumpbin"
  14532. fi
  14533. - ;;
  14534. -
  14535. -newos6*)
  14536. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  14537. - lt_cv_file_magic_cmd=/usr/bin/file
  14538. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  14539. - ;;
  14540. -
  14541. -nto-qnx*)
  14542. - lt_cv_deplibs_check_method=unknown
  14543. - ;;
  14544. + rm -f conftest*
  14545. +fi
  14546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  14547. +$as_echo "$lt_cv_nm_interface" >&6; }
  14548. -openbsd*)
  14549. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14550. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  14551. - else
  14552. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14553. - fi
  14554. - ;;
  14555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  14556. +$as_echo_n "checking whether ln -s works... " >&6; }
  14557. +LN_S=$as_ln_s
  14558. +if test "$LN_S" = "ln -s"; then
  14559. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14560. +$as_echo "yes" >&6; }
  14561. +else
  14562. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  14563. +$as_echo "no, using $LN_S" >&6; }
  14564. +fi
  14565. -osf3* | osf4* | osf5*)
  14566. - lt_cv_deplibs_check_method=pass_all
  14567. - ;;
  14568. +# find the maximum length of command line arguments
  14569. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  14570. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  14571. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  14572. + $as_echo_n "(cached) " >&6
  14573. +else
  14574. + i=0
  14575. + teststring="ABCD"
  14576. -rdos*)
  14577. - lt_cv_deplibs_check_method=pass_all
  14578. - ;;
  14579. + case $build_os in
  14580. + msdosdjgpp*)
  14581. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  14582. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  14583. + # during glob expansion). Even if it were fixed, the result of this
  14584. + # check would be larger than it should be.
  14585. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  14586. + ;;
  14587. -solaris*)
  14588. - lt_cv_deplibs_check_method=pass_all
  14589. - ;;
  14590. + gnu*)
  14591. + # Under GNU Hurd, this test is not required because there is
  14592. + # no limit to the length of command line arguments.
  14593. + # Libtool will interpret -1 as no limit whatsoever
  14594. + lt_cv_sys_max_cmd_len=-1;
  14595. + ;;
  14596. -sysv4 | sysv4.3*)
  14597. - case $host_vendor in
  14598. - motorola)
  14599. - 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]'
  14600. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  14601. + cygwin* | mingw* | cegcc*)
  14602. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  14603. + # about 5 minutes as the teststring grows exponentially.
  14604. + # Worse, since 9x/ME are not pre-emptively multitasking,
  14605. + # you end up with a "frozen" computer, even though with patience
  14606. + # the test eventually succeeds (with a max line length of 256k).
  14607. + # Instead, let's just punt: use the minimum linelength reported by
  14608. + # all of the supported platforms: 8192 (on NT/2K/XP).
  14609. + lt_cv_sys_max_cmd_len=8192;
  14610. ;;
  14611. - ncr)
  14612. - lt_cv_deplibs_check_method=pass_all
  14613. +
  14614. + amigaos*)
  14615. + # On AmigaOS with pdksh, this test takes hours, literally.
  14616. + # So we just punt and use a minimum line length of 8192.
  14617. + lt_cv_sys_max_cmd_len=8192;
  14618. ;;
  14619. - sequent)
  14620. - lt_cv_file_magic_cmd='/bin/file'
  14621. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  14622. +
  14623. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  14624. + # This has been around since 386BSD, at least. Likely further.
  14625. + if test -x /sbin/sysctl; then
  14626. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  14627. + elif test -x /usr/sbin/sysctl; then
  14628. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  14629. + else
  14630. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  14631. + fi
  14632. + # And add a safety zone
  14633. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  14634. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  14635. ;;
  14636. - sni)
  14637. - lt_cv_file_magic_cmd='/bin/file'
  14638. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  14639. - lt_cv_file_magic_test_file=/lib/libc.so
  14640. +
  14641. + interix*)
  14642. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  14643. + lt_cv_sys_max_cmd_len=196608
  14644. ;;
  14645. - siemens)
  14646. - lt_cv_deplibs_check_method=pass_all
  14647. +
  14648. + osf*)
  14649. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  14650. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  14651. + # nice to cause kernel panics so lets avoid the loop below.
  14652. + # First set a reasonable default.
  14653. + lt_cv_sys_max_cmd_len=16384
  14654. + #
  14655. + if test -x /sbin/sysconfig; then
  14656. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  14657. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  14658. + esac
  14659. + fi
  14660. ;;
  14661. - pc)
  14662. - lt_cv_deplibs_check_method=pass_all
  14663. + sco3.2v5*)
  14664. + lt_cv_sys_max_cmd_len=102400
  14665. + ;;
  14666. + sysv5* | sco5v6* | sysv4.2uw2*)
  14667. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  14668. + if test -n "$kargmax"; then
  14669. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  14670. + else
  14671. + lt_cv_sys_max_cmd_len=32768
  14672. + fi
  14673. + ;;
  14674. + *)
  14675. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  14676. + if test -n "$lt_cv_sys_max_cmd_len"; then
  14677. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  14678. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  14679. + else
  14680. + # Make teststring a little bigger before we do anything with it.
  14681. + # a 1K string should be a reasonable start.
  14682. + for i in 1 2 3 4 5 6 7 8 ; do
  14683. + teststring=$teststring$teststring
  14684. + done
  14685. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  14686. + # If test is not a shell built-in, we'll probably end up computing a
  14687. + # maximum length that is only half of the actual maximum length, but
  14688. + # we can't tell.
  14689. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  14690. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  14691. + test $i != 17 # 1/2 MB should be enough
  14692. + do
  14693. + i=`expr $i + 1`
  14694. + teststring=$teststring$teststring
  14695. + done
  14696. + # Only check the string length outside the loop.
  14697. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  14698. + teststring=
  14699. + # Add a significant safety factor because C++ compilers can tack on
  14700. + # massive amounts of additional arguments before passing them to the
  14701. + # linker. It appears as though 1/2 is a usable value.
  14702. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  14703. + fi
  14704. ;;
  14705. esac
  14706. - ;;
  14707. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14708. - lt_cv_deplibs_check_method=pass_all
  14709. - ;;
  14710. -esac
  14711. +fi
  14712. +if test -n $lt_cv_sys_max_cmd_len ; then
  14713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  14714. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  14715. +else
  14716. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  14717. +$as_echo "none" >&6; }
  14718. fi
  14719. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  14720. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  14721. -file_magic_cmd=$lt_cv_file_magic_cmd
  14722. -deplibs_check_method=$lt_cv_deplibs_check_method
  14723. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  14724. +max_cmd_len=$lt_cv_sys_max_cmd_len
  14725. -# If no C compiler was specified, use CC.
  14726. -LTCC=${LTCC-"$CC"}
  14727. -# If no C compiler flags were specified, use CFLAGS.
  14728. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14729. -# Allow CC to be a program name with arguments.
  14730. -compiler=$CC
  14731. +: ${CP="cp -f"}
  14732. +: ${MV="mv -f"}
  14733. +: ${RM="rm -f"}
  14734. +
  14735. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  14736. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  14737. +# Try some XSI features
  14738. +xsi_shell=no
  14739. +( _lt_dummy="a/b/c"
  14740. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  14741. + = c,a/b,, \
  14742. + && eval 'test $(( 1 + 1 )) -eq 2 \
  14743. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  14744. + && xsi_shell=yes
  14745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  14746. +$as_echo "$xsi_shell" >&6; }
  14747. +
  14748. +
  14749. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  14750. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  14751. +lt_shell_append=no
  14752. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  14753. + >/dev/null 2>&1 \
  14754. + && lt_shell_append=yes
  14755. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  14756. +$as_echo "$lt_shell_append" >&6; }
  14757. -# Check whether --enable-libtool-lock was given.
  14758. -if test "${enable_libtool_lock+set}" = set; then
  14759. - enableval=$enable_libtool_lock;
  14760. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14761. + lt_unset=unset
  14762. +else
  14763. + lt_unset=false
  14764. fi
  14765. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14766. -# Some flags need to be propagated to the compiler or linker for good
  14767. -# libtool support.
  14768. -case $host in
  14769. -ia64-*-hpux*)
  14770. - # Find out which ABI we are using.
  14771. - echo 'int i;' > conftest.$ac_ext
  14772. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14773. - (eval $ac_compile) 2>&5
  14774. - ac_status=$?
  14775. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14776. - (exit $ac_status); }; then
  14777. - case `/usr/bin/file conftest.$ac_objext` in
  14778. - *ELF-32*)
  14779. - HPUX_IA64_MODE="32"
  14780. - ;;
  14781. - *ELF-64*)
  14782. - HPUX_IA64_MODE="64"
  14783. - ;;
  14784. - esac
  14785. - fi
  14786. - rm -rf conftest*
  14787. +
  14788. +
  14789. +
  14790. +# test EBCDIC or ASCII
  14791. +case `echo X|tr X '\101'` in
  14792. + A) # ASCII based system
  14793. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  14794. + lt_SP2NL='tr \040 \012'
  14795. + lt_NL2SP='tr \015\012 \040\040'
  14796. ;;
  14797. -*-*-irix6*)
  14798. - # Find out which ABI we are using.
  14799. - echo '#line 4386 "configure"' > conftest.$ac_ext
  14800. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14801. - (eval $ac_compile) 2>&5
  14802. - ac_status=$?
  14803. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14804. - (exit $ac_status); }; then
  14805. - if test "$lt_cv_prog_gnu_ld" = yes; then
  14806. - case `/usr/bin/file conftest.$ac_objext` in
  14807. - *32-bit*)
  14808. - LD="${LD-ld} -melf32bsmip"
  14809. - ;;
  14810. - *N32*)
  14811. - LD="${LD-ld} -melf32bmipn32"
  14812. - ;;
  14813. - *64-bit*)
  14814. - LD="${LD-ld} -melf64bmip"
  14815. - ;;
  14816. - esac
  14817. - else
  14818. - case `/usr/bin/file conftest.$ac_objext` in
  14819. - *32-bit*)
  14820. - LD="${LD-ld} -32"
  14821. - ;;
  14822. - *N32*)
  14823. - LD="${LD-ld} -n32"
  14824. - ;;
  14825. - *64-bit*)
  14826. - LD="${LD-ld} -64"
  14827. - ;;
  14828. - esac
  14829. - fi
  14830. - fi
  14831. - rm -rf conftest*
  14832. + *) # EBCDIC based system
  14833. + lt_SP2NL='tr \100 \n'
  14834. + lt_NL2SP='tr \r\n \100\100'
  14835. ;;
  14836. +esac
  14837. +
  14838. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  14839. -s390*-*linux*|sparc*-*linux*)
  14840. - # Find out which ABI we are using.
  14841. - echo 'int i;' > conftest.$ac_ext
  14842. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14843. - (eval $ac_compile) 2>&5
  14844. - ac_status=$?
  14845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14846. - (exit $ac_status); }; then
  14847. - case `/usr/bin/file conftest.o` in
  14848. - *32-bit*)
  14849. - case $host in
  14850. - x86_64-*kfreebsd*-gnu)
  14851. - LD="${LD-ld} -m elf_i386_fbsd"
  14852. - ;;
  14853. - x86_64-*linux*)
  14854. - LD="${LD-ld} -m elf_i386"
  14855. - ;;
  14856. - ppc64-*linux*|powerpc64-*linux*)
  14857. - LD="${LD-ld} -m elf32ppclinux"
  14858. - ;;
  14859. - s390x-*linux*)
  14860. - LD="${LD-ld} -m elf_s390"
  14861. - ;;
  14862. - sparc64-*linux*)
  14863. - LD="${LD-ld} -m elf32_sparc"
  14864. - ;;
  14865. - esac
  14866. - ;;
  14867. - *64-bit*)
  14868. - case $host in
  14869. - x86_64-*kfreebsd*-gnu)
  14870. - LD="${LD-ld} -m elf_x86_64_fbsd"
  14871. - ;;
  14872. - x86_64-*linux*)
  14873. - LD="${LD-ld} -m elf_x86_64"
  14874. - ;;
  14875. - ppc*-*linux*|powerpc*-*linux*)
  14876. - LD="${LD-ld} -m elf64ppc"
  14877. - ;;
  14878. - s390*-*linux*)
  14879. - LD="${LD-ld} -m elf64_s390"
  14880. - ;;
  14881. - sparc*-*linux*)
  14882. - LD="${LD-ld} -m elf64_sparc"
  14883. - ;;
  14884. - esac
  14885. - ;;
  14886. - esac
  14887. - fi
  14888. - rm -rf conftest*
  14889. - ;;
  14890. -*-*-sco3.2v5*)
  14891. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14892. - SAVE_CFLAGS="$CFLAGS"
  14893. - CFLAGS="$CFLAGS -belf"
  14894. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  14895. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  14896. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  14897. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14898. -else
  14899. - ac_ext=c
  14900. -ac_cpp='$CPP $CPPFLAGS'
  14901. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14902. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14903. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14904. - cat >conftest.$ac_ext <<_ACEOF
  14905. -/* confdefs.h. */
  14906. -_ACEOF
  14907. -cat confdefs.h >>conftest.$ac_ext
  14908. -cat >>conftest.$ac_ext <<_ACEOF
  14909. -/* end confdefs.h. */
  14910. -int
  14911. -main ()
  14912. -{
  14913. - ;
  14914. - return 0;
  14915. -}
  14916. -_ACEOF
  14917. -rm -f conftest.$ac_objext conftest$ac_exeext
  14918. -if { (ac_try="$ac_link"
  14919. -case "(($ac_try" in
  14920. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14921. - *) ac_try_echo=$ac_try;;
  14922. -esac
  14923. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14924. - (eval "$ac_link") 2>conftest.er1
  14925. - ac_status=$?
  14926. - grep -v '^ *+' conftest.er1 >conftest.err
  14927. - rm -f conftest.er1
  14928. - cat conftest.err >&5
  14929. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14930. - (exit $ac_status); } && {
  14931. - test -z "$ac_c_werror_flag" ||
  14932. - test ! -s conftest.err
  14933. - } && test -s conftest$ac_exeext &&
  14934. - $as_test_x conftest$ac_exeext; then
  14935. - lt_cv_cc_needs_belf=yes
  14936. -else
  14937. - echo "$as_me: failed program was:" >&5
  14938. -sed 's/^/| /' conftest.$ac_ext >&5
  14939. - lt_cv_cc_needs_belf=no
  14940. -fi
  14941. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14942. - conftest$ac_exeext conftest.$ac_ext
  14943. - ac_ext=c
  14944. -ac_cpp='$CPP $CPPFLAGS'
  14945. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14946. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14947. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14948. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  14949. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  14950. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  14951. + $as_echo_n "(cached) " >&6
  14952. +else
  14953. + lt_cv_ld_reload_flag='-r'
  14954. fi
  14955. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  14956. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  14957. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  14958. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  14959. - CFLAGS="$SAVE_CFLAGS"
  14960. - fi
  14961. - ;;
  14962. -sparc*-*solaris*)
  14963. - # Find out which ABI we are using.
  14964. - echo 'int i;' > conftest.$ac_ext
  14965. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14966. - (eval $ac_compile) 2>&5
  14967. - ac_status=$?
  14968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14969. - (exit $ac_status); }; then
  14970. - case `/usr/bin/file conftest.o` in
  14971. - *64-bit*)
  14972. - case $lt_cv_prog_gnu_ld in
  14973. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  14974. - *)
  14975. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  14976. - LD="${LD-ld} -64"
  14977. - fi
  14978. - ;;
  14979. - esac
  14980. - ;;
  14981. - esac
  14982. - fi
  14983. - rm -rf conftest*
  14984. - ;;
  14985. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  14986. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  14987. +reload_flag=$lt_cv_ld_reload_flag
  14988. +case $reload_flag in
  14989. +"" | " "*) ;;
  14990. +*) reload_flag=" $reload_flag" ;;
  14991. +esac
  14992. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14993. +case $host_os in
  14994. + darwin*)
  14995. + if test "$GCC" = yes; then
  14996. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  14997. + else
  14998. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14999. + fi
  15000. + ;;
  15001. +esac
  15002. -esac
  15003. -need_locks="$enable_libtool_lock"
  15004. -ac_ext=c
  15005. -ac_cpp='$CPP $CPPFLAGS'
  15006. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15007. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15008. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15009. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  15010. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  15011. -# On Suns, sometimes $CPP names a directory.
  15012. -if test -n "$CPP" && test -d "$CPP"; then
  15013. - CPP=
  15014. -fi
  15015. -if test -z "$CPP"; then
  15016. - if test "${ac_cv_prog_CPP+set}" = set; then
  15017. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15018. -else
  15019. - # Double quotes because CPP needs to be expanded
  15020. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15021. - do
  15022. - ac_preproc_ok=false
  15023. -for ac_c_preproc_warn_flag in '' yes
  15024. -do
  15025. - # Use a header file that comes with gcc, so configuring glibc
  15026. - # with a fresh cross-compiler works.
  15027. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15028. - # <limits.h> exists even on freestanding compilers.
  15029. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15030. - # not just through cpp. "Syntax error" is here to catch this case.
  15031. - cat >conftest.$ac_ext <<_ACEOF
  15032. -/* confdefs.h. */
  15033. -_ACEOF
  15034. -cat confdefs.h >>conftest.$ac_ext
  15035. -cat >>conftest.$ac_ext <<_ACEOF
  15036. -/* end confdefs.h. */
  15037. -#ifdef __STDC__
  15038. -# include <limits.h>
  15039. -#else
  15040. -# include <assert.h>
  15041. -#endif
  15042. - Syntax error
  15043. -_ACEOF
  15044. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15045. -case "(($ac_try" in
  15046. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15047. - *) ac_try_echo=$ac_try;;
  15048. -esac
  15049. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15050. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15051. - ac_status=$?
  15052. - grep -v '^ *+' conftest.er1 >conftest.err
  15053. - rm -f conftest.er1
  15054. - cat conftest.err >&5
  15055. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15056. - (exit $ac_status); } >/dev/null && {
  15057. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15058. - test ! -s conftest.err
  15059. - }; then
  15060. - :
  15061. -else
  15062. - echo "$as_me: failed program was:" >&5
  15063. -sed 's/^/| /' conftest.$ac_ext >&5
  15064. - # Broken: fails on valid input.
  15065. -continue
  15066. -fi
  15067. -rm -f conftest.err conftest.$ac_ext
  15068. - # OK, works on sane cases. Now check whether nonexistent headers
  15069. - # can be detected and how.
  15070. - cat >conftest.$ac_ext <<_ACEOF
  15071. -/* confdefs.h. */
  15072. -_ACEOF
  15073. -cat confdefs.h >>conftest.$ac_ext
  15074. -cat >>conftest.$ac_ext <<_ACEOF
  15075. -/* end confdefs.h. */
  15076. -#include <ac_nonexistent.h>
  15077. -_ACEOF
  15078. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15079. -case "(($ac_try" in
  15080. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15081. - *) ac_try_echo=$ac_try;;
  15082. -esac
  15083. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15084. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15085. - ac_status=$?
  15086. - grep -v '^ *+' conftest.er1 >conftest.err
  15087. - rm -f conftest.er1
  15088. - cat conftest.err >&5
  15089. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15090. - (exit $ac_status); } >/dev/null && {
  15091. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15092. - test ! -s conftest.err
  15093. - }; then
  15094. - # Broken: success on invalid input.
  15095. -continue
  15096. +
  15097. +if test -n "$ac_tool_prefix"; then
  15098. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  15099. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  15100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15101. +$as_echo_n "checking for $ac_word... " >&6; }
  15102. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  15103. + $as_echo_n "(cached) " >&6
  15104. else
  15105. - echo "$as_me: failed program was:" >&5
  15106. -sed 's/^/| /' conftest.$ac_ext >&5
  15107. + if test -n "$OBJDUMP"; then
  15108. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  15109. +else
  15110. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15111. +for as_dir in $PATH
  15112. +do
  15113. + IFS=$as_save_IFS
  15114. + test -z "$as_dir" && as_dir=.
  15115. + for ac_exec_ext in '' $ac_executable_extensions; do
  15116. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15117. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  15118. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15119. + break 2
  15120. + fi
  15121. +done
  15122. + done
  15123. +IFS=$as_save_IFS
  15124. - # Passes both tests.
  15125. -ac_preproc_ok=:
  15126. -break
  15127. fi
  15128. -
  15129. -rm -f conftest.err conftest.$ac_ext
  15130. -
  15131. -done
  15132. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15133. -rm -f conftest.err conftest.$ac_ext
  15134. -if $ac_preproc_ok; then
  15135. - break
  15136. +fi
  15137. +OBJDUMP=$ac_cv_prog_OBJDUMP
  15138. +if test -n "$OBJDUMP"; then
  15139. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  15140. +$as_echo "$OBJDUMP" >&6; }
  15141. +else
  15142. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15143. +$as_echo "no" >&6; }
  15144. fi
  15145. - done
  15146. - ac_cv_prog_CPP=$CPP
  15147. fi
  15148. - CPP=$ac_cv_prog_CPP
  15149. +if test -z "$ac_cv_prog_OBJDUMP"; then
  15150. + ac_ct_OBJDUMP=$OBJDUMP
  15151. + # Extract the first word of "objdump", so it can be a program name with args.
  15152. +set dummy objdump; ac_word=$2
  15153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15154. +$as_echo_n "checking for $ac_word... " >&6; }
  15155. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  15156. + $as_echo_n "(cached) " >&6
  15157. else
  15158. - ac_cv_prog_CPP=$CPP
  15159. -fi
  15160. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  15161. -echo "${ECHO_T}$CPP" >&6; }
  15162. -ac_preproc_ok=false
  15163. -for ac_c_preproc_warn_flag in '' yes
  15164. -do
  15165. - # Use a header file that comes with gcc, so configuring glibc
  15166. - # with a fresh cross-compiler works.
  15167. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15168. - # <limits.h> exists even on freestanding compilers.
  15169. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15170. - # not just through cpp. "Syntax error" is here to catch this case.
  15171. - cat >conftest.$ac_ext <<_ACEOF
  15172. -/* confdefs.h. */
  15173. -_ACEOF
  15174. -cat confdefs.h >>conftest.$ac_ext
  15175. -cat >>conftest.$ac_ext <<_ACEOF
  15176. -/* end confdefs.h. */
  15177. -#ifdef __STDC__
  15178. -# include <limits.h>
  15179. -#else
  15180. -# include <assert.h>
  15181. -#endif
  15182. - Syntax error
  15183. -_ACEOF
  15184. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15185. -case "(($ac_try" in
  15186. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15187. - *) ac_try_echo=$ac_try;;
  15188. -esac
  15189. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15190. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15191. - ac_status=$?
  15192. - grep -v '^ *+' conftest.er1 >conftest.err
  15193. - rm -f conftest.er1
  15194. - cat conftest.err >&5
  15195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15196. - (exit $ac_status); } >/dev/null && {
  15197. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15198. - test ! -s conftest.err
  15199. - }; then
  15200. - :
  15201. + if test -n "$ac_ct_OBJDUMP"; then
  15202. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  15203. else
  15204. - echo "$as_me: failed program was:" >&5
  15205. -sed 's/^/| /' conftest.$ac_ext >&5
  15206. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15207. +for as_dir in $PATH
  15208. +do
  15209. + IFS=$as_save_IFS
  15210. + test -z "$as_dir" && as_dir=.
  15211. + for ac_exec_ext in '' $ac_executable_extensions; do
  15212. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15213. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  15214. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15215. + break 2
  15216. + fi
  15217. +done
  15218. + done
  15219. +IFS=$as_save_IFS
  15220. - # Broken: fails on valid input.
  15221. -continue
  15222. fi
  15223. -
  15224. -rm -f conftest.err conftest.$ac_ext
  15225. -
  15226. - # OK, works on sane cases. Now check whether nonexistent headers
  15227. - # can be detected and how.
  15228. - cat >conftest.$ac_ext <<_ACEOF
  15229. -/* confdefs.h. */
  15230. -_ACEOF
  15231. -cat confdefs.h >>conftest.$ac_ext
  15232. -cat >>conftest.$ac_ext <<_ACEOF
  15233. -/* end confdefs.h. */
  15234. -#include <ac_nonexistent.h>
  15235. -_ACEOF
  15236. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15237. -case "(($ac_try" in
  15238. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15239. - *) ac_try_echo=$ac_try;;
  15240. -esac
  15241. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15242. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15243. - ac_status=$?
  15244. - grep -v '^ *+' conftest.er1 >conftest.err
  15245. - rm -f conftest.er1
  15246. - cat conftest.err >&5
  15247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15248. - (exit $ac_status); } >/dev/null && {
  15249. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15250. - test ! -s conftest.err
  15251. - }; then
  15252. - # Broken: success on invalid input.
  15253. -continue
  15254. +fi
  15255. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  15256. +if test -n "$ac_ct_OBJDUMP"; then
  15257. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  15258. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  15259. else
  15260. - echo "$as_me: failed program was:" >&5
  15261. -sed 's/^/| /' conftest.$ac_ext >&5
  15262. -
  15263. - # Passes both tests.
  15264. -ac_preproc_ok=:
  15265. -break
  15266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15267. +$as_echo "no" >&6; }
  15268. fi
  15269. -rm -f conftest.err conftest.$ac_ext
  15270. -
  15271. -done
  15272. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15273. -rm -f conftest.err conftest.$ac_ext
  15274. -if $ac_preproc_ok; then
  15275. - :
  15276. + if test "x$ac_ct_OBJDUMP" = x; then
  15277. + OBJDUMP="false"
  15278. + else
  15279. + case $cross_compiling:$ac_tool_warned in
  15280. +yes:)
  15281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15282. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15283. +ac_tool_warned=yes ;;
  15284. +esac
  15285. + OBJDUMP=$ac_ct_OBJDUMP
  15286. + fi
  15287. else
  15288. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  15289. -See \`config.log' for more details." >&5
  15290. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  15291. -See \`config.log' for more details." >&2;}
  15292. - { (exit 1); exit 1; }; }
  15293. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  15294. fi
  15295. -ac_ext=c
  15296. -ac_cpp='$CPP $CPPFLAGS'
  15297. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15298. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15299. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15300. -
  15301. -
  15302. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15303. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  15304. -if test "${ac_cv_header_stdc+set}" = set; then
  15305. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15306. -else
  15307. - cat >conftest.$ac_ext <<_ACEOF
  15308. -/* confdefs.h. */
  15309. -_ACEOF
  15310. -cat confdefs.h >>conftest.$ac_ext
  15311. -cat >>conftest.$ac_ext <<_ACEOF
  15312. -/* end confdefs.h. */
  15313. -#include <stdlib.h>
  15314. -#include <stdarg.h>
  15315. -#include <string.h>
  15316. -#include <float.h>
  15317. +test -z "$OBJDUMP" && OBJDUMP=objdump
  15318. -int
  15319. -main ()
  15320. -{
  15321. - ;
  15322. - return 0;
  15323. -}
  15324. -_ACEOF
  15325. -rm -f conftest.$ac_objext
  15326. -if { (ac_try="$ac_compile"
  15327. -case "(($ac_try" in
  15328. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15329. - *) ac_try_echo=$ac_try;;
  15330. -esac
  15331. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15332. - (eval "$ac_compile") 2>conftest.er1
  15333. - ac_status=$?
  15334. - grep -v '^ *+' conftest.er1 >conftest.err
  15335. - rm -f conftest.er1
  15336. - cat conftest.err >&5
  15337. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15338. - (exit $ac_status); } && {
  15339. - test -z "$ac_c_werror_flag" ||
  15340. - test ! -s conftest.err
  15341. - } && test -s conftest.$ac_objext; then
  15342. - ac_cv_header_stdc=yes
  15343. -else
  15344. - echo "$as_me: failed program was:" >&5
  15345. -sed 's/^/| /' conftest.$ac_ext >&5
  15346. - ac_cv_header_stdc=no
  15347. -fi
  15348. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15349. -if test $ac_cv_header_stdc = yes; then
  15350. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15351. - cat >conftest.$ac_ext <<_ACEOF
  15352. -/* confdefs.h. */
  15353. -_ACEOF
  15354. -cat confdefs.h >>conftest.$ac_ext
  15355. -cat >>conftest.$ac_ext <<_ACEOF
  15356. -/* end confdefs.h. */
  15357. -#include <string.h>
  15358. -_ACEOF
  15359. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15360. - $EGREP "memchr" >/dev/null 2>&1; then
  15361. - :
  15362. -else
  15363. - ac_cv_header_stdc=no
  15364. -fi
  15365. -rm -f conftest*
  15366. -fi
  15367. -if test $ac_cv_header_stdc = yes; then
  15368. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15369. - cat >conftest.$ac_ext <<_ACEOF
  15370. -/* confdefs.h. */
  15371. -_ACEOF
  15372. -cat confdefs.h >>conftest.$ac_ext
  15373. -cat >>conftest.$ac_ext <<_ACEOF
  15374. -/* end confdefs.h. */
  15375. -#include <stdlib.h>
  15376. -_ACEOF
  15377. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15378. - $EGREP "free" >/dev/null 2>&1; then
  15379. - :
  15380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  15381. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  15382. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  15383. + $as_echo_n "(cached) " >&6
  15384. else
  15385. - ac_cv_header_stdc=no
  15386. -fi
  15387. -rm -f conftest*
  15388. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  15389. +lt_cv_file_magic_test_file=
  15390. +lt_cv_deplibs_check_method='unknown'
  15391. +# Need to set the preceding variable on all platforms that support
  15392. +# interlibrary dependencies.
  15393. +# 'none' -- dependencies not supported.
  15394. +# `unknown' -- same as none, but documents that we really don't know.
  15395. +# 'pass_all' -- all dependencies passed with no checks.
  15396. +# 'test_compile' -- check by making test program.
  15397. +# 'file_magic [[regex]]' -- check by looking for files in library path
  15398. +# which responds to the $file_magic_cmd with a given extended regex.
  15399. +# If you have `file' or equivalent on your system and you're not sure
  15400. +# whether `pass_all' will *always* work, you probably want this one.
  15401. -fi
  15402. -
  15403. -if test $ac_cv_header_stdc = yes; then
  15404. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15405. - if test "$cross_compiling" = yes; then
  15406. - :
  15407. -else
  15408. - cat >conftest.$ac_ext <<_ACEOF
  15409. -/* confdefs.h. */
  15410. -_ACEOF
  15411. -cat confdefs.h >>conftest.$ac_ext
  15412. -cat >>conftest.$ac_ext <<_ACEOF
  15413. -/* end confdefs.h. */
  15414. -#include <ctype.h>
  15415. -#include <stdlib.h>
  15416. -#if ((' ' & 0x0FF) == 0x020)
  15417. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15418. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15419. -#else
  15420. -# define ISLOWER(c) \
  15421. - (('a' <= (c) && (c) <= 'i') \
  15422. - || ('j' <= (c) && (c) <= 'r') \
  15423. - || ('s' <= (c) && (c) <= 'z'))
  15424. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15425. -#endif
  15426. -
  15427. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15428. -int
  15429. -main ()
  15430. -{
  15431. - int i;
  15432. - for (i = 0; i < 256; i++)
  15433. - if (XOR (islower (i), ISLOWER (i))
  15434. - || toupper (i) != TOUPPER (i))
  15435. - return 2;
  15436. - return 0;
  15437. -}
  15438. -_ACEOF
  15439. -rm -f conftest$ac_exeext
  15440. -if { (ac_try="$ac_link"
  15441. -case "(($ac_try" in
  15442. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15443. - *) ac_try_echo=$ac_try;;
  15444. -esac
  15445. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15446. - (eval "$ac_link") 2>&5
  15447. - ac_status=$?
  15448. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15449. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15450. - { (case "(($ac_try" in
  15451. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15452. - *) ac_try_echo=$ac_try;;
  15453. -esac
  15454. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15455. - (eval "$ac_try") 2>&5
  15456. - ac_status=$?
  15457. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15458. - (exit $ac_status); }; }; then
  15459. - :
  15460. -else
  15461. - echo "$as_me: program exited with status $ac_status" >&5
  15462. -echo "$as_me: failed program was:" >&5
  15463. -sed 's/^/| /' conftest.$ac_ext >&5
  15464. -
  15465. -( exit $ac_status )
  15466. -ac_cv_header_stdc=no
  15467. -fi
  15468. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15469. -fi
  15470. +case $host_os in
  15471. +aix[4-9]*)
  15472. + lt_cv_deplibs_check_method=pass_all
  15473. + ;;
  15474. +beos*)
  15475. + lt_cv_deplibs_check_method=pass_all
  15476. + ;;
  15477. -fi
  15478. -fi
  15479. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15480. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  15481. -if test $ac_cv_header_stdc = yes; then
  15482. +bsdi[45]*)
  15483. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  15484. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  15485. + lt_cv_file_magic_test_file=/shlib/libc.so
  15486. + ;;
  15487. -cat >>confdefs.h <<\_ACEOF
  15488. -#define STDC_HEADERS 1
  15489. -_ACEOF
  15490. +cygwin*)
  15491. + # func_win32_libid is a shell function defined in ltmain.sh
  15492. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  15493. + lt_cv_file_magic_cmd='func_win32_libid'
  15494. + ;;
  15495. -fi
  15496. +mingw* | pw32*)
  15497. + # Base MSYS/MinGW do not provide the 'file' command needed by
  15498. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  15499. + # unless we find 'file', for example because we are cross-compiling.
  15500. + if ( file / ) >/dev/null 2>&1; then
  15501. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  15502. + lt_cv_file_magic_cmd='func_win32_libid'
  15503. + else
  15504. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  15505. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  15506. + fi
  15507. + ;;
  15508. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  15509. +cegcc)
  15510. + # use the weaker test based on 'objdump'. See mingw*.
  15511. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  15512. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  15513. + ;;
  15514. +darwin* | rhapsody*)
  15515. + lt_cv_deplibs_check_method=pass_all
  15516. + ;;
  15517. +freebsd* | dragonfly*)
  15518. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  15519. + case $host_cpu in
  15520. + i*86 )
  15521. + # Not sure whether the presence of OpenBSD here was a mistake.
  15522. + # Let's accept both of them until this is cleared up.
  15523. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  15524. + lt_cv_file_magic_cmd=/usr/bin/file
  15525. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  15526. + ;;
  15527. + esac
  15528. + else
  15529. + lt_cv_deplibs_check_method=pass_all
  15530. + fi
  15531. + ;;
  15532. +gnu*)
  15533. + lt_cv_deplibs_check_method=pass_all
  15534. + ;;
  15535. +hpux10.20* | hpux11*)
  15536. + lt_cv_file_magic_cmd=/usr/bin/file
  15537. + case $host_cpu in
  15538. + ia64*)
  15539. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  15540. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  15541. + ;;
  15542. + hppa*64*)
  15543. + 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]'
  15544. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  15545. + ;;
  15546. + *)
  15547. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  15548. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  15549. + ;;
  15550. + esac
  15551. + ;;
  15552. +interix[3-9]*)
  15553. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  15554. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  15555. + ;;
  15556. +irix5* | irix6* | nonstopux*)
  15557. + case $LD in
  15558. + *-32|*"-32 ") libmagic=32-bit;;
  15559. + *-n32|*"-n32 ") libmagic=N32;;
  15560. + *-64|*"-64 ") libmagic=64-bit;;
  15561. + *) libmagic=never-match;;
  15562. + esac
  15563. + lt_cv_deplibs_check_method=pass_all
  15564. + ;;
  15565. +# This must be Linux ELF.
  15566. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15567. + lt_cv_deplibs_check_method=pass_all
  15568. + ;;
  15569. +netbsd* | netbsdelf*-gnu)
  15570. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  15571. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  15572. + else
  15573. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  15574. + fi
  15575. + ;;
  15576. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  15577. - inttypes.h stdint.h unistd.h
  15578. -do
  15579. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15580. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15581. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15582. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15584. -else
  15585. - cat >conftest.$ac_ext <<_ACEOF
  15586. -/* confdefs.h. */
  15587. -_ACEOF
  15588. -cat confdefs.h >>conftest.$ac_ext
  15589. -cat >>conftest.$ac_ext <<_ACEOF
  15590. -/* end confdefs.h. */
  15591. -$ac_includes_default
  15592. +newos6*)
  15593. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  15594. + lt_cv_file_magic_cmd=/usr/bin/file
  15595. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  15596. + ;;
  15597. -#include <$ac_header>
  15598. -_ACEOF
  15599. -rm -f conftest.$ac_objext
  15600. -if { (ac_try="$ac_compile"
  15601. -case "(($ac_try" in
  15602. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15603. - *) ac_try_echo=$ac_try;;
  15604. -esac
  15605. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15606. - (eval "$ac_compile") 2>conftest.er1
  15607. - ac_status=$?
  15608. - grep -v '^ *+' conftest.er1 >conftest.err
  15609. - rm -f conftest.er1
  15610. - cat conftest.err >&5
  15611. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15612. - (exit $ac_status); } && {
  15613. - test -z "$ac_c_werror_flag" ||
  15614. - test ! -s conftest.err
  15615. - } && test -s conftest.$ac_objext; then
  15616. - eval "$as_ac_Header=yes"
  15617. -else
  15618. - echo "$as_me: failed program was:" >&5
  15619. -sed 's/^/| /' conftest.$ac_ext >&5
  15620. +*nto* | *qnx*)
  15621. + lt_cv_deplibs_check_method=pass_all
  15622. + ;;
  15623. - eval "$as_ac_Header=no"
  15624. -fi
  15625. +openbsd*)
  15626. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15627. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  15628. + else
  15629. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  15630. + fi
  15631. + ;;
  15632. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15633. -fi
  15634. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15635. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15636. -echo "${ECHO_T}$ac_res" >&6; }
  15637. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15638. - cat >>confdefs.h <<_ACEOF
  15639. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15640. -_ACEOF
  15641. +osf3* | osf4* | osf5*)
  15642. + lt_cv_deplibs_check_method=pass_all
  15643. + ;;
  15644. -fi
  15645. +rdos*)
  15646. + lt_cv_deplibs_check_method=pass_all
  15647. + ;;
  15648. -done
  15649. +solaris*)
  15650. + lt_cv_deplibs_check_method=pass_all
  15651. + ;;
  15652. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15653. + lt_cv_deplibs_check_method=pass_all
  15654. + ;;
  15655. +sysv4 | sysv4.3*)
  15656. + case $host_vendor in
  15657. + motorola)
  15658. + 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]'
  15659. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  15660. + ;;
  15661. + ncr)
  15662. + lt_cv_deplibs_check_method=pass_all
  15663. + ;;
  15664. + sequent)
  15665. + lt_cv_file_magic_cmd='/bin/file'
  15666. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  15667. + ;;
  15668. + sni)
  15669. + lt_cv_file_magic_cmd='/bin/file'
  15670. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  15671. + lt_cv_file_magic_test_file=/lib/libc.so
  15672. + ;;
  15673. + siemens)
  15674. + lt_cv_deplibs_check_method=pass_all
  15675. + ;;
  15676. + pc)
  15677. + lt_cv_deplibs_check_method=pass_all
  15678. + ;;
  15679. + esac
  15680. + ;;
  15681. -for ac_header in dlfcn.h
  15682. -do
  15683. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15684. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15685. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15686. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15687. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15688. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15689. -fi
  15690. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15691. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15692. -echo "${ECHO_T}$ac_res" >&6; }
  15693. -else
  15694. - # Is the header compilable?
  15695. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15696. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15697. -cat >conftest.$ac_ext <<_ACEOF
  15698. -/* confdefs.h. */
  15699. -_ACEOF
  15700. -cat confdefs.h >>conftest.$ac_ext
  15701. -cat >>conftest.$ac_ext <<_ACEOF
  15702. -/* end confdefs.h. */
  15703. -$ac_includes_default
  15704. -#include <$ac_header>
  15705. -_ACEOF
  15706. -rm -f conftest.$ac_objext
  15707. -if { (ac_try="$ac_compile"
  15708. -case "(($ac_try" in
  15709. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15710. - *) ac_try_echo=$ac_try;;
  15711. +tpf*)
  15712. + lt_cv_deplibs_check_method=pass_all
  15713. + ;;
  15714. esac
  15715. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15716. - (eval "$ac_compile") 2>conftest.er1
  15717. - ac_status=$?
  15718. - grep -v '^ *+' conftest.er1 >conftest.err
  15719. - rm -f conftest.er1
  15720. - cat conftest.err >&5
  15721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15722. - (exit $ac_status); } && {
  15723. - test -z "$ac_c_werror_flag" ||
  15724. - test ! -s conftest.err
  15725. - } && test -s conftest.$ac_objext; then
  15726. - ac_header_compiler=yes
  15727. -else
  15728. - echo "$as_me: failed program was:" >&5
  15729. -sed 's/^/| /' conftest.$ac_ext >&5
  15730. - ac_header_compiler=no
  15731. fi
  15732. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  15733. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  15734. +file_magic_cmd=$lt_cv_file_magic_cmd
  15735. +deplibs_check_method=$lt_cv_deplibs_check_method
  15736. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  15737. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15738. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15739. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  15740. -# Is the header present?
  15741. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15742. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15743. -cat >conftest.$ac_ext <<_ACEOF
  15744. -/* confdefs.h. */
  15745. -_ACEOF
  15746. -cat confdefs.h >>conftest.$ac_ext
  15747. -cat >>conftest.$ac_ext <<_ACEOF
  15748. -/* end confdefs.h. */
  15749. -#include <$ac_header>
  15750. -_ACEOF
  15751. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15752. -case "(($ac_try" in
  15753. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15754. - *) ac_try_echo=$ac_try;;
  15755. -esac
  15756. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15757. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15758. - ac_status=$?
  15759. - grep -v '^ *+' conftest.er1 >conftest.err
  15760. - rm -f conftest.er1
  15761. - cat conftest.err >&5
  15762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15763. - (exit $ac_status); } >/dev/null && {
  15764. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15765. - test ! -s conftest.err
  15766. - }; then
  15767. - ac_header_preproc=yes
  15768. -else
  15769. - echo "$as_me: failed program was:" >&5
  15770. -sed 's/^/| /' conftest.$ac_ext >&5
  15771. - ac_header_preproc=no
  15772. -fi
  15773. -rm -f conftest.err conftest.$ac_ext
  15774. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15775. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  15776. -# So? What about this header?
  15777. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15778. - yes:no: )
  15779. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15780. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15781. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15782. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15783. - ac_header_preproc=yes
  15784. - ;;
  15785. - no:yes:* )
  15786. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15787. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15788. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15789. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15790. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15791. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15792. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15793. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15794. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15795. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15796. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15797. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15798. - ;;
  15799. -esac
  15800. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15801. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15802. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15803. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15804. -else
  15805. - eval "$as_ac_Header=\$ac_header_preproc"
  15806. -fi
  15807. -ac_res=`eval echo '${'$as_ac_Header'}'`
  15808. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  15809. -echo "${ECHO_T}$ac_res" >&6; }
  15810. -fi
  15811. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15812. - cat >>confdefs.h <<_ACEOF
  15813. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15814. -_ACEOF
  15815. -fi
  15816. -done
  15817. -ac_ext=cpp
  15818. -ac_cpp='$CXXCPP $CPPFLAGS'
  15819. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15820. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15821. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15822. -if test -z "$CXX"; then
  15823. - if test -n "$CCC"; then
  15824. - CXX=$CCC
  15825. - else
  15826. - if test -n "$ac_tool_prefix"; then
  15827. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  15828. - do
  15829. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15830. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15831. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15832. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15833. -if test "${ac_cv_prog_CXX+set}" = set; then
  15834. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15835. +
  15836. +
  15837. +if test -n "$ac_tool_prefix"; then
  15838. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  15839. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  15840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15841. +$as_echo_n "checking for $ac_word... " >&6; }
  15842. +if test "${ac_cv_prog_AR+set}" = set; then :
  15843. + $as_echo_n "(cached) " >&6
  15844. else
  15845. - if test -n "$CXX"; then
  15846. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  15847. + if test -n "$AR"; then
  15848. + ac_cv_prog_AR="$AR" # Let the user override the test.
  15849. else
  15850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15851. for as_dir in $PATH
  15852. do
  15853. IFS=$as_save_IFS
  15854. test -z "$as_dir" && as_dir=.
  15855. - for ac_exec_ext in '' $ac_executable_extensions; do
  15856. + for ac_exec_ext in '' $ac_executable_extensions; do
  15857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15858. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  15859. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15860. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  15861. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15862. break 2
  15863. fi
  15864. done
  15865. -done
  15866. + done
  15867. IFS=$as_save_IFS
  15868. fi
  15869. fi
  15870. -CXX=$ac_cv_prog_CXX
  15871. -if test -n "$CXX"; then
  15872. - { echo "$as_me:$LINENO: result: $CXX" >&5
  15873. -echo "${ECHO_T}$CXX" >&6; }
  15874. +AR=$ac_cv_prog_AR
  15875. +if test -n "$AR"; then
  15876. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  15877. +$as_echo "$AR" >&6; }
  15878. else
  15879. - { echo "$as_me:$LINENO: result: no" >&5
  15880. -echo "${ECHO_T}no" >&6; }
  15881. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15882. +$as_echo "no" >&6; }
  15883. fi
  15884. - test -n "$CXX" && break
  15885. - done
  15886. fi
  15887. -if test -z "$CXX"; then
  15888. - ac_ct_CXX=$CXX
  15889. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  15890. -do
  15891. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  15892. -set dummy $ac_prog; ac_word=$2
  15893. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15894. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15895. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  15896. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15897. +if test -z "$ac_cv_prog_AR"; then
  15898. + ac_ct_AR=$AR
  15899. + # Extract the first word of "ar", so it can be a program name with args.
  15900. +set dummy ar; ac_word=$2
  15901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15902. +$as_echo_n "checking for $ac_word... " >&6; }
  15903. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  15904. + $as_echo_n "(cached) " >&6
  15905. else
  15906. - if test -n "$ac_ct_CXX"; then
  15907. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  15908. + if test -n "$ac_ct_AR"; then
  15909. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  15910. else
  15911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15912. for as_dir in $PATH
  15913. do
  15914. IFS=$as_save_IFS
  15915. test -z "$as_dir" && as_dir=.
  15916. - for ac_exec_ext in '' $ac_executable_extensions; do
  15917. + for ac_exec_ext in '' $ac_executable_extensions; do
  15918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15919. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  15920. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15921. + ac_cv_prog_ac_ct_AR="ar"
  15922. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15923. break 2
  15924. fi
  15925. done
  15926. -done
  15927. + done
  15928. IFS=$as_save_IFS
  15929. fi
  15930. fi
  15931. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  15932. -if test -n "$ac_ct_CXX"; then
  15933. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  15934. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  15935. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  15936. +if test -n "$ac_ct_AR"; then
  15937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  15938. +$as_echo "$ac_ct_AR" >&6; }
  15939. else
  15940. - { echo "$as_me:$LINENO: result: no" >&5
  15941. -echo "${ECHO_T}no" >&6; }
  15942. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15943. +$as_echo "no" >&6; }
  15944. fi
  15945. -
  15946. - test -n "$ac_ct_CXX" && break
  15947. -done
  15948. -
  15949. - if test "x$ac_ct_CXX" = x; then
  15950. - CXX="g++"
  15951. + if test "x$ac_ct_AR" = x; then
  15952. + AR="false"
  15953. else
  15954. case $cross_compiling:$ac_tool_warned in
  15955. yes:)
  15956. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15957. -whose name does not start with the host triplet. If you think this
  15958. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15959. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15960. -whose name does not start with the host triplet. If you think this
  15961. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15963. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15964. ac_tool_warned=yes ;;
  15965. esac
  15966. - CXX=$ac_ct_CXX
  15967. + AR=$ac_ct_AR
  15968. fi
  15969. +else
  15970. + AR="$ac_cv_prog_AR"
  15971. fi
  15972. - fi
  15973. -fi
  15974. -# Provide some information about the compiler.
  15975. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  15976. -ac_compiler=`set X $ac_compile; echo $2`
  15977. -{ (ac_try="$ac_compiler --version >&5"
  15978. -case "(($ac_try" in
  15979. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15980. - *) ac_try_echo=$ac_try;;
  15981. -esac
  15982. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15983. - (eval "$ac_compiler --version >&5") 2>&5
  15984. - ac_status=$?
  15985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15986. - (exit $ac_status); }
  15987. -{ (ac_try="$ac_compiler -v >&5"
  15988. -case "(($ac_try" in
  15989. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15990. - *) ac_try_echo=$ac_try;;
  15991. -esac
  15992. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15993. - (eval "$ac_compiler -v >&5") 2>&5
  15994. - ac_status=$?
  15995. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15996. - (exit $ac_status); }
  15997. -{ (ac_try="$ac_compiler -V >&5"
  15998. -case "(($ac_try" in
  15999. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16000. - *) ac_try_echo=$ac_try;;
  16001. -esac
  16002. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16003. - (eval "$ac_compiler -V >&5") 2>&5
  16004. - ac_status=$?
  16005. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16006. - (exit $ac_status); }
  16007. +test -z "$AR" && AR=ar
  16008. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  16009. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  16010. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  16011. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  16012. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16013. -else
  16014. - cat >conftest.$ac_ext <<_ACEOF
  16015. -/* confdefs.h. */
  16016. -_ACEOF
  16017. -cat confdefs.h >>conftest.$ac_ext
  16018. -cat >>conftest.$ac_ext <<_ACEOF
  16019. -/* end confdefs.h. */
  16020. -int
  16021. -main ()
  16022. -{
  16023. -#ifndef __GNUC__
  16024. - choke me
  16025. -#endif
  16026. - ;
  16027. - return 0;
  16028. -}
  16029. -_ACEOF
  16030. -rm -f conftest.$ac_objext
  16031. -if { (ac_try="$ac_compile"
  16032. -case "(($ac_try" in
  16033. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16034. - *) ac_try_echo=$ac_try;;
  16035. -esac
  16036. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16037. - (eval "$ac_compile") 2>conftest.er1
  16038. - ac_status=$?
  16039. - grep -v '^ *+' conftest.er1 >conftest.err
  16040. - rm -f conftest.er1
  16041. - cat conftest.err >&5
  16042. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16043. - (exit $ac_status); } && {
  16044. - test -z "$ac_cxx_werror_flag" ||
  16045. - test ! -s conftest.err
  16046. - } && test -s conftest.$ac_objext; then
  16047. - ac_compiler_gnu=yes
  16048. -else
  16049. - echo "$as_me: failed program was:" >&5
  16050. -sed 's/^/| /' conftest.$ac_ext >&5
  16051. - ac_compiler_gnu=no
  16052. -fi
  16053. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16054. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  16055. -fi
  16056. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  16057. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  16058. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  16059. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  16060. -ac_save_CXXFLAGS=$CXXFLAGS
  16061. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  16062. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  16063. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  16064. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16065. -else
  16066. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  16067. - ac_cxx_werror_flag=yes
  16068. - ac_cv_prog_cxx_g=no
  16069. - CXXFLAGS="-g"
  16070. - cat >conftest.$ac_ext <<_ACEOF
  16071. -/* confdefs.h. */
  16072. -_ACEOF
  16073. -cat confdefs.h >>conftest.$ac_ext
  16074. -cat >>conftest.$ac_ext <<_ACEOF
  16075. -/* end confdefs.h. */
  16076. -int
  16077. -main ()
  16078. -{
  16079. - ;
  16080. - return 0;
  16081. -}
  16082. -_ACEOF
  16083. -rm -f conftest.$ac_objext
  16084. -if { (ac_try="$ac_compile"
  16085. -case "(($ac_try" in
  16086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16087. - *) ac_try_echo=$ac_try;;
  16088. -esac
  16089. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16090. - (eval "$ac_compile") 2>conftest.er1
  16091. - ac_status=$?
  16092. - grep -v '^ *+' conftest.er1 >conftest.err
  16093. - rm -f conftest.er1
  16094. - cat conftest.err >&5
  16095. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16096. - (exit $ac_status); } && {
  16097. - test -z "$ac_cxx_werror_flag" ||
  16098. - test ! -s conftest.err
  16099. - } && test -s conftest.$ac_objext; then
  16100. - ac_cv_prog_cxx_g=yes
  16101. -else
  16102. - echo "$as_me: failed program was:" >&5
  16103. -sed 's/^/| /' conftest.$ac_ext >&5
  16104. - CXXFLAGS=""
  16105. - cat >conftest.$ac_ext <<_ACEOF
  16106. -/* confdefs.h. */
  16107. -_ACEOF
  16108. -cat confdefs.h >>conftest.$ac_ext
  16109. -cat >>conftest.$ac_ext <<_ACEOF
  16110. -/* end confdefs.h. */
  16111. -int
  16112. -main ()
  16113. -{
  16114. - ;
  16115. - return 0;
  16116. -}
  16117. -_ACEOF
  16118. -rm -f conftest.$ac_objext
  16119. -if { (ac_try="$ac_compile"
  16120. -case "(($ac_try" in
  16121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16122. - *) ac_try_echo=$ac_try;;
  16123. -esac
  16124. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16125. - (eval "$ac_compile") 2>conftest.er1
  16126. - ac_status=$?
  16127. - grep -v '^ *+' conftest.er1 >conftest.err
  16128. - rm -f conftest.er1
  16129. - cat conftest.err >&5
  16130. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. - (exit $ac_status); } && {
  16132. - test -z "$ac_cxx_werror_flag" ||
  16133. - test ! -s conftest.err
  16134. - } && test -s conftest.$ac_objext; then
  16135. - :
  16136. +if test -n "$ac_tool_prefix"; then
  16137. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16138. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  16139. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16140. +$as_echo_n "checking for $ac_word... " >&6; }
  16141. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  16142. + $as_echo_n "(cached) " >&6
  16143. else
  16144. - echo "$as_me: failed program was:" >&5
  16145. -sed 's/^/| /' conftest.$ac_ext >&5
  16146. -
  16147. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  16148. - CXXFLAGS="-g"
  16149. - cat >conftest.$ac_ext <<_ACEOF
  16150. -/* confdefs.h. */
  16151. -_ACEOF
  16152. -cat confdefs.h >>conftest.$ac_ext
  16153. -cat >>conftest.$ac_ext <<_ACEOF
  16154. -/* end confdefs.h. */
  16155. -
  16156. -int
  16157. -main ()
  16158. -{
  16159. + if test -n "$STRIP"; then
  16160. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16161. +else
  16162. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16163. +for as_dir in $PATH
  16164. +do
  16165. + IFS=$as_save_IFS
  16166. + test -z "$as_dir" && as_dir=.
  16167. + for ac_exec_ext in '' $ac_executable_extensions; do
  16168. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16169. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16170. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16171. + break 2
  16172. + fi
  16173. +done
  16174. + done
  16175. +IFS=$as_save_IFS
  16176. - ;
  16177. - return 0;
  16178. -}
  16179. -_ACEOF
  16180. -rm -f conftest.$ac_objext
  16181. -if { (ac_try="$ac_compile"
  16182. -case "(($ac_try" in
  16183. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16184. - *) ac_try_echo=$ac_try;;
  16185. -esac
  16186. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16187. - (eval "$ac_compile") 2>conftest.er1
  16188. - ac_status=$?
  16189. - grep -v '^ *+' conftest.er1 >conftest.err
  16190. - rm -f conftest.er1
  16191. - cat conftest.err >&5
  16192. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16193. - (exit $ac_status); } && {
  16194. - test -z "$ac_cxx_werror_flag" ||
  16195. - test ! -s conftest.err
  16196. - } && test -s conftest.$ac_objext; then
  16197. - ac_cv_prog_cxx_g=yes
  16198. +fi
  16199. +fi
  16200. +STRIP=$ac_cv_prog_STRIP
  16201. +if test -n "$STRIP"; then
  16202. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  16203. +$as_echo "$STRIP" >&6; }
  16204. else
  16205. - echo "$as_me: failed program was:" >&5
  16206. -sed 's/^/| /' conftest.$ac_ext >&5
  16207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16208. +$as_echo "no" >&6; }
  16209. +fi
  16210. fi
  16211. +if test -z "$ac_cv_prog_STRIP"; then
  16212. + ac_ct_STRIP=$STRIP
  16213. + # Extract the first word of "strip", so it can be a program name with args.
  16214. +set dummy strip; ac_word=$2
  16215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16216. +$as_echo_n "checking for $ac_word... " >&6; }
  16217. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  16218. + $as_echo_n "(cached) " >&6
  16219. +else
  16220. + if test -n "$ac_ct_STRIP"; then
  16221. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16222. +else
  16223. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16224. +for as_dir in $PATH
  16225. +do
  16226. + IFS=$as_save_IFS
  16227. + test -z "$as_dir" && as_dir=.
  16228. + for ac_exec_ext in '' $ac_executable_extensions; do
  16229. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16230. + ac_cv_prog_ac_ct_STRIP="strip"
  16231. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16232. + break 2
  16233. + fi
  16234. +done
  16235. + done
  16236. +IFS=$as_save_IFS
  16237. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16238. fi
  16239. -
  16240. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16241. fi
  16242. -
  16243. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16244. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  16245. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16246. +if test -n "$ac_ct_STRIP"; then
  16247. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  16248. +$as_echo "$ac_ct_STRIP" >&6; }
  16249. +else
  16250. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16251. +$as_echo "no" >&6; }
  16252. fi
  16253. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  16254. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  16255. -if test "$ac_test_CXXFLAGS" = set; then
  16256. - CXXFLAGS=$ac_save_CXXFLAGS
  16257. -elif test $ac_cv_prog_cxx_g = yes; then
  16258. - if test "$GXX" = yes; then
  16259. - CXXFLAGS="-g -O2"
  16260. +
  16261. + if test "x$ac_ct_STRIP" = x; then
  16262. + STRIP=":"
  16263. else
  16264. - CXXFLAGS="-g"
  16265. + case $cross_compiling:$ac_tool_warned in
  16266. +yes:)
  16267. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16268. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16269. +ac_tool_warned=yes ;;
  16270. +esac
  16271. + STRIP=$ac_ct_STRIP
  16272. fi
  16273. else
  16274. - if test "$GXX" = yes; then
  16275. - CXXFLAGS="-O2"
  16276. - else
  16277. - CXXFLAGS=
  16278. - fi
  16279. + STRIP="$ac_cv_prog_STRIP"
  16280. fi
  16281. -ac_ext=cpp
  16282. -ac_cpp='$CXXCPP $CPPFLAGS'
  16283. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16284. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16285. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16286. -depcc="$CXX" am_compiler_list=
  16287. +test -z "$STRIP" && STRIP=:
  16288. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16289. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  16290. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  16291. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16292. -else
  16293. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16294. - # We make a subdir and do the tests there. Otherwise we can end up
  16295. - # making bogus files that we don't know about and never remove. For
  16296. - # instance it was reported that on HP-UX the gcc test will end up
  16297. - # making a dummy file named `D' -- because `-MD' means `put the output
  16298. - # in D'.
  16299. - mkdir conftest.dir
  16300. - # Copy depcomp to subdir because otherwise we won't find it if we're
  16301. - # using a relative directory.
  16302. - cp "$am_depcomp" conftest.dir
  16303. - cd conftest.dir
  16304. - # We will build objects and dependencies in a subdirectory because
  16305. - # it helps to detect inapplicable dependency modes. For instance
  16306. - # both Tru64's cc and ICC support -MD to output dependencies as a
  16307. - # side effect of compilation, but ICC will put the dependencies in
  16308. - # the current directory while Tru64 will put them in the object
  16309. - # directory.
  16310. - mkdir sub
  16311. - am_cv_CXX_dependencies_compiler_type=none
  16312. - if test "$am_compiler_list" = ""; then
  16313. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16314. - fi
  16315. - for depmode in $am_compiler_list; do
  16316. - # Setup a source with many dependencies, because some compilers
  16317. - # like to wrap large dependency lists on column 80 (with \), and
  16318. - # we should not choose a depcomp mode which is confused by this.
  16319. - #
  16320. - # We need to recreate these files for each test, as the compiler may
  16321. - # overwrite some of them when testing with obscure command lines.
  16322. - # This happens at least with the AIX C compiler.
  16323. - : > sub/conftest.c
  16324. - for i in 1 2 3 4 5 6; do
  16325. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16326. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16327. - # Solaris 8's {/usr,}/bin/sh.
  16328. - touch sub/conftst$i.h
  16329. - done
  16330. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16331. - case $depmode in
  16332. - nosideeffect)
  16333. - # after this tag, mechanisms are not by side-effect, so they'll
  16334. - # only be used when explicitly requested
  16335. - if test "x$enable_dependency_tracking" = xyes; then
  16336. - continue
  16337. - else
  16338. - break
  16339. - fi
  16340. - ;;
  16341. - none) break ;;
  16342. - esac
  16343. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16344. - # mode. It turns out that the SunPro C++ compiler does not properly
  16345. - # handle `-M -o', and we need to detect this.
  16346. - if depmode=$depmode \
  16347. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16348. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16349. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16350. - >/dev/null 2>conftest.err &&
  16351. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16352. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16353. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16354. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16355. - # icc doesn't choke on unknown options, it will just issue warnings
  16356. - # or remarks (even with -Werror). So we grep stderr for any message
  16357. - # that says an option was ignored or not supported.
  16358. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  16359. - # icc: Command line warning: ignoring option '-M'; no argument required
  16360. - # The diagnosis changed in icc 8.0:
  16361. - # icc: Command line remark: option '-MP' not supported
  16362. - if (grep 'ignoring option' conftest.err ||
  16363. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16364. - am_cv_CXX_dependencies_compiler_type=$depmode
  16365. - break
  16366. - fi
  16367. - fi
  16368. - done
  16369. -
  16370. - cd ..
  16371. - rm -rf conftest.dir
  16372. -else
  16373. - am_cv_CXX_dependencies_compiler_type=none
  16374. -fi
  16375. -
  16376. -fi
  16377. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  16378. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  16379. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  16380. -
  16381. - if
  16382. - test "x$enable_dependency_tracking" != xno \
  16383. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  16384. - am__fastdepCXX_TRUE=
  16385. - am__fastdepCXX_FALSE='#'
  16386. -else
  16387. - am__fastdepCXX_TRUE='#'
  16388. - am__fastdepCXX_FALSE=
  16389. -fi
  16390. -
  16391. -
  16392. -
  16393. -
  16394. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  16395. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  16396. - (test "X$CXX" != "Xg++"))) ; then
  16397. - ac_ext=cpp
  16398. -ac_cpp='$CXXCPP $CPPFLAGS'
  16399. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16400. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16401. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16402. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  16403. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  16404. -if test -z "$CXXCPP"; then
  16405. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  16406. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16407. -else
  16408. - # Double quotes because CXXCPP needs to be expanded
  16409. - for CXXCPP in "$CXX -E" "/lib/cpp"
  16410. - do
  16411. - ac_preproc_ok=false
  16412. -for ac_cxx_preproc_warn_flag in '' yes
  16413. -do
  16414. - # Use a header file that comes with gcc, so configuring glibc
  16415. - # with a fresh cross-compiler works.
  16416. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16417. - # <limits.h> exists even on freestanding compilers.
  16418. - # On the NeXT, cc -E runs the code through the compiler's parser,
  16419. - # not just through cpp. "Syntax error" is here to catch this case.
  16420. - cat >conftest.$ac_ext <<_ACEOF
  16421. -/* confdefs.h. */
  16422. -_ACEOF
  16423. -cat confdefs.h >>conftest.$ac_ext
  16424. -cat >>conftest.$ac_ext <<_ACEOF
  16425. -/* end confdefs.h. */
  16426. -#ifdef __STDC__
  16427. -# include <limits.h>
  16428. -#else
  16429. -# include <assert.h>
  16430. -#endif
  16431. - Syntax error
  16432. -_ACEOF
  16433. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16434. -case "(($ac_try" in
  16435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16436. - *) ac_try_echo=$ac_try;;
  16437. -esac
  16438. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16439. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16440. - ac_status=$?
  16441. - grep -v '^ *+' conftest.er1 >conftest.err
  16442. - rm -f conftest.er1
  16443. - cat conftest.err >&5
  16444. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16445. - (exit $ac_status); } >/dev/null && {
  16446. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16447. - test ! -s conftest.err
  16448. - }; then
  16449. - :
  16450. -else
  16451. - echo "$as_me: failed program was:" >&5
  16452. -sed 's/^/| /' conftest.$ac_ext >&5
  16453. -
  16454. - # Broken: fails on valid input.
  16455. -continue
  16456. -fi
  16457. -
  16458. -rm -f conftest.err conftest.$ac_ext
  16459. -
  16460. - # OK, works on sane cases. Now check whether nonexistent headers
  16461. - # can be detected and how.
  16462. - cat >conftest.$ac_ext <<_ACEOF
  16463. -/* confdefs.h. */
  16464. -_ACEOF
  16465. -cat confdefs.h >>conftest.$ac_ext
  16466. -cat >>conftest.$ac_ext <<_ACEOF
  16467. -/* end confdefs.h. */
  16468. -#include <ac_nonexistent.h>
  16469. -_ACEOF
  16470. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16471. -case "(($ac_try" in
  16472. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16473. - *) ac_try_echo=$ac_try;;
  16474. -esac
  16475. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16476. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16477. - ac_status=$?
  16478. - grep -v '^ *+' conftest.er1 >conftest.err
  16479. - rm -f conftest.er1
  16480. - cat conftest.err >&5
  16481. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16482. - (exit $ac_status); } >/dev/null && {
  16483. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16484. - test ! -s conftest.err
  16485. - }; then
  16486. - # Broken: success on invalid input.
  16487. -continue
  16488. -else
  16489. - echo "$as_me: failed program was:" >&5
  16490. -sed 's/^/| /' conftest.$ac_ext >&5
  16491. -
  16492. - # Passes both tests.
  16493. -ac_preproc_ok=:
  16494. -break
  16495. -fi
  16496. -
  16497. -rm -f conftest.err conftest.$ac_ext
  16498. -
  16499. -done
  16500. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16501. -rm -f conftest.err conftest.$ac_ext
  16502. -if $ac_preproc_ok; then
  16503. - break
  16504. -fi
  16505. -
  16506. - done
  16507. - ac_cv_prog_CXXCPP=$CXXCPP
  16508. -
  16509. -fi
  16510. - CXXCPP=$ac_cv_prog_CXXCPP
  16511. -else
  16512. - ac_cv_prog_CXXCPP=$CXXCPP
  16513. -fi
  16514. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  16515. -echo "${ECHO_T}$CXXCPP" >&6; }
  16516. -ac_preproc_ok=false
  16517. -for ac_cxx_preproc_warn_flag in '' yes
  16518. -do
  16519. - # Use a header file that comes with gcc, so configuring glibc
  16520. - # with a fresh cross-compiler works.
  16521. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16522. - # <limits.h> exists even on freestanding compilers.
  16523. - # On the NeXT, cc -E runs the code through the compiler's parser,
  16524. - # not just through cpp. "Syntax error" is here to catch this case.
  16525. - cat >conftest.$ac_ext <<_ACEOF
  16526. -/* confdefs.h. */
  16527. -_ACEOF
  16528. -cat confdefs.h >>conftest.$ac_ext
  16529. -cat >>conftest.$ac_ext <<_ACEOF
  16530. -/* end confdefs.h. */
  16531. -#ifdef __STDC__
  16532. -# include <limits.h>
  16533. -#else
  16534. -# include <assert.h>
  16535. -#endif
  16536. - Syntax error
  16537. -_ACEOF
  16538. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16539. -case "(($ac_try" in
  16540. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16541. - *) ac_try_echo=$ac_try;;
  16542. -esac
  16543. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16544. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16545. - ac_status=$?
  16546. - grep -v '^ *+' conftest.er1 >conftest.err
  16547. - rm -f conftest.er1
  16548. - cat conftest.err >&5
  16549. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16550. - (exit $ac_status); } >/dev/null && {
  16551. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16552. - test ! -s conftest.err
  16553. - }; then
  16554. - :
  16555. -else
  16556. - echo "$as_me: failed program was:" >&5
  16557. -sed 's/^/| /' conftest.$ac_ext >&5
  16558. -
  16559. - # Broken: fails on valid input.
  16560. -continue
  16561. -fi
  16562. -
  16563. -rm -f conftest.err conftest.$ac_ext
  16564. -
  16565. - # OK, works on sane cases. Now check whether nonexistent headers
  16566. - # can be detected and how.
  16567. - cat >conftest.$ac_ext <<_ACEOF
  16568. -/* confdefs.h. */
  16569. -_ACEOF
  16570. -cat confdefs.h >>conftest.$ac_ext
  16571. -cat >>conftest.$ac_ext <<_ACEOF
  16572. -/* end confdefs.h. */
  16573. -#include <ac_nonexistent.h>
  16574. -_ACEOF
  16575. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  16576. -case "(($ac_try" in
  16577. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16578. - *) ac_try_echo=$ac_try;;
  16579. -esac
  16580. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16581. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16582. - ac_status=$?
  16583. - grep -v '^ *+' conftest.er1 >conftest.err
  16584. - rm -f conftest.er1
  16585. - cat conftest.err >&5
  16586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16587. - (exit $ac_status); } >/dev/null && {
  16588. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16589. - test ! -s conftest.err
  16590. - }; then
  16591. - # Broken: success on invalid input.
  16592. -continue
  16593. -else
  16594. - echo "$as_me: failed program was:" >&5
  16595. -sed 's/^/| /' conftest.$ac_ext >&5
  16596. -
  16597. - # Passes both tests.
  16598. -ac_preproc_ok=:
  16599. -break
  16600. -fi
  16601. -
  16602. -rm -f conftest.err conftest.$ac_ext
  16603. -
  16604. -done
  16605. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16606. -rm -f conftest.err conftest.$ac_ext
  16607. -if $ac_preproc_ok; then
  16608. - :
  16609. -else
  16610. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  16611. -See \`config.log' for more details." >&5
  16612. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  16613. -See \`config.log' for more details." >&2;}
  16614. - { (exit 1); exit 1; }; }
  16615. -fi
  16616. -
  16617. -ac_ext=cpp
  16618. -ac_cpp='$CXXCPP $CPPFLAGS'
  16619. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16620. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16621. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16622. -fi
  16623. -ac_ext=f
  16624. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  16625. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16626. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  16627. if test -n "$ac_tool_prefix"; then
  16628. - 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
  16629. - do
  16630. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16631. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16632. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16633. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16634. -if test "${ac_cv_prog_F77+set}" = set; then
  16635. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16636. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16637. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16639. +$as_echo_n "checking for $ac_word... " >&6; }
  16640. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  16641. + $as_echo_n "(cached) " >&6
  16642. else
  16643. - if test -n "$F77"; then
  16644. - ac_cv_prog_F77="$F77" # Let the user override the test.
  16645. + if test -n "$RANLIB"; then
  16646. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16647. else
  16648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16649. for as_dir in $PATH
  16650. do
  16651. IFS=$as_save_IFS
  16652. test -z "$as_dir" && as_dir=.
  16653. - for ac_exec_ext in '' $ac_executable_extensions; do
  16654. + for ac_exec_ext in '' $ac_executable_extensions; do
  16655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16656. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  16657. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16658. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16659. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16660. break 2
  16661. fi
  16662. done
  16663. -done
  16664. + done
  16665. IFS=$as_save_IFS
  16666. fi
  16667. fi
  16668. -F77=$ac_cv_prog_F77
  16669. -if test -n "$F77"; then
  16670. - { echo "$as_me:$LINENO: result: $F77" >&5
  16671. -echo "${ECHO_T}$F77" >&6; }
  16672. +RANLIB=$ac_cv_prog_RANLIB
  16673. +if test -n "$RANLIB"; then
  16674. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  16675. +$as_echo "$RANLIB" >&6; }
  16676. else
  16677. - { echo "$as_me:$LINENO: result: no" >&5
  16678. -echo "${ECHO_T}no" >&6; }
  16679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16680. +$as_echo "no" >&6; }
  16681. fi
  16682. - test -n "$F77" && break
  16683. - done
  16684. fi
  16685. -if test -z "$F77"; then
  16686. - ac_ct_F77=$F77
  16687. - 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
  16688. -do
  16689. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  16690. -set dummy $ac_prog; ac_word=$2
  16691. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16692. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16693. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  16694. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16695. +if test -z "$ac_cv_prog_RANLIB"; then
  16696. + ac_ct_RANLIB=$RANLIB
  16697. + # Extract the first word of "ranlib", so it can be a program name with args.
  16698. +set dummy ranlib; ac_word=$2
  16699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16700. +$as_echo_n "checking for $ac_word... " >&6; }
  16701. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  16702. + $as_echo_n "(cached) " >&6
  16703. else
  16704. - if test -n "$ac_ct_F77"; then
  16705. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  16706. + if test -n "$ac_ct_RANLIB"; then
  16707. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16708. else
  16709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16710. for as_dir in $PATH
  16711. do
  16712. IFS=$as_save_IFS
  16713. test -z "$as_dir" && as_dir=.
  16714. - for ac_exec_ext in '' $ac_executable_extensions; do
  16715. + for ac_exec_ext in '' $ac_executable_extensions; do
  16716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16717. - ac_cv_prog_ac_ct_F77="$ac_prog"
  16718. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16719. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  16720. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16721. break 2
  16722. fi
  16723. done
  16724. -done
  16725. + done
  16726. IFS=$as_save_IFS
  16727. fi
  16728. fi
  16729. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  16730. -if test -n "$ac_ct_F77"; then
  16731. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  16732. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  16733. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16734. +if test -n "$ac_ct_RANLIB"; then
  16735. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  16736. +$as_echo "$ac_ct_RANLIB" >&6; }
  16737. else
  16738. - { echo "$as_me:$LINENO: result: no" >&5
  16739. -echo "${ECHO_T}no" >&6; }
  16740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16741. +$as_echo "no" >&6; }
  16742. fi
  16743. -
  16744. - test -n "$ac_ct_F77" && break
  16745. -done
  16746. -
  16747. - if test "x$ac_ct_F77" = x; then
  16748. - F77=""
  16749. + if test "x$ac_ct_RANLIB" = x; then
  16750. + RANLIB=":"
  16751. else
  16752. case $cross_compiling:$ac_tool_warned in
  16753. yes:)
  16754. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16755. -whose name does not start with the host triplet. If you think this
  16756. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16757. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16758. -whose name does not start with the host triplet. If you think this
  16759. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16760. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16761. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16762. ac_tool_warned=yes ;;
  16763. esac
  16764. - F77=$ac_ct_F77
  16765. + RANLIB=$ac_ct_RANLIB
  16766. fi
  16767. +else
  16768. + RANLIB="$ac_cv_prog_RANLIB"
  16769. fi
  16770. +test -z "$RANLIB" && RANLIB=:
  16771. -# Provide some information about the compiler.
  16772. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  16773. -ac_compiler=`set X $ac_compile; echo $2`
  16774. -{ (ac_try="$ac_compiler --version >&5"
  16775. -case "(($ac_try" in
  16776. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16777. - *) ac_try_echo=$ac_try;;
  16778. -esac
  16779. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16780. - (eval "$ac_compiler --version >&5") 2>&5
  16781. - ac_status=$?
  16782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16783. - (exit $ac_status); }
  16784. -{ (ac_try="$ac_compiler -v >&5"
  16785. -case "(($ac_try" in
  16786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16787. - *) ac_try_echo=$ac_try;;
  16788. -esac
  16789. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16790. - (eval "$ac_compiler -v >&5") 2>&5
  16791. - ac_status=$?
  16792. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16793. - (exit $ac_status); }
  16794. -{ (ac_try="$ac_compiler -V >&5"
  16795. -case "(($ac_try" in
  16796. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16797. - *) ac_try_echo=$ac_try;;
  16798. -esac
  16799. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16800. - (eval "$ac_compiler -V >&5") 2>&5
  16801. - ac_status=$?
  16802. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16803. - (exit $ac_status); }
  16804. -rm -f a.out
  16805. -
  16806. -# If we don't use `.F' as extension, the preprocessor is not run on the
  16807. -# input file. (Note that this only needs to work for GNU compilers.)
  16808. -ac_save_ext=$ac_ext
  16809. -ac_ext=F
  16810. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  16811. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  16812. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  16813. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16814. -else
  16815. - cat >conftest.$ac_ext <<_ACEOF
  16816. - program main
  16817. -#ifndef __GNUC__
  16818. - choke me
  16819. -#endif
  16820. - end
  16821. -_ACEOF
  16822. -rm -f conftest.$ac_objext
  16823. -if { (ac_try="$ac_compile"
  16824. -case "(($ac_try" in
  16825. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16826. - *) ac_try_echo=$ac_try;;
  16827. -esac
  16828. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16829. - (eval "$ac_compile") 2>conftest.er1
  16830. - ac_status=$?
  16831. - grep -v '^ *+' conftest.er1 >conftest.err
  16832. - rm -f conftest.er1
  16833. - cat conftest.err >&5
  16834. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16835. - (exit $ac_status); } && {
  16836. - test -z "$ac_f77_werror_flag" ||
  16837. - test ! -s conftest.err
  16838. - } && test -s conftest.$ac_objext; then
  16839. - ac_compiler_gnu=yes
  16840. -else
  16841. - echo "$as_me: failed program was:" >&5
  16842. -sed 's/^/| /' conftest.$ac_ext >&5
  16843. - ac_compiler_gnu=no
  16844. -fi
  16845. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16846. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  16847. -fi
  16848. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  16849. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  16850. -ac_ext=$ac_save_ext
  16851. -ac_test_FFLAGS=${FFLAGS+set}
  16852. -ac_save_FFLAGS=$FFLAGS
  16853. -FFLAGS=
  16854. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  16855. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  16856. -if test "${ac_cv_prog_f77_g+set}" = set; then
  16857. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16858. -else
  16859. - FFLAGS=-g
  16860. -cat >conftest.$ac_ext <<_ACEOF
  16861. - program main
  16862. - end
  16863. -_ACEOF
  16864. -rm -f conftest.$ac_objext
  16865. -if { (ac_try="$ac_compile"
  16866. -case "(($ac_try" in
  16867. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16868. - *) ac_try_echo=$ac_try;;
  16869. -esac
  16870. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16871. - (eval "$ac_compile") 2>conftest.er1
  16872. - ac_status=$?
  16873. - grep -v '^ *+' conftest.er1 >conftest.err
  16874. - rm -f conftest.er1
  16875. - cat conftest.err >&5
  16876. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16877. - (exit $ac_status); } && {
  16878. - test -z "$ac_f77_werror_flag" ||
  16879. - test ! -s conftest.err
  16880. - } && test -s conftest.$ac_objext; then
  16881. - ac_cv_prog_f77_g=yes
  16882. -else
  16883. - echo "$as_me: failed program was:" >&5
  16884. -sed 's/^/| /' conftest.$ac_ext >&5
  16885. +# Determine commands to create old-style static archives.
  16886. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  16887. +old_postinstall_cmds='chmod 644 $oldlib'
  16888. +old_postuninstall_cmds=
  16889. - ac_cv_prog_f77_g=no
  16890. +if test -n "$RANLIB"; then
  16891. + case $host_os in
  16892. + openbsd*)
  16893. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  16894. + ;;
  16895. + *)
  16896. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  16897. + ;;
  16898. + esac
  16899. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  16900. fi
  16901. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16902. -fi
  16903. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  16904. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  16905. -if test "$ac_test_FFLAGS" = set; then
  16906. - FFLAGS=$ac_save_FFLAGS
  16907. -elif test $ac_cv_prog_f77_g = yes; then
  16908. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  16909. - FFLAGS="-g -O2"
  16910. - else
  16911. - FFLAGS="-g"
  16912. - fi
  16913. -else
  16914. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  16915. - FFLAGS="-O2"
  16916. - else
  16917. - FFLAGS=
  16918. - fi
  16919. -fi
  16920. -G77=`test $ac_compiler_gnu = yes && echo yes`
  16921. -ac_ext=c
  16922. -ac_cpp='$CPP $CPPFLAGS'
  16923. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16924. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16925. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16926. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  16927. -# find the maximum length of command line arguments
  16928. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  16929. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  16930. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  16931. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16932. -else
  16933. - i=0
  16934. - teststring="ABCD"
  16935. - case $build_os in
  16936. - msdosdjgpp*)
  16937. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  16938. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  16939. - # during glob expansion). Even if it were fixed, the result of this
  16940. - # check would be larger than it should be.
  16941. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  16942. - ;;
  16943. - gnu*)
  16944. - # Under GNU Hurd, this test is not required because there is
  16945. - # no limit to the length of command line arguments.
  16946. - # Libtool will interpret -1 as no limit whatsoever
  16947. - lt_cv_sys_max_cmd_len=-1;
  16948. - ;;
  16949. - cygwin* | mingw*)
  16950. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  16951. - # about 5 minutes as the teststring grows exponentially.
  16952. - # Worse, since 9x/ME are not pre-emptively multitasking,
  16953. - # you end up with a "frozen" computer, even though with patience
  16954. - # the test eventually succeeds (with a max line length of 256k).
  16955. - # Instead, let's just punt: use the minimum linelength reported by
  16956. - # all of the supported platforms: 8192 (on NT/2K/XP).
  16957. - lt_cv_sys_max_cmd_len=8192;
  16958. - ;;
  16959. - amigaos*)
  16960. - # On AmigaOS with pdksh, this test takes hours, literally.
  16961. - # So we just punt and use a minimum line length of 8192.
  16962. - lt_cv_sys_max_cmd_len=8192;
  16963. - ;;
  16964. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  16965. - # This has been around since 386BSD, at least. Likely further.
  16966. - if test -x /sbin/sysctl; then
  16967. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  16968. - elif test -x /usr/sbin/sysctl; then
  16969. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  16970. - else
  16971. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  16972. - fi
  16973. - # And add a safety zone
  16974. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  16975. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  16976. - ;;
  16977. - interix*)
  16978. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  16979. - lt_cv_sys_max_cmd_len=196608
  16980. - ;;
  16981. - osf*)
  16982. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  16983. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  16984. - # nice to cause kernel panics so lets avoid the loop below.
  16985. - # First set a reasonable default.
  16986. - lt_cv_sys_max_cmd_len=16384
  16987. - #
  16988. - if test -x /sbin/sysconfig; then
  16989. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  16990. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  16991. - esac
  16992. - fi
  16993. - ;;
  16994. - sco3.2v5*)
  16995. - lt_cv_sys_max_cmd_len=102400
  16996. - ;;
  16997. - sysv5* | sco5v6* | sysv4.2uw2*)
  16998. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  16999. - if test -n "$kargmax"; then
  17000. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  17001. - else
  17002. - lt_cv_sys_max_cmd_len=32768
  17003. - fi
  17004. - ;;
  17005. - *)
  17006. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  17007. - if test -n "$lt_cv_sys_max_cmd_len"; then
  17008. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17009. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17010. - else
  17011. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  17012. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  17013. - = "XX$teststring") >/dev/null 2>&1 &&
  17014. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  17015. - lt_cv_sys_max_cmd_len=$new_result &&
  17016. - test $i != 17 # 1/2 MB should be enough
  17017. - do
  17018. - i=`expr $i + 1`
  17019. - teststring=$teststring$teststring
  17020. - done
  17021. - teststring=
  17022. - # Add a significant safety factor because C++ compilers can tack on massive
  17023. - # amounts of additional arguments before passing them to the linker.
  17024. - # It appears as though 1/2 is a usable value.
  17025. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  17026. - fi
  17027. - ;;
  17028. - esac
  17029. -fi
  17030. -if test -n $lt_cv_sys_max_cmd_len ; then
  17031. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  17032. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  17033. -else
  17034. - { echo "$as_me:$LINENO: result: none" >&5
  17035. -echo "${ECHO_T}none" >&6; }
  17036. -fi
  17037. +
  17038. +
  17039. +
  17040. +
  17041. +
  17042. +
  17043. +
  17044. +
  17045. +
  17046. +
  17047. +
  17048. +
  17049. +
  17050. +
  17051. +# If no C compiler was specified, use CC.
  17052. +LTCC=${LTCC-"$CC"}
  17053. +
  17054. +# If no C compiler flags were specified, use CFLAGS.
  17055. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17056. +
  17057. +# Allow CC to be a program name with arguments.
  17058. +compiler=$CC
  17059. +
  17060. +
  17061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  17062. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  17063. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  17064. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  17065. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17066. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  17067. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  17068. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  17069. + $as_echo_n "(cached) " >&6
  17070. else
  17071. # These are sane defaults that work on at least a few old systems.
  17072. @@ -6296,33 +5315,18 @@
  17073. # Regexp to match symbols that can be accessed directly from C.
  17074. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  17075. -# Transform an extracted symbol line into a proper C declaration
  17076. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  17077. -
  17078. -# Transform an extracted symbol line into symbol name and symbol address
  17079. -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'"
  17080. -
  17081. # Define system-specific variables.
  17082. case $host_os in
  17083. aix*)
  17084. symcode='[BCDT]'
  17085. ;;
  17086. -cygwin* | mingw* | pw32*)
  17087. +cygwin* | mingw* | pw32* | cegcc*)
  17088. symcode='[ABCDGISTW]'
  17089. ;;
  17090. -hpux*) # Its linker distinguishes data from code symbols
  17091. +hpux*)
  17092. if test "$host_cpu" = ia64; then
  17093. symcode='[ABCDEGRST]'
  17094. fi
  17095. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17096. - 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'"
  17097. - ;;
  17098. -linux* | k*bsd*-gnu)
  17099. - if test "$host_cpu" = ia64; then
  17100. - symcode='[ABCDGIRSTW]'
  17101. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17102. - 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'"
  17103. - fi
  17104. ;;
  17105. irix* | nonstopux*)
  17106. symcode='[BCDEGRST]'
  17107. @@ -6347,57 +5351,85 @@
  17108. ;;
  17109. esac
  17110. +# If we're using GNU nm, then use its standard symbol codes.
  17111. +case `$NM -V 2>&1` in
  17112. +*GNU* | *'with BFD'*)
  17113. + symcode='[ABCDGIRSTW]' ;;
  17114. +esac
  17115. +
  17116. +# Transform an extracted symbol line into a proper C declaration.
  17117. +# Some systems (esp. on ia64) link data and code symbols differently,
  17118. +# so use this general approach.
  17119. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17120. +
  17121. +# Transform an extracted symbol line into symbol name and symbol address
  17122. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  17123. +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'"
  17124. +
  17125. # Handle CRLF in mingw tool chain
  17126. opt_cr=
  17127. case $build_os in
  17128. mingw*)
  17129. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  17130. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  17131. ;;
  17132. esac
  17133. -# If we're using GNU nm, then use its standard symbol codes.
  17134. -case `$NM -V 2>&1` in
  17135. -*GNU* | *'with BFD'*)
  17136. - symcode='[ABCDGIRSTW]' ;;
  17137. -esac
  17138. -
  17139. -# Try without a prefix undercore, then with it.
  17140. +# Try without a prefix underscore, then with it.
  17141. for ac_symprfx in "" "_"; do
  17142. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  17143. symxfrm="\\1 $ac_symprfx\\2 \\2"
  17144. # Write the raw and C identifiers.
  17145. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  17146. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  17147. + # Fake it for dumpbin and say T for any non-static function
  17148. + # and D for any global variable.
  17149. + # Also find C++ and __fastcall symbols from MSVC++,
  17150. + # which start with @ or ?.
  17151. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  17152. +" {last_section=section; section=\$ 3};"\
  17153. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  17154. +" \$ 0!~/External *\|/{next};"\
  17155. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  17156. +" {if(hide[section]) next};"\
  17157. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  17158. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  17159. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  17160. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  17161. +" ' prfx=^$ac_symprfx"
  17162. + else
  17163. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  17164. + fi
  17165. # Check to see that the pipe works correctly.
  17166. pipe_works=no
  17167. rm -f conftest*
  17168. - cat > conftest.$ac_ext <<EOF
  17169. + cat > conftest.$ac_ext <<_LT_EOF
  17170. #ifdef __cplusplus
  17171. extern "C" {
  17172. #endif
  17173. char nm_test_var;
  17174. -void nm_test_func(){}
  17175. +void nm_test_func(void);
  17176. +void nm_test_func(void){}
  17177. #ifdef __cplusplus
  17178. }
  17179. #endif
  17180. int main(){nm_test_var='a';nm_test_func();return(0);}
  17181. -EOF
  17182. +_LT_EOF
  17183. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17184. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17185. (eval $ac_compile) 2>&5
  17186. ac_status=$?
  17187. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17188. - (exit $ac_status); }; then
  17189. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17190. + test $ac_status = 0; }; then
  17191. # Now try to grab the symbols.
  17192. nlist=conftest.nm
  17193. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  17194. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  17195. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  17196. ac_status=$?
  17197. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17198. - (exit $ac_status); } && test -s "$nlist"; then
  17199. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17200. + test $ac_status = 0; } && test -s "$nlist"; then
  17201. # Try sorting and uniquifying the output.
  17202. if sort "$nlist" | uniq > "$nlist"T; then
  17203. mv -f "$nlist"T "$nlist"
  17204. @@ -6406,53 +5438,55 @@
  17205. fi
  17206. # Make sure that we snagged all the symbols we need.
  17207. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  17208. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  17209. - cat <<EOF > conftest.$ac_ext
  17210. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  17211. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  17212. + cat <<_LT_EOF > conftest.$ac_ext
  17213. #ifdef __cplusplus
  17214. extern "C" {
  17215. #endif
  17216. -EOF
  17217. +_LT_EOF
  17218. # Now generate the symbol file.
  17219. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  17220. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  17221. - cat <<EOF >> conftest.$ac_ext
  17222. -#if defined (__STDC__) && __STDC__
  17223. -# define lt_ptr_t void *
  17224. -#else
  17225. -# define lt_ptr_t char *
  17226. -# define const
  17227. -#endif
  17228. + cat <<_LT_EOF >> conftest.$ac_ext
  17229. -/* The mapping between symbol names and symbols. */
  17230. +/* The mapping between symbol names and symbols. */
  17231. const struct {
  17232. const char *name;
  17233. - lt_ptr_t address;
  17234. + void *address;
  17235. }
  17236. -lt_preloaded_symbols[] =
  17237. +lt__PROGRAM__LTX_preloaded_symbols[] =
  17238. {
  17239. -EOF
  17240. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  17241. - cat <<\EOF >> conftest.$ac_ext
  17242. - {0, (lt_ptr_t) 0}
  17243. + { "@PROGRAM@", (void *) 0 },
  17244. +_LT_EOF
  17245. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  17246. + cat <<\_LT_EOF >> conftest.$ac_ext
  17247. + {0, (void *) 0}
  17248. };
  17249. +/* This works around a problem in FreeBSD linker */
  17250. +#ifdef FREEBSD_WORKAROUND
  17251. +static const void *lt_preloaded_setup() {
  17252. + return lt__PROGRAM__LTX_preloaded_symbols;
  17253. +}
  17254. +#endif
  17255. +
  17256. #ifdef __cplusplus
  17257. }
  17258. #endif
  17259. -EOF
  17260. +_LT_EOF
  17261. # Now try linking the two files.
  17262. mv conftest.$ac_objext conftstm.$ac_objext
  17263. lt_save_LIBS="$LIBS"
  17264. lt_save_CFLAGS="$CFLAGS"
  17265. LIBS="conftstm.$ac_objext"
  17266. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  17267. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17268. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  17269. (eval $ac_link) 2>&5
  17270. ac_status=$?
  17271. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17272. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  17273. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17274. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  17275. pipe_works=yes
  17276. fi
  17277. LIBS="$lt_save_LIBS"
  17278. @@ -6486,783 +5520,756 @@
  17279. lt_cv_sys_global_symbol_to_cdecl=
  17280. fi
  17281. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  17282. - { echo "$as_me:$LINENO: result: failed" >&5
  17283. -echo "${ECHO_T}failed" >&6; }
  17284. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  17285. +$as_echo "failed" >&6; }
  17286. else
  17287. - { echo "$as_me:$LINENO: result: ok" >&5
  17288. -echo "${ECHO_T}ok" >&6; }
  17289. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  17290. +$as_echo "ok" >&6; }
  17291. fi
  17292. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  17293. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  17294. -if test "${lt_cv_objdir+set}" = set; then
  17295. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17296. -else
  17297. - rm -f .libs 2>/dev/null
  17298. -mkdir .libs 2>/dev/null
  17299. -if test -d .libs; then
  17300. - lt_cv_objdir=.libs
  17301. -else
  17302. - # MS-DOS does not allow filenames that begin with a dot.
  17303. - lt_cv_objdir=_libs
  17304. -fi
  17305. -rmdir .libs 2>/dev/null
  17306. -fi
  17307. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  17308. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  17309. -objdir=$lt_cv_objdir
  17310. -case $host_os in
  17311. -aix3*)
  17312. - # AIX sometimes has problems with the GCC collect2 program. For some
  17313. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  17314. - # vanish in a puff of smoke.
  17315. - if test "X${COLLECT_NAMES+set}" != Xset; then
  17316. - COLLECT_NAMES=
  17317. - export COLLECT_NAMES
  17318. - fi
  17319. - ;;
  17320. -esac
  17321. -# Sed substitution that helps us do robust quoting. It backslashifies
  17322. -# metacharacters that are still active within double-quoted strings.
  17323. -Xsed='sed -e 1s/^X//'
  17324. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  17325. -# Same as above, but do not quote variable references.
  17326. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  17327. -# Sed substitution to delay expansion of an escaped shell variable in a
  17328. -# double_quote_subst'ed string.
  17329. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  17330. -# Sed substitution to avoid accidental globbing in evaled expressions
  17331. -no_glob_subst='s/\*/\\\*/g'
  17332. -# Constants:
  17333. -rm="rm -f"
  17334. -# Global variables:
  17335. -default_ofile=libtool
  17336. -can_build_shared=yes
  17337. -# All known linkers require a `.a' archive for static linking (except MSVC,
  17338. -# which needs '.lib').
  17339. -libext=a
  17340. -ltmain="$ac_aux_dir/ltmain.sh"
  17341. -ofile="$default_ofile"
  17342. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  17343. -if test -n "$ac_tool_prefix"; then
  17344. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  17345. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  17346. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17347. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17348. -if test "${ac_cv_prog_AR+set}" = set; then
  17349. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17350. -else
  17351. - if test -n "$AR"; then
  17352. - ac_cv_prog_AR="$AR" # Let the user override the test.
  17353. -else
  17354. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17355. -for as_dir in $PATH
  17356. -do
  17357. - IFS=$as_save_IFS
  17358. - test -z "$as_dir" && as_dir=.
  17359. - for ac_exec_ext in '' $ac_executable_extensions; do
  17360. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17361. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  17362. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17363. - break 2
  17364. - fi
  17365. -done
  17366. -done
  17367. -IFS=$as_save_IFS
  17368. -fi
  17369. -fi
  17370. -AR=$ac_cv_prog_AR
  17371. -if test -n "$AR"; then
  17372. - { echo "$as_me:$LINENO: result: $AR" >&5
  17373. -echo "${ECHO_T}$AR" >&6; }
  17374. -else
  17375. - { echo "$as_me:$LINENO: result: no" >&5
  17376. -echo "${ECHO_T}no" >&6; }
  17377. -fi
  17378. +
  17379. +
  17380. +
  17381. +
  17382. +
  17383. +
  17384. +# Check whether --enable-libtool-lock was given.
  17385. +if test "${enable_libtool_lock+set}" = set; then :
  17386. + enableval=$enable_libtool_lock;
  17387. fi
  17388. -if test -z "$ac_cv_prog_AR"; then
  17389. - ac_ct_AR=$AR
  17390. - # Extract the first word of "ar", so it can be a program name with args.
  17391. -set dummy ar; ac_word=$2
  17392. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17393. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17394. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  17395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17396. -else
  17397. - if test -n "$ac_ct_AR"; then
  17398. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  17399. +
  17400. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  17401. +
  17402. +# Some flags need to be propagated to the compiler or linker for good
  17403. +# libtool support.
  17404. +case $host in
  17405. +ia64-*-hpux*)
  17406. + # Find out which ABI we are using.
  17407. + echo 'int i;' > conftest.$ac_ext
  17408. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17409. + (eval $ac_compile) 2>&5
  17410. + ac_status=$?
  17411. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17412. + test $ac_status = 0; }; then
  17413. + case `/usr/bin/file conftest.$ac_objext` in
  17414. + *ELF-32*)
  17415. + HPUX_IA64_MODE="32"
  17416. + ;;
  17417. + *ELF-64*)
  17418. + HPUX_IA64_MODE="64"
  17419. + ;;
  17420. + esac
  17421. + fi
  17422. + rm -rf conftest*
  17423. + ;;
  17424. +*-*-irix6*)
  17425. + # Find out which ABI we are using.
  17426. + echo '#line 5583 "configure"' > conftest.$ac_ext
  17427. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17428. + (eval $ac_compile) 2>&5
  17429. + ac_status=$?
  17430. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17431. + test $ac_status = 0; }; then
  17432. + if test "$lt_cv_prog_gnu_ld" = yes; then
  17433. + case `/usr/bin/file conftest.$ac_objext` in
  17434. + *32-bit*)
  17435. + LD="${LD-ld} -melf32bsmip"
  17436. + ;;
  17437. + *N32*)
  17438. + LD="${LD-ld} -melf32bmipn32"
  17439. + ;;
  17440. + *64-bit*)
  17441. + LD="${LD-ld} -melf64bmip"
  17442. + ;;
  17443. + esac
  17444. + else
  17445. + case `/usr/bin/file conftest.$ac_objext` in
  17446. + *32-bit*)
  17447. + LD="${LD-ld} -32"
  17448. + ;;
  17449. + *N32*)
  17450. + LD="${LD-ld} -n32"
  17451. + ;;
  17452. + *64-bit*)
  17453. + LD="${LD-ld} -64"
  17454. + ;;
  17455. + esac
  17456. + fi
  17457. + fi
  17458. + rm -rf conftest*
  17459. + ;;
  17460. +
  17461. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  17462. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  17463. + # Find out which ABI we are using.
  17464. + echo 'int i;' > conftest.$ac_ext
  17465. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17466. + (eval $ac_compile) 2>&5
  17467. + ac_status=$?
  17468. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17469. + test $ac_status = 0; }; then
  17470. + case `/usr/bin/file conftest.o` in
  17471. + *32-bit*)
  17472. + case $host in
  17473. + x86_64-*kfreebsd*-gnu)
  17474. + LD="${LD-ld} -m elf_i386_fbsd"
  17475. + ;;
  17476. + x86_64-*linux*)
  17477. + LD="${LD-ld} -m elf_i386"
  17478. + ;;
  17479. + ppc64-*linux*|powerpc64-*linux*)
  17480. + LD="${LD-ld} -m elf32ppclinux"
  17481. + ;;
  17482. + s390x-*linux*)
  17483. + LD="${LD-ld} -m elf_s390"
  17484. + ;;
  17485. + sparc64-*linux*)
  17486. + LD="${LD-ld} -m elf32_sparc"
  17487. + ;;
  17488. + esac
  17489. + ;;
  17490. + *64-bit*)
  17491. + case $host in
  17492. + x86_64-*kfreebsd*-gnu)
  17493. + LD="${LD-ld} -m elf_x86_64_fbsd"
  17494. + ;;
  17495. + x86_64-*linux*)
  17496. + LD="${LD-ld} -m elf_x86_64"
  17497. + ;;
  17498. + ppc*-*linux*|powerpc*-*linux*)
  17499. + LD="${LD-ld} -m elf64ppc"
  17500. + ;;
  17501. + s390*-*linux*|s390*-*tpf*)
  17502. + LD="${LD-ld} -m elf64_s390"
  17503. + ;;
  17504. + sparc*-*linux*)
  17505. + LD="${LD-ld} -m elf64_sparc"
  17506. + ;;
  17507. + esac
  17508. + ;;
  17509. + esac
  17510. + fi
  17511. + rm -rf conftest*
  17512. + ;;
  17513. +
  17514. +*-*-sco3.2v5*)
  17515. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  17516. + SAVE_CFLAGS="$CFLAGS"
  17517. + CFLAGS="$CFLAGS -belf"
  17518. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  17519. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  17520. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  17521. + $as_echo_n "(cached) " >&6
  17522. +else
  17523. + ac_ext=c
  17524. +ac_cpp='$CPP $CPPFLAGS'
  17525. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17526. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17527. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17528. +
  17529. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17530. +/* end confdefs.h. */
  17531. +
  17532. +int
  17533. +main ()
  17534. +{
  17535. +
  17536. + ;
  17537. + return 0;
  17538. +}
  17539. +_ACEOF
  17540. +if ac_fn_c_try_link "$LINENO"; then :
  17541. + lt_cv_cc_needs_belf=yes
  17542. +else
  17543. + lt_cv_cc_needs_belf=no
  17544. +fi
  17545. +rm -f core conftest.err conftest.$ac_objext \
  17546. + conftest$ac_exeext conftest.$ac_ext
  17547. + ac_ext=c
  17548. +ac_cpp='$CPP $CPPFLAGS'
  17549. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17550. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17551. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17552. +
  17553. +fi
  17554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  17555. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  17556. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  17557. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  17558. + CFLAGS="$SAVE_CFLAGS"
  17559. + fi
  17560. + ;;
  17561. +sparc*-*solaris*)
  17562. + # Find out which ABI we are using.
  17563. + echo 'int i;' > conftest.$ac_ext
  17564. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17565. + (eval $ac_compile) 2>&5
  17566. + ac_status=$?
  17567. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17568. + test $ac_status = 0; }; then
  17569. + case `/usr/bin/file conftest.o` in
  17570. + *64-bit*)
  17571. + case $lt_cv_prog_gnu_ld in
  17572. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  17573. + *)
  17574. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  17575. + LD="${LD-ld} -64"
  17576. + fi
  17577. + ;;
  17578. + esac
  17579. + ;;
  17580. + esac
  17581. + fi
  17582. + rm -rf conftest*
  17583. + ;;
  17584. +esac
  17585. +
  17586. +need_locks="$enable_libtool_lock"
  17587. +
  17588. +
  17589. + case $host_os in
  17590. + rhapsody* | darwin*)
  17591. + if test -n "$ac_tool_prefix"; then
  17592. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  17593. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  17594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17595. +$as_echo_n "checking for $ac_word... " >&6; }
  17596. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  17597. + $as_echo_n "(cached) " >&6
  17598. +else
  17599. + if test -n "$DSYMUTIL"; then
  17600. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  17601. else
  17602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17603. for as_dir in $PATH
  17604. do
  17605. IFS=$as_save_IFS
  17606. test -z "$as_dir" && as_dir=.
  17607. - for ac_exec_ext in '' $ac_executable_extensions; do
  17608. + for ac_exec_ext in '' $ac_executable_extensions; do
  17609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17610. - ac_cv_prog_ac_ct_AR="ar"
  17611. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17612. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  17613. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17614. break 2
  17615. fi
  17616. done
  17617. + done
  17618. +IFS=$as_save_IFS
  17619. +
  17620. +fi
  17621. +fi
  17622. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  17623. +if test -n "$DSYMUTIL"; then
  17624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  17625. +$as_echo "$DSYMUTIL" >&6; }
  17626. +else
  17627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17628. +$as_echo "no" >&6; }
  17629. +fi
  17630. +
  17631. +
  17632. +fi
  17633. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  17634. + ac_ct_DSYMUTIL=$DSYMUTIL
  17635. + # Extract the first word of "dsymutil", so it can be a program name with args.
  17636. +set dummy dsymutil; ac_word=$2
  17637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17638. +$as_echo_n "checking for $ac_word... " >&6; }
  17639. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  17640. + $as_echo_n "(cached) " >&6
  17641. +else
  17642. + if test -n "$ac_ct_DSYMUTIL"; then
  17643. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  17644. +else
  17645. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17646. +for as_dir in $PATH
  17647. +do
  17648. + IFS=$as_save_IFS
  17649. + test -z "$as_dir" && as_dir=.
  17650. + for ac_exec_ext in '' $ac_executable_extensions; do
  17651. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17652. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  17653. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17654. + break 2
  17655. + fi
  17656. done
  17657. + done
  17658. IFS=$as_save_IFS
  17659. fi
  17660. fi
  17661. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  17662. -if test -n "$ac_ct_AR"; then
  17663. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  17664. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  17665. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  17666. +if test -n "$ac_ct_DSYMUTIL"; then
  17667. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  17668. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  17669. else
  17670. - { echo "$as_me:$LINENO: result: no" >&5
  17671. -echo "${ECHO_T}no" >&6; }
  17672. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17673. +$as_echo "no" >&6; }
  17674. fi
  17675. - if test "x$ac_ct_AR" = x; then
  17676. - AR="false"
  17677. + if test "x$ac_ct_DSYMUTIL" = x; then
  17678. + DSYMUTIL=":"
  17679. else
  17680. case $cross_compiling:$ac_tool_warned in
  17681. yes:)
  17682. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17683. -whose name does not start with the host triplet. If you think this
  17684. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17685. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17686. -whose name does not start with the host triplet. If you think this
  17687. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17688. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17689. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17690. ac_tool_warned=yes ;;
  17691. esac
  17692. - AR=$ac_ct_AR
  17693. + DSYMUTIL=$ac_ct_DSYMUTIL
  17694. fi
  17695. else
  17696. - AR="$ac_cv_prog_AR"
  17697. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  17698. fi
  17699. -if test -n "$ac_tool_prefix"; then
  17700. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17701. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17702. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17703. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17704. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  17705. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17706. + if test -n "$ac_tool_prefix"; then
  17707. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  17708. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  17709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17710. +$as_echo_n "checking for $ac_word... " >&6; }
  17711. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  17712. + $as_echo_n "(cached) " >&6
  17713. else
  17714. - if test -n "$RANLIB"; then
  17715. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17716. + if test -n "$NMEDIT"; then
  17717. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  17718. else
  17719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17720. for as_dir in $PATH
  17721. do
  17722. IFS=$as_save_IFS
  17723. test -z "$as_dir" && as_dir=.
  17724. - for ac_exec_ext in '' $ac_executable_extensions; do
  17725. + for ac_exec_ext in '' $ac_executable_extensions; do
  17726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17727. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17728. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17729. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  17730. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17731. break 2
  17732. fi
  17733. done
  17734. -done
  17735. + done
  17736. IFS=$as_save_IFS
  17737. fi
  17738. fi
  17739. -RANLIB=$ac_cv_prog_RANLIB
  17740. -if test -n "$RANLIB"; then
  17741. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  17742. -echo "${ECHO_T}$RANLIB" >&6; }
  17743. +NMEDIT=$ac_cv_prog_NMEDIT
  17744. +if test -n "$NMEDIT"; then
  17745. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  17746. +$as_echo "$NMEDIT" >&6; }
  17747. else
  17748. - { echo "$as_me:$LINENO: result: no" >&5
  17749. -echo "${ECHO_T}no" >&6; }
  17750. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17751. +$as_echo "no" >&6; }
  17752. fi
  17753. fi
  17754. -if test -z "$ac_cv_prog_RANLIB"; then
  17755. - ac_ct_RANLIB=$RANLIB
  17756. - # Extract the first word of "ranlib", so it can be a program name with args.
  17757. -set dummy ranlib; ac_word=$2
  17758. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17759. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17760. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  17761. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17762. +if test -z "$ac_cv_prog_NMEDIT"; then
  17763. + ac_ct_NMEDIT=$NMEDIT
  17764. + # Extract the first word of "nmedit", so it can be a program name with args.
  17765. +set dummy nmedit; ac_word=$2
  17766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17767. +$as_echo_n "checking for $ac_word... " >&6; }
  17768. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  17769. + $as_echo_n "(cached) " >&6
  17770. else
  17771. - if test -n "$ac_ct_RANLIB"; then
  17772. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17773. + if test -n "$ac_ct_NMEDIT"; then
  17774. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  17775. else
  17776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17777. for as_dir in $PATH
  17778. do
  17779. IFS=$as_save_IFS
  17780. test -z "$as_dir" && as_dir=.
  17781. - for ac_exec_ext in '' $ac_executable_extensions; do
  17782. + for ac_exec_ext in '' $ac_executable_extensions; do
  17783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17784. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  17785. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17786. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  17787. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17788. break 2
  17789. fi
  17790. done
  17791. -done
  17792. + done
  17793. IFS=$as_save_IFS
  17794. fi
  17795. fi
  17796. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17797. -if test -n "$ac_ct_RANLIB"; then
  17798. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  17799. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  17800. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  17801. +if test -n "$ac_ct_NMEDIT"; then
  17802. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  17803. +$as_echo "$ac_ct_NMEDIT" >&6; }
  17804. else
  17805. - { echo "$as_me:$LINENO: result: no" >&5
  17806. -echo "${ECHO_T}no" >&6; }
  17807. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17808. +$as_echo "no" >&6; }
  17809. fi
  17810. - if test "x$ac_ct_RANLIB" = x; then
  17811. - RANLIB=":"
  17812. + if test "x$ac_ct_NMEDIT" = x; then
  17813. + NMEDIT=":"
  17814. else
  17815. case $cross_compiling:$ac_tool_warned in
  17816. yes:)
  17817. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17818. -whose name does not start with the host triplet. If you think this
  17819. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17820. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17821. -whose name does not start with the host triplet. If you think this
  17822. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17824. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17825. ac_tool_warned=yes ;;
  17826. esac
  17827. - RANLIB=$ac_ct_RANLIB
  17828. + NMEDIT=$ac_ct_NMEDIT
  17829. fi
  17830. else
  17831. - RANLIB="$ac_cv_prog_RANLIB"
  17832. + NMEDIT="$ac_cv_prog_NMEDIT"
  17833. fi
  17834. -if test -n "$ac_tool_prefix"; then
  17835. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17836. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  17837. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17838. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17839. -if test "${ac_cv_prog_STRIP+set}" = set; then
  17840. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17841. + if test -n "$ac_tool_prefix"; then
  17842. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  17843. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  17844. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17845. +$as_echo_n "checking for $ac_word... " >&6; }
  17846. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  17847. + $as_echo_n "(cached) " >&6
  17848. else
  17849. - if test -n "$STRIP"; then
  17850. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17851. + if test -n "$LIPO"; then
  17852. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  17853. else
  17854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17855. for as_dir in $PATH
  17856. do
  17857. IFS=$as_save_IFS
  17858. test -z "$as_dir" && as_dir=.
  17859. - for ac_exec_ext in '' $ac_executable_extensions; do
  17860. + for ac_exec_ext in '' $ac_executable_extensions; do
  17861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17862. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17863. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17864. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  17865. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17866. break 2
  17867. fi
  17868. done
  17869. -done
  17870. + done
  17871. IFS=$as_save_IFS
  17872. fi
  17873. fi
  17874. -STRIP=$ac_cv_prog_STRIP
  17875. -if test -n "$STRIP"; then
  17876. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  17877. -echo "${ECHO_T}$STRIP" >&6; }
  17878. +LIPO=$ac_cv_prog_LIPO
  17879. +if test -n "$LIPO"; then
  17880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  17881. +$as_echo "$LIPO" >&6; }
  17882. else
  17883. - { echo "$as_me:$LINENO: result: no" >&5
  17884. -echo "${ECHO_T}no" >&6; }
  17885. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17886. +$as_echo "no" >&6; }
  17887. fi
  17888. fi
  17889. -if test -z "$ac_cv_prog_STRIP"; then
  17890. - ac_ct_STRIP=$STRIP
  17891. - # Extract the first word of "strip", so it can be a program name with args.
  17892. -set dummy strip; ac_word=$2
  17893. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17894. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17895. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17896. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17897. +if test -z "$ac_cv_prog_LIPO"; then
  17898. + ac_ct_LIPO=$LIPO
  17899. + # Extract the first word of "lipo", so it can be a program name with args.
  17900. +set dummy lipo; ac_word=$2
  17901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17902. +$as_echo_n "checking for $ac_word... " >&6; }
  17903. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  17904. + $as_echo_n "(cached) " >&6
  17905. else
  17906. - if test -n "$ac_ct_STRIP"; then
  17907. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17908. + if test -n "$ac_ct_LIPO"; then
  17909. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  17910. else
  17911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17912. for as_dir in $PATH
  17913. do
  17914. IFS=$as_save_IFS
  17915. test -z "$as_dir" && as_dir=.
  17916. - for ac_exec_ext in '' $ac_executable_extensions; do
  17917. + for ac_exec_ext in '' $ac_executable_extensions; do
  17918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17919. - ac_cv_prog_ac_ct_STRIP="strip"
  17920. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17921. + ac_cv_prog_ac_ct_LIPO="lipo"
  17922. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17923. break 2
  17924. fi
  17925. done
  17926. -done
  17927. + done
  17928. IFS=$as_save_IFS
  17929. fi
  17930. fi
  17931. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17932. -if test -n "$ac_ct_STRIP"; then
  17933. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17934. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17935. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  17936. +if test -n "$ac_ct_LIPO"; then
  17937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  17938. +$as_echo "$ac_ct_LIPO" >&6; }
  17939. else
  17940. - { echo "$as_me:$LINENO: result: no" >&5
  17941. -echo "${ECHO_T}no" >&6; }
  17942. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17943. +$as_echo "no" >&6; }
  17944. fi
  17945. - if test "x$ac_ct_STRIP" = x; then
  17946. - STRIP=":"
  17947. + if test "x$ac_ct_LIPO" = x; then
  17948. + LIPO=":"
  17949. else
  17950. case $cross_compiling:$ac_tool_warned in
  17951. yes:)
  17952. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17953. -whose name does not start with the host triplet. If you think this
  17954. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17955. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17956. -whose name does not start with the host triplet. If you think this
  17957. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17959. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17960. ac_tool_warned=yes ;;
  17961. esac
  17962. - STRIP=$ac_ct_STRIP
  17963. + LIPO=$ac_ct_LIPO
  17964. fi
  17965. else
  17966. - STRIP="$ac_cv_prog_STRIP"
  17967. + LIPO="$ac_cv_prog_LIPO"
  17968. fi
  17969. -
  17970. -old_CC="$CC"
  17971. -old_CFLAGS="$CFLAGS"
  17972. -
  17973. -# Set sane defaults for various variables
  17974. -test -z "$AR" && AR=ar
  17975. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  17976. -test -z "$AS" && AS=as
  17977. -test -z "$CC" && CC=cc
  17978. -test -z "$LTCC" && LTCC=$CC
  17979. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  17980. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  17981. -test -z "$LD" && LD=ld
  17982. -test -z "$LN_S" && LN_S="ln -s"
  17983. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  17984. -test -z "$NM" && NM=nm
  17985. -test -z "$SED" && SED=sed
  17986. -test -z "$OBJDUMP" && OBJDUMP=objdump
  17987. -test -z "$RANLIB" && RANLIB=:
  17988. -test -z "$STRIP" && STRIP=:
  17989. -test -z "$ac_objext" && ac_objext=o
  17990. -
  17991. -# Determine commands to create old-style static archives.
  17992. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  17993. -old_postinstall_cmds='chmod 644 $oldlib'
  17994. -old_postuninstall_cmds=
  17995. -
  17996. -if test -n "$RANLIB"; then
  17997. - case $host_os in
  17998. - openbsd*)
  17999. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  18000. - ;;
  18001. - *)
  18002. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  18003. - ;;
  18004. - esac
  18005. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  18006. -fi
  18007. -
  18008. -for cc_temp in $compiler""; do
  18009. - case $cc_temp in
  18010. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18011. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18012. - \-*) ;;
  18013. - *) break;;
  18014. - esac
  18015. -done
  18016. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18017. -
  18018. -
  18019. -# Only perform the check for file, if the check method requires it
  18020. -case $deplibs_check_method in
  18021. -file_magic*)
  18022. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  18023. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  18024. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  18025. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  18026. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18027. -else
  18028. - case $MAGIC_CMD in
  18029. -[\\/*] | ?:[\\/]*)
  18030. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  18031. - ;;
  18032. -*)
  18033. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  18034. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18035. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  18036. - for ac_dir in $ac_dummy; do
  18037. - IFS="$lt_save_ifs"
  18038. - test -z "$ac_dir" && ac_dir=.
  18039. - if test -f $ac_dir/${ac_tool_prefix}file; then
  18040. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  18041. - if test -n "$file_magic_test_file"; then
  18042. - case $deplibs_check_method in
  18043. - "file_magic "*)
  18044. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  18045. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  18046. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  18047. - $EGREP "$file_magic_regex" > /dev/null; then
  18048. - :
  18049. - else
  18050. - cat <<EOF 1>&2
  18051. -
  18052. -*** Warning: the command libtool uses to detect shared libraries,
  18053. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  18054. -*** The result is that libtool may fail to recognize shared libraries
  18055. -*** as such. This will affect the creation of libtool libraries that
  18056. -*** depend on shared libraries, but programs linked with such libtool
  18057. -*** libraries will work regardless of this problem. Nevertheless, you
  18058. -*** may want to report the problem to your system manager and/or to
  18059. -*** bug-libtool@gnu.org
  18060. -
  18061. -EOF
  18062. - fi ;;
  18063. - esac
  18064. - fi
  18065. - break
  18066. - fi
  18067. - done
  18068. - IFS="$lt_save_ifs"
  18069. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  18070. - ;;
  18071. -esac
  18072. -fi
  18073. -
  18074. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  18075. -if test -n "$MAGIC_CMD"; then
  18076. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  18077. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  18078. -else
  18079. - { echo "$as_me:$LINENO: result: no" >&5
  18080. -echo "${ECHO_T}no" >&6; }
  18081. -fi
  18082. -
  18083. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  18084. - if test -n "$ac_tool_prefix"; then
  18085. - { echo "$as_me:$LINENO: checking for file" >&5
  18086. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  18087. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  18088. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18089. -else
  18090. - case $MAGIC_CMD in
  18091. -[\\/*] | ?:[\\/]*)
  18092. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  18093. - ;;
  18094. -*)
  18095. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  18096. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18097. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  18098. - for ac_dir in $ac_dummy; do
  18099. - IFS="$lt_save_ifs"
  18100. - test -z "$ac_dir" && ac_dir=.
  18101. - if test -f $ac_dir/file; then
  18102. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  18103. - if test -n "$file_magic_test_file"; then
  18104. - case $deplibs_check_method in
  18105. - "file_magic "*)
  18106. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  18107. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  18108. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  18109. - $EGREP "$file_magic_regex" > /dev/null; then
  18110. - :
  18111. - else
  18112. - cat <<EOF 1>&2
  18113. -
  18114. -*** Warning: the command libtool uses to detect shared libraries,
  18115. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  18116. -*** The result is that libtool may fail to recognize shared libraries
  18117. -*** as such. This will affect the creation of libtool libraries that
  18118. -*** depend on shared libraries, but programs linked with such libtool
  18119. -*** libraries will work regardless of this problem. Nevertheless, you
  18120. -*** may want to report the problem to your system manager and/or to
  18121. -*** bug-libtool@gnu.org
  18122. -
  18123. -EOF
  18124. - fi ;;
  18125. - esac
  18126. - fi
  18127. - break
  18128. - fi
  18129. - done
  18130. - IFS="$lt_save_ifs"
  18131. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  18132. - ;;
  18133. -esac
  18134. -fi
  18135. -
  18136. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  18137. -if test -n "$MAGIC_CMD"; then
  18138. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  18139. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  18140. -else
  18141. - { echo "$as_me:$LINENO: result: no" >&5
  18142. -echo "${ECHO_T}no" >&6; }
  18143. -fi
  18144. -
  18145. - else
  18146. - MAGIC_CMD=:
  18147. - fi
  18148. -fi
  18149. -
  18150. - fi
  18151. - ;;
  18152. -esac
  18153. -
  18154. -
  18155. - case $host_os in
  18156. - rhapsody* | darwin*)
  18157. if test -n "$ac_tool_prefix"; then
  18158. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  18159. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  18160. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18161. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18162. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  18163. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18164. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  18165. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  18166. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18167. +$as_echo_n "checking for $ac_word... " >&6; }
  18168. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  18169. + $as_echo_n "(cached) " >&6
  18170. else
  18171. - if test -n "$DSYMUTIL"; then
  18172. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  18173. + if test -n "$OTOOL"; then
  18174. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  18175. else
  18176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18177. for as_dir in $PATH
  18178. do
  18179. IFS=$as_save_IFS
  18180. test -z "$as_dir" && as_dir=.
  18181. - for ac_exec_ext in '' $ac_executable_extensions; do
  18182. + for ac_exec_ext in '' $ac_executable_extensions; do
  18183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18184. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  18185. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18186. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  18187. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18188. break 2
  18189. fi
  18190. done
  18191. -done
  18192. + done
  18193. IFS=$as_save_IFS
  18194. fi
  18195. fi
  18196. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  18197. -if test -n "$DSYMUTIL"; then
  18198. - { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  18199. -echo "${ECHO_T}$DSYMUTIL" >&6; }
  18200. +OTOOL=$ac_cv_prog_OTOOL
  18201. +if test -n "$OTOOL"; then
  18202. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  18203. +$as_echo "$OTOOL" >&6; }
  18204. else
  18205. - { echo "$as_me:$LINENO: result: no" >&5
  18206. -echo "${ECHO_T}no" >&6; }
  18207. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18208. +$as_echo "no" >&6; }
  18209. fi
  18210. fi
  18211. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  18212. - ac_ct_DSYMUTIL=$DSYMUTIL
  18213. - # Extract the first word of "dsymutil", so it can be a program name with args.
  18214. -set dummy dsymutil; ac_word=$2
  18215. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18216. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18217. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  18218. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18219. +if test -z "$ac_cv_prog_OTOOL"; then
  18220. + ac_ct_OTOOL=$OTOOL
  18221. + # Extract the first word of "otool", so it can be a program name with args.
  18222. +set dummy otool; ac_word=$2
  18223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18224. +$as_echo_n "checking for $ac_word... " >&6; }
  18225. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  18226. + $as_echo_n "(cached) " >&6
  18227. else
  18228. - if test -n "$ac_ct_DSYMUTIL"; then
  18229. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  18230. + if test -n "$ac_ct_OTOOL"; then
  18231. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  18232. else
  18233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18234. for as_dir in $PATH
  18235. do
  18236. IFS=$as_save_IFS
  18237. test -z "$as_dir" && as_dir=.
  18238. - for ac_exec_ext in '' $ac_executable_extensions; do
  18239. + for ac_exec_ext in '' $ac_executable_extensions; do
  18240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18241. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  18242. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18243. + ac_cv_prog_ac_ct_OTOOL="otool"
  18244. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18245. break 2
  18246. fi
  18247. done
  18248. -done
  18249. + done
  18250. IFS=$as_save_IFS
  18251. fi
  18252. fi
  18253. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  18254. -if test -n "$ac_ct_DSYMUTIL"; then
  18255. - { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  18256. -echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  18257. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  18258. +if test -n "$ac_ct_OTOOL"; then
  18259. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  18260. +$as_echo "$ac_ct_OTOOL" >&6; }
  18261. else
  18262. - { echo "$as_me:$LINENO: result: no" >&5
  18263. -echo "${ECHO_T}no" >&6; }
  18264. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18265. +$as_echo "no" >&6; }
  18266. fi
  18267. - if test "x$ac_ct_DSYMUTIL" = x; then
  18268. - DSYMUTIL=":"
  18269. + if test "x$ac_ct_OTOOL" = x; then
  18270. + OTOOL=":"
  18271. else
  18272. case $cross_compiling:$ac_tool_warned in
  18273. yes:)
  18274. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18275. -whose name does not start with the host triplet. If you think this
  18276. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18277. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18278. -whose name does not start with the host triplet. If you think this
  18279. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18280. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18281. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18282. ac_tool_warned=yes ;;
  18283. esac
  18284. - DSYMUTIL=$ac_ct_DSYMUTIL
  18285. + OTOOL=$ac_ct_OTOOL
  18286. fi
  18287. else
  18288. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  18289. + OTOOL="$ac_cv_prog_OTOOL"
  18290. fi
  18291. if test -n "$ac_tool_prefix"; then
  18292. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  18293. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  18294. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18295. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18296. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  18297. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18298. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  18299. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  18300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18301. +$as_echo_n "checking for $ac_word... " >&6; }
  18302. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  18303. + $as_echo_n "(cached) " >&6
  18304. else
  18305. - if test -n "$NMEDIT"; then
  18306. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  18307. + if test -n "$OTOOL64"; then
  18308. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  18309. else
  18310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18311. for as_dir in $PATH
  18312. do
  18313. IFS=$as_save_IFS
  18314. test -z "$as_dir" && as_dir=.
  18315. - for ac_exec_ext in '' $ac_executable_extensions; do
  18316. + for ac_exec_ext in '' $ac_executable_extensions; do
  18317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18318. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  18319. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18320. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  18321. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18322. break 2
  18323. fi
  18324. done
  18325. -done
  18326. + done
  18327. IFS=$as_save_IFS
  18328. fi
  18329. fi
  18330. -NMEDIT=$ac_cv_prog_NMEDIT
  18331. -if test -n "$NMEDIT"; then
  18332. - { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  18333. -echo "${ECHO_T}$NMEDIT" >&6; }
  18334. +OTOOL64=$ac_cv_prog_OTOOL64
  18335. +if test -n "$OTOOL64"; then
  18336. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  18337. +$as_echo "$OTOOL64" >&6; }
  18338. else
  18339. - { echo "$as_me:$LINENO: result: no" >&5
  18340. -echo "${ECHO_T}no" >&6; }
  18341. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18342. +$as_echo "no" >&6; }
  18343. fi
  18344. fi
  18345. -if test -z "$ac_cv_prog_NMEDIT"; then
  18346. - ac_ct_NMEDIT=$NMEDIT
  18347. - # Extract the first word of "nmedit", so it can be a program name with args.
  18348. -set dummy nmedit; ac_word=$2
  18349. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18350. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18351. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  18352. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18353. +if test -z "$ac_cv_prog_OTOOL64"; then
  18354. + ac_ct_OTOOL64=$OTOOL64
  18355. + # Extract the first word of "otool64", so it can be a program name with args.
  18356. +set dummy otool64; ac_word=$2
  18357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18358. +$as_echo_n "checking for $ac_word... " >&6; }
  18359. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  18360. + $as_echo_n "(cached) " >&6
  18361. else
  18362. - if test -n "$ac_ct_NMEDIT"; then
  18363. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  18364. + if test -n "$ac_ct_OTOOL64"; then
  18365. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  18366. else
  18367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18368. for as_dir in $PATH
  18369. do
  18370. IFS=$as_save_IFS
  18371. test -z "$as_dir" && as_dir=.
  18372. - for ac_exec_ext in '' $ac_executable_extensions; do
  18373. + for ac_exec_ext in '' $ac_executable_extensions; do
  18374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18375. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  18376. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18377. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  18378. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18379. break 2
  18380. fi
  18381. done
  18382. -done
  18383. + done
  18384. IFS=$as_save_IFS
  18385. fi
  18386. fi
  18387. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  18388. -if test -n "$ac_ct_NMEDIT"; then
  18389. - { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  18390. -echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  18391. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  18392. +if test -n "$ac_ct_OTOOL64"; then
  18393. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  18394. +$as_echo "$ac_ct_OTOOL64" >&6; }
  18395. else
  18396. - { echo "$as_me:$LINENO: result: no" >&5
  18397. -echo "${ECHO_T}no" >&6; }
  18398. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18399. +$as_echo "no" >&6; }
  18400. fi
  18401. - if test "x$ac_ct_NMEDIT" = x; then
  18402. - NMEDIT=":"
  18403. + if test "x$ac_ct_OTOOL64" = x; then
  18404. + OTOOL64=":"
  18405. else
  18406. case $cross_compiling:$ac_tool_warned in
  18407. yes:)
  18408. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18409. -whose name does not start with the host triplet. If you think this
  18410. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  18411. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18412. -whose name does not start with the host triplet. If you think this
  18413. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18415. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18416. ac_tool_warned=yes ;;
  18417. esac
  18418. - NMEDIT=$ac_ct_NMEDIT
  18419. + OTOOL64=$ac_ct_OTOOL64
  18420. fi
  18421. else
  18422. - NMEDIT="$ac_cv_prog_NMEDIT"
  18423. + OTOOL64="$ac_cv_prog_OTOOL64"
  18424. fi
  18425. - { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  18426. -echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  18427. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  18428. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18429. +
  18430. +
  18431. +
  18432. +
  18433. +
  18434. +
  18435. +
  18436. +
  18437. +
  18438. +
  18439. +
  18440. +
  18441. +
  18442. +
  18443. +
  18444. +
  18445. +
  18446. +
  18447. +
  18448. +
  18449. +
  18450. +
  18451. +
  18452. +
  18453. +
  18454. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  18455. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  18456. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  18457. + $as_echo_n "(cached) " >&6
  18458. else
  18459. lt_cv_apple_cc_single_mod=no
  18460. if test -z "${LT_MULTI_MODULE}"; then
  18461. - # By default we will add the -single_module flag. You can override
  18462. - # by either setting the environment variable LT_MULTI_MODULE
  18463. - # non-empty at configure time, or by adding -multi_module to the
  18464. - # link flags.
  18465. - echo "int foo(void){return 1;}" > conftest.c
  18466. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  18467. - -dynamiclib ${wl}-single_module conftest.c
  18468. - if test -f libconftest.dylib; then
  18469. - lt_cv_apple_cc_single_mod=yes
  18470. - rm -rf libconftest.dylib*
  18471. - fi
  18472. - rm conftest.c
  18473. + # By default we will add the -single_module flag. You can override
  18474. + # by either setting the environment variable LT_MULTI_MODULE
  18475. + # non-empty at configure time, or by adding -multi_module to the
  18476. + # link flags.
  18477. + rm -rf libconftest.dylib*
  18478. + echo "int foo(void){return 1;}" > conftest.c
  18479. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  18480. +-dynamiclib -Wl,-single_module conftest.c" >&5
  18481. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  18482. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  18483. + _lt_result=$?
  18484. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  18485. + lt_cv_apple_cc_single_mod=yes
  18486. + else
  18487. + cat conftest.err >&5
  18488. + fi
  18489. + rm -rf libconftest.dylib*
  18490. + rm -f conftest.*
  18491. fi
  18492. fi
  18493. -{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  18494. -echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  18495. - { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  18496. -echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  18497. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  18498. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18499. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  18500. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  18501. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  18502. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  18503. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  18504. + $as_echo_n "(cached) " >&6
  18505. else
  18506. lt_cv_ld_exported_symbols_list=no
  18507. save_LDFLAGS=$LDFLAGS
  18508. echo "_main" > conftest.sym
  18509. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  18510. - cat >conftest.$ac_ext <<_ACEOF
  18511. -/* confdefs.h. */
  18512. -_ACEOF
  18513. -cat confdefs.h >>conftest.$ac_ext
  18514. -cat >>conftest.$ac_ext <<_ACEOF
  18515. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18516. /* end confdefs.h. */
  18517. int
  18518. @@ -7273,55 +6280,34 @@
  18519. return 0;
  18520. }
  18521. _ACEOF
  18522. -rm -f conftest.$ac_objext conftest$ac_exeext
  18523. -if { (ac_try="$ac_link"
  18524. -case "(($ac_try" in
  18525. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18526. - *) ac_try_echo=$ac_try;;
  18527. -esac
  18528. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18529. - (eval "$ac_link") 2>conftest.er1
  18530. - ac_status=$?
  18531. - grep -v '^ *+' conftest.er1 >conftest.err
  18532. - rm -f conftest.er1
  18533. - cat conftest.err >&5
  18534. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18535. - (exit $ac_status); } && {
  18536. - test -z "$ac_c_werror_flag" ||
  18537. - test ! -s conftest.err
  18538. - } && test -s conftest$ac_exeext &&
  18539. - $as_test_x conftest$ac_exeext; then
  18540. +if ac_fn_c_try_link "$LINENO"; then :
  18541. lt_cv_ld_exported_symbols_list=yes
  18542. else
  18543. - echo "$as_me: failed program was:" >&5
  18544. -sed 's/^/| /' conftest.$ac_ext >&5
  18545. -
  18546. - lt_cv_ld_exported_symbols_list=no
  18547. + lt_cv_ld_exported_symbols_list=no
  18548. fi
  18549. -
  18550. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18551. - conftest$ac_exeext conftest.$ac_ext
  18552. - LDFLAGS="$save_LDFLAGS"
  18553. +rm -f core conftest.err conftest.$ac_objext \
  18554. + conftest$ac_exeext conftest.$ac_ext
  18555. + LDFLAGS="$save_LDFLAGS"
  18556. fi
  18557. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  18558. -echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  18559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  18560. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  18561. case $host_os in
  18562. - rhapsody* | darwin1.[0123])
  18563. + rhapsody* | darwin1.[012])
  18564. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  18565. darwin1.*)
  18566. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18567. - darwin*)
  18568. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18569. + darwin*) # darwin 5.x on
  18570. # if running on 10.5 or later, the deployment target defaults
  18571. # to the OS version, if on x86, and 10.4, the deployment
  18572. # target defaults to 10.4. Don't you love it?
  18573. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  18574. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  18575. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18576. - 10.[012]*)
  18577. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18578. - 10.*)
  18579. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18580. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  18581. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18582. + 10.[012]*)
  18583. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  18584. + 10.*)
  18585. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  18586. esac
  18587. ;;
  18588. esac
  18589. @@ -7331,40 +6317,147 @@
  18590. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  18591. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  18592. else
  18593. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  18594. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18595. fi
  18596. if test "$DSYMUTIL" != ":"; then
  18597. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  18598. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  18599. else
  18600. _lt_dsymutil=
  18601. fi
  18602. ;;
  18603. esac
  18604. +ac_ext=c
  18605. +ac_cpp='$CPP $CPPFLAGS'
  18606. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18607. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18608. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18609. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  18610. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  18611. +# On Suns, sometimes $CPP names a directory.
  18612. +if test -n "$CPP" && test -d "$CPP"; then
  18613. + CPP=
  18614. +fi
  18615. +if test -z "$CPP"; then
  18616. + if test "${ac_cv_prog_CPP+set}" = set; then :
  18617. + $as_echo_n "(cached) " >&6
  18618. +else
  18619. + # Double quotes because CPP needs to be expanded
  18620. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18621. + do
  18622. + ac_preproc_ok=false
  18623. +for ac_c_preproc_warn_flag in '' yes
  18624. +do
  18625. + # Use a header file that comes with gcc, so configuring glibc
  18626. + # with a fresh cross-compiler works.
  18627. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18628. + # <limits.h> exists even on freestanding compilers.
  18629. + # On the NeXT, cc -E runs the code through the compiler's parser,
  18630. + # not just through cpp. "Syntax error" is here to catch this case.
  18631. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18632. +/* end confdefs.h. */
  18633. +#ifdef __STDC__
  18634. +# include <limits.h>
  18635. +#else
  18636. +# include <assert.h>
  18637. +#endif
  18638. + Syntax error
  18639. +_ACEOF
  18640. +if ac_fn_c_try_cpp "$LINENO"; then :
  18641. -enable_dlopen=no
  18642. -enable_win32_dll=no
  18643. +else
  18644. + # Broken: fails on valid input.
  18645. +continue
  18646. +fi
  18647. +rm -f conftest.err conftest.$ac_ext
  18648. -# Check whether --enable-libtool-lock was given.
  18649. -if test "${enable_libtool_lock+set}" = set; then
  18650. - enableval=$enable_libtool_lock;
  18651. + # OK, works on sane cases. Now check whether nonexistent headers
  18652. + # can be detected and how.
  18653. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18654. +/* end confdefs.h. */
  18655. +#include <ac_nonexistent.h>
  18656. +_ACEOF
  18657. +if ac_fn_c_try_cpp "$LINENO"; then :
  18658. + # Broken: success on invalid input.
  18659. +continue
  18660. +else
  18661. + # Passes both tests.
  18662. +ac_preproc_ok=:
  18663. +break
  18664. fi
  18665. +rm -f conftest.err conftest.$ac_ext
  18666. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  18667. +done
  18668. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18669. +rm -f conftest.err conftest.$ac_ext
  18670. +if $ac_preproc_ok; then :
  18671. + break
  18672. +fi
  18673. + done
  18674. + ac_cv_prog_CPP=$CPP
  18675. -# Check whether --with-pic was given.
  18676. -if test "${with_pic+set}" = set; then
  18677. - withval=$with_pic; pic_mode="$withval"
  18678. +fi
  18679. + CPP=$ac_cv_prog_CPP
  18680. else
  18681. - pic_mode=default
  18682. + ac_cv_prog_CPP=$CPP
  18683. fi
  18684. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  18685. +$as_echo "$CPP" >&6; }
  18686. +ac_preproc_ok=false
  18687. +for ac_c_preproc_warn_flag in '' yes
  18688. +do
  18689. + # Use a header file that comes with gcc, so configuring glibc
  18690. + # with a fresh cross-compiler works.
  18691. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18692. + # <limits.h> exists even on freestanding compilers.
  18693. + # On the NeXT, cc -E runs the code through the compiler's parser,
  18694. + # not just through cpp. "Syntax error" is here to catch this case.
  18695. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18696. +/* end confdefs.h. */
  18697. +#ifdef __STDC__
  18698. +# include <limits.h>
  18699. +#else
  18700. +# include <assert.h>
  18701. +#endif
  18702. + Syntax error
  18703. +_ACEOF
  18704. +if ac_fn_c_try_cpp "$LINENO"; then :
  18705. -test -z "$pic_mode" && pic_mode=default
  18706. +else
  18707. + # Broken: fails on valid input.
  18708. +continue
  18709. +fi
  18710. +rm -f conftest.err conftest.$ac_ext
  18711. +
  18712. + # OK, works on sane cases. Now check whether nonexistent headers
  18713. + # can be detected and how.
  18714. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18715. +/* end confdefs.h. */
  18716. +#include <ac_nonexistent.h>
  18717. +_ACEOF
  18718. +if ac_fn_c_try_cpp "$LINENO"; then :
  18719. + # Broken: success on invalid input.
  18720. +continue
  18721. +else
  18722. + # Passes both tests.
  18723. +ac_preproc_ok=:
  18724. +break
  18725. +fi
  18726. +rm -f conftest.err conftest.$ac_ext
  18727. +
  18728. +done
  18729. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18730. +rm -f conftest.err conftest.$ac_ext
  18731. +if $ac_preproc_ok; then :
  18732. +
  18733. +else
  18734. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18735. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18736. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  18737. +See \`config.log' for more details." "$LINENO" 5; }
  18738. +fi
  18739. -# Use C for the default configuration in the libtool script
  18740. -tagname=
  18741. -lt_save_CC="$CC"
  18742. ac_ext=c
  18743. ac_cpp='$CPP $CPPFLAGS'
  18744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18745. @@ -7372,5904 +6465,2810 @@
  18746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18747. -# Source file extension for C test sources.
  18748. -ac_ext=c
  18749. -
  18750. -# Object file extension for compiled C test sources.
  18751. -objext=o
  18752. -objext=$objext
  18753. -
  18754. -# Code to be used in simple compile tests
  18755. -lt_simple_compile_test_code="int some_variable = 0;"
  18756. -
  18757. -# Code to be used in simple link tests
  18758. -lt_simple_link_test_code='int main(){return(0);}'
  18759. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18760. +$as_echo_n "checking for ANSI C header files... " >&6; }
  18761. +if test "${ac_cv_header_stdc+set}" = set; then :
  18762. + $as_echo_n "(cached) " >&6
  18763. +else
  18764. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18765. +/* end confdefs.h. */
  18766. +#include <stdlib.h>
  18767. +#include <stdarg.h>
  18768. +#include <string.h>
  18769. +#include <float.h>
  18770. +int
  18771. +main ()
  18772. +{
  18773. -# If no C compiler was specified, use CC.
  18774. -LTCC=${LTCC-"$CC"}
  18775. + ;
  18776. + return 0;
  18777. +}
  18778. +_ACEOF
  18779. +if ac_fn_c_try_compile "$LINENO"; then :
  18780. + ac_cv_header_stdc=yes
  18781. +else
  18782. + ac_cv_header_stdc=no
  18783. +fi
  18784. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18785. -# If no C compiler flags were specified, use CFLAGS.
  18786. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  18787. +if test $ac_cv_header_stdc = yes; then
  18788. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18789. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18790. +/* end confdefs.h. */
  18791. +#include <string.h>
  18792. -# Allow CC to be a program name with arguments.
  18793. -compiler=$CC
  18794. +_ACEOF
  18795. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18796. + $EGREP "memchr" >/dev/null 2>&1; then :
  18797. +else
  18798. + ac_cv_header_stdc=no
  18799. +fi
  18800. +rm -f conftest*
  18801. -# save warnings/boilerplate of simple test code
  18802. -ac_outfile=conftest.$ac_objext
  18803. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  18804. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18805. -_lt_compiler_boilerplate=`cat conftest.err`
  18806. -$rm conftest*
  18807. +fi
  18808. -ac_outfile=conftest.$ac_objext
  18809. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  18810. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18811. -_lt_linker_boilerplate=`cat conftest.err`
  18812. -$rm -r conftest*
  18813. +if test $ac_cv_header_stdc = yes; then
  18814. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18815. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18816. +/* end confdefs.h. */
  18817. +#include <stdlib.h>
  18818. +_ACEOF
  18819. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18820. + $EGREP "free" >/dev/null 2>&1; then :
  18821. +else
  18822. + ac_cv_header_stdc=no
  18823. +fi
  18824. +rm -f conftest*
  18825. -lt_prog_compiler_no_builtin_flag=
  18826. +fi
  18827. -if test "$GCC" = yes; then
  18828. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  18829. +if test $ac_cv_header_stdc = yes; then
  18830. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18831. + if test "$cross_compiling" = yes; then :
  18832. + :
  18833. +else
  18834. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18835. +/* end confdefs.h. */
  18836. +#include <ctype.h>
  18837. +#include <stdlib.h>
  18838. +#if ((' ' & 0x0FF) == 0x020)
  18839. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18840. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18841. +#else
  18842. +# define ISLOWER(c) \
  18843. + (('a' <= (c) && (c) <= 'i') \
  18844. + || ('j' <= (c) && (c) <= 'r') \
  18845. + || ('s' <= (c) && (c) <= 'z'))
  18846. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18847. +#endif
  18848. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18849. +int
  18850. +main ()
  18851. +{
  18852. + int i;
  18853. + for (i = 0; i < 256; i++)
  18854. + if (XOR (islower (i), ISLOWER (i))
  18855. + || toupper (i) != TOUPPER (i))
  18856. + return 2;
  18857. + return 0;
  18858. +}
  18859. +_ACEOF
  18860. +if ac_fn_c_try_run "$LINENO"; then :
  18861. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  18862. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  18863. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  18864. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18865. else
  18866. - lt_cv_prog_compiler_rtti_exceptions=no
  18867. - ac_outfile=conftest.$ac_objext
  18868. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18869. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  18870. - # Insert the option either (1) after the last *FLAGS variable, or
  18871. - # (2) before a word containing "conftest.", or (3) at the end.
  18872. - # Note that $ac_compile itself does not contain backslashes and begins
  18873. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  18874. - # The option is referenced via a variable to avoid confusing sed.
  18875. - lt_compile=`echo "$ac_compile" | $SED \
  18876. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18877. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18878. - -e 's:$: $lt_compiler_flag:'`
  18879. - (eval echo "\"\$as_me:7438: $lt_compile\"" >&5)
  18880. - (eval "$lt_compile" 2>conftest.err)
  18881. - ac_status=$?
  18882. - cat conftest.err >&5
  18883. - echo "$as_me:7442: \$? = $ac_status" >&5
  18884. - if (exit $ac_status) && test -s "$ac_outfile"; then
  18885. - # The compiler can only warn and ignore the option if not recognized
  18886. - # So say no if there are warnings other than the usual output.
  18887. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18888. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18889. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  18890. - lt_cv_prog_compiler_rtti_exceptions=yes
  18891. - fi
  18892. - fi
  18893. - $rm conftest*
  18894. -
  18895. + ac_cv_header_stdc=no
  18896. +fi
  18897. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18898. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18899. fi
  18900. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  18901. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  18902. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  18903. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  18904. -else
  18905. - :
  18906. fi
  18907. +fi
  18908. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18909. +$as_echo "$ac_cv_header_stdc" >&6; }
  18910. +if test $ac_cv_header_stdc = yes; then
  18911. +
  18912. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18913. fi
  18914. -lt_prog_compiler_wl=
  18915. -lt_prog_compiler_pic=
  18916. -lt_prog_compiler_static=
  18917. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  18918. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  18919. + inttypes.h stdint.h unistd.h
  18920. +do :
  18921. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18922. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  18923. +"
  18924. +eval as_val=\$$as_ac_Header
  18925. + if test "x$as_val" = x""yes; then :
  18926. + cat >>confdefs.h <<_ACEOF
  18927. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18928. +_ACEOF
  18929. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  18930. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  18931. +fi
  18932. - if test "$GCC" = yes; then
  18933. - lt_prog_compiler_wl='-Wl,'
  18934. - lt_prog_compiler_static='-static'
  18935. +done
  18936. - case $host_os in
  18937. - aix*)
  18938. - # All AIX code is PIC.
  18939. - if test "$host_cpu" = ia64; then
  18940. - # AIX 5 now supports IA64 processor
  18941. - lt_prog_compiler_static='-Bstatic'
  18942. - fi
  18943. - ;;
  18944. - amigaos*)
  18945. - # FIXME: we need at least 68020 code to build shared libraries, but
  18946. - # adding the `-m68020' flag to GCC prevents building anything better,
  18947. - # like `-m68040'.
  18948. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  18949. - ;;
  18950. +for ac_header in dlfcn.h
  18951. +do :
  18952. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  18953. +"
  18954. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  18955. + cat >>confdefs.h <<_ACEOF
  18956. +#define HAVE_DLFCN_H 1
  18957. +_ACEOF
  18958. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  18959. - # PIC is the default for these OSes.
  18960. - ;;
  18961. +fi
  18962. - mingw* | cygwin* | pw32* | os2*)
  18963. - # This hack is so that the source file can tell whether it is being
  18964. - # built for inclusion in a dll (and should export symbols for example).
  18965. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  18966. - # (--disable-auto-import) libraries
  18967. - lt_prog_compiler_pic='-DDLL_EXPORT'
  18968. - ;;
  18969. +done
  18970. - darwin* | rhapsody*)
  18971. - # PIC is the default on this platform
  18972. - # Common symbols not allowed in MH_DYLIB files
  18973. - lt_prog_compiler_pic='-fno-common'
  18974. - ;;
  18975. - interix[3-9]*)
  18976. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  18977. - # Instead, we relocate shared libraries at runtime.
  18978. - ;;
  18979. - msdosdjgpp*)
  18980. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  18981. - # on systems that don't support them.
  18982. - lt_prog_compiler_can_build_shared=no
  18983. - enable_shared=no
  18984. - ;;
  18985. +# Set options
  18986. - sysv4*MP*)
  18987. - if test -d /usr/nec; then
  18988. - lt_prog_compiler_pic=-Kconform_pic
  18989. - fi
  18990. - ;;
  18991. - hpux*)
  18992. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  18993. - # not for PA HP-UX.
  18994. - case $host_cpu in
  18995. - hppa*64*|ia64*)
  18996. - # +Z the default
  18997. - ;;
  18998. - *)
  18999. - lt_prog_compiler_pic='-fPIC'
  19000. - ;;
  19001. - esac
  19002. - ;;
  19003. + enable_dlopen=no
  19004. +
  19005. +
  19006. + enable_win32_dll=no
  19007. +
  19008. +
  19009. + # Check whether --enable-shared was given.
  19010. +if test "${enable_shared+set}" = set; then :
  19011. + enableval=$enable_shared; p=${PACKAGE-default}
  19012. + case $enableval in
  19013. + yes) enable_shared=yes ;;
  19014. + no) enable_shared=no ;;
  19015. *)
  19016. - lt_prog_compiler_pic='-fPIC'
  19017. + enable_shared=no
  19018. + # Look at the argument we got. We use all the common list separators.
  19019. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19020. + for pkg in $enableval; do
  19021. + IFS="$lt_save_ifs"
  19022. + if test "X$pkg" = "X$p"; then
  19023. + enable_shared=yes
  19024. + fi
  19025. + done
  19026. + IFS="$lt_save_ifs"
  19027. ;;
  19028. esac
  19029. - else
  19030. - # PORTME Check for flag to pass linker flags through the system compiler.
  19031. - case $host_os in
  19032. - aix*)
  19033. - lt_prog_compiler_wl='-Wl,'
  19034. - if test "$host_cpu" = ia64; then
  19035. - # AIX 5 now supports IA64 processor
  19036. - lt_prog_compiler_static='-Bstatic'
  19037. - else
  19038. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  19039. - fi
  19040. - ;;
  19041. - darwin*)
  19042. - # PIC is the default on this platform
  19043. - # Common symbols not allowed in MH_DYLIB files
  19044. - case $cc_basename in
  19045. - xlc*)
  19046. - lt_prog_compiler_pic='-qnocommon'
  19047. - lt_prog_compiler_wl='-Wl,'
  19048. - ;;
  19049. - esac
  19050. - ;;
  19051. +else
  19052. + enable_shared=yes
  19053. +fi
  19054. - mingw* | cygwin* | pw32* | os2*)
  19055. - # This hack is so that the source file can tell whether it is being
  19056. - # built for inclusion in a dll (and should export symbols for example).
  19057. - lt_prog_compiler_pic='-DDLL_EXPORT'
  19058. - ;;
  19059. - hpux9* | hpux10* | hpux11*)
  19060. - lt_prog_compiler_wl='-Wl,'
  19061. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19062. - # not for PA HP-UX.
  19063. - case $host_cpu in
  19064. - hppa*64*|ia64*)
  19065. - # +Z the default
  19066. - ;;
  19067. - *)
  19068. - lt_prog_compiler_pic='+Z'
  19069. - ;;
  19070. - esac
  19071. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  19072. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  19073. - ;;
  19074. - irix5* | irix6* | nonstopux*)
  19075. - lt_prog_compiler_wl='-Wl,'
  19076. - # PIC (with -KPIC) is the default.
  19077. - lt_prog_compiler_static='-non_shared'
  19078. - ;;
  19079. - newsos6)
  19080. - lt_prog_compiler_pic='-KPIC'
  19081. - lt_prog_compiler_static='-Bstatic'
  19082. - ;;
  19083. - linux* | k*bsd*-gnu)
  19084. - case $cc_basename in
  19085. - icc* | ecc*)
  19086. - lt_prog_compiler_wl='-Wl,'
  19087. - lt_prog_compiler_pic='-KPIC'
  19088. - lt_prog_compiler_static='-static'
  19089. - ;;
  19090. - pgcc* | pgf77* | pgf90* | pgf95*)
  19091. - # Portland Group compilers (*not* the Pentium gcc compiler,
  19092. - # which looks to be a dead project)
  19093. - lt_prog_compiler_wl='-Wl,'
  19094. - lt_prog_compiler_pic='-fpic'
  19095. - lt_prog_compiler_static='-Bstatic'
  19096. - ;;
  19097. - ccc*)
  19098. - lt_prog_compiler_wl='-Wl,'
  19099. - # All Alpha code is PIC.
  19100. - lt_prog_compiler_static='-non_shared'
  19101. - ;;
  19102. - *)
  19103. - case `$CC -V 2>&1 | sed 5q` in
  19104. - *Sun\ C*)
  19105. - # Sun C 5.9
  19106. - lt_prog_compiler_pic='-KPIC'
  19107. - lt_prog_compiler_static='-Bstatic'
  19108. - lt_prog_compiler_wl='-Wl,'
  19109. - ;;
  19110. - *Sun\ F*)
  19111. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  19112. - lt_prog_compiler_pic='-KPIC'
  19113. - lt_prog_compiler_static='-Bstatic'
  19114. - lt_prog_compiler_wl=''
  19115. - ;;
  19116. - esac
  19117. - ;;
  19118. - esac
  19119. - ;;
  19120. - osf3* | osf4* | osf5*)
  19121. - lt_prog_compiler_wl='-Wl,'
  19122. - # All OSF/1 code is PIC.
  19123. - lt_prog_compiler_static='-non_shared'
  19124. - ;;
  19125. - rdos*)
  19126. - lt_prog_compiler_static='-non_shared'
  19127. - ;;
  19128. - solaris*)
  19129. - lt_prog_compiler_pic='-KPIC'
  19130. - lt_prog_compiler_static='-Bstatic'
  19131. - case $cc_basename in
  19132. - f77* | f90* | f95*)
  19133. - lt_prog_compiler_wl='-Qoption ld ';;
  19134. - *)
  19135. - lt_prog_compiler_wl='-Wl,';;
  19136. - esac
  19137. - ;;
  19138. - sunos4*)
  19139. - lt_prog_compiler_wl='-Qoption ld '
  19140. - lt_prog_compiler_pic='-PIC'
  19141. - lt_prog_compiler_static='-Bstatic'
  19142. + # Check whether --enable-static was given.
  19143. +if test "${enable_static+set}" = set; then :
  19144. + enableval=$enable_static; p=${PACKAGE-default}
  19145. + case $enableval in
  19146. + yes) enable_static=yes ;;
  19147. + no) enable_static=no ;;
  19148. + *)
  19149. + enable_static=no
  19150. + # Look at the argument we got. We use all the common list separators.
  19151. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19152. + for pkg in $enableval; do
  19153. + IFS="$lt_save_ifs"
  19154. + if test "X$pkg" = "X$p"; then
  19155. + enable_static=yes
  19156. + fi
  19157. + done
  19158. + IFS="$lt_save_ifs"
  19159. ;;
  19160. + esac
  19161. +else
  19162. + enable_static=yes
  19163. +fi
  19164. - sysv4 | sysv4.2uw2* | sysv4.3*)
  19165. - lt_prog_compiler_wl='-Wl,'
  19166. - lt_prog_compiler_pic='-KPIC'
  19167. - lt_prog_compiler_static='-Bstatic'
  19168. - ;;
  19169. - sysv4*MP*)
  19170. - if test -d /usr/nec ;then
  19171. - lt_prog_compiler_pic='-Kconform_pic'
  19172. - lt_prog_compiler_static='-Bstatic'
  19173. - fi
  19174. - ;;
  19175. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  19176. - lt_prog_compiler_wl='-Wl,'
  19177. - lt_prog_compiler_pic='-KPIC'
  19178. - lt_prog_compiler_static='-Bstatic'
  19179. - ;;
  19180. - unicos*)
  19181. - lt_prog_compiler_wl='-Wl,'
  19182. - lt_prog_compiler_can_build_shared=no
  19183. - ;;
  19184. - uts4*)
  19185. - lt_prog_compiler_pic='-pic'
  19186. - lt_prog_compiler_static='-Bstatic'
  19187. - ;;
  19188. - *)
  19189. - lt_prog_compiler_can_build_shared=no
  19190. - ;;
  19191. - esac
  19192. - fi
  19193. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  19194. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  19195. -#
  19196. -# Check to make sure the PIC flag actually works.
  19197. -#
  19198. -if test -n "$lt_prog_compiler_pic"; then
  19199. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  19200. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  19201. -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  19202. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19203. -else
  19204. - lt_cv_prog_compiler_pic_works=no
  19205. - ac_outfile=conftest.$ac_objext
  19206. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19207. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  19208. - # Insert the option either (1) after the last *FLAGS variable, or
  19209. - # (2) before a word containing "conftest.", or (3) at the end.
  19210. - # Note that $ac_compile itself does not contain backslashes and begins
  19211. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  19212. - # The option is referenced via a variable to avoid confusing sed.
  19213. - lt_compile=`echo "$ac_compile" | $SED \
  19214. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19215. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19216. - -e 's:$: $lt_compiler_flag:'`
  19217. - (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
  19218. - (eval "$lt_compile" 2>conftest.err)
  19219. - ac_status=$?
  19220. - cat conftest.err >&5
  19221. - echo "$as_me:7732: \$? = $ac_status" >&5
  19222. - if (exit $ac_status) && test -s "$ac_outfile"; then
  19223. - # The compiler can only warn and ignore the option if not recognized
  19224. - # So say no if there are warnings other than the usual output.
  19225. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19226. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19227. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19228. - lt_cv_prog_compiler_pic_works=yes
  19229. - fi
  19230. - fi
  19231. - $rm conftest*
  19232. +# Check whether --with-pic was given.
  19233. +if test "${with_pic+set}" = set; then :
  19234. + withval=$with_pic; pic_mode="$withval"
  19235. +else
  19236. + pic_mode=default
  19237. fi
  19238. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  19239. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  19240. -if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  19241. - case $lt_prog_compiler_pic in
  19242. - "" | " "*) ;;
  19243. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  19244. - esac
  19245. -else
  19246. - lt_prog_compiler_pic=
  19247. - lt_prog_compiler_can_build_shared=no
  19248. -fi
  19249. -fi
  19250. -case $host_os in
  19251. - # For platforms which do not support PIC, -DPIC is meaningless:
  19252. - *djgpp*)
  19253. - lt_prog_compiler_pic=
  19254. - ;;
  19255. - *)
  19256. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  19257. - ;;
  19258. -esac
  19259. +test -z "$pic_mode" && pic_mode=default
  19260. -#
  19261. -# Check to make sure the static flag actually works.
  19262. -#
  19263. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  19264. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  19265. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  19266. -if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  19267. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19268. -else
  19269. - lt_cv_prog_compiler_static_works=no
  19270. - save_LDFLAGS="$LDFLAGS"
  19271. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  19272. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  19273. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  19274. - # The linker can only warn and ignore the option if not recognized
  19275. - # So say no if there are warnings
  19276. - if test -s conftest.err; then
  19277. - # Append any errors to the config.log.
  19278. - cat conftest.err 1>&5
  19279. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  19280. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19281. - if diff conftest.exp conftest.er2 >/dev/null; then
  19282. - lt_cv_prog_compiler_static_works=yes
  19283. - fi
  19284. - else
  19285. - lt_cv_prog_compiler_static_works=yes
  19286. - fi
  19287. - fi
  19288. - $rm -r conftest*
  19289. - LDFLAGS="$save_LDFLAGS"
  19290. -fi
  19291. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  19292. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  19293. -if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  19294. - :
  19295. +
  19296. +
  19297. +
  19298. +
  19299. + # Check whether --enable-fast-install was given.
  19300. +if test "${enable_fast_install+set}" = set; then :
  19301. + enableval=$enable_fast_install; p=${PACKAGE-default}
  19302. + case $enableval in
  19303. + yes) enable_fast_install=yes ;;
  19304. + no) enable_fast_install=no ;;
  19305. + *)
  19306. + enable_fast_install=no
  19307. + # Look at the argument we got. We use all the common list separators.
  19308. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19309. + for pkg in $enableval; do
  19310. + IFS="$lt_save_ifs"
  19311. + if test "X$pkg" = "X$p"; then
  19312. + enable_fast_install=yes
  19313. + fi
  19314. + done
  19315. + IFS="$lt_save_ifs"
  19316. + ;;
  19317. + esac
  19318. else
  19319. - lt_prog_compiler_static=
  19320. + enable_fast_install=yes
  19321. fi
  19322. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  19323. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  19324. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  19325. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19326. -else
  19327. - lt_cv_prog_compiler_c_o=no
  19328. - $rm -r conftest 2>/dev/null
  19329. - mkdir conftest
  19330. - cd conftest
  19331. - mkdir out
  19332. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19333. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  19334. - # Insert the option either (1) after the last *FLAGS variable, or
  19335. - # (2) before a word containing "conftest.", or (3) at the end.
  19336. - # Note that $ac_compile itself does not contain backslashes and begins
  19337. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  19338. - lt_compile=`echo "$ac_compile" | $SED \
  19339. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19340. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19341. - -e 's:$: $lt_compiler_flag:'`
  19342. - (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
  19343. - (eval "$lt_compile" 2>out/conftest.err)
  19344. - ac_status=$?
  19345. - cat out/conftest.err >&5
  19346. - echo "$as_me:7836: \$? = $ac_status" >&5
  19347. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19348. - then
  19349. - # The compiler can only warn and ignore the option if not recognized
  19350. - # So say no if there are warnings
  19351. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19352. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19353. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19354. - lt_cv_prog_compiler_c_o=yes
  19355. - fi
  19356. - fi
  19357. - chmod u+w . 2>&5
  19358. - $rm conftest*
  19359. - # SGI C++ compiler will create directory out/ii_files/ for
  19360. - # template instantiation
  19361. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  19362. - $rm out/* && rmdir out
  19363. - cd ..
  19364. - rmdir conftest
  19365. - $rm conftest*
  19366. -fi
  19367. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  19368. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  19369. -hard_links="nottested"
  19370. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  19371. - # do not overwrite the value of need_locks provided by the user
  19372. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  19373. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  19374. - hard_links=yes
  19375. - $rm conftest*
  19376. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19377. - touch conftest.a
  19378. - ln conftest.a conftest.b 2>&5 || hard_links=no
  19379. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19380. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  19381. -echo "${ECHO_T}$hard_links" >&6; }
  19382. - if test "$hard_links" = no; then
  19383. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  19384. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  19385. - need_locks=warn
  19386. - fi
  19387. -else
  19388. - need_locks=no
  19389. -fi
  19390. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19391. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  19392. - runpath_var=
  19393. - allow_undefined_flag=
  19394. - enable_shared_with_static_runtimes=no
  19395. - archive_cmds=
  19396. - archive_expsym_cmds=
  19397. - old_archive_From_new_cmds=
  19398. - old_archive_from_expsyms_cmds=
  19399. - export_dynamic_flag_spec=
  19400. - whole_archive_flag_spec=
  19401. - thread_safe_flag_spec=
  19402. - hardcode_libdir_flag_spec=
  19403. - hardcode_libdir_flag_spec_ld=
  19404. - hardcode_libdir_separator=
  19405. - hardcode_direct=no
  19406. - hardcode_minus_L=no
  19407. - hardcode_shlibpath_var=unsupported
  19408. - link_all_deplibs=unknown
  19409. - hardcode_automatic=no
  19410. - module_cmds=
  19411. - module_expsym_cmds=
  19412. - always_export_symbols=no
  19413. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19414. - # include_expsyms should be a list of space-separated symbols to be *always*
  19415. - # included in the symbol list
  19416. - include_expsyms=
  19417. - # exclude_expsyms can be an extended regexp of symbols to exclude
  19418. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  19419. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  19420. - # as well as any symbol that contains `d'.
  19421. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  19422. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  19423. - # platforms (ab)use it in PIC code, but their linkers get confused if
  19424. - # the symbol is explicitly referenced. Since portable code cannot
  19425. - # rely on this symbol name, it's probably fine to never include it in
  19426. - # preloaded symbol tables.
  19427. - # Exclude shared library initialization/finalization symbols.
  19428. - extract_expsyms_cmds=
  19429. - # Just being paranoid about ensuring that cc_basename is set.
  19430. - for cc_temp in $compiler""; do
  19431. - case $cc_temp in
  19432. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19433. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19434. - \-*) ;;
  19435. - *) break;;
  19436. - esac
  19437. -done
  19438. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19439. - case $host_os in
  19440. - cygwin* | mingw* | pw32*)
  19441. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  19442. - # When not using gcc, we currently assume that we are using
  19443. - # Microsoft Visual C++.
  19444. - if test "$GCC" != yes; then
  19445. - with_gnu_ld=no
  19446. - fi
  19447. - ;;
  19448. - interix*)
  19449. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  19450. - with_gnu_ld=yes
  19451. - ;;
  19452. - openbsd*)
  19453. - with_gnu_ld=no
  19454. - ;;
  19455. - esac
  19456. - ld_shlibs=yes
  19457. - if test "$with_gnu_ld" = yes; then
  19458. - # If archive_cmds runs LD, not CC, wlarc should be empty
  19459. - wlarc='${wl}'
  19460. - # Set some defaults for GNU ld with shared library support. These
  19461. - # are reset later if shared libraries are not supported. Putting them
  19462. - # here allows them to be overridden if necessary.
  19463. - runpath_var=LD_RUN_PATH
  19464. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  19465. - export_dynamic_flag_spec='${wl}--export-dynamic'
  19466. - # ancient GNU ld didn't support --whole-archive et. al.
  19467. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  19468. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19469. - else
  19470. - whole_archive_flag_spec=
  19471. - fi
  19472. - supports_anon_versioning=no
  19473. - case `$LD -v 2>/dev/null` in
  19474. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  19475. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  19476. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  19477. - *\ 2.11.*) ;; # other 2.11 versions
  19478. - *) supports_anon_versioning=yes ;;
  19479. - esac
  19480. +# This can be used to rebuild libtool when needed
  19481. +LIBTOOL_DEPS="$ltmain"
  19482. - # See if GNU ld supports shared libraries.
  19483. - case $host_os in
  19484. - aix[3-9]*)
  19485. - # On AIX/PPC, the GNU linker is very broken
  19486. - if test "$host_cpu" != ia64; then
  19487. - ld_shlibs=no
  19488. - cat <<EOF 1>&2
  19489. +# Always use our own libtool.
  19490. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  19491. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  19492. -*** to be unable to reliably create shared libraries on AIX.
  19493. -*** Therefore, libtool is disabling shared libraries support. If you
  19494. -*** really care for shared libraries, you may want to modify your PATH
  19495. -*** so that a non-GNU linker is found, and then restart.
  19496. -EOF
  19497. - fi
  19498. - ;;
  19499. - amigaos*)
  19500. - 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)'
  19501. - hardcode_libdir_flag_spec='-L$libdir'
  19502. - hardcode_minus_L=yes
  19503. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  19504. - # that the semantics of dynamic libraries on AmigaOS, at least up
  19505. - # to version 4, is to share data among multiple programs linked
  19506. - # with the same dynamic library. Since this doesn't match the
  19507. - # behavior of shared libraries on other platforms, we can't use
  19508. - # them.
  19509. - ld_shlibs=no
  19510. - ;;
  19511. - beos*)
  19512. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19513. - allow_undefined_flag=unsupported
  19514. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  19515. - # support --undefined. This deserves some investigation. FIXME
  19516. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19517. - else
  19518. - ld_shlibs=no
  19519. - fi
  19520. - ;;
  19521. - cygwin* | mingw* | pw32*)
  19522. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  19523. - # as there is no search path for DLLs.
  19524. - hardcode_libdir_flag_spec='-L$libdir'
  19525. - allow_undefined_flag=unsupported
  19526. - always_export_symbols=no
  19527. - enable_shared_with_static_runtimes=yes
  19528. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  19529. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  19530. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  19531. - # If the export-symbols file already is a .def file (1st line
  19532. - # is EXPORTS), use it as is; otherwise, prepend...
  19533. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  19534. - cp $export_symbols $output_objdir/$soname.def;
  19535. - else
  19536. - echo EXPORTS > $output_objdir/$soname.def;
  19537. - cat $export_symbols >> $output_objdir/$soname.def;
  19538. - fi~
  19539. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  19540. - else
  19541. - ld_shlibs=no
  19542. - fi
  19543. - ;;
  19544. - interix[3-9]*)
  19545. - hardcode_direct=no
  19546. - hardcode_shlibpath_var=no
  19547. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19548. - export_dynamic_flag_spec='${wl}-E'
  19549. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  19550. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  19551. - # default) and relocated if they conflict, which is a slow very memory
  19552. - # consuming and fragmenting process. To avoid this, we pick a random,
  19553. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  19554. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  19555. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  19556. - 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'
  19557. - ;;
  19558. - gnu* | linux* | k*bsd*-gnu)
  19559. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19560. - tmp_addflag=
  19561. - case $cc_basename,$host_cpu in
  19562. - pgcc*) # Portland Group C compiler
  19563. - 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'
  19564. - tmp_addflag=' $pic_flag'
  19565. - ;;
  19566. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  19567. - 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'
  19568. - tmp_addflag=' $pic_flag -Mnomain' ;;
  19569. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  19570. - tmp_addflag=' -i_dynamic' ;;
  19571. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  19572. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  19573. - ifc* | ifort*) # Intel Fortran compiler
  19574. - tmp_addflag=' -nofor_main' ;;
  19575. - esac
  19576. - case `$CC -V 2>&1 | sed 5q` in
  19577. - *Sun\ C*) # Sun C 5.9
  19578. - 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'
  19579. - tmp_sharedflag='-G' ;;
  19580. - *Sun\ F*) # Sun Fortran 8.3
  19581. - tmp_sharedflag='-G' ;;
  19582. - *)
  19583. - tmp_sharedflag='-shared' ;;
  19584. - esac
  19585. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19586. - if test $supports_anon_versioning = yes; then
  19587. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  19588. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  19589. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  19590. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  19591. - fi
  19592. - link_all_deplibs=no
  19593. - else
  19594. - ld_shlibs=no
  19595. - fi
  19596. - ;;
  19597. - netbsd* | netbsdelf*-gnu)
  19598. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19599. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  19600. - wlarc=
  19601. - else
  19602. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19603. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19604. - fi
  19605. - ;;
  19606. - solaris*)
  19607. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  19608. - ld_shlibs=no
  19609. - cat <<EOF 1>&2
  19610. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  19611. -*** create shared libraries on Solaris systems. Therefore, libtool
  19612. -*** is disabling shared libraries support. We urge you to upgrade GNU
  19613. -*** binutils to release 2.9.1 or newer. Another option is to modify
  19614. -*** your PATH or compiler configuration so that the native linker is
  19615. -*** used, and then restart.
  19616. -EOF
  19617. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19618. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19619. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19620. - else
  19621. - ld_shlibs=no
  19622. - fi
  19623. - ;;
  19624. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  19625. - case `$LD -v 2>&1` in
  19626. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  19627. - ld_shlibs=no
  19628. - cat <<_LT_EOF 1>&2
  19629. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  19630. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  19631. -*** is disabling shared libraries support. We urge you to upgrade GNU
  19632. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  19633. -*** your PATH or compiler configuration so that the native linker is
  19634. -*** used, and then restart.
  19635. -_LT_EOF
  19636. - ;;
  19637. - *)
  19638. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19639. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  19640. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  19641. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  19642. - else
  19643. - ld_shlibs=no
  19644. - fi
  19645. - ;;
  19646. - esac
  19647. - ;;
  19648. - sunos4*)
  19649. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  19650. - wlarc=
  19651. - hardcode_direct=yes
  19652. - hardcode_shlibpath_var=no
  19653. - ;;
  19654. - *)
  19655. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19656. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19657. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19658. - else
  19659. - ld_shlibs=no
  19660. - fi
  19661. - ;;
  19662. - esac
  19663. - if test "$ld_shlibs" = no; then
  19664. - runpath_var=
  19665. - hardcode_libdir_flag_spec=
  19666. - export_dynamic_flag_spec=
  19667. - whole_archive_flag_spec=
  19668. - fi
  19669. - else
  19670. - # PORTME fill in a description of your system's linker (not GNU ld)
  19671. - case $host_os in
  19672. - aix3*)
  19673. - allow_undefined_flag=unsupported
  19674. - always_export_symbols=yes
  19675. - 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'
  19676. - # Note: this linker hardcodes the directories in LIBPATH if there
  19677. - # are no directories specified by -L.
  19678. - hardcode_minus_L=yes
  19679. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  19680. - # Neither direct hardcoding nor static linking is supported with a
  19681. - # broken collect2.
  19682. - hardcode_direct=unsupported
  19683. - fi
  19684. - ;;
  19685. - aix[4-9]*)
  19686. - if test "$host_cpu" = ia64; then
  19687. - # On IA64, the linker does run time linking by default, so we don't
  19688. - # have to do anything special.
  19689. - aix_use_runtimelinking=no
  19690. - exp_sym_flag='-Bexport'
  19691. - no_entry_flag=""
  19692. - else
  19693. - # If we're using GNU nm, then we don't want the "-C" option.
  19694. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  19695. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  19696. - 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'
  19697. - else
  19698. - 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'
  19699. - fi
  19700. - aix_use_runtimelinking=no
  19701. - # Test if we are trying to use run time linking or normal
  19702. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  19703. - # need to do runtime linking.
  19704. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  19705. - for ld_flag in $LDFLAGS; do
  19706. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  19707. - aix_use_runtimelinking=yes
  19708. - break
  19709. - fi
  19710. - done
  19711. - ;;
  19712. - esac
  19713. - exp_sym_flag='-bexport'
  19714. - no_entry_flag='-bnoentry'
  19715. - fi
  19716. - # When large executables or shared objects are built, AIX ld can
  19717. - # have problems creating the table of contents. If linking a library
  19718. - # or program results in "error TOC overflow" add -mminimal-toc to
  19719. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  19720. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  19721. - archive_cmds=''
  19722. - hardcode_direct=yes
  19723. - hardcode_libdir_separator=':'
  19724. - link_all_deplibs=yes
  19725. +test -z "$LN_S" && LN_S="ln -s"
  19726. - if test "$GCC" = yes; then
  19727. - case $host_os in aix4.[012]|aix4.[012].*)
  19728. - # We only want to do this on AIX 4.2 and lower, the check
  19729. - # below for broken collect2 doesn't work under 4.3+
  19730. - collect2name=`${CC} -print-prog-name=collect2`
  19731. - if test -f "$collect2name" && \
  19732. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  19733. - then
  19734. - # We have reworked collect2
  19735. - :
  19736. - else
  19737. - # We have old collect2
  19738. - hardcode_direct=unsupported
  19739. - # It fails to find uninstalled libraries when the uninstalled
  19740. - # path is not listed in the libpath. Setting hardcode_minus_L
  19741. - # to unsupported forces relinking
  19742. - hardcode_minus_L=yes
  19743. - hardcode_libdir_flag_spec='-L$libdir'
  19744. - hardcode_libdir_separator=
  19745. - fi
  19746. - ;;
  19747. - esac
  19748. - shared_flag='-shared'
  19749. - if test "$aix_use_runtimelinking" = yes; then
  19750. - shared_flag="$shared_flag "'${wl}-G'
  19751. - fi
  19752. - else
  19753. - # not using gcc
  19754. - if test "$host_cpu" = ia64; then
  19755. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  19756. - # chokes on -Wl,-G. The following line is correct:
  19757. - shared_flag='-G'
  19758. - else
  19759. - if test "$aix_use_runtimelinking" = yes; then
  19760. - shared_flag='${wl}-G'
  19761. - else
  19762. - shared_flag='${wl}-bM:SRE'
  19763. - fi
  19764. - fi
  19765. - fi
  19766. - # It seems that -bexpall does not export symbols beginning with
  19767. - # underscore (_), so it is better to generate a list of symbols to export.
  19768. - always_export_symbols=yes
  19769. - if test "$aix_use_runtimelinking" = yes; then
  19770. - # Warning - without using the other runtime loading flags (-brtl),
  19771. - # -berok will link without error, but may produce a broken library.
  19772. - allow_undefined_flag='-berok'
  19773. - # Determine the default libpath from the value encoded in an empty executable.
  19774. - cat >conftest.$ac_ext <<_ACEOF
  19775. -/* confdefs.h. */
  19776. -_ACEOF
  19777. -cat confdefs.h >>conftest.$ac_ext
  19778. -cat >>conftest.$ac_ext <<_ACEOF
  19779. -/* end confdefs.h. */
  19780. -int
  19781. -main ()
  19782. -{
  19783. - ;
  19784. - return 0;
  19785. -}
  19786. -_ACEOF
  19787. -rm -f conftest.$ac_objext conftest$ac_exeext
  19788. -if { (ac_try="$ac_link"
  19789. -case "(($ac_try" in
  19790. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19791. - *) ac_try_echo=$ac_try;;
  19792. -esac
  19793. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19794. - (eval "$ac_link") 2>conftest.er1
  19795. - ac_status=$?
  19796. - grep -v '^ *+' conftest.er1 >conftest.err
  19797. - rm -f conftest.er1
  19798. - cat conftest.err >&5
  19799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19800. - (exit $ac_status); } && {
  19801. - test -z "$ac_c_werror_flag" ||
  19802. - test ! -s conftest.err
  19803. - } && test -s conftest$ac_exeext &&
  19804. - $as_test_x conftest$ac_exeext; then
  19805. -lt_aix_libpath_sed='
  19806. - /Import File Strings/,/^$/ {
  19807. - /^0/ {
  19808. - s/^0 *\(.*\)$/\1/
  19809. - p
  19810. - }
  19811. - }'
  19812. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19813. -# Check for a 64-bit object if we didn't find anything.
  19814. -if test -z "$aix_libpath"; then
  19815. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19816. -fi
  19817. -else
  19818. - echo "$as_me: failed program was:" >&5
  19819. -sed 's/^/| /' conftest.$ac_ext >&5
  19820. -fi
  19821. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19822. - conftest$ac_exeext conftest.$ac_ext
  19823. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19824. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19825. - 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"
  19826. - else
  19827. - if test "$host_cpu" = ia64; then
  19828. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  19829. - allow_undefined_flag="-z nodefs"
  19830. - 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"
  19831. - else
  19832. - # Determine the default libpath from the value encoded in an empty executable.
  19833. - cat >conftest.$ac_ext <<_ACEOF
  19834. -/* confdefs.h. */
  19835. -_ACEOF
  19836. -cat confdefs.h >>conftest.$ac_ext
  19837. -cat >>conftest.$ac_ext <<_ACEOF
  19838. -/* end confdefs.h. */
  19839. -int
  19840. -main ()
  19841. -{
  19842. - ;
  19843. - return 0;
  19844. -}
  19845. -_ACEOF
  19846. -rm -f conftest.$ac_objext conftest$ac_exeext
  19847. -if { (ac_try="$ac_link"
  19848. -case "(($ac_try" in
  19849. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19850. - *) ac_try_echo=$ac_try;;
  19851. -esac
  19852. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19853. - (eval "$ac_link") 2>conftest.er1
  19854. - ac_status=$?
  19855. - grep -v '^ *+' conftest.er1 >conftest.err
  19856. - rm -f conftest.er1
  19857. - cat conftest.err >&5
  19858. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19859. - (exit $ac_status); } && {
  19860. - test -z "$ac_c_werror_flag" ||
  19861. - test ! -s conftest.err
  19862. - } && test -s conftest$ac_exeext &&
  19863. - $as_test_x conftest$ac_exeext; then
  19864. -lt_aix_libpath_sed='
  19865. - /Import File Strings/,/^$/ {
  19866. - /^0/ {
  19867. - s/^0 *\(.*\)$/\1/
  19868. - p
  19869. - }
  19870. - }'
  19871. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19872. -# Check for a 64-bit object if we didn't find anything.
  19873. -if test -z "$aix_libpath"; then
  19874. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  19875. +
  19876. +
  19877. +if test -n "${ZSH_VERSION+set}" ; then
  19878. + setopt NO_GLOB_SUBST
  19879. fi
  19880. +
  19881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  19882. +$as_echo_n "checking for objdir... " >&6; }
  19883. +if test "${lt_cv_objdir+set}" = set; then :
  19884. + $as_echo_n "(cached) " >&6
  19885. else
  19886. - echo "$as_me: failed program was:" >&5
  19887. -sed 's/^/| /' conftest.$ac_ext >&5
  19888. + rm -f .libs 2>/dev/null
  19889. +mkdir .libs 2>/dev/null
  19890. +if test -d .libs; then
  19891. + lt_cv_objdir=.libs
  19892. +else
  19893. + # MS-DOS does not allow filenames that begin with a dot.
  19894. + lt_cv_objdir=_libs
  19895. +fi
  19896. +rmdir .libs 2>/dev/null
  19897. +fi
  19898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  19899. +$as_echo "$lt_cv_objdir" >&6; }
  19900. +objdir=$lt_cv_objdir
  19901. -fi
  19902. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19903. - conftest$ac_exeext conftest.$ac_ext
  19904. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19905. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19906. - # Warning - without using the other run time loading flags,
  19907. - # -berok will link without error, but may produce a broken library.
  19908. - no_undefined_flag=' ${wl}-bernotok'
  19909. - allow_undefined_flag=' ${wl}-berok'
  19910. - # Exported symbols can be pulled into shared objects from archives
  19911. - whole_archive_flag_spec='$convenience'
  19912. - archive_cmds_need_lc=yes
  19913. - # This is similar to how AIX traditionally builds its shared libraries.
  19914. - 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'
  19915. - fi
  19916. - fi
  19917. - ;;
  19918. - amigaos*)
  19919. - 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)'
  19920. - hardcode_libdir_flag_spec='-L$libdir'
  19921. - hardcode_minus_L=yes
  19922. - # see comment about different semantics on the GNU ld section
  19923. - ld_shlibs=no
  19924. - ;;
  19925. +cat >>confdefs.h <<_ACEOF
  19926. +#define LT_OBJDIR "$lt_cv_objdir/"
  19927. +_ACEOF
  19928. - bsdi[45]*)
  19929. - export_dynamic_flag_spec=-rdynamic
  19930. - ;;
  19931. - cygwin* | mingw* | pw32*)
  19932. - # When not using gcc, we currently assume that we are using
  19933. - # Microsoft Visual C++.
  19934. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  19935. - # no search path for DLLs.
  19936. - hardcode_libdir_flag_spec=' '
  19937. - allow_undefined_flag=unsupported
  19938. - # Tell ltmain to make .lib files, not .a files.
  19939. - libext=lib
  19940. - # Tell ltmain to make .dll files, not .so files.
  19941. - shrext_cmds=".dll"
  19942. - # FIXME: Setting linknames here is a bad hack.
  19943. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  19944. - # The linker will automatically build a .lib file if we build a DLL.
  19945. - old_archive_From_new_cmds='true'
  19946. - # FIXME: Should let the user specify the lib program.
  19947. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  19948. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  19949. - enable_shared_with_static_runtimes=yes
  19950. - ;;
  19951. - darwin* | rhapsody*)
  19952. - case $host_os in
  19953. - rhapsody* | darwin1.[012])
  19954. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  19955. - ;;
  19956. - *) # Darwin 1.3 on
  19957. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  19958. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19959. - else
  19960. - case ${MACOSX_DEPLOYMENT_TARGET} in
  19961. - 10.[012])
  19962. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19963. - ;;
  19964. - 10.*)
  19965. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  19966. - ;;
  19967. - esac
  19968. - fi
  19969. - ;;
  19970. - esac
  19971. - archive_cmds_need_lc=no
  19972. - hardcode_direct=no
  19973. - hardcode_automatic=yes
  19974. - hardcode_shlibpath_var=unsupported
  19975. - whole_archive_flag_spec=''
  19976. - link_all_deplibs=yes
  19977. - if test "$GCC" = yes ; then
  19978. - output_verbose_link_cmd='echo'
  19979. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  19980. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  19981. - 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}"
  19982. - 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}"
  19983. - else
  19984. - case $cc_basename in
  19985. - xlc*)
  19986. - output_verbose_link_cmd='echo'
  19987. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  19988. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19989. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19990. - 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}'
  19991. - 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}'
  19992. - ;;
  19993. - *)
  19994. - ld_shlibs=no
  19995. - ;;
  19996. - esac
  19997. - fi
  19998. - ;;
  19999. - dgux*)
  20000. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20001. - hardcode_libdir_flag_spec='-L$libdir'
  20002. - hardcode_shlibpath_var=no
  20003. - ;;
  20004. - freebsd1*)
  20005. - ld_shlibs=no
  20006. - ;;
  20007. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  20008. - # support. Future versions do this automatically, but an explicit c++rt0.o
  20009. - # does not break anything, and helps significantly (at the cost of a little
  20010. - # extra space).
  20011. - freebsd2.2*)
  20012. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  20013. - hardcode_libdir_flag_spec='-R$libdir'
  20014. - hardcode_direct=yes
  20015. - hardcode_shlibpath_var=no
  20016. - ;;
  20017. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  20018. - freebsd2*)
  20019. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20020. - hardcode_direct=yes
  20021. - hardcode_minus_L=yes
  20022. - hardcode_shlibpath_var=no
  20023. - ;;
  20024. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  20025. - freebsd* | dragonfly*)
  20026. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  20027. - hardcode_libdir_flag_spec='-R$libdir'
  20028. - hardcode_direct=yes
  20029. - hardcode_shlibpath_var=no
  20030. - ;;
  20031. - hpux9*)
  20032. - if test "$GCC" = yes; then
  20033. - 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'
  20034. - else
  20035. - 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'
  20036. - fi
  20037. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20038. - hardcode_libdir_separator=:
  20039. - hardcode_direct=yes
  20040. - # hardcode_minus_L: Not really in the search PATH,
  20041. - # but as the default location of the library.
  20042. - hardcode_minus_L=yes
  20043. - export_dynamic_flag_spec='${wl}-E'
  20044. - ;;
  20045. - hpux10*)
  20046. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20047. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20048. - else
  20049. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  20050. - fi
  20051. - if test "$with_gnu_ld" = no; then
  20052. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20053. - hardcode_libdir_separator=:
  20054. - hardcode_direct=yes
  20055. - export_dynamic_flag_spec='${wl}-E'
  20056. - # hardcode_minus_L: Not really in the search PATH,
  20057. - # but as the default location of the library.
  20058. - hardcode_minus_L=yes
  20059. - fi
  20060. - ;;
  20061. - hpux11*)
  20062. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20063. - case $host_cpu in
  20064. - hppa*64*)
  20065. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20066. - ;;
  20067. - ia64*)
  20068. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20069. - ;;
  20070. - *)
  20071. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20072. - ;;
  20073. - esac
  20074. - else
  20075. - case $host_cpu in
  20076. - hppa*64*)
  20077. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20078. - ;;
  20079. - ia64*)
  20080. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20081. - ;;
  20082. - *)
  20083. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20084. - ;;
  20085. - esac
  20086. - fi
  20087. - if test "$with_gnu_ld" = no; then
  20088. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  20089. - hardcode_libdir_separator=:
  20090. - case $host_cpu in
  20091. - hppa*64*|ia64*)
  20092. - hardcode_libdir_flag_spec_ld='+b $libdir'
  20093. - hardcode_direct=no
  20094. - hardcode_shlibpath_var=no
  20095. - ;;
  20096. - *)
  20097. - hardcode_direct=yes
  20098. - export_dynamic_flag_spec='${wl}-E'
  20099. - # hardcode_minus_L: Not really in the search PATH,
  20100. - # but as the default location of the library.
  20101. - hardcode_minus_L=yes
  20102. - ;;
  20103. - esac
  20104. - fi
  20105. - ;;
  20106. - irix5* | irix6* | nonstopux*)
  20107. - if test "$GCC" = yes; then
  20108. - 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'
  20109. - else
  20110. - 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'
  20111. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  20112. - fi
  20113. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20114. - hardcode_libdir_separator=:
  20115. - link_all_deplibs=yes
  20116. - ;;
  20117. +case $host_os in
  20118. +aix3*)
  20119. + # AIX sometimes has problems with the GCC collect2 program. For some
  20120. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  20121. + # vanish in a puff of smoke.
  20122. + if test "X${COLLECT_NAMES+set}" != Xset; then
  20123. + COLLECT_NAMES=
  20124. + export COLLECT_NAMES
  20125. + fi
  20126. + ;;
  20127. +esac
  20128. - netbsd* | netbsdelf*-gnu)
  20129. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20130. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  20131. - else
  20132. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  20133. - fi
  20134. - hardcode_libdir_flag_spec='-R$libdir'
  20135. - hardcode_direct=yes
  20136. - hardcode_shlibpath_var=no
  20137. - ;;
  20138. +# Sed substitution that helps us do robust quoting. It backslashifies
  20139. +# metacharacters that are still active within double-quoted strings.
  20140. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  20141. - newsos6)
  20142. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20143. - hardcode_direct=yes
  20144. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20145. - hardcode_libdir_separator=:
  20146. - hardcode_shlibpath_var=no
  20147. - ;;
  20148. +# Same as above, but do not quote variable references.
  20149. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  20150. - openbsd*)
  20151. - if test -f /usr/libexec/ld.so; then
  20152. - hardcode_direct=yes
  20153. - hardcode_shlibpath_var=no
  20154. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20155. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20156. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  20157. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  20158. - export_dynamic_flag_spec='${wl}-E'
  20159. - else
  20160. - case $host_os in
  20161. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  20162. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20163. - hardcode_libdir_flag_spec='-R$libdir'
  20164. - ;;
  20165. - *)
  20166. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20167. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  20168. - ;;
  20169. - esac
  20170. - fi
  20171. - else
  20172. - ld_shlibs=no
  20173. - fi
  20174. - ;;
  20175. +# Sed substitution to delay expansion of an escaped shell variable in a
  20176. +# double_quote_subst'ed string.
  20177. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  20178. - os2*)
  20179. - hardcode_libdir_flag_spec='-L$libdir'
  20180. - hardcode_minus_L=yes
  20181. - allow_undefined_flag=unsupported
  20182. - 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'
  20183. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  20184. - ;;
  20185. +# Sed substitution to delay expansion of an escaped single quote.
  20186. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  20187. - osf3*)
  20188. - if test "$GCC" = yes; then
  20189. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  20190. - 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'
  20191. - else
  20192. - allow_undefined_flag=' -expect_unresolved \*'
  20193. - 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'
  20194. - fi
  20195. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20196. - hardcode_libdir_separator=:
  20197. - ;;
  20198. +# Sed substitution to avoid accidental globbing in evaled expressions
  20199. +no_glob_subst='s/\*/\\\*/g'
  20200. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  20201. - if test "$GCC" = yes; then
  20202. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  20203. - 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'
  20204. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  20205. - else
  20206. - allow_undefined_flag=' -expect_unresolved \*'
  20207. - 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'
  20208. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  20209. - $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'
  20210. +# Global variables:
  20211. +ofile=libtool
  20212. +can_build_shared=yes
  20213. - # Both c and cxx compiler support -rpath directly
  20214. - hardcode_libdir_flag_spec='-rpath $libdir'
  20215. - fi
  20216. - hardcode_libdir_separator=:
  20217. - ;;
  20218. +# All known linkers require a `.a' archive for static linking (except MSVC,
  20219. +# which needs '.lib').
  20220. +libext=a
  20221. - solaris*)
  20222. - no_undefined_flag=' -z text'
  20223. - if test "$GCC" = yes; then
  20224. - wlarc='${wl}'
  20225. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20226. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20227. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  20228. - else
  20229. - wlarc=''
  20230. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20231. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20232. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  20233. - fi
  20234. - hardcode_libdir_flag_spec='-R$libdir'
  20235. - hardcode_shlibpath_var=no
  20236. - case $host_os in
  20237. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  20238. - *)
  20239. - # The compiler driver will combine and reorder linker options,
  20240. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  20241. - # but is careful enough not to reorder.
  20242. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  20243. - if test "$GCC" = yes; then
  20244. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  20245. - else
  20246. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  20247. - fi
  20248. - ;;
  20249. - esac
  20250. - link_all_deplibs=yes
  20251. - ;;
  20252. -
  20253. - sunos4*)
  20254. - if test "x$host_vendor" = xsequent; then
  20255. - # Use $CC to link under sequent, because it throws in some extra .o
  20256. - # files that make .init and .fini sections work.
  20257. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  20258. - else
  20259. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  20260. - fi
  20261. - hardcode_libdir_flag_spec='-L$libdir'
  20262. - hardcode_direct=yes
  20263. - hardcode_minus_L=yes
  20264. - hardcode_shlibpath_var=no
  20265. - ;;
  20266. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  20267. - sysv4)
  20268. - case $host_vendor in
  20269. - sni)
  20270. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20271. - hardcode_direct=yes # is this really true???
  20272. - ;;
  20273. - siemens)
  20274. - ## LD is ld it makes a PLAMLIB
  20275. - ## CC just makes a GrossModule.
  20276. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  20277. - reload_cmds='$CC -r -o $output$reload_objs'
  20278. - hardcode_direct=no
  20279. - ;;
  20280. - motorola)
  20281. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20282. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  20283. - ;;
  20284. - esac
  20285. - runpath_var='LD_RUN_PATH'
  20286. - hardcode_shlibpath_var=no
  20287. - ;;
  20288. +old_CC="$CC"
  20289. +old_CFLAGS="$CFLAGS"
  20290. - sysv4.3*)
  20291. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20292. - hardcode_shlibpath_var=no
  20293. - export_dynamic_flag_spec='-Bexport'
  20294. - ;;
  20295. +# Set sane defaults for various variables
  20296. +test -z "$CC" && CC=cc
  20297. +test -z "$LTCC" && LTCC=$CC
  20298. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  20299. +test -z "$LD" && LD=ld
  20300. +test -z "$ac_objext" && ac_objext=o
  20301. - sysv4*MP*)
  20302. - if test -d /usr/nec; then
  20303. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20304. - hardcode_shlibpath_var=no
  20305. - runpath_var=LD_RUN_PATH
  20306. - hardcode_runpath_var=yes
  20307. - ld_shlibs=yes
  20308. - fi
  20309. - ;;
  20310. +for cc_temp in $compiler""; do
  20311. + case $cc_temp in
  20312. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20313. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20314. + \-*) ;;
  20315. + *) break;;
  20316. + esac
  20317. +done
  20318. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  20319. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  20320. - no_undefined_flag='${wl}-z,text'
  20321. - archive_cmds_need_lc=no
  20322. - hardcode_shlibpath_var=no
  20323. - runpath_var='LD_RUN_PATH'
  20324. - if test "$GCC" = yes; then
  20325. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20326. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20327. - else
  20328. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20329. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  20330. - fi
  20331. - ;;
  20332. +# Only perform the check for file, if the check method requires it
  20333. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  20334. +case $deplibs_check_method in
  20335. +file_magic*)
  20336. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  20337. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  20338. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  20339. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  20340. + $as_echo_n "(cached) " >&6
  20341. +else
  20342. + case $MAGIC_CMD in
  20343. +[\\/*] | ?:[\\/]*)
  20344. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20345. + ;;
  20346. +*)
  20347. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  20348. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20349. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20350. + for ac_dir in $ac_dummy; do
  20351. + IFS="$lt_save_ifs"
  20352. + test -z "$ac_dir" && ac_dir=.
  20353. + if test -f $ac_dir/${ac_tool_prefix}file; then
  20354. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  20355. + if test -n "$file_magic_test_file"; then
  20356. + case $deplibs_check_method in
  20357. + "file_magic "*)
  20358. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20359. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20360. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20361. + $EGREP "$file_magic_regex" > /dev/null; then
  20362. + :
  20363. + else
  20364. + cat <<_LT_EOF 1>&2
  20365. - sysv5* | sco3.2v5* | sco5v6*)
  20366. - # Note: We can NOT use -z defs as we might desire, because we do not
  20367. - # link with -lc, and that would cause any symbols used from libc to
  20368. - # always be unresolved, which means just about no library would
  20369. - # ever link correctly. If we're not using GNU ld we use -z text
  20370. - # though, which does catch some bad symbols but isn't as heavy-handed
  20371. - # as -z defs.
  20372. - no_undefined_flag='${wl}-z,text'
  20373. - allow_undefined_flag='${wl}-z,nodefs'
  20374. - archive_cmds_need_lc=no
  20375. - hardcode_shlibpath_var=no
  20376. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  20377. - hardcode_libdir_separator=':'
  20378. - link_all_deplibs=yes
  20379. - export_dynamic_flag_spec='${wl}-Bexport'
  20380. - runpath_var='LD_RUN_PATH'
  20381. +*** Warning: the command libtool uses to detect shared libraries,
  20382. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  20383. +*** The result is that libtool may fail to recognize shared libraries
  20384. +*** as such. This will affect the creation of libtool libraries that
  20385. +*** depend on shared libraries, but programs linked with such libtool
  20386. +*** libraries will work regardless of this problem. Nevertheless, you
  20387. +*** may want to report the problem to your system manager and/or to
  20388. +*** bug-libtool@gnu.org
  20389. - if test "$GCC" = yes; then
  20390. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20391. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20392. - else
  20393. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20394. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20395. +_LT_EOF
  20396. + fi ;;
  20397. + esac
  20398. fi
  20399. - ;;
  20400. + break
  20401. + fi
  20402. + done
  20403. + IFS="$lt_save_ifs"
  20404. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  20405. + ;;
  20406. +esac
  20407. +fi
  20408. - uts4*)
  20409. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20410. - hardcode_libdir_flag_spec='-L$libdir'
  20411. - hardcode_shlibpath_var=no
  20412. - ;;
  20413. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20414. +if test -n "$MAGIC_CMD"; then
  20415. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  20416. +$as_echo "$MAGIC_CMD" >&6; }
  20417. +else
  20418. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20419. +$as_echo "no" >&6; }
  20420. +fi
  20421. - *)
  20422. - ld_shlibs=no
  20423. - ;;
  20424. - esac
  20425. - fi
  20426. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  20427. -echo "${ECHO_T}$ld_shlibs" >&6; }
  20428. -test "$ld_shlibs" = no && can_build_shared=no
  20429. -#
  20430. -# Do we need to explicitly link libc?
  20431. -#
  20432. -case "x$archive_cmds_need_lc" in
  20433. -x|xyes)
  20434. - # Assume -lc should be added
  20435. - archive_cmds_need_lc=yes
  20436. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  20437. - case $archive_cmds in
  20438. - *'~'*)
  20439. - # FIXME: we may have to deal with multi-command sequences.
  20440. - ;;
  20441. - '$CC '*)
  20442. - # Test whether the compiler implicitly links with -lc since on some
  20443. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  20444. - # to ld, don't add -lc before -lgcc.
  20445. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  20446. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  20447. - $rm conftest*
  20448. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  20449. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20450. - (eval $ac_compile) 2>&5
  20451. - ac_status=$?
  20452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20453. - (exit $ac_status); } 2>conftest.err; then
  20454. - soname=conftest
  20455. - lib=conftest
  20456. - libobjs=conftest.$ac_objext
  20457. - deplibs=
  20458. - wl=$lt_prog_compiler_wl
  20459. - pic_flag=$lt_prog_compiler_pic
  20460. - compiler_flags=-v
  20461. - linker_flags=-v
  20462. - verstring=
  20463. - output_objdir=.
  20464. - libname=conftest
  20465. - lt_save_allow_undefined_flag=$allow_undefined_flag
  20466. - allow_undefined_flag=
  20467. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  20468. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  20469. - ac_status=$?
  20470. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20471. - (exit $ac_status); }
  20472. - then
  20473. - archive_cmds_need_lc=no
  20474. - else
  20475. - archive_cmds_need_lc=yes
  20476. - fi
  20477. - allow_undefined_flag=$lt_save_allow_undefined_flag
  20478. - else
  20479. - cat conftest.err 1>&5
  20480. - fi
  20481. - $rm conftest*
  20482. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  20483. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  20484. - ;;
  20485. - esac
  20486. - fi
  20487. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  20488. + if test -n "$ac_tool_prefix"; then
  20489. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  20490. +$as_echo_n "checking for file... " >&6; }
  20491. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  20492. + $as_echo_n "(cached) " >&6
  20493. +else
  20494. + case $MAGIC_CMD in
  20495. +[\\/*] | ?:[\\/]*)
  20496. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  20497. ;;
  20498. -esac
  20499. +*)
  20500. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  20501. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  20502. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  20503. + for ac_dir in $ac_dummy; do
  20504. + IFS="$lt_save_ifs"
  20505. + test -z "$ac_dir" && ac_dir=.
  20506. + if test -f $ac_dir/file; then
  20507. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  20508. + if test -n "$file_magic_test_file"; then
  20509. + case $deplibs_check_method in
  20510. + "file_magic "*)
  20511. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  20512. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20513. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  20514. + $EGREP "$file_magic_regex" > /dev/null; then
  20515. + :
  20516. + else
  20517. + cat <<_LT_EOF 1>&2
  20518. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  20519. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  20520. -library_names_spec=
  20521. -libname_spec='lib$name'
  20522. -soname_spec=
  20523. -shrext_cmds=".so"
  20524. -postinstall_cmds=
  20525. -postuninstall_cmds=
  20526. -finish_cmds=
  20527. -finish_eval=
  20528. -shlibpath_var=
  20529. -shlibpath_overrides_runpath=unknown
  20530. -version_type=none
  20531. -dynamic_linker="$host_os ld.so"
  20532. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  20533. +*** Warning: the command libtool uses to detect shared libraries,
  20534. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  20535. +*** The result is that libtool may fail to recognize shared libraries
  20536. +*** as such. This will affect the creation of libtool libraries that
  20537. +*** depend on shared libraries, but programs linked with such libtool
  20538. +*** libraries will work regardless of this problem. Nevertheless, you
  20539. +*** may want to report the problem to your system manager and/or to
  20540. +*** bug-libtool@gnu.org
  20541. -if test "$GCC" = yes; then
  20542. - case $host_os in
  20543. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  20544. - *) lt_awk_arg="/^libraries:/" ;;
  20545. - esac
  20546. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20547. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  20548. - # if the path contains ";" then we assume it to be the separator
  20549. - # otherwise default to the standard path separator (i.e. ":") - it is
  20550. - # assumed that no part of a normal pathname contains ";" but that should
  20551. - # okay in the real world where ";" in dirpaths is itself problematic.
  20552. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  20553. - else
  20554. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20555. - fi
  20556. - # Ok, now we have the path, separated by spaces, we can step through it
  20557. - # and add multilib dir if necessary.
  20558. - lt_tmp_lt_search_path_spec=
  20559. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  20560. - for lt_sys_path in $lt_search_path_spec; do
  20561. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  20562. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  20563. - else
  20564. - test -d "$lt_sys_path" && \
  20565. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  20566. +_LT_EOF
  20567. + fi ;;
  20568. + esac
  20569. + fi
  20570. + break
  20571. fi
  20572. done
  20573. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  20574. -BEGIN {RS=" "; FS="/|\n";} {
  20575. - lt_foo="";
  20576. - lt_count=0;
  20577. - for (lt_i = NF; lt_i > 0; lt_i--) {
  20578. - if ($lt_i != "" && $lt_i != ".") {
  20579. - if ($lt_i == "..") {
  20580. - lt_count++;
  20581. - } else {
  20582. - if (lt_count == 0) {
  20583. - lt_foo="/" $lt_i lt_foo;
  20584. - } else {
  20585. - lt_count--;
  20586. - }
  20587. - }
  20588. - }
  20589. - }
  20590. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  20591. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  20592. -}'`
  20593. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  20594. -else
  20595. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  20596. + IFS="$lt_save_ifs"
  20597. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  20598. + ;;
  20599. +esac
  20600. fi
  20601. -need_lib_prefix=unknown
  20602. -hardcode_into_libs=no
  20603. -
  20604. -# when you set need_version to no, make sure it does not cause -set_version
  20605. -# flags to be left without arguments
  20606. -need_version=unknown
  20607. -case $host_os in
  20608. -aix3*)
  20609. - version_type=linux
  20610. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  20611. - shlibpath_var=LIBPATH
  20612. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  20613. +if test -n "$MAGIC_CMD"; then
  20614. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  20615. +$as_echo "$MAGIC_CMD" >&6; }
  20616. +else
  20617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20618. +$as_echo "no" >&6; }
  20619. +fi
  20620. - # AIX 3 has no versioning support, so we append a major version to the name.
  20621. - soname_spec='${libname}${release}${shared_ext}$major'
  20622. - ;;
  20623. -aix[4-9]*)
  20624. - version_type=linux
  20625. - need_lib_prefix=no
  20626. - need_version=no
  20627. - hardcode_into_libs=yes
  20628. - if test "$host_cpu" = ia64; then
  20629. - # AIX 5 supports IA64
  20630. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  20631. - shlibpath_var=LD_LIBRARY_PATH
  20632. else
  20633. - # With GCC up to 2.95.x, collect2 would create an import file
  20634. - # for dependence libraries. The import file would start with
  20635. - # the line `#! .'. This would cause the generated library to
  20636. - # depend on `.', always an invalid library. This was fixed in
  20637. - # development snapshots of GCC prior to 3.0.
  20638. - case $host_os in
  20639. - aix4 | aix4.[01] | aix4.[01].*)
  20640. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  20641. - echo ' yes '
  20642. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  20643. - :
  20644. - else
  20645. - can_build_shared=no
  20646. - fi
  20647. - ;;
  20648. - esac
  20649. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  20650. - # soname into executable. Probably we can add versioning support to
  20651. - # collect2, so additional links can be useful in future.
  20652. - if test "$aix_use_runtimelinking" = yes; then
  20653. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  20654. - # instead of lib<name>.a to let people know that these are not
  20655. - # typical AIX shared libraries.
  20656. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20657. - else
  20658. - # We preserve .a as extension for shared libraries through AIX4.2
  20659. - # and later when we are not doing run time linking.
  20660. - library_names_spec='${libname}${release}.a $libname.a'
  20661. - soname_spec='${libname}${release}${shared_ext}$major'
  20662. - fi
  20663. - shlibpath_var=LIBPATH
  20664. + MAGIC_CMD=:
  20665. fi
  20666. - ;;
  20667. +fi
  20668. -amigaos*)
  20669. - library_names_spec='$libname.ixlibrary $libname.a'
  20670. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  20671. - 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'
  20672. + fi
  20673. ;;
  20674. +esac
  20675. -beos*)
  20676. - library_names_spec='${libname}${shared_ext}'
  20677. - dynamic_linker="$host_os ld.so"
  20678. - shlibpath_var=LIBRARY_PATH
  20679. - ;;
  20680. +# Use C for the default configuration in the libtool script
  20681. -bsdi[45]*)
  20682. - version_type=linux
  20683. - need_version=no
  20684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20685. - soname_spec='${libname}${release}${shared_ext}$major'
  20686. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  20687. - shlibpath_var=LD_LIBRARY_PATH
  20688. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  20689. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  20690. - # the default ld.so.conf also contains /usr/contrib/lib and
  20691. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  20692. - # libtool to hard-code these into programs
  20693. - ;;
  20694. +lt_save_CC="$CC"
  20695. +ac_ext=c
  20696. +ac_cpp='$CPP $CPPFLAGS'
  20697. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20698. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20699. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20700. -cygwin* | mingw* | pw32*)
  20701. - version_type=windows
  20702. - shrext_cmds=".dll"
  20703. - need_version=no
  20704. - need_lib_prefix=no
  20705. - case $GCC,$host_os in
  20706. - yes,cygwin* | yes,mingw* | yes,pw32*)
  20707. - library_names_spec='$libname.dll.a'
  20708. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  20709. - postinstall_cmds='base_file=`basename \${file}`~
  20710. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  20711. - dldir=$destdir/`dirname \$dlpath`~
  20712. - test -d \$dldir || mkdir -p \$dldir~
  20713. - $install_prog $dir/$dlname \$dldir/$dlname~
  20714. - chmod a+x \$dldir/$dlname'
  20715. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  20716. - dlpath=$dir/\$dldll~
  20717. - $rm \$dlpath'
  20718. - shlibpath_overrides_runpath=yes
  20719. +# Source file extension for C test sources.
  20720. +ac_ext=c
  20721. - case $host_os in
  20722. - cygwin*)
  20723. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  20724. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20725. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  20726. - ;;
  20727. - mingw*)
  20728. - # MinGW DLLs use traditional 'lib' prefix
  20729. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20730. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20731. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  20732. - # It is most probably a Windows format PATH printed by
  20733. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  20734. - # path with ; separators, and with drive letters. We can handle the
  20735. - # drive letters (cygwin fileutils understands them), so leave them,
  20736. - # especially as we might pass files found there to a mingw objdump,
  20737. - # which wouldn't understand a cygwinified path. Ahh.
  20738. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20739. - else
  20740. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20741. - fi
  20742. - ;;
  20743. - pw32*)
  20744. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  20745. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20746. - ;;
  20747. - esac
  20748. - ;;
  20749. +# Object file extension for compiled C test sources.
  20750. +objext=o
  20751. +objext=$objext
  20752. - *)
  20753. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  20754. - ;;
  20755. - esac
  20756. - dynamic_linker='Win32 ld.exe'
  20757. - # FIXME: first we should search . and the directory the executable is in
  20758. - shlibpath_var=PATH
  20759. - ;;
  20760. +# Code to be used in simple compile tests
  20761. +lt_simple_compile_test_code="int some_variable = 0;"
  20762. -darwin* | rhapsody*)
  20763. - dynamic_linker="$host_os dyld"
  20764. - version_type=darwin
  20765. - need_lib_prefix=no
  20766. - need_version=no
  20767. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  20768. - soname_spec='${libname}${release}${major}$shared_ext'
  20769. - shlibpath_overrides_runpath=yes
  20770. - shlibpath_var=DYLD_LIBRARY_PATH
  20771. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  20772. +# Code to be used in simple link tests
  20773. +lt_simple_link_test_code='int main(){return(0);}'
  20774. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  20775. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  20776. - ;;
  20777. -dgux*)
  20778. - version_type=linux
  20779. - need_lib_prefix=no
  20780. - need_version=no
  20781. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  20782. - soname_spec='${libname}${release}${shared_ext}$major'
  20783. - shlibpath_var=LD_LIBRARY_PATH
  20784. - ;;
  20785. -freebsd1*)
  20786. - dynamic_linker=no
  20787. - ;;
  20788. -freebsd* | dragonfly*)
  20789. - # DragonFly does not have aout. When/if they implement a new
  20790. - # versioning mechanism, adjust this.
  20791. - if test -x /usr/bin/objformat; then
  20792. - objformat=`/usr/bin/objformat`
  20793. - else
  20794. - case $host_os in
  20795. - freebsd[123]*) objformat=aout ;;
  20796. - *) objformat=elf ;;
  20797. - esac
  20798. - fi
  20799. - version_type=freebsd-$objformat
  20800. - case $version_type in
  20801. - freebsd-elf*)
  20802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20803. - need_version=no
  20804. - need_lib_prefix=no
  20805. - ;;
  20806. - freebsd-*)
  20807. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  20808. - need_version=yes
  20809. - ;;
  20810. - esac
  20811. - shlibpath_var=LD_LIBRARY_PATH
  20812. - case $host_os in
  20813. - freebsd2*)
  20814. - shlibpath_overrides_runpath=yes
  20815. - ;;
  20816. - freebsd3.[01]* | freebsdelf3.[01]*)
  20817. - shlibpath_overrides_runpath=yes
  20818. - hardcode_into_libs=yes
  20819. - ;;
  20820. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  20821. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  20822. - shlibpath_overrides_runpath=no
  20823. - hardcode_into_libs=yes
  20824. - ;;
  20825. - *) # from 4.6 on, and DragonFly
  20826. - shlibpath_overrides_runpath=yes
  20827. - hardcode_into_libs=yes
  20828. - ;;
  20829. - esac
  20830. - ;;
  20831. -gnu*)
  20832. - version_type=linux
  20833. - need_lib_prefix=no
  20834. - need_version=no
  20835. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  20836. - soname_spec='${libname}${release}${shared_ext}$major'
  20837. - shlibpath_var=LD_LIBRARY_PATH
  20838. - hardcode_into_libs=yes
  20839. - ;;
  20840. -hpux9* | hpux10* | hpux11*)
  20841. - # Give a soname corresponding to the major version so that dld.sl refuses to
  20842. - # link against other versions.
  20843. - version_type=sunos
  20844. - need_lib_prefix=no
  20845. - need_version=no
  20846. - case $host_cpu in
  20847. - ia64*)
  20848. - shrext_cmds='.so'
  20849. - hardcode_into_libs=yes
  20850. - dynamic_linker="$host_os dld.so"
  20851. - shlibpath_var=LD_LIBRARY_PATH
  20852. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20853. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20854. - soname_spec='${libname}${release}${shared_ext}$major'
  20855. - if test "X$HPUX_IA64_MODE" = X32; then
  20856. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  20857. - else
  20858. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  20859. - fi
  20860. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20861. - ;;
  20862. - hppa*64*)
  20863. - shrext_cmds='.sl'
  20864. - hardcode_into_libs=yes
  20865. - dynamic_linker="$host_os dld.sl"
  20866. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  20867. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20868. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20869. - soname_spec='${libname}${release}${shared_ext}$major'
  20870. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  20871. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20872. - ;;
  20873. - *)
  20874. - shrext_cmds='.sl'
  20875. - dynamic_linker="$host_os dld.sl"
  20876. - shlibpath_var=SHLIB_PATH
  20877. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  20878. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20879. - soname_spec='${libname}${release}${shared_ext}$major'
  20880. - ;;
  20881. - esac
  20882. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  20883. - postinstall_cmds='chmod 555 $lib'
  20884. - ;;
  20885. -interix[3-9]*)
  20886. - version_type=linux
  20887. - need_lib_prefix=no
  20888. - need_version=no
  20889. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20890. - soname_spec='${libname}${release}${shared_ext}$major'
  20891. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  20892. - shlibpath_var=LD_LIBRARY_PATH
  20893. - shlibpath_overrides_runpath=no
  20894. - hardcode_into_libs=yes
  20895. - ;;
  20896. +# If no C compiler was specified, use CC.
  20897. +LTCC=${LTCC-"$CC"}
  20898. -irix5* | irix6* | nonstopux*)
  20899. - case $host_os in
  20900. - nonstopux*) version_type=nonstopux ;;
  20901. - *)
  20902. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20903. - version_type=linux
  20904. - else
  20905. - version_type=irix
  20906. - fi ;;
  20907. - esac
  20908. - need_lib_prefix=no
  20909. - need_version=no
  20910. - soname_spec='${libname}${release}${shared_ext}$major'
  20911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  20912. - case $host_os in
  20913. - irix5* | nonstopux*)
  20914. - libsuff= shlibsuff=
  20915. - ;;
  20916. - *)
  20917. - case $LD in # libtool.m4 will add one of these switches to LD
  20918. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  20919. - libsuff= shlibsuff= libmagic=32-bit;;
  20920. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  20921. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  20922. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  20923. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  20924. - *) libsuff= shlibsuff= libmagic=never-match;;
  20925. - esac
  20926. - ;;
  20927. - esac
  20928. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  20929. - shlibpath_overrides_runpath=no
  20930. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  20931. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  20932. - hardcode_into_libs=yes
  20933. - ;;
  20934. +# If no C compiler flags were specified, use CFLAGS.
  20935. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20936. -# No shared lib support for Linux oldld, aout, or coff.
  20937. -linux*oldld* | linux*aout* | linux*coff*)
  20938. - dynamic_linker=no
  20939. - ;;
  20940. +# Allow CC to be a program name with arguments.
  20941. +compiler=$CC
  20942. -# This must be Linux ELF.
  20943. -linux* | k*bsd*-gnu)
  20944. - version_type=linux
  20945. - need_lib_prefix=no
  20946. - need_version=no
  20947. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20948. - soname_spec='${libname}${release}${shared_ext}$major'
  20949. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  20950. - shlibpath_var=LD_LIBRARY_PATH
  20951. - shlibpath_overrides_runpath=no
  20952. - # This implies no fast_install, which is unacceptable.
  20953. - # Some rework will be needed to allow for fast_install
  20954. - # before this can be enabled.
  20955. - hardcode_into_libs=yes
  20956. +# Save the default compiler, since it gets overwritten when the other
  20957. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  20958. +compiler_DEFAULT=$CC
  20959. - # Append ld.so.conf contents to the search path
  20960. - if test -f /etc/ld.so.conf; then
  20961. - 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' ' '`
  20962. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  20963. - fi
  20964. +# save warnings/boilerplate of simple test code
  20965. +ac_outfile=conftest.$ac_objext
  20966. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  20967. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20968. +_lt_compiler_boilerplate=`cat conftest.err`
  20969. +$RM conftest*
  20970. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  20971. - # powerpc, because MkLinux only supported shared libraries with the
  20972. - # GNU dynamic linker. Since this was broken with cross compilers,
  20973. - # most powerpc-linux boxes support dynamic linking these days and
  20974. - # people can always --disable-shared, the test was removed, and we
  20975. - # assume the GNU/Linux dynamic linker is in use.
  20976. - dynamic_linker='GNU/Linux ld.so'
  20977. - ;;
  20978. +ac_outfile=conftest.$ac_objext
  20979. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  20980. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  20981. +_lt_linker_boilerplate=`cat conftest.err`
  20982. +$RM -r conftest*
  20983. -netbsdelf*-gnu)
  20984. - version_type=linux
  20985. - need_lib_prefix=no
  20986. - need_version=no
  20987. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20988. - soname_spec='${libname}${release}${shared_ext}$major'
  20989. - shlibpath_var=LD_LIBRARY_PATH
  20990. - shlibpath_overrides_runpath=no
  20991. - hardcode_into_libs=yes
  20992. - dynamic_linker='NetBSD ld.elf_so'
  20993. - ;;
  20994. -netbsd*)
  20995. - version_type=sunos
  20996. - need_lib_prefix=no
  20997. - need_version=no
  20998. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20999. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21000. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21001. - dynamic_linker='NetBSD (a.out) ld.so'
  21002. - else
  21003. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21004. - soname_spec='${libname}${release}${shared_ext}$major'
  21005. - dynamic_linker='NetBSD ld.elf_so'
  21006. - fi
  21007. - shlibpath_var=LD_LIBRARY_PATH
  21008. - shlibpath_overrides_runpath=yes
  21009. - hardcode_into_libs=yes
  21010. - ;;
  21011. +if test -n "$compiler"; then
  21012. -newsos6)
  21013. - version_type=linux
  21014. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21015. - shlibpath_var=LD_LIBRARY_PATH
  21016. - shlibpath_overrides_runpath=yes
  21017. - ;;
  21018. +lt_prog_compiler_no_builtin_flag=
  21019. -nto-qnx*)
  21020. - version_type=linux
  21021. - need_lib_prefix=no
  21022. - need_version=no
  21023. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21024. - soname_spec='${libname}${release}${shared_ext}$major'
  21025. - shlibpath_var=LD_LIBRARY_PATH
  21026. - shlibpath_overrides_runpath=yes
  21027. - ;;
  21028. +if test "$GCC" = yes; then
  21029. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  21030. -openbsd*)
  21031. - version_type=sunos
  21032. - sys_lib_dlsearch_path_spec="/usr/lib"
  21033. - need_lib_prefix=no
  21034. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  21035. - case $host_os in
  21036. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  21037. - *) need_version=no ;;
  21038. - esac
  21039. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21040. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21041. - shlibpath_var=LD_LIBRARY_PATH
  21042. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21043. - case $host_os in
  21044. - openbsd2.[89] | openbsd2.[89].*)
  21045. - shlibpath_overrides_runpath=no
  21046. - ;;
  21047. - *)
  21048. - shlibpath_overrides_runpath=yes
  21049. - ;;
  21050. - esac
  21051. - else
  21052. - shlibpath_overrides_runpath=yes
  21053. - fi
  21054. - ;;
  21055. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  21056. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  21057. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  21058. + $as_echo_n "(cached) " >&6
  21059. +else
  21060. + lt_cv_prog_compiler_rtti_exceptions=no
  21061. + ac_outfile=conftest.$ac_objext
  21062. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21063. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  21064. + # Insert the option either (1) after the last *FLAGS variable, or
  21065. + # (2) before a word containing "conftest.", or (3) at the end.
  21066. + # Note that $ac_compile itself does not contain backslashes and begins
  21067. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  21068. + # The option is referenced via a variable to avoid confusing sed.
  21069. + lt_compile=`echo "$ac_compile" | $SED \
  21070. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21071. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21072. + -e 's:$: $lt_compiler_flag:'`
  21073. + (eval echo "\"\$as_me:7109: $lt_compile\"" >&5)
  21074. + (eval "$lt_compile" 2>conftest.err)
  21075. + ac_status=$?
  21076. + cat conftest.err >&5
  21077. + echo "$as_me:7113: \$? = $ac_status" >&5
  21078. + if (exit $ac_status) && test -s "$ac_outfile"; then
  21079. + # The compiler can only warn and ignore the option if not recognized
  21080. + # So say no if there are warnings other than the usual output.
  21081. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  21082. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  21083. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  21084. + lt_cv_prog_compiler_rtti_exceptions=yes
  21085. + fi
  21086. + fi
  21087. + $RM conftest*
  21088. -os2*)
  21089. - libname_spec='$name'
  21090. - shrext_cmds=".dll"
  21091. - need_lib_prefix=no
  21092. - library_names_spec='$libname${shared_ext} $libname.a'
  21093. - dynamic_linker='OS/2 ld.exe'
  21094. - shlibpath_var=LIBPATH
  21095. - ;;
  21096. +fi
  21097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  21098. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  21099. -osf3* | osf4* | osf5*)
  21100. - version_type=osf
  21101. - need_lib_prefix=no
  21102. - need_version=no
  21103. - soname_spec='${libname}${release}${shared_ext}$major'
  21104. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21105. - shlibpath_var=LD_LIBRARY_PATH
  21106. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  21107. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  21108. - ;;
  21109. -
  21110. -rdos*)
  21111. - dynamic_linker=no
  21112. - ;;
  21113. -
  21114. -solaris*)
  21115. - version_type=linux
  21116. - need_lib_prefix=no
  21117. - need_version=no
  21118. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21119. - soname_spec='${libname}${release}${shared_ext}$major'
  21120. - shlibpath_var=LD_LIBRARY_PATH
  21121. - shlibpath_overrides_runpath=yes
  21122. - hardcode_into_libs=yes
  21123. - # ldd complains unless libraries are executable
  21124. - postinstall_cmds='chmod +x $lib'
  21125. - ;;
  21126. -
  21127. -sunos4*)
  21128. - version_type=sunos
  21129. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21130. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  21131. - shlibpath_var=LD_LIBRARY_PATH
  21132. - shlibpath_overrides_runpath=yes
  21133. - if test "$with_gnu_ld" = yes; then
  21134. - need_lib_prefix=no
  21135. - fi
  21136. - need_version=yes
  21137. - ;;
  21138. -
  21139. -sysv4 | sysv4.3*)
  21140. - version_type=linux
  21141. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21142. - soname_spec='${libname}${release}${shared_ext}$major'
  21143. - shlibpath_var=LD_LIBRARY_PATH
  21144. - case $host_vendor in
  21145. - sni)
  21146. - shlibpath_overrides_runpath=no
  21147. - need_lib_prefix=no
  21148. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  21149. - runpath_var=LD_RUN_PATH
  21150. - ;;
  21151. - siemens)
  21152. - need_lib_prefix=no
  21153. - ;;
  21154. - motorola)
  21155. - need_lib_prefix=no
  21156. - need_version=no
  21157. - shlibpath_overrides_runpath=no
  21158. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  21159. - ;;
  21160. - esac
  21161. - ;;
  21162. -
  21163. -sysv4*MP*)
  21164. - if test -d /usr/nec ;then
  21165. - version_type=linux
  21166. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  21167. - soname_spec='$libname${shared_ext}.$major'
  21168. - shlibpath_var=LD_LIBRARY_PATH
  21169. - fi
  21170. - ;;
  21171. -
  21172. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  21173. - version_type=freebsd-elf
  21174. - need_lib_prefix=no
  21175. - need_version=no
  21176. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21177. - soname_spec='${libname}${release}${shared_ext}$major'
  21178. - shlibpath_var=LD_LIBRARY_PATH
  21179. - hardcode_into_libs=yes
  21180. - if test "$with_gnu_ld" = yes; then
  21181. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  21182. - shlibpath_overrides_runpath=no
  21183. - else
  21184. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  21185. - shlibpath_overrides_runpath=yes
  21186. - case $host_os in
  21187. - sco3.2v5*)
  21188. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  21189. - ;;
  21190. - esac
  21191. - fi
  21192. - sys_lib_dlsearch_path_spec='/usr/lib'
  21193. - ;;
  21194. -
  21195. -uts4*)
  21196. - version_type=linux
  21197. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21198. - soname_spec='${libname}${release}${shared_ext}$major'
  21199. - shlibpath_var=LD_LIBRARY_PATH
  21200. - ;;
  21201. -
  21202. -*)
  21203. - dynamic_linker=no
  21204. - ;;
  21205. -esac
  21206. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  21207. -echo "${ECHO_T}$dynamic_linker" >&6; }
  21208. -test "$dynamic_linker" = no && can_build_shared=no
  21209. -
  21210. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  21211. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21212. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  21213. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  21214. else
  21215. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  21216. + :
  21217. fi
  21218. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  21219. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  21220. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21221. -else
  21222. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  21223. fi
  21224. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  21225. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  21226. -if test "$GCC" = yes; then
  21227. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  21228. -fi
  21229. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  21230. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  21231. -hardcode_action=
  21232. -if test -n "$hardcode_libdir_flag_spec" || \
  21233. - test -n "$runpath_var" || \
  21234. - test "X$hardcode_automatic" = "Xyes" ; then
  21235. - # We can hardcode non-existant directories.
  21236. - if test "$hardcode_direct" != no &&
  21237. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  21238. - # have to relink, otherwise we might link with an installed library
  21239. - # when we should be linking with a yet-to-be-installed one
  21240. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  21241. - test "$hardcode_minus_L" != no; then
  21242. - # Linking always hardcodes the temporary library directory.
  21243. - hardcode_action=relink
  21244. - else
  21245. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  21246. - hardcode_action=immediate
  21247. - fi
  21248. -else
  21249. - # We cannot hardcode anything, or else we can only hardcode existing
  21250. - # directories.
  21251. - hardcode_action=unsupported
  21252. -fi
  21253. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  21254. -echo "${ECHO_T}$hardcode_action" >&6; }
  21255. -if test "$hardcode_action" = relink; then
  21256. - # Fast installation is not supported
  21257. - enable_fast_install=no
  21258. -elif test "$shlibpath_overrides_runpath" = yes ||
  21259. - test "$enable_shared" = no; then
  21260. - # Fast installation is not necessary
  21261. - enable_fast_install=needless
  21262. -fi
  21263. -striplib=
  21264. -old_striplib=
  21265. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  21266. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  21267. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  21268. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  21269. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  21270. - { echo "$as_me:$LINENO: result: yes" >&5
  21271. -echo "${ECHO_T}yes" >&6; }
  21272. -else
  21273. -# FIXME - insert some real tests, host_os isn't really good enough
  21274. - case $host_os in
  21275. - darwin*)
  21276. - if test -n "$STRIP" ; then
  21277. - striplib="$STRIP -x"
  21278. - old_striplib="$STRIP -S"
  21279. - { echo "$as_me:$LINENO: result: yes" >&5
  21280. -echo "${ECHO_T}yes" >&6; }
  21281. - else
  21282. - { echo "$as_me:$LINENO: result: no" >&5
  21283. -echo "${ECHO_T}no" >&6; }
  21284. -fi
  21285. - ;;
  21286. - *)
  21287. - { echo "$as_me:$LINENO: result: no" >&5
  21288. -echo "${ECHO_T}no" >&6; }
  21289. - ;;
  21290. - esac
  21291. -fi
  21292. + lt_prog_compiler_wl=
  21293. +lt_prog_compiler_pic=
  21294. +lt_prog_compiler_static=
  21295. -if test "x$enable_dlopen" != xyes; then
  21296. - enable_dlopen=unknown
  21297. - enable_dlopen_self=unknown
  21298. - enable_dlopen_self_static=unknown
  21299. -else
  21300. - lt_cv_dlopen=no
  21301. - lt_cv_dlopen_libs=
  21302. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  21303. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  21304. - case $host_os in
  21305. - beos*)
  21306. - lt_cv_dlopen="load_add_on"
  21307. - lt_cv_dlopen_libs=
  21308. - lt_cv_dlopen_self=yes
  21309. - ;;
  21310. + if test "$GCC" = yes; then
  21311. + lt_prog_compiler_wl='-Wl,'
  21312. + lt_prog_compiler_static='-static'
  21313. - mingw* | pw32*)
  21314. - lt_cv_dlopen="LoadLibrary"
  21315. - lt_cv_dlopen_libs=
  21316. - ;;
  21317. + case $host_os in
  21318. + aix*)
  21319. + # All AIX code is PIC.
  21320. + if test "$host_cpu" = ia64; then
  21321. + # AIX 5 now supports IA64 processor
  21322. + lt_prog_compiler_static='-Bstatic'
  21323. + fi
  21324. + ;;
  21325. - cygwin*)
  21326. - lt_cv_dlopen="dlopen"
  21327. - lt_cv_dlopen_libs=
  21328. - ;;
  21329. + amigaos*)
  21330. + case $host_cpu in
  21331. + powerpc)
  21332. + # see comment about AmigaOS4 .so support
  21333. + lt_prog_compiler_pic='-fPIC'
  21334. + ;;
  21335. + m68k)
  21336. + # FIXME: we need at least 68020 code to build shared libraries, but
  21337. + # adding the `-m68020' flag to GCC prevents building anything better,
  21338. + # like `-m68040'.
  21339. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  21340. + ;;
  21341. + esac
  21342. + ;;
  21343. - darwin*)
  21344. - # if libdl is installed we need to link against it
  21345. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  21346. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  21347. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  21348. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21349. -else
  21350. - ac_check_lib_save_LIBS=$LIBS
  21351. -LIBS="-ldl $LIBS"
  21352. -cat >conftest.$ac_ext <<_ACEOF
  21353. -/* confdefs.h. */
  21354. -_ACEOF
  21355. -cat confdefs.h >>conftest.$ac_ext
  21356. -cat >>conftest.$ac_ext <<_ACEOF
  21357. -/* end confdefs.h. */
  21358. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21359. + # PIC is the default for these OSes.
  21360. + ;;
  21361. -/* Override any GCC internal prototype to avoid an error.
  21362. - Use char because int might match the return type of a GCC
  21363. - builtin and then its argument prototype would still apply. */
  21364. -#ifdef __cplusplus
  21365. -extern "C"
  21366. -#endif
  21367. -char dlopen ();
  21368. -int
  21369. -main ()
  21370. -{
  21371. -return dlopen ();
  21372. - ;
  21373. - return 0;
  21374. -}
  21375. -_ACEOF
  21376. -rm -f conftest.$ac_objext conftest$ac_exeext
  21377. -if { (ac_try="$ac_link"
  21378. -case "(($ac_try" in
  21379. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21380. - *) ac_try_echo=$ac_try;;
  21381. -esac
  21382. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21383. - (eval "$ac_link") 2>conftest.er1
  21384. - ac_status=$?
  21385. - grep -v '^ *+' conftest.er1 >conftest.err
  21386. - rm -f conftest.er1
  21387. - cat conftest.err >&5
  21388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21389. - (exit $ac_status); } && {
  21390. - test -z "$ac_c_werror_flag" ||
  21391. - test ! -s conftest.err
  21392. - } && test -s conftest$ac_exeext &&
  21393. - $as_test_x conftest$ac_exeext; then
  21394. - ac_cv_lib_dl_dlopen=yes
  21395. -else
  21396. - echo "$as_me: failed program was:" >&5
  21397. -sed 's/^/| /' conftest.$ac_ext >&5
  21398. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  21399. + # This hack is so that the source file can tell whether it is being
  21400. + # built for inclusion in a dll (and should export symbols for example).
  21401. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21402. + # (--disable-auto-import) libraries
  21403. + lt_prog_compiler_pic='-DDLL_EXPORT'
  21404. + ;;
  21405. - ac_cv_lib_dl_dlopen=no
  21406. -fi
  21407. + darwin* | rhapsody*)
  21408. + # PIC is the default on this platform
  21409. + # Common symbols not allowed in MH_DYLIB files
  21410. + lt_prog_compiler_pic='-fno-common'
  21411. + ;;
  21412. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21413. - conftest$ac_exeext conftest.$ac_ext
  21414. -LIBS=$ac_check_lib_save_LIBS
  21415. -fi
  21416. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21417. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  21418. -if test $ac_cv_lib_dl_dlopen = yes; then
  21419. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21420. -else
  21421. + hpux*)
  21422. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  21423. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  21424. + # sets the default TLS model and affects inlining.
  21425. + case $host_cpu in
  21426. + hppa*64*)
  21427. + # +Z the default
  21428. + ;;
  21429. + *)
  21430. + lt_prog_compiler_pic='-fPIC'
  21431. + ;;
  21432. + esac
  21433. + ;;
  21434. - lt_cv_dlopen="dyld"
  21435. - lt_cv_dlopen_libs=
  21436. - lt_cv_dlopen_self=yes
  21437. + interix[3-9]*)
  21438. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21439. + # Instead, we relocate shared libraries at runtime.
  21440. + ;;
  21441. -fi
  21442. + msdosdjgpp*)
  21443. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  21444. + # on systems that don't support them.
  21445. + lt_prog_compiler_can_build_shared=no
  21446. + enable_shared=no
  21447. + ;;
  21448. - ;;
  21449. + *nto* | *qnx*)
  21450. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  21451. + # it will coredump.
  21452. + lt_prog_compiler_pic='-fPIC -shared'
  21453. + ;;
  21454. - *)
  21455. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  21456. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  21457. -if test "${ac_cv_func_shl_load+set}" = set; then
  21458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21459. -else
  21460. - cat >conftest.$ac_ext <<_ACEOF
  21461. -/* confdefs.h. */
  21462. -_ACEOF
  21463. -cat confdefs.h >>conftest.$ac_ext
  21464. -cat >>conftest.$ac_ext <<_ACEOF
  21465. -/* end confdefs.h. */
  21466. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  21467. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21468. -#define shl_load innocuous_shl_load
  21469. + sysv4*MP*)
  21470. + if test -d /usr/nec; then
  21471. + lt_prog_compiler_pic=-Kconform_pic
  21472. + fi
  21473. + ;;
  21474. -/* System header to define __stub macros and hopefully few prototypes,
  21475. - which can conflict with char shl_load (); below.
  21476. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21477. - <limits.h> exists even on freestanding compilers. */
  21478. + *)
  21479. + lt_prog_compiler_pic='-fPIC'
  21480. + ;;
  21481. + esac
  21482. + else
  21483. + # PORTME Check for flag to pass linker flags through the system compiler.
  21484. + case $host_os in
  21485. + aix*)
  21486. + lt_prog_compiler_wl='-Wl,'
  21487. + if test "$host_cpu" = ia64; then
  21488. + # AIX 5 now supports IA64 processor
  21489. + lt_prog_compiler_static='-Bstatic'
  21490. + else
  21491. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  21492. + fi
  21493. + ;;
  21494. -#ifdef __STDC__
  21495. -# include <limits.h>
  21496. -#else
  21497. -# include <assert.h>
  21498. -#endif
  21499. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  21500. + # This hack is so that the source file can tell whether it is being
  21501. + # built for inclusion in a dll (and should export symbols for example).
  21502. + lt_prog_compiler_pic='-DDLL_EXPORT'
  21503. + ;;
  21504. -#undef shl_load
  21505. + hpux9* | hpux10* | hpux11*)
  21506. + lt_prog_compiler_wl='-Wl,'
  21507. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21508. + # not for PA HP-UX.
  21509. + case $host_cpu in
  21510. + hppa*64*|ia64*)
  21511. + # +Z the default
  21512. + ;;
  21513. + *)
  21514. + lt_prog_compiler_pic='+Z'
  21515. + ;;
  21516. + esac
  21517. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  21518. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  21519. + ;;
  21520. -/* Override any GCC internal prototype to avoid an error.
  21521. - Use char because int might match the return type of a GCC
  21522. - builtin and then its argument prototype would still apply. */
  21523. -#ifdef __cplusplus
  21524. -extern "C"
  21525. -#endif
  21526. -char shl_load ();
  21527. -/* The GNU C library defines this for functions which it implements
  21528. - to always fail with ENOSYS. Some functions are actually named
  21529. - something starting with __ and the normal name is an alias. */
  21530. -#if defined __stub_shl_load || defined __stub___shl_load
  21531. -choke me
  21532. -#endif
  21533. + irix5* | irix6* | nonstopux*)
  21534. + lt_prog_compiler_wl='-Wl,'
  21535. + # PIC (with -KPIC) is the default.
  21536. + lt_prog_compiler_static='-non_shared'
  21537. + ;;
  21538. -int
  21539. -main ()
  21540. -{
  21541. -return shl_load ();
  21542. - ;
  21543. - return 0;
  21544. -}
  21545. -_ACEOF
  21546. -rm -f conftest.$ac_objext conftest$ac_exeext
  21547. -if { (ac_try="$ac_link"
  21548. -case "(($ac_try" in
  21549. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21550. - *) ac_try_echo=$ac_try;;
  21551. -esac
  21552. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21553. - (eval "$ac_link") 2>conftest.er1
  21554. - ac_status=$?
  21555. - grep -v '^ *+' conftest.er1 >conftest.err
  21556. - rm -f conftest.er1
  21557. - cat conftest.err >&5
  21558. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21559. - (exit $ac_status); } && {
  21560. - test -z "$ac_c_werror_flag" ||
  21561. - test ! -s conftest.err
  21562. - } && test -s conftest$ac_exeext &&
  21563. - $as_test_x conftest$ac_exeext; then
  21564. - ac_cv_func_shl_load=yes
  21565. -else
  21566. - echo "$as_me: failed program was:" >&5
  21567. -sed 's/^/| /' conftest.$ac_ext >&5
  21568. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  21569. + case $cc_basename in
  21570. + # old Intel for x86_64 which still supported -KPIC.
  21571. + ecc*)
  21572. + lt_prog_compiler_wl='-Wl,'
  21573. + lt_prog_compiler_pic='-KPIC'
  21574. + lt_prog_compiler_static='-static'
  21575. + ;;
  21576. + # icc used to be incompatible with GCC.
  21577. + # ICC 10 doesn't accept -KPIC any more.
  21578. + icc* | ifort*)
  21579. + lt_prog_compiler_wl='-Wl,'
  21580. + lt_prog_compiler_pic='-fPIC'
  21581. + lt_prog_compiler_static='-static'
  21582. + ;;
  21583. + # Lahey Fortran 8.1.
  21584. + lf95*)
  21585. + lt_prog_compiler_wl='-Wl,'
  21586. + lt_prog_compiler_pic='--shared'
  21587. + lt_prog_compiler_static='--static'
  21588. + ;;
  21589. + pgcc* | pgf77* | pgf90* | pgf95*)
  21590. + # Portland Group compilers (*not* the Pentium gcc compiler,
  21591. + # which looks to be a dead project)
  21592. + lt_prog_compiler_wl='-Wl,'
  21593. + lt_prog_compiler_pic='-fpic'
  21594. + lt_prog_compiler_static='-Bstatic'
  21595. + ;;
  21596. + ccc*)
  21597. + lt_prog_compiler_wl='-Wl,'
  21598. + # All Alpha code is PIC.
  21599. + lt_prog_compiler_static='-non_shared'
  21600. + ;;
  21601. + xl*)
  21602. + # IBM XL C 8.0/Fortran 10.1 on PPC
  21603. + lt_prog_compiler_wl='-Wl,'
  21604. + lt_prog_compiler_pic='-qpic'
  21605. + lt_prog_compiler_static='-qstaticlink'
  21606. + ;;
  21607. + *)
  21608. + case `$CC -V 2>&1 | sed 5q` in
  21609. + *Sun\ C*)
  21610. + # Sun C 5.9
  21611. + lt_prog_compiler_pic='-KPIC'
  21612. + lt_prog_compiler_static='-Bstatic'
  21613. + lt_prog_compiler_wl='-Wl,'
  21614. + ;;
  21615. + *Sun\ F*)
  21616. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  21617. + lt_prog_compiler_pic='-KPIC'
  21618. + lt_prog_compiler_static='-Bstatic'
  21619. + lt_prog_compiler_wl=''
  21620. + ;;
  21621. + esac
  21622. + ;;
  21623. + esac
  21624. + ;;
  21625. - ac_cv_func_shl_load=no
  21626. -fi
  21627. + newsos6)
  21628. + lt_prog_compiler_pic='-KPIC'
  21629. + lt_prog_compiler_static='-Bstatic'
  21630. + ;;
  21631. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21632. - conftest$ac_exeext conftest.$ac_ext
  21633. -fi
  21634. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  21635. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  21636. -if test $ac_cv_func_shl_load = yes; then
  21637. - lt_cv_dlopen="shl_load"
  21638. -else
  21639. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  21640. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  21641. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  21642. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21643. -else
  21644. - ac_check_lib_save_LIBS=$LIBS
  21645. -LIBS="-ldld $LIBS"
  21646. -cat >conftest.$ac_ext <<_ACEOF
  21647. -/* confdefs.h. */
  21648. -_ACEOF
  21649. -cat confdefs.h >>conftest.$ac_ext
  21650. -cat >>conftest.$ac_ext <<_ACEOF
  21651. -/* end confdefs.h. */
  21652. + *nto* | *qnx*)
  21653. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  21654. + # it will coredump.
  21655. + lt_prog_compiler_pic='-fPIC -shared'
  21656. + ;;
  21657. -/* Override any GCC internal prototype to avoid an error.
  21658. - Use char because int might match the return type of a GCC
  21659. - builtin and then its argument prototype would still apply. */
  21660. -#ifdef __cplusplus
  21661. -extern "C"
  21662. -#endif
  21663. -char shl_load ();
  21664. -int
  21665. -main ()
  21666. -{
  21667. -return shl_load ();
  21668. - ;
  21669. - return 0;
  21670. -}
  21671. -_ACEOF
  21672. -rm -f conftest.$ac_objext conftest$ac_exeext
  21673. -if { (ac_try="$ac_link"
  21674. -case "(($ac_try" in
  21675. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21676. - *) ac_try_echo=$ac_try;;
  21677. -esac
  21678. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21679. - (eval "$ac_link") 2>conftest.er1
  21680. - ac_status=$?
  21681. - grep -v '^ *+' conftest.er1 >conftest.err
  21682. - rm -f conftest.er1
  21683. - cat conftest.err >&5
  21684. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21685. - (exit $ac_status); } && {
  21686. - test -z "$ac_c_werror_flag" ||
  21687. - test ! -s conftest.err
  21688. - } && test -s conftest$ac_exeext &&
  21689. - $as_test_x conftest$ac_exeext; then
  21690. - ac_cv_lib_dld_shl_load=yes
  21691. -else
  21692. - echo "$as_me: failed program was:" >&5
  21693. -sed 's/^/| /' conftest.$ac_ext >&5
  21694. + osf3* | osf4* | osf5*)
  21695. + lt_prog_compiler_wl='-Wl,'
  21696. + # All OSF/1 code is PIC.
  21697. + lt_prog_compiler_static='-non_shared'
  21698. + ;;
  21699. - ac_cv_lib_dld_shl_load=no
  21700. -fi
  21701. + rdos*)
  21702. + lt_prog_compiler_static='-non_shared'
  21703. + ;;
  21704. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21705. - conftest$ac_exeext conftest.$ac_ext
  21706. -LIBS=$ac_check_lib_save_LIBS
  21707. -fi
  21708. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  21709. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  21710. -if test $ac_cv_lib_dld_shl_load = yes; then
  21711. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  21712. -else
  21713. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  21714. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  21715. -if test "${ac_cv_func_dlopen+set}" = set; then
  21716. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21717. -else
  21718. - cat >conftest.$ac_ext <<_ACEOF
  21719. -/* confdefs.h. */
  21720. -_ACEOF
  21721. -cat confdefs.h >>conftest.$ac_ext
  21722. -cat >>conftest.$ac_ext <<_ACEOF
  21723. -/* end confdefs.h. */
  21724. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  21725. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21726. -#define dlopen innocuous_dlopen
  21727. + solaris*)
  21728. + lt_prog_compiler_pic='-KPIC'
  21729. + lt_prog_compiler_static='-Bstatic'
  21730. + case $cc_basename in
  21731. + f77* | f90* | f95*)
  21732. + lt_prog_compiler_wl='-Qoption ld ';;
  21733. + *)
  21734. + lt_prog_compiler_wl='-Wl,';;
  21735. + esac
  21736. + ;;
  21737. -/* System header to define __stub macros and hopefully few prototypes,
  21738. - which can conflict with char dlopen (); below.
  21739. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21740. - <limits.h> exists even on freestanding compilers. */
  21741. + sunos4*)
  21742. + lt_prog_compiler_wl='-Qoption ld '
  21743. + lt_prog_compiler_pic='-PIC'
  21744. + lt_prog_compiler_static='-Bstatic'
  21745. + ;;
  21746. -#ifdef __STDC__
  21747. -# include <limits.h>
  21748. -#else
  21749. -# include <assert.h>
  21750. -#endif
  21751. + sysv4 | sysv4.2uw2* | sysv4.3*)
  21752. + lt_prog_compiler_wl='-Wl,'
  21753. + lt_prog_compiler_pic='-KPIC'
  21754. + lt_prog_compiler_static='-Bstatic'
  21755. + ;;
  21756. -#undef dlopen
  21757. + sysv4*MP*)
  21758. + if test -d /usr/nec ;then
  21759. + lt_prog_compiler_pic='-Kconform_pic'
  21760. + lt_prog_compiler_static='-Bstatic'
  21761. + fi
  21762. + ;;
  21763. -/* Override any GCC internal prototype to avoid an error.
  21764. - Use char because int might match the return type of a GCC
  21765. - builtin and then its argument prototype would still apply. */
  21766. -#ifdef __cplusplus
  21767. -extern "C"
  21768. -#endif
  21769. -char dlopen ();
  21770. -/* The GNU C library defines this for functions which it implements
  21771. - to always fail with ENOSYS. Some functions are actually named
  21772. - something starting with __ and the normal name is an alias. */
  21773. -#if defined __stub_dlopen || defined __stub___dlopen
  21774. -choke me
  21775. -#endif
  21776. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  21777. + lt_prog_compiler_wl='-Wl,'
  21778. + lt_prog_compiler_pic='-KPIC'
  21779. + lt_prog_compiler_static='-Bstatic'
  21780. + ;;
  21781. -int
  21782. -main ()
  21783. -{
  21784. -return dlopen ();
  21785. - ;
  21786. - return 0;
  21787. -}
  21788. -_ACEOF
  21789. -rm -f conftest.$ac_objext conftest$ac_exeext
  21790. -if { (ac_try="$ac_link"
  21791. -case "(($ac_try" in
  21792. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21793. - *) ac_try_echo=$ac_try;;
  21794. -esac
  21795. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21796. - (eval "$ac_link") 2>conftest.er1
  21797. - ac_status=$?
  21798. - grep -v '^ *+' conftest.er1 >conftest.err
  21799. - rm -f conftest.er1
  21800. - cat conftest.err >&5
  21801. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21802. - (exit $ac_status); } && {
  21803. - test -z "$ac_c_werror_flag" ||
  21804. - test ! -s conftest.err
  21805. - } && test -s conftest$ac_exeext &&
  21806. - $as_test_x conftest$ac_exeext; then
  21807. - ac_cv_func_dlopen=yes
  21808. -else
  21809. - echo "$as_me: failed program was:" >&5
  21810. -sed 's/^/| /' conftest.$ac_ext >&5
  21811. + unicos*)
  21812. + lt_prog_compiler_wl='-Wl,'
  21813. + lt_prog_compiler_can_build_shared=no
  21814. + ;;
  21815. - ac_cv_func_dlopen=no
  21816. -fi
  21817. + uts4*)
  21818. + lt_prog_compiler_pic='-pic'
  21819. + lt_prog_compiler_static='-Bstatic'
  21820. + ;;
  21821. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21822. - conftest$ac_exeext conftest.$ac_ext
  21823. -fi
  21824. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  21825. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  21826. -if test $ac_cv_func_dlopen = yes; then
  21827. - lt_cv_dlopen="dlopen"
  21828. -else
  21829. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  21830. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  21831. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  21832. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21833. -else
  21834. - ac_check_lib_save_LIBS=$LIBS
  21835. -LIBS="-ldl $LIBS"
  21836. -cat >conftest.$ac_ext <<_ACEOF
  21837. -/* confdefs.h. */
  21838. -_ACEOF
  21839. -cat confdefs.h >>conftest.$ac_ext
  21840. -cat >>conftest.$ac_ext <<_ACEOF
  21841. -/* end confdefs.h. */
  21842. + *)
  21843. + lt_prog_compiler_can_build_shared=no
  21844. + ;;
  21845. + esac
  21846. + fi
  21847. -/* Override any GCC internal prototype to avoid an error.
  21848. - Use char because int might match the return type of a GCC
  21849. - builtin and then its argument prototype would still apply. */
  21850. -#ifdef __cplusplus
  21851. -extern "C"
  21852. -#endif
  21853. -char dlopen ();
  21854. -int
  21855. -main ()
  21856. -{
  21857. -return dlopen ();
  21858. - ;
  21859. - return 0;
  21860. -}
  21861. -_ACEOF
  21862. -rm -f conftest.$ac_objext conftest$ac_exeext
  21863. -if { (ac_try="$ac_link"
  21864. -case "(($ac_try" in
  21865. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21866. - *) ac_try_echo=$ac_try;;
  21867. +case $host_os in
  21868. + # For platforms which do not support PIC, -DPIC is meaningless:
  21869. + *djgpp*)
  21870. + lt_prog_compiler_pic=
  21871. + ;;
  21872. + *)
  21873. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  21874. + ;;
  21875. esac
  21876. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21877. - (eval "$ac_link") 2>conftest.er1
  21878. - ac_status=$?
  21879. - grep -v '^ *+' conftest.er1 >conftest.err
  21880. - rm -f conftest.er1
  21881. - cat conftest.err >&5
  21882. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21883. - (exit $ac_status); } && {
  21884. - test -z "$ac_c_werror_flag" ||
  21885. - test ! -s conftest.err
  21886. - } && test -s conftest$ac_exeext &&
  21887. - $as_test_x conftest$ac_exeext; then
  21888. - ac_cv_lib_dl_dlopen=yes
  21889. -else
  21890. - echo "$as_me: failed program was:" >&5
  21891. -sed 's/^/| /' conftest.$ac_ext >&5
  21892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  21893. +$as_echo "$lt_prog_compiler_pic" >&6; }
  21894. - ac_cv_lib_dl_dlopen=no
  21895. -fi
  21896. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21897. - conftest$ac_exeext conftest.$ac_ext
  21898. -LIBS=$ac_check_lib_save_LIBS
  21899. -fi
  21900. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21901. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  21902. -if test $ac_cv_lib_dl_dlopen = yes; then
  21903. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  21904. -else
  21905. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  21906. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  21907. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  21908. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21909. -else
  21910. - ac_check_lib_save_LIBS=$LIBS
  21911. -LIBS="-lsvld $LIBS"
  21912. -cat >conftest.$ac_ext <<_ACEOF
  21913. -/* confdefs.h. */
  21914. -_ACEOF
  21915. -cat confdefs.h >>conftest.$ac_ext
  21916. -cat >>conftest.$ac_ext <<_ACEOF
  21917. -/* end confdefs.h. */
  21918. -/* Override any GCC internal prototype to avoid an error.
  21919. - Use char because int might match the return type of a GCC
  21920. - builtin and then its argument prototype would still apply. */
  21921. -#ifdef __cplusplus
  21922. -extern "C"
  21923. -#endif
  21924. -char dlopen ();
  21925. -int
  21926. -main ()
  21927. -{
  21928. -return dlopen ();
  21929. - ;
  21930. - return 0;
  21931. -}
  21932. -_ACEOF
  21933. -rm -f conftest.$ac_objext conftest$ac_exeext
  21934. -if { (ac_try="$ac_link"
  21935. -case "(($ac_try" in
  21936. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21937. - *) ac_try_echo=$ac_try;;
  21938. -esac
  21939. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21940. - (eval "$ac_link") 2>conftest.er1
  21941. - ac_status=$?
  21942. - grep -v '^ *+' conftest.er1 >conftest.err
  21943. - rm -f conftest.er1
  21944. - cat conftest.err >&5
  21945. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21946. - (exit $ac_status); } && {
  21947. - test -z "$ac_c_werror_flag" ||
  21948. - test ! -s conftest.err
  21949. - } && test -s conftest$ac_exeext &&
  21950. - $as_test_x conftest$ac_exeext; then
  21951. - ac_cv_lib_svld_dlopen=yes
  21952. -else
  21953. - echo "$as_me: failed program was:" >&5
  21954. -sed 's/^/| /' conftest.$ac_ext >&5
  21955. - ac_cv_lib_svld_dlopen=no
  21956. -fi
  21957. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21958. - conftest$ac_exeext conftest.$ac_ext
  21959. -LIBS=$ac_check_lib_save_LIBS
  21960. -fi
  21961. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  21962. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  21963. -if test $ac_cv_lib_svld_dlopen = yes; then
  21964. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  21965. -else
  21966. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  21967. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  21968. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  21969. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21970. -else
  21971. - ac_check_lib_save_LIBS=$LIBS
  21972. -LIBS="-ldld $LIBS"
  21973. -cat >conftest.$ac_ext <<_ACEOF
  21974. -/* confdefs.h. */
  21975. -_ACEOF
  21976. -cat confdefs.h >>conftest.$ac_ext
  21977. -cat >>conftest.$ac_ext <<_ACEOF
  21978. -/* end confdefs.h. */
  21979. -/* Override any GCC internal prototype to avoid an error.
  21980. - Use char because int might match the return type of a GCC
  21981. - builtin and then its argument prototype would still apply. */
  21982. -#ifdef __cplusplus
  21983. -extern "C"
  21984. -#endif
  21985. -char dld_link ();
  21986. -int
  21987. -main ()
  21988. -{
  21989. -return dld_link ();
  21990. - ;
  21991. - return 0;
  21992. -}
  21993. -_ACEOF
  21994. -rm -f conftest.$ac_objext conftest$ac_exeext
  21995. -if { (ac_try="$ac_link"
  21996. -case "(($ac_try" in
  21997. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21998. - *) ac_try_echo=$ac_try;;
  21999. -esac
  22000. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22001. - (eval "$ac_link") 2>conftest.er1
  22002. - ac_status=$?
  22003. - grep -v '^ *+' conftest.er1 >conftest.err
  22004. - rm -f conftest.er1
  22005. - cat conftest.err >&5
  22006. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22007. - (exit $ac_status); } && {
  22008. - test -z "$ac_c_werror_flag" ||
  22009. - test ! -s conftest.err
  22010. - } && test -s conftest$ac_exeext &&
  22011. - $as_test_x conftest$ac_exeext; then
  22012. - ac_cv_lib_dld_dld_link=yes
  22013. +#
  22014. +# Check to make sure the PIC flag actually works.
  22015. +#
  22016. +if test -n "$lt_prog_compiler_pic"; then
  22017. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  22018. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  22019. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  22020. + $as_echo_n "(cached) " >&6
  22021. else
  22022. - echo "$as_me: failed program was:" >&5
  22023. -sed 's/^/| /' conftest.$ac_ext >&5
  22024. + lt_cv_prog_compiler_pic_works=no
  22025. + ac_outfile=conftest.$ac_objext
  22026. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22027. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  22028. + # Insert the option either (1) after the last *FLAGS variable, or
  22029. + # (2) before a word containing "conftest.", or (3) at the end.
  22030. + # Note that $ac_compile itself does not contain backslashes and begins
  22031. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22032. + # The option is referenced via a variable to avoid confusing sed.
  22033. + lt_compile=`echo "$ac_compile" | $SED \
  22034. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22035. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22036. + -e 's:$: $lt_compiler_flag:'`
  22037. + (eval echo "\"\$as_me:7448: $lt_compile\"" >&5)
  22038. + (eval "$lt_compile" 2>conftest.err)
  22039. + ac_status=$?
  22040. + cat conftest.err >&5
  22041. + echo "$as_me:7452: \$? = $ac_status" >&5
  22042. + if (exit $ac_status) && test -s "$ac_outfile"; then
  22043. + # The compiler can only warn and ignore the option if not recognized
  22044. + # So say no if there are warnings other than the usual output.
  22045. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  22046. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22047. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  22048. + lt_cv_prog_compiler_pic_works=yes
  22049. + fi
  22050. + fi
  22051. + $RM conftest*
  22052. - ac_cv_lib_dld_dld_link=no
  22053. fi
  22054. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  22055. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  22056. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22057. - conftest$ac_exeext conftest.$ac_ext
  22058. -LIBS=$ac_check_lib_save_LIBS
  22059. -fi
  22060. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  22061. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  22062. -if test $ac_cv_lib_dld_dld_link = yes; then
  22063. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  22064. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  22065. + case $lt_prog_compiler_pic in
  22066. + "" | " "*) ;;
  22067. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  22068. + esac
  22069. +else
  22070. + lt_prog_compiler_pic=
  22071. + lt_prog_compiler_can_build_shared=no
  22072. fi
  22073. -
  22074. fi
  22075. -fi
  22076. -fi
  22077. -fi
  22078. +#
  22079. +# Check to make sure the static flag actually works.
  22080. +#
  22081. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  22082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  22083. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  22084. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  22085. + $as_echo_n "(cached) " >&6
  22086. +else
  22087. + lt_cv_prog_compiler_static_works=no
  22088. + save_LDFLAGS="$LDFLAGS"
  22089. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  22090. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  22091. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  22092. + # The linker can only warn and ignore the option if not recognized
  22093. + # So say no if there are warnings
  22094. + if test -s conftest.err; then
  22095. + # Append any errors to the config.log.
  22096. + cat conftest.err 1>&5
  22097. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  22098. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  22099. + if diff conftest.exp conftest.er2 >/dev/null; then
  22100. + lt_cv_prog_compiler_static_works=yes
  22101. + fi
  22102. + else
  22103. + lt_cv_prog_compiler_static_works=yes
  22104. + fi
  22105. + fi
  22106. + $RM -r conftest*
  22107. + LDFLAGS="$save_LDFLAGS"
  22108. +fi
  22109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  22110. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  22111. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  22112. + :
  22113. +else
  22114. + lt_prog_compiler_static=
  22115. fi
  22116. - ;;
  22117. - esac
  22118. - if test "x$lt_cv_dlopen" != xno; then
  22119. - enable_dlopen=yes
  22120. - else
  22121. - enable_dlopen=no
  22122. - fi
  22123. - case $lt_cv_dlopen in
  22124. - dlopen)
  22125. - save_CPPFLAGS="$CPPFLAGS"
  22126. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  22127. - save_LDFLAGS="$LDFLAGS"
  22128. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  22129. - save_LIBS="$LIBS"
  22130. - LIBS="$lt_cv_dlopen_libs $LIBS"
  22131. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  22132. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  22133. -if test "${lt_cv_dlopen_self+set}" = set; then
  22134. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22135. -else
  22136. - if test "$cross_compiling" = yes; then :
  22137. - lt_cv_dlopen_self=cross
  22138. +
  22139. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  22140. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  22141. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  22142. + $as_echo_n "(cached) " >&6
  22143. else
  22144. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22145. - lt_status=$lt_dlunknown
  22146. - cat > conftest.$ac_ext <<EOF
  22147. -#line 10209 "configure"
  22148. -#include "confdefs.h"
  22149. + lt_cv_prog_compiler_c_o=no
  22150. + $RM -r conftest 2>/dev/null
  22151. + mkdir conftest
  22152. + cd conftest
  22153. + mkdir out
  22154. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22155. -#if HAVE_DLFCN_H
  22156. -#include <dlfcn.h>
  22157. -#endif
  22158. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  22159. + # Insert the option either (1) after the last *FLAGS variable, or
  22160. + # (2) before a word containing "conftest.", or (3) at the end.
  22161. + # Note that $ac_compile itself does not contain backslashes and begins
  22162. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22163. + lt_compile=`echo "$ac_compile" | $SED \
  22164. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22165. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22166. + -e 's:$: $lt_compiler_flag:'`
  22167. + (eval echo "\"\$as_me:7553: $lt_compile\"" >&5)
  22168. + (eval "$lt_compile" 2>out/conftest.err)
  22169. + ac_status=$?
  22170. + cat out/conftest.err >&5
  22171. + echo "$as_me:7557: \$? = $ac_status" >&5
  22172. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22173. + then
  22174. + # The compiler can only warn and ignore the option if not recognized
  22175. + # So say no if there are warnings
  22176. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22177. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22178. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22179. + lt_cv_prog_compiler_c_o=yes
  22180. + fi
  22181. + fi
  22182. + chmod u+w . 2>&5
  22183. + $RM conftest*
  22184. + # SGI C++ compiler will create directory out/ii_files/ for
  22185. + # template instantiation
  22186. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  22187. + $RM out/* && rmdir out
  22188. + cd ..
  22189. + $RM -r conftest
  22190. + $RM conftest*
  22191. -#include <stdio.h>
  22192. +fi
  22193. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  22194. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  22195. -#ifdef RTLD_GLOBAL
  22196. -# define LT_DLGLOBAL RTLD_GLOBAL
  22197. -#else
  22198. -# ifdef DL_GLOBAL
  22199. -# define LT_DLGLOBAL DL_GLOBAL
  22200. -# else
  22201. -# define LT_DLGLOBAL 0
  22202. -# endif
  22203. -#endif
  22204. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22205. - find out it does not work in some platform. */
  22206. -#ifndef LT_DLLAZY_OR_NOW
  22207. -# ifdef RTLD_LAZY
  22208. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22209. -# else
  22210. -# ifdef DL_LAZY
  22211. -# define LT_DLLAZY_OR_NOW DL_LAZY
  22212. -# else
  22213. -# ifdef RTLD_NOW
  22214. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  22215. -# else
  22216. -# ifdef DL_NOW
  22217. -# define LT_DLLAZY_OR_NOW DL_NOW
  22218. -# else
  22219. -# define LT_DLLAZY_OR_NOW 0
  22220. -# endif
  22221. -# endif
  22222. -# endif
  22223. -# endif
  22224. -#endif
  22225. -#ifdef __cplusplus
  22226. -extern "C" void exit (int);
  22227. -#endif
  22228. -void fnord() { int i=42;}
  22229. -int main ()
  22230. -{
  22231. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22232. - int status = $lt_dlunknown;
  22233. - if (self)
  22234. - {
  22235. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22236. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22237. - /* dlclose (self); */
  22238. - }
  22239. - else
  22240. - puts (dlerror ());
  22241. - exit (status);
  22242. -}
  22243. -EOF
  22244. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22245. - (eval $ac_link) 2>&5
  22246. - ac_status=$?
  22247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22248. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  22249. - (./conftest; exit; ) >&5 2>/dev/null
  22250. - lt_status=$?
  22251. - case x$lt_status in
  22252. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  22253. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  22254. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  22255. - esac
  22256. - else :
  22257. - # compilation failed
  22258. - lt_cv_dlopen_self=no
  22259. - fi
  22260. -fi
  22261. -rm -fr conftest*
  22262. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  22263. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  22264. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  22265. + $as_echo_n "(cached) " >&6
  22266. +else
  22267. + lt_cv_prog_compiler_c_o=no
  22268. + $RM -r conftest 2>/dev/null
  22269. + mkdir conftest
  22270. + cd conftest
  22271. + mkdir out
  22272. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22273. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  22274. + # Insert the option either (1) after the last *FLAGS variable, or
  22275. + # (2) before a word containing "conftest.", or (3) at the end.
  22276. + # Note that $ac_compile itself does not contain backslashes and begins
  22277. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  22278. + lt_compile=`echo "$ac_compile" | $SED \
  22279. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  22280. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  22281. + -e 's:$: $lt_compiler_flag:'`
  22282. + (eval echo "\"\$as_me:7608: $lt_compile\"" >&5)
  22283. + (eval "$lt_compile" 2>out/conftest.err)
  22284. + ac_status=$?
  22285. + cat out/conftest.err >&5
  22286. + echo "$as_me:7612: \$? = $ac_status" >&5
  22287. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  22288. + then
  22289. + # The compiler can only warn and ignore the option if not recognized
  22290. + # So say no if there are warnings
  22291. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  22292. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  22293. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  22294. + lt_cv_prog_compiler_c_o=yes
  22295. + fi
  22296. + fi
  22297. + chmod u+w . 2>&5
  22298. + $RM conftest*
  22299. + # SGI C++ compiler will create directory out/ii_files/ for
  22300. + # template instantiation
  22301. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  22302. + $RM out/* && rmdir out
  22303. + cd ..
  22304. + $RM -r conftest
  22305. + $RM conftest*
  22306. fi
  22307. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  22308. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  22309. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  22310. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  22311. - if test "x$lt_cv_dlopen_self" = xyes; then
  22312. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  22313. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  22314. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  22315. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  22316. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22317. -else
  22318. - if test "$cross_compiling" = yes; then :
  22319. - lt_cv_dlopen_self_static=cross
  22320. -else
  22321. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22322. - lt_status=$lt_dlunknown
  22323. - cat > conftest.$ac_ext <<EOF
  22324. -#line 10309 "configure"
  22325. -#include "confdefs.h"
  22326. -#if HAVE_DLFCN_H
  22327. -#include <dlfcn.h>
  22328. -#endif
  22329. -#include <stdio.h>
  22330. -#ifdef RTLD_GLOBAL
  22331. -# define LT_DLGLOBAL RTLD_GLOBAL
  22332. -#else
  22333. -# ifdef DL_GLOBAL
  22334. -# define LT_DLGLOBAL DL_GLOBAL
  22335. -# else
  22336. -# define LT_DLGLOBAL 0
  22337. -# endif
  22338. -#endif
  22339. +hard_links="nottested"
  22340. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  22341. + # do not overwrite the value of need_locks provided by the user
  22342. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  22343. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  22344. + hard_links=yes
  22345. + $RM conftest*
  22346. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22347. + touch conftest.a
  22348. + ln conftest.a conftest.b 2>&5 || hard_links=no
  22349. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  22350. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  22351. +$as_echo "$hard_links" >&6; }
  22352. + if test "$hard_links" = no; then
  22353. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  22354. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  22355. + need_locks=warn
  22356. + fi
  22357. +else
  22358. + need_locks=no
  22359. +fi
  22360. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22361. - find out it does not work in some platform. */
  22362. -#ifndef LT_DLLAZY_OR_NOW
  22363. -# ifdef RTLD_LAZY
  22364. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22365. -# else
  22366. -# ifdef DL_LAZY
  22367. -# define LT_DLLAZY_OR_NOW DL_LAZY
  22368. -# else
  22369. -# ifdef RTLD_NOW
  22370. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  22371. -# else
  22372. -# ifdef DL_NOW
  22373. -# define LT_DLLAZY_OR_NOW DL_NOW
  22374. -# else
  22375. -# define LT_DLLAZY_OR_NOW 0
  22376. -# endif
  22377. -# endif
  22378. -# endif
  22379. -# endif
  22380. -#endif
  22381. -#ifdef __cplusplus
  22382. -extern "C" void exit (int);
  22383. -#endif
  22384. -void fnord() { int i=42;}
  22385. -int main ()
  22386. -{
  22387. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22388. - int status = $lt_dlunknown;
  22389. - if (self)
  22390. - {
  22391. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22392. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22393. - /* dlclose (self); */
  22394. - }
  22395. - else
  22396. - puts (dlerror ());
  22397. - exit (status);
  22398. -}
  22399. -EOF
  22400. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22401. - (eval $ac_link) 2>&5
  22402. - ac_status=$?
  22403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22404. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  22405. - (./conftest; exit; ) >&5 2>/dev/null
  22406. - lt_status=$?
  22407. - case x$lt_status in
  22408. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  22409. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  22410. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  22411. - esac
  22412. - else :
  22413. - # compilation failed
  22414. - lt_cv_dlopen_self_static=no
  22415. - fi
  22416. -fi
  22417. -rm -fr conftest*
  22418. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22419. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  22420. -fi
  22421. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  22422. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  22423. - fi
  22424. + runpath_var=
  22425. + allow_undefined_flag=
  22426. + always_export_symbols=no
  22427. + archive_cmds=
  22428. + archive_expsym_cmds=
  22429. + compiler_needs_object=no
  22430. + enable_shared_with_static_runtimes=no
  22431. + export_dynamic_flag_spec=
  22432. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  22433. + hardcode_automatic=no
  22434. + hardcode_direct=no
  22435. + hardcode_direct_absolute=no
  22436. + hardcode_libdir_flag_spec=
  22437. + hardcode_libdir_flag_spec_ld=
  22438. + hardcode_libdir_separator=
  22439. + hardcode_minus_L=no
  22440. + hardcode_shlibpath_var=unsupported
  22441. + inherit_rpath=no
  22442. + link_all_deplibs=unknown
  22443. + module_cmds=
  22444. + module_expsym_cmds=
  22445. + old_archive_from_new_cmds=
  22446. + old_archive_from_expsyms_cmds=
  22447. + thread_safe_flag_spec=
  22448. + whole_archive_flag_spec=
  22449. + # include_expsyms should be a list of space-separated symbols to be *always*
  22450. + # included in the symbol list
  22451. + include_expsyms=
  22452. + # exclude_expsyms can be an extended regexp of symbols to exclude
  22453. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  22454. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  22455. + # as well as any symbol that contains `d'.
  22456. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  22457. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  22458. + # platforms (ab)use it in PIC code, but their linkers get confused if
  22459. + # the symbol is explicitly referenced. Since portable code cannot
  22460. + # rely on this symbol name, it's probably fine to never include it in
  22461. + # preloaded symbol tables.
  22462. + # Exclude shared library initialization/finalization symbols.
  22463. + extract_expsyms_cmds=
  22464. - CPPFLAGS="$save_CPPFLAGS"
  22465. - LDFLAGS="$save_LDFLAGS"
  22466. - LIBS="$save_LIBS"
  22467. + case $host_os in
  22468. + cygwin* | mingw* | pw32* | cegcc*)
  22469. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  22470. + # When not using gcc, we currently assume that we are using
  22471. + # Microsoft Visual C++.
  22472. + if test "$GCC" != yes; then
  22473. + with_gnu_ld=no
  22474. + fi
  22475. + ;;
  22476. + interix*)
  22477. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  22478. + with_gnu_ld=yes
  22479. + ;;
  22480. + openbsd*)
  22481. + with_gnu_ld=no
  22482. + ;;
  22483. + linux* | k*bsd*-gnu)
  22484. + link_all_deplibs=no
  22485. ;;
  22486. esac
  22487. - case $lt_cv_dlopen_self in
  22488. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  22489. - *) enable_dlopen_self=unknown ;;
  22490. - esac
  22491. -
  22492. - case $lt_cv_dlopen_self_static in
  22493. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  22494. - *) enable_dlopen_self_static=unknown ;;
  22495. - esac
  22496. -fi
  22497. -
  22498. -
  22499. -# Report which library types will actually be built
  22500. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  22501. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  22502. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  22503. -echo "${ECHO_T}$can_build_shared" >&6; }
  22504. -
  22505. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  22506. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  22507. -test "$can_build_shared" = "no" && enable_shared=no
  22508. + ld_shlibs=yes
  22509. + if test "$with_gnu_ld" = yes; then
  22510. + # If archive_cmds runs LD, not CC, wlarc should be empty
  22511. + wlarc='${wl}'
  22512. -# On AIX, shared libraries and static libraries use the same namespace, and
  22513. -# are all built from PIC.
  22514. -case $host_os in
  22515. -aix3*)
  22516. - test "$enable_shared" = yes && enable_static=no
  22517. - if test -n "$RANLIB"; then
  22518. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  22519. - postinstall_cmds='$RANLIB $lib'
  22520. - fi
  22521. - ;;
  22522. -
  22523. -aix[4-9]*)
  22524. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  22525. - test "$enable_shared" = yes && enable_static=no
  22526. - fi
  22527. - ;;
  22528. -esac
  22529. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  22530. -echo "${ECHO_T}$enable_shared" >&6; }
  22531. -
  22532. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  22533. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  22534. -# Make sure either enable_shared or enable_static is yes.
  22535. -test "$enable_shared" = yes || enable_static=yes
  22536. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  22537. -echo "${ECHO_T}$enable_static" >&6; }
  22538. -
  22539. -# The else clause should only fire when bootstrapping the
  22540. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  22541. -# with your package, and you will get complaints that there are
  22542. -# no rules to generate ltmain.sh.
  22543. -if test -f "$ltmain"; then
  22544. - # See if we are running on zsh, and set the options which allow our commands through
  22545. - # without removal of \ escapes.
  22546. - if test -n "${ZSH_VERSION+set}" ; then
  22547. - setopt NO_GLOB_SUBST
  22548. - fi
  22549. - # Now quote all the things that may contain metacharacters while being
  22550. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  22551. - # variables and quote the copies for generation of the libtool script.
  22552. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  22553. - SED SHELL STRIP \
  22554. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  22555. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  22556. - deplibs_check_method reload_flag reload_cmds need_locks \
  22557. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  22558. - lt_cv_sys_global_symbol_to_c_name_address \
  22559. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  22560. - old_postinstall_cmds old_postuninstall_cmds \
  22561. - compiler \
  22562. - CC \
  22563. - LD \
  22564. - lt_prog_compiler_wl \
  22565. - lt_prog_compiler_pic \
  22566. - lt_prog_compiler_static \
  22567. - lt_prog_compiler_no_builtin_flag \
  22568. - export_dynamic_flag_spec \
  22569. - thread_safe_flag_spec \
  22570. - whole_archive_flag_spec \
  22571. - enable_shared_with_static_runtimes \
  22572. - old_archive_cmds \
  22573. - old_archive_from_new_cmds \
  22574. - predep_objects \
  22575. - postdep_objects \
  22576. - predeps \
  22577. - postdeps \
  22578. - compiler_lib_search_path \
  22579. - compiler_lib_search_dirs \
  22580. - archive_cmds \
  22581. - archive_expsym_cmds \
  22582. - postinstall_cmds \
  22583. - postuninstall_cmds \
  22584. - old_archive_from_expsyms_cmds \
  22585. - allow_undefined_flag \
  22586. - no_undefined_flag \
  22587. - export_symbols_cmds \
  22588. - hardcode_libdir_flag_spec \
  22589. - hardcode_libdir_flag_spec_ld \
  22590. - hardcode_libdir_separator \
  22591. - hardcode_automatic \
  22592. - module_cmds \
  22593. - module_expsym_cmds \
  22594. - lt_cv_prog_compiler_c_o \
  22595. - fix_srcfile_path \
  22596. - exclude_expsyms \
  22597. - include_expsyms; do
  22598. -
  22599. - case $var in
  22600. - old_archive_cmds | \
  22601. - old_archive_from_new_cmds | \
  22602. - archive_cmds | \
  22603. - archive_expsym_cmds | \
  22604. - module_cmds | \
  22605. - module_expsym_cmds | \
  22606. - old_archive_from_expsyms_cmds | \
  22607. - export_symbols_cmds | \
  22608. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  22609. - postinstall_cmds | postuninstall_cmds | \
  22610. - old_postinstall_cmds | old_postuninstall_cmds | \
  22611. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  22612. - # Double-quote double-evaled strings.
  22613. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  22614. - ;;
  22615. - *)
  22616. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  22617. - ;;
  22618. + # Set some defaults for GNU ld with shared library support. These
  22619. + # are reset later if shared libraries are not supported. Putting them
  22620. + # here allows them to be overridden if necessary.
  22621. + runpath_var=LD_RUN_PATH
  22622. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22623. + export_dynamic_flag_spec='${wl}--export-dynamic'
  22624. + # ancient GNU ld didn't support --whole-archive et. al.
  22625. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  22626. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22627. + else
  22628. + whole_archive_flag_spec=
  22629. + fi
  22630. + supports_anon_versioning=no
  22631. + case `$LD -v 2>&1` in
  22632. + *GNU\ gold*) supports_anon_versioning=yes ;;
  22633. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  22634. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  22635. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  22636. + *\ 2.11.*) ;; # other 2.11 versions
  22637. + *) supports_anon_versioning=yes ;;
  22638. esac
  22639. - done
  22640. -
  22641. - case $lt_echo in
  22642. - *'\$0 --fallback-echo"')
  22643. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  22644. - ;;
  22645. - esac
  22646. -
  22647. -cfgfile="${ofile}T"
  22648. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  22649. - $rm -f "$cfgfile"
  22650. - { echo "$as_me:$LINENO: creating $ofile" >&5
  22651. -echo "$as_me: creating $ofile" >&6;}
  22652. -
  22653. - cat <<__EOF__ >> "$cfgfile"
  22654. -#! $SHELL
  22655. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22656. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  22657. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22658. -#
  22659. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  22660. -# Free Software Foundation, Inc.
  22661. -#
  22662. -# This file is part of GNU Libtool:
  22663. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  22664. -#
  22665. -# This program is free software; you can redistribute it and/or modify
  22666. -# it under the terms of the GNU General Public License as published by
  22667. -# the Free Software Foundation; either version 2 of the License, or
  22668. -# (at your option) any later version.
  22669. -#
  22670. -# This program is distributed in the hope that it will be useful, but
  22671. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  22672. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22673. -# General Public License for more details.
  22674. -#
  22675. -# You should have received a copy of the GNU General Public License
  22676. -# along with this program; if not, write to the Free Software
  22677. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22678. -#
  22679. -# As a special exception to the GNU General Public License, if you
  22680. -# distribute this file as part of a program that contains a
  22681. -# configuration script generated by Autoconf, you may include it under
  22682. -# the same distribution terms that you use for the rest of that program.
  22683. -
  22684. -# A sed program that does not truncate output.
  22685. -SED=$lt_SED
  22686. -
  22687. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22688. -Xsed="$SED -e 1s/^X//"
  22689. + # See if GNU ld supports shared libraries.
  22690. + case $host_os in
  22691. + aix[3-9]*)
  22692. + # On AIX/PPC, the GNU linker is very broken
  22693. + if test "$host_cpu" != ia64; then
  22694. + ld_shlibs=no
  22695. + cat <<_LT_EOF 1>&2
  22696. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  22697. -# if CDPATH is set.
  22698. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22699. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  22700. +*** to be unable to reliably create shared libraries on AIX.
  22701. +*** Therefore, libtool is disabling shared libraries support. If you
  22702. +*** really care for shared libraries, you may want to modify your PATH
  22703. +*** so that a non-GNU linker is found, and then restart.
  22704. -# The names of the tagged configurations supported by this script.
  22705. -available_tags=
  22706. +_LT_EOF
  22707. + fi
  22708. + ;;
  22709. -# ### BEGIN LIBTOOL CONFIG
  22710. + amigaos*)
  22711. + case $host_cpu in
  22712. + powerpc)
  22713. + # see comment about AmigaOS4 .so support
  22714. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22715. + archive_expsym_cmds=''
  22716. + ;;
  22717. + m68k)
  22718. + 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)'
  22719. + hardcode_libdir_flag_spec='-L$libdir'
  22720. + hardcode_minus_L=yes
  22721. + ;;
  22722. + esac
  22723. + ;;
  22724. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22725. + beos*)
  22726. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  22727. + allow_undefined_flag=unsupported
  22728. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22729. + # support --undefined. This deserves some investigation. FIXME
  22730. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22731. + else
  22732. + ld_shlibs=no
  22733. + fi
  22734. + ;;
  22735. -# Shell to use when invoking shell scripts.
  22736. -SHELL=$lt_SHELL
  22737. + cygwin* | mingw* | pw32* | cegcc*)
  22738. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  22739. + # as there is no search path for DLLs.
  22740. + hardcode_libdir_flag_spec='-L$libdir'
  22741. + allow_undefined_flag=unsupported
  22742. + always_export_symbols=no
  22743. + enable_shared_with_static_runtimes=yes
  22744. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  22745. -# Whether or not to build shared libraries.
  22746. -build_libtool_libs=$enable_shared
  22747. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  22748. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22749. + # If the export-symbols file already is a .def file (1st line
  22750. + # is EXPORTS), use it as is; otherwise, prepend...
  22751. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22752. + cp $export_symbols $output_objdir/$soname.def;
  22753. + else
  22754. + echo EXPORTS > $output_objdir/$soname.def;
  22755. + cat $export_symbols >> $output_objdir/$soname.def;
  22756. + fi~
  22757. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22758. + else
  22759. + ld_shlibs=no
  22760. + fi
  22761. + ;;
  22762. -# Whether or not to build static libraries.
  22763. -build_old_libs=$enable_static
  22764. + interix[3-9]*)
  22765. + hardcode_direct=no
  22766. + hardcode_shlibpath_var=no
  22767. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22768. + export_dynamic_flag_spec='${wl}-E'
  22769. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22770. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  22771. + # default) and relocated if they conflict, which is a slow very memory
  22772. + # consuming and fragmenting process. To avoid this, we pick a random,
  22773. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22774. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22775. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22776. + 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'
  22777. + ;;
  22778. -# Whether or not to add -lc for building shared libraries.
  22779. -build_libtool_need_lc=$archive_cmds_need_lc
  22780. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  22781. + tmp_diet=no
  22782. + if test "$host_os" = linux-dietlibc; then
  22783. + case $cc_basename in
  22784. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  22785. + esac
  22786. + fi
  22787. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  22788. + && test "$tmp_diet" = no
  22789. + then
  22790. + tmp_addflag=
  22791. + tmp_sharedflag='-shared'
  22792. + case $cc_basename,$host_cpu in
  22793. + pgcc*) # Portland Group C compiler
  22794. + 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'
  22795. + tmp_addflag=' $pic_flag'
  22796. + ;;
  22797. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  22798. + 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'
  22799. + tmp_addflag=' $pic_flag -Mnomain' ;;
  22800. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  22801. + tmp_addflag=' -i_dynamic' ;;
  22802. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  22803. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  22804. + ifc* | ifort*) # Intel Fortran compiler
  22805. + tmp_addflag=' -nofor_main' ;;
  22806. + lf95*) # Lahey Fortran 8.1
  22807. + whole_archive_flag_spec=
  22808. + tmp_sharedflag='--shared' ;;
  22809. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  22810. + tmp_sharedflag='-qmkshrobj'
  22811. + tmp_addflag= ;;
  22812. + esac
  22813. + case `$CC -V 2>&1 | sed 5q` in
  22814. + *Sun\ C*) # Sun C 5.9
  22815. + 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'
  22816. + compiler_needs_object=yes
  22817. + tmp_sharedflag='-G' ;;
  22818. + *Sun\ F*) # Sun Fortran 8.3
  22819. + tmp_sharedflag='-G' ;;
  22820. + esac
  22821. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22822. -# Whether or not to disallow shared libs when runtime libs are static
  22823. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22824. + if test "x$supports_anon_versioning" = xyes; then
  22825. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  22826. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22827. + echo "local: *; };" >> $output_objdir/$libname.ver~
  22828. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22829. + fi
  22830. -# Whether or not to optimize for fast installation.
  22831. -fast_install=$enable_fast_install
  22832. + case $cc_basename in
  22833. + xlf*)
  22834. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  22835. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  22836. + hardcode_libdir_flag_spec=
  22837. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  22838. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  22839. + if test "x$supports_anon_versioning" = xyes; then
  22840. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  22841. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22842. + echo "local: *; };" >> $output_objdir/$libname.ver~
  22843. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  22844. + fi
  22845. + ;;
  22846. + esac
  22847. + else
  22848. + ld_shlibs=no
  22849. + fi
  22850. + ;;
  22851. -# The host system.
  22852. -host_alias=$host_alias
  22853. -host=$host
  22854. -host_os=$host_os
  22855. + netbsd* | netbsdelf*-gnu)
  22856. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  22857. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  22858. + wlarc=
  22859. + else
  22860. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22861. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22862. + fi
  22863. + ;;
  22864. -# The build system.
  22865. -build_alias=$build_alias
  22866. -build=$build
  22867. -build_os=$build_os
  22868. + solaris*)
  22869. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  22870. + ld_shlibs=no
  22871. + cat <<_LT_EOF 1>&2
  22872. -# An echo program that does not interpret backslashes.
  22873. -echo=$lt_echo
  22874. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  22875. +*** create shared libraries on Solaris systems. Therefore, libtool
  22876. +*** is disabling shared libraries support. We urge you to upgrade GNU
  22877. +*** binutils to release 2.9.1 or newer. Another option is to modify
  22878. +*** your PATH or compiler configuration so that the native linker is
  22879. +*** used, and then restart.
  22880. -# The archiver.
  22881. -AR=$lt_AR
  22882. -AR_FLAGS=$lt_AR_FLAGS
  22883. +_LT_EOF
  22884. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  22885. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22886. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22887. + else
  22888. + ld_shlibs=no
  22889. + fi
  22890. + ;;
  22891. -# A C compiler.
  22892. -LTCC=$lt_LTCC
  22893. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  22894. + case `$LD -v 2>&1` in
  22895. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  22896. + ld_shlibs=no
  22897. + cat <<_LT_EOF 1>&2
  22898. -# LTCC compiler flags.
  22899. -LTCFLAGS=$lt_LTCFLAGS
  22900. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  22901. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  22902. +*** is disabling shared libraries support. We urge you to upgrade GNU
  22903. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  22904. +*** your PATH or compiler configuration so that the native linker is
  22905. +*** used, and then restart.
  22906. -# A language-specific compiler.
  22907. -CC=$lt_compiler
  22908. +_LT_EOF
  22909. + ;;
  22910. + *)
  22911. + # For security reasons, it is highly recommended that you always
  22912. + # use absolute paths for naming shared libraries, and exclude the
  22913. + # DT_RUNPATH tag from executables and libraries. But doing so
  22914. + # requires that you compile everything twice, which is a pain.
  22915. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  22916. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22917. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22918. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22919. + else
  22920. + ld_shlibs=no
  22921. + fi
  22922. + ;;
  22923. + esac
  22924. + ;;
  22925. -# Is the compiler the GNU C compiler?
  22926. -with_gcc=$GCC
  22927. + sunos4*)
  22928. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22929. + wlarc=
  22930. + hardcode_direct=yes
  22931. + hardcode_shlibpath_var=no
  22932. + ;;
  22933. -# An ERE matcher.
  22934. -EGREP=$lt_EGREP
  22935. + *)
  22936. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  22937. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22938. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22939. + else
  22940. + ld_shlibs=no
  22941. + fi
  22942. + ;;
  22943. + esac
  22944. -# The linker used to build libraries.
  22945. -LD=$lt_LD
  22946. + if test "$ld_shlibs" = no; then
  22947. + runpath_var=
  22948. + hardcode_libdir_flag_spec=
  22949. + export_dynamic_flag_spec=
  22950. + whole_archive_flag_spec=
  22951. + fi
  22952. + else
  22953. + # PORTME fill in a description of your system's linker (not GNU ld)
  22954. + case $host_os in
  22955. + aix3*)
  22956. + allow_undefined_flag=unsupported
  22957. + always_export_symbols=yes
  22958. + 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'
  22959. + # Note: this linker hardcodes the directories in LIBPATH if there
  22960. + # are no directories specified by -L.
  22961. + hardcode_minus_L=yes
  22962. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  22963. + # Neither direct hardcoding nor static linking is supported with a
  22964. + # broken collect2.
  22965. + hardcode_direct=unsupported
  22966. + fi
  22967. + ;;
  22968. -# Whether we need hard or soft links.
  22969. -LN_S=$lt_LN_S
  22970. -
  22971. -# A BSD-compatible nm program.
  22972. -NM=$lt_NM
  22973. -
  22974. -# A symbol stripping program
  22975. -STRIP=$lt_STRIP
  22976. + aix[4-9]*)
  22977. + if test "$host_cpu" = ia64; then
  22978. + # On IA64, the linker does run time linking by default, so we don't
  22979. + # have to do anything special.
  22980. + aix_use_runtimelinking=no
  22981. + exp_sym_flag='-Bexport'
  22982. + no_entry_flag=""
  22983. + else
  22984. + # If we're using GNU nm, then we don't want the "-C" option.
  22985. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  22986. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  22987. + 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'
  22988. + else
  22989. + 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'
  22990. + fi
  22991. + aix_use_runtimelinking=no
  22992. -# Used to examine libraries when file_magic_cmd begins "file"
  22993. -MAGIC_CMD=$MAGIC_CMD
  22994. + # Test if we are trying to use run time linking or normal
  22995. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22996. + # need to do runtime linking.
  22997. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  22998. + for ld_flag in $LDFLAGS; do
  22999. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  23000. + aix_use_runtimelinking=yes
  23001. + break
  23002. + fi
  23003. + done
  23004. + ;;
  23005. + esac
  23006. -# Used on cygwin: DLL creation program.
  23007. -DLLTOOL="$DLLTOOL"
  23008. + exp_sym_flag='-bexport'
  23009. + no_entry_flag='-bnoentry'
  23010. + fi
  23011. -# Used on cygwin: object dumper.
  23012. -OBJDUMP="$OBJDUMP"
  23013. + # When large executables or shared objects are built, AIX ld can
  23014. + # have problems creating the table of contents. If linking a library
  23015. + # or program results in "error TOC overflow" add -mminimal-toc to
  23016. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  23017. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  23018. -# Used on cygwin: assembler.
  23019. -AS="$AS"
  23020. + archive_cmds=''
  23021. + hardcode_direct=yes
  23022. + hardcode_direct_absolute=yes
  23023. + hardcode_libdir_separator=':'
  23024. + link_all_deplibs=yes
  23025. + file_list_spec='${wl}-f,'
  23026. -# The name of the directory that contains temporary libtool files.
  23027. -objdir=$objdir
  23028. + if test "$GCC" = yes; then
  23029. + case $host_os in aix4.[012]|aix4.[012].*)
  23030. + # We only want to do this on AIX 4.2 and lower, the check
  23031. + # below for broken collect2 doesn't work under 4.3+
  23032. + collect2name=`${CC} -print-prog-name=collect2`
  23033. + if test -f "$collect2name" &&
  23034. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  23035. + then
  23036. + # We have reworked collect2
  23037. + :
  23038. + else
  23039. + # We have old collect2
  23040. + hardcode_direct=unsupported
  23041. + # It fails to find uninstalled libraries when the uninstalled
  23042. + # path is not listed in the libpath. Setting hardcode_minus_L
  23043. + # to unsupported forces relinking
  23044. + hardcode_minus_L=yes
  23045. + hardcode_libdir_flag_spec='-L$libdir'
  23046. + hardcode_libdir_separator=
  23047. + fi
  23048. + ;;
  23049. + esac
  23050. + shared_flag='-shared'
  23051. + if test "$aix_use_runtimelinking" = yes; then
  23052. + shared_flag="$shared_flag "'${wl}-G'
  23053. + fi
  23054. + link_all_deplibs=no
  23055. + else
  23056. + # not using gcc
  23057. + if test "$host_cpu" = ia64; then
  23058. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  23059. + # chokes on -Wl,-G. The following line is correct:
  23060. + shared_flag='-G'
  23061. + else
  23062. + if test "$aix_use_runtimelinking" = yes; then
  23063. + shared_flag='${wl}-G'
  23064. + else
  23065. + shared_flag='${wl}-bM:SRE'
  23066. + fi
  23067. + fi
  23068. + fi
  23069. -# How to create reloadable object files.
  23070. -reload_flag=$lt_reload_flag
  23071. -reload_cmds=$lt_reload_cmds
  23072. + export_dynamic_flag_spec='${wl}-bexpall'
  23073. + # It seems that -bexpall does not export symbols beginning with
  23074. + # underscore (_), so it is better to generate a list of symbols to export.
  23075. + always_export_symbols=yes
  23076. + if test "$aix_use_runtimelinking" = yes; then
  23077. + # Warning - without using the other runtime loading flags (-brtl),
  23078. + # -berok will link without error, but may produce a broken library.
  23079. + allow_undefined_flag='-berok'
  23080. + # Determine the default libpath from the value encoded in an
  23081. + # empty executable.
  23082. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23083. +/* end confdefs.h. */
  23084. -# How to pass a linker flag through the compiler.
  23085. -wl=$lt_lt_prog_compiler_wl
  23086. +int
  23087. +main ()
  23088. +{
  23089. -# Object file suffix (normally "o").
  23090. -objext="$ac_objext"
  23091. + ;
  23092. + return 0;
  23093. +}
  23094. +_ACEOF
  23095. +if ac_fn_c_try_link "$LINENO"; then :
  23096. -# Old archive suffix (normally "a").
  23097. -libext="$libext"
  23098. +lt_aix_libpath_sed='
  23099. + /Import File Strings/,/^$/ {
  23100. + /^0/ {
  23101. + s/^0 *\(.*\)$/\1/
  23102. + p
  23103. + }
  23104. + }'
  23105. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23106. +# Check for a 64-bit object if we didn't find anything.
  23107. +if test -z "$aix_libpath"; then
  23108. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23109. +fi
  23110. +fi
  23111. +rm -f core conftest.err conftest.$ac_objext \
  23112. + conftest$ac_exeext conftest.$ac_ext
  23113. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  23114. -# Shared library suffix (normally ".so").
  23115. -shrext_cmds='$shrext_cmds'
  23116. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  23117. + 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"
  23118. + else
  23119. + if test "$host_cpu" = ia64; then
  23120. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  23121. + allow_undefined_flag="-z nodefs"
  23122. + 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"
  23123. + else
  23124. + # Determine the default libpath from the value encoded in an
  23125. + # empty executable.
  23126. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23127. +/* end confdefs.h. */
  23128. -# Executable file suffix (normally "").
  23129. -exeext="$exeext"
  23130. +int
  23131. +main ()
  23132. +{
  23133. -# Additional compiler flags for building library objects.
  23134. -pic_flag=$lt_lt_prog_compiler_pic
  23135. -pic_mode=$pic_mode
  23136. + ;
  23137. + return 0;
  23138. +}
  23139. +_ACEOF
  23140. +if ac_fn_c_try_link "$LINENO"; then :
  23141. -# What is the maximum length of a command?
  23142. -max_cmd_len=$lt_cv_sys_max_cmd_len
  23143. +lt_aix_libpath_sed='
  23144. + /Import File Strings/,/^$/ {
  23145. + /^0/ {
  23146. + s/^0 *\(.*\)$/\1/
  23147. + p
  23148. + }
  23149. + }'
  23150. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23151. +# Check for a 64-bit object if we didn't find anything.
  23152. +if test -z "$aix_libpath"; then
  23153. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  23154. +fi
  23155. +fi
  23156. +rm -f core conftest.err conftest.$ac_objext \
  23157. + conftest$ac_exeext conftest.$ac_ext
  23158. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  23159. -# Does compiler simultaneously support -c and -o options?
  23160. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23161. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  23162. + # Warning - without using the other run time loading flags,
  23163. + # -berok will link without error, but may produce a broken library.
  23164. + no_undefined_flag=' ${wl}-bernotok'
  23165. + allow_undefined_flag=' ${wl}-berok'
  23166. + # Exported symbols can be pulled into shared objects from archives
  23167. + whole_archive_flag_spec='$convenience'
  23168. + archive_cmds_need_lc=yes
  23169. + # This is similar to how AIX traditionally builds its shared libraries.
  23170. + 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'
  23171. + fi
  23172. + fi
  23173. + ;;
  23174. -# Must we lock files when doing compilation?
  23175. -need_locks=$lt_need_locks
  23176. + amigaos*)
  23177. + case $host_cpu in
  23178. + powerpc)
  23179. + # see comment about AmigaOS4 .so support
  23180. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23181. + archive_expsym_cmds=''
  23182. + ;;
  23183. + m68k)
  23184. + 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)'
  23185. + hardcode_libdir_flag_spec='-L$libdir'
  23186. + hardcode_minus_L=yes
  23187. + ;;
  23188. + esac
  23189. + ;;
  23190. -# Do we need the lib prefix for modules?
  23191. -need_lib_prefix=$need_lib_prefix
  23192. + bsdi[45]*)
  23193. + export_dynamic_flag_spec=-rdynamic
  23194. + ;;
  23195. -# Do we need a version for libraries?
  23196. -need_version=$need_version
  23197. + cygwin* | mingw* | pw32* | cegcc*)
  23198. + # When not using gcc, we currently assume that we are using
  23199. + # Microsoft Visual C++.
  23200. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  23201. + # no search path for DLLs.
  23202. + hardcode_libdir_flag_spec=' '
  23203. + allow_undefined_flag=unsupported
  23204. + # Tell ltmain to make .lib files, not .a files.
  23205. + libext=lib
  23206. + # Tell ltmain to make .dll files, not .so files.
  23207. + shrext_cmds=".dll"
  23208. + # FIXME: Setting linknames here is a bad hack.
  23209. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  23210. + # The linker will automatically build a .lib file if we build a DLL.
  23211. + old_archive_from_new_cmds='true'
  23212. + # FIXME: Should let the user specify the lib program.
  23213. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  23214. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  23215. + enable_shared_with_static_runtimes=yes
  23216. + ;;
  23217. -# Whether dlopen is supported.
  23218. -dlopen_support=$enable_dlopen
  23219. + darwin* | rhapsody*)
  23220. -# Whether dlopen of programs is supported.
  23221. -dlopen_self=$enable_dlopen_self
  23222. -# Whether dlopen of statically linked programs is supported.
  23223. -dlopen_self_static=$enable_dlopen_self_static
  23224. + archive_cmds_need_lc=no
  23225. + hardcode_direct=no
  23226. + hardcode_automatic=yes
  23227. + hardcode_shlibpath_var=unsupported
  23228. + whole_archive_flag_spec=''
  23229. + link_all_deplibs=yes
  23230. + allow_undefined_flag="$_lt_dar_allow_undefined"
  23231. + case $cc_basename in
  23232. + ifort*) _lt_dar_can_shared=yes ;;
  23233. + *) _lt_dar_can_shared=$GCC ;;
  23234. + esac
  23235. + if test "$_lt_dar_can_shared" = "yes"; then
  23236. + output_verbose_link_cmd=echo
  23237. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  23238. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  23239. + 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}"
  23240. + 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}"
  23241. -# Compiler flag to prevent dynamic linking.
  23242. -link_static_flag=$lt_lt_prog_compiler_static
  23243. + else
  23244. + ld_shlibs=no
  23245. + fi
  23246. -# Compiler flag to turn off builtin functions.
  23247. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23248. + ;;
  23249. -# Compiler flag to allow reflexive dlopens.
  23250. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23251. + dgux*)
  23252. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23253. + hardcode_libdir_flag_spec='-L$libdir'
  23254. + hardcode_shlibpath_var=no
  23255. + ;;
  23256. -# Compiler flag to generate shared objects directly from archives.
  23257. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23258. + freebsd1*)
  23259. + ld_shlibs=no
  23260. + ;;
  23261. -# Compiler flag to generate thread-safe objects.
  23262. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  23263. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  23264. + # support. Future versions do this automatically, but an explicit c++rt0.o
  23265. + # does not break anything, and helps significantly (at the cost of a little
  23266. + # extra space).
  23267. + freebsd2.2*)
  23268. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  23269. + hardcode_libdir_flag_spec='-R$libdir'
  23270. + hardcode_direct=yes
  23271. + hardcode_shlibpath_var=no
  23272. + ;;
  23273. -# Library versioning type.
  23274. -version_type=$version_type
  23275. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  23276. + freebsd2*)
  23277. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23278. + hardcode_direct=yes
  23279. + hardcode_minus_L=yes
  23280. + hardcode_shlibpath_var=no
  23281. + ;;
  23282. -# Format of library name prefix.
  23283. -libname_spec=$lt_libname_spec
  23284. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  23285. + freebsd* | dragonfly*)
  23286. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  23287. + hardcode_libdir_flag_spec='-R$libdir'
  23288. + hardcode_direct=yes
  23289. + hardcode_shlibpath_var=no
  23290. + ;;
  23291. -# List of archive names. First name is the real one, the rest are links.
  23292. -# The last name is the one that the linker finds with -lNAME.
  23293. -library_names_spec=$lt_library_names_spec
  23294. -
  23295. -# The coded name of the library, if different from the real name.
  23296. -soname_spec=$lt_soname_spec
  23297. -
  23298. -# Commands used to build and install an old-style archive.
  23299. -RANLIB=$lt_RANLIB
  23300. -old_archive_cmds=$lt_old_archive_cmds
  23301. -old_postinstall_cmds=$lt_old_postinstall_cmds
  23302. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23303. + hpux9*)
  23304. + if test "$GCC" = yes; then
  23305. + 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'
  23306. + else
  23307. + 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'
  23308. + fi
  23309. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23310. + hardcode_libdir_separator=:
  23311. + hardcode_direct=yes
  23312. -# Create an old-style archive from a shared archive.
  23313. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23314. + # hardcode_minus_L: Not really in the search PATH,
  23315. + # but as the default location of the library.
  23316. + hardcode_minus_L=yes
  23317. + export_dynamic_flag_spec='${wl}-E'
  23318. + ;;
  23319. -# Create a temporary old-style archive to link instead of a shared archive.
  23320. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23321. + hpux10*)
  23322. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  23323. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23324. + else
  23325. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  23326. + fi
  23327. + if test "$with_gnu_ld" = no; then
  23328. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23329. + hardcode_libdir_flag_spec_ld='+b $libdir'
  23330. + hardcode_libdir_separator=:
  23331. + hardcode_direct=yes
  23332. + hardcode_direct_absolute=yes
  23333. + export_dynamic_flag_spec='${wl}-E'
  23334. + # hardcode_minus_L: Not really in the search PATH,
  23335. + # but as the default location of the library.
  23336. + hardcode_minus_L=yes
  23337. + fi
  23338. + ;;
  23339. -# Commands used to build and install a shared archive.
  23340. -archive_cmds=$lt_archive_cmds
  23341. -archive_expsym_cmds=$lt_archive_expsym_cmds
  23342. -postinstall_cmds=$lt_postinstall_cmds
  23343. -postuninstall_cmds=$lt_postuninstall_cmds
  23344. + hpux11*)
  23345. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  23346. + case $host_cpu in
  23347. + hppa*64*)
  23348. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23349. + ;;
  23350. + ia64*)
  23351. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  23352. + ;;
  23353. + *)
  23354. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23355. + ;;
  23356. + esac
  23357. + else
  23358. + case $host_cpu in
  23359. + hppa*64*)
  23360. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23361. + ;;
  23362. + ia64*)
  23363. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  23364. + ;;
  23365. + *)
  23366. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  23367. + ;;
  23368. + esac
  23369. + fi
  23370. + if test "$with_gnu_ld" = no; then
  23371. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  23372. + hardcode_libdir_separator=:
  23373. -# Commands used to build a loadable module (assumed same as above if empty)
  23374. -module_cmds=$lt_module_cmds
  23375. -module_expsym_cmds=$lt_module_expsym_cmds
  23376. + case $host_cpu in
  23377. + hppa*64*|ia64*)
  23378. + hardcode_direct=no
  23379. + hardcode_shlibpath_var=no
  23380. + ;;
  23381. + *)
  23382. + hardcode_direct=yes
  23383. + hardcode_direct_absolute=yes
  23384. + export_dynamic_flag_spec='${wl}-E'
  23385. -# Commands to strip libraries.
  23386. -old_striplib=$lt_old_striplib
  23387. -striplib=$lt_striplib
  23388. + # hardcode_minus_L: Not really in the search PATH,
  23389. + # but as the default location of the library.
  23390. + hardcode_minus_L=yes
  23391. + ;;
  23392. + esac
  23393. + fi
  23394. + ;;
  23395. -# Dependencies to place before the objects being linked to create a
  23396. -# shared library.
  23397. -predep_objects=$lt_predep_objects
  23398. -
  23399. -# Dependencies to place after the objects being linked to create a
  23400. -# shared library.
  23401. -postdep_objects=$lt_postdep_objects
  23402. -
  23403. -# Dependencies to place before the objects being linked to create a
  23404. -# shared library.
  23405. -predeps=$lt_predeps
  23406. -
  23407. -# Dependencies to place after the objects being linked to create a
  23408. -# shared library.
  23409. -postdeps=$lt_postdeps
  23410. -
  23411. -# The directories searched by this compiler when creating a shared
  23412. -# library
  23413. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23414. -
  23415. -# The library search path used internally by the compiler when linking
  23416. -# a shared library.
  23417. -compiler_lib_search_path=$lt_compiler_lib_search_path
  23418. + irix5* | irix6* | nonstopux*)
  23419. + if test "$GCC" = yes; then
  23420. + 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'
  23421. + # Try to use the -exported_symbol ld option, if it does not
  23422. + # work, assume that -exports_file does not work either and
  23423. + # implicitly export all symbols.
  23424. + save_LDFLAGS="$LDFLAGS"
  23425. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  23426. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23427. +/* end confdefs.h. */
  23428. +int foo(void) {}
  23429. +_ACEOF
  23430. +if ac_fn_c_try_link "$LINENO"; then :
  23431. + 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'
  23432. -# Method to check whether dependent libraries are shared objects.
  23433. -deplibs_check_method=$lt_deplibs_check_method
  23434. +fi
  23435. +rm -f core conftest.err conftest.$ac_objext \
  23436. + conftest$ac_exeext conftest.$ac_ext
  23437. + LDFLAGS="$save_LDFLAGS"
  23438. + else
  23439. + 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'
  23440. + 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'
  23441. + fi
  23442. + archive_cmds_need_lc='no'
  23443. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23444. + hardcode_libdir_separator=:
  23445. + inherit_rpath=yes
  23446. + link_all_deplibs=yes
  23447. + ;;
  23448. -# Command to use when deplibs_check_method == file_magic.
  23449. -file_magic_cmd=$lt_file_magic_cmd
  23450. + netbsd* | netbsdelf*-gnu)
  23451. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  23452. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  23453. + else
  23454. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  23455. + fi
  23456. + hardcode_libdir_flag_spec='-R$libdir'
  23457. + hardcode_direct=yes
  23458. + hardcode_shlibpath_var=no
  23459. + ;;
  23460. -# Flag that allows shared libraries with undefined symbols to be built.
  23461. -allow_undefined_flag=$lt_allow_undefined_flag
  23462. + newsos6)
  23463. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23464. + hardcode_direct=yes
  23465. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23466. + hardcode_libdir_separator=:
  23467. + hardcode_shlibpath_var=no
  23468. + ;;
  23469. -# Flag that forces no undefined symbols.
  23470. -no_undefined_flag=$lt_no_undefined_flag
  23471. + *nto* | *qnx*)
  23472. + ;;
  23473. -# Commands used to finish a libtool library installation in a directory.
  23474. -finish_cmds=$lt_finish_cmds
  23475. + openbsd*)
  23476. + if test -f /usr/libexec/ld.so; then
  23477. + hardcode_direct=yes
  23478. + hardcode_shlibpath_var=no
  23479. + hardcode_direct_absolute=yes
  23480. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23481. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23482. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  23483. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  23484. + export_dynamic_flag_spec='${wl}-E'
  23485. + else
  23486. + case $host_os in
  23487. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  23488. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23489. + hardcode_libdir_flag_spec='-R$libdir'
  23490. + ;;
  23491. + *)
  23492. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  23493. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  23494. + ;;
  23495. + esac
  23496. + fi
  23497. + else
  23498. + ld_shlibs=no
  23499. + fi
  23500. + ;;
  23501. -# Same as above, but a single script fragment to be evaled but not shown.
  23502. -finish_eval=$lt_finish_eval
  23503. + os2*)
  23504. + hardcode_libdir_flag_spec='-L$libdir'
  23505. + hardcode_minus_L=yes
  23506. + allow_undefined_flag=unsupported
  23507. + 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'
  23508. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  23509. + ;;
  23510. -# Take the output of nm and produce a listing of raw symbols and C names.
  23511. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23512. + osf3*)
  23513. + if test "$GCC" = yes; then
  23514. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23515. + 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'
  23516. + else
  23517. + allow_undefined_flag=' -expect_unresolved \*'
  23518. + 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'
  23519. + fi
  23520. + archive_cmds_need_lc='no'
  23521. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23522. + hardcode_libdir_separator=:
  23523. + ;;
  23524. -# Transform the output of nm in a proper C declaration
  23525. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23526. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  23527. + if test "$GCC" = yes; then
  23528. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  23529. + 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'
  23530. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  23531. + else
  23532. + allow_undefined_flag=' -expect_unresolved \*'
  23533. + 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'
  23534. + 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~
  23535. + $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'
  23536. -# Transform the output of nm in a C name address pair
  23537. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23538. + # Both c and cxx compiler support -rpath directly
  23539. + hardcode_libdir_flag_spec='-rpath $libdir'
  23540. + fi
  23541. + archive_cmds_need_lc='no'
  23542. + hardcode_libdir_separator=:
  23543. + ;;
  23544. -# This is the shared library runtime path variable.
  23545. -runpath_var=$runpath_var
  23546. + solaris*)
  23547. + no_undefined_flag=' -z defs'
  23548. + if test "$GCC" = yes; then
  23549. + wlarc='${wl}'
  23550. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23551. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  23552. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  23553. + else
  23554. + case `$CC -V 2>&1` in
  23555. + *"Compilers 5.0"*)
  23556. + wlarc=''
  23557. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23558. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  23559. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  23560. + ;;
  23561. + *)
  23562. + wlarc='${wl}'
  23563. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  23564. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  23565. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  23566. + ;;
  23567. + esac
  23568. + fi
  23569. + hardcode_libdir_flag_spec='-R$libdir'
  23570. + hardcode_shlibpath_var=no
  23571. + case $host_os in
  23572. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  23573. + *)
  23574. + # The compiler driver will combine and reorder linker options,
  23575. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  23576. + # but is careful enough not to reorder.
  23577. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  23578. + if test "$GCC" = yes; then
  23579. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  23580. + else
  23581. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  23582. + fi
  23583. + ;;
  23584. + esac
  23585. + link_all_deplibs=yes
  23586. + ;;
  23587. -# This is the shared library path variable.
  23588. -shlibpath_var=$shlibpath_var
  23589. + sunos4*)
  23590. + if test "x$host_vendor" = xsequent; then
  23591. + # Use $CC to link under sequent, because it throws in some extra .o
  23592. + # files that make .init and .fini sections work.
  23593. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  23594. + else
  23595. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  23596. + fi
  23597. + hardcode_libdir_flag_spec='-L$libdir'
  23598. + hardcode_direct=yes
  23599. + hardcode_minus_L=yes
  23600. + hardcode_shlibpath_var=no
  23601. + ;;
  23602. -# Is shlibpath searched before the hard-coded library search path?
  23603. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23604. + sysv4)
  23605. + case $host_vendor in
  23606. + sni)
  23607. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23608. + hardcode_direct=yes # is this really true???
  23609. + ;;
  23610. + siemens)
  23611. + ## LD is ld it makes a PLAMLIB
  23612. + ## CC just makes a GrossModule.
  23613. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  23614. + reload_cmds='$CC -r -o $output$reload_objs'
  23615. + hardcode_direct=no
  23616. + ;;
  23617. + motorola)
  23618. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23619. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  23620. + ;;
  23621. + esac
  23622. + runpath_var='LD_RUN_PATH'
  23623. + hardcode_shlibpath_var=no
  23624. + ;;
  23625. -# How to hardcode a shared library path into an executable.
  23626. -hardcode_action=$hardcode_action
  23627. + sysv4.3*)
  23628. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23629. + hardcode_shlibpath_var=no
  23630. + export_dynamic_flag_spec='-Bexport'
  23631. + ;;
  23632. -# Whether we should hardcode library paths into libraries.
  23633. -hardcode_into_libs=$hardcode_into_libs
  23634. + sysv4*MP*)
  23635. + if test -d /usr/nec; then
  23636. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23637. + hardcode_shlibpath_var=no
  23638. + runpath_var=LD_RUN_PATH
  23639. + hardcode_runpath_var=yes
  23640. + ld_shlibs=yes
  23641. + fi
  23642. + ;;
  23643. -# Flag to hardcode \$libdir into a binary during linking.
  23644. -# This must work even if \$libdir does not exist.
  23645. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23646. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23647. + no_undefined_flag='${wl}-z,text'
  23648. + archive_cmds_need_lc=no
  23649. + hardcode_shlibpath_var=no
  23650. + runpath_var='LD_RUN_PATH'
  23651. -# If ld is used when linking, flag to hardcode \$libdir into
  23652. -# a binary during linking. This must work even if \$libdir does
  23653. -# not exist.
  23654. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23655. + if test "$GCC" = yes; then
  23656. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23657. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23658. + else
  23659. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23660. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23661. + fi
  23662. + ;;
  23663. -# Whether we need a single -rpath flag with a separated argument.
  23664. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23665. + sysv5* | sco3.2v5* | sco5v6*)
  23666. + # Note: We can NOT use -z defs as we might desire, because we do not
  23667. + # link with -lc, and that would cause any symbols used from libc to
  23668. + # always be unresolved, which means just about no library would
  23669. + # ever link correctly. If we're not using GNU ld we use -z text
  23670. + # though, which does catch some bad symbols but isn't as heavy-handed
  23671. + # as -z defs.
  23672. + no_undefined_flag='${wl}-z,text'
  23673. + allow_undefined_flag='${wl}-z,nodefs'
  23674. + archive_cmds_need_lc=no
  23675. + hardcode_shlibpath_var=no
  23676. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  23677. + hardcode_libdir_separator=':'
  23678. + link_all_deplibs=yes
  23679. + export_dynamic_flag_spec='${wl}-Bexport'
  23680. + runpath_var='LD_RUN_PATH'
  23681. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  23682. -# resulting binary.
  23683. -hardcode_direct=$hardcode_direct
  23684. + if test "$GCC" = yes; then
  23685. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23686. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23687. + else
  23688. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23689. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23690. + fi
  23691. + ;;
  23692. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  23693. -# resulting binary.
  23694. -hardcode_minus_L=$hardcode_minus_L
  23695. + uts4*)
  23696. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  23697. + hardcode_libdir_flag_spec='-L$libdir'
  23698. + hardcode_shlibpath_var=no
  23699. + ;;
  23700. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  23701. -# the resulting binary.
  23702. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  23703. + *)
  23704. + ld_shlibs=no
  23705. + ;;
  23706. + esac
  23707. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  23708. -# and all subsequent libraries and executables linked against it.
  23709. -hardcode_automatic=$hardcode_automatic
  23710. + if test x$host_vendor = xsni; then
  23711. + case $host in
  23712. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  23713. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  23714. + ;;
  23715. + esac
  23716. + fi
  23717. + fi
  23718. -# Variables whose values should be saved in libtool wrapper scripts and
  23719. -# restored at relink time.
  23720. -variables_saved_for_relink="$variables_saved_for_relink"
  23721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  23722. +$as_echo "$ld_shlibs" >&6; }
  23723. +test "$ld_shlibs" = no && can_build_shared=no
  23724. -# Whether libtool must link a program against all its dependency libraries.
  23725. -link_all_deplibs=$link_all_deplibs
  23726. +with_gnu_ld=$with_gnu_ld
  23727. -# Compile-time system search path for libraries
  23728. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23729. -# Run-time system search path for libraries
  23730. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23731. -# Fix the shell variable \$srcfile for the compiler.
  23732. -fix_srcfile_path=$lt_fix_srcfile_path
  23733. -# Set to yes if exported symbols are required.
  23734. -always_export_symbols=$always_export_symbols
  23735. -# The commands to list exported symbols.
  23736. -export_symbols_cmds=$lt_export_symbols_cmds
  23737. -# The commands to extract the exported symbol list from a shared archive.
  23738. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23739. -# Symbols that should not be listed in the preloaded symbols.
  23740. -exclude_expsyms=$lt_exclude_expsyms
  23741. -# Symbols that must always be exported.
  23742. -include_expsyms=$lt_include_expsyms
  23743. -# ### END LIBTOOL CONFIG
  23744. -__EOF__
  23745. - case $host_os in
  23746. - aix3*)
  23747. - cat <<\EOF >> "$cfgfile"
  23748. -# AIX sometimes has problems with the GCC collect2 program. For some
  23749. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  23750. -# vanish in a puff of smoke.
  23751. -if test "X${COLLECT_NAMES+set}" != Xset; then
  23752. - COLLECT_NAMES=
  23753. - export COLLECT_NAMES
  23754. -fi
  23755. -EOF
  23756. - ;;
  23757. - esac
  23758. - # We use sed instead of cat because bash on DJGPP gets confused if
  23759. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23760. - # text mode, it properly converts lines to CR/LF. This bash problem
  23761. - # is reportedly fixed, but why not run on old versions too?
  23762. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  23763. - mv -f "$cfgfile" "$ofile" || \
  23764. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23765. - chmod +x "$ofile"
  23766. +#
  23767. +# Do we need to explicitly link libc?
  23768. +#
  23769. +case "x$archive_cmds_need_lc" in
  23770. +x|xyes)
  23771. + # Assume -lc should be added
  23772. + archive_cmds_need_lc=yes
  23773. -else
  23774. - # If there is no Makefile yet, we rely on a make rule to execute
  23775. - # `config.status --recheck' to rerun these tests and create the
  23776. - # libtool script then.
  23777. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  23778. - if test -f "$ltmain_in"; then
  23779. - test -f Makefile && make "$ltmain"
  23780. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  23781. + case $archive_cmds in
  23782. + *'~'*)
  23783. + # FIXME: we may have to deal with multi-command sequences.
  23784. + ;;
  23785. + '$CC '*)
  23786. + # Test whether the compiler implicitly links with -lc since on some
  23787. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  23788. + # to ld, don't add -lc before -lgcc.
  23789. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  23790. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  23791. + $RM conftest*
  23792. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  23793. +
  23794. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23795. + (eval $ac_compile) 2>&5
  23796. + ac_status=$?
  23797. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23798. + test $ac_status = 0; } 2>conftest.err; then
  23799. + soname=conftest
  23800. + lib=conftest
  23801. + libobjs=conftest.$ac_objext
  23802. + deplibs=
  23803. + wl=$lt_prog_compiler_wl
  23804. + pic_flag=$lt_prog_compiler_pic
  23805. + compiler_flags=-v
  23806. + linker_flags=-v
  23807. + verstring=
  23808. + output_objdir=.
  23809. + libname=conftest
  23810. + lt_save_allow_undefined_flag=$allow_undefined_flag
  23811. + allow_undefined_flag=
  23812. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  23813. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  23814. + ac_status=$?
  23815. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23816. + test $ac_status = 0; }
  23817. + then
  23818. + archive_cmds_need_lc=no
  23819. + else
  23820. + archive_cmds_need_lc=yes
  23821. + fi
  23822. + allow_undefined_flag=$lt_save_allow_undefined_flag
  23823. + else
  23824. + cat conftest.err 1>&5
  23825. + fi
  23826. + $RM conftest*
  23827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  23828. +$as_echo "$archive_cmds_need_lc" >&6; }
  23829. + ;;
  23830. + esac
  23831. fi
  23832. -fi
  23833. + ;;
  23834. +esac
  23835. +
  23836. +
  23837. +
  23838. +
  23839. +
  23840. +
  23841. +
  23842. +
  23843. +
  23844. +
  23845. +
  23846. +
  23847. +
  23848. +
  23849. +
  23850. +
  23851. +
  23852. +
  23853. +
  23854. +
  23855. +
  23856. +
  23857. +
  23858. +
  23859. +
  23860. +
  23861. +
  23862. +
  23863. +
  23864. +
  23865. +
  23866. +
  23867. +
  23868. +
  23869. +
  23870. +
  23871. +
  23872. +
  23873. +
  23874. +
  23875. +
  23876. +
  23877. +
  23878. +
  23879. +
  23880. +
  23881. +
  23882. +
  23883. +
  23884. +
  23885. +
  23886. +
  23887. +
  23888. +
  23889. +
  23890. +
  23891. +
  23892. +
  23893. +
  23894. +
  23895. +
  23896. +
  23897. +
  23898. -ac_ext=c
  23899. -ac_cpp='$CPP $CPPFLAGS'
  23900. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23901. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23902. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23903. -CC="$lt_save_CC"
  23904. -# Check whether --with-tags was given.
  23905. -if test "${with_tags+set}" = set; then
  23906. - withval=$with_tags; tagnames="$withval"
  23907. -fi
  23908. -if test -f "$ltmain" && test -n "$tagnames"; then
  23909. - if test ! -f "${ofile}"; then
  23910. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  23911. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  23912. - fi
  23913. - if test -z "$LTCC"; then
  23914. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  23915. - if test -z "$LTCC"; then
  23916. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  23917. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  23918. - else
  23919. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  23920. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  23921. - fi
  23922. - fi
  23923. - if test -z "$LTCFLAGS"; then
  23924. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  23925. - fi
  23926. - # Extract list of available tagged configurations in $ofile.
  23927. - # Note that this assumes the entire list is on one line.
  23928. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  23929. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  23930. - for tagname in $tagnames; do
  23931. - IFS="$lt_save_ifs"
  23932. - # Check whether tagname contains only valid characters
  23933. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  23934. - "") ;;
  23935. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  23936. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  23937. - { (exit 1); exit 1; }; }
  23938. - ;;
  23939. - esac
  23940. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  23941. - then
  23942. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  23943. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  23944. - { (exit 1); exit 1; }; }
  23945. - fi
  23946. - # Update the list of available tags.
  23947. - if test -n "$tagname"; then
  23948. - echo appending configuration tag \"$tagname\" to $ofile
  23949. -
  23950. - case $tagname in
  23951. - CXX)
  23952. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  23953. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  23954. - (test "X$CXX" != "Xg++"))) ; then
  23955. - ac_ext=cpp
  23956. -ac_cpp='$CXXCPP $CPPFLAGS'
  23957. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23958. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23959. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23960. -archive_cmds_need_lc_CXX=no
  23961. -allow_undefined_flag_CXX=
  23962. -always_export_symbols_CXX=no
  23963. -archive_expsym_cmds_CXX=
  23964. -export_dynamic_flag_spec_CXX=
  23965. -hardcode_direct_CXX=no
  23966. -hardcode_libdir_flag_spec_CXX=
  23967. -hardcode_libdir_flag_spec_ld_CXX=
  23968. -hardcode_libdir_separator_CXX=
  23969. -hardcode_minus_L_CXX=no
  23970. -hardcode_shlibpath_var_CXX=unsupported
  23971. -hardcode_automatic_CXX=no
  23972. -module_cmds_CXX=
  23973. -module_expsym_cmds_CXX=
  23974. -link_all_deplibs_CXX=unknown
  23975. -old_archive_cmds_CXX=$old_archive_cmds
  23976. -no_undefined_flag_CXX=
  23977. -whole_archive_flag_spec_CXX=
  23978. -enable_shared_with_static_runtimes_CXX=no
  23979. -
  23980. -# Dependencies to place before and after the object being linked:
  23981. -predep_objects_CXX=
  23982. -postdep_objects_CXX=
  23983. -predeps_CXX=
  23984. -postdeps_CXX=
  23985. -compiler_lib_search_path_CXX=
  23986. -compiler_lib_search_dirs_CXX=
  23987. -# Source file extension for C++ test sources.
  23988. -ac_ext=cpp
  23989. -# Object file extension for compiled C++ test sources.
  23990. -objext=o
  23991. -objext_CXX=$objext
  23992. -# Code to be used in simple compile tests
  23993. -lt_simple_compile_test_code="int some_variable = 0;"
  23994. -# Code to be used in simple link tests
  23995. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  23996. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  23997. -# If no C compiler was specified, use CC.
  23998. -LTCC=${LTCC-"$CC"}
  23999. -# If no C compiler flags were specified, use CFLAGS.
  24000. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24001. -# Allow CC to be a program name with arguments.
  24002. -compiler=$CC
  24003. -# save warnings/boilerplate of simple test code
  24004. -ac_outfile=conftest.$ac_objext
  24005. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  24006. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24007. -_lt_compiler_boilerplate=`cat conftest.err`
  24008. -$rm conftest*
  24009. -ac_outfile=conftest.$ac_objext
  24010. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  24011. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  24012. -_lt_linker_boilerplate=`cat conftest.err`
  24013. -$rm -r conftest*
  24014. -# Allow CC to be a program name with arguments.
  24015. -lt_save_CC=$CC
  24016. -lt_save_LD=$LD
  24017. -lt_save_GCC=$GCC
  24018. -GCC=$GXX
  24019. -lt_save_with_gnu_ld=$with_gnu_ld
  24020. -lt_save_path_LD=$lt_cv_path_LD
  24021. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  24022. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  24023. -else
  24024. - $as_unset lt_cv_prog_gnu_ld
  24025. -fi
  24026. -if test -n "${lt_cv_path_LDCXX+set}"; then
  24027. - lt_cv_path_LD=$lt_cv_path_LDCXX
  24028. -else
  24029. - $as_unset lt_cv_path_LD
  24030. -fi
  24031. -test -z "${LDCXX+set}" || LD=$LDCXX
  24032. -CC=${CXX-"c++"}
  24033. -compiler=$CC
  24034. -compiler_CXX=$CC
  24035. -for cc_temp in $compiler""; do
  24036. - case $cc_temp in
  24037. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24038. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24039. - \-*) ;;
  24040. - *) break;;
  24041. - esac
  24042. -done
  24043. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24044. -# We don't want -fno-exception wen compiling C++ code, so set the
  24045. -# no_builtin_flag separately
  24046. -if test "$GXX" = yes; then
  24047. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  24048. -else
  24049. - lt_prog_compiler_no_builtin_flag_CXX=
  24050. -fi
  24051. -if test "$GXX" = yes; then
  24052. - # Set up default GNU C++ configuration
  24053. -# Check whether --with-gnu-ld was given.
  24054. -if test "${with_gnu_ld+set}" = set; then
  24055. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  24056. -else
  24057. - with_gnu_ld=no
  24058. -fi
  24059. -ac_prog=ld
  24060. -if test "$GCC" = yes; then
  24061. - # Check if gcc -print-prog-name=ld gives a path.
  24062. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  24063. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  24064. - case $host in
  24065. - *-*-mingw*)
  24066. - # gcc leaves a trailing carriage return which upsets mingw
  24067. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  24068. - *)
  24069. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  24070. - esac
  24071. - case $ac_prog in
  24072. - # Accept absolute paths.
  24073. - [\\/]* | ?:[\\/]*)
  24074. - re_direlt='/[^/][^/]*/\.\./'
  24075. - # Canonicalize the pathname of ld
  24076. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  24077. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  24078. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  24079. - done
  24080. - test -z "$LD" && LD="$ac_prog"
  24081. - ;;
  24082. - "")
  24083. - # If it fails, then pretend we aren't using GCC.
  24084. - ac_prog=ld
  24085. - ;;
  24086. - *)
  24087. - # If it is relative, then search for the first ld in PATH.
  24088. - with_gnu_ld=unknown
  24089. - ;;
  24090. - esac
  24091. -elif test "$with_gnu_ld" = yes; then
  24092. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  24093. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  24094. -else
  24095. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  24096. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  24097. -fi
  24098. -if test "${lt_cv_path_LD+set}" = set; then
  24099. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24100. -else
  24101. - if test -z "$LD"; then
  24102. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  24103. - for ac_dir in $PATH; do
  24104. - IFS="$lt_save_ifs"
  24105. - test -z "$ac_dir" && ac_dir=.
  24106. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  24107. - lt_cv_path_LD="$ac_dir/$ac_prog"
  24108. - # Check to see if the program is GNU ld. I'd rather use --version,
  24109. - # but apparently some variants of GNU ld only accept -v.
  24110. - # Break only if it was the GNU/non-GNU ld that we prefer.
  24111. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  24112. - *GNU* | *'with BFD'*)
  24113. - test "$with_gnu_ld" != no && break
  24114. - ;;
  24115. - *)
  24116. - test "$with_gnu_ld" != yes && break
  24117. - ;;
  24118. - esac
  24119. - fi
  24120. - done
  24121. - IFS="$lt_save_ifs"
  24122. -else
  24123. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  24124. -fi
  24125. -fi
  24126. -LD="$lt_cv_path_LD"
  24127. -if test -n "$LD"; then
  24128. - { echo "$as_me:$LINENO: result: $LD" >&5
  24129. -echo "${ECHO_T}$LD" >&6; }
  24130. -else
  24131. - { echo "$as_me:$LINENO: result: no" >&5
  24132. -echo "${ECHO_T}no" >&6; }
  24133. -fi
  24134. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  24135. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  24136. - { (exit 1); exit 1; }; }
  24137. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  24138. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  24139. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  24140. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24141. -else
  24142. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  24143. -case `$LD -v 2>&1 </dev/null` in
  24144. -*GNU* | *'with BFD'*)
  24145. - lt_cv_prog_gnu_ld=yes
  24146. - ;;
  24147. -*)
  24148. - lt_cv_prog_gnu_ld=no
  24149. - ;;
  24150. -esac
  24151. -fi
  24152. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  24153. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  24154. -with_gnu_ld=$lt_cv_prog_gnu_ld
  24155. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  24156. - # archiving commands below assume that GNU ld is being used.
  24157. - if test "$with_gnu_ld" = yes; then
  24158. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24159. - 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'
  24160. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  24161. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  24162. - # If archive_cmds runs LD, not CC, wlarc should be empty
  24163. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  24164. - # investigate it a little bit more. (MM)
  24165. - wlarc='${wl}'
  24166. - # ancient GNU ld didn't support --whole-archive et. al.
  24167. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  24168. - grep 'no-whole-archive' > /dev/null; then
  24169. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24170. - else
  24171. - whole_archive_flag_spec_CXX=
  24172. - fi
  24173. - else
  24174. - with_gnu_ld=no
  24175. - wlarc=
  24176. - # A generic and very simple default shared library creation
  24177. - # command for GNU C++ for the case where it uses the native
  24178. - # linker, instead of GNU ld. If possible, this setting should
  24179. - # overridden to take advantage of the native linker features on
  24180. - # the platform it is being used on.
  24181. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  24182. - fi
  24183. - # Commands to make compiler produce verbose output that lists
  24184. - # what "hidden" libraries, object files and flags are used when
  24185. - # linking a shared library.
  24186. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  24187. -else
  24188. - GXX=no
  24189. - with_gnu_ld=no
  24190. - wlarc=
  24191. -fi
  24192. -# PORTME: fill in a description of your system's C++ link characteristics
  24193. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24194. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24195. -ld_shlibs_CXX=yes
  24196. -case $host_os in
  24197. - aix3*)
  24198. - # FIXME: insert proper C++ library support
  24199. - ld_shlibs_CXX=no
  24200. - ;;
  24201. - aix[4-9]*)
  24202. - if test "$host_cpu" = ia64; then
  24203. - # On IA64, the linker does run time linking by default, so we don't
  24204. - # have to do anything special.
  24205. - aix_use_runtimelinking=no
  24206. - exp_sym_flag='-Bexport'
  24207. - no_entry_flag=""
  24208. - else
  24209. - aix_use_runtimelinking=no
  24210. - # Test if we are trying to use run time linking or normal
  24211. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  24212. - # need to do runtime linking.
  24213. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  24214. - for ld_flag in $LDFLAGS; do
  24215. - case $ld_flag in
  24216. - *-brtl*)
  24217. - aix_use_runtimelinking=yes
  24218. - break
  24219. - ;;
  24220. - esac
  24221. - done
  24222. - ;;
  24223. - esac
  24224. - exp_sym_flag='-bexport'
  24225. - no_entry_flag='-bnoentry'
  24226. - fi
  24227. - # When large executables or shared objects are built, AIX ld can
  24228. - # have problems creating the table of contents. If linking a library
  24229. - # or program results in "error TOC overflow" add -mminimal-toc to
  24230. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  24231. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  24232. -
  24233. - archive_cmds_CXX=''
  24234. - hardcode_direct_CXX=yes
  24235. - hardcode_libdir_separator_CXX=':'
  24236. - link_all_deplibs_CXX=yes
  24237. -
  24238. - if test "$GXX" = yes; then
  24239. - case $host_os in aix4.[012]|aix4.[012].*)
  24240. - # We only want to do this on AIX 4.2 and lower, the check
  24241. - # below for broken collect2 doesn't work under 4.3+
  24242. - collect2name=`${CC} -print-prog-name=collect2`
  24243. - if test -f "$collect2name" && \
  24244. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  24245. - then
  24246. - # We have reworked collect2
  24247. - :
  24248. - else
  24249. - # We have old collect2
  24250. - hardcode_direct_CXX=unsupported
  24251. - # It fails to find uninstalled libraries when the uninstalled
  24252. - # path is not listed in the libpath. Setting hardcode_minus_L
  24253. - # to unsupported forces relinking
  24254. - hardcode_minus_L_CXX=yes
  24255. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  24256. - hardcode_libdir_separator_CXX=
  24257. - fi
  24258. - ;;
  24259. - esac
  24260. - shared_flag='-shared'
  24261. - if test "$aix_use_runtimelinking" = yes; then
  24262. - shared_flag="$shared_flag "'${wl}-G'
  24263. - fi
  24264. - else
  24265. - # not using gcc
  24266. - if test "$host_cpu" = ia64; then
  24267. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  24268. - # chokes on -Wl,-G. The following line is correct:
  24269. - shared_flag='-G'
  24270. - else
  24271. - if test "$aix_use_runtimelinking" = yes; then
  24272. - shared_flag='${wl}-G'
  24273. - else
  24274. - shared_flag='${wl}-bM:SRE'
  24275. - fi
  24276. - fi
  24277. - fi
  24278. - # It seems that -bexpall does not export symbols beginning with
  24279. - # underscore (_), so it is better to generate a list of symbols to export.
  24280. - always_export_symbols_CXX=yes
  24281. - if test "$aix_use_runtimelinking" = yes; then
  24282. - # Warning - without using the other runtime loading flags (-brtl),
  24283. - # -berok will link without error, but may produce a broken library.
  24284. - allow_undefined_flag_CXX='-berok'
  24285. - # Determine the default libpath from the value encoded in an empty executable.
  24286. - cat >conftest.$ac_ext <<_ACEOF
  24287. -/* confdefs.h. */
  24288. -_ACEOF
  24289. -cat confdefs.h >>conftest.$ac_ext
  24290. -cat >>conftest.$ac_ext <<_ACEOF
  24291. -/* end confdefs.h. */
  24292. -int
  24293. -main ()
  24294. -{
  24295. - ;
  24296. - return 0;
  24297. -}
  24298. -_ACEOF
  24299. -rm -f conftest.$ac_objext conftest$ac_exeext
  24300. -if { (ac_try="$ac_link"
  24301. -case "(($ac_try" in
  24302. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24303. - *) ac_try_echo=$ac_try;;
  24304. -esac
  24305. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24306. - (eval "$ac_link") 2>conftest.er1
  24307. - ac_status=$?
  24308. - grep -v '^ *+' conftest.er1 >conftest.err
  24309. - rm -f conftest.er1
  24310. - cat conftest.err >&5
  24311. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24312. - (exit $ac_status); } && {
  24313. - test -z "$ac_cxx_werror_flag" ||
  24314. - test ! -s conftest.err
  24315. - } && test -s conftest$ac_exeext &&
  24316. - $as_test_x conftest$ac_exeext; then
  24317. -lt_aix_libpath_sed='
  24318. - /Import File Strings/,/^$/ {
  24319. - /^0/ {
  24320. - s/^0 *\(.*\)$/\1/
  24321. - p
  24322. - }
  24323. - }'
  24324. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24325. -# Check for a 64-bit object if we didn't find anything.
  24326. -if test -z "$aix_libpath"; then
  24327. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24328. -fi
  24329. -else
  24330. - echo "$as_me: failed program was:" >&5
  24331. -sed 's/^/| /' conftest.$ac_ext >&5
  24332. -fi
  24333. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24334. - conftest$ac_exeext conftest.$ac_ext
  24335. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24336. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  24337. - 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"
  24338. - else
  24339. - if test "$host_cpu" = ia64; then
  24340. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  24341. - allow_undefined_flag_CXX="-z nodefs"
  24342. - 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"
  24343. - else
  24344. - # Determine the default libpath from the value encoded in an empty executable.
  24345. - cat >conftest.$ac_ext <<_ACEOF
  24346. -/* confdefs.h. */
  24347. -_ACEOF
  24348. -cat confdefs.h >>conftest.$ac_ext
  24349. -cat >>conftest.$ac_ext <<_ACEOF
  24350. -/* end confdefs.h. */
  24351. -int
  24352. -main ()
  24353. -{
  24354. - ;
  24355. - return 0;
  24356. -}
  24357. -_ACEOF
  24358. -rm -f conftest.$ac_objext conftest$ac_exeext
  24359. -if { (ac_try="$ac_link"
  24360. -case "(($ac_try" in
  24361. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24362. - *) ac_try_echo=$ac_try;;
  24363. -esac
  24364. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24365. - (eval "$ac_link") 2>conftest.er1
  24366. - ac_status=$?
  24367. - grep -v '^ *+' conftest.er1 >conftest.err
  24368. - rm -f conftest.er1
  24369. - cat conftest.err >&5
  24370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24371. - (exit $ac_status); } && {
  24372. - test -z "$ac_cxx_werror_flag" ||
  24373. - test ! -s conftest.err
  24374. - } && test -s conftest$ac_exeext &&
  24375. - $as_test_x conftest$ac_exeext; then
  24376. -lt_aix_libpath_sed='
  24377. - /Import File Strings/,/^$/ {
  24378. - /^0/ {
  24379. - s/^0 *\(.*\)$/\1/
  24380. - p
  24381. - }
  24382. - }'
  24383. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24384. -# Check for a 64-bit object if we didn't find anything.
  24385. -if test -z "$aix_libpath"; then
  24386. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  24387. -fi
  24388. -else
  24389. - echo "$as_me: failed program was:" >&5
  24390. -sed 's/^/| /' conftest.$ac_ext >&5
  24391. -fi
  24392. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24393. - conftest$ac_exeext conftest.$ac_ext
  24394. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24395. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  24396. - # Warning - without using the other run time loading flags,
  24397. - # -berok will link without error, but may produce a broken library.
  24398. - no_undefined_flag_CXX=' ${wl}-bernotok'
  24399. - allow_undefined_flag_CXX=' ${wl}-berok'
  24400. - # Exported symbols can be pulled into shared objects from archives
  24401. - whole_archive_flag_spec_CXX='$convenience'
  24402. - archive_cmds_need_lc_CXX=yes
  24403. - # This is similar to how AIX traditionally builds its shared libraries.
  24404. - 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'
  24405. - fi
  24406. - fi
  24407. - ;;
  24408. - beos*)
  24409. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24410. - allow_undefined_flag_CXX=unsupported
  24411. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  24412. - # support --undefined. This deserves some investigation. FIXME
  24413. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24414. - else
  24415. - ld_shlibs_CXX=no
  24416. - fi
  24417. - ;;
  24418. - chorus*)
  24419. - case $cc_basename in
  24420. - *)
  24421. - # FIXME: insert proper C++ library support
  24422. - ld_shlibs_CXX=no
  24423. - ;;
  24424. - esac
  24425. - ;;
  24426. - cygwin* | mingw* | pw32*)
  24427. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  24428. - # as there is no search path for DLLs.
  24429. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  24430. - allow_undefined_flag_CXX=unsupported
  24431. - always_export_symbols_CXX=no
  24432. - enable_shared_with_static_runtimes_CXX=yes
  24433. -
  24434. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  24435. - 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'
  24436. - # If the export-symbols file already is a .def file (1st line
  24437. - # is EXPORTS), use it as is; otherwise, prepend...
  24438. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24439. - cp $export_symbols $output_objdir/$soname.def;
  24440. - else
  24441. - echo EXPORTS > $output_objdir/$soname.def;
  24442. - cat $export_symbols >> $output_objdir/$soname.def;
  24443. - fi~
  24444. - $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'
  24445. - else
  24446. - ld_shlibs_CXX=no
  24447. - fi
  24448. - ;;
  24449. - darwin* | rhapsody*)
  24450. - archive_cmds_need_lc_CXX=no
  24451. - hardcode_direct_CXX=no
  24452. - hardcode_automatic_CXX=yes
  24453. - hardcode_shlibpath_var_CXX=unsupported
  24454. - whole_archive_flag_spec_CXX=''
  24455. - link_all_deplibs_CXX=yes
  24456. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  24457. - if test "$GXX" = yes ; then
  24458. - output_verbose_link_cmd='echo'
  24459. - 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}"
  24460. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  24461. - 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}"
  24462. - 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}"
  24463. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  24464. - 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}"
  24465. - 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}"
  24466. - fi
  24467. - else
  24468. - case $cc_basename in
  24469. - xlc*)
  24470. - output_verbose_link_cmd='echo'
  24471. - 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'
  24472. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24473. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24474. - 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}'
  24475. - 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}'
  24476. - ;;
  24477. - *)
  24478. - ld_shlibs_CXX=no
  24479. - ;;
  24480. - esac
  24481. - fi
  24482. - ;;
  24483. - dgux*)
  24484. - case $cc_basename in
  24485. - ec++*)
  24486. - # FIXME: insert proper C++ library support
  24487. - ld_shlibs_CXX=no
  24488. - ;;
  24489. - ghcx*)
  24490. - # Green Hills C++ Compiler
  24491. - # FIXME: insert proper C++ library support
  24492. - ld_shlibs_CXX=no
  24493. - ;;
  24494. - *)
  24495. - # FIXME: insert proper C++ library support
  24496. - ld_shlibs_CXX=no
  24497. - ;;
  24498. - esac
  24499. - ;;
  24500. - freebsd[12]*)
  24501. - # C++ shared libraries reported to be fairly broken before switch to ELF
  24502. - ld_shlibs_CXX=no
  24503. - ;;
  24504. - freebsd-elf*)
  24505. - archive_cmds_need_lc_CXX=no
  24506. - ;;
  24507. - freebsd* | dragonfly*)
  24508. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  24509. - # conventions
  24510. - ld_shlibs_CXX=yes
  24511. - ;;
  24512. - gnu*)
  24513. - ;;
  24514. - hpux9*)
  24515. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  24516. - hardcode_libdir_separator_CXX=:
  24517. - export_dynamic_flag_spec_CXX='${wl}-E'
  24518. - hardcode_direct_CXX=yes
  24519. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  24520. - # but as the default
  24521. - # location of the library.
  24522. -
  24523. - case $cc_basename in
  24524. - CC*)
  24525. - # FIXME: insert proper C++ library support
  24526. - ld_shlibs_CXX=no
  24527. - ;;
  24528. - aCC*)
  24529. - 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'
  24530. - # Commands to make compiler produce verbose output that lists
  24531. - # what "hidden" libraries, object files and flags are used when
  24532. - # linking a shared library.
  24533. - #
  24534. - # There doesn't appear to be a way to prevent this compiler from
  24535. - # explicitly linking system object files so we need to strip them
  24536. - # from the output so that they don't get included in the library
  24537. - # dependencies.
  24538. - 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'
  24539. - ;;
  24540. - *)
  24541. - if test "$GXX" = yes; then
  24542. - 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'
  24543. - else
  24544. - # FIXME: insert proper C++ library support
  24545. - ld_shlibs_CXX=no
  24546. - fi
  24547. - ;;
  24548. - esac
  24549. - ;;
  24550. - hpux10*|hpux11*)
  24551. - if test $with_gnu_ld = no; then
  24552. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  24553. - hardcode_libdir_separator_CXX=:
  24554. - case $host_cpu in
  24555. - hppa*64*|ia64*) ;;
  24556. - *)
  24557. - export_dynamic_flag_spec_CXX='${wl}-E'
  24558. - ;;
  24559. - esac
  24560. - fi
  24561. - case $host_cpu in
  24562. - hppa*64*|ia64*)
  24563. - hardcode_direct_CXX=no
  24564. - hardcode_shlibpath_var_CXX=no
  24565. - ;;
  24566. - *)
  24567. - hardcode_direct_CXX=yes
  24568. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  24569. - # but as the default
  24570. - # location of the library.
  24571. - ;;
  24572. - esac
  24573. - case $cc_basename in
  24574. - CC*)
  24575. - # FIXME: insert proper C++ library support
  24576. - ld_shlibs_CXX=no
  24577. - ;;
  24578. - aCC*)
  24579. - case $host_cpu in
  24580. - hppa*64*)
  24581. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24582. - ;;
  24583. - ia64*)
  24584. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24585. - ;;
  24586. - *)
  24587. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24588. - ;;
  24589. - esac
  24590. - # Commands to make compiler produce verbose output that lists
  24591. - # what "hidden" libraries, object files and flags are used when
  24592. - # linking a shared library.
  24593. - #
  24594. - # There doesn't appear to be a way to prevent this compiler from
  24595. - # explicitly linking system object files so we need to strip them
  24596. - # from the output so that they don't get included in the library
  24597. - # dependencies.
  24598. - 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'
  24599. - ;;
  24600. - *)
  24601. - if test "$GXX" = yes; then
  24602. - if test $with_gnu_ld = no; then
  24603. - case $host_cpu in
  24604. - hppa*64*)
  24605. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24606. - ;;
  24607. - ia64*)
  24608. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24609. - ;;
  24610. - *)
  24611. - 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'
  24612. - ;;
  24613. - esac
  24614. - fi
  24615. - else
  24616. - # FIXME: insert proper C++ library support
  24617. - ld_shlibs_CXX=no
  24618. - fi
  24619. - ;;
  24620. - esac
  24621. - ;;
  24622. - interix[3-9]*)
  24623. - hardcode_direct_CXX=no
  24624. - hardcode_shlibpath_var_CXX=no
  24625. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  24626. - export_dynamic_flag_spec_CXX='${wl}-E'
  24627. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24628. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  24629. - # default) and relocated if they conflict, which is a slow very memory
  24630. - # consuming and fragmenting process. To avoid this, we pick a random,
  24631. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24632. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24633. - 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'
  24634. - 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'
  24635. - ;;
  24636. - irix5* | irix6*)
  24637. - case $cc_basename in
  24638. - CC*)
  24639. - # SGI C++
  24640. - 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'
  24641. -
  24642. - # Archives containing C++ object files must be created using
  24643. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  24644. - # necessary to make sure instantiated templates are included
  24645. - # in the archive.
  24646. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  24647. - ;;
  24648. - *)
  24649. - if test "$GXX" = yes; then
  24650. - if test "$with_gnu_ld" = no; then
  24651. - 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'
  24652. - else
  24653. - 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'
  24654. - fi
  24655. - fi
  24656. - link_all_deplibs_CXX=yes
  24657. - ;;
  24658. - esac
  24659. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  24660. - hardcode_libdir_separator_CXX=:
  24661. - ;;
  24662. - linux* | k*bsd*-gnu)
  24663. - case $cc_basename in
  24664. - KCC*)
  24665. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  24666. -
  24667. - # KCC will only create a shared library if the output file
  24668. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  24669. - # to its proper name (with version) after linking.
  24670. - 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'
  24671. - 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'
  24672. - # Commands to make compiler produce verbose output that lists
  24673. - # what "hidden" libraries, object files and flags are used when
  24674. - # linking a shared library.
  24675. - #
  24676. - # There doesn't appear to be a way to prevent this compiler from
  24677. - # explicitly linking system object files so we need to strip them
  24678. - # from the output so that they don't get included in the library
  24679. - # dependencies.
  24680. - 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'
  24681. -
  24682. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  24683. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  24684. -
  24685. - # Archives containing C++ object files must be created using
  24686. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  24687. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  24688. - ;;
  24689. - icpc*)
  24690. - # Intel C++
  24691. - with_gnu_ld=yes
  24692. - # version 8.0 and above of icpc choke on multiply defined symbols
  24693. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  24694. - # earlier do not add the objects themselves.
  24695. - case `$CC -V 2>&1` in
  24696. - *"Version 7."*)
  24697. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24698. - 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'
  24699. - ;;
  24700. - *) # Version 8.0 or newer
  24701. - tmp_idyn=
  24702. - case $host_cpu in
  24703. - ia64*) tmp_idyn=' -i_dynamic';;
  24704. - esac
  24705. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24706. - 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'
  24707. - ;;
  24708. - esac
  24709. - archive_cmds_need_lc_CXX=no
  24710. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  24711. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  24712. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  24713. - ;;
  24714. - pgCC* | pgcpp*)
  24715. - # Portland Group C++ compiler
  24716. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  24717. - 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'
  24718. -
  24719. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  24720. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  24721. - 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'
  24722. - ;;
  24723. - cxx*)
  24724. - # Compaq C++
  24725. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24726. - 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'
  24727. - runpath_var=LD_RUN_PATH
  24728. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  24729. - hardcode_libdir_separator_CXX=:
  24730. - # Commands to make compiler produce verbose output that lists
  24731. - # what "hidden" libraries, object files and flags are used when
  24732. - # linking a shared library.
  24733. - #
  24734. - # There doesn't appear to be a way to prevent this compiler from
  24735. - # explicitly linking system object files so we need to strip them
  24736. - # from the output so that they don't get included in the library
  24737. - # dependencies.
  24738. - 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'
  24739. - ;;
  24740. - *)
  24741. - case `$CC -V 2>&1 | sed 5q` in
  24742. - *Sun\ C*)
  24743. - # Sun C++ 5.9
  24744. - no_undefined_flag_CXX=' -zdefs'
  24745. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24746. - 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'
  24747. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  24748. - 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'
  24749. -
  24750. - # Not sure whether something based on
  24751. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  24752. - # would be better.
  24753. - output_verbose_link_cmd='echo'
  24754. -
  24755. - # Archives containing C++ object files must be created using
  24756. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  24757. - # necessary to make sure instantiated templates are included
  24758. - # in the archive.
  24759. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  24760. - ;;
  24761. - esac
  24762. - ;;
  24763. - esac
  24764. - ;;
  24765. - lynxos*)
  24766. - # FIXME: insert proper C++ library support
  24767. - ld_shlibs_CXX=no
  24768. - ;;
  24769. - m88k*)
  24770. - # FIXME: insert proper C++ library support
  24771. - ld_shlibs_CXX=no
  24772. - ;;
  24773. - mvs*)
  24774. - case $cc_basename in
  24775. - cxx*)
  24776. - # FIXME: insert proper C++ library support
  24777. - ld_shlibs_CXX=no
  24778. - ;;
  24779. - *)
  24780. - # FIXME: insert proper C++ library support
  24781. - ld_shlibs_CXX=no
  24782. - ;;
  24783. - esac
  24784. - ;;
  24785. - netbsd* | netbsdelf*-gnu)
  24786. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24787. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  24788. - wlarc=
  24789. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  24790. - hardcode_direct_CXX=yes
  24791. - hardcode_shlibpath_var_CXX=no
  24792. - fi
  24793. - # Workaround some broken pre-1.5 toolchains
  24794. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  24795. - ;;
  24796. - openbsd2*)
  24797. - # C++ shared libraries are fairly broken
  24798. - ld_shlibs_CXX=no
  24799. - ;;
  24800. - openbsd*)
  24801. - if test -f /usr/libexec/ld.so; then
  24802. - hardcode_direct_CXX=yes
  24803. - hardcode_shlibpath_var_CXX=no
  24804. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  24805. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  24806. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24807. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  24808. - export_dynamic_flag_spec_CXX='${wl}-E'
  24809. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24810. - fi
  24811. - output_verbose_link_cmd='echo'
  24812. - else
  24813. - ld_shlibs_CXX=no
  24814. - fi
  24815. - ;;
  24816. - osf3*)
  24817. - case $cc_basename in
  24818. - KCC*)
  24819. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  24820. -
  24821. - # KCC will only create a shared library if the output file
  24822. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  24823. - # to its proper name (with version) after linking.
  24824. - 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'
  24825. -
  24826. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  24827. - hardcode_libdir_separator_CXX=:
  24828. -
  24829. - # Archives containing C++ object files must be created using
  24830. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  24831. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  24832. - ;;
  24833. - RCC*)
  24834. - # Rational C++ 2.4.1
  24835. - # FIXME: insert proper C++ library support
  24836. - ld_shlibs_CXX=no
  24837. - ;;
  24838. - cxx*)
  24839. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  24840. - 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'
  24841. -
  24842. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  24843. - hardcode_libdir_separator_CXX=:
  24844. -
  24845. - # Commands to make compiler produce verbose output that lists
  24846. - # what "hidden" libraries, object files and flags are used when
  24847. - # linking a shared library.
  24848. - #
  24849. - # There doesn't appear to be a way to prevent this compiler from
  24850. - # explicitly linking system object files so we need to strip them
  24851. - # from the output so that they don't get included in the library
  24852. - # dependencies.
  24853. - 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'
  24854. - ;;
  24855. - *)
  24856. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  24857. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  24858. - 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'
  24859. -
  24860. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  24861. - hardcode_libdir_separator_CXX=:
  24862. -
  24863. - # Commands to make compiler produce verbose output that lists
  24864. - # what "hidden" libraries, object files and flags are used when
  24865. - # linking a shared library.
  24866. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  24867. - else
  24868. - # FIXME: insert proper C++ library support
  24869. - ld_shlibs_CXX=no
  24870. - fi
  24871. - ;;
  24872. - esac
  24873. - ;;
  24874. - osf4* | osf5*)
  24875. - case $cc_basename in
  24876. - KCC*)
  24877. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  24878. -
  24879. - # KCC will only create a shared library if the output file
  24880. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  24881. - # to its proper name (with version) after linking.
  24882. - 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'
  24883. -
  24884. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  24885. - hardcode_libdir_separator_CXX=:
  24886. -
  24887. - # Archives containing C++ object files must be created using
  24888. - # the KAI C++ compiler.
  24889. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  24890. - ;;
  24891. - RCC*)
  24892. - # Rational C++ 2.4.1
  24893. - # FIXME: insert proper C++ library support
  24894. - ld_shlibs_CXX=no
  24895. - ;;
  24896. - cxx*)
  24897. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  24898. - 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'
  24899. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  24900. - echo "-hidden">> $lib.exp~
  24901. - $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~
  24902. - $rm $lib.exp'
  24903. -
  24904. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  24905. - hardcode_libdir_separator_CXX=:
  24906. -
  24907. - # Commands to make compiler produce verbose output that lists
  24908. - # what "hidden" libraries, object files and flags are used when
  24909. - # linking a shared library.
  24910. - #
  24911. - # There doesn't appear to be a way to prevent this compiler from
  24912. - # explicitly linking system object files so we need to strip them
  24913. - # from the output so that they don't get included in the library
  24914. - # dependencies.
  24915. - 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'
  24916. - ;;
  24917. - *)
  24918. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  24919. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  24920. - 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'
  24921. -
  24922. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  24923. - hardcode_libdir_separator_CXX=:
  24924. -
  24925. - # Commands to make compiler produce verbose output that lists
  24926. - # what "hidden" libraries, object files and flags are used when
  24927. - # linking a shared library.
  24928. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  24929. - else
  24930. - # FIXME: insert proper C++ library support
  24931. - ld_shlibs_CXX=no
  24932. - fi
  24933. - ;;
  24934. - esac
  24935. - ;;
  24936. - psos*)
  24937. - # FIXME: insert proper C++ library support
  24938. - ld_shlibs_CXX=no
  24939. - ;;
  24940. - sunos4*)
  24941. - case $cc_basename in
  24942. - CC*)
  24943. - # Sun C++ 4.x
  24944. - # FIXME: insert proper C++ library support
  24945. - ld_shlibs_CXX=no
  24946. - ;;
  24947. - lcc*)
  24948. - # Lucid
  24949. - # FIXME: insert proper C++ library support
  24950. - ld_shlibs_CXX=no
  24951. - ;;
  24952. - *)
  24953. - # FIXME: insert proper C++ library support
  24954. - ld_shlibs_CXX=no
  24955. - ;;
  24956. - esac
  24957. - ;;
  24958. - solaris*)
  24959. - case $cc_basename in
  24960. - CC*)
  24961. - # Sun C++ 4.2, 5.x and Centerline C++
  24962. - archive_cmds_need_lc_CXX=yes
  24963. - no_undefined_flag_CXX=' -zdefs'
  24964. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  24965. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24966. - $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'
  24967. -
  24968. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  24969. - hardcode_shlibpath_var_CXX=no
  24970. - case $host_os in
  24971. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  24972. - *)
  24973. - # The compiler driver will combine and reorder linker options,
  24974. - # but understands `-z linker_flag'.
  24975. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  24976. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  24977. - ;;
  24978. - esac
  24979. - link_all_deplibs_CXX=yes
  24980. - output_verbose_link_cmd='echo'
  24981. - # Archives containing C++ object files must be created using
  24982. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  24983. - # necessary to make sure instantiated templates are included
  24984. - # in the archive.
  24985. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  24986. - ;;
  24987. - gcx*)
  24988. - # Green Hills C++ Compiler
  24989. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  24990. - # The C++ compiler must be used to create the archive.
  24991. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  24992. - ;;
  24993. - *)
  24994. - # GNU C++ compiler with Solaris linker
  24995. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  24996. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  24997. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  24998. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  24999. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25000. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  25001. -
  25002. - # Commands to make compiler produce verbose output that lists
  25003. - # what "hidden" libraries, object files and flags are used when
  25004. - # linking a shared library.
  25005. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  25006. - else
  25007. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  25008. - # platform.
  25009. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  25010. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  25011. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  25012. -
  25013. - # Commands to make compiler produce verbose output that lists
  25014. - # what "hidden" libraries, object files and flags are used when
  25015. - # linking a shared library.
  25016. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  25017. - fi
  25018. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  25019. - case $host_os in
  25020. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  25021. - *)
  25022. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  25023. - ;;
  25024. - esac
  25025. - fi
  25026. - ;;
  25027. - esac
  25028. - ;;
  25029. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  25030. - no_undefined_flag_CXX='${wl}-z,text'
  25031. - archive_cmds_need_lc_CXX=no
  25032. - hardcode_shlibpath_var_CXX=no
  25033. - runpath_var='LD_RUN_PATH'
  25034. -
  25035. - case $cc_basename in
  25036. - CC*)
  25037. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25038. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25039. - ;;
  25040. - *)
  25041. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25042. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25043. - ;;
  25044. - esac
  25045. - ;;
  25046. - sysv5* | sco3.2v5* | sco5v6*)
  25047. - # Note: We can NOT use -z defs as we might desire, because we do not
  25048. - # link with -lc, and that would cause any symbols used from libc to
  25049. - # always be unresolved, which means just about no library would
  25050. - # ever link correctly. If we're not using GNU ld we use -z text
  25051. - # though, which does catch some bad symbols but isn't as heavy-handed
  25052. - # as -z defs.
  25053. - # For security reasons, it is highly recommended that you always
  25054. - # use absolute paths for naming shared libraries, and exclude the
  25055. - # DT_RUNPATH tag from executables and libraries. But doing so
  25056. - # requires that you compile everything twice, which is a pain.
  25057. - # So that behaviour is only enabled if SCOABSPATH is set to a
  25058. - # non-empty value in the environment. Most likely only useful for
  25059. - # creating official distributions of packages.
  25060. - # This is a hack until libtool officially supports absolute path
  25061. - # names for shared libraries.
  25062. - no_undefined_flag_CXX='${wl}-z,text'
  25063. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  25064. - archive_cmds_need_lc_CXX=no
  25065. - hardcode_shlibpath_var_CXX=no
  25066. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25067. - hardcode_libdir_separator_CXX=':'
  25068. - link_all_deplibs_CXX=yes
  25069. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  25070. - runpath_var='LD_RUN_PATH'
  25071. -
  25072. - case $cc_basename in
  25073. - CC*)
  25074. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25075. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25076. - ;;
  25077. - *)
  25078. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25079. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25080. - ;;
  25081. - esac
  25082. - ;;
  25083. - tandem*)
  25084. - case $cc_basename in
  25085. - NCC*)
  25086. - # NonStop-UX NCC 3.20
  25087. - # FIXME: insert proper C++ library support
  25088. - ld_shlibs_CXX=no
  25089. - ;;
  25090. - *)
  25091. - # FIXME: insert proper C++ library support
  25092. - ld_shlibs_CXX=no
  25093. - ;;
  25094. - esac
  25095. - ;;
  25096. - vxworks*)
  25097. - # FIXME: insert proper C++ library support
  25098. - ld_shlibs_CXX=no
  25099. - ;;
  25100. - *)
  25101. - # FIXME: insert proper C++ library support
  25102. - ld_shlibs_CXX=no
  25103. - ;;
  25104. -esac
  25105. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  25106. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  25107. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  25108. -GCC_CXX="$GXX"
  25109. -LD_CXX="$LD"
  25110. -cat > conftest.$ac_ext <<EOF
  25111. -class Foo
  25112. -{
  25113. -public:
  25114. - Foo (void) { a = 0; }
  25115. -private:
  25116. - int a;
  25117. -};
  25118. -EOF
  25119. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25120. - (eval $ac_compile) 2>&5
  25121. - ac_status=$?
  25122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25123. - (exit $ac_status); }; then
  25124. - # Parse the compiler output and extract the necessary
  25125. - # objects, libraries and library flags.
  25126. -
  25127. - # Sentinel used to keep track of whether or not we are before
  25128. - # the conftest object file.
  25129. - pre_test_object_deps_done=no
  25130. -
  25131. - # The `*' in the case matches for architectures that use `case' in
  25132. - # $output_verbose_cmd can trigger glob expansion during the loop
  25133. - # eval without this substitution.
  25134. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  25135. -
  25136. - for p in `eval $output_verbose_link_cmd`; do
  25137. - case $p in
  25138. -
  25139. - -L* | -R* | -l*)
  25140. - # Some compilers place space between "-{L,R}" and the path.
  25141. - # Remove the space.
  25142. - if test $p = "-L" \
  25143. - || test $p = "-R"; then
  25144. - prev=$p
  25145. - continue
  25146. - else
  25147. - prev=
  25148. - fi
  25149. - if test "$pre_test_object_deps_done" = no; then
  25150. - case $p in
  25151. - -L* | -R*)
  25152. - # Internal compiler library paths should come after those
  25153. - # provided the user. The postdeps already come after the
  25154. - # user supplied libs so there is no need to process them.
  25155. - if test -z "$compiler_lib_search_path_CXX"; then
  25156. - compiler_lib_search_path_CXX="${prev}${p}"
  25157. - else
  25158. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  25159. - fi
  25160. - ;;
  25161. - # The "-l" case would never come before the object being
  25162. - # linked, so don't bother handling this case.
  25163. - esac
  25164. - else
  25165. - if test -z "$postdeps_CXX"; then
  25166. - postdeps_CXX="${prev}${p}"
  25167. - else
  25168. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  25169. - fi
  25170. - fi
  25171. - ;;
  25172. - *.$objext)
  25173. - # This assumes that the test object file only shows up
  25174. - # once in the compiler output.
  25175. - if test "$p" = "conftest.$objext"; then
  25176. - pre_test_object_deps_done=yes
  25177. - continue
  25178. - fi
  25179. - if test "$pre_test_object_deps_done" = no; then
  25180. - if test -z "$predep_objects_CXX"; then
  25181. - predep_objects_CXX="$p"
  25182. - else
  25183. - predep_objects_CXX="$predep_objects_CXX $p"
  25184. - fi
  25185. - else
  25186. - if test -z "$postdep_objects_CXX"; then
  25187. - postdep_objects_CXX="$p"
  25188. - else
  25189. - postdep_objects_CXX="$postdep_objects_CXX $p"
  25190. - fi
  25191. - fi
  25192. - ;;
  25193. - *) ;; # Ignore the rest.
  25194. - esac
  25195. - done
  25196. - # Clean up.
  25197. - rm -f a.out a.exe
  25198. -else
  25199. - echo "libtool.m4: error: problem compiling CXX test program"
  25200. -fi
  25201. -$rm -f confest.$objext
  25202. -compiler_lib_search_dirs_CXX=
  25203. -if test -n "$compiler_lib_search_path_CXX"; then
  25204. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  25205. +
  25206. +
  25207. +
  25208. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  25209. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  25210. +
  25211. +if test "$GCC" = yes; then
  25212. + case $host_os in
  25213. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  25214. + *) lt_awk_arg="/^libraries:/" ;;
  25215. + esac
  25216. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25217. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  25218. + # if the path contains ";" then we assume it to be the separator
  25219. + # otherwise default to the standard path separator (i.e. ":") - it is
  25220. + # assumed that no part of a normal pathname contains ";" but that should
  25221. + # okay in the real world where ";" in dirpaths is itself problematic.
  25222. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  25223. + else
  25224. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25225. + fi
  25226. + # Ok, now we have the path, separated by spaces, we can step through it
  25227. + # and add multilib dir if necessary.
  25228. + lt_tmp_lt_search_path_spec=
  25229. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  25230. + for lt_sys_path in $lt_search_path_spec; do
  25231. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  25232. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  25233. + else
  25234. + test -d "$lt_sys_path" && \
  25235. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  25236. + fi
  25237. + done
  25238. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  25239. +BEGIN {RS=" "; FS="/|\n";} {
  25240. + lt_foo="";
  25241. + lt_count=0;
  25242. + for (lt_i = NF; lt_i > 0; lt_i--) {
  25243. + if ($lt_i != "" && $lt_i != ".") {
  25244. + if ($lt_i == "..") {
  25245. + lt_count++;
  25246. + } else {
  25247. + if (lt_count == 0) {
  25248. + lt_foo="/" $lt_i lt_foo;
  25249. + } else {
  25250. + lt_count--;
  25251. + }
  25252. + }
  25253. + }
  25254. + }
  25255. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  25256. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  25257. +}'`
  25258. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  25259. +else
  25260. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25261. fi
  25262. +library_names_spec=
  25263. +libname_spec='lib$name'
  25264. +soname_spec=
  25265. +shrext_cmds=".so"
  25266. +postinstall_cmds=
  25267. +postuninstall_cmds=
  25268. +finish_cmds=
  25269. +finish_eval=
  25270. +shlibpath_var=
  25271. +shlibpath_overrides_runpath=unknown
  25272. +version_type=none
  25273. +dynamic_linker="$host_os ld.so"
  25274. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25275. +need_lib_prefix=unknown
  25276. +hardcode_into_libs=no
  25277. +
  25278. +# when you set need_version to no, make sure it does not cause -set_version
  25279. +# flags to be left without arguments
  25280. +need_version=unknown
  25281. -# PORTME: override above test on systems where it is broken
  25282. case $host_os in
  25283. -interix[3-9]*)
  25284. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  25285. - # hack all around it, let's just trust "g++" to DTRT.
  25286. - predep_objects_CXX=
  25287. - postdep_objects_CXX=
  25288. - postdeps_CXX=
  25289. +aix3*)
  25290. + version_type=linux
  25291. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25292. + shlibpath_var=LIBPATH
  25293. +
  25294. + # AIX 3 has no versioning support, so we append a major version to the name.
  25295. + soname_spec='${libname}${release}${shared_ext}$major'
  25296. ;;
  25297. -linux*)
  25298. - case `$CC -V 2>&1 | sed 5q` in
  25299. - *Sun\ C*)
  25300. - # Sun C++ 5.9
  25301. - #
  25302. - # The more standards-conforming stlport4 library is
  25303. - # incompatible with the Cstd library. Avoid specifying
  25304. - # it if it's in CXXFLAGS. Ignore libCrun as
  25305. - # -library=stlport4 depends on it.
  25306. - case " $CXX $CXXFLAGS " in
  25307. - *" -library=stlport4 "*)
  25308. - solaris_use_stlport4=yes
  25309. +aix[4-9]*)
  25310. + version_type=linux
  25311. + need_lib_prefix=no
  25312. + need_version=no
  25313. + hardcode_into_libs=yes
  25314. + if test "$host_cpu" = ia64; then
  25315. + # AIX 5 supports IA64
  25316. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  25317. + shlibpath_var=LD_LIBRARY_PATH
  25318. + else
  25319. + # With GCC up to 2.95.x, collect2 would create an import file
  25320. + # for dependence libraries. The import file would start with
  25321. + # the line `#! .'. This would cause the generated library to
  25322. + # depend on `.', always an invalid library. This was fixed in
  25323. + # development snapshots of GCC prior to 3.0.
  25324. + case $host_os in
  25325. + aix4 | aix4.[01] | aix4.[01].*)
  25326. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  25327. + echo ' yes '
  25328. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  25329. + :
  25330. + else
  25331. + can_build_shared=no
  25332. + fi
  25333. ;;
  25334. esac
  25335. - if test "$solaris_use_stlport4" != yes; then
  25336. - postdeps_CXX='-library=Cstd -library=Crun'
  25337. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  25338. + # soname into executable. Probably we can add versioning support to
  25339. + # collect2, so additional links can be useful in future.
  25340. + if test "$aix_use_runtimelinking" = yes; then
  25341. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  25342. + # instead of lib<name>.a to let people know that these are not
  25343. + # typical AIX shared libraries.
  25344. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25345. + else
  25346. + # We preserve .a as extension for shared libraries through AIX4.2
  25347. + # and later when we are not doing run time linking.
  25348. + library_names_spec='${libname}${release}.a $libname.a'
  25349. + soname_spec='${libname}${release}${shared_ext}$major'
  25350. fi
  25351. - ;;
  25352. - esac
  25353. + shlibpath_var=LIBPATH
  25354. + fi
  25355. ;;
  25356. -solaris*)
  25357. - case $cc_basename in
  25358. - CC*)
  25359. - # The more standards-conforming stlport4 library is
  25360. - # incompatible with the Cstd library. Avoid specifying
  25361. - # it if it's in CXXFLAGS. Ignore libCrun as
  25362. - # -library=stlport4 depends on it.
  25363. - case " $CXX $CXXFLAGS " in
  25364. - *" -library=stlport4 "*)
  25365. - solaris_use_stlport4=yes
  25366. - ;;
  25367. - esac
  25368. -
  25369. - # Adding this requires a known-good setup of shared libraries for
  25370. - # Sun compiler versions before 5.6, else PIC objects from an old
  25371. - # archive will be linked into the output, leading to subtle bugs.
  25372. - if test "$solaris_use_stlport4" != yes; then
  25373. - postdeps_CXX='-library=Cstd -library=Crun'
  25374. - fi
  25375. +amigaos*)
  25376. + case $host_cpu in
  25377. + powerpc)
  25378. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  25379. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  25380. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25381. + ;;
  25382. + m68k)
  25383. + library_names_spec='$libname.ixlibrary $libname.a'
  25384. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  25385. + 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'
  25386. ;;
  25387. esac
  25388. ;;
  25389. -esac
  25390. -case " $postdeps_CXX " in
  25391. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  25392. -esac
  25393. +beos*)
  25394. + library_names_spec='${libname}${shared_ext}'
  25395. + dynamic_linker="$host_os ld.so"
  25396. + shlibpath_var=LIBRARY_PATH
  25397. + ;;
  25398. +
  25399. +bsdi[45]*)
  25400. + version_type=linux
  25401. + need_version=no
  25402. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25403. + soname_spec='${libname}${release}${shared_ext}$major'
  25404. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  25405. + shlibpath_var=LD_LIBRARY_PATH
  25406. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  25407. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  25408. + # the default ld.so.conf also contains /usr/contrib/lib and
  25409. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  25410. + # libtool to hard-code these into programs
  25411. + ;;
  25412. +
  25413. +cygwin* | mingw* | pw32* | cegcc*)
  25414. + version_type=windows
  25415. + shrext_cmds=".dll"
  25416. + need_version=no
  25417. + need_lib_prefix=no
  25418. -lt_prog_compiler_wl_CXX=
  25419. -lt_prog_compiler_pic_CXX=
  25420. -lt_prog_compiler_static_CXX=
  25421. -
  25422. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  25423. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  25424. -
  25425. - # C++ specific cases for pic, static, wl, etc.
  25426. - if test "$GXX" = yes; then
  25427. - lt_prog_compiler_wl_CXX='-Wl,'
  25428. - lt_prog_compiler_static_CXX='-static'
  25429. + case $GCC,$host_os in
  25430. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  25431. + library_names_spec='$libname.dll.a'
  25432. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  25433. + postinstall_cmds='base_file=`basename \${file}`~
  25434. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  25435. + dldir=$destdir/`dirname \$dlpath`~
  25436. + test -d \$dldir || mkdir -p \$dldir~
  25437. + $install_prog $dir/$dlname \$dldir/$dlname~
  25438. + chmod a+x \$dldir/$dlname~
  25439. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  25440. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  25441. + fi'
  25442. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  25443. + dlpath=$dir/\$dldll~
  25444. + $RM \$dlpath'
  25445. + shlibpath_overrides_runpath=yes
  25446. case $host_os in
  25447. - aix*)
  25448. - # All AIX code is PIC.
  25449. - if test "$host_cpu" = ia64; then
  25450. - # AIX 5 now supports IA64 processor
  25451. - lt_prog_compiler_static_CXX='-Bstatic'
  25452. - fi
  25453. - ;;
  25454. - amigaos*)
  25455. - # FIXME: we need at least 68020 code to build shared libraries, but
  25456. - # adding the `-m68020' flag to GCC prevents building anything better,
  25457. - # like `-m68040'.
  25458. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  25459. - ;;
  25460. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25461. - # PIC is the default for these OSes.
  25462. - ;;
  25463. - mingw* | cygwin* | os2* | pw32*)
  25464. - # This hack is so that the source file can tell whether it is being
  25465. - # built for inclusion in a dll (and should export symbols for example).
  25466. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  25467. - # (--disable-auto-import) libraries
  25468. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  25469. - ;;
  25470. - darwin* | rhapsody*)
  25471. - # PIC is the default on this platform
  25472. - # Common symbols not allowed in MH_DYLIB files
  25473. - lt_prog_compiler_pic_CXX='-fno-common'
  25474. - ;;
  25475. - *djgpp*)
  25476. - # DJGPP does not support shared libraries at all
  25477. - lt_prog_compiler_pic_CXX=
  25478. - ;;
  25479. - interix[3-9]*)
  25480. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  25481. - # Instead, we relocate shared libraries at runtime.
  25482. + cygwin*)
  25483. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  25484. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25485. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  25486. ;;
  25487. - sysv4*MP*)
  25488. - if test -d /usr/nec; then
  25489. - lt_prog_compiler_pic_CXX=-Kconform_pic
  25490. + mingw* | cegcc*)
  25491. + # MinGW DLLs use traditional 'lib' prefix
  25492. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25493. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25494. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  25495. + # It is most probably a Windows format PATH printed by
  25496. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  25497. + # path with ; separators, and with drive letters. We can handle the
  25498. + # drive letters (cygwin fileutils understands them), so leave them,
  25499. + # especially as we might pass files found there to a mingw objdump,
  25500. + # which wouldn't understand a cygwinified path. Ahh.
  25501. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25502. + else
  25503. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25504. fi
  25505. ;;
  25506. - hpux*)
  25507. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25508. - # not for PA HP-UX.
  25509. - case $host_cpu in
  25510. - hppa*64*|ia64*)
  25511. - ;;
  25512. - *)
  25513. - lt_prog_compiler_pic_CXX='-fPIC'
  25514. - ;;
  25515. - esac
  25516. - ;;
  25517. - *)
  25518. - lt_prog_compiler_pic_CXX='-fPIC'
  25519. + pw32*)
  25520. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  25521. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25522. ;;
  25523. esac
  25524. - else
  25525. - case $host_os in
  25526. - aix[4-9]*)
  25527. - # All AIX code is PIC.
  25528. - if test "$host_cpu" = ia64; then
  25529. - # AIX 5 now supports IA64 processor
  25530. - lt_prog_compiler_static_CXX='-Bstatic'
  25531. - else
  25532. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  25533. - fi
  25534. - ;;
  25535. - chorus*)
  25536. - case $cc_basename in
  25537. - cxch68*)
  25538. - # Green Hills C++ Compiler
  25539. - # _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"
  25540. - ;;
  25541. - esac
  25542. - ;;
  25543. - darwin*)
  25544. - # PIC is the default on this platform
  25545. - # Common symbols not allowed in MH_DYLIB files
  25546. - case $cc_basename in
  25547. - xlc*)
  25548. - lt_prog_compiler_pic_CXX='-qnocommon'
  25549. - lt_prog_compiler_wl_CXX='-Wl,'
  25550. - ;;
  25551. - esac
  25552. - ;;
  25553. - dgux*)
  25554. - case $cc_basename in
  25555. - ec++*)
  25556. - lt_prog_compiler_pic_CXX='-KPIC'
  25557. - ;;
  25558. - ghcx*)
  25559. - # Green Hills C++ Compiler
  25560. - lt_prog_compiler_pic_CXX='-pic'
  25561. - ;;
  25562. - *)
  25563. - ;;
  25564. - esac
  25565. - ;;
  25566. - freebsd* | dragonfly*)
  25567. - # FreeBSD uses GNU C++
  25568. - ;;
  25569. - hpux9* | hpux10* | hpux11*)
  25570. - case $cc_basename in
  25571. - CC*)
  25572. - lt_prog_compiler_wl_CXX='-Wl,'
  25573. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  25574. - if test "$host_cpu" != ia64; then
  25575. - lt_prog_compiler_pic_CXX='+Z'
  25576. - fi
  25577. - ;;
  25578. - aCC*)
  25579. - lt_prog_compiler_wl_CXX='-Wl,'
  25580. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  25581. - case $host_cpu in
  25582. - hppa*64*|ia64*)
  25583. - # +Z the default
  25584. - ;;
  25585. - *)
  25586. - lt_prog_compiler_pic_CXX='+Z'
  25587. - ;;
  25588. - esac
  25589. - ;;
  25590. - *)
  25591. - ;;
  25592. - esac
  25593. - ;;
  25594. - interix*)
  25595. - # This is c89, which is MS Visual C++ (no shared libs)
  25596. - # Anyone wants to do a port?
  25597. - ;;
  25598. - irix5* | irix6* | nonstopux*)
  25599. - case $cc_basename in
  25600. - CC*)
  25601. - lt_prog_compiler_wl_CXX='-Wl,'
  25602. - lt_prog_compiler_static_CXX='-non_shared'
  25603. - # CC pic flag -KPIC is the default.
  25604. - ;;
  25605. - *)
  25606. - ;;
  25607. - esac
  25608. - ;;
  25609. - linux* | k*bsd*-gnu)
  25610. - case $cc_basename in
  25611. - KCC*)
  25612. - # KAI C++ Compiler
  25613. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  25614. - lt_prog_compiler_pic_CXX='-fPIC'
  25615. - ;;
  25616. - icpc* | ecpc*)
  25617. - # Intel C++
  25618. - lt_prog_compiler_wl_CXX='-Wl,'
  25619. - lt_prog_compiler_pic_CXX='-KPIC'
  25620. - lt_prog_compiler_static_CXX='-static'
  25621. - ;;
  25622. - pgCC* | pgcpp*)
  25623. - # Portland Group C++ compiler.
  25624. - lt_prog_compiler_wl_CXX='-Wl,'
  25625. - lt_prog_compiler_pic_CXX='-fpic'
  25626. - lt_prog_compiler_static_CXX='-Bstatic'
  25627. - ;;
  25628. - cxx*)
  25629. - # Compaq C++
  25630. - # Make sure the PIC flag is empty. It appears that all Alpha
  25631. - # Linux and Compaq Tru64 Unix objects are PIC.
  25632. - lt_prog_compiler_pic_CXX=
  25633. - lt_prog_compiler_static_CXX='-non_shared'
  25634. - ;;
  25635. - *)
  25636. - case `$CC -V 2>&1 | sed 5q` in
  25637. - *Sun\ C*)
  25638. - # Sun C++ 5.9
  25639. - lt_prog_compiler_pic_CXX='-KPIC'
  25640. - lt_prog_compiler_static_CXX='-Bstatic'
  25641. - lt_prog_compiler_wl_CXX='-Qoption ld '
  25642. - ;;
  25643. - esac
  25644. - ;;
  25645. - esac
  25646. - ;;
  25647. - lynxos*)
  25648. - ;;
  25649. - m88k*)
  25650. - ;;
  25651. - mvs*)
  25652. - case $cc_basename in
  25653. - cxx*)
  25654. - lt_prog_compiler_pic_CXX='-W c,exportall'
  25655. - ;;
  25656. - *)
  25657. - ;;
  25658. - esac
  25659. - ;;
  25660. - netbsd* | netbsdelf*-gnu)
  25661. - ;;
  25662. - osf3* | osf4* | osf5*)
  25663. - case $cc_basename in
  25664. - KCC*)
  25665. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  25666. - ;;
  25667. - RCC*)
  25668. - # Rational C++ 2.4.1
  25669. - lt_prog_compiler_pic_CXX='-pic'
  25670. - ;;
  25671. - cxx*)
  25672. - # Digital/Compaq C++
  25673. - lt_prog_compiler_wl_CXX='-Wl,'
  25674. - # Make sure the PIC flag is empty. It appears that all Alpha
  25675. - # Linux and Compaq Tru64 Unix objects are PIC.
  25676. - lt_prog_compiler_pic_CXX=
  25677. - lt_prog_compiler_static_CXX='-non_shared'
  25678. - ;;
  25679. - *)
  25680. - ;;
  25681. - esac
  25682. - ;;
  25683. - psos*)
  25684. - ;;
  25685. - solaris*)
  25686. - case $cc_basename in
  25687. - CC*)
  25688. - # Sun C++ 4.2, 5.x and Centerline C++
  25689. - lt_prog_compiler_pic_CXX='-KPIC'
  25690. - lt_prog_compiler_static_CXX='-Bstatic'
  25691. - lt_prog_compiler_wl_CXX='-Qoption ld '
  25692. - ;;
  25693. - gcx*)
  25694. - # Green Hills C++ Compiler
  25695. - lt_prog_compiler_pic_CXX='-PIC'
  25696. - ;;
  25697. - *)
  25698. - ;;
  25699. - esac
  25700. - ;;
  25701. - sunos4*)
  25702. - case $cc_basename in
  25703. - CC*)
  25704. - # Sun C++ 4.x
  25705. - lt_prog_compiler_pic_CXX='-pic'
  25706. - lt_prog_compiler_static_CXX='-Bstatic'
  25707. - ;;
  25708. - lcc*)
  25709. - # Lucid
  25710. - lt_prog_compiler_pic_CXX='-pic'
  25711. - ;;
  25712. - *)
  25713. - ;;
  25714. - esac
  25715. - ;;
  25716. - tandem*)
  25717. - case $cc_basename in
  25718. - NCC*)
  25719. - # NonStop-UX NCC 3.20
  25720. - lt_prog_compiler_pic_CXX='-KPIC'
  25721. - ;;
  25722. - *)
  25723. - ;;
  25724. - esac
  25725. - ;;
  25726. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  25727. - case $cc_basename in
  25728. - CC*)
  25729. - lt_prog_compiler_wl_CXX='-Wl,'
  25730. - lt_prog_compiler_pic_CXX='-KPIC'
  25731. - lt_prog_compiler_static_CXX='-Bstatic'
  25732. - ;;
  25733. - esac
  25734. - ;;
  25735. - vxworks*)
  25736. - ;;
  25737. - *)
  25738. - lt_prog_compiler_can_build_shared_CXX=no
  25739. - ;;
  25740. - esac
  25741. - fi
  25742. -
  25743. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  25744. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  25745. + ;;
  25746. -#
  25747. -# Check to make sure the PIC flag actually works.
  25748. -#
  25749. -if test -n "$lt_prog_compiler_pic_CXX"; then
  25750. + *)
  25751. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  25752. + ;;
  25753. + esac
  25754. + dynamic_linker='Win32 ld.exe'
  25755. + # FIXME: first we should search . and the directory the executable is in
  25756. + shlibpath_var=PATH
  25757. + ;;
  25758. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  25759. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  25760. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  25761. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25762. -else
  25763. - lt_cv_prog_compiler_pic_works_CXX=no
  25764. - ac_outfile=conftest.$ac_objext
  25765. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25766. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  25767. - # Insert the option either (1) after the last *FLAGS variable, or
  25768. - # (2) before a word containing "conftest.", or (3) at the end.
  25769. - # Note that $ac_compile itself does not contain backslashes and begins
  25770. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25771. - # The option is referenced via a variable to avoid confusing sed.
  25772. - lt_compile=`echo "$ac_compile" | $SED \
  25773. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25774. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25775. - -e 's:$: $lt_compiler_flag:'`
  25776. - (eval echo "\"\$as_me:12710: $lt_compile\"" >&5)
  25777. - (eval "$lt_compile" 2>conftest.err)
  25778. - ac_status=$?
  25779. - cat conftest.err >&5
  25780. - echo "$as_me:12714: \$? = $ac_status" >&5
  25781. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25782. - # The compiler can only warn and ignore the option if not recognized
  25783. - # So say no if there are warnings other than the usual output.
  25784. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25785. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25786. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25787. - lt_cv_prog_compiler_pic_works_CXX=yes
  25788. - fi
  25789. - fi
  25790. - $rm conftest*
  25791. +darwin* | rhapsody*)
  25792. + dynamic_linker="$host_os dyld"
  25793. + version_type=darwin
  25794. + need_lib_prefix=no
  25795. + need_version=no
  25796. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  25797. + soname_spec='${libname}${release}${major}$shared_ext'
  25798. + shlibpath_overrides_runpath=yes
  25799. + shlibpath_var=DYLD_LIBRARY_PATH
  25800. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  25801. -fi
  25802. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  25803. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  25804. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  25805. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  25806. + ;;
  25807. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  25808. - case $lt_prog_compiler_pic_CXX in
  25809. - "" | " "*) ;;
  25810. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  25811. - esac
  25812. -else
  25813. - lt_prog_compiler_pic_CXX=
  25814. - lt_prog_compiler_can_build_shared_CXX=no
  25815. -fi
  25816. +dgux*)
  25817. + version_type=linux
  25818. + need_lib_prefix=no
  25819. + need_version=no
  25820. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25821. + soname_spec='${libname}${release}${shared_ext}$major'
  25822. + shlibpath_var=LD_LIBRARY_PATH
  25823. + ;;
  25824. -fi
  25825. -case $host_os in
  25826. - # For platforms which do not support PIC, -DPIC is meaningless:
  25827. - *djgpp*)
  25828. - lt_prog_compiler_pic_CXX=
  25829. - ;;
  25830. - *)
  25831. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  25832. - ;;
  25833. -esac
  25834. +freebsd1*)
  25835. + dynamic_linker=no
  25836. + ;;
  25837. -#
  25838. -# Check to make sure the static flag actually works.
  25839. -#
  25840. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  25841. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25842. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  25843. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  25844. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25845. -else
  25846. - lt_cv_prog_compiler_static_works_CXX=no
  25847. - save_LDFLAGS="$LDFLAGS"
  25848. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25849. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  25850. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25851. - # The linker can only warn and ignore the option if not recognized
  25852. - # So say no if there are warnings
  25853. - if test -s conftest.err; then
  25854. - # Append any errors to the config.log.
  25855. - cat conftest.err 1>&5
  25856. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25857. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25858. - if diff conftest.exp conftest.er2 >/dev/null; then
  25859. - lt_cv_prog_compiler_static_works_CXX=yes
  25860. - fi
  25861. - else
  25862. - lt_cv_prog_compiler_static_works_CXX=yes
  25863. - fi
  25864. - fi
  25865. - $rm -r conftest*
  25866. - LDFLAGS="$save_LDFLAGS"
  25867. -
  25868. -fi
  25869. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  25870. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  25871. -
  25872. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  25873. - :
  25874. -else
  25875. - lt_prog_compiler_static_CXX=
  25876. -fi
  25877. -
  25878. -
  25879. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  25880. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  25881. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  25882. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25883. -else
  25884. - lt_cv_prog_compiler_c_o_CXX=no
  25885. - $rm -r conftest 2>/dev/null
  25886. - mkdir conftest
  25887. - cd conftest
  25888. - mkdir out
  25889. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25890. -
  25891. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  25892. - # Insert the option either (1) after the last *FLAGS variable, or
  25893. - # (2) before a word containing "conftest.", or (3) at the end.
  25894. - # Note that $ac_compile itself does not contain backslashes and begins
  25895. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25896. - lt_compile=`echo "$ac_compile" | $SED \
  25897. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25898. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25899. - -e 's:$: $lt_compiler_flag:'`
  25900. - (eval echo "\"\$as_me:12814: $lt_compile\"" >&5)
  25901. - (eval "$lt_compile" 2>out/conftest.err)
  25902. - ac_status=$?
  25903. - cat out/conftest.err >&5
  25904. - echo "$as_me:12818: \$? = $ac_status" >&5
  25905. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25906. - then
  25907. - # The compiler can only warn and ignore the option if not recognized
  25908. - # So say no if there are warnings
  25909. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25910. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25911. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25912. - lt_cv_prog_compiler_c_o_CXX=yes
  25913. - fi
  25914. - fi
  25915. - chmod u+w . 2>&5
  25916. - $rm conftest*
  25917. - # SGI C++ compiler will create directory out/ii_files/ for
  25918. - # template instantiation
  25919. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  25920. - $rm out/* && rmdir out
  25921. - cd ..
  25922. - rmdir conftest
  25923. - $rm conftest*
  25924. -
  25925. -fi
  25926. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  25927. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  25928. -
  25929. -
  25930. -hard_links="nottested"
  25931. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  25932. - # do not overwrite the value of need_locks provided by the user
  25933. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  25934. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  25935. - hard_links=yes
  25936. - $rm conftest*
  25937. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25938. - touch conftest.a
  25939. - ln conftest.a conftest.b 2>&5 || hard_links=no
  25940. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25941. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  25942. -echo "${ECHO_T}$hard_links" >&6; }
  25943. - if test "$hard_links" = no; then
  25944. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25945. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25946. - need_locks=warn
  25947. +freebsd* | dragonfly*)
  25948. + # DragonFly does not have aout. When/if they implement a new
  25949. + # versioning mechanism, adjust this.
  25950. + if test -x /usr/bin/objformat; then
  25951. + objformat=`/usr/bin/objformat`
  25952. + else
  25953. + case $host_os in
  25954. + freebsd[123]*) objformat=aout ;;
  25955. + *) objformat=elf ;;
  25956. + esac
  25957. fi
  25958. -else
  25959. - need_locks=no
  25960. -fi
  25961. + version_type=freebsd-$objformat
  25962. + case $version_type in
  25963. + freebsd-elf*)
  25964. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25965. + need_version=no
  25966. + need_lib_prefix=no
  25967. + ;;
  25968. + freebsd-*)
  25969. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25970. + need_version=yes
  25971. + ;;
  25972. + esac
  25973. + shlibpath_var=LD_LIBRARY_PATH
  25974. + case $host_os in
  25975. + freebsd2*)
  25976. + shlibpath_overrides_runpath=yes
  25977. + ;;
  25978. + freebsd3.[01]* | freebsdelf3.[01]*)
  25979. + shlibpath_overrides_runpath=yes
  25980. + hardcode_into_libs=yes
  25981. + ;;
  25982. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  25983. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  25984. + shlibpath_overrides_runpath=no
  25985. + hardcode_into_libs=yes
  25986. + ;;
  25987. + *) # from 4.6 on, and DragonFly
  25988. + shlibpath_overrides_runpath=yes
  25989. + hardcode_into_libs=yes
  25990. + ;;
  25991. + esac
  25992. + ;;
  25993. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25994. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  25995. +gnu*)
  25996. + version_type=linux
  25997. + need_lib_prefix=no
  25998. + need_version=no
  25999. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26000. + soname_spec='${libname}${release}${shared_ext}$major'
  26001. + shlibpath_var=LD_LIBRARY_PATH
  26002. + hardcode_into_libs=yes
  26003. + ;;
  26004. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26005. - case $host_os in
  26006. - aix[4-9]*)
  26007. - # If we're using GNU nm, then we don't want the "-C" option.
  26008. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26009. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26010. - 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'
  26011. +hpux9* | hpux10* | hpux11*)
  26012. + # Give a soname corresponding to the major version so that dld.sl refuses to
  26013. + # link against other versions.
  26014. + version_type=sunos
  26015. + need_lib_prefix=no
  26016. + need_version=no
  26017. + case $host_cpu in
  26018. + ia64*)
  26019. + shrext_cmds='.so'
  26020. + hardcode_into_libs=yes
  26021. + dynamic_linker="$host_os dld.so"
  26022. + shlibpath_var=LD_LIBRARY_PATH
  26023. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26024. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26025. + soname_spec='${libname}${release}${shared_ext}$major'
  26026. + if test "X$HPUX_IA64_MODE" = X32; then
  26027. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26028. else
  26029. - 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'
  26030. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26031. fi
  26032. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26033. + ;;
  26034. + hppa*64*)
  26035. + shrext_cmds='.sl'
  26036. + hardcode_into_libs=yes
  26037. + dynamic_linker="$host_os dld.sl"
  26038. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26039. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26040. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26041. + soname_spec='${libname}${release}${shared_ext}$major'
  26042. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26043. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26044. ;;
  26045. - pw32*)
  26046. - export_symbols_cmds_CXX="$ltdll_cmds"
  26047. - ;;
  26048. - cygwin* | mingw*)
  26049. - 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'
  26050. - ;;
  26051. - linux* | k*bsd*-gnu)
  26052. - link_all_deplibs_CXX=no
  26053. - ;;
  26054. *)
  26055. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26056. - ;;
  26057. + shrext_cmds='.sl'
  26058. + dynamic_linker="$host_os dld.sl"
  26059. + shlibpath_var=SHLIB_PATH
  26060. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26061. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26062. + soname_spec='${libname}${release}${shared_ext}$major'
  26063. + ;;
  26064. esac
  26065. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  26066. -
  26067. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  26068. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  26069. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  26070. -
  26071. -#
  26072. -# Do we need to explicitly link libc?
  26073. -#
  26074. -case "x$archive_cmds_need_lc_CXX" in
  26075. -x|xyes)
  26076. - # Assume -lc should be added
  26077. - archive_cmds_need_lc_CXX=yes
  26078. -
  26079. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  26080. - case $archive_cmds_CXX in
  26081. - *'~'*)
  26082. - # FIXME: we may have to deal with multi-command sequences.
  26083. - ;;
  26084. - '$CC '*)
  26085. - # Test whether the compiler implicitly links with -lc since on some
  26086. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  26087. - # to ld, don't add -lc before -lgcc.
  26088. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  26089. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  26090. - $rm conftest*
  26091. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26092. -
  26093. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26094. - (eval $ac_compile) 2>&5
  26095. - ac_status=$?
  26096. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26097. - (exit $ac_status); } 2>conftest.err; then
  26098. - soname=conftest
  26099. - lib=conftest
  26100. - libobjs=conftest.$ac_objext
  26101. - deplibs=
  26102. - wl=$lt_prog_compiler_wl_CXX
  26103. - pic_flag=$lt_prog_compiler_pic_CXX
  26104. - compiler_flags=-v
  26105. - linker_flags=-v
  26106. - verstring=
  26107. - output_objdir=.
  26108. - libname=conftest
  26109. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  26110. - allow_undefined_flag_CXX=
  26111. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  26112. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  26113. - ac_status=$?
  26114. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26115. - (exit $ac_status); }
  26116. - then
  26117. - archive_cmds_need_lc_CXX=no
  26118. - else
  26119. - archive_cmds_need_lc_CXX=yes
  26120. - fi
  26121. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  26122. - else
  26123. - cat conftest.err 1>&5
  26124. - fi
  26125. - $rm conftest*
  26126. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  26127. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  26128. - ;;
  26129. - esac
  26130. - fi
  26131. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26132. + postinstall_cmds='chmod 555 $lib'
  26133. ;;
  26134. -esac
  26135. -
  26136. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  26137. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  26138. -library_names_spec=
  26139. -libname_spec='lib$name'
  26140. -soname_spec=
  26141. -shrext_cmds=".so"
  26142. -postinstall_cmds=
  26143. -postuninstall_cmds=
  26144. -finish_cmds=
  26145. -finish_eval=
  26146. -shlibpath_var=
  26147. -shlibpath_overrides_runpath=unknown
  26148. -version_type=none
  26149. -dynamic_linker="$host_os ld.so"
  26150. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  26151. -need_lib_prefix=unknown
  26152. -hardcode_into_libs=no
  26153. -
  26154. -# when you set need_version to no, make sure it does not cause -set_version
  26155. -# flags to be left without arguments
  26156. -need_version=unknown
  26157. -
  26158. -case $host_os in
  26159. -aix3*)
  26160. +interix[3-9]*)
  26161. version_type=linux
  26162. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  26163. - shlibpath_var=LIBPATH
  26164. -
  26165. - # AIX 3 has no versioning support, so we append a major version to the name.
  26166. + need_lib_prefix=no
  26167. + need_version=no
  26168. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26169. soname_spec='${libname}${release}${shared_ext}$major'
  26170. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26171. + shlibpath_var=LD_LIBRARY_PATH
  26172. + shlibpath_overrides_runpath=no
  26173. + hardcode_into_libs=yes
  26174. ;;
  26175. -aix[4-9]*)
  26176. - version_type=linux
  26177. - need_lib_prefix=no
  26178. - need_version=no
  26179. - hardcode_into_libs=yes
  26180. - if test "$host_cpu" = ia64; then
  26181. - # AIX 5 supports IA64
  26182. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  26183. - shlibpath_var=LD_LIBRARY_PATH
  26184. - else
  26185. - # With GCC up to 2.95.x, collect2 would create an import file
  26186. - # for dependence libraries. The import file would start with
  26187. - # the line `#! .'. This would cause the generated library to
  26188. - # depend on `.', always an invalid library. This was fixed in
  26189. - # development snapshots of GCC prior to 3.0.
  26190. - case $host_os in
  26191. - aix4 | aix4.[01] | aix4.[01].*)
  26192. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  26193. - echo ' yes '
  26194. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  26195. - :
  26196. - else
  26197. - can_build_shared=no
  26198. - fi
  26199. - ;;
  26200. - esac
  26201. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  26202. - # soname into executable. Probably we can add versioning support to
  26203. - # collect2, so additional links can be useful in future.
  26204. - if test "$aix_use_runtimelinking" = yes; then
  26205. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  26206. - # instead of lib<name>.a to let people know that these are not
  26207. - # typical AIX shared libraries.
  26208. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26209. - else
  26210. - # We preserve .a as extension for shared libraries through AIX4.2
  26211. - # and later when we are not doing run time linking.
  26212. - library_names_spec='${libname}${release}.a $libname.a'
  26213. - soname_spec='${libname}${release}${shared_ext}$major'
  26214. - fi
  26215. - shlibpath_var=LIBPATH
  26216. - fi
  26217. - ;;
  26218. -
  26219. -amigaos*)
  26220. - library_names_spec='$libname.ixlibrary $libname.a'
  26221. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  26222. - 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'
  26223. - ;;
  26224. -
  26225. -beos*)
  26226. - library_names_spec='${libname}${shared_ext}'
  26227. - dynamic_linker="$host_os ld.so"
  26228. - shlibpath_var=LIBRARY_PATH
  26229. - ;;
  26230. -
  26231. -bsdi[45]*)
  26232. - version_type=linux
  26233. - need_version=no
  26234. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26235. - soname_spec='${libname}${release}${shared_ext}$major'
  26236. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  26237. - shlibpath_var=LD_LIBRARY_PATH
  26238. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  26239. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  26240. - # the default ld.so.conf also contains /usr/contrib/lib and
  26241. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  26242. - # libtool to hard-code these into programs
  26243. - ;;
  26244. -
  26245. -cygwin* | mingw* | pw32*)
  26246. - version_type=windows
  26247. - shrext_cmds=".dll"
  26248. - need_version=no
  26249. - need_lib_prefix=no
  26250. -
  26251. - case $GCC,$host_os in
  26252. - yes,cygwin* | yes,mingw* | yes,pw32*)
  26253. - library_names_spec='$libname.dll.a'
  26254. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  26255. - postinstall_cmds='base_file=`basename \${file}`~
  26256. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  26257. - dldir=$destdir/`dirname \$dlpath`~
  26258. - test -d \$dldir || mkdir -p \$dldir~
  26259. - $install_prog $dir/$dlname \$dldir/$dlname~
  26260. - chmod a+x \$dldir/$dlname'
  26261. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  26262. - dlpath=$dir/\$dldll~
  26263. - $rm \$dlpath'
  26264. - shlibpath_overrides_runpath=yes
  26265. -
  26266. - case $host_os in
  26267. - cygwin*)
  26268. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  26269. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26270. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  26271. - ;;
  26272. - mingw*)
  26273. - # MinGW DLLs use traditional 'lib' prefix
  26274. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26275. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  26276. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  26277. - # It is most probably a Windows format PATH printed by
  26278. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  26279. - # path with ; separators, and with drive letters. We can handle the
  26280. - # drive letters (cygwin fileutils understands them), so leave them,
  26281. - # especially as we might pass files found there to a mingw objdump,
  26282. - # which wouldn't understand a cygwinified path. Ahh.
  26283. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  26284. - else
  26285. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  26286. - fi
  26287. - ;;
  26288. - pw32*)
  26289. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  26290. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  26291. - ;;
  26292. - esac
  26293. - ;;
  26294. -
  26295. - *)
  26296. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  26297. - ;;
  26298. - esac
  26299. - dynamic_linker='Win32 ld.exe'
  26300. - # FIXME: first we should search . and the directory the executable is in
  26301. - shlibpath_var=PATH
  26302. - ;;
  26303. -
  26304. -darwin* | rhapsody*)
  26305. - dynamic_linker="$host_os dyld"
  26306. - version_type=darwin
  26307. - need_lib_prefix=no
  26308. - need_version=no
  26309. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  26310. - soname_spec='${libname}${release}${major}$shared_ext'
  26311. - shlibpath_overrides_runpath=yes
  26312. - shlibpath_var=DYLD_LIBRARY_PATH
  26313. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  26314. -
  26315. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  26316. - ;;
  26317. -
  26318. -dgux*)
  26319. - version_type=linux
  26320. - need_lib_prefix=no
  26321. - need_version=no
  26322. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  26323. - soname_spec='${libname}${release}${shared_ext}$major'
  26324. - shlibpath_var=LD_LIBRARY_PATH
  26325. - ;;
  26326. -
  26327. -freebsd1*)
  26328. - dynamic_linker=no
  26329. - ;;
  26330. -
  26331. -freebsd* | dragonfly*)
  26332. - # DragonFly does not have aout. When/if they implement a new
  26333. - # versioning mechanism, adjust this.
  26334. - if test -x /usr/bin/objformat; then
  26335. - objformat=`/usr/bin/objformat`
  26336. - else
  26337. - case $host_os in
  26338. - freebsd[123]*) objformat=aout ;;
  26339. - *) objformat=elf ;;
  26340. - esac
  26341. - fi
  26342. - version_type=freebsd-$objformat
  26343. - case $version_type in
  26344. - freebsd-elf*)
  26345. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26346. - need_version=no
  26347. - need_lib_prefix=no
  26348. - ;;
  26349. - freebsd-*)
  26350. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  26351. - need_version=yes
  26352. - ;;
  26353. - esac
  26354. - shlibpath_var=LD_LIBRARY_PATH
  26355. - case $host_os in
  26356. - freebsd2*)
  26357. - shlibpath_overrides_runpath=yes
  26358. - ;;
  26359. - freebsd3.[01]* | freebsdelf3.[01]*)
  26360. - shlibpath_overrides_runpath=yes
  26361. - hardcode_into_libs=yes
  26362. - ;;
  26363. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  26364. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  26365. - shlibpath_overrides_runpath=no
  26366. - hardcode_into_libs=yes
  26367. - ;;
  26368. - *) # from 4.6 on, and DragonFly
  26369. - shlibpath_overrides_runpath=yes
  26370. - hardcode_into_libs=yes
  26371. - ;;
  26372. - esac
  26373. - ;;
  26374. -
  26375. -gnu*)
  26376. - version_type=linux
  26377. - need_lib_prefix=no
  26378. - need_version=no
  26379. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  26380. - soname_spec='${libname}${release}${shared_ext}$major'
  26381. - shlibpath_var=LD_LIBRARY_PATH
  26382. - hardcode_into_libs=yes
  26383. - ;;
  26384. -
  26385. -hpux9* | hpux10* | hpux11*)
  26386. - # Give a soname corresponding to the major version so that dld.sl refuses to
  26387. - # link against other versions.
  26388. - version_type=sunos
  26389. - need_lib_prefix=no
  26390. - need_version=no
  26391. - case $host_cpu in
  26392. - ia64*)
  26393. - shrext_cmds='.so'
  26394. - hardcode_into_libs=yes
  26395. - dynamic_linker="$host_os dld.so"
  26396. - shlibpath_var=LD_LIBRARY_PATH
  26397. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26398. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26399. - soname_spec='${libname}${release}${shared_ext}$major'
  26400. - if test "X$HPUX_IA64_MODE" = X32; then
  26401. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  26402. - else
  26403. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  26404. - fi
  26405. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26406. - ;;
  26407. - hppa*64*)
  26408. - shrext_cmds='.sl'
  26409. - hardcode_into_libs=yes
  26410. - dynamic_linker="$host_os dld.sl"
  26411. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  26412. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  26413. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26414. - soname_spec='${libname}${release}${shared_ext}$major'
  26415. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  26416. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  26417. - ;;
  26418. - *)
  26419. - shrext_cmds='.sl'
  26420. - dynamic_linker="$host_os dld.sl"
  26421. - shlibpath_var=SHLIB_PATH
  26422. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  26423. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26424. - soname_spec='${libname}${release}${shared_ext}$major'
  26425. - ;;
  26426. - esac
  26427. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  26428. - postinstall_cmds='chmod 555 $lib'
  26429. - ;;
  26430. -
  26431. -interix[3-9]*)
  26432. - version_type=linux
  26433. - need_lib_prefix=no
  26434. - need_version=no
  26435. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  26436. - soname_spec='${libname}${release}${shared_ext}$major'
  26437. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  26438. - shlibpath_var=LD_LIBRARY_PATH
  26439. - shlibpath_overrides_runpath=no
  26440. - hardcode_into_libs=yes
  26441. - ;;
  26442. -
  26443. -irix5* | irix6* | nonstopux*)
  26444. - case $host_os in
  26445. - nonstopux*) version_type=nonstopux ;;
  26446. - *)
  26447. - if test "$lt_cv_prog_gnu_ld" = yes; then
  26448. - version_type=linux
  26449. - else
  26450. - version_type=irix
  26451. - fi ;;
  26452. - esac
  26453. +irix5* | irix6* | nonstopux*)
  26454. + case $host_os in
  26455. + nonstopux*) version_type=nonstopux ;;
  26456. + *)
  26457. + if test "$lt_cv_prog_gnu_ld" = yes; then
  26458. + version_type=linux
  26459. + else
  26460. + version_type=irix
  26461. + fi ;;
  26462. + esac
  26463. need_lib_prefix=no
  26464. need_version=no
  26465. soname_spec='${libname}${release}${shared_ext}$major'
  26466. @@ -13303,7 +9302,7 @@
  26467. ;;
  26468. # This must be Linux ELF.
  26469. -linux* | k*bsd*-gnu)
  26470. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  26471. version_type=linux
  26472. need_lib_prefix=no
  26473. need_version=no
  26474. @@ -13312,18 +9311,44 @@
  26475. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  26476. shlibpath_var=LD_LIBRARY_PATH
  26477. shlibpath_overrides_runpath=no
  26478. - # This implies no fast_install, which is unacceptable.
  26479. - # Some rework will be needed to allow for fast_install
  26480. - # before this can be enabled.
  26481. - hardcode_into_libs=yes
  26482. + # Some binutils ld are patched to set DT_RUNPATH
  26483. + save_LDFLAGS=$LDFLAGS
  26484. + save_libdir=$libdir
  26485. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  26486. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  26487. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26488. +/* end confdefs.h. */
  26489. - # Append ld.so.conf contents to the search path
  26490. - if test -f /etc/ld.so.conf; then
  26491. - 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' ' '`
  26492. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26493. - fi
  26494. +int
  26495. +main ()
  26496. +{
  26497. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  26498. + ;
  26499. + return 0;
  26500. +}
  26501. +_ACEOF
  26502. +if ac_fn_c_try_link "$LINENO"; then :
  26503. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  26504. + shlibpath_overrides_runpath=yes
  26505. +fi
  26506. +fi
  26507. +rm -f core conftest.err conftest.$ac_objext \
  26508. + conftest$ac_exeext conftest.$ac_ext
  26509. + LDFLAGS=$save_LDFLAGS
  26510. + libdir=$save_libdir
  26511. +
  26512. + # This implies no fast_install, which is unacceptable.
  26513. + # Some rework will be needed to allow for fast_install
  26514. + # before this can be enabled.
  26515. + hardcode_into_libs=yes
  26516. +
  26517. + # Append ld.so.conf contents to the search path
  26518. + if test -f /etc/ld.so.conf; then
  26519. + 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' ' '`
  26520. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  26521. + fi
  26522. +
  26523. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  26524. # powerpc, because MkLinux only supported shared libraries with the
  26525. # GNU dynamic linker. Since this was broken with cross compilers,
  26526. # most powerpc-linux boxes support dynamic linking these days and
  26527. @@ -13348,7 +9373,7 @@
  26528. version_type=sunos
  26529. need_lib_prefix=no
  26530. need_version=no
  26531. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26532. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26534. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26535. dynamic_linker='NetBSD (a.out) ld.so'
  26536. @@ -13369,14 +9394,16 @@
  26537. shlibpath_overrides_runpath=yes
  26538. ;;
  26539. -nto-qnx*)
  26540. - version_type=linux
  26541. +*nto* | *qnx*)
  26542. + version_type=qnx
  26543. need_lib_prefix=no
  26544. need_version=no
  26545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26546. soname_spec='${libname}${release}${shared_ext}$major'
  26547. shlibpath_var=LD_LIBRARY_PATH
  26548. - shlibpath_overrides_runpath=yes
  26549. + shlibpath_overrides_runpath=no
  26550. + hardcode_into_libs=yes
  26551. + dynamic_linker='ldqnx.so'
  26552. ;;
  26553. openbsd*)
  26554. @@ -13385,13 +9412,13 @@
  26555. need_lib_prefix=no
  26556. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  26557. case $host_os in
  26558. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26559. - *) need_version=no ;;
  26560. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  26561. + *) need_version=no ;;
  26562. esac
  26563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  26564. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  26565. shlibpath_var=LD_LIBRARY_PATH
  26566. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26567. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26568. case $host_os in
  26569. openbsd2.[89] | openbsd2.[89].*)
  26570. shlibpath_overrides_runpath=no
  26571. @@ -13463,7 +9490,6 @@
  26572. sni)
  26573. shlibpath_overrides_runpath=no
  26574. need_lib_prefix=no
  26575. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  26576. runpath_var=LD_RUN_PATH
  26577. ;;
  26578. siemens)
  26579. @@ -13494,13 +9520,12 @@
  26580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  26581. soname_spec='${libname}${release}${shared_ext}$major'
  26582. shlibpath_var=LD_LIBRARY_PATH
  26583. + shlibpath_overrides_runpath=yes
  26584. hardcode_into_libs=yes
  26585. if test "$with_gnu_ld" = yes; then
  26586. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  26587. - shlibpath_overrides_runpath=no
  26588. else
  26589. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  26590. - shlibpath_overrides_runpath=yes
  26591. case $host_os in
  26592. sco3.2v5*)
  26593. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  26594. @@ -13510,6 +9535,17 @@
  26595. sys_lib_dlsearch_path_spec='/usr/lib'
  26596. ;;
  26597. +tpf*)
  26598. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  26599. + version_type=linux
  26600. + need_lib_prefix=no
  26601. + need_version=no
  26602. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26603. + shlibpath_var=LD_LIBRARY_PATH
  26604. + shlibpath_overrides_runpath=no
  26605. + hardcode_into_libs=yes
  26606. + ;;
  26607. +
  26608. uts4*)
  26609. version_type=linux
  26610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  26611. @@ -13521,5750 +9557,733 @@
  26612. dynamic_linker=no
  26613. ;;
  26614. esac
  26615. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  26616. -echo "${ECHO_T}$dynamic_linker" >&6; }
  26617. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  26618. +$as_echo "$dynamic_linker" >&6; }
  26619. test "$dynamic_linker" = no && can_build_shared=no
  26620. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  26621. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26622. -else
  26623. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  26624. -fi
  26625. -
  26626. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  26627. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  26628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26629. -else
  26630. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  26631. -fi
  26632. -
  26633. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  26634. -
  26635. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  26636. if test "$GCC" = yes; then
  26637. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  26638. fi
  26639. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  26640. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  26641. -hardcode_action_CXX=
  26642. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  26643. - test -n "$runpath_var_CXX" || \
  26644. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  26645. -
  26646. - # We can hardcode non-existant directories.
  26647. - if test "$hardcode_direct_CXX" != no &&
  26648. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  26649. - # have to relink, otherwise we might link with an installed library
  26650. - # when we should be linking with a yet-to-be-installed one
  26651. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  26652. - test "$hardcode_minus_L_CXX" != no; then
  26653. - # Linking always hardcodes the temporary library directory.
  26654. - hardcode_action_CXX=relink
  26655. - else
  26656. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  26657. - hardcode_action_CXX=immediate
  26658. - fi
  26659. -else
  26660. - # We cannot hardcode anything, or else we can only hardcode existing
  26661. - # directories.
  26662. - hardcode_action_CXX=unsupported
  26663. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  26664. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  26665. fi
  26666. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  26667. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  26668. -
  26669. -if test "$hardcode_action_CXX" = relink; then
  26670. - # Fast installation is not supported
  26671. - enable_fast_install=no
  26672. -elif test "$shlibpath_overrides_runpath" = yes ||
  26673. - test "$enable_shared" = no; then
  26674. - # Fast installation is not necessary
  26675. - enable_fast_install=needless
  26676. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  26677. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  26678. fi
  26679. -# The else clause should only fire when bootstrapping the
  26680. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  26681. -# with your package, and you will get complaints that there are
  26682. -# no rules to generate ltmain.sh.
  26683. -if test -f "$ltmain"; then
  26684. - # See if we are running on zsh, and set the options which allow our commands through
  26685. - # without removal of \ escapes.
  26686. - if test -n "${ZSH_VERSION+set}" ; then
  26687. - setopt NO_GLOB_SUBST
  26688. - fi
  26689. - # Now quote all the things that may contain metacharacters while being
  26690. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  26691. - # variables and quote the copies for generation of the libtool script.
  26692. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  26693. - SED SHELL STRIP \
  26694. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26695. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26696. - deplibs_check_method reload_flag reload_cmds need_locks \
  26697. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26698. - lt_cv_sys_global_symbol_to_c_name_address \
  26699. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26700. - old_postinstall_cmds old_postuninstall_cmds \
  26701. - compiler_CXX \
  26702. - CC_CXX \
  26703. - LD_CXX \
  26704. - lt_prog_compiler_wl_CXX \
  26705. - lt_prog_compiler_pic_CXX \
  26706. - lt_prog_compiler_static_CXX \
  26707. - lt_prog_compiler_no_builtin_flag_CXX \
  26708. - export_dynamic_flag_spec_CXX \
  26709. - thread_safe_flag_spec_CXX \
  26710. - whole_archive_flag_spec_CXX \
  26711. - enable_shared_with_static_runtimes_CXX \
  26712. - old_archive_cmds_CXX \
  26713. - old_archive_from_new_cmds_CXX \
  26714. - predep_objects_CXX \
  26715. - postdep_objects_CXX \
  26716. - predeps_CXX \
  26717. - postdeps_CXX \
  26718. - compiler_lib_search_path_CXX \
  26719. - compiler_lib_search_dirs_CXX \
  26720. - archive_cmds_CXX \
  26721. - archive_expsym_cmds_CXX \
  26722. - postinstall_cmds_CXX \
  26723. - postuninstall_cmds_CXX \
  26724. - old_archive_from_expsyms_cmds_CXX \
  26725. - allow_undefined_flag_CXX \
  26726. - no_undefined_flag_CXX \
  26727. - export_symbols_cmds_CXX \
  26728. - hardcode_libdir_flag_spec_CXX \
  26729. - hardcode_libdir_flag_spec_ld_CXX \
  26730. - hardcode_libdir_separator_CXX \
  26731. - hardcode_automatic_CXX \
  26732. - module_cmds_CXX \
  26733. - module_expsym_cmds_CXX \
  26734. - lt_cv_prog_compiler_c_o_CXX \
  26735. - fix_srcfile_path_CXX \
  26736. - exclude_expsyms_CXX \
  26737. - include_expsyms_CXX; do
  26738. -
  26739. - case $var in
  26740. - old_archive_cmds_CXX | \
  26741. - old_archive_from_new_cmds_CXX | \
  26742. - archive_cmds_CXX | \
  26743. - archive_expsym_cmds_CXX | \
  26744. - module_cmds_CXX | \
  26745. - module_expsym_cmds_CXX | \
  26746. - old_archive_from_expsyms_cmds_CXX | \
  26747. - export_symbols_cmds_CXX | \
  26748. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26749. - postinstall_cmds | postuninstall_cmds | \
  26750. - old_postinstall_cmds | old_postuninstall_cmds | \
  26751. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26752. - # Double-quote double-evaled strings.
  26753. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26754. - ;;
  26755. - *)
  26756. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  26757. - ;;
  26758. - esac
  26759. - done
  26760. -
  26761. - case $lt_echo in
  26762. - *'\$0 --fallback-echo"')
  26763. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  26764. - ;;
  26765. - esac
  26766. -cfgfile="$ofile"
  26767. - cat <<__EOF__ >> "$cfgfile"
  26768. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  26769. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26770. -
  26771. -# Shell to use when invoking shell scripts.
  26772. -SHELL=$lt_SHELL
  26773. -# Whether or not to build shared libraries.
  26774. -build_libtool_libs=$enable_shared
  26775. -
  26776. -# Whether or not to build static libraries.
  26777. -build_old_libs=$enable_static
  26778. -# Whether or not to add -lc for building shared libraries.
  26779. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26780. -# Whether or not to disallow shared libs when runtime libs are static
  26781. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26782. -# Whether or not to optimize for fast installation.
  26783. -fast_install=$enable_fast_install
  26784. -# The host system.
  26785. -host_alias=$host_alias
  26786. -host=$host
  26787. -host_os=$host_os
  26788. -# The build system.
  26789. -build_alias=$build_alias
  26790. -build=$build
  26791. -build_os=$build_os
  26792. -# An echo program that does not interpret backslashes.
  26793. -echo=$lt_echo
  26794. -# The archiver.
  26795. -AR=$lt_AR
  26796. -AR_FLAGS=$lt_AR_FLAGS
  26797. -# A C compiler.
  26798. -LTCC=$lt_LTCC
  26799. -# LTCC compiler flags.
  26800. -LTCFLAGS=$lt_LTCFLAGS
  26801. -# A language-specific compiler.
  26802. -CC=$lt_compiler_CXX
  26803. -# Is the compiler the GNU C compiler?
  26804. -with_gcc=$GCC_CXX
  26805. -# An ERE matcher.
  26806. -EGREP=$lt_EGREP
  26807. -# The linker used to build libraries.
  26808. -LD=$lt_LD_CXX
  26809. -# Whether we need hard or soft links.
  26810. -LN_S=$lt_LN_S
  26811. -# A BSD-compatible nm program.
  26812. -NM=$lt_NM
  26813. -# A symbol stripping program
  26814. -STRIP=$lt_STRIP
  26815. -# Used to examine libraries when file_magic_cmd begins "file"
  26816. -MAGIC_CMD=$MAGIC_CMD
  26817. -# Used on cygwin: DLL creation program.
  26818. -DLLTOOL="$DLLTOOL"
  26819. -# Used on cygwin: object dumper.
  26820. -OBJDUMP="$OBJDUMP"
  26821. -# Used on cygwin: assembler.
  26822. -AS="$AS"
  26823. -# The name of the directory that contains temporary libtool files.
  26824. -objdir=$objdir
  26825. -# How to create reloadable object files.
  26826. -reload_flag=$lt_reload_flag
  26827. -reload_cmds=$lt_reload_cmds
  26828. -# How to pass a linker flag through the compiler.
  26829. -wl=$lt_lt_prog_compiler_wl_CXX
  26830. -# Object file suffix (normally "o").
  26831. -objext="$ac_objext"
  26832. -# Old archive suffix (normally "a").
  26833. -libext="$libext"
  26834. -# Shared library suffix (normally ".so").
  26835. -shrext_cmds='$shrext_cmds'
  26836. -# Executable file suffix (normally "").
  26837. -exeext="$exeext"
  26838. -# Additional compiler flags for building library objects.
  26839. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  26840. -pic_mode=$pic_mode
  26841. -# What is the maximum length of a command?
  26842. -max_cmd_len=$lt_cv_sys_max_cmd_len
  26843. -# Does compiler simultaneously support -c and -o options?
  26844. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26845. -# Must we lock files when doing compilation?
  26846. -need_locks=$lt_need_locks
  26847. -# Do we need the lib prefix for modules?
  26848. -need_lib_prefix=$need_lib_prefix
  26849. -# Do we need a version for libraries?
  26850. -need_version=$need_version
  26851. -# Whether dlopen is supported.
  26852. -dlopen_support=$enable_dlopen
  26853. -# Whether dlopen of programs is supported.
  26854. -dlopen_self=$enable_dlopen_self
  26855. -# Whether dlopen of statically linked programs is supported.
  26856. -dlopen_self_static=$enable_dlopen_self_static
  26857. -# Compiler flag to prevent dynamic linking.
  26858. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  26859. -# Compiler flag to turn off builtin functions.
  26860. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26861. -# Compiler flag to allow reflexive dlopens.
  26862. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26863. -# Compiler flag to generate shared objects directly from archives.
  26864. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26865. -# Compiler flag to generate thread-safe objects.
  26866. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  26867. -# Library versioning type.
  26868. -version_type=$version_type
  26869. -# Format of library name prefix.
  26870. -libname_spec=$lt_libname_spec
  26871. -# List of archive names. First name is the real one, the rest are links.
  26872. -# The last name is the one that the linker finds with -lNAME.
  26873. -library_names_spec=$lt_library_names_spec
  26874. -# The coded name of the library, if different from the real name.
  26875. -soname_spec=$lt_soname_spec
  26876. -# Commands used to build and install an old-style archive.
  26877. -RANLIB=$lt_RANLIB
  26878. -old_archive_cmds=$lt_old_archive_cmds_CXX
  26879. -old_postinstall_cmds=$lt_old_postinstall_cmds
  26880. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26881. -# Create an old-style archive from a shared archive.
  26882. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26883. -# Create a temporary old-style archive to link instead of a shared archive.
  26884. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26885. -# Commands used to build and install a shared archive.
  26886. -archive_cmds=$lt_archive_cmds_CXX
  26887. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26888. -postinstall_cmds=$lt_postinstall_cmds
  26889. -postuninstall_cmds=$lt_postuninstall_cmds
  26890. -# Commands used to build a loadable module (assumed same as above if empty)
  26891. -module_cmds=$lt_module_cmds_CXX
  26892. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26893. -# Commands to strip libraries.
  26894. -old_striplib=$lt_old_striplib
  26895. -striplib=$lt_striplib
  26896. -# Dependencies to place before the objects being linked to create a
  26897. -# shared library.
  26898. -predep_objects=$lt_predep_objects_CXX
  26899. -
  26900. -# Dependencies to place after the objects being linked to create a
  26901. -# shared library.
  26902. -postdep_objects=$lt_postdep_objects_CXX
  26903. -
  26904. -# Dependencies to place before the objects being linked to create a
  26905. -# shared library.
  26906. -predeps=$lt_predeps_CXX
  26907. -
  26908. -# Dependencies to place after the objects being linked to create a
  26909. -# shared library.
  26910. -postdeps=$lt_postdeps_CXX
  26911. -
  26912. -# The directories searched by this compiler when creating a shared
  26913. -# library
  26914. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26915. -
  26916. -# The library search path used internally by the compiler when linking
  26917. -# a shared library.
  26918. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26919. -# Method to check whether dependent libraries are shared objects.
  26920. -deplibs_check_method=$lt_deplibs_check_method
  26921. -# Command to use when deplibs_check_method == file_magic.
  26922. -file_magic_cmd=$lt_file_magic_cmd
  26923. -# Flag that allows shared libraries with undefined symbols to be built.
  26924. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26925. -# Flag that forces no undefined symbols.
  26926. -no_undefined_flag=$lt_no_undefined_flag_CXX
  26927. -# Commands used to finish a libtool library installation in a directory.
  26928. -finish_cmds=$lt_finish_cmds
  26929. -# Same as above, but a single script fragment to be evaled but not shown.
  26930. -finish_eval=$lt_finish_eval
  26931. -# Take the output of nm and produce a listing of raw symbols and C names.
  26932. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26933. -# Transform the output of nm in a proper C declaration
  26934. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26935. -# Transform the output of nm in a C name address pair
  26936. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26937. -# This is the shared library runtime path variable.
  26938. -runpath_var=$runpath_var
  26939. -# This is the shared library path variable.
  26940. -shlibpath_var=$shlibpath_var
  26941. -# Is shlibpath searched before the hard-coded library search path?
  26942. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26943. -# How to hardcode a shared library path into an executable.
  26944. -hardcode_action=$hardcode_action_CXX
  26945. -# Whether we should hardcode library paths into libraries.
  26946. -hardcode_into_libs=$hardcode_into_libs
  26947. -# Flag to hardcode \$libdir into a binary during linking.
  26948. -# This must work even if \$libdir does not exist.
  26949. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26950. -# If ld is used when linking, flag to hardcode \$libdir into
  26951. -# a binary during linking. This must work even if \$libdir does
  26952. -# not exist.
  26953. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  26954. -
  26955. -# Whether we need a single -rpath flag with a separated argument.
  26956. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26957. -
  26958. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26959. -# resulting binary.
  26960. -hardcode_direct=$hardcode_direct_CXX
  26961. -
  26962. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26963. -# resulting binary.
  26964. -hardcode_minus_L=$hardcode_minus_L_CXX
  26965. -
  26966. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26967. -# the resulting binary.
  26968. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26969. -
  26970. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  26971. -# and all subsequent libraries and executables linked against it.
  26972. -hardcode_automatic=$hardcode_automatic_CXX
  26973. -# Variables whose values should be saved in libtool wrapper scripts and
  26974. -# restored at relink time.
  26975. -variables_saved_for_relink="$variables_saved_for_relink"
  26976. -# Whether libtool must link a program against all its dependency libraries.
  26977. -link_all_deplibs=$link_all_deplibs_CXX
  26978. -# Compile-time system search path for libraries
  26979. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26980. -# Run-time system search path for libraries
  26981. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26982. -# Fix the shell variable \$srcfile for the compiler.
  26983. -fix_srcfile_path=$lt_fix_srcfile_path
  26984. -# Set to yes if exported symbols are required.
  26985. -always_export_symbols=$always_export_symbols_CXX
  26986. -# The commands to list exported symbols.
  26987. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26988. -# The commands to extract the exported symbol list from a shared archive.
  26989. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26990. -# Symbols that should not be listed in the preloaded symbols.
  26991. -exclude_expsyms=$lt_exclude_expsyms_CXX
  26992. -# Symbols that must always be exported.
  26993. -include_expsyms=$lt_include_expsyms_CXX
  26994. -# ### END LIBTOOL TAG CONFIG: $tagname
  26995. -__EOF__
  26996. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  26997. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  26998. +hardcode_action=
  26999. +if test -n "$hardcode_libdir_flag_spec" ||
  27000. + test -n "$runpath_var" ||
  27001. + test "X$hardcode_automatic" = "Xyes" ; then
  27002. -else
  27003. - # If there is no Makefile yet, we rely on a make rule to execute
  27004. - # `config.status --recheck' to rerun these tests and create the
  27005. - # libtool script then.
  27006. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27007. - if test -f "$ltmain_in"; then
  27008. - test -f Makefile && make "$ltmain"
  27009. + # We can hardcode non-existent directories.
  27010. + if test "$hardcode_direct" != no &&
  27011. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  27012. + # have to relink, otherwise we might link with an installed library
  27013. + # when we should be linking with a yet-to-be-installed one
  27014. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  27015. + test "$hardcode_minus_L" != no; then
  27016. + # Linking always hardcodes the temporary library directory.
  27017. + hardcode_action=relink
  27018. + else
  27019. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  27020. + hardcode_action=immediate
  27021. fi
  27022. +else
  27023. + # We cannot hardcode anything, or else we can only hardcode existing
  27024. + # directories.
  27025. + hardcode_action=unsupported
  27026. fi
  27027. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  27028. +$as_echo "$hardcode_action" >&6; }
  27029. +if test "$hardcode_action" = relink ||
  27030. + test "$inherit_rpath" = yes; then
  27031. + # Fast installation is not supported
  27032. + enable_fast_install=no
  27033. +elif test "$shlibpath_overrides_runpath" = yes ||
  27034. + test "$enable_shared" = no; then
  27035. + # Fast installation is not necessary
  27036. + enable_fast_install=needless
  27037. +fi
  27038. -ac_ext=c
  27039. -ac_cpp='$CPP $CPPFLAGS'
  27040. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27041. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27042. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27043. -
  27044. -CC=$lt_save_CC
  27045. -LDCXX=$LD
  27046. -LD=$lt_save_LD
  27047. -GCC=$lt_save_GCC
  27048. -with_gnu_ldcxx=$with_gnu_ld
  27049. -with_gnu_ld=$lt_save_with_gnu_ld
  27050. -lt_cv_path_LDCXX=$lt_cv_path_LD
  27051. -lt_cv_path_LD=$lt_save_path_LD
  27052. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  27053. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  27054. -
  27055. - else
  27056. - tagname=""
  27057. - fi
  27058. - ;;
  27059. -
  27060. - F77)
  27061. - if test -n "$F77" && test "X$F77" != "Xno"; then
  27062. -
  27063. -ac_ext=f
  27064. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  27065. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27066. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  27067. -
  27068. -
  27069. -archive_cmds_need_lc_F77=no
  27070. -allow_undefined_flag_F77=
  27071. -always_export_symbols_F77=no
  27072. -archive_expsym_cmds_F77=
  27073. -export_dynamic_flag_spec_F77=
  27074. -hardcode_direct_F77=no
  27075. -hardcode_libdir_flag_spec_F77=
  27076. -hardcode_libdir_flag_spec_ld_F77=
  27077. -hardcode_libdir_separator_F77=
  27078. -hardcode_minus_L_F77=no
  27079. -hardcode_automatic_F77=no
  27080. -module_cmds_F77=
  27081. -module_expsym_cmds_F77=
  27082. -link_all_deplibs_F77=unknown
  27083. -old_archive_cmds_F77=$old_archive_cmds
  27084. -no_undefined_flag_F77=
  27085. -whole_archive_flag_spec_F77=
  27086. -enable_shared_with_static_runtimes_F77=no
  27087. -# Source file extension for f77 test sources.
  27088. -ac_ext=f
  27089. -# Object file extension for compiled f77 test sources.
  27090. -objext=o
  27091. -objext_F77=$objext
  27092. -# Code to be used in simple compile tests
  27093. -lt_simple_compile_test_code="\
  27094. - subroutine t
  27095. - return
  27096. - end
  27097. -"
  27098. -# Code to be used in simple link tests
  27099. -lt_simple_link_test_code="\
  27100. - program t
  27101. - end
  27102. -"
  27103. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  27104. + if test "x$enable_dlopen" != xyes; then
  27105. + enable_dlopen=unknown
  27106. + enable_dlopen_self=unknown
  27107. + enable_dlopen_self_static=unknown
  27108. +else
  27109. + lt_cv_dlopen=no
  27110. + lt_cv_dlopen_libs=
  27111. -# If no C compiler was specified, use CC.
  27112. -LTCC=${LTCC-"$CC"}
  27113. + case $host_os in
  27114. + beos*)
  27115. + lt_cv_dlopen="load_add_on"
  27116. + lt_cv_dlopen_libs=
  27117. + lt_cv_dlopen_self=yes
  27118. + ;;
  27119. -# If no C compiler flags were specified, use CFLAGS.
  27120. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27121. + mingw* | pw32* | cegcc*)
  27122. + lt_cv_dlopen="LoadLibrary"
  27123. + lt_cv_dlopen_libs=
  27124. + ;;
  27125. -# Allow CC to be a program name with arguments.
  27126. -compiler=$CC
  27127. + cygwin*)
  27128. + lt_cv_dlopen="dlopen"
  27129. + lt_cv_dlopen_libs=
  27130. + ;;
  27131. + darwin*)
  27132. + # if libdl is installed we need to link against it
  27133. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  27134. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  27135. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  27136. + $as_echo_n "(cached) " >&6
  27137. +else
  27138. + ac_check_lib_save_LIBS=$LIBS
  27139. +LIBS="-ldl $LIBS"
  27140. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27141. +/* end confdefs.h. */
  27142. -# save warnings/boilerplate of simple test code
  27143. -ac_outfile=conftest.$ac_objext
  27144. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27145. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27146. -_lt_compiler_boilerplate=`cat conftest.err`
  27147. -$rm conftest*
  27148. -
  27149. -ac_outfile=conftest.$ac_objext
  27150. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27151. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27152. -_lt_linker_boilerplate=`cat conftest.err`
  27153. -$rm -r conftest*
  27154. -
  27155. -
  27156. -# Allow CC to be a program name with arguments.
  27157. -lt_save_CC="$CC"
  27158. -CC=${F77-"f77"}
  27159. -compiler=$CC
  27160. -compiler_F77=$CC
  27161. -for cc_temp in $compiler""; do
  27162. - case $cc_temp in
  27163. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27164. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27165. - \-*) ;;
  27166. - *) break;;
  27167. - esac
  27168. -done
  27169. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27170. -
  27171. -
  27172. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  27173. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  27174. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  27175. -echo "${ECHO_T}$can_build_shared" >&6; }
  27176. -
  27177. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  27178. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  27179. -test "$can_build_shared" = "no" && enable_shared=no
  27180. -
  27181. -# On AIX, shared libraries and static libraries use the same namespace, and
  27182. -# are all built from PIC.
  27183. -case $host_os in
  27184. -aix3*)
  27185. - test "$enable_shared" = yes && enable_static=no
  27186. - if test -n "$RANLIB"; then
  27187. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  27188. - postinstall_cmds='$RANLIB $lib'
  27189. - fi
  27190. - ;;
  27191. -aix[4-9]*)
  27192. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  27193. - test "$enable_shared" = yes && enable_static=no
  27194. - fi
  27195. - ;;
  27196. -esac
  27197. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  27198. -echo "${ECHO_T}$enable_shared" >&6; }
  27199. -
  27200. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  27201. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  27202. -# Make sure either enable_shared or enable_static is yes.
  27203. -test "$enable_shared" = yes || enable_static=yes
  27204. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  27205. -echo "${ECHO_T}$enable_static" >&6; }
  27206. -
  27207. -GCC_F77="$G77"
  27208. -LD_F77="$LD"
  27209. -
  27210. -lt_prog_compiler_wl_F77=
  27211. -lt_prog_compiler_pic_F77=
  27212. -lt_prog_compiler_static_F77=
  27213. -
  27214. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  27215. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  27216. -
  27217. - if test "$GCC" = yes; then
  27218. - lt_prog_compiler_wl_F77='-Wl,'
  27219. - lt_prog_compiler_static_F77='-static'
  27220. -
  27221. - case $host_os in
  27222. - aix*)
  27223. - # All AIX code is PIC.
  27224. - if test "$host_cpu" = ia64; then
  27225. - # AIX 5 now supports IA64 processor
  27226. - lt_prog_compiler_static_F77='-Bstatic'
  27227. - fi
  27228. - ;;
  27229. -
  27230. - amigaos*)
  27231. - # FIXME: we need at least 68020 code to build shared libraries, but
  27232. - # adding the `-m68020' flag to GCC prevents building anything better,
  27233. - # like `-m68040'.
  27234. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  27235. - ;;
  27236. -
  27237. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27238. - # PIC is the default for these OSes.
  27239. - ;;
  27240. -
  27241. - mingw* | cygwin* | pw32* | os2*)
  27242. - # This hack is so that the source file can tell whether it is being
  27243. - # built for inclusion in a dll (and should export symbols for example).
  27244. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  27245. - # (--disable-auto-import) libraries
  27246. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  27247. - ;;
  27248. -
  27249. - darwin* | rhapsody*)
  27250. - # PIC is the default on this platform
  27251. - # Common symbols not allowed in MH_DYLIB files
  27252. - lt_prog_compiler_pic_F77='-fno-common'
  27253. - ;;
  27254. -
  27255. - interix[3-9]*)
  27256. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27257. - # Instead, we relocate shared libraries at runtime.
  27258. - ;;
  27259. -
  27260. - msdosdjgpp*)
  27261. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  27262. - # on systems that don't support them.
  27263. - lt_prog_compiler_can_build_shared_F77=no
  27264. - enable_shared=no
  27265. - ;;
  27266. -
  27267. - sysv4*MP*)
  27268. - if test -d /usr/nec; then
  27269. - lt_prog_compiler_pic_F77=-Kconform_pic
  27270. - fi
  27271. - ;;
  27272. -
  27273. - hpux*)
  27274. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27275. - # not for PA HP-UX.
  27276. - case $host_cpu in
  27277. - hppa*64*|ia64*)
  27278. - # +Z the default
  27279. - ;;
  27280. - *)
  27281. - lt_prog_compiler_pic_F77='-fPIC'
  27282. - ;;
  27283. - esac
  27284. - ;;
  27285. -
  27286. - *)
  27287. - lt_prog_compiler_pic_F77='-fPIC'
  27288. - ;;
  27289. - esac
  27290. - else
  27291. - # PORTME Check for flag to pass linker flags through the system compiler.
  27292. - case $host_os in
  27293. - aix*)
  27294. - lt_prog_compiler_wl_F77='-Wl,'
  27295. - if test "$host_cpu" = ia64; then
  27296. - # AIX 5 now supports IA64 processor
  27297. - lt_prog_compiler_static_F77='-Bstatic'
  27298. - else
  27299. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  27300. - fi
  27301. - ;;
  27302. - darwin*)
  27303. - # PIC is the default on this platform
  27304. - # Common symbols not allowed in MH_DYLIB files
  27305. - case $cc_basename in
  27306. - xlc*)
  27307. - lt_prog_compiler_pic_F77='-qnocommon'
  27308. - lt_prog_compiler_wl_F77='-Wl,'
  27309. - ;;
  27310. - esac
  27311. - ;;
  27312. -
  27313. - mingw* | cygwin* | pw32* | os2*)
  27314. - # This hack is so that the source file can tell whether it is being
  27315. - # built for inclusion in a dll (and should export symbols for example).
  27316. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  27317. - ;;
  27318. -
  27319. - hpux9* | hpux10* | hpux11*)
  27320. - lt_prog_compiler_wl_F77='-Wl,'
  27321. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27322. - # not for PA HP-UX.
  27323. - case $host_cpu in
  27324. - hppa*64*|ia64*)
  27325. - # +Z the default
  27326. - ;;
  27327. - *)
  27328. - lt_prog_compiler_pic_F77='+Z'
  27329. - ;;
  27330. - esac
  27331. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  27332. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  27333. - ;;
  27334. -
  27335. - irix5* | irix6* | nonstopux*)
  27336. - lt_prog_compiler_wl_F77='-Wl,'
  27337. - # PIC (with -KPIC) is the default.
  27338. - lt_prog_compiler_static_F77='-non_shared'
  27339. - ;;
  27340. -
  27341. - newsos6)
  27342. - lt_prog_compiler_pic_F77='-KPIC'
  27343. - lt_prog_compiler_static_F77='-Bstatic'
  27344. - ;;
  27345. -
  27346. - linux* | k*bsd*-gnu)
  27347. - case $cc_basename in
  27348. - icc* | ecc*)
  27349. - lt_prog_compiler_wl_F77='-Wl,'
  27350. - lt_prog_compiler_pic_F77='-KPIC'
  27351. - lt_prog_compiler_static_F77='-static'
  27352. - ;;
  27353. - pgcc* | pgf77* | pgf90* | pgf95*)
  27354. - # Portland Group compilers (*not* the Pentium gcc compiler,
  27355. - # which looks to be a dead project)
  27356. - lt_prog_compiler_wl_F77='-Wl,'
  27357. - lt_prog_compiler_pic_F77='-fpic'
  27358. - lt_prog_compiler_static_F77='-Bstatic'
  27359. - ;;
  27360. - ccc*)
  27361. - lt_prog_compiler_wl_F77='-Wl,'
  27362. - # All Alpha code is PIC.
  27363. - lt_prog_compiler_static_F77='-non_shared'
  27364. - ;;
  27365. - *)
  27366. - case `$CC -V 2>&1 | sed 5q` in
  27367. - *Sun\ C*)
  27368. - # Sun C 5.9
  27369. - lt_prog_compiler_pic_F77='-KPIC'
  27370. - lt_prog_compiler_static_F77='-Bstatic'
  27371. - lt_prog_compiler_wl_F77='-Wl,'
  27372. - ;;
  27373. - *Sun\ F*)
  27374. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  27375. - lt_prog_compiler_pic_F77='-KPIC'
  27376. - lt_prog_compiler_static_F77='-Bstatic'
  27377. - lt_prog_compiler_wl_F77=''
  27378. - ;;
  27379. - esac
  27380. - ;;
  27381. - esac
  27382. - ;;
  27383. -
  27384. - osf3* | osf4* | osf5*)
  27385. - lt_prog_compiler_wl_F77='-Wl,'
  27386. - # All OSF/1 code is PIC.
  27387. - lt_prog_compiler_static_F77='-non_shared'
  27388. - ;;
  27389. -
  27390. - rdos*)
  27391. - lt_prog_compiler_static_F77='-non_shared'
  27392. - ;;
  27393. -
  27394. - solaris*)
  27395. - lt_prog_compiler_pic_F77='-KPIC'
  27396. - lt_prog_compiler_static_F77='-Bstatic'
  27397. - case $cc_basename in
  27398. - f77* | f90* | f95*)
  27399. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  27400. - *)
  27401. - lt_prog_compiler_wl_F77='-Wl,';;
  27402. - esac
  27403. - ;;
  27404. -
  27405. - sunos4*)
  27406. - lt_prog_compiler_wl_F77='-Qoption ld '
  27407. - lt_prog_compiler_pic_F77='-PIC'
  27408. - lt_prog_compiler_static_F77='-Bstatic'
  27409. - ;;
  27410. -
  27411. - sysv4 | sysv4.2uw2* | sysv4.3*)
  27412. - lt_prog_compiler_wl_F77='-Wl,'
  27413. - lt_prog_compiler_pic_F77='-KPIC'
  27414. - lt_prog_compiler_static_F77='-Bstatic'
  27415. - ;;
  27416. -
  27417. - sysv4*MP*)
  27418. - if test -d /usr/nec ;then
  27419. - lt_prog_compiler_pic_F77='-Kconform_pic'
  27420. - lt_prog_compiler_static_F77='-Bstatic'
  27421. - fi
  27422. - ;;
  27423. -
  27424. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  27425. - lt_prog_compiler_wl_F77='-Wl,'
  27426. - lt_prog_compiler_pic_F77='-KPIC'
  27427. - lt_prog_compiler_static_F77='-Bstatic'
  27428. - ;;
  27429. -
  27430. - unicos*)
  27431. - lt_prog_compiler_wl_F77='-Wl,'
  27432. - lt_prog_compiler_can_build_shared_F77=no
  27433. - ;;
  27434. -
  27435. - uts4*)
  27436. - lt_prog_compiler_pic_F77='-pic'
  27437. - lt_prog_compiler_static_F77='-Bstatic'
  27438. - ;;
  27439. -
  27440. - *)
  27441. - lt_prog_compiler_can_build_shared_F77=no
  27442. - ;;
  27443. - esac
  27444. - fi
  27445. -
  27446. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  27447. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  27448. -
  27449. -#
  27450. -# Check to make sure the PIC flag actually works.
  27451. -#
  27452. -if test -n "$lt_prog_compiler_pic_F77"; then
  27453. -
  27454. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  27455. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  27456. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  27457. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27458. -else
  27459. - lt_cv_prog_compiler_pic_works_F77=no
  27460. - ac_outfile=conftest.$ac_objext
  27461. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27462. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  27463. - # Insert the option either (1) after the last *FLAGS variable, or
  27464. - # (2) before a word containing "conftest.", or (3) at the end.
  27465. - # Note that $ac_compile itself does not contain backslashes and begins
  27466. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  27467. - # The option is referenced via a variable to avoid confusing sed.
  27468. - lt_compile=`echo "$ac_compile" | $SED \
  27469. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27470. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27471. - -e 's:$: $lt_compiler_flag:'`
  27472. - (eval echo "\"\$as_me:14412: $lt_compile\"" >&5)
  27473. - (eval "$lt_compile" 2>conftest.err)
  27474. - ac_status=$?
  27475. - cat conftest.err >&5
  27476. - echo "$as_me:14416: \$? = $ac_status" >&5
  27477. - if (exit $ac_status) && test -s "$ac_outfile"; then
  27478. - # The compiler can only warn and ignore the option if not recognized
  27479. - # So say no if there are warnings other than the usual output.
  27480. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27481. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27482. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27483. - lt_cv_prog_compiler_pic_works_F77=yes
  27484. - fi
  27485. - fi
  27486. - $rm conftest*
  27487. -
  27488. -fi
  27489. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  27490. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  27491. -
  27492. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  27493. - case $lt_prog_compiler_pic_F77 in
  27494. - "" | " "*) ;;
  27495. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  27496. - esac
  27497. -else
  27498. - lt_prog_compiler_pic_F77=
  27499. - lt_prog_compiler_can_build_shared_F77=no
  27500. -fi
  27501. -
  27502. -fi
  27503. -case $host_os in
  27504. - # For platforms which do not support PIC, -DPIC is meaningless:
  27505. - *djgpp*)
  27506. - lt_prog_compiler_pic_F77=
  27507. - ;;
  27508. - *)
  27509. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  27510. - ;;
  27511. -esac
  27512. -
  27513. -#
  27514. -# Check to make sure the static flag actually works.
  27515. -#
  27516. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  27517. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  27518. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  27519. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  27520. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27521. -else
  27522. - lt_cv_prog_compiler_static_works_F77=no
  27523. - save_LDFLAGS="$LDFLAGS"
  27524. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  27525. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  27526. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  27527. - # The linker can only warn and ignore the option if not recognized
  27528. - # So say no if there are warnings
  27529. - if test -s conftest.err; then
  27530. - # Append any errors to the config.log.
  27531. - cat conftest.err 1>&5
  27532. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  27533. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27534. - if diff conftest.exp conftest.er2 >/dev/null; then
  27535. - lt_cv_prog_compiler_static_works_F77=yes
  27536. - fi
  27537. - else
  27538. - lt_cv_prog_compiler_static_works_F77=yes
  27539. - fi
  27540. - fi
  27541. - $rm -r conftest*
  27542. - LDFLAGS="$save_LDFLAGS"
  27543. -
  27544. -fi
  27545. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  27546. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  27547. -
  27548. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  27549. - :
  27550. -else
  27551. - lt_prog_compiler_static_F77=
  27552. -fi
  27553. -
  27554. -
  27555. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  27556. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  27557. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  27558. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27559. -else
  27560. - lt_cv_prog_compiler_c_o_F77=no
  27561. - $rm -r conftest 2>/dev/null
  27562. - mkdir conftest
  27563. - cd conftest
  27564. - mkdir out
  27565. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27566. -
  27567. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  27568. - # Insert the option either (1) after the last *FLAGS variable, or
  27569. - # (2) before a word containing "conftest.", or (3) at the end.
  27570. - # Note that $ac_compile itself does not contain backslashes and begins
  27571. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  27572. - lt_compile=`echo "$ac_compile" | $SED \
  27573. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27574. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27575. - -e 's:$: $lt_compiler_flag:'`
  27576. - (eval echo "\"\$as_me:14516: $lt_compile\"" >&5)
  27577. - (eval "$lt_compile" 2>out/conftest.err)
  27578. - ac_status=$?
  27579. - cat out/conftest.err >&5
  27580. - echo "$as_me:14520: \$? = $ac_status" >&5
  27581. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27582. - then
  27583. - # The compiler can only warn and ignore the option if not recognized
  27584. - # So say no if there are warnings
  27585. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  27586. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  27587. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  27588. - lt_cv_prog_compiler_c_o_F77=yes
  27589. - fi
  27590. - fi
  27591. - chmod u+w . 2>&5
  27592. - $rm conftest*
  27593. - # SGI C++ compiler will create directory out/ii_files/ for
  27594. - # template instantiation
  27595. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  27596. - $rm out/* && rmdir out
  27597. - cd ..
  27598. - rmdir conftest
  27599. - $rm conftest*
  27600. -
  27601. -fi
  27602. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  27603. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  27604. -
  27605. -
  27606. -hard_links="nottested"
  27607. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  27608. - # do not overwrite the value of need_locks provided by the user
  27609. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  27610. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  27611. - hard_links=yes
  27612. - $rm conftest*
  27613. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27614. - touch conftest.a
  27615. - ln conftest.a conftest.b 2>&5 || hard_links=no
  27616. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27617. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  27618. -echo "${ECHO_T}$hard_links" >&6; }
  27619. - if test "$hard_links" = no; then
  27620. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27621. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27622. - need_locks=warn
  27623. - fi
  27624. -else
  27625. - need_locks=no
  27626. -fi
  27627. -
  27628. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27629. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27630. -
  27631. - runpath_var=
  27632. - allow_undefined_flag_F77=
  27633. - enable_shared_with_static_runtimes_F77=no
  27634. - archive_cmds_F77=
  27635. - archive_expsym_cmds_F77=
  27636. - old_archive_From_new_cmds_F77=
  27637. - old_archive_from_expsyms_cmds_F77=
  27638. - export_dynamic_flag_spec_F77=
  27639. - whole_archive_flag_spec_F77=
  27640. - thread_safe_flag_spec_F77=
  27641. - hardcode_libdir_flag_spec_F77=
  27642. - hardcode_libdir_flag_spec_ld_F77=
  27643. - hardcode_libdir_separator_F77=
  27644. - hardcode_direct_F77=no
  27645. - hardcode_minus_L_F77=no
  27646. - hardcode_shlibpath_var_F77=unsupported
  27647. - link_all_deplibs_F77=unknown
  27648. - hardcode_automatic_F77=no
  27649. - module_cmds_F77=
  27650. - module_expsym_cmds_F77=
  27651. - always_export_symbols_F77=no
  27652. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27653. - # include_expsyms should be a list of space-separated symbols to be *always*
  27654. - # included in the symbol list
  27655. - include_expsyms_F77=
  27656. - # exclude_expsyms can be an extended regexp of symbols to exclude
  27657. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  27658. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  27659. - # as well as any symbol that contains `d'.
  27660. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  27661. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  27662. - # platforms (ab)use it in PIC code, but their linkers get confused if
  27663. - # the symbol is explicitly referenced. Since portable code cannot
  27664. - # rely on this symbol name, it's probably fine to never include it in
  27665. - # preloaded symbol tables.
  27666. - # Exclude shared library initialization/finalization symbols.
  27667. - extract_expsyms_cmds=
  27668. - # Just being paranoid about ensuring that cc_basename is set.
  27669. - for cc_temp in $compiler""; do
  27670. - case $cc_temp in
  27671. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27672. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27673. - \-*) ;;
  27674. - *) break;;
  27675. - esac
  27676. -done
  27677. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27678. -
  27679. - case $host_os in
  27680. - cygwin* | mingw* | pw32*)
  27681. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  27682. - # When not using gcc, we currently assume that we are using
  27683. - # Microsoft Visual C++.
  27684. - if test "$GCC" != yes; then
  27685. - with_gnu_ld=no
  27686. - fi
  27687. - ;;
  27688. - interix*)
  27689. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  27690. - with_gnu_ld=yes
  27691. - ;;
  27692. - openbsd*)
  27693. - with_gnu_ld=no
  27694. - ;;
  27695. - esac
  27696. -
  27697. - ld_shlibs_F77=yes
  27698. - if test "$with_gnu_ld" = yes; then
  27699. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27700. - wlarc='${wl}'
  27701. -
  27702. - # Set some defaults for GNU ld with shared library support. These
  27703. - # are reset later if shared libraries are not supported. Putting them
  27704. - # here allows them to be overridden if necessary.
  27705. - runpath_var=LD_RUN_PATH
  27706. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  27707. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  27708. - # ancient GNU ld didn't support --whole-archive et. al.
  27709. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  27710. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27711. - else
  27712. - whole_archive_flag_spec_F77=
  27713. - fi
  27714. - supports_anon_versioning=no
  27715. - case `$LD -v 2>/dev/null` in
  27716. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  27717. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27718. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27719. - *\ 2.11.*) ;; # other 2.11 versions
  27720. - *) supports_anon_versioning=yes ;;
  27721. - esac
  27722. -
  27723. - # See if GNU ld supports shared libraries.
  27724. - case $host_os in
  27725. - aix[3-9]*)
  27726. - # On AIX/PPC, the GNU linker is very broken
  27727. - if test "$host_cpu" != ia64; then
  27728. - ld_shlibs_F77=no
  27729. - cat <<EOF 1>&2
  27730. -
  27731. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  27732. -*** to be unable to reliably create shared libraries on AIX.
  27733. -*** Therefore, libtool is disabling shared libraries support. If you
  27734. -*** really care for shared libraries, you may want to modify your PATH
  27735. -*** so that a non-GNU linker is found, and then restart.
  27736. -
  27737. -EOF
  27738. - fi
  27739. - ;;
  27740. -
  27741. - amigaos*)
  27742. - 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)'
  27743. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27744. - hardcode_minus_L_F77=yes
  27745. -
  27746. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  27747. - # that the semantics of dynamic libraries on AmigaOS, at least up
  27748. - # to version 4, is to share data among multiple programs linked
  27749. - # with the same dynamic library. Since this doesn't match the
  27750. - # behavior of shared libraries on other platforms, we can't use
  27751. - # them.
  27752. - ld_shlibs_F77=no
  27753. - ;;
  27754. -
  27755. - beos*)
  27756. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27757. - allow_undefined_flag_F77=unsupported
  27758. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27759. - # support --undefined. This deserves some investigation. FIXME
  27760. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27761. - else
  27762. - ld_shlibs_F77=no
  27763. - fi
  27764. - ;;
  27765. -
  27766. - cygwin* | mingw* | pw32*)
  27767. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  27768. - # as there is no search path for DLLs.
  27769. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27770. - allow_undefined_flag_F77=unsupported
  27771. - always_export_symbols_F77=no
  27772. - enable_shared_with_static_runtimes_F77=yes
  27773. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  27774. -
  27775. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27776. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27777. - # If the export-symbols file already is a .def file (1st line
  27778. - # is EXPORTS), use it as is; otherwise, prepend...
  27779. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27780. - cp $export_symbols $output_objdir/$soname.def;
  27781. - else
  27782. - echo EXPORTS > $output_objdir/$soname.def;
  27783. - cat $export_symbols >> $output_objdir/$soname.def;
  27784. - fi~
  27785. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27786. - else
  27787. - ld_shlibs_F77=no
  27788. - fi
  27789. - ;;
  27790. -
  27791. - interix[3-9]*)
  27792. - hardcode_direct_F77=no
  27793. - hardcode_shlibpath_var_F77=no
  27794. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27795. - export_dynamic_flag_spec_F77='${wl}-E'
  27796. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27797. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  27798. - # default) and relocated if they conflict, which is a slow very memory
  27799. - # consuming and fragmenting process. To avoid this, we pick a random,
  27800. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27801. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27802. - 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'
  27803. - 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'
  27804. - ;;
  27805. -
  27806. - gnu* | linux* | k*bsd*-gnu)
  27807. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27808. - tmp_addflag=
  27809. - case $cc_basename,$host_cpu in
  27810. - pgcc*) # Portland Group C compiler
  27811. - 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'
  27812. - tmp_addflag=' $pic_flag'
  27813. - ;;
  27814. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  27815. - 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'
  27816. - tmp_addflag=' $pic_flag -Mnomain' ;;
  27817. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  27818. - tmp_addflag=' -i_dynamic' ;;
  27819. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  27820. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  27821. - ifc* | ifort*) # Intel Fortran compiler
  27822. - tmp_addflag=' -nofor_main' ;;
  27823. - esac
  27824. - case `$CC -V 2>&1 | sed 5q` in
  27825. - *Sun\ C*) # Sun C 5.9
  27826. - 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'
  27827. - tmp_sharedflag='-G' ;;
  27828. - *Sun\ F*) # Sun Fortran 8.3
  27829. - tmp_sharedflag='-G' ;;
  27830. - *)
  27831. - tmp_sharedflag='-shared' ;;
  27832. - esac
  27833. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27834. -
  27835. - if test $supports_anon_versioning = yes; then
  27836. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  27837. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27838. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  27839. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  27840. - fi
  27841. - link_all_deplibs_F77=no
  27842. - else
  27843. - ld_shlibs_F77=no
  27844. - fi
  27845. - ;;
  27846. -
  27847. - netbsd* | netbsdelf*-gnu)
  27848. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27849. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  27850. - wlarc=
  27851. - else
  27852. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27853. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27854. - fi
  27855. - ;;
  27856. -
  27857. - solaris*)
  27858. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  27859. - ld_shlibs_F77=no
  27860. - cat <<EOF 1>&2
  27861. -
  27862. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  27863. -*** create shared libraries on Solaris systems. Therefore, libtool
  27864. -*** is disabling shared libraries support. We urge you to upgrade GNU
  27865. -*** binutils to release 2.9.1 or newer. Another option is to modify
  27866. -*** your PATH or compiler configuration so that the native linker is
  27867. -*** used, and then restart.
  27868. -
  27869. -EOF
  27870. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27871. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27872. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27873. - else
  27874. - ld_shlibs_F77=no
  27875. - fi
  27876. - ;;
  27877. -
  27878. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  27879. - case `$LD -v 2>&1` in
  27880. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  27881. - ld_shlibs_F77=no
  27882. - cat <<_LT_EOF 1>&2
  27883. -
  27884. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  27885. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  27886. -*** is disabling shared libraries support. We urge you to upgrade GNU
  27887. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  27888. -*** your PATH or compiler configuration so that the native linker is
  27889. -*** used, and then restart.
  27890. -
  27891. -_LT_EOF
  27892. - ;;
  27893. - *)
  27894. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27895. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  27896. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  27897. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  27898. - else
  27899. - ld_shlibs_F77=no
  27900. - fi
  27901. - ;;
  27902. - esac
  27903. - ;;
  27904. -
  27905. - sunos4*)
  27906. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27907. - wlarc=
  27908. - hardcode_direct_F77=yes
  27909. - hardcode_shlibpath_var_F77=no
  27910. - ;;
  27911. -
  27912. - *)
  27913. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27914. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27915. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27916. - else
  27917. - ld_shlibs_F77=no
  27918. - fi
  27919. - ;;
  27920. - esac
  27921. -
  27922. - if test "$ld_shlibs_F77" = no; then
  27923. - runpath_var=
  27924. - hardcode_libdir_flag_spec_F77=
  27925. - export_dynamic_flag_spec_F77=
  27926. - whole_archive_flag_spec_F77=
  27927. - fi
  27928. - else
  27929. - # PORTME fill in a description of your system's linker (not GNU ld)
  27930. - case $host_os in
  27931. - aix3*)
  27932. - allow_undefined_flag_F77=unsupported
  27933. - always_export_symbols_F77=yes
  27934. - 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'
  27935. - # Note: this linker hardcodes the directories in LIBPATH if there
  27936. - # are no directories specified by -L.
  27937. - hardcode_minus_L_F77=yes
  27938. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  27939. - # Neither direct hardcoding nor static linking is supported with a
  27940. - # broken collect2.
  27941. - hardcode_direct_F77=unsupported
  27942. - fi
  27943. - ;;
  27944. -
  27945. - aix[4-9]*)
  27946. - if test "$host_cpu" = ia64; then
  27947. - # On IA64, the linker does run time linking by default, so we don't
  27948. - # have to do anything special.
  27949. - aix_use_runtimelinking=no
  27950. - exp_sym_flag='-Bexport'
  27951. - no_entry_flag=""
  27952. - else
  27953. - # If we're using GNU nm, then we don't want the "-C" option.
  27954. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  27955. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  27956. - 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'
  27957. - else
  27958. - 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'
  27959. - fi
  27960. - aix_use_runtimelinking=no
  27961. -
  27962. - # Test if we are trying to use run time linking or normal
  27963. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27964. - # need to do runtime linking.
  27965. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  27966. - for ld_flag in $LDFLAGS; do
  27967. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  27968. - aix_use_runtimelinking=yes
  27969. - break
  27970. - fi
  27971. - done
  27972. - ;;
  27973. - esac
  27974. -
  27975. - exp_sym_flag='-bexport'
  27976. - no_entry_flag='-bnoentry'
  27977. - fi
  27978. -
  27979. - # When large executables or shared objects are built, AIX ld can
  27980. - # have problems creating the table of contents. If linking a library
  27981. - # or program results in "error TOC overflow" add -mminimal-toc to
  27982. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27983. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27984. -
  27985. - archive_cmds_F77=''
  27986. - hardcode_direct_F77=yes
  27987. - hardcode_libdir_separator_F77=':'
  27988. - link_all_deplibs_F77=yes
  27989. -
  27990. - if test "$GCC" = yes; then
  27991. - case $host_os in aix4.[012]|aix4.[012].*)
  27992. - # We only want to do this on AIX 4.2 and lower, the check
  27993. - # below for broken collect2 doesn't work under 4.3+
  27994. - collect2name=`${CC} -print-prog-name=collect2`
  27995. - if test -f "$collect2name" && \
  27996. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27997. - then
  27998. - # We have reworked collect2
  27999. - :
  28000. - else
  28001. - # We have old collect2
  28002. - hardcode_direct_F77=unsupported
  28003. - # It fails to find uninstalled libraries when the uninstalled
  28004. - # path is not listed in the libpath. Setting hardcode_minus_L
  28005. - # to unsupported forces relinking
  28006. - hardcode_minus_L_F77=yes
  28007. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28008. - hardcode_libdir_separator_F77=
  28009. - fi
  28010. - ;;
  28011. - esac
  28012. - shared_flag='-shared'
  28013. - if test "$aix_use_runtimelinking" = yes; then
  28014. - shared_flag="$shared_flag "'${wl}-G'
  28015. - fi
  28016. - else
  28017. - # not using gcc
  28018. - if test "$host_cpu" = ia64; then
  28019. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28020. - # chokes on -Wl,-G. The following line is correct:
  28021. - shared_flag='-G'
  28022. - else
  28023. - if test "$aix_use_runtimelinking" = yes; then
  28024. - shared_flag='${wl}-G'
  28025. - else
  28026. - shared_flag='${wl}-bM:SRE'
  28027. - fi
  28028. - fi
  28029. - fi
  28030. -
  28031. - # It seems that -bexpall does not export symbols beginning with
  28032. - # underscore (_), so it is better to generate a list of symbols to export.
  28033. - always_export_symbols_F77=yes
  28034. - if test "$aix_use_runtimelinking" = yes; then
  28035. - # Warning - without using the other runtime loading flags (-brtl),
  28036. - # -berok will link without error, but may produce a broken library.
  28037. - allow_undefined_flag_F77='-berok'
  28038. - # Determine the default libpath from the value encoded in an empty executable.
  28039. - cat >conftest.$ac_ext <<_ACEOF
  28040. - program main
  28041. -
  28042. - end
  28043. -_ACEOF
  28044. -rm -f conftest.$ac_objext conftest$ac_exeext
  28045. -if { (ac_try="$ac_link"
  28046. -case "(($ac_try" in
  28047. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28048. - *) ac_try_echo=$ac_try;;
  28049. -esac
  28050. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28051. - (eval "$ac_link") 2>conftest.er1
  28052. - ac_status=$?
  28053. - grep -v '^ *+' conftest.er1 >conftest.err
  28054. - rm -f conftest.er1
  28055. - cat conftest.err >&5
  28056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28057. - (exit $ac_status); } && {
  28058. - test -z "$ac_f77_werror_flag" ||
  28059. - test ! -s conftest.err
  28060. - } && test -s conftest$ac_exeext &&
  28061. - $as_test_x conftest$ac_exeext; then
  28062. -
  28063. -lt_aix_libpath_sed='
  28064. - /Import File Strings/,/^$/ {
  28065. - /^0/ {
  28066. - s/^0 *\(.*\)$/\1/
  28067. - p
  28068. - }
  28069. - }'
  28070. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28071. -# Check for a 64-bit object if we didn't find anything.
  28072. -if test -z "$aix_libpath"; then
  28073. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28074. -fi
  28075. -else
  28076. - echo "$as_me: failed program was:" >&5
  28077. -sed 's/^/| /' conftest.$ac_ext >&5
  28078. -
  28079. -
  28080. -fi
  28081. -
  28082. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28083. - conftest$ac_exeext conftest.$ac_ext
  28084. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28085. -
  28086. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  28087. - 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"
  28088. - else
  28089. - if test "$host_cpu" = ia64; then
  28090. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  28091. - allow_undefined_flag_F77="-z nodefs"
  28092. - 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"
  28093. - else
  28094. - # Determine the default libpath from the value encoded in an empty executable.
  28095. - cat >conftest.$ac_ext <<_ACEOF
  28096. - program main
  28097. -
  28098. - end
  28099. -_ACEOF
  28100. -rm -f conftest.$ac_objext conftest$ac_exeext
  28101. -if { (ac_try="$ac_link"
  28102. -case "(($ac_try" in
  28103. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28104. - *) ac_try_echo=$ac_try;;
  28105. -esac
  28106. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28107. - (eval "$ac_link") 2>conftest.er1
  28108. - ac_status=$?
  28109. - grep -v '^ *+' conftest.er1 >conftest.err
  28110. - rm -f conftest.er1
  28111. - cat conftest.err >&5
  28112. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28113. - (exit $ac_status); } && {
  28114. - test -z "$ac_f77_werror_flag" ||
  28115. - test ! -s conftest.err
  28116. - } && test -s conftest$ac_exeext &&
  28117. - $as_test_x conftest$ac_exeext; then
  28118. -
  28119. -lt_aix_libpath_sed='
  28120. - /Import File Strings/,/^$/ {
  28121. - /^0/ {
  28122. - s/^0 *\(.*\)$/\1/
  28123. - p
  28124. - }
  28125. - }'
  28126. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28127. -# Check for a 64-bit object if we didn't find anything.
  28128. -if test -z "$aix_libpath"; then
  28129. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  28130. -fi
  28131. -else
  28132. - echo "$as_me: failed program was:" >&5
  28133. -sed 's/^/| /' conftest.$ac_ext >&5
  28134. -
  28135. -
  28136. -fi
  28137. -
  28138. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28139. - conftest$ac_exeext conftest.$ac_ext
  28140. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28141. -
  28142. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  28143. - # Warning - without using the other run time loading flags,
  28144. - # -berok will link without error, but may produce a broken library.
  28145. - no_undefined_flag_F77=' ${wl}-bernotok'
  28146. - allow_undefined_flag_F77=' ${wl}-berok'
  28147. - # Exported symbols can be pulled into shared objects from archives
  28148. - whole_archive_flag_spec_F77='$convenience'
  28149. - archive_cmds_need_lc_F77=yes
  28150. - # This is similar to how AIX traditionally builds its shared libraries.
  28151. - 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'
  28152. - fi
  28153. - fi
  28154. - ;;
  28155. -
  28156. - amigaos*)
  28157. - 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)'
  28158. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28159. - hardcode_minus_L_F77=yes
  28160. - # see comment about different semantics on the GNU ld section
  28161. - ld_shlibs_F77=no
  28162. - ;;
  28163. -
  28164. - bsdi[45]*)
  28165. - export_dynamic_flag_spec_F77=-rdynamic
  28166. - ;;
  28167. -
  28168. - cygwin* | mingw* | pw32*)
  28169. - # When not using gcc, we currently assume that we are using
  28170. - # Microsoft Visual C++.
  28171. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  28172. - # no search path for DLLs.
  28173. - hardcode_libdir_flag_spec_F77=' '
  28174. - allow_undefined_flag_F77=unsupported
  28175. - # Tell ltmain to make .lib files, not .a files.
  28176. - libext=lib
  28177. - # Tell ltmain to make .dll files, not .so files.
  28178. - shrext_cmds=".dll"
  28179. - # FIXME: Setting linknames here is a bad hack.
  28180. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  28181. - # The linker will automatically build a .lib file if we build a DLL.
  28182. - old_archive_From_new_cmds_F77='true'
  28183. - # FIXME: Should let the user specify the lib program.
  28184. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  28185. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  28186. - enable_shared_with_static_runtimes_F77=yes
  28187. - ;;
  28188. -
  28189. - darwin* | rhapsody*)
  28190. - case $host_os in
  28191. - rhapsody* | darwin1.[012])
  28192. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  28193. - ;;
  28194. - *) # Darwin 1.3 on
  28195. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28196. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28197. - else
  28198. - case ${MACOSX_DEPLOYMENT_TARGET} in
  28199. - 10.[012])
  28200. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28201. - ;;
  28202. - 10.*)
  28203. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  28204. - ;;
  28205. - esac
  28206. - fi
  28207. - ;;
  28208. - esac
  28209. - archive_cmds_need_lc_F77=no
  28210. - hardcode_direct_F77=no
  28211. - hardcode_automatic_F77=yes
  28212. - hardcode_shlibpath_var_F77=unsupported
  28213. - whole_archive_flag_spec_F77=''
  28214. - link_all_deplibs_F77=yes
  28215. - if test "$GCC" = yes ; then
  28216. - output_verbose_link_cmd='echo'
  28217. - 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}"
  28218. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  28219. - 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}"
  28220. - 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}"
  28221. - else
  28222. - case $cc_basename in
  28223. - xlc*)
  28224. - output_verbose_link_cmd='echo'
  28225. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  28226. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28227. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28228. - 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}'
  28229. - 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}'
  28230. - ;;
  28231. - *)
  28232. - ld_shlibs_F77=no
  28233. - ;;
  28234. - esac
  28235. - fi
  28236. - ;;
  28237. -
  28238. - dgux*)
  28239. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28240. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28241. - hardcode_shlibpath_var_F77=no
  28242. - ;;
  28243. -
  28244. - freebsd1*)
  28245. - ld_shlibs_F77=no
  28246. - ;;
  28247. -
  28248. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  28249. - # support. Future versions do this automatically, but an explicit c++rt0.o
  28250. - # does not break anything, and helps significantly (at the cost of a little
  28251. - # extra space).
  28252. - freebsd2.2*)
  28253. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  28254. - hardcode_libdir_flag_spec_F77='-R$libdir'
  28255. - hardcode_direct_F77=yes
  28256. - hardcode_shlibpath_var_F77=no
  28257. - ;;
  28258. -
  28259. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  28260. - freebsd2*)
  28261. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28262. - hardcode_direct_F77=yes
  28263. - hardcode_minus_L_F77=yes
  28264. - hardcode_shlibpath_var_F77=no
  28265. - ;;
  28266. -
  28267. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  28268. - freebsd* | dragonfly*)
  28269. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  28270. - hardcode_libdir_flag_spec_F77='-R$libdir'
  28271. - hardcode_direct_F77=yes
  28272. - hardcode_shlibpath_var_F77=no
  28273. - ;;
  28274. -
  28275. - hpux9*)
  28276. - if test "$GCC" = yes; then
  28277. - 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'
  28278. - else
  28279. - 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'
  28280. - fi
  28281. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28282. - hardcode_libdir_separator_F77=:
  28283. - hardcode_direct_F77=yes
  28284. -
  28285. - # hardcode_minus_L: Not really in the search PATH,
  28286. - # but as the default location of the library.
  28287. - hardcode_minus_L_F77=yes
  28288. - export_dynamic_flag_spec_F77='${wl}-E'
  28289. - ;;
  28290. -
  28291. - hpux10*)
  28292. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28293. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28294. - else
  28295. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28296. - fi
  28297. - if test "$with_gnu_ld" = no; then
  28298. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28299. - hardcode_libdir_separator_F77=:
  28300. -
  28301. - hardcode_direct_F77=yes
  28302. - export_dynamic_flag_spec_F77='${wl}-E'
  28303. -
  28304. - # hardcode_minus_L: Not really in the search PATH,
  28305. - # but as the default location of the library.
  28306. - hardcode_minus_L_F77=yes
  28307. - fi
  28308. - ;;
  28309. -
  28310. - hpux11*)
  28311. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28312. - case $host_cpu in
  28313. - hppa*64*)
  28314. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28315. - ;;
  28316. - ia64*)
  28317. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28318. - ;;
  28319. - *)
  28320. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28321. - ;;
  28322. - esac
  28323. - else
  28324. - case $host_cpu in
  28325. - hppa*64*)
  28326. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28327. - ;;
  28328. - ia64*)
  28329. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28330. - ;;
  28331. - *)
  28332. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28333. - ;;
  28334. - esac
  28335. - fi
  28336. - if test "$with_gnu_ld" = no; then
  28337. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28338. - hardcode_libdir_separator_F77=:
  28339. -
  28340. - case $host_cpu in
  28341. - hppa*64*|ia64*)
  28342. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  28343. - hardcode_direct_F77=no
  28344. - hardcode_shlibpath_var_F77=no
  28345. - ;;
  28346. - *)
  28347. - hardcode_direct_F77=yes
  28348. - export_dynamic_flag_spec_F77='${wl}-E'
  28349. -
  28350. - # hardcode_minus_L: Not really in the search PATH,
  28351. - # but as the default location of the library.
  28352. - hardcode_minus_L_F77=yes
  28353. - ;;
  28354. - esac
  28355. - fi
  28356. - ;;
  28357. -
  28358. - irix5* | irix6* | nonstopux*)
  28359. - if test "$GCC" = yes; then
  28360. - 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'
  28361. - else
  28362. - 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'
  28363. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  28364. - fi
  28365. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28366. - hardcode_libdir_separator_F77=:
  28367. - link_all_deplibs_F77=yes
  28368. - ;;
  28369. -
  28370. - netbsd* | netbsdelf*-gnu)
  28371. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28372. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  28373. - else
  28374. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  28375. - fi
  28376. - hardcode_libdir_flag_spec_F77='-R$libdir'
  28377. - hardcode_direct_F77=yes
  28378. - hardcode_shlibpath_var_F77=no
  28379. - ;;
  28380. -
  28381. - newsos6)
  28382. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28383. - hardcode_direct_F77=yes
  28384. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28385. - hardcode_libdir_separator_F77=:
  28386. - hardcode_shlibpath_var_F77=no
  28387. - ;;
  28388. -
  28389. - openbsd*)
  28390. - if test -f /usr/libexec/ld.so; then
  28391. - hardcode_direct_F77=yes
  28392. - hardcode_shlibpath_var_F77=no
  28393. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28394. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28395. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  28396. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  28397. - export_dynamic_flag_spec_F77='${wl}-E'
  28398. - else
  28399. - case $host_os in
  28400. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  28401. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28402. - hardcode_libdir_flag_spec_F77='-R$libdir'
  28403. - ;;
  28404. - *)
  28405. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28406. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  28407. - ;;
  28408. - esac
  28409. - fi
  28410. - else
  28411. - ld_shlibs_F77=no
  28412. - fi
  28413. - ;;
  28414. -
  28415. - os2*)
  28416. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28417. - hardcode_minus_L_F77=yes
  28418. - allow_undefined_flag_F77=unsupported
  28419. - 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'
  28420. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28421. - ;;
  28422. -
  28423. - osf3*)
  28424. - if test "$GCC" = yes; then
  28425. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  28426. - 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'
  28427. - else
  28428. - allow_undefined_flag_F77=' -expect_unresolved \*'
  28429. - 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'
  28430. - fi
  28431. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28432. - hardcode_libdir_separator_F77=:
  28433. - ;;
  28434. -
  28435. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  28436. - if test "$GCC" = yes; then
  28437. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  28438. - 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'
  28439. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28440. - else
  28441. - allow_undefined_flag_F77=' -expect_unresolved \*'
  28442. - 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'
  28443. - 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~
  28444. - $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'
  28445. -
  28446. - # Both c and cxx compiler support -rpath directly
  28447. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  28448. - fi
  28449. - hardcode_libdir_separator_F77=:
  28450. - ;;
  28451. -
  28452. - solaris*)
  28453. - no_undefined_flag_F77=' -z text'
  28454. - if test "$GCC" = yes; then
  28455. - wlarc='${wl}'
  28456. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28457. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28458. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  28459. - else
  28460. - wlarc=''
  28461. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28462. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28463. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28464. - fi
  28465. - hardcode_libdir_flag_spec_F77='-R$libdir'
  28466. - hardcode_shlibpath_var_F77=no
  28467. - case $host_os in
  28468. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28469. - *)
  28470. - # The compiler driver will combine and reorder linker options,
  28471. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  28472. - # but is careful enough not to reorder.
  28473. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  28474. - if test "$GCC" = yes; then
  28475. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  28476. - else
  28477. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  28478. - fi
  28479. - ;;
  28480. - esac
  28481. - link_all_deplibs_F77=yes
  28482. - ;;
  28483. -
  28484. - sunos4*)
  28485. - if test "x$host_vendor" = xsequent; then
  28486. - # Use $CC to link under sequent, because it throws in some extra .o
  28487. - # files that make .init and .fini sections work.
  28488. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  28489. - else
  28490. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  28491. - fi
  28492. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28493. - hardcode_direct_F77=yes
  28494. - hardcode_minus_L_F77=yes
  28495. - hardcode_shlibpath_var_F77=no
  28496. - ;;
  28497. -
  28498. - sysv4)
  28499. - case $host_vendor in
  28500. - sni)
  28501. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28502. - hardcode_direct_F77=yes # is this really true???
  28503. - ;;
  28504. - siemens)
  28505. - ## LD is ld it makes a PLAMLIB
  28506. - ## CC just makes a GrossModule.
  28507. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28508. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  28509. - hardcode_direct_F77=no
  28510. - ;;
  28511. - motorola)
  28512. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28513. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  28514. - ;;
  28515. - esac
  28516. - runpath_var='LD_RUN_PATH'
  28517. - hardcode_shlibpath_var_F77=no
  28518. - ;;
  28519. -
  28520. - sysv4.3*)
  28521. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28522. - hardcode_shlibpath_var_F77=no
  28523. - export_dynamic_flag_spec_F77='-Bexport'
  28524. - ;;
  28525. -
  28526. - sysv4*MP*)
  28527. - if test -d /usr/nec; then
  28528. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28529. - hardcode_shlibpath_var_F77=no
  28530. - runpath_var=LD_RUN_PATH
  28531. - hardcode_runpath_var=yes
  28532. - ld_shlibs_F77=yes
  28533. - fi
  28534. - ;;
  28535. -
  28536. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  28537. - no_undefined_flag_F77='${wl}-z,text'
  28538. - archive_cmds_need_lc_F77=no
  28539. - hardcode_shlibpath_var_F77=no
  28540. - runpath_var='LD_RUN_PATH'
  28541. -
  28542. - if test "$GCC" = yes; then
  28543. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28544. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28545. - else
  28546. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28547. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28548. - fi
  28549. - ;;
  28550. -
  28551. - sysv5* | sco3.2v5* | sco5v6*)
  28552. - # Note: We can NOT use -z defs as we might desire, because we do not
  28553. - # link with -lc, and that would cause any symbols used from libc to
  28554. - # always be unresolved, which means just about no library would
  28555. - # ever link correctly. If we're not using GNU ld we use -z text
  28556. - # though, which does catch some bad symbols but isn't as heavy-handed
  28557. - # as -z defs.
  28558. - no_undefined_flag_F77='${wl}-z,text'
  28559. - allow_undefined_flag_F77='${wl}-z,nodefs'
  28560. - archive_cmds_need_lc_F77=no
  28561. - hardcode_shlibpath_var_F77=no
  28562. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28563. - hardcode_libdir_separator_F77=':'
  28564. - link_all_deplibs_F77=yes
  28565. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  28566. - runpath_var='LD_RUN_PATH'
  28567. -
  28568. - if test "$GCC" = yes; then
  28569. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28570. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28571. - else
  28572. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28573. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28574. - fi
  28575. - ;;
  28576. -
  28577. - uts4*)
  28578. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28579. - hardcode_libdir_flag_spec_F77='-L$libdir'
  28580. - hardcode_shlibpath_var_F77=no
  28581. - ;;
  28582. -
  28583. - *)
  28584. - ld_shlibs_F77=no
  28585. - ;;
  28586. - esac
  28587. - fi
  28588. -
  28589. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  28590. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  28591. -test "$ld_shlibs_F77" = no && can_build_shared=no
  28592. -
  28593. -#
  28594. -# Do we need to explicitly link libc?
  28595. -#
  28596. -case "x$archive_cmds_need_lc_F77" in
  28597. -x|xyes)
  28598. - # Assume -lc should be added
  28599. - archive_cmds_need_lc_F77=yes
  28600. -
  28601. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28602. - case $archive_cmds_F77 in
  28603. - *'~'*)
  28604. - # FIXME: we may have to deal with multi-command sequences.
  28605. - ;;
  28606. - '$CC '*)
  28607. - # Test whether the compiler implicitly links with -lc since on some
  28608. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28609. - # to ld, don't add -lc before -lgcc.
  28610. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28611. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  28612. - $rm conftest*
  28613. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28614. -
  28615. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28616. - (eval $ac_compile) 2>&5
  28617. - ac_status=$?
  28618. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28619. - (exit $ac_status); } 2>conftest.err; then
  28620. - soname=conftest
  28621. - lib=conftest
  28622. - libobjs=conftest.$ac_objext
  28623. - deplibs=
  28624. - wl=$lt_prog_compiler_wl_F77
  28625. - pic_flag=$lt_prog_compiler_pic_F77
  28626. - compiler_flags=-v
  28627. - linker_flags=-v
  28628. - verstring=
  28629. - output_objdir=.
  28630. - libname=conftest
  28631. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  28632. - allow_undefined_flag_F77=
  28633. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28634. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28635. - ac_status=$?
  28636. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28637. - (exit $ac_status); }
  28638. - then
  28639. - archive_cmds_need_lc_F77=no
  28640. - else
  28641. - archive_cmds_need_lc_F77=yes
  28642. - fi
  28643. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  28644. - else
  28645. - cat conftest.err 1>&5
  28646. - fi
  28647. - $rm conftest*
  28648. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  28649. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  28650. - ;;
  28651. - esac
  28652. - fi
  28653. - ;;
  28654. -esac
  28655. -
  28656. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28657. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  28658. -library_names_spec=
  28659. -libname_spec='lib$name'
  28660. -soname_spec=
  28661. -shrext_cmds=".so"
  28662. -postinstall_cmds=
  28663. -postuninstall_cmds=
  28664. -finish_cmds=
  28665. -finish_eval=
  28666. -shlibpath_var=
  28667. -shlibpath_overrides_runpath=unknown
  28668. -version_type=none
  28669. -dynamic_linker="$host_os ld.so"
  28670. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28671. -
  28672. -need_lib_prefix=unknown
  28673. -hardcode_into_libs=no
  28674. -
  28675. -# when you set need_version to no, make sure it does not cause -set_version
  28676. -# flags to be left without arguments
  28677. -need_version=unknown
  28678. -
  28679. -case $host_os in
  28680. -aix3*)
  28681. - version_type=linux
  28682. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28683. - shlibpath_var=LIBPATH
  28684. -
  28685. - # AIX 3 has no versioning support, so we append a major version to the name.
  28686. - soname_spec='${libname}${release}${shared_ext}$major'
  28687. - ;;
  28688. -
  28689. -aix[4-9]*)
  28690. - version_type=linux
  28691. - need_lib_prefix=no
  28692. - need_version=no
  28693. - hardcode_into_libs=yes
  28694. - if test "$host_cpu" = ia64; then
  28695. - # AIX 5 supports IA64
  28696. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28697. - shlibpath_var=LD_LIBRARY_PATH
  28698. - else
  28699. - # With GCC up to 2.95.x, collect2 would create an import file
  28700. - # for dependence libraries. The import file would start with
  28701. - # the line `#! .'. This would cause the generated library to
  28702. - # depend on `.', always an invalid library. This was fixed in
  28703. - # development snapshots of GCC prior to 3.0.
  28704. - case $host_os in
  28705. - aix4 | aix4.[01] | aix4.[01].*)
  28706. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28707. - echo ' yes '
  28708. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28709. - :
  28710. - else
  28711. - can_build_shared=no
  28712. - fi
  28713. - ;;
  28714. - esac
  28715. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28716. - # soname into executable. Probably we can add versioning support to
  28717. - # collect2, so additional links can be useful in future.
  28718. - if test "$aix_use_runtimelinking" = yes; then
  28719. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28720. - # instead of lib<name>.a to let people know that these are not
  28721. - # typical AIX shared libraries.
  28722. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28723. - else
  28724. - # We preserve .a as extension for shared libraries through AIX4.2
  28725. - # and later when we are not doing run time linking.
  28726. - library_names_spec='${libname}${release}.a $libname.a'
  28727. - soname_spec='${libname}${release}${shared_ext}$major'
  28728. - fi
  28729. - shlibpath_var=LIBPATH
  28730. - fi
  28731. - ;;
  28732. -
  28733. -amigaos*)
  28734. - library_names_spec='$libname.ixlibrary $libname.a'
  28735. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28736. - 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'
  28737. - ;;
  28738. -
  28739. -beos*)
  28740. - library_names_spec='${libname}${shared_ext}'
  28741. - dynamic_linker="$host_os ld.so"
  28742. - shlibpath_var=LIBRARY_PATH
  28743. - ;;
  28744. -
  28745. -bsdi[45]*)
  28746. - version_type=linux
  28747. - need_version=no
  28748. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28749. - soname_spec='${libname}${release}${shared_ext}$major'
  28750. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28751. - shlibpath_var=LD_LIBRARY_PATH
  28752. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28753. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28754. - # the default ld.so.conf also contains /usr/contrib/lib and
  28755. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28756. - # libtool to hard-code these into programs
  28757. - ;;
  28758. -
  28759. -cygwin* | mingw* | pw32*)
  28760. - version_type=windows
  28761. - shrext_cmds=".dll"
  28762. - need_version=no
  28763. - need_lib_prefix=no
  28764. -
  28765. - case $GCC,$host_os in
  28766. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28767. - library_names_spec='$libname.dll.a'
  28768. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28769. - postinstall_cmds='base_file=`basename \${file}`~
  28770. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28771. - dldir=$destdir/`dirname \$dlpath`~
  28772. - test -d \$dldir || mkdir -p \$dldir~
  28773. - $install_prog $dir/$dlname \$dldir/$dlname~
  28774. - chmod a+x \$dldir/$dlname'
  28775. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28776. - dlpath=$dir/\$dldll~
  28777. - $rm \$dlpath'
  28778. - shlibpath_overrides_runpath=yes
  28779. -
  28780. - case $host_os in
  28781. - cygwin*)
  28782. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28783. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28784. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28785. - ;;
  28786. - mingw*)
  28787. - # MinGW DLLs use traditional 'lib' prefix
  28788. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28789. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28790. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28791. - # It is most probably a Windows format PATH printed by
  28792. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28793. - # path with ; separators, and with drive letters. We can handle the
  28794. - # drive letters (cygwin fileutils understands them), so leave them,
  28795. - # especially as we might pass files found there to a mingw objdump,
  28796. - # which wouldn't understand a cygwinified path. Ahh.
  28797. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28798. - else
  28799. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28800. - fi
  28801. - ;;
  28802. - pw32*)
  28803. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  28804. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28805. - ;;
  28806. - esac
  28807. - ;;
  28808. -
  28809. - *)
  28810. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  28811. - ;;
  28812. - esac
  28813. - dynamic_linker='Win32 ld.exe'
  28814. - # FIXME: first we should search . and the directory the executable is in
  28815. - shlibpath_var=PATH
  28816. - ;;
  28817. -
  28818. -darwin* | rhapsody*)
  28819. - dynamic_linker="$host_os dyld"
  28820. - version_type=darwin
  28821. - need_lib_prefix=no
  28822. - need_version=no
  28823. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28824. - soname_spec='${libname}${release}${major}$shared_ext'
  28825. - shlibpath_overrides_runpath=yes
  28826. - shlibpath_var=DYLD_LIBRARY_PATH
  28827. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  28828. -
  28829. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28830. - ;;
  28831. -
  28832. -dgux*)
  28833. - version_type=linux
  28834. - need_lib_prefix=no
  28835. - need_version=no
  28836. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  28837. - soname_spec='${libname}${release}${shared_ext}$major'
  28838. - shlibpath_var=LD_LIBRARY_PATH
  28839. - ;;
  28840. -
  28841. -freebsd1*)
  28842. - dynamic_linker=no
  28843. - ;;
  28844. -
  28845. -freebsd* | dragonfly*)
  28846. - # DragonFly does not have aout. When/if they implement a new
  28847. - # versioning mechanism, adjust this.
  28848. - if test -x /usr/bin/objformat; then
  28849. - objformat=`/usr/bin/objformat`
  28850. - else
  28851. - case $host_os in
  28852. - freebsd[123]*) objformat=aout ;;
  28853. - *) objformat=elf ;;
  28854. - esac
  28855. - fi
  28856. - version_type=freebsd-$objformat
  28857. - case $version_type in
  28858. - freebsd-elf*)
  28859. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28860. - need_version=no
  28861. - need_lib_prefix=no
  28862. - ;;
  28863. - freebsd-*)
  28864. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  28865. - need_version=yes
  28866. - ;;
  28867. - esac
  28868. - shlibpath_var=LD_LIBRARY_PATH
  28869. - case $host_os in
  28870. - freebsd2*)
  28871. - shlibpath_overrides_runpath=yes
  28872. - ;;
  28873. - freebsd3.[01]* | freebsdelf3.[01]*)
  28874. - shlibpath_overrides_runpath=yes
  28875. - hardcode_into_libs=yes
  28876. - ;;
  28877. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  28878. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  28879. - shlibpath_overrides_runpath=no
  28880. - hardcode_into_libs=yes
  28881. - ;;
  28882. - *) # from 4.6 on, and DragonFly
  28883. - shlibpath_overrides_runpath=yes
  28884. - hardcode_into_libs=yes
  28885. - ;;
  28886. - esac
  28887. - ;;
  28888. -
  28889. -gnu*)
  28890. - version_type=linux
  28891. - need_lib_prefix=no
  28892. - need_version=no
  28893. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  28894. - soname_spec='${libname}${release}${shared_ext}$major'
  28895. - shlibpath_var=LD_LIBRARY_PATH
  28896. - hardcode_into_libs=yes
  28897. - ;;
  28898. -
  28899. -hpux9* | hpux10* | hpux11*)
  28900. - # Give a soname corresponding to the major version so that dld.sl refuses to
  28901. - # link against other versions.
  28902. - version_type=sunos
  28903. - need_lib_prefix=no
  28904. - need_version=no
  28905. - case $host_cpu in
  28906. - ia64*)
  28907. - shrext_cmds='.so'
  28908. - hardcode_into_libs=yes
  28909. - dynamic_linker="$host_os dld.so"
  28910. - shlibpath_var=LD_LIBRARY_PATH
  28911. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28912. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28913. - soname_spec='${libname}${release}${shared_ext}$major'
  28914. - if test "X$HPUX_IA64_MODE" = X32; then
  28915. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  28916. - else
  28917. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  28918. - fi
  28919. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28920. - ;;
  28921. - hppa*64*)
  28922. - shrext_cmds='.sl'
  28923. - hardcode_into_libs=yes
  28924. - dynamic_linker="$host_os dld.sl"
  28925. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28926. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28927. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28928. - soname_spec='${libname}${release}${shared_ext}$major'
  28929. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28930. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28931. - ;;
  28932. - *)
  28933. - shrext_cmds='.sl'
  28934. - dynamic_linker="$host_os dld.sl"
  28935. - shlibpath_var=SHLIB_PATH
  28936. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  28937. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28938. - soname_spec='${libname}${release}${shared_ext}$major'
  28939. - ;;
  28940. - esac
  28941. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  28942. - postinstall_cmds='chmod 555 $lib'
  28943. - ;;
  28944. -
  28945. -interix[3-9]*)
  28946. - version_type=linux
  28947. - need_lib_prefix=no
  28948. - need_version=no
  28949. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28950. - soname_spec='${libname}${release}${shared_ext}$major'
  28951. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  28952. - shlibpath_var=LD_LIBRARY_PATH
  28953. - shlibpath_overrides_runpath=no
  28954. - hardcode_into_libs=yes
  28955. - ;;
  28956. -
  28957. -irix5* | irix6* | nonstopux*)
  28958. - case $host_os in
  28959. - nonstopux*) version_type=nonstopux ;;
  28960. - *)
  28961. - if test "$lt_cv_prog_gnu_ld" = yes; then
  28962. - version_type=linux
  28963. - else
  28964. - version_type=irix
  28965. - fi ;;
  28966. - esac
  28967. - need_lib_prefix=no
  28968. - need_version=no
  28969. - soname_spec='${libname}${release}${shared_ext}$major'
  28970. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  28971. - case $host_os in
  28972. - irix5* | nonstopux*)
  28973. - libsuff= shlibsuff=
  28974. - ;;
  28975. - *)
  28976. - case $LD in # libtool.m4 will add one of these switches to LD
  28977. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  28978. - libsuff= shlibsuff= libmagic=32-bit;;
  28979. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  28980. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  28981. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  28982. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  28983. - *) libsuff= shlibsuff= libmagic=never-match;;
  28984. - esac
  28985. - ;;
  28986. - esac
  28987. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  28988. - shlibpath_overrides_runpath=no
  28989. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28990. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28991. - hardcode_into_libs=yes
  28992. - ;;
  28993. -
  28994. -# No shared lib support for Linux oldld, aout, or coff.
  28995. -linux*oldld* | linux*aout* | linux*coff*)
  28996. - dynamic_linker=no
  28997. - ;;
  28998. -
  28999. -# This must be Linux ELF.
  29000. -linux* | k*bsd*-gnu)
  29001. - version_type=linux
  29002. - need_lib_prefix=no
  29003. - need_version=no
  29004. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29005. - soname_spec='${libname}${release}${shared_ext}$major'
  29006. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29007. - shlibpath_var=LD_LIBRARY_PATH
  29008. - shlibpath_overrides_runpath=no
  29009. - # This implies no fast_install, which is unacceptable.
  29010. - # Some rework will be needed to allow for fast_install
  29011. - # before this can be enabled.
  29012. - hardcode_into_libs=yes
  29013. -
  29014. - # Append ld.so.conf contents to the search path
  29015. - if test -f /etc/ld.so.conf; then
  29016. - 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' ' '`
  29017. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  29018. - fi
  29019. -
  29020. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  29021. - # powerpc, because MkLinux only supported shared libraries with the
  29022. - # GNU dynamic linker. Since this was broken with cross compilers,
  29023. - # most powerpc-linux boxes support dynamic linking these days and
  29024. - # people can always --disable-shared, the test was removed, and we
  29025. - # assume the GNU/Linux dynamic linker is in use.
  29026. - dynamic_linker='GNU/Linux ld.so'
  29027. - ;;
  29028. -
  29029. -netbsdelf*-gnu)
  29030. - version_type=linux
  29031. - need_lib_prefix=no
  29032. - need_version=no
  29033. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29034. - soname_spec='${libname}${release}${shared_ext}$major'
  29035. - shlibpath_var=LD_LIBRARY_PATH
  29036. - shlibpath_overrides_runpath=no
  29037. - hardcode_into_libs=yes
  29038. - dynamic_linker='NetBSD ld.elf_so'
  29039. - ;;
  29040. -
  29041. -netbsd*)
  29042. - version_type=sunos
  29043. - need_lib_prefix=no
  29044. - need_version=no
  29045. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29046. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29047. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29048. - dynamic_linker='NetBSD (a.out) ld.so'
  29049. - else
  29050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29051. - soname_spec='${libname}${release}${shared_ext}$major'
  29052. - dynamic_linker='NetBSD ld.elf_so'
  29053. - fi
  29054. - shlibpath_var=LD_LIBRARY_PATH
  29055. - shlibpath_overrides_runpath=yes
  29056. - hardcode_into_libs=yes
  29057. - ;;
  29058. -
  29059. -newsos6)
  29060. - version_type=linux
  29061. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29062. - shlibpath_var=LD_LIBRARY_PATH
  29063. - shlibpath_overrides_runpath=yes
  29064. - ;;
  29065. -
  29066. -nto-qnx*)
  29067. - version_type=linux
  29068. - need_lib_prefix=no
  29069. - need_version=no
  29070. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29071. - soname_spec='${libname}${release}${shared_ext}$major'
  29072. - shlibpath_var=LD_LIBRARY_PATH
  29073. - shlibpath_overrides_runpath=yes
  29074. - ;;
  29075. -
  29076. -openbsd*)
  29077. - version_type=sunos
  29078. - sys_lib_dlsearch_path_spec="/usr/lib"
  29079. - need_lib_prefix=no
  29080. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29081. - case $host_os in
  29082. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29083. - *) need_version=no ;;
  29084. - esac
  29085. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29086. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29087. - shlibpath_var=LD_LIBRARY_PATH
  29088. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29089. - case $host_os in
  29090. - openbsd2.[89] | openbsd2.[89].*)
  29091. - shlibpath_overrides_runpath=no
  29092. - ;;
  29093. - *)
  29094. - shlibpath_overrides_runpath=yes
  29095. - ;;
  29096. - esac
  29097. - else
  29098. - shlibpath_overrides_runpath=yes
  29099. - fi
  29100. - ;;
  29101. -
  29102. -os2*)
  29103. - libname_spec='$name'
  29104. - shrext_cmds=".dll"
  29105. - need_lib_prefix=no
  29106. - library_names_spec='$libname${shared_ext} $libname.a'
  29107. - dynamic_linker='OS/2 ld.exe'
  29108. - shlibpath_var=LIBPATH
  29109. - ;;
  29110. -
  29111. -osf3* | osf4* | osf5*)
  29112. - version_type=osf
  29113. - need_lib_prefix=no
  29114. - need_version=no
  29115. - soname_spec='${libname}${release}${shared_ext}$major'
  29116. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29117. - shlibpath_var=LD_LIBRARY_PATH
  29118. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  29119. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29120. - ;;
  29121. -
  29122. -rdos*)
  29123. - dynamic_linker=no
  29124. - ;;
  29125. -
  29126. -solaris*)
  29127. - version_type=linux
  29128. - need_lib_prefix=no
  29129. - need_version=no
  29130. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29131. - soname_spec='${libname}${release}${shared_ext}$major'
  29132. - shlibpath_var=LD_LIBRARY_PATH
  29133. - shlibpath_overrides_runpath=yes
  29134. - hardcode_into_libs=yes
  29135. - # ldd complains unless libraries are executable
  29136. - postinstall_cmds='chmod +x $lib'
  29137. - ;;
  29138. -
  29139. -sunos4*)
  29140. - version_type=sunos
  29141. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29142. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29143. - shlibpath_var=LD_LIBRARY_PATH
  29144. - shlibpath_overrides_runpath=yes
  29145. - if test "$with_gnu_ld" = yes; then
  29146. - need_lib_prefix=no
  29147. - fi
  29148. - need_version=yes
  29149. - ;;
  29150. -
  29151. -sysv4 | sysv4.3*)
  29152. - version_type=linux
  29153. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29154. - soname_spec='${libname}${release}${shared_ext}$major'
  29155. - shlibpath_var=LD_LIBRARY_PATH
  29156. - case $host_vendor in
  29157. - sni)
  29158. - shlibpath_overrides_runpath=no
  29159. - need_lib_prefix=no
  29160. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29161. - runpath_var=LD_RUN_PATH
  29162. - ;;
  29163. - siemens)
  29164. - need_lib_prefix=no
  29165. - ;;
  29166. - motorola)
  29167. - need_lib_prefix=no
  29168. - need_version=no
  29169. - shlibpath_overrides_runpath=no
  29170. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29171. - ;;
  29172. - esac
  29173. - ;;
  29174. -
  29175. -sysv4*MP*)
  29176. - if test -d /usr/nec ;then
  29177. - version_type=linux
  29178. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29179. - soname_spec='$libname${shared_ext}.$major'
  29180. - shlibpath_var=LD_LIBRARY_PATH
  29181. - fi
  29182. - ;;
  29183. -
  29184. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29185. - version_type=freebsd-elf
  29186. - need_lib_prefix=no
  29187. - need_version=no
  29188. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29189. - soname_spec='${libname}${release}${shared_ext}$major'
  29190. - shlibpath_var=LD_LIBRARY_PATH
  29191. - hardcode_into_libs=yes
  29192. - if test "$with_gnu_ld" = yes; then
  29193. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29194. - shlibpath_overrides_runpath=no
  29195. - else
  29196. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29197. - shlibpath_overrides_runpath=yes
  29198. - case $host_os in
  29199. - sco3.2v5*)
  29200. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29201. - ;;
  29202. - esac
  29203. - fi
  29204. - sys_lib_dlsearch_path_spec='/usr/lib'
  29205. - ;;
  29206. -
  29207. -uts4*)
  29208. - version_type=linux
  29209. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29210. - soname_spec='${libname}${release}${shared_ext}$major'
  29211. - shlibpath_var=LD_LIBRARY_PATH
  29212. - ;;
  29213. -
  29214. -*)
  29215. - dynamic_linker=no
  29216. - ;;
  29217. -esac
  29218. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29219. -echo "${ECHO_T}$dynamic_linker" >&6; }
  29220. -test "$dynamic_linker" = no && can_build_shared=no
  29221. -
  29222. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  29223. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29224. -else
  29225. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  29226. -fi
  29227. -
  29228. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  29229. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  29230. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29231. -else
  29232. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  29233. -fi
  29234. -
  29235. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  29236. -
  29237. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29238. -if test "$GCC" = yes; then
  29239. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29240. -fi
  29241. -
  29242. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29243. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  29244. -hardcode_action_F77=
  29245. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  29246. - test -n "$runpath_var_F77" || \
  29247. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  29248. -
  29249. - # We can hardcode non-existant directories.
  29250. - if test "$hardcode_direct_F77" != no &&
  29251. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29252. - # have to relink, otherwise we might link with an installed library
  29253. - # when we should be linking with a yet-to-be-installed one
  29254. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  29255. - test "$hardcode_minus_L_F77" != no; then
  29256. - # Linking always hardcodes the temporary library directory.
  29257. - hardcode_action_F77=relink
  29258. - else
  29259. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29260. - hardcode_action_F77=immediate
  29261. - fi
  29262. -else
  29263. - # We cannot hardcode anything, or else we can only hardcode existing
  29264. - # directories.
  29265. - hardcode_action_F77=unsupported
  29266. -fi
  29267. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  29268. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  29269. -
  29270. -if test "$hardcode_action_F77" = relink; then
  29271. - # Fast installation is not supported
  29272. - enable_fast_install=no
  29273. -elif test "$shlibpath_overrides_runpath" = yes ||
  29274. - test "$enable_shared" = no; then
  29275. - # Fast installation is not necessary
  29276. - enable_fast_install=needless
  29277. -fi
  29278. -
  29279. -
  29280. -# The else clause should only fire when bootstrapping the
  29281. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  29282. -# with your package, and you will get complaints that there are
  29283. -# no rules to generate ltmain.sh.
  29284. -if test -f "$ltmain"; then
  29285. - # See if we are running on zsh, and set the options which allow our commands through
  29286. - # without removal of \ escapes.
  29287. - if test -n "${ZSH_VERSION+set}" ; then
  29288. - setopt NO_GLOB_SUBST
  29289. - fi
  29290. - # Now quote all the things that may contain metacharacters while being
  29291. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  29292. - # variables and quote the copies for generation of the libtool script.
  29293. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  29294. - SED SHELL STRIP \
  29295. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29296. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29297. - deplibs_check_method reload_flag reload_cmds need_locks \
  29298. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29299. - lt_cv_sys_global_symbol_to_c_name_address \
  29300. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29301. - old_postinstall_cmds old_postuninstall_cmds \
  29302. - compiler_F77 \
  29303. - CC_F77 \
  29304. - LD_F77 \
  29305. - lt_prog_compiler_wl_F77 \
  29306. - lt_prog_compiler_pic_F77 \
  29307. - lt_prog_compiler_static_F77 \
  29308. - lt_prog_compiler_no_builtin_flag_F77 \
  29309. - export_dynamic_flag_spec_F77 \
  29310. - thread_safe_flag_spec_F77 \
  29311. - whole_archive_flag_spec_F77 \
  29312. - enable_shared_with_static_runtimes_F77 \
  29313. - old_archive_cmds_F77 \
  29314. - old_archive_from_new_cmds_F77 \
  29315. - predep_objects_F77 \
  29316. - postdep_objects_F77 \
  29317. - predeps_F77 \
  29318. - postdeps_F77 \
  29319. - compiler_lib_search_path_F77 \
  29320. - compiler_lib_search_dirs_F77 \
  29321. - archive_cmds_F77 \
  29322. - archive_expsym_cmds_F77 \
  29323. - postinstall_cmds_F77 \
  29324. - postuninstall_cmds_F77 \
  29325. - old_archive_from_expsyms_cmds_F77 \
  29326. - allow_undefined_flag_F77 \
  29327. - no_undefined_flag_F77 \
  29328. - export_symbols_cmds_F77 \
  29329. - hardcode_libdir_flag_spec_F77 \
  29330. - hardcode_libdir_flag_spec_ld_F77 \
  29331. - hardcode_libdir_separator_F77 \
  29332. - hardcode_automatic_F77 \
  29333. - module_cmds_F77 \
  29334. - module_expsym_cmds_F77 \
  29335. - lt_cv_prog_compiler_c_o_F77 \
  29336. - fix_srcfile_path_F77 \
  29337. - exclude_expsyms_F77 \
  29338. - include_expsyms_F77; do
  29339. -
  29340. - case $var in
  29341. - old_archive_cmds_F77 | \
  29342. - old_archive_from_new_cmds_F77 | \
  29343. - archive_cmds_F77 | \
  29344. - archive_expsym_cmds_F77 | \
  29345. - module_cmds_F77 | \
  29346. - module_expsym_cmds_F77 | \
  29347. - old_archive_from_expsyms_cmds_F77 | \
  29348. - export_symbols_cmds_F77 | \
  29349. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29350. - postinstall_cmds | postuninstall_cmds | \
  29351. - old_postinstall_cmds | old_postuninstall_cmds | \
  29352. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29353. - # Double-quote double-evaled strings.
  29354. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  29355. - ;;
  29356. - *)
  29357. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  29358. - ;;
  29359. - esac
  29360. - done
  29361. -
  29362. - case $lt_echo in
  29363. - *'\$0 --fallback-echo"')
  29364. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  29365. - ;;
  29366. - esac
  29367. -
  29368. -cfgfile="$ofile"
  29369. -
  29370. - cat <<__EOF__ >> "$cfgfile"
  29371. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  29372. -
  29373. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29374. -
  29375. -# Shell to use when invoking shell scripts.
  29376. -SHELL=$lt_SHELL
  29377. -
  29378. -# Whether or not to build shared libraries.
  29379. -build_libtool_libs=$enable_shared
  29380. -
  29381. -# Whether or not to build static libraries.
  29382. -build_old_libs=$enable_static
  29383. -
  29384. -# Whether or not to add -lc for building shared libraries.
  29385. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  29386. -
  29387. -# Whether or not to disallow shared libs when runtime libs are static
  29388. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  29389. -
  29390. -# Whether or not to optimize for fast installation.
  29391. -fast_install=$enable_fast_install
  29392. -
  29393. -# The host system.
  29394. -host_alias=$host_alias
  29395. -host=$host
  29396. -host_os=$host_os
  29397. -
  29398. -# The build system.
  29399. -build_alias=$build_alias
  29400. -build=$build
  29401. -build_os=$build_os
  29402. -
  29403. -# An echo program that does not interpret backslashes.
  29404. -echo=$lt_echo
  29405. -
  29406. -# The archiver.
  29407. -AR=$lt_AR
  29408. -AR_FLAGS=$lt_AR_FLAGS
  29409. -
  29410. -# A C compiler.
  29411. -LTCC=$lt_LTCC
  29412. -
  29413. -# LTCC compiler flags.
  29414. -LTCFLAGS=$lt_LTCFLAGS
  29415. -
  29416. -# A language-specific compiler.
  29417. -CC=$lt_compiler_F77
  29418. -
  29419. -# Is the compiler the GNU C compiler?
  29420. -with_gcc=$GCC_F77
  29421. -
  29422. -# An ERE matcher.
  29423. -EGREP=$lt_EGREP
  29424. -
  29425. -# The linker used to build libraries.
  29426. -LD=$lt_LD_F77
  29427. -
  29428. -# Whether we need hard or soft links.
  29429. -LN_S=$lt_LN_S
  29430. -
  29431. -# A BSD-compatible nm program.
  29432. -NM=$lt_NM
  29433. -
  29434. -# A symbol stripping program
  29435. -STRIP=$lt_STRIP
  29436. -
  29437. -# Used to examine libraries when file_magic_cmd begins "file"
  29438. -MAGIC_CMD=$MAGIC_CMD
  29439. -
  29440. -# Used on cygwin: DLL creation program.
  29441. -DLLTOOL="$DLLTOOL"
  29442. -
  29443. -# Used on cygwin: object dumper.
  29444. -OBJDUMP="$OBJDUMP"
  29445. -
  29446. -# Used on cygwin: assembler.
  29447. -AS="$AS"
  29448. -
  29449. -# The name of the directory that contains temporary libtool files.
  29450. -objdir=$objdir
  29451. -
  29452. -# How to create reloadable object files.
  29453. -reload_flag=$lt_reload_flag
  29454. -reload_cmds=$lt_reload_cmds
  29455. -
  29456. -# How to pass a linker flag through the compiler.
  29457. -wl=$lt_lt_prog_compiler_wl_F77
  29458. -
  29459. -# Object file suffix (normally "o").
  29460. -objext="$ac_objext"
  29461. -
  29462. -# Old archive suffix (normally "a").
  29463. -libext="$libext"
  29464. -
  29465. -# Shared library suffix (normally ".so").
  29466. -shrext_cmds='$shrext_cmds'
  29467. -
  29468. -# Executable file suffix (normally "").
  29469. -exeext="$exeext"
  29470. -
  29471. -# Additional compiler flags for building library objects.
  29472. -pic_flag=$lt_lt_prog_compiler_pic_F77
  29473. -pic_mode=$pic_mode
  29474. -
  29475. -# What is the maximum length of a command?
  29476. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29477. -
  29478. -# Does compiler simultaneously support -c and -o options?
  29479. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  29480. -
  29481. -# Must we lock files when doing compilation?
  29482. -need_locks=$lt_need_locks
  29483. -
  29484. -# Do we need the lib prefix for modules?
  29485. -need_lib_prefix=$need_lib_prefix
  29486. -
  29487. -# Do we need a version for libraries?
  29488. -need_version=$need_version
  29489. -
  29490. -# Whether dlopen is supported.
  29491. -dlopen_support=$enable_dlopen
  29492. -
  29493. -# Whether dlopen of programs is supported.
  29494. -dlopen_self=$enable_dlopen_self
  29495. -
  29496. -# Whether dlopen of statically linked programs is supported.
  29497. -dlopen_self_static=$enable_dlopen_self_static
  29498. -
  29499. -# Compiler flag to prevent dynamic linking.
  29500. -link_static_flag=$lt_lt_prog_compiler_static_F77
  29501. -
  29502. -# Compiler flag to turn off builtin functions.
  29503. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  29504. -
  29505. -# Compiler flag to allow reflexive dlopens.
  29506. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  29507. -
  29508. -# Compiler flag to generate shared objects directly from archives.
  29509. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  29510. -
  29511. -# Compiler flag to generate thread-safe objects.
  29512. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  29513. -
  29514. -# Library versioning type.
  29515. -version_type=$version_type
  29516. -
  29517. -# Format of library name prefix.
  29518. -libname_spec=$lt_libname_spec
  29519. -
  29520. -# List of archive names. First name is the real one, the rest are links.
  29521. -# The last name is the one that the linker finds with -lNAME.
  29522. -library_names_spec=$lt_library_names_spec
  29523. -
  29524. -# The coded name of the library, if different from the real name.
  29525. -soname_spec=$lt_soname_spec
  29526. -
  29527. -# Commands used to build and install an old-style archive.
  29528. -RANLIB=$lt_RANLIB
  29529. -old_archive_cmds=$lt_old_archive_cmds_F77
  29530. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29531. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29532. -
  29533. -# Create an old-style archive from a shared archive.
  29534. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  29535. -
  29536. -# Create a temporary old-style archive to link instead of a shared archive.
  29537. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  29538. -
  29539. -# Commands used to build and install a shared archive.
  29540. -archive_cmds=$lt_archive_cmds_F77
  29541. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  29542. -postinstall_cmds=$lt_postinstall_cmds
  29543. -postuninstall_cmds=$lt_postuninstall_cmds
  29544. -
  29545. -# Commands used to build a loadable module (assumed same as above if empty)
  29546. -module_cmds=$lt_module_cmds_F77
  29547. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  29548. -
  29549. -# Commands to strip libraries.
  29550. -old_striplib=$lt_old_striplib
  29551. -striplib=$lt_striplib
  29552. -
  29553. -# Dependencies to place before the objects being linked to create a
  29554. -# shared library.
  29555. -predep_objects=$lt_predep_objects_F77
  29556. -
  29557. -# Dependencies to place after the objects being linked to create a
  29558. -# shared library.
  29559. -postdep_objects=$lt_postdep_objects_F77
  29560. -
  29561. -# Dependencies to place before the objects being linked to create a
  29562. -# shared library.
  29563. -predeps=$lt_predeps_F77
  29564. -
  29565. -# Dependencies to place after the objects being linked to create a
  29566. -# shared library.
  29567. -postdeps=$lt_postdeps_F77
  29568. -
  29569. -# The directories searched by this compiler when creating a shared
  29570. -# library
  29571. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  29572. -
  29573. -# The library search path used internally by the compiler when linking
  29574. -# a shared library.
  29575. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  29576. -
  29577. -# Method to check whether dependent libraries are shared objects.
  29578. -deplibs_check_method=$lt_deplibs_check_method
  29579. -
  29580. -# Command to use when deplibs_check_method == file_magic.
  29581. -file_magic_cmd=$lt_file_magic_cmd
  29582. -
  29583. -# Flag that allows shared libraries with undefined symbols to be built.
  29584. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  29585. -
  29586. -# Flag that forces no undefined symbols.
  29587. -no_undefined_flag=$lt_no_undefined_flag_F77
  29588. -
  29589. -# Commands used to finish a libtool library installation in a directory.
  29590. -finish_cmds=$lt_finish_cmds
  29591. -
  29592. -# Same as above, but a single script fragment to be evaled but not shown.
  29593. -finish_eval=$lt_finish_eval
  29594. -
  29595. -# Take the output of nm and produce a listing of raw symbols and C names.
  29596. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29597. -
  29598. -# Transform the output of nm in a proper C declaration
  29599. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29600. -
  29601. -# Transform the output of nm in a C name address pair
  29602. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29603. -
  29604. -# This is the shared library runtime path variable.
  29605. -runpath_var=$runpath_var
  29606. -
  29607. -# This is the shared library path variable.
  29608. -shlibpath_var=$shlibpath_var
  29609. -
  29610. -# Is shlibpath searched before the hard-coded library search path?
  29611. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29612. -
  29613. -# How to hardcode a shared library path into an executable.
  29614. -hardcode_action=$hardcode_action_F77
  29615. -
  29616. -# Whether we should hardcode library paths into libraries.
  29617. -hardcode_into_libs=$hardcode_into_libs
  29618. -
  29619. -# Flag to hardcode \$libdir into a binary during linking.
  29620. -# This must work even if \$libdir does not exist.
  29621. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  29622. -
  29623. -# If ld is used when linking, flag to hardcode \$libdir into
  29624. -# a binary during linking. This must work even if \$libdir does
  29625. -# not exist.
  29626. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  29627. -
  29628. -# Whether we need a single -rpath flag with a separated argument.
  29629. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  29630. -
  29631. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29632. -# resulting binary.
  29633. -hardcode_direct=$hardcode_direct_F77
  29634. -
  29635. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29636. -# resulting binary.
  29637. -hardcode_minus_L=$hardcode_minus_L_F77
  29638. -
  29639. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29640. -# the resulting binary.
  29641. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  29642. -
  29643. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  29644. -# and all subsequent libraries and executables linked against it.
  29645. -hardcode_automatic=$hardcode_automatic_F77
  29646. -
  29647. -# Variables whose values should be saved in libtool wrapper scripts and
  29648. -# restored at relink time.
  29649. -variables_saved_for_relink="$variables_saved_for_relink"
  29650. -
  29651. -# Whether libtool must link a program against all its dependency libraries.
  29652. -link_all_deplibs=$link_all_deplibs_F77
  29653. -
  29654. -# Compile-time system search path for libraries
  29655. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29656. -
  29657. -# Run-time system search path for libraries
  29658. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29659. -
  29660. -# Fix the shell variable \$srcfile for the compiler.
  29661. -fix_srcfile_path=$lt_fix_srcfile_path
  29662. -
  29663. -# Set to yes if exported symbols are required.
  29664. -always_export_symbols=$always_export_symbols_F77
  29665. -
  29666. -# The commands to list exported symbols.
  29667. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  29668. -
  29669. -# The commands to extract the exported symbol list from a shared archive.
  29670. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29671. -
  29672. -# Symbols that should not be listed in the preloaded symbols.
  29673. -exclude_expsyms=$lt_exclude_expsyms_F77
  29674. -
  29675. -# Symbols that must always be exported.
  29676. -include_expsyms=$lt_include_expsyms_F77
  29677. -
  29678. -# ### END LIBTOOL TAG CONFIG: $tagname
  29679. -
  29680. -__EOF__
  29681. -
  29682. -
  29683. -else
  29684. - # If there is no Makefile yet, we rely on a make rule to execute
  29685. - # `config.status --recheck' to rerun these tests and create the
  29686. - # libtool script then.
  29687. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29688. - if test -f "$ltmain_in"; then
  29689. - test -f Makefile && make "$ltmain"
  29690. - fi
  29691. -fi
  29692. -
  29693. -
  29694. -ac_ext=c
  29695. -ac_cpp='$CPP $CPPFLAGS'
  29696. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29697. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29698. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29699. -
  29700. -CC="$lt_save_CC"
  29701. -
  29702. - else
  29703. - tagname=""
  29704. - fi
  29705. - ;;
  29706. -
  29707. - GCJ)
  29708. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  29709. -
  29710. -
  29711. -# Source file extension for Java test sources.
  29712. -ac_ext=java
  29713. -
  29714. -# Object file extension for compiled Java test sources.
  29715. -objext=o
  29716. -objext_GCJ=$objext
  29717. -
  29718. -# Code to be used in simple compile tests
  29719. -lt_simple_compile_test_code="class foo {}"
  29720. -
  29721. -# Code to be used in simple link tests
  29722. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  29723. -
  29724. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  29725. -
  29726. -# If no C compiler was specified, use CC.
  29727. -LTCC=${LTCC-"$CC"}
  29728. -
  29729. -# If no C compiler flags were specified, use CFLAGS.
  29730. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29731. -
  29732. -# Allow CC to be a program name with arguments.
  29733. -compiler=$CC
  29734. -
  29735. -
  29736. -# save warnings/boilerplate of simple test code
  29737. -ac_outfile=conftest.$ac_objext
  29738. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  29739. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29740. -_lt_compiler_boilerplate=`cat conftest.err`
  29741. -$rm conftest*
  29742. -
  29743. -ac_outfile=conftest.$ac_objext
  29744. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  29745. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29746. -_lt_linker_boilerplate=`cat conftest.err`
  29747. -$rm -r conftest*
  29748. -
  29749. -
  29750. -# Allow CC to be a program name with arguments.
  29751. -lt_save_CC="$CC"
  29752. -CC=${GCJ-"gcj"}
  29753. -compiler=$CC
  29754. -compiler_GCJ=$CC
  29755. -for cc_temp in $compiler""; do
  29756. - case $cc_temp in
  29757. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29758. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29759. - \-*) ;;
  29760. - *) break;;
  29761. - esac
  29762. -done
  29763. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29764. -
  29765. -
  29766. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  29767. -archive_cmds_need_lc_GCJ=no
  29768. -
  29769. -old_archive_cmds_GCJ=$old_archive_cmds
  29770. -
  29771. -
  29772. -lt_prog_compiler_no_builtin_flag_GCJ=
  29773. -
  29774. -if test "$GCC" = yes; then
  29775. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  29776. -
  29777. -
  29778. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  29779. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  29780. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  29781. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29782. -else
  29783. - lt_cv_prog_compiler_rtti_exceptions=no
  29784. - ac_outfile=conftest.$ac_objext
  29785. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29786. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  29787. - # Insert the option either (1) after the last *FLAGS variable, or
  29788. - # (2) before a word containing "conftest.", or (3) at the end.
  29789. - # Note that $ac_compile itself does not contain backslashes and begins
  29790. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29791. - # The option is referenced via a variable to avoid confusing sed.
  29792. - lt_compile=`echo "$ac_compile" | $SED \
  29793. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29794. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29795. - -e 's:$: $lt_compiler_flag:'`
  29796. - (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
  29797. - (eval "$lt_compile" 2>conftest.err)
  29798. - ac_status=$?
  29799. - cat conftest.err >&5
  29800. - echo "$as_me:16740: \$? = $ac_status" >&5
  29801. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29802. - # The compiler can only warn and ignore the option if not recognized
  29803. - # So say no if there are warnings other than the usual output.
  29804. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29805. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29806. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29807. - lt_cv_prog_compiler_rtti_exceptions=yes
  29808. - fi
  29809. - fi
  29810. - $rm conftest*
  29811. -
  29812. -fi
  29813. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  29814. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  29815. -
  29816. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  29817. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  29818. -else
  29819. - :
  29820. -fi
  29821. -
  29822. -fi
  29823. -
  29824. -lt_prog_compiler_wl_GCJ=
  29825. -lt_prog_compiler_pic_GCJ=
  29826. -lt_prog_compiler_static_GCJ=
  29827. -
  29828. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29829. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  29830. -
  29831. - if test "$GCC" = yes; then
  29832. - lt_prog_compiler_wl_GCJ='-Wl,'
  29833. - lt_prog_compiler_static_GCJ='-static'
  29834. -
  29835. - case $host_os in
  29836. - aix*)
  29837. - # All AIX code is PIC.
  29838. - if test "$host_cpu" = ia64; then
  29839. - # AIX 5 now supports IA64 processor
  29840. - lt_prog_compiler_static_GCJ='-Bstatic'
  29841. - fi
  29842. - ;;
  29843. -
  29844. - amigaos*)
  29845. - # FIXME: we need at least 68020 code to build shared libraries, but
  29846. - # adding the `-m68020' flag to GCC prevents building anything better,
  29847. - # like `-m68040'.
  29848. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  29849. - ;;
  29850. -
  29851. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29852. - # PIC is the default for these OSes.
  29853. - ;;
  29854. -
  29855. - mingw* | cygwin* | pw32* | os2*)
  29856. - # This hack is so that the source file can tell whether it is being
  29857. - # built for inclusion in a dll (and should export symbols for example).
  29858. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  29859. - # (--disable-auto-import) libraries
  29860. -
  29861. - ;;
  29862. -
  29863. - darwin* | rhapsody*)
  29864. - # PIC is the default on this platform
  29865. - # Common symbols not allowed in MH_DYLIB files
  29866. - lt_prog_compiler_pic_GCJ='-fno-common'
  29867. - ;;
  29868. -
  29869. - interix[3-9]*)
  29870. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29871. - # Instead, we relocate shared libraries at runtime.
  29872. - ;;
  29873. -
  29874. - msdosdjgpp*)
  29875. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  29876. - # on systems that don't support them.
  29877. - lt_prog_compiler_can_build_shared_GCJ=no
  29878. - enable_shared=no
  29879. - ;;
  29880. -
  29881. - sysv4*MP*)
  29882. - if test -d /usr/nec; then
  29883. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  29884. - fi
  29885. - ;;
  29886. -
  29887. - hpux*)
  29888. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29889. - # not for PA HP-UX.
  29890. - case $host_cpu in
  29891. - hppa*64*|ia64*)
  29892. - # +Z the default
  29893. - ;;
  29894. - *)
  29895. - lt_prog_compiler_pic_GCJ='-fPIC'
  29896. - ;;
  29897. - esac
  29898. - ;;
  29899. -
  29900. - *)
  29901. - lt_prog_compiler_pic_GCJ='-fPIC'
  29902. - ;;
  29903. - esac
  29904. - else
  29905. - # PORTME Check for flag to pass linker flags through the system compiler.
  29906. - case $host_os in
  29907. - aix*)
  29908. - lt_prog_compiler_wl_GCJ='-Wl,'
  29909. - if test "$host_cpu" = ia64; then
  29910. - # AIX 5 now supports IA64 processor
  29911. - lt_prog_compiler_static_GCJ='-Bstatic'
  29912. - else
  29913. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  29914. - fi
  29915. - ;;
  29916. - darwin*)
  29917. - # PIC is the default on this platform
  29918. - # Common symbols not allowed in MH_DYLIB files
  29919. - case $cc_basename in
  29920. - xlc*)
  29921. - lt_prog_compiler_pic_GCJ='-qnocommon'
  29922. - lt_prog_compiler_wl_GCJ='-Wl,'
  29923. - ;;
  29924. - esac
  29925. - ;;
  29926. -
  29927. - mingw* | cygwin* | pw32* | os2*)
  29928. - # This hack is so that the source file can tell whether it is being
  29929. - # built for inclusion in a dll (and should export symbols for example).
  29930. -
  29931. - ;;
  29932. -
  29933. - hpux9* | hpux10* | hpux11*)
  29934. - lt_prog_compiler_wl_GCJ='-Wl,'
  29935. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29936. - # not for PA HP-UX.
  29937. - case $host_cpu in
  29938. - hppa*64*|ia64*)
  29939. - # +Z the default
  29940. - ;;
  29941. - *)
  29942. - lt_prog_compiler_pic_GCJ='+Z'
  29943. - ;;
  29944. - esac
  29945. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  29946. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  29947. - ;;
  29948. -
  29949. - irix5* | irix6* | nonstopux*)
  29950. - lt_prog_compiler_wl_GCJ='-Wl,'
  29951. - # PIC (with -KPIC) is the default.
  29952. - lt_prog_compiler_static_GCJ='-non_shared'
  29953. - ;;
  29954. -
  29955. - newsos6)
  29956. - lt_prog_compiler_pic_GCJ='-KPIC'
  29957. - lt_prog_compiler_static_GCJ='-Bstatic'
  29958. - ;;
  29959. -
  29960. - linux* | k*bsd*-gnu)
  29961. - case $cc_basename in
  29962. - icc* | ecc*)
  29963. - lt_prog_compiler_wl_GCJ='-Wl,'
  29964. - lt_prog_compiler_pic_GCJ='-KPIC'
  29965. - lt_prog_compiler_static_GCJ='-static'
  29966. - ;;
  29967. - pgcc* | pgf77* | pgf90* | pgf95*)
  29968. - # Portland Group compilers (*not* the Pentium gcc compiler,
  29969. - # which looks to be a dead project)
  29970. - lt_prog_compiler_wl_GCJ='-Wl,'
  29971. - lt_prog_compiler_pic_GCJ='-fpic'
  29972. - lt_prog_compiler_static_GCJ='-Bstatic'
  29973. - ;;
  29974. - ccc*)
  29975. - lt_prog_compiler_wl_GCJ='-Wl,'
  29976. - # All Alpha code is PIC.
  29977. - lt_prog_compiler_static_GCJ='-non_shared'
  29978. - ;;
  29979. - *)
  29980. - case `$CC -V 2>&1 | sed 5q` in
  29981. - *Sun\ C*)
  29982. - # Sun C 5.9
  29983. - lt_prog_compiler_pic_GCJ='-KPIC'
  29984. - lt_prog_compiler_static_GCJ='-Bstatic'
  29985. - lt_prog_compiler_wl_GCJ='-Wl,'
  29986. - ;;
  29987. - *Sun\ F*)
  29988. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  29989. - lt_prog_compiler_pic_GCJ='-KPIC'
  29990. - lt_prog_compiler_static_GCJ='-Bstatic'
  29991. - lt_prog_compiler_wl_GCJ=''
  29992. - ;;
  29993. - esac
  29994. - ;;
  29995. - esac
  29996. - ;;
  29997. -
  29998. - osf3* | osf4* | osf5*)
  29999. - lt_prog_compiler_wl_GCJ='-Wl,'
  30000. - # All OSF/1 code is PIC.
  30001. - lt_prog_compiler_static_GCJ='-non_shared'
  30002. - ;;
  30003. -
  30004. - rdos*)
  30005. - lt_prog_compiler_static_GCJ='-non_shared'
  30006. - ;;
  30007. -
  30008. - solaris*)
  30009. - lt_prog_compiler_pic_GCJ='-KPIC'
  30010. - lt_prog_compiler_static_GCJ='-Bstatic'
  30011. - case $cc_basename in
  30012. - f77* | f90* | f95*)
  30013. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  30014. - *)
  30015. - lt_prog_compiler_wl_GCJ='-Wl,';;
  30016. - esac
  30017. - ;;
  30018. -
  30019. - sunos4*)
  30020. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  30021. - lt_prog_compiler_pic_GCJ='-PIC'
  30022. - lt_prog_compiler_static_GCJ='-Bstatic'
  30023. - ;;
  30024. -
  30025. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30026. - lt_prog_compiler_wl_GCJ='-Wl,'
  30027. - lt_prog_compiler_pic_GCJ='-KPIC'
  30028. - lt_prog_compiler_static_GCJ='-Bstatic'
  30029. - ;;
  30030. -
  30031. - sysv4*MP*)
  30032. - if test -d /usr/nec ;then
  30033. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  30034. - lt_prog_compiler_static_GCJ='-Bstatic'
  30035. - fi
  30036. - ;;
  30037. -
  30038. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30039. - lt_prog_compiler_wl_GCJ='-Wl,'
  30040. - lt_prog_compiler_pic_GCJ='-KPIC'
  30041. - lt_prog_compiler_static_GCJ='-Bstatic'
  30042. - ;;
  30043. -
  30044. - unicos*)
  30045. - lt_prog_compiler_wl_GCJ='-Wl,'
  30046. - lt_prog_compiler_can_build_shared_GCJ=no
  30047. - ;;
  30048. -
  30049. - uts4*)
  30050. - lt_prog_compiler_pic_GCJ='-pic'
  30051. - lt_prog_compiler_static_GCJ='-Bstatic'
  30052. - ;;
  30053. -
  30054. - *)
  30055. - lt_prog_compiler_can_build_shared_GCJ=no
  30056. - ;;
  30057. - esac
  30058. - fi
  30059. -
  30060. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  30061. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  30062. -
  30063. -#
  30064. -# Check to make sure the PIC flag actually works.
  30065. -#
  30066. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  30067. -
  30068. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  30069. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  30070. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  30071. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30072. -else
  30073. - lt_cv_prog_compiler_pic_works_GCJ=no
  30074. - ac_outfile=conftest.$ac_objext
  30075. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30076. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  30077. - # Insert the option either (1) after the last *FLAGS variable, or
  30078. - # (2) before a word containing "conftest.", or (3) at the end.
  30079. - # Note that $ac_compile itself does not contain backslashes and begins
  30080. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30081. - # The option is referenced via a variable to avoid confusing sed.
  30082. - lt_compile=`echo "$ac_compile" | $SED \
  30083. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30084. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30085. - -e 's:$: $lt_compiler_flag:'`
  30086. - (eval echo "\"\$as_me:17026: $lt_compile\"" >&5)
  30087. - (eval "$lt_compile" 2>conftest.err)
  30088. - ac_status=$?
  30089. - cat conftest.err >&5
  30090. - echo "$as_me:17030: \$? = $ac_status" >&5
  30091. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30092. - # The compiler can only warn and ignore the option if not recognized
  30093. - # So say no if there are warnings other than the usual output.
  30094. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30095. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30096. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30097. - lt_cv_prog_compiler_pic_works_GCJ=yes
  30098. - fi
  30099. - fi
  30100. - $rm conftest*
  30101. -
  30102. -fi
  30103. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  30104. -echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  30105. -
  30106. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  30107. - case $lt_prog_compiler_pic_GCJ in
  30108. - "" | " "*) ;;
  30109. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  30110. - esac
  30111. -else
  30112. - lt_prog_compiler_pic_GCJ=
  30113. - lt_prog_compiler_can_build_shared_GCJ=no
  30114. -fi
  30115. -
  30116. -fi
  30117. -case $host_os in
  30118. - # For platforms which do not support PIC, -DPIC is meaningless:
  30119. - *djgpp*)
  30120. - lt_prog_compiler_pic_GCJ=
  30121. - ;;
  30122. - *)
  30123. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  30124. - ;;
  30125. -esac
  30126. -
  30127. -#
  30128. -# Check to make sure the static flag actually works.
  30129. -#
  30130. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  30131. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30132. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  30133. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  30134. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30135. -else
  30136. - lt_cv_prog_compiler_static_works_GCJ=no
  30137. - save_LDFLAGS="$LDFLAGS"
  30138. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30139. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30140. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30141. - # The linker can only warn and ignore the option if not recognized
  30142. - # So say no if there are warnings
  30143. - if test -s conftest.err; then
  30144. - # Append any errors to the config.log.
  30145. - cat conftest.err 1>&5
  30146. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30147. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30148. - if diff conftest.exp conftest.er2 >/dev/null; then
  30149. - lt_cv_prog_compiler_static_works_GCJ=yes
  30150. - fi
  30151. - else
  30152. - lt_cv_prog_compiler_static_works_GCJ=yes
  30153. - fi
  30154. - fi
  30155. - $rm -r conftest*
  30156. - LDFLAGS="$save_LDFLAGS"
  30157. -
  30158. -fi
  30159. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  30160. -echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  30161. -
  30162. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  30163. - :
  30164. -else
  30165. - lt_prog_compiler_static_GCJ=
  30166. -fi
  30167. -
  30168. -
  30169. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30170. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  30171. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  30172. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30173. -else
  30174. - lt_cv_prog_compiler_c_o_GCJ=no
  30175. - $rm -r conftest 2>/dev/null
  30176. - mkdir conftest
  30177. - cd conftest
  30178. - mkdir out
  30179. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30180. -
  30181. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30182. - # Insert the option either (1) after the last *FLAGS variable, or
  30183. - # (2) before a word containing "conftest.", or (3) at the end.
  30184. - # Note that $ac_compile itself does not contain backslashes and begins
  30185. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30186. - lt_compile=`echo "$ac_compile" | $SED \
  30187. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30188. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30189. - -e 's:$: $lt_compiler_flag:'`
  30190. - (eval echo "\"\$as_me:17130: $lt_compile\"" >&5)
  30191. - (eval "$lt_compile" 2>out/conftest.err)
  30192. - ac_status=$?
  30193. - cat out/conftest.err >&5
  30194. - echo "$as_me:17134: \$? = $ac_status" >&5
  30195. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30196. - then
  30197. - # The compiler can only warn and ignore the option if not recognized
  30198. - # So say no if there are warnings
  30199. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30200. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30201. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30202. - lt_cv_prog_compiler_c_o_GCJ=yes
  30203. - fi
  30204. - fi
  30205. - chmod u+w . 2>&5
  30206. - $rm conftest*
  30207. - # SGI C++ compiler will create directory out/ii_files/ for
  30208. - # template instantiation
  30209. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30210. - $rm out/* && rmdir out
  30211. - cd ..
  30212. - rmdir conftest
  30213. - $rm conftest*
  30214. -
  30215. -fi
  30216. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  30217. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  30218. -
  30219. -
  30220. -hard_links="nottested"
  30221. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  30222. - # do not overwrite the value of need_locks provided by the user
  30223. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30224. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  30225. - hard_links=yes
  30226. - $rm conftest*
  30227. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30228. - touch conftest.a
  30229. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30230. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30231. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  30232. -echo "${ECHO_T}$hard_links" >&6; }
  30233. - if test "$hard_links" = no; then
  30234. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30235. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30236. - need_locks=warn
  30237. - fi
  30238. -else
  30239. - need_locks=no
  30240. -fi
  30241. -
  30242. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30243. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  30244. -
  30245. - runpath_var=
  30246. - allow_undefined_flag_GCJ=
  30247. - enable_shared_with_static_runtimes_GCJ=no
  30248. - archive_cmds_GCJ=
  30249. - archive_expsym_cmds_GCJ=
  30250. - old_archive_From_new_cmds_GCJ=
  30251. - old_archive_from_expsyms_cmds_GCJ=
  30252. - export_dynamic_flag_spec_GCJ=
  30253. - whole_archive_flag_spec_GCJ=
  30254. - thread_safe_flag_spec_GCJ=
  30255. - hardcode_libdir_flag_spec_GCJ=
  30256. - hardcode_libdir_flag_spec_ld_GCJ=
  30257. - hardcode_libdir_separator_GCJ=
  30258. - hardcode_direct_GCJ=no
  30259. - hardcode_minus_L_GCJ=no
  30260. - hardcode_shlibpath_var_GCJ=unsupported
  30261. - link_all_deplibs_GCJ=unknown
  30262. - hardcode_automatic_GCJ=no
  30263. - module_cmds_GCJ=
  30264. - module_expsym_cmds_GCJ=
  30265. - always_export_symbols_GCJ=no
  30266. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30267. - # include_expsyms should be a list of space-separated symbols to be *always*
  30268. - # included in the symbol list
  30269. - include_expsyms_GCJ=
  30270. - # exclude_expsyms can be an extended regexp of symbols to exclude
  30271. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30272. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30273. - # as well as any symbol that contains `d'.
  30274. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30275. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30276. - # platforms (ab)use it in PIC code, but their linkers get confused if
  30277. - # the symbol is explicitly referenced. Since portable code cannot
  30278. - # rely on this symbol name, it's probably fine to never include it in
  30279. - # preloaded symbol tables.
  30280. - # Exclude shared library initialization/finalization symbols.
  30281. - extract_expsyms_cmds=
  30282. - # Just being paranoid about ensuring that cc_basename is set.
  30283. - for cc_temp in $compiler""; do
  30284. - case $cc_temp in
  30285. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30286. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30287. - \-*) ;;
  30288. - *) break;;
  30289. - esac
  30290. -done
  30291. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30292. -
  30293. - case $host_os in
  30294. - cygwin* | mingw* | pw32*)
  30295. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30296. - # When not using gcc, we currently assume that we are using
  30297. - # Microsoft Visual C++.
  30298. - if test "$GCC" != yes; then
  30299. - with_gnu_ld=no
  30300. - fi
  30301. - ;;
  30302. - interix*)
  30303. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  30304. - with_gnu_ld=yes
  30305. - ;;
  30306. - openbsd*)
  30307. - with_gnu_ld=no
  30308. - ;;
  30309. - esac
  30310. -
  30311. - ld_shlibs_GCJ=yes
  30312. - if test "$with_gnu_ld" = yes; then
  30313. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30314. - wlarc='${wl}'
  30315. -
  30316. - # Set some defaults for GNU ld with shared library support. These
  30317. - # are reset later if shared libraries are not supported. Putting them
  30318. - # here allows them to be overridden if necessary.
  30319. - runpath_var=LD_RUN_PATH
  30320. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  30321. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  30322. - # ancient GNU ld didn't support --whole-archive et. al.
  30323. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  30324. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30325. - else
  30326. - whole_archive_flag_spec_GCJ=
  30327. - fi
  30328. - supports_anon_versioning=no
  30329. - case `$LD -v 2>/dev/null` in
  30330. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30331. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30332. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30333. - *\ 2.11.*) ;; # other 2.11 versions
  30334. - *) supports_anon_versioning=yes ;;
  30335. - esac
  30336. -
  30337. - # See if GNU ld supports shared libraries.
  30338. - case $host_os in
  30339. - aix[3-9]*)
  30340. - # On AIX/PPC, the GNU linker is very broken
  30341. - if test "$host_cpu" != ia64; then
  30342. - ld_shlibs_GCJ=no
  30343. - cat <<EOF 1>&2
  30344. -
  30345. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30346. -*** to be unable to reliably create shared libraries on AIX.
  30347. -*** Therefore, libtool is disabling shared libraries support. If you
  30348. -*** really care for shared libraries, you may want to modify your PATH
  30349. -*** so that a non-GNU linker is found, and then restart.
  30350. -
  30351. -EOF
  30352. - fi
  30353. - ;;
  30354. -
  30355. - amigaos*)
  30356. - 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)'
  30357. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30358. - hardcode_minus_L_GCJ=yes
  30359. -
  30360. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  30361. - # that the semantics of dynamic libraries on AmigaOS, at least up
  30362. - # to version 4, is to share data among multiple programs linked
  30363. - # with the same dynamic library. Since this doesn't match the
  30364. - # behavior of shared libraries on other platforms, we can't use
  30365. - # them.
  30366. - ld_shlibs_GCJ=no
  30367. - ;;
  30368. -
  30369. - beos*)
  30370. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30371. - allow_undefined_flag_GCJ=unsupported
  30372. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30373. - # support --undefined. This deserves some investigation. FIXME
  30374. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30375. - else
  30376. - ld_shlibs_GCJ=no
  30377. - fi
  30378. - ;;
  30379. -
  30380. - cygwin* | mingw* | pw32*)
  30381. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  30382. - # as there is no search path for DLLs.
  30383. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30384. - allow_undefined_flag_GCJ=unsupported
  30385. - always_export_symbols_GCJ=no
  30386. - enable_shared_with_static_runtimes_GCJ=yes
  30387. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  30388. -
  30389. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30390. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30391. - # If the export-symbols file already is a .def file (1st line
  30392. - # is EXPORTS), use it as is; otherwise, prepend...
  30393. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30394. - cp $export_symbols $output_objdir/$soname.def;
  30395. - else
  30396. - echo EXPORTS > $output_objdir/$soname.def;
  30397. - cat $export_symbols >> $output_objdir/$soname.def;
  30398. - fi~
  30399. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30400. - else
  30401. - ld_shlibs_GCJ=no
  30402. - fi
  30403. - ;;
  30404. -
  30405. - interix[3-9]*)
  30406. - hardcode_direct_GCJ=no
  30407. - hardcode_shlibpath_var_GCJ=no
  30408. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  30409. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30410. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30411. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  30412. - # default) and relocated if they conflict, which is a slow very memory
  30413. - # consuming and fragmenting process. To avoid this, we pick a random,
  30414. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30415. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30416. - 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'
  30417. - 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'
  30418. - ;;
  30419. -
  30420. - gnu* | linux* | k*bsd*-gnu)
  30421. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30422. - tmp_addflag=
  30423. - case $cc_basename,$host_cpu in
  30424. - pgcc*) # Portland Group C compiler
  30425. - 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'
  30426. - tmp_addflag=' $pic_flag'
  30427. - ;;
  30428. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  30429. - 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'
  30430. - tmp_addflag=' $pic_flag -Mnomain' ;;
  30431. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  30432. - tmp_addflag=' -i_dynamic' ;;
  30433. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  30434. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  30435. - ifc* | ifort*) # Intel Fortran compiler
  30436. - tmp_addflag=' -nofor_main' ;;
  30437. - esac
  30438. - case `$CC -V 2>&1 | sed 5q` in
  30439. - *Sun\ C*) # Sun C 5.9
  30440. - 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'
  30441. - tmp_sharedflag='-G' ;;
  30442. - *Sun\ F*) # Sun Fortran 8.3
  30443. - tmp_sharedflag='-G' ;;
  30444. - *)
  30445. - tmp_sharedflag='-shared' ;;
  30446. - esac
  30447. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30448. -
  30449. - if test $supports_anon_versioning = yes; then
  30450. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  30451. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30452. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  30453. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30454. - fi
  30455. - link_all_deplibs_GCJ=no
  30456. - else
  30457. - ld_shlibs_GCJ=no
  30458. - fi
  30459. - ;;
  30460. -
  30461. - netbsd* | netbsdelf*-gnu)
  30462. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30463. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30464. - wlarc=
  30465. - else
  30466. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30467. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30468. - fi
  30469. - ;;
  30470. -
  30471. - solaris*)
  30472. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30473. - ld_shlibs_GCJ=no
  30474. - cat <<EOF 1>&2
  30475. -
  30476. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30477. -*** create shared libraries on Solaris systems. Therefore, libtool
  30478. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30479. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30480. -*** your PATH or compiler configuration so that the native linker is
  30481. -*** used, and then restart.
  30482. -
  30483. -EOF
  30484. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30485. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30486. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30487. - else
  30488. - ld_shlibs_GCJ=no
  30489. - fi
  30490. - ;;
  30491. -
  30492. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30493. - case `$LD -v 2>&1` in
  30494. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30495. - ld_shlibs_GCJ=no
  30496. - cat <<_LT_EOF 1>&2
  30497. -
  30498. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30499. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  30500. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30501. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30502. -*** your PATH or compiler configuration so that the native linker is
  30503. -*** used, and then restart.
  30504. -
  30505. -_LT_EOF
  30506. - ;;
  30507. - *)
  30508. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30509. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30510. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30511. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30512. - else
  30513. - ld_shlibs_GCJ=no
  30514. - fi
  30515. - ;;
  30516. - esac
  30517. - ;;
  30518. -
  30519. - sunos4*)
  30520. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30521. - wlarc=
  30522. - hardcode_direct_GCJ=yes
  30523. - hardcode_shlibpath_var_GCJ=no
  30524. - ;;
  30525. -
  30526. - *)
  30527. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30528. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30529. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30530. - else
  30531. - ld_shlibs_GCJ=no
  30532. - fi
  30533. - ;;
  30534. - esac
  30535. -
  30536. - if test "$ld_shlibs_GCJ" = no; then
  30537. - runpath_var=
  30538. - hardcode_libdir_flag_spec_GCJ=
  30539. - export_dynamic_flag_spec_GCJ=
  30540. - whole_archive_flag_spec_GCJ=
  30541. - fi
  30542. - else
  30543. - # PORTME fill in a description of your system's linker (not GNU ld)
  30544. - case $host_os in
  30545. - aix3*)
  30546. - allow_undefined_flag_GCJ=unsupported
  30547. - always_export_symbols_GCJ=yes
  30548. - 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'
  30549. - # Note: this linker hardcodes the directories in LIBPATH if there
  30550. - # are no directories specified by -L.
  30551. - hardcode_minus_L_GCJ=yes
  30552. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30553. - # Neither direct hardcoding nor static linking is supported with a
  30554. - # broken collect2.
  30555. - hardcode_direct_GCJ=unsupported
  30556. - fi
  30557. - ;;
  30558. -
  30559. - aix[4-9]*)
  30560. - if test "$host_cpu" = ia64; then
  30561. - # On IA64, the linker does run time linking by default, so we don't
  30562. - # have to do anything special.
  30563. - aix_use_runtimelinking=no
  30564. - exp_sym_flag='-Bexport'
  30565. - no_entry_flag=""
  30566. - else
  30567. - # If we're using GNU nm, then we don't want the "-C" option.
  30568. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30569. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30570. - 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'
  30571. - else
  30572. - 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'
  30573. - fi
  30574. - aix_use_runtimelinking=no
  30575. -
  30576. - # Test if we are trying to use run time linking or normal
  30577. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30578. - # need to do runtime linking.
  30579. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  30580. - for ld_flag in $LDFLAGS; do
  30581. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30582. - aix_use_runtimelinking=yes
  30583. - break
  30584. - fi
  30585. - done
  30586. - ;;
  30587. - esac
  30588. -
  30589. - exp_sym_flag='-bexport'
  30590. - no_entry_flag='-bnoentry'
  30591. - fi
  30592. -
  30593. - # When large executables or shared objects are built, AIX ld can
  30594. - # have problems creating the table of contents. If linking a library
  30595. - # or program results in "error TOC overflow" add -mminimal-toc to
  30596. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30597. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30598. -
  30599. - archive_cmds_GCJ=''
  30600. - hardcode_direct_GCJ=yes
  30601. - hardcode_libdir_separator_GCJ=':'
  30602. - link_all_deplibs_GCJ=yes
  30603. -
  30604. - if test "$GCC" = yes; then
  30605. - case $host_os in aix4.[012]|aix4.[012].*)
  30606. - # We only want to do this on AIX 4.2 and lower, the check
  30607. - # below for broken collect2 doesn't work under 4.3+
  30608. - collect2name=`${CC} -print-prog-name=collect2`
  30609. - if test -f "$collect2name" && \
  30610. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  30611. - then
  30612. - # We have reworked collect2
  30613. - :
  30614. - else
  30615. - # We have old collect2
  30616. - hardcode_direct_GCJ=unsupported
  30617. - # It fails to find uninstalled libraries when the uninstalled
  30618. - # path is not listed in the libpath. Setting hardcode_minus_L
  30619. - # to unsupported forces relinking
  30620. - hardcode_minus_L_GCJ=yes
  30621. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30622. - hardcode_libdir_separator_GCJ=
  30623. - fi
  30624. - ;;
  30625. - esac
  30626. - shared_flag='-shared'
  30627. - if test "$aix_use_runtimelinking" = yes; then
  30628. - shared_flag="$shared_flag "'${wl}-G'
  30629. - fi
  30630. - else
  30631. - # not using gcc
  30632. - if test "$host_cpu" = ia64; then
  30633. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30634. - # chokes on -Wl,-G. The following line is correct:
  30635. - shared_flag='-G'
  30636. - else
  30637. - if test "$aix_use_runtimelinking" = yes; then
  30638. - shared_flag='${wl}-G'
  30639. - else
  30640. - shared_flag='${wl}-bM:SRE'
  30641. - fi
  30642. - fi
  30643. - fi
  30644. -
  30645. - # It seems that -bexpall does not export symbols beginning with
  30646. - # underscore (_), so it is better to generate a list of symbols to export.
  30647. - always_export_symbols_GCJ=yes
  30648. - if test "$aix_use_runtimelinking" = yes; then
  30649. - # Warning - without using the other runtime loading flags (-brtl),
  30650. - # -berok will link without error, but may produce a broken library.
  30651. - allow_undefined_flag_GCJ='-berok'
  30652. - # Determine the default libpath from the value encoded in an empty executable.
  30653. - cat >conftest.$ac_ext <<_ACEOF
  30654. -/* confdefs.h. */
  30655. -_ACEOF
  30656. -cat confdefs.h >>conftest.$ac_ext
  30657. -cat >>conftest.$ac_ext <<_ACEOF
  30658. -/* end confdefs.h. */
  30659. -
  30660. -int
  30661. -main ()
  30662. -{
  30663. -
  30664. - ;
  30665. - return 0;
  30666. -}
  30667. -_ACEOF
  30668. -rm -f conftest.$ac_objext conftest$ac_exeext
  30669. -if { (ac_try="$ac_link"
  30670. -case "(($ac_try" in
  30671. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30672. - *) ac_try_echo=$ac_try;;
  30673. -esac
  30674. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30675. - (eval "$ac_link") 2>conftest.er1
  30676. - ac_status=$?
  30677. - grep -v '^ *+' conftest.er1 >conftest.err
  30678. - rm -f conftest.er1
  30679. - cat conftest.err >&5
  30680. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30681. - (exit $ac_status); } && {
  30682. - test -z "$ac_c_werror_flag" ||
  30683. - test ! -s conftest.err
  30684. - } && test -s conftest$ac_exeext &&
  30685. - $as_test_x conftest$ac_exeext; then
  30686. -
  30687. -lt_aix_libpath_sed='
  30688. - /Import File Strings/,/^$/ {
  30689. - /^0/ {
  30690. - s/^0 *\(.*\)$/\1/
  30691. - p
  30692. - }
  30693. - }'
  30694. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30695. -# Check for a 64-bit object if we didn't find anything.
  30696. -if test -z "$aix_libpath"; then
  30697. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30698. -fi
  30699. -else
  30700. - echo "$as_me: failed program was:" >&5
  30701. -sed 's/^/| /' conftest.$ac_ext >&5
  30702. -
  30703. -
  30704. -fi
  30705. -
  30706. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30707. - conftest$ac_exeext conftest.$ac_ext
  30708. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30709. -
  30710. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30711. - 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"
  30712. - else
  30713. - if test "$host_cpu" = ia64; then
  30714. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  30715. - allow_undefined_flag_GCJ="-z nodefs"
  30716. - 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"
  30717. - else
  30718. - # Determine the default libpath from the value encoded in an empty executable.
  30719. - cat >conftest.$ac_ext <<_ACEOF
  30720. -/* confdefs.h. */
  30721. -_ACEOF
  30722. -cat confdefs.h >>conftest.$ac_ext
  30723. -cat >>conftest.$ac_ext <<_ACEOF
  30724. -/* end confdefs.h. */
  30725. -
  30726. -int
  30727. -main ()
  30728. -{
  30729. -
  30730. - ;
  30731. - return 0;
  30732. -}
  30733. -_ACEOF
  30734. -rm -f conftest.$ac_objext conftest$ac_exeext
  30735. -if { (ac_try="$ac_link"
  30736. -case "(($ac_try" in
  30737. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30738. - *) ac_try_echo=$ac_try;;
  30739. -esac
  30740. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30741. - (eval "$ac_link") 2>conftest.er1
  30742. - ac_status=$?
  30743. - grep -v '^ *+' conftest.er1 >conftest.err
  30744. - rm -f conftest.er1
  30745. - cat conftest.err >&5
  30746. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30747. - (exit $ac_status); } && {
  30748. - test -z "$ac_c_werror_flag" ||
  30749. - test ! -s conftest.err
  30750. - } && test -s conftest$ac_exeext &&
  30751. - $as_test_x conftest$ac_exeext; then
  30752. -
  30753. -lt_aix_libpath_sed='
  30754. - /Import File Strings/,/^$/ {
  30755. - /^0/ {
  30756. - s/^0 *\(.*\)$/\1/
  30757. - p
  30758. - }
  30759. - }'
  30760. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30761. -# Check for a 64-bit object if we didn't find anything.
  30762. -if test -z "$aix_libpath"; then
  30763. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  30764. -fi
  30765. -else
  30766. - echo "$as_me: failed program was:" >&5
  30767. -sed 's/^/| /' conftest.$ac_ext >&5
  30768. -
  30769. -
  30770. -fi
  30771. -
  30772. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30773. - conftest$ac_exeext conftest.$ac_ext
  30774. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30775. -
  30776. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30777. - # Warning - without using the other run time loading flags,
  30778. - # -berok will link without error, but may produce a broken library.
  30779. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  30780. - allow_undefined_flag_GCJ=' ${wl}-berok'
  30781. - # Exported symbols can be pulled into shared objects from archives
  30782. - whole_archive_flag_spec_GCJ='$convenience'
  30783. - archive_cmds_need_lc_GCJ=yes
  30784. - # This is similar to how AIX traditionally builds its shared libraries.
  30785. - 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'
  30786. - fi
  30787. - fi
  30788. - ;;
  30789. -
  30790. - amigaos*)
  30791. - 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)'
  30792. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30793. - hardcode_minus_L_GCJ=yes
  30794. - # see comment about different semantics on the GNU ld section
  30795. - ld_shlibs_GCJ=no
  30796. - ;;
  30797. -
  30798. - bsdi[45]*)
  30799. - export_dynamic_flag_spec_GCJ=-rdynamic
  30800. - ;;
  30801. -
  30802. - cygwin* | mingw* | pw32*)
  30803. - # When not using gcc, we currently assume that we are using
  30804. - # Microsoft Visual C++.
  30805. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  30806. - # no search path for DLLs.
  30807. - hardcode_libdir_flag_spec_GCJ=' '
  30808. - allow_undefined_flag_GCJ=unsupported
  30809. - # Tell ltmain to make .lib files, not .a files.
  30810. - libext=lib
  30811. - # Tell ltmain to make .dll files, not .so files.
  30812. - shrext_cmds=".dll"
  30813. - # FIXME: Setting linknames here is a bad hack.
  30814. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  30815. - # The linker will automatically build a .lib file if we build a DLL.
  30816. - old_archive_From_new_cmds_GCJ='true'
  30817. - # FIXME: Should let the user specify the lib program.
  30818. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  30819. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  30820. - enable_shared_with_static_runtimes_GCJ=yes
  30821. - ;;
  30822. -
  30823. - darwin* | rhapsody*)
  30824. - case $host_os in
  30825. - rhapsody* | darwin1.[012])
  30826. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  30827. - ;;
  30828. - *) # Darwin 1.3 on
  30829. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30830. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30831. - else
  30832. - case ${MACOSX_DEPLOYMENT_TARGET} in
  30833. - 10.[012])
  30834. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30835. - ;;
  30836. - 10.*)
  30837. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  30838. - ;;
  30839. - esac
  30840. - fi
  30841. - ;;
  30842. - esac
  30843. - archive_cmds_need_lc_GCJ=no
  30844. - hardcode_direct_GCJ=no
  30845. - hardcode_automatic_GCJ=yes
  30846. - hardcode_shlibpath_var_GCJ=unsupported
  30847. - whole_archive_flag_spec_GCJ=''
  30848. - link_all_deplibs_GCJ=yes
  30849. - if test "$GCC" = yes ; then
  30850. - output_verbose_link_cmd='echo'
  30851. - 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}"
  30852. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  30853. - 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}"
  30854. - 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}"
  30855. - else
  30856. - case $cc_basename in
  30857. - xlc*)
  30858. - output_verbose_link_cmd='echo'
  30859. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  30860. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30861. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30862. - 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}'
  30863. - 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}'
  30864. - ;;
  30865. - *)
  30866. - ld_shlibs_GCJ=no
  30867. - ;;
  30868. - esac
  30869. - fi
  30870. - ;;
  30871. -
  30872. - dgux*)
  30873. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30874. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30875. - hardcode_shlibpath_var_GCJ=no
  30876. - ;;
  30877. -
  30878. - freebsd1*)
  30879. - ld_shlibs_GCJ=no
  30880. - ;;
  30881. -
  30882. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  30883. - # support. Future versions do this automatically, but an explicit c++rt0.o
  30884. - # does not break anything, and helps significantly (at the cost of a little
  30885. - # extra space).
  30886. - freebsd2.2*)
  30887. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  30888. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30889. - hardcode_direct_GCJ=yes
  30890. - hardcode_shlibpath_var_GCJ=no
  30891. - ;;
  30892. -
  30893. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  30894. - freebsd2*)
  30895. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30896. - hardcode_direct_GCJ=yes
  30897. - hardcode_minus_L_GCJ=yes
  30898. - hardcode_shlibpath_var_GCJ=no
  30899. - ;;
  30900. -
  30901. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  30902. - freebsd* | dragonfly*)
  30903. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  30904. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30905. - hardcode_direct_GCJ=yes
  30906. - hardcode_shlibpath_var_GCJ=no
  30907. - ;;
  30908. -
  30909. - hpux9*)
  30910. - if test "$GCC" = yes; then
  30911. - 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'
  30912. - else
  30913. - 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'
  30914. - fi
  30915. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30916. - hardcode_libdir_separator_GCJ=:
  30917. - hardcode_direct_GCJ=yes
  30918. -
  30919. - # hardcode_minus_L: Not really in the search PATH,
  30920. - # but as the default location of the library.
  30921. - hardcode_minus_L_GCJ=yes
  30922. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30923. - ;;
  30924. -
  30925. - hpux10*)
  30926. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30927. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30928. - else
  30929. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  30930. - fi
  30931. - if test "$with_gnu_ld" = no; then
  30932. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30933. - hardcode_libdir_separator_GCJ=:
  30934. -
  30935. - hardcode_direct_GCJ=yes
  30936. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30937. -
  30938. - # hardcode_minus_L: Not really in the search PATH,
  30939. - # but as the default location of the library.
  30940. - hardcode_minus_L_GCJ=yes
  30941. - fi
  30942. - ;;
  30943. -
  30944. - hpux11*)
  30945. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30946. - case $host_cpu in
  30947. - hppa*64*)
  30948. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30949. - ;;
  30950. - ia64*)
  30951. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30952. - ;;
  30953. - *)
  30954. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30955. - ;;
  30956. - esac
  30957. - else
  30958. - case $host_cpu in
  30959. - hppa*64*)
  30960. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30961. - ;;
  30962. - ia64*)
  30963. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30964. - ;;
  30965. - *)
  30966. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30967. - ;;
  30968. - esac
  30969. - fi
  30970. - if test "$with_gnu_ld" = no; then
  30971. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30972. - hardcode_libdir_separator_GCJ=:
  30973. -
  30974. - case $host_cpu in
  30975. - hppa*64*|ia64*)
  30976. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  30977. - hardcode_direct_GCJ=no
  30978. - hardcode_shlibpath_var_GCJ=no
  30979. - ;;
  30980. - *)
  30981. - hardcode_direct_GCJ=yes
  30982. - export_dynamic_flag_spec_GCJ='${wl}-E'
  30983. -
  30984. - # hardcode_minus_L: Not really in the search PATH,
  30985. - # but as the default location of the library.
  30986. - hardcode_minus_L_GCJ=yes
  30987. - ;;
  30988. - esac
  30989. - fi
  30990. - ;;
  30991. -
  30992. - irix5* | irix6* | nonstopux*)
  30993. - if test "$GCC" = yes; then
  30994. - 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'
  30995. - else
  30996. - 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'
  30997. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  30998. - fi
  30999. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31000. - hardcode_libdir_separator_GCJ=:
  31001. - link_all_deplibs_GCJ=yes
  31002. - ;;
  31003. -
  31004. - netbsd* | netbsdelf*-gnu)
  31005. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31006. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31007. - else
  31008. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31009. - fi
  31010. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31011. - hardcode_direct_GCJ=yes
  31012. - hardcode_shlibpath_var_GCJ=no
  31013. - ;;
  31014. -
  31015. - newsos6)
  31016. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31017. - hardcode_direct_GCJ=yes
  31018. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31019. - hardcode_libdir_separator_GCJ=:
  31020. - hardcode_shlibpath_var_GCJ=no
  31021. - ;;
  31022. -
  31023. - openbsd*)
  31024. - if test -f /usr/libexec/ld.so; then
  31025. - hardcode_direct_GCJ=yes
  31026. - hardcode_shlibpath_var_GCJ=no
  31027. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31028. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31029. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31030. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  31031. - export_dynamic_flag_spec_GCJ='${wl}-E'
  31032. - else
  31033. - case $host_os in
  31034. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31035. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31036. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31037. - ;;
  31038. - *)
  31039. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31040. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  31041. - ;;
  31042. - esac
  31043. - fi
  31044. - else
  31045. - ld_shlibs_GCJ=no
  31046. - fi
  31047. - ;;
  31048. -
  31049. - os2*)
  31050. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31051. - hardcode_minus_L_GCJ=yes
  31052. - allow_undefined_flag_GCJ=unsupported
  31053. - 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'
  31054. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31055. - ;;
  31056. -
  31057. - osf3*)
  31058. - if test "$GCC" = yes; then
  31059. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  31060. - 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'
  31061. - else
  31062. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  31063. - 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'
  31064. - fi
  31065. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31066. - hardcode_libdir_separator_GCJ=:
  31067. - ;;
  31068. -
  31069. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  31070. - if test "$GCC" = yes; then
  31071. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  31072. - 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'
  31073. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31074. - else
  31075. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  31076. - 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'
  31077. - 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~
  31078. - $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'
  31079. -
  31080. - # Both c and cxx compiler support -rpath directly
  31081. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  31082. - fi
  31083. - hardcode_libdir_separator_GCJ=:
  31084. - ;;
  31085. -
  31086. - solaris*)
  31087. - no_undefined_flag_GCJ=' -z text'
  31088. - if test "$GCC" = yes; then
  31089. - wlarc='${wl}'
  31090. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31091. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31092. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31093. - else
  31094. - wlarc=''
  31095. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31096. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31097. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31098. - fi
  31099. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31100. - hardcode_shlibpath_var_GCJ=no
  31101. - case $host_os in
  31102. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31103. - *)
  31104. - # The compiler driver will combine and reorder linker options,
  31105. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  31106. - # but is careful enough not to reorder.
  31107. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31108. - if test "$GCC" = yes; then
  31109. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  31110. - else
  31111. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  31112. - fi
  31113. - ;;
  31114. - esac
  31115. - link_all_deplibs_GCJ=yes
  31116. - ;;
  31117. -
  31118. - sunos4*)
  31119. - if test "x$host_vendor" = xsequent; then
  31120. - # Use $CC to link under sequent, because it throws in some extra .o
  31121. - # files that make .init and .fini sections work.
  31122. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31123. - else
  31124. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31125. - fi
  31126. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31127. - hardcode_direct_GCJ=yes
  31128. - hardcode_minus_L_GCJ=yes
  31129. - hardcode_shlibpath_var_GCJ=no
  31130. - ;;
  31131. -
  31132. - sysv4)
  31133. - case $host_vendor in
  31134. - sni)
  31135. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31136. - hardcode_direct_GCJ=yes # is this really true???
  31137. - ;;
  31138. - siemens)
  31139. - ## LD is ld it makes a PLAMLIB
  31140. - ## CC just makes a GrossModule.
  31141. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31142. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  31143. - hardcode_direct_GCJ=no
  31144. - ;;
  31145. - motorola)
  31146. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31147. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  31148. - ;;
  31149. - esac
  31150. - runpath_var='LD_RUN_PATH'
  31151. - hardcode_shlibpath_var_GCJ=no
  31152. - ;;
  31153. -
  31154. - sysv4.3*)
  31155. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31156. - hardcode_shlibpath_var_GCJ=no
  31157. - export_dynamic_flag_spec_GCJ='-Bexport'
  31158. - ;;
  31159. -
  31160. - sysv4*MP*)
  31161. - if test -d /usr/nec; then
  31162. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31163. - hardcode_shlibpath_var_GCJ=no
  31164. - runpath_var=LD_RUN_PATH
  31165. - hardcode_runpath_var=yes
  31166. - ld_shlibs_GCJ=yes
  31167. - fi
  31168. - ;;
  31169. -
  31170. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  31171. - no_undefined_flag_GCJ='${wl}-z,text'
  31172. - archive_cmds_need_lc_GCJ=no
  31173. - hardcode_shlibpath_var_GCJ=no
  31174. - runpath_var='LD_RUN_PATH'
  31175. -
  31176. - if test "$GCC" = yes; then
  31177. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31178. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31179. - else
  31180. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31181. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31182. - fi
  31183. - ;;
  31184. -
  31185. - sysv5* | sco3.2v5* | sco5v6*)
  31186. - # Note: We can NOT use -z defs as we might desire, because we do not
  31187. - # link with -lc, and that would cause any symbols used from libc to
  31188. - # always be unresolved, which means just about no library would
  31189. - # ever link correctly. If we're not using GNU ld we use -z text
  31190. - # though, which does catch some bad symbols but isn't as heavy-handed
  31191. - # as -z defs.
  31192. - no_undefined_flag_GCJ='${wl}-z,text'
  31193. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  31194. - archive_cmds_need_lc_GCJ=no
  31195. - hardcode_shlibpath_var_GCJ=no
  31196. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31197. - hardcode_libdir_separator_GCJ=':'
  31198. - link_all_deplibs_GCJ=yes
  31199. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  31200. - runpath_var='LD_RUN_PATH'
  31201. -
  31202. - if test "$GCC" = yes; then
  31203. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31204. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31205. - else
  31206. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31207. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31208. - fi
  31209. - ;;
  31210. -
  31211. - uts4*)
  31212. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31213. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31214. - hardcode_shlibpath_var_GCJ=no
  31215. - ;;
  31216. -
  31217. - *)
  31218. - ld_shlibs_GCJ=no
  31219. - ;;
  31220. - esac
  31221. - fi
  31222. -
  31223. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  31224. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  31225. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  31226. -
  31227. -#
  31228. -# Do we need to explicitly link libc?
  31229. -#
  31230. -case "x$archive_cmds_need_lc_GCJ" in
  31231. -x|xyes)
  31232. - # Assume -lc should be added
  31233. - archive_cmds_need_lc_GCJ=yes
  31234. -
  31235. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31236. - case $archive_cmds_GCJ in
  31237. - *'~'*)
  31238. - # FIXME: we may have to deal with multi-command sequences.
  31239. - ;;
  31240. - '$CC '*)
  31241. - # Test whether the compiler implicitly links with -lc since on some
  31242. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31243. - # to ld, don't add -lc before -lgcc.
  31244. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31245. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  31246. - $rm conftest*
  31247. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  31248. -
  31249. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31250. - (eval $ac_compile) 2>&5
  31251. - ac_status=$?
  31252. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31253. - (exit $ac_status); } 2>conftest.err; then
  31254. - soname=conftest
  31255. - lib=conftest
  31256. - libobjs=conftest.$ac_objext
  31257. - deplibs=
  31258. - wl=$lt_prog_compiler_wl_GCJ
  31259. - pic_flag=$lt_prog_compiler_pic_GCJ
  31260. - compiler_flags=-v
  31261. - linker_flags=-v
  31262. - verstring=
  31263. - output_objdir=.
  31264. - libname=conftest
  31265. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  31266. - allow_undefined_flag_GCJ=
  31267. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31268. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31269. - ac_status=$?
  31270. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31271. - (exit $ac_status); }
  31272. - then
  31273. - archive_cmds_need_lc_GCJ=no
  31274. - else
  31275. - archive_cmds_need_lc_GCJ=yes
  31276. - fi
  31277. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  31278. - else
  31279. - cat conftest.err 1>&5
  31280. - fi
  31281. - $rm conftest*
  31282. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  31283. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  31284. - ;;
  31285. - esac
  31286. - fi
  31287. - ;;
  31288. -esac
  31289. -
  31290. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31291. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  31292. -library_names_spec=
  31293. -libname_spec='lib$name'
  31294. -soname_spec=
  31295. -shrext_cmds=".so"
  31296. -postinstall_cmds=
  31297. -postuninstall_cmds=
  31298. -finish_cmds=
  31299. -finish_eval=
  31300. -shlibpath_var=
  31301. -shlibpath_overrides_runpath=unknown
  31302. -version_type=none
  31303. -dynamic_linker="$host_os ld.so"
  31304. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31305. -
  31306. -need_lib_prefix=unknown
  31307. -hardcode_into_libs=no
  31308. -
  31309. -# when you set need_version to no, make sure it does not cause -set_version
  31310. -# flags to be left without arguments
  31311. -need_version=unknown
  31312. -
  31313. -case $host_os in
  31314. -aix3*)
  31315. - version_type=linux
  31316. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31317. - shlibpath_var=LIBPATH
  31318. -
  31319. - # AIX 3 has no versioning support, so we append a major version to the name.
  31320. - soname_spec='${libname}${release}${shared_ext}$major'
  31321. - ;;
  31322. -
  31323. -aix[4-9]*)
  31324. - version_type=linux
  31325. - need_lib_prefix=no
  31326. - need_version=no
  31327. - hardcode_into_libs=yes
  31328. - if test "$host_cpu" = ia64; then
  31329. - # AIX 5 supports IA64
  31330. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31331. - shlibpath_var=LD_LIBRARY_PATH
  31332. - else
  31333. - # With GCC up to 2.95.x, collect2 would create an import file
  31334. - # for dependence libraries. The import file would start with
  31335. - # the line `#! .'. This would cause the generated library to
  31336. - # depend on `.', always an invalid library. This was fixed in
  31337. - # development snapshots of GCC prior to 3.0.
  31338. - case $host_os in
  31339. - aix4 | aix4.[01] | aix4.[01].*)
  31340. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31341. - echo ' yes '
  31342. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31343. - :
  31344. - else
  31345. - can_build_shared=no
  31346. - fi
  31347. - ;;
  31348. - esac
  31349. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31350. - # soname into executable. Probably we can add versioning support to
  31351. - # collect2, so additional links can be useful in future.
  31352. - if test "$aix_use_runtimelinking" = yes; then
  31353. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31354. - # instead of lib<name>.a to let people know that these are not
  31355. - # typical AIX shared libraries.
  31356. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31357. - else
  31358. - # We preserve .a as extension for shared libraries through AIX4.2
  31359. - # and later when we are not doing run time linking.
  31360. - library_names_spec='${libname}${release}.a $libname.a'
  31361. - soname_spec='${libname}${release}${shared_ext}$major'
  31362. - fi
  31363. - shlibpath_var=LIBPATH
  31364. - fi
  31365. - ;;
  31366. -
  31367. -amigaos*)
  31368. - library_names_spec='$libname.ixlibrary $libname.a'
  31369. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31370. - 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'
  31371. - ;;
  31372. -
  31373. -beos*)
  31374. - library_names_spec='${libname}${shared_ext}'
  31375. - dynamic_linker="$host_os ld.so"
  31376. - shlibpath_var=LIBRARY_PATH
  31377. - ;;
  31378. -
  31379. -bsdi[45]*)
  31380. - version_type=linux
  31381. - need_version=no
  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. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31385. - shlibpath_var=LD_LIBRARY_PATH
  31386. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31387. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31388. - # the default ld.so.conf also contains /usr/contrib/lib and
  31389. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31390. - # libtool to hard-code these into programs
  31391. - ;;
  31392. -
  31393. -cygwin* | mingw* | pw32*)
  31394. - version_type=windows
  31395. - shrext_cmds=".dll"
  31396. - need_version=no
  31397. - need_lib_prefix=no
  31398. -
  31399. - case $GCC,$host_os in
  31400. - yes,cygwin* | yes,mingw* | yes,pw32*)
  31401. - library_names_spec='$libname.dll.a'
  31402. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31403. - postinstall_cmds='base_file=`basename \${file}`~
  31404. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31405. - dldir=$destdir/`dirname \$dlpath`~
  31406. - test -d \$dldir || mkdir -p \$dldir~
  31407. - $install_prog $dir/$dlname \$dldir/$dlname~
  31408. - chmod a+x \$dldir/$dlname'
  31409. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31410. - dlpath=$dir/\$dldll~
  31411. - $rm \$dlpath'
  31412. - shlibpath_overrides_runpath=yes
  31413. -
  31414. - case $host_os in
  31415. - cygwin*)
  31416. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31417. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31418. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31419. - ;;
  31420. - mingw*)
  31421. - # MinGW DLLs use traditional 'lib' prefix
  31422. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31423. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31424. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31425. - # It is most probably a Windows format PATH printed by
  31426. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31427. - # path with ; separators, and with drive letters. We can handle the
  31428. - # drive letters (cygwin fileutils understands them), so leave them,
  31429. - # especially as we might pass files found there to a mingw objdump,
  31430. - # which wouldn't understand a cygwinified path. Ahh.
  31431. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31432. - else
  31433. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31434. - fi
  31435. - ;;
  31436. - pw32*)
  31437. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  31438. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31439. - ;;
  31440. - esac
  31441. - ;;
  31442. -
  31443. - *)
  31444. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31445. - ;;
  31446. - esac
  31447. - dynamic_linker='Win32 ld.exe'
  31448. - # FIXME: first we should search . and the directory the executable is in
  31449. - shlibpath_var=PATH
  31450. - ;;
  31451. -
  31452. -darwin* | rhapsody*)
  31453. - dynamic_linker="$host_os dyld"
  31454. - version_type=darwin
  31455. - need_lib_prefix=no
  31456. - need_version=no
  31457. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31458. - soname_spec='${libname}${release}${major}$shared_ext'
  31459. - shlibpath_overrides_runpath=yes
  31460. - shlibpath_var=DYLD_LIBRARY_PATH
  31461. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31462. -
  31463. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31464. - ;;
  31465. -
  31466. -dgux*)
  31467. - version_type=linux
  31468. - need_lib_prefix=no
  31469. - need_version=no
  31470. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31471. - soname_spec='${libname}${release}${shared_ext}$major'
  31472. - shlibpath_var=LD_LIBRARY_PATH
  31473. - ;;
  31474. -
  31475. -freebsd1*)
  31476. - dynamic_linker=no
  31477. - ;;
  31478. -
  31479. -freebsd* | dragonfly*)
  31480. - # DragonFly does not have aout. When/if they implement a new
  31481. - # versioning mechanism, adjust this.
  31482. - if test -x /usr/bin/objformat; then
  31483. - objformat=`/usr/bin/objformat`
  31484. - else
  31485. - case $host_os in
  31486. - freebsd[123]*) objformat=aout ;;
  31487. - *) objformat=elf ;;
  31488. - esac
  31489. - fi
  31490. - version_type=freebsd-$objformat
  31491. - case $version_type in
  31492. - freebsd-elf*)
  31493. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31494. - need_version=no
  31495. - need_lib_prefix=no
  31496. - ;;
  31497. - freebsd-*)
  31498. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31499. - need_version=yes
  31500. - ;;
  31501. - esac
  31502. - shlibpath_var=LD_LIBRARY_PATH
  31503. - case $host_os in
  31504. - freebsd2*)
  31505. - shlibpath_overrides_runpath=yes
  31506. - ;;
  31507. - freebsd3.[01]* | freebsdelf3.[01]*)
  31508. - shlibpath_overrides_runpath=yes
  31509. - hardcode_into_libs=yes
  31510. - ;;
  31511. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31512. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31513. - shlibpath_overrides_runpath=no
  31514. - hardcode_into_libs=yes
  31515. - ;;
  31516. - *) # from 4.6 on, and DragonFly
  31517. - shlibpath_overrides_runpath=yes
  31518. - hardcode_into_libs=yes
  31519. - ;;
  31520. - esac
  31521. - ;;
  31522. -
  31523. -gnu*)
  31524. - version_type=linux
  31525. - need_lib_prefix=no
  31526. - need_version=no
  31527. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31528. - soname_spec='${libname}${release}${shared_ext}$major'
  31529. - shlibpath_var=LD_LIBRARY_PATH
  31530. - hardcode_into_libs=yes
  31531. - ;;
  31532. -
  31533. -hpux9* | hpux10* | hpux11*)
  31534. - # Give a soname corresponding to the major version so that dld.sl refuses to
  31535. - # link against other versions.
  31536. - version_type=sunos
  31537. - need_lib_prefix=no
  31538. - need_version=no
  31539. - case $host_cpu in
  31540. - ia64*)
  31541. - shrext_cmds='.so'
  31542. - hardcode_into_libs=yes
  31543. - dynamic_linker="$host_os dld.so"
  31544. - shlibpath_var=LD_LIBRARY_PATH
  31545. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31546. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31547. - soname_spec='${libname}${release}${shared_ext}$major'
  31548. - if test "X$HPUX_IA64_MODE" = X32; then
  31549. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31550. - else
  31551. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31552. - fi
  31553. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31554. - ;;
  31555. - hppa*64*)
  31556. - shrext_cmds='.sl'
  31557. - hardcode_into_libs=yes
  31558. - dynamic_linker="$host_os dld.sl"
  31559. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31560. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31561. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31562. - soname_spec='${libname}${release}${shared_ext}$major'
  31563. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31564. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31565. - ;;
  31566. - *)
  31567. - shrext_cmds='.sl'
  31568. - dynamic_linker="$host_os dld.sl"
  31569. - shlibpath_var=SHLIB_PATH
  31570. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31571. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31572. - soname_spec='${libname}${release}${shared_ext}$major'
  31573. - ;;
  31574. - esac
  31575. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31576. - postinstall_cmds='chmod 555 $lib'
  31577. - ;;
  31578. -
  31579. -interix[3-9]*)
  31580. - version_type=linux
  31581. - need_lib_prefix=no
  31582. - need_version=no
  31583. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31584. - soname_spec='${libname}${release}${shared_ext}$major'
  31585. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31586. - shlibpath_var=LD_LIBRARY_PATH
  31587. - shlibpath_overrides_runpath=no
  31588. - hardcode_into_libs=yes
  31589. - ;;
  31590. -
  31591. -irix5* | irix6* | nonstopux*)
  31592. - case $host_os in
  31593. - nonstopux*) version_type=nonstopux ;;
  31594. - *)
  31595. - if test "$lt_cv_prog_gnu_ld" = yes; then
  31596. - version_type=linux
  31597. - else
  31598. - version_type=irix
  31599. - fi ;;
  31600. - esac
  31601. - need_lib_prefix=no
  31602. - need_version=no
  31603. - soname_spec='${libname}${release}${shared_ext}$major'
  31604. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31605. - case $host_os in
  31606. - irix5* | nonstopux*)
  31607. - libsuff= shlibsuff=
  31608. - ;;
  31609. - *)
  31610. - case $LD in # libtool.m4 will add one of these switches to LD
  31611. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31612. - libsuff= shlibsuff= libmagic=32-bit;;
  31613. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31614. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  31615. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31616. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31617. - *) libsuff= shlibsuff= libmagic=never-match;;
  31618. - esac
  31619. - ;;
  31620. - esac
  31621. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31622. - shlibpath_overrides_runpath=no
  31623. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31624. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31625. - hardcode_into_libs=yes
  31626. - ;;
  31627. -
  31628. -# No shared lib support for Linux oldld, aout, or coff.
  31629. -linux*oldld* | linux*aout* | linux*coff*)
  31630. - dynamic_linker=no
  31631. - ;;
  31632. -
  31633. -# This must be Linux ELF.
  31634. -linux* | k*bsd*-gnu)
  31635. - version_type=linux
  31636. - need_lib_prefix=no
  31637. - need_version=no
  31638. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31639. - soname_spec='${libname}${release}${shared_ext}$major'
  31640. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31641. - shlibpath_var=LD_LIBRARY_PATH
  31642. - shlibpath_overrides_runpath=no
  31643. - # This implies no fast_install, which is unacceptable.
  31644. - # Some rework will be needed to allow for fast_install
  31645. - # before this can be enabled.
  31646. - hardcode_into_libs=yes
  31647. -
  31648. - # Append ld.so.conf contents to the search path
  31649. - if test -f /etc/ld.so.conf; then
  31650. - 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' ' '`
  31651. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31652. - fi
  31653. -
  31654. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  31655. - # powerpc, because MkLinux only supported shared libraries with the
  31656. - # GNU dynamic linker. Since this was broken with cross compilers,
  31657. - # most powerpc-linux boxes support dynamic linking these days and
  31658. - # people can always --disable-shared, the test was removed, and we
  31659. - # assume the GNU/Linux dynamic linker is in use.
  31660. - dynamic_linker='GNU/Linux ld.so'
  31661. - ;;
  31662. -
  31663. -netbsdelf*-gnu)
  31664. - version_type=linux
  31665. - need_lib_prefix=no
  31666. - need_version=no
  31667. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31668. - soname_spec='${libname}${release}${shared_ext}$major'
  31669. - shlibpath_var=LD_LIBRARY_PATH
  31670. - shlibpath_overrides_runpath=no
  31671. - hardcode_into_libs=yes
  31672. - dynamic_linker='NetBSD ld.elf_so'
  31673. - ;;
  31674. -
  31675. -netbsd*)
  31676. - version_type=sunos
  31677. - need_lib_prefix=no
  31678. - need_version=no
  31679. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31680. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31681. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31682. - dynamic_linker='NetBSD (a.out) ld.so'
  31683. - else
  31684. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31685. - soname_spec='${libname}${release}${shared_ext}$major'
  31686. - dynamic_linker='NetBSD ld.elf_so'
  31687. - fi
  31688. - shlibpath_var=LD_LIBRARY_PATH
  31689. - shlibpath_overrides_runpath=yes
  31690. - hardcode_into_libs=yes
  31691. - ;;
  31692. -
  31693. -newsos6)
  31694. - version_type=linux
  31695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31696. - shlibpath_var=LD_LIBRARY_PATH
  31697. - shlibpath_overrides_runpath=yes
  31698. - ;;
  31699. -
  31700. -nto-qnx*)
  31701. - version_type=linux
  31702. - need_lib_prefix=no
  31703. - need_version=no
  31704. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31705. - soname_spec='${libname}${release}${shared_ext}$major'
  31706. - shlibpath_var=LD_LIBRARY_PATH
  31707. - shlibpath_overrides_runpath=yes
  31708. - ;;
  31709. -
  31710. -openbsd*)
  31711. - version_type=sunos
  31712. - sys_lib_dlsearch_path_spec="/usr/lib"
  31713. - need_lib_prefix=no
  31714. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31715. - case $host_os in
  31716. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31717. - *) need_version=no ;;
  31718. - esac
  31719. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31720. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31721. - shlibpath_var=LD_LIBRARY_PATH
  31722. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31723. - case $host_os in
  31724. - openbsd2.[89] | openbsd2.[89].*)
  31725. - shlibpath_overrides_runpath=no
  31726. - ;;
  31727. - *)
  31728. - shlibpath_overrides_runpath=yes
  31729. - ;;
  31730. - esac
  31731. - else
  31732. - shlibpath_overrides_runpath=yes
  31733. - fi
  31734. - ;;
  31735. -
  31736. -os2*)
  31737. - libname_spec='$name'
  31738. - shrext_cmds=".dll"
  31739. - need_lib_prefix=no
  31740. - library_names_spec='$libname${shared_ext} $libname.a'
  31741. - dynamic_linker='OS/2 ld.exe'
  31742. - shlibpath_var=LIBPATH
  31743. - ;;
  31744. -
  31745. -osf3* | osf4* | osf5*)
  31746. - version_type=osf
  31747. - need_lib_prefix=no
  31748. - need_version=no
  31749. - soname_spec='${libname}${release}${shared_ext}$major'
  31750. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31751. - shlibpath_var=LD_LIBRARY_PATH
  31752. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31753. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31754. - ;;
  31755. -
  31756. -rdos*)
  31757. - dynamic_linker=no
  31758. - ;;
  31759. +/* Override any GCC internal prototype to avoid an error.
  31760. + Use char because int might match the return type of a GCC
  31761. + builtin and then its argument prototype would still apply. */
  31762. +#ifdef __cplusplus
  31763. +extern "C"
  31764. +#endif
  31765. +char dlopen ();
  31766. +int
  31767. +main ()
  31768. +{
  31769. +return dlopen ();
  31770. + ;
  31771. + return 0;
  31772. +}
  31773. +_ACEOF
  31774. +if ac_fn_c_try_link "$LINENO"; then :
  31775. + ac_cv_lib_dl_dlopen=yes
  31776. +else
  31777. + ac_cv_lib_dl_dlopen=no
  31778. +fi
  31779. +rm -f core conftest.err conftest.$ac_objext \
  31780. + conftest$ac_exeext conftest.$ac_ext
  31781. +LIBS=$ac_check_lib_save_LIBS
  31782. +fi
  31783. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  31784. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  31785. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  31786. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  31787. +else
  31788. -solaris*)
  31789. - version_type=linux
  31790. - need_lib_prefix=no
  31791. - need_version=no
  31792. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31793. - soname_spec='${libname}${release}${shared_ext}$major'
  31794. - shlibpath_var=LD_LIBRARY_PATH
  31795. - shlibpath_overrides_runpath=yes
  31796. - hardcode_into_libs=yes
  31797. - # ldd complains unless libraries are executable
  31798. - postinstall_cmds='chmod +x $lib'
  31799. - ;;
  31800. + lt_cv_dlopen="dyld"
  31801. + lt_cv_dlopen_libs=
  31802. + lt_cv_dlopen_self=yes
  31803. -sunos4*)
  31804. - version_type=sunos
  31805. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31806. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31807. - shlibpath_var=LD_LIBRARY_PATH
  31808. - shlibpath_overrides_runpath=yes
  31809. - if test "$with_gnu_ld" = yes; then
  31810. - need_lib_prefix=no
  31811. - fi
  31812. - need_version=yes
  31813. - ;;
  31814. +fi
  31815. -sysv4 | sysv4.3*)
  31816. - version_type=linux
  31817. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31818. - soname_spec='${libname}${release}${shared_ext}$major'
  31819. - shlibpath_var=LD_LIBRARY_PATH
  31820. - case $host_vendor in
  31821. - sni)
  31822. - shlibpath_overrides_runpath=no
  31823. - need_lib_prefix=no
  31824. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31825. - runpath_var=LD_RUN_PATH
  31826. - ;;
  31827. - siemens)
  31828. - need_lib_prefix=no
  31829. - ;;
  31830. - motorola)
  31831. - need_lib_prefix=no
  31832. - need_version=no
  31833. - shlibpath_overrides_runpath=no
  31834. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31835. - ;;
  31836. - esac
  31837. - ;;
  31838. + ;;
  31839. -sysv4*MP*)
  31840. - if test -d /usr/nec ;then
  31841. - version_type=linux
  31842. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31843. - soname_spec='$libname${shared_ext}.$major'
  31844. - shlibpath_var=LD_LIBRARY_PATH
  31845. - fi
  31846. - ;;
  31847. + *)
  31848. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  31849. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  31850. + lt_cv_dlopen="shl_load"
  31851. +else
  31852. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  31853. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  31854. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  31855. + $as_echo_n "(cached) " >&6
  31856. +else
  31857. + ac_check_lib_save_LIBS=$LIBS
  31858. +LIBS="-ldld $LIBS"
  31859. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31860. +/* end confdefs.h. */
  31861. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31862. - version_type=freebsd-elf
  31863. - need_lib_prefix=no
  31864. - need_version=no
  31865. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31866. - soname_spec='${libname}${release}${shared_ext}$major'
  31867. - shlibpath_var=LD_LIBRARY_PATH
  31868. - hardcode_into_libs=yes
  31869. - if test "$with_gnu_ld" = yes; then
  31870. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31871. - shlibpath_overrides_runpath=no
  31872. - else
  31873. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31874. - shlibpath_overrides_runpath=yes
  31875. - case $host_os in
  31876. - sco3.2v5*)
  31877. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31878. - ;;
  31879. - esac
  31880. - fi
  31881. - sys_lib_dlsearch_path_spec='/usr/lib'
  31882. - ;;
  31883. +/* Override any GCC internal prototype to avoid an error.
  31884. + Use char because int might match the return type of a GCC
  31885. + builtin and then its argument prototype would still apply. */
  31886. +#ifdef __cplusplus
  31887. +extern "C"
  31888. +#endif
  31889. +char shl_load ();
  31890. +int
  31891. +main ()
  31892. +{
  31893. +return shl_load ();
  31894. + ;
  31895. + return 0;
  31896. +}
  31897. +_ACEOF
  31898. +if ac_fn_c_try_link "$LINENO"; then :
  31899. + ac_cv_lib_dld_shl_load=yes
  31900. +else
  31901. + ac_cv_lib_dld_shl_load=no
  31902. +fi
  31903. +rm -f core conftest.err conftest.$ac_objext \
  31904. + conftest$ac_exeext conftest.$ac_ext
  31905. +LIBS=$ac_check_lib_save_LIBS
  31906. +fi
  31907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  31908. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  31909. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  31910. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  31911. +else
  31912. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  31913. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  31914. + lt_cv_dlopen="dlopen"
  31915. +else
  31916. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  31917. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  31918. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  31919. + $as_echo_n "(cached) " >&6
  31920. +else
  31921. + ac_check_lib_save_LIBS=$LIBS
  31922. +LIBS="-ldl $LIBS"
  31923. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31924. +/* end confdefs.h. */
  31925. -uts4*)
  31926. - version_type=linux
  31927. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31928. - soname_spec='${libname}${release}${shared_ext}$major'
  31929. - shlibpath_var=LD_LIBRARY_PATH
  31930. - ;;
  31931. +/* Override any GCC internal prototype to avoid an error.
  31932. + Use char because int might match the return type of a GCC
  31933. + builtin and then its argument prototype would still apply. */
  31934. +#ifdef __cplusplus
  31935. +extern "C"
  31936. +#endif
  31937. +char dlopen ();
  31938. +int
  31939. +main ()
  31940. +{
  31941. +return dlopen ();
  31942. + ;
  31943. + return 0;
  31944. +}
  31945. +_ACEOF
  31946. +if ac_fn_c_try_link "$LINENO"; then :
  31947. + ac_cv_lib_dl_dlopen=yes
  31948. +else
  31949. + ac_cv_lib_dl_dlopen=no
  31950. +fi
  31951. +rm -f core conftest.err conftest.$ac_objext \
  31952. + conftest$ac_exeext conftest.$ac_ext
  31953. +LIBS=$ac_check_lib_save_LIBS
  31954. +fi
  31955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  31956. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  31957. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  31958. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  31959. +else
  31960. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  31961. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  31962. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  31963. + $as_echo_n "(cached) " >&6
  31964. +else
  31965. + ac_check_lib_save_LIBS=$LIBS
  31966. +LIBS="-lsvld $LIBS"
  31967. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31968. +/* end confdefs.h. */
  31969. -*)
  31970. - dynamic_linker=no
  31971. - ;;
  31972. -esac
  31973. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  31974. -echo "${ECHO_T}$dynamic_linker" >&6; }
  31975. -test "$dynamic_linker" = no && can_build_shared=no
  31976. +/* Override any GCC internal prototype to avoid an error.
  31977. + Use char because int might match the return type of a GCC
  31978. + builtin and then its argument prototype would still apply. */
  31979. +#ifdef __cplusplus
  31980. +extern "C"
  31981. +#endif
  31982. +char dlopen ();
  31983. +int
  31984. +main ()
  31985. +{
  31986. +return dlopen ();
  31987. + ;
  31988. + return 0;
  31989. +}
  31990. +_ACEOF
  31991. +if ac_fn_c_try_link "$LINENO"; then :
  31992. + ac_cv_lib_svld_dlopen=yes
  31993. +else
  31994. + ac_cv_lib_svld_dlopen=no
  31995. +fi
  31996. +rm -f core conftest.err conftest.$ac_objext \
  31997. + conftest$ac_exeext conftest.$ac_ext
  31998. +LIBS=$ac_check_lib_save_LIBS
  31999. +fi
  32000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  32001. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  32002. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  32003. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  32004. +else
  32005. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  32006. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  32007. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  32008. + $as_echo_n "(cached) " >&6
  32009. +else
  32010. + ac_check_lib_save_LIBS=$LIBS
  32011. +LIBS="-ldld $LIBS"
  32012. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32013. +/* end confdefs.h. */
  32014. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  32015. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32016. +/* Override any GCC internal prototype to avoid an error.
  32017. + Use char because int might match the return type of a GCC
  32018. + builtin and then its argument prototype would still apply. */
  32019. +#ifdef __cplusplus
  32020. +extern "C"
  32021. +#endif
  32022. +char dld_link ();
  32023. +int
  32024. +main ()
  32025. +{
  32026. +return dld_link ();
  32027. + ;
  32028. + return 0;
  32029. +}
  32030. +_ACEOF
  32031. +if ac_fn_c_try_link "$LINENO"; then :
  32032. + ac_cv_lib_dld_dld_link=yes
  32033. else
  32034. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  32035. + ac_cv_lib_dld_dld_link=no
  32036. +fi
  32037. +rm -f core conftest.err conftest.$ac_objext \
  32038. + conftest$ac_exeext conftest.$ac_ext
  32039. +LIBS=$ac_check_lib_save_LIBS
  32040. +fi
  32041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  32042. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  32043. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  32044. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  32045. fi
  32046. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  32047. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  32048. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32049. -else
  32050. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  32051. +
  32052. fi
  32053. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  32054. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  32055. -if test "$GCC" = yes; then
  32056. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  32057. fi
  32058. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32059. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  32060. -hardcode_action_GCJ=
  32061. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  32062. - test -n "$runpath_var_GCJ" || \
  32063. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  32064. - # We can hardcode non-existant directories.
  32065. - if test "$hardcode_direct_GCJ" != no &&
  32066. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32067. - # have to relink, otherwise we might link with an installed library
  32068. - # when we should be linking with a yet-to-be-installed one
  32069. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  32070. - test "$hardcode_minus_L_GCJ" != no; then
  32071. - # Linking always hardcodes the temporary library directory.
  32072. - hardcode_action_GCJ=relink
  32073. - else
  32074. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32075. - hardcode_action_GCJ=immediate
  32076. - fi
  32077. -else
  32078. - # We cannot hardcode anything, or else we can only hardcode existing
  32079. - # directories.
  32080. - hardcode_action_GCJ=unsupported
  32081. fi
  32082. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  32083. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  32084. -if test "$hardcode_action_GCJ" = relink; then
  32085. - # Fast installation is not supported
  32086. - enable_fast_install=no
  32087. -elif test "$shlibpath_overrides_runpath" = yes ||
  32088. - test "$enable_shared" = no; then
  32089. - # Fast installation is not necessary
  32090. - enable_fast_install=needless
  32091. +
  32092. fi
  32093. -# The else clause should only fire when bootstrapping the
  32094. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32095. -# with your package, and you will get complaints that there are
  32096. -# no rules to generate ltmain.sh.
  32097. -if test -f "$ltmain"; then
  32098. - # See if we are running on zsh, and set the options which allow our commands through
  32099. - # without removal of \ escapes.
  32100. - if test -n "${ZSH_VERSION+set}" ; then
  32101. - setopt NO_GLOB_SUBST
  32102. - fi
  32103. - # Now quote all the things that may contain metacharacters while being
  32104. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32105. - # variables and quote the copies for generation of the libtool script.
  32106. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32107. - SED SHELL STRIP \
  32108. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32109. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32110. - deplibs_check_method reload_flag reload_cmds need_locks \
  32111. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32112. - lt_cv_sys_global_symbol_to_c_name_address \
  32113. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32114. - old_postinstall_cmds old_postuninstall_cmds \
  32115. - compiler_GCJ \
  32116. - CC_GCJ \
  32117. - LD_GCJ \
  32118. - lt_prog_compiler_wl_GCJ \
  32119. - lt_prog_compiler_pic_GCJ \
  32120. - lt_prog_compiler_static_GCJ \
  32121. - lt_prog_compiler_no_builtin_flag_GCJ \
  32122. - export_dynamic_flag_spec_GCJ \
  32123. - thread_safe_flag_spec_GCJ \
  32124. - whole_archive_flag_spec_GCJ \
  32125. - enable_shared_with_static_runtimes_GCJ \
  32126. - old_archive_cmds_GCJ \
  32127. - old_archive_from_new_cmds_GCJ \
  32128. - predep_objects_GCJ \
  32129. - postdep_objects_GCJ \
  32130. - predeps_GCJ \
  32131. - postdeps_GCJ \
  32132. - compiler_lib_search_path_GCJ \
  32133. - compiler_lib_search_dirs_GCJ \
  32134. - archive_cmds_GCJ \
  32135. - archive_expsym_cmds_GCJ \
  32136. - postinstall_cmds_GCJ \
  32137. - postuninstall_cmds_GCJ \
  32138. - old_archive_from_expsyms_cmds_GCJ \
  32139. - allow_undefined_flag_GCJ \
  32140. - no_undefined_flag_GCJ \
  32141. - export_symbols_cmds_GCJ \
  32142. - hardcode_libdir_flag_spec_GCJ \
  32143. - hardcode_libdir_flag_spec_ld_GCJ \
  32144. - hardcode_libdir_separator_GCJ \
  32145. - hardcode_automatic_GCJ \
  32146. - module_cmds_GCJ \
  32147. - module_expsym_cmds_GCJ \
  32148. - lt_cv_prog_compiler_c_o_GCJ \
  32149. - fix_srcfile_path_GCJ \
  32150. - exclude_expsyms_GCJ \
  32151. - include_expsyms_GCJ; do
  32152. -
  32153. - case $var in
  32154. - old_archive_cmds_GCJ | \
  32155. - old_archive_from_new_cmds_GCJ | \
  32156. - archive_cmds_GCJ | \
  32157. - archive_expsym_cmds_GCJ | \
  32158. - module_cmds_GCJ | \
  32159. - module_expsym_cmds_GCJ | \
  32160. - old_archive_from_expsyms_cmds_GCJ | \
  32161. - export_symbols_cmds_GCJ | \
  32162. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32163. - postinstall_cmds | postuninstall_cmds | \
  32164. - old_postinstall_cmds | old_postuninstall_cmds | \
  32165. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32166. - # Double-quote double-evaled strings.
  32167. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32168. - ;;
  32169. - *)
  32170. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32171. - ;;
  32172. - esac
  32173. - done
  32174. +fi
  32175. - case $lt_echo in
  32176. - *'\$0 --fallback-echo"')
  32177. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32178. ;;
  32179. esac
  32180. -cfgfile="$ofile"
  32181. -
  32182. - cat <<__EOF__ >> "$cfgfile"
  32183. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32184. -
  32185. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32186. -
  32187. -# Shell to use when invoking shell scripts.
  32188. -SHELL=$lt_SHELL
  32189. -
  32190. -# Whether or not to build shared libraries.
  32191. -build_libtool_libs=$enable_shared
  32192. -
  32193. -# Whether or not to build static libraries.
  32194. -build_old_libs=$enable_static
  32195. -
  32196. -# Whether or not to add -lc for building shared libraries.
  32197. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  32198. -
  32199. -# Whether or not to disallow shared libs when runtime libs are static
  32200. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  32201. -
  32202. -# Whether or not to optimize for fast installation.
  32203. -fast_install=$enable_fast_install
  32204. -
  32205. -# The host system.
  32206. -host_alias=$host_alias
  32207. -host=$host
  32208. -host_os=$host_os
  32209. -
  32210. -# The build system.
  32211. -build_alias=$build_alias
  32212. -build=$build
  32213. -build_os=$build_os
  32214. -
  32215. -# An echo program that does not interpret backslashes.
  32216. -echo=$lt_echo
  32217. -
  32218. -# The archiver.
  32219. -AR=$lt_AR
  32220. -AR_FLAGS=$lt_AR_FLAGS
  32221. -
  32222. -# A C compiler.
  32223. -LTCC=$lt_LTCC
  32224. -
  32225. -# LTCC compiler flags.
  32226. -LTCFLAGS=$lt_LTCFLAGS
  32227. -
  32228. -# A language-specific compiler.
  32229. -CC=$lt_compiler_GCJ
  32230. -
  32231. -# Is the compiler the GNU C compiler?
  32232. -with_gcc=$GCC_GCJ
  32233. -
  32234. -# An ERE matcher.
  32235. -EGREP=$lt_EGREP
  32236. -
  32237. -# The linker used to build libraries.
  32238. -LD=$lt_LD_GCJ
  32239. -
  32240. -# Whether we need hard or soft links.
  32241. -LN_S=$lt_LN_S
  32242. -
  32243. -# A BSD-compatible nm program.
  32244. -NM=$lt_NM
  32245. -
  32246. -# A symbol stripping program
  32247. -STRIP=$lt_STRIP
  32248. -
  32249. -# Used to examine libraries when file_magic_cmd begins "file"
  32250. -MAGIC_CMD=$MAGIC_CMD
  32251. -
  32252. -# Used on cygwin: DLL creation program.
  32253. -DLLTOOL="$DLLTOOL"
  32254. -
  32255. -# Used on cygwin: object dumper.
  32256. -OBJDUMP="$OBJDUMP"
  32257. + if test "x$lt_cv_dlopen" != xno; then
  32258. + enable_dlopen=yes
  32259. + else
  32260. + enable_dlopen=no
  32261. + fi
  32262. -# Used on cygwin: assembler.
  32263. -AS="$AS"
  32264. + case $lt_cv_dlopen in
  32265. + dlopen)
  32266. + save_CPPFLAGS="$CPPFLAGS"
  32267. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  32268. -# The name of the directory that contains temporary libtool files.
  32269. -objdir=$objdir
  32270. + save_LDFLAGS="$LDFLAGS"
  32271. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  32272. -# How to create reloadable object files.
  32273. -reload_flag=$lt_reload_flag
  32274. -reload_cmds=$lt_reload_cmds
  32275. + save_LIBS="$LIBS"
  32276. + LIBS="$lt_cv_dlopen_libs $LIBS"
  32277. -# How to pass a linker flag through the compiler.
  32278. -wl=$lt_lt_prog_compiler_wl_GCJ
  32279. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  32280. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  32281. +if test "${lt_cv_dlopen_self+set}" = set; then :
  32282. + $as_echo_n "(cached) " >&6
  32283. +else
  32284. + if test "$cross_compiling" = yes; then :
  32285. + lt_cv_dlopen_self=cross
  32286. +else
  32287. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32288. + lt_status=$lt_dlunknown
  32289. + cat > conftest.$ac_ext <<_LT_EOF
  32290. +#line 9992 "configure"
  32291. +#include "confdefs.h"
  32292. -# Object file suffix (normally "o").
  32293. -objext="$ac_objext"
  32294. +#if HAVE_DLFCN_H
  32295. +#include <dlfcn.h>
  32296. +#endif
  32297. -# Old archive suffix (normally "a").
  32298. -libext="$libext"
  32299. +#include <stdio.h>
  32300. -# Shared library suffix (normally ".so").
  32301. -shrext_cmds='$shrext_cmds'
  32302. +#ifdef RTLD_GLOBAL
  32303. +# define LT_DLGLOBAL RTLD_GLOBAL
  32304. +#else
  32305. +# ifdef DL_GLOBAL
  32306. +# define LT_DLGLOBAL DL_GLOBAL
  32307. +# else
  32308. +# define LT_DLGLOBAL 0
  32309. +# endif
  32310. +#endif
  32311. -# Executable file suffix (normally "").
  32312. -exeext="$exeext"
  32313. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32314. + find out it does not work in some platform. */
  32315. +#ifndef LT_DLLAZY_OR_NOW
  32316. +# ifdef RTLD_LAZY
  32317. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32318. +# else
  32319. +# ifdef DL_LAZY
  32320. +# define LT_DLLAZY_OR_NOW DL_LAZY
  32321. +# else
  32322. +# ifdef RTLD_NOW
  32323. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  32324. +# else
  32325. +# ifdef DL_NOW
  32326. +# define LT_DLLAZY_OR_NOW DL_NOW
  32327. +# else
  32328. +# define LT_DLLAZY_OR_NOW 0
  32329. +# endif
  32330. +# endif
  32331. +# endif
  32332. +# endif
  32333. +#endif
  32334. -# Additional compiler flags for building library objects.
  32335. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  32336. -pic_mode=$pic_mode
  32337. +void fnord() { int i=42;}
  32338. +int main ()
  32339. +{
  32340. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32341. + int status = $lt_dlunknown;
  32342. -# What is the maximum length of a command?
  32343. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32344. + if (self)
  32345. + {
  32346. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32347. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32348. + /* dlclose (self); */
  32349. + }
  32350. + else
  32351. + puts (dlerror ());
  32352. -# Does compiler simultaneously support -c and -o options?
  32353. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  32354. + return status;
  32355. +}
  32356. +_LT_EOF
  32357. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  32358. + (eval $ac_link) 2>&5
  32359. + ac_status=$?
  32360. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32361. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  32362. + (./conftest; exit; ) >&5 2>/dev/null
  32363. + lt_status=$?
  32364. + case x$lt_status in
  32365. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  32366. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  32367. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  32368. + esac
  32369. + else :
  32370. + # compilation failed
  32371. + lt_cv_dlopen_self=no
  32372. + fi
  32373. +fi
  32374. +rm -fr conftest*
  32375. -# Must we lock files when doing compilation?
  32376. -need_locks=$lt_need_locks
  32377. -# Do we need the lib prefix for modules?
  32378. -need_lib_prefix=$need_lib_prefix
  32379. +fi
  32380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  32381. +$as_echo "$lt_cv_dlopen_self" >&6; }
  32382. -# Do we need a version for libraries?
  32383. -need_version=$need_version
  32384. + if test "x$lt_cv_dlopen_self" = xyes; then
  32385. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  32386. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  32387. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  32388. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  32389. + $as_echo_n "(cached) " >&6
  32390. +else
  32391. + if test "$cross_compiling" = yes; then :
  32392. + lt_cv_dlopen_self_static=cross
  32393. +else
  32394. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32395. + lt_status=$lt_dlunknown
  32396. + cat > conftest.$ac_ext <<_LT_EOF
  32397. +#line 10088 "configure"
  32398. +#include "confdefs.h"
  32399. -# Whether dlopen is supported.
  32400. -dlopen_support=$enable_dlopen
  32401. +#if HAVE_DLFCN_H
  32402. +#include <dlfcn.h>
  32403. +#endif
  32404. -# Whether dlopen of programs is supported.
  32405. -dlopen_self=$enable_dlopen_self
  32406. +#include <stdio.h>
  32407. -# Whether dlopen of statically linked programs is supported.
  32408. -dlopen_self_static=$enable_dlopen_self_static
  32409. +#ifdef RTLD_GLOBAL
  32410. +# define LT_DLGLOBAL RTLD_GLOBAL
  32411. +#else
  32412. +# ifdef DL_GLOBAL
  32413. +# define LT_DLGLOBAL DL_GLOBAL
  32414. +# else
  32415. +# define LT_DLGLOBAL 0
  32416. +# endif
  32417. +#endif
  32418. -# Compiler flag to prevent dynamic linking.
  32419. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  32420. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32421. + find out it does not work in some platform. */
  32422. +#ifndef LT_DLLAZY_OR_NOW
  32423. +# ifdef RTLD_LAZY
  32424. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32425. +# else
  32426. +# ifdef DL_LAZY
  32427. +# define LT_DLLAZY_OR_NOW DL_LAZY
  32428. +# else
  32429. +# ifdef RTLD_NOW
  32430. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  32431. +# else
  32432. +# ifdef DL_NOW
  32433. +# define LT_DLLAZY_OR_NOW DL_NOW
  32434. +# else
  32435. +# define LT_DLLAZY_OR_NOW 0
  32436. +# endif
  32437. +# endif
  32438. +# endif
  32439. +# endif
  32440. +#endif
  32441. -# Compiler flag to turn off builtin functions.
  32442. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  32443. +void fnord() { int i=42;}
  32444. +int main ()
  32445. +{
  32446. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32447. + int status = $lt_dlunknown;
  32448. -# Compiler flag to allow reflexive dlopens.
  32449. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  32450. + if (self)
  32451. + {
  32452. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32453. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32454. + /* dlclose (self); */
  32455. + }
  32456. + else
  32457. + puts (dlerror ());
  32458. -# Compiler flag to generate shared objects directly from archives.
  32459. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  32460. + return status;
  32461. +}
  32462. +_LT_EOF
  32463. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  32464. + (eval $ac_link) 2>&5
  32465. + ac_status=$?
  32466. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32467. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  32468. + (./conftest; exit; ) >&5 2>/dev/null
  32469. + lt_status=$?
  32470. + case x$lt_status in
  32471. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  32472. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  32473. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  32474. + esac
  32475. + else :
  32476. + # compilation failed
  32477. + lt_cv_dlopen_self_static=no
  32478. + fi
  32479. +fi
  32480. +rm -fr conftest*
  32481. -# Compiler flag to generate thread-safe objects.
  32482. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  32483. -# Library versioning type.
  32484. -version_type=$version_type
  32485. +fi
  32486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  32487. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  32488. + fi
  32489. -# Format of library name prefix.
  32490. -libname_spec=$lt_libname_spec
  32491. + CPPFLAGS="$save_CPPFLAGS"
  32492. + LDFLAGS="$save_LDFLAGS"
  32493. + LIBS="$save_LIBS"
  32494. + ;;
  32495. + esac
  32496. -# List of archive names. First name is the real one, the rest are links.
  32497. -# The last name is the one that the linker finds with -lNAME.
  32498. -library_names_spec=$lt_library_names_spec
  32499. + case $lt_cv_dlopen_self in
  32500. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  32501. + *) enable_dlopen_self=unknown ;;
  32502. + esac
  32503. -# The coded name of the library, if different from the real name.
  32504. -soname_spec=$lt_soname_spec
  32505. + case $lt_cv_dlopen_self_static in
  32506. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  32507. + *) enable_dlopen_self_static=unknown ;;
  32508. + esac
  32509. +fi
  32510. -# Commands used to build and install an old-style archive.
  32511. -RANLIB=$lt_RANLIB
  32512. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  32513. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32514. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32515. -# Create an old-style archive from a shared archive.
  32516. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  32517. -# Create a temporary old-style archive to link instead of a shared archive.
  32518. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  32519. -# Commands used to build and install a shared archive.
  32520. -archive_cmds=$lt_archive_cmds_GCJ
  32521. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  32522. -postinstall_cmds=$lt_postinstall_cmds
  32523. -postuninstall_cmds=$lt_postuninstall_cmds
  32524. -# Commands used to build a loadable module (assumed same as above if empty)
  32525. -module_cmds=$lt_module_cmds_GCJ
  32526. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  32527. -# Commands to strip libraries.
  32528. -old_striplib=$lt_old_striplib
  32529. -striplib=$lt_striplib
  32530. -# Dependencies to place before the objects being linked to create a
  32531. -# shared library.
  32532. -predep_objects=$lt_predep_objects_GCJ
  32533. -
  32534. -# Dependencies to place after the objects being linked to create a
  32535. -# shared library.
  32536. -postdep_objects=$lt_postdep_objects_GCJ
  32537. -
  32538. -# Dependencies to place before the objects being linked to create a
  32539. -# shared library.
  32540. -predeps=$lt_predeps_GCJ
  32541. -
  32542. -# Dependencies to place after the objects being linked to create a
  32543. -# shared library.
  32544. -postdeps=$lt_postdeps_GCJ
  32545. -
  32546. -# The directories searched by this compiler when creating a shared
  32547. -# library
  32548. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  32549. -
  32550. -# The library search path used internally by the compiler when linking
  32551. -# a shared library.
  32552. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  32553. -# Method to check whether dependent libraries are shared objects.
  32554. -deplibs_check_method=$lt_deplibs_check_method
  32555. -# Command to use when deplibs_check_method == file_magic.
  32556. -file_magic_cmd=$lt_file_magic_cmd
  32557. -# Flag that allows shared libraries with undefined symbols to be built.
  32558. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  32559. -# Flag that forces no undefined symbols.
  32560. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  32561. -# Commands used to finish a libtool library installation in a directory.
  32562. -finish_cmds=$lt_finish_cmds
  32563. -# Same as above, but a single script fragment to be evaled but not shown.
  32564. -finish_eval=$lt_finish_eval
  32565. -# Take the output of nm and produce a listing of raw symbols and C names.
  32566. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32567. -# Transform the output of nm in a proper C declaration
  32568. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32569. -# Transform the output of nm in a C name address pair
  32570. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32571. -# This is the shared library runtime path variable.
  32572. -runpath_var=$runpath_var
  32573. +striplib=
  32574. +old_striplib=
  32575. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  32576. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  32577. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  32578. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  32579. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  32580. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32581. +$as_echo "yes" >&6; }
  32582. +else
  32583. +# FIXME - insert some real tests, host_os isn't really good enough
  32584. + case $host_os in
  32585. + darwin*)
  32586. + if test -n "$STRIP" ; then
  32587. + striplib="$STRIP -x"
  32588. + old_striplib="$STRIP -S"
  32589. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32590. +$as_echo "yes" >&6; }
  32591. + else
  32592. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32593. +$as_echo "no" >&6; }
  32594. + fi
  32595. + ;;
  32596. + *)
  32597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32598. +$as_echo "no" >&6; }
  32599. + ;;
  32600. + esac
  32601. +fi
  32602. -# This is the shared library path variable.
  32603. -shlibpath_var=$shlibpath_var
  32604. -# Is shlibpath searched before the hard-coded library search path?
  32605. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32606. -# How to hardcode a shared library path into an executable.
  32607. -hardcode_action=$hardcode_action_GCJ
  32608. -# Whether we should hardcode library paths into libraries.
  32609. -hardcode_into_libs=$hardcode_into_libs
  32610. -# Flag to hardcode \$libdir into a binary during linking.
  32611. -# This must work even if \$libdir does not exist.
  32612. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  32613. -# If ld is used when linking, flag to hardcode \$libdir into
  32614. -# a binary during linking. This must work even if \$libdir does
  32615. -# not exist.
  32616. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  32617. -
  32618. -# Whether we need a single -rpath flag with a separated argument.
  32619. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  32620. -
  32621. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32622. -# resulting binary.
  32623. -hardcode_direct=$hardcode_direct_GCJ
  32624. -
  32625. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32626. -# resulting binary.
  32627. -hardcode_minus_L=$hardcode_minus_L_GCJ
  32628. -
  32629. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32630. -# the resulting binary.
  32631. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  32632. -
  32633. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32634. -# and all subsequent libraries and executables linked against it.
  32635. -hardcode_automatic=$hardcode_automatic_GCJ
  32636. -# Variables whose values should be saved in libtool wrapper scripts and
  32637. -# restored at relink time.
  32638. -variables_saved_for_relink="$variables_saved_for_relink"
  32639. -# Whether libtool must link a program against all its dependency libraries.
  32640. -link_all_deplibs=$link_all_deplibs_GCJ
  32641. -# Compile-time system search path for libraries
  32642. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32643. -# Run-time system search path for libraries
  32644. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32645. -# Fix the shell variable \$srcfile for the compiler.
  32646. -fix_srcfile_path=$lt_fix_srcfile_path
  32647. -# Set to yes if exported symbols are required.
  32648. -always_export_symbols=$always_export_symbols_GCJ
  32649. + # Report which library types will actually be built
  32650. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  32651. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  32652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  32653. +$as_echo "$can_build_shared" >&6; }
  32654. -# The commands to list exported symbols.
  32655. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  32656. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  32657. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  32658. + test "$can_build_shared" = "no" && enable_shared=no
  32659. -# The commands to extract the exported symbol list from a shared archive.
  32660. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32661. + # On AIX, shared libraries and static libraries use the same namespace, and
  32662. + # are all built from PIC.
  32663. + case $host_os in
  32664. + aix3*)
  32665. + test "$enable_shared" = yes && enable_static=no
  32666. + if test -n "$RANLIB"; then
  32667. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  32668. + postinstall_cmds='$RANLIB $lib'
  32669. + fi
  32670. + ;;
  32671. -# Symbols that should not be listed in the preloaded symbols.
  32672. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  32673. + aix[4-9]*)
  32674. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  32675. + test "$enable_shared" = yes && enable_static=no
  32676. + fi
  32677. + ;;
  32678. + esac
  32679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  32680. +$as_echo "$enable_shared" >&6; }
  32681. -# Symbols that must always be exported.
  32682. -include_expsyms=$lt_include_expsyms_GCJ
  32683. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  32684. +$as_echo_n "checking whether to build static libraries... " >&6; }
  32685. + # Make sure either enable_shared or enable_static is yes.
  32686. + test "$enable_shared" = yes || enable_static=yes
  32687. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  32688. +$as_echo "$enable_static" >&6; }
  32689. -# ### END LIBTOOL TAG CONFIG: $tagname
  32690. -__EOF__
  32691. -else
  32692. - # If there is no Makefile yet, we rely on a make rule to execute
  32693. - # `config.status --recheck' to rerun these tests and create the
  32694. - # libtool script then.
  32695. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32696. - if test -f "$ltmain_in"; then
  32697. - test -f Makefile && make "$ltmain"
  32698. - fi
  32699. fi
  32700. -
  32701. -
  32702. ac_ext=c
  32703. ac_cpp='$CPP $CPPFLAGS'
  32704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32705. @@ -19273,1908 +10292,2187 @@
  32706. CC="$lt_save_CC"
  32707. - else
  32708. - tagname=""
  32709. - fi
  32710. - ;;
  32711. - RC)
  32712. -# Source file extension for RC test sources.
  32713. -ac_ext=rc
  32714. -# Object file extension for compiled RC test sources.
  32715. -objext=o
  32716. -objext_RC=$objext
  32717. -# Code to be used in simple compile tests
  32718. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  32719. -# Code to be used in simple link tests
  32720. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  32721. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  32722. -# If no C compiler was specified, use CC.
  32723. -LTCC=${LTCC-"$CC"}
  32724. -# If no C compiler flags were specified, use CFLAGS.
  32725. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  32726. -# Allow CC to be a program name with arguments.
  32727. -compiler=$CC
  32728. -# save warnings/boilerplate of simple test code
  32729. -ac_outfile=conftest.$ac_objext
  32730. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  32731. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32732. -_lt_compiler_boilerplate=`cat conftest.err`
  32733. -$rm conftest*
  32734. + ac_config_commands="$ac_config_commands libtool"
  32735. -ac_outfile=conftest.$ac_objext
  32736. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  32737. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32738. -_lt_linker_boilerplate=`cat conftest.err`
  32739. -$rm -r conftest*
  32740. -# Allow CC to be a program name with arguments.
  32741. -lt_save_CC="$CC"
  32742. -CC=${RC-"windres"}
  32743. -compiler=$CC
  32744. -compiler_RC=$CC
  32745. -for cc_temp in $compiler""; do
  32746. - case $cc_temp in
  32747. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32748. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32749. - \-*) ;;
  32750. - *) break;;
  32751. - esac
  32752. -done
  32753. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32754. -lt_cv_prog_compiler_c_o_RC=yes
  32755. +# Only expand once:
  32756. -# The else clause should only fire when bootstrapping the
  32757. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32758. -# with your package, and you will get complaints that there are
  32759. -# no rules to generate ltmain.sh.
  32760. -if test -f "$ltmain"; then
  32761. - # See if we are running on zsh, and set the options which allow our commands through
  32762. - # without removal of \ escapes.
  32763. - if test -n "${ZSH_VERSION+set}" ; then
  32764. - setopt NO_GLOB_SUBST
  32765. - fi
  32766. - # Now quote all the things that may contain metacharacters while being
  32767. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32768. - # variables and quote the copies for generation of the libtool script.
  32769. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32770. - SED SHELL STRIP \
  32771. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32772. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32773. - deplibs_check_method reload_flag reload_cmds need_locks \
  32774. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32775. - lt_cv_sys_global_symbol_to_c_name_address \
  32776. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32777. - old_postinstall_cmds old_postuninstall_cmds \
  32778. - compiler_RC \
  32779. - CC_RC \
  32780. - LD_RC \
  32781. - lt_prog_compiler_wl_RC \
  32782. - lt_prog_compiler_pic_RC \
  32783. - lt_prog_compiler_static_RC \
  32784. - lt_prog_compiler_no_builtin_flag_RC \
  32785. - export_dynamic_flag_spec_RC \
  32786. - thread_safe_flag_spec_RC \
  32787. - whole_archive_flag_spec_RC \
  32788. - enable_shared_with_static_runtimes_RC \
  32789. - old_archive_cmds_RC \
  32790. - old_archive_from_new_cmds_RC \
  32791. - predep_objects_RC \
  32792. - postdep_objects_RC \
  32793. - predeps_RC \
  32794. - postdeps_RC \
  32795. - compiler_lib_search_path_RC \
  32796. - compiler_lib_search_dirs_RC \
  32797. - archive_cmds_RC \
  32798. - archive_expsym_cmds_RC \
  32799. - postinstall_cmds_RC \
  32800. - postuninstall_cmds_RC \
  32801. - old_archive_from_expsyms_cmds_RC \
  32802. - allow_undefined_flag_RC \
  32803. - no_undefined_flag_RC \
  32804. - export_symbols_cmds_RC \
  32805. - hardcode_libdir_flag_spec_RC \
  32806. - hardcode_libdir_flag_spec_ld_RC \
  32807. - hardcode_libdir_separator_RC \
  32808. - hardcode_automatic_RC \
  32809. - module_cmds_RC \
  32810. - module_expsym_cmds_RC \
  32811. - lt_cv_prog_compiler_c_o_RC \
  32812. - fix_srcfile_path_RC \
  32813. - exclude_expsyms_RC \
  32814. - include_expsyms_RC; do
  32815. -
  32816. - case $var in
  32817. - old_archive_cmds_RC | \
  32818. - old_archive_from_new_cmds_RC | \
  32819. - archive_cmds_RC | \
  32820. - archive_expsym_cmds_RC | \
  32821. - module_cmds_RC | \
  32822. - module_expsym_cmds_RC | \
  32823. - old_archive_from_expsyms_cmds_RC | \
  32824. - export_symbols_cmds_RC | \
  32825. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32826. - postinstall_cmds | postuninstall_cmds | \
  32827. - old_postinstall_cmds | old_postuninstall_cmds | \
  32828. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32829. - # Double-quote double-evaled strings.
  32830. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32831. - ;;
  32832. - *)
  32833. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32834. - ;;
  32835. - esac
  32836. - done
  32837. - case $lt_echo in
  32838. - *'\$0 --fallback-echo"')
  32839. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32840. - ;;
  32841. - esac
  32842. -cfgfile="$ofile"
  32843. - cat <<__EOF__ >> "$cfgfile"
  32844. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32845. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32846. +for ac_func in strndup
  32847. +do :
  32848. + ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  32849. +if test "x$ac_cv_func_strndup" = x""yes; then :
  32850. + cat >>confdefs.h <<_ACEOF
  32851. +#define HAVE_STRNDUP 1
  32852. +_ACEOF
  32853. -# Shell to use when invoking shell scripts.
  32854. -SHELL=$lt_SHELL
  32855. +fi
  32856. +done
  32857. -# Whether or not to build shared libraries.
  32858. -build_libtool_libs=$enable_shared
  32859. -# Whether or not to build static libraries.
  32860. -build_old_libs=$enable_static
  32861. +ac_config_files="$ac_config_files Makefile"
  32862. -# Whether or not to add -lc for building shared libraries.
  32863. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  32864. +cat >confcache <<\_ACEOF
  32865. +# This file is a shell script that caches the results of configure
  32866. +# tests run on this system so they can be shared between configure
  32867. +# scripts and configure runs, see configure's option --config-cache.
  32868. +# It is not useful on other systems. If it contains results you don't
  32869. +# want to keep, you may remove or edit it.
  32870. +#
  32871. +# config.status only pays attention to the cache file if you give it
  32872. +# the --recheck option to rerun configure.
  32873. +#
  32874. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  32875. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  32876. +# following values.
  32877. +
  32878. +_ACEOF
  32879. +
  32880. +# The following way of writing the cache mishandles newlines in values,
  32881. +# but we know of no workaround that is simple, portable, and efficient.
  32882. +# So, we kill variables containing newlines.
  32883. +# Ultrix sh set writes to stderr and can't be redirected directly,
  32884. +# and sets the high bit in the cache file unless we assign to the vars.
  32885. +(
  32886. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  32887. + eval ac_val=\$$ac_var
  32888. + case $ac_val in #(
  32889. + *${as_nl}*)
  32890. + case $ac_var in #(
  32891. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  32892. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  32893. + esac
  32894. + case $ac_var in #(
  32895. + _ | IFS | as_nl) ;; #(
  32896. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32897. + *) { eval $ac_var=; unset $ac_var;} ;;
  32898. + esac ;;
  32899. + esac
  32900. + done
  32901. +
  32902. + (set) 2>&1 |
  32903. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  32904. + *${as_nl}ac_space=\ *)
  32905. + # `set' does not quote correctly, so add quotes: double-quote
  32906. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  32907. + sed -n \
  32908. + "s/'/'\\\\''/g;
  32909. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  32910. + ;; #(
  32911. + *)
  32912. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  32913. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32914. + ;;
  32915. + esac |
  32916. + sort
  32917. +) |
  32918. + sed '
  32919. + /^ac_cv_env_/b end
  32920. + t clear
  32921. + :clear
  32922. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  32923. + t end
  32924. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  32925. + :end' >>confcache
  32926. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  32927. + if test -w "$cache_file"; then
  32928. + test "x$cache_file" != "x/dev/null" &&
  32929. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  32930. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  32931. + cat confcache >$cache_file
  32932. + else
  32933. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  32934. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  32935. + fi
  32936. +fi
  32937. +rm -f confcache
  32938. +
  32939. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  32940. +# Let make expand exec_prefix.
  32941. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  32942. -# Whether or not to disallow shared libs when runtime libs are static
  32943. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  32944. +# Transform confdefs.h into DEFS.
  32945. +# Protect against shell expansion while executing Makefile rules.
  32946. +# Protect against Makefile macro expansion.
  32947. +#
  32948. +# If the first sed substitution is executed (which looks for macros that
  32949. +# take arguments), then branch to the quote section. Otherwise,
  32950. +# look for a macro that doesn't take arguments.
  32951. +ac_script='
  32952. +:mline
  32953. +/\\$/{
  32954. + N
  32955. + s,\\\n,,
  32956. + b mline
  32957. +}
  32958. +t clear
  32959. +:clear
  32960. +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  32961. +t quote
  32962. +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  32963. +t quote
  32964. +b any
  32965. +:quote
  32966. +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  32967. +s/\[/\\&/g
  32968. +s/\]/\\&/g
  32969. +s/\$/$$/g
  32970. +H
  32971. +:any
  32972. +${
  32973. + g
  32974. + s/^\n//
  32975. + s/\n/ /g
  32976. + p
  32977. +}
  32978. +'
  32979. +DEFS=`sed -n "$ac_script" confdefs.h`
  32980. -# Whether or not to optimize for fast installation.
  32981. -fast_install=$enable_fast_install
  32982. -# The host system.
  32983. -host_alias=$host_alias
  32984. -host=$host
  32985. -host_os=$host_os
  32986. +ac_libobjs=
  32987. +ac_ltlibobjs=
  32988. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  32989. + # 1. Remove the extension, and $U if already installed.
  32990. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  32991. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  32992. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  32993. + # will be set to the directory where LIBOBJS objects are built.
  32994. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  32995. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  32996. +done
  32997. +LIBOBJS=$ac_libobjs
  32998. -# The build system.
  32999. -build_alias=$build_alias
  33000. -build=$build
  33001. -build_os=$build_os
  33002. +LTLIBOBJS=$ac_ltlibobjs
  33003. -# An echo program that does not interpret backslashes.
  33004. -echo=$lt_echo
  33005. -# The archiver.
  33006. -AR=$lt_AR
  33007. -AR_FLAGS=$lt_AR_FLAGS
  33008. + if test -n "$EXEEXT"; then
  33009. + am__EXEEXT_TRUE=
  33010. + am__EXEEXT_FALSE='#'
  33011. +else
  33012. + am__EXEEXT_TRUE='#'
  33013. + am__EXEEXT_FALSE=
  33014. +fi
  33015. -# A C compiler.
  33016. -LTCC=$lt_LTCC
  33017. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  33018. + as_fn_error "conditional \"AMDEP\" was never defined.
  33019. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  33020. +fi
  33021. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  33022. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  33023. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  33024. +fi
  33025. -# LTCC compiler flags.
  33026. -LTCFLAGS=$lt_LTCFLAGS
  33027. +: ${CONFIG_STATUS=./config.status}
  33028. +ac_write_fail=0
  33029. +ac_clean_files_save=$ac_clean_files
  33030. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  33031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  33032. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  33033. +as_write_fail=0
  33034. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  33035. +#! $SHELL
  33036. +# Generated by $as_me.
  33037. +# Run this file to recreate the current configuration.
  33038. +# Compiler output produced by configure, useful for debugging
  33039. +# configure, is in config.log if it exists.
  33040. -# A language-specific compiler.
  33041. -CC=$lt_compiler_RC
  33042. +debug=false
  33043. +ac_cs_recheck=false
  33044. +ac_cs_silent=false
  33045. -# Is the compiler the GNU C compiler?
  33046. -with_gcc=$GCC_RC
  33047. +SHELL=\${CONFIG_SHELL-$SHELL}
  33048. +export SHELL
  33049. +_ASEOF
  33050. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  33051. +## -------------------- ##
  33052. +## M4sh Initialization. ##
  33053. +## -------------------- ##
  33054. -# An ERE matcher.
  33055. -EGREP=$lt_EGREP
  33056. +# Be more Bourne compatible
  33057. +DUALCASE=1; export DUALCASE # for MKS sh
  33058. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  33059. + emulate sh
  33060. + NULLCMD=:
  33061. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  33062. + # is contrary to our usage. Disable this feature.
  33063. + alias -g '${1+"$@"}'='"$@"'
  33064. + setopt NO_GLOB_SUBST
  33065. +else
  33066. + case `(set -o) 2>/dev/null` in #(
  33067. + *posix*) :
  33068. + set -o posix ;; #(
  33069. + *) :
  33070. + ;;
  33071. +esac
  33072. +fi
  33073. -# The linker used to build libraries.
  33074. -LD=$lt_LD_RC
  33075. -# Whether we need hard or soft links.
  33076. -LN_S=$lt_LN_S
  33077. +as_nl='
  33078. +'
  33079. +export as_nl
  33080. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  33081. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  33082. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  33083. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  33084. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  33085. +# but without wasting forks for bash or zsh.
  33086. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  33087. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  33088. + as_echo='print -r --'
  33089. + as_echo_n='print -rn --'
  33090. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  33091. + as_echo='printf %s\n'
  33092. + as_echo_n='printf %s'
  33093. +else
  33094. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  33095. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  33096. + as_echo_n='/usr/ucb/echo -n'
  33097. + else
  33098. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  33099. + as_echo_n_body='eval
  33100. + arg=$1;
  33101. + case $arg in #(
  33102. + *"$as_nl"*)
  33103. + expr "X$arg" : "X\\(.*\\)$as_nl";
  33104. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  33105. + esac;
  33106. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  33107. + '
  33108. + export as_echo_n_body
  33109. + as_echo_n='sh -c $as_echo_n_body as_echo'
  33110. + fi
  33111. + export as_echo_body
  33112. + as_echo='sh -c $as_echo_body as_echo'
  33113. +fi
  33114. -# A BSD-compatible nm program.
  33115. -NM=$lt_NM
  33116. +# The user is always right.
  33117. +if test "${PATH_SEPARATOR+set}" != set; then
  33118. + PATH_SEPARATOR=:
  33119. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  33120. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  33121. + PATH_SEPARATOR=';'
  33122. + }
  33123. +fi
  33124. -# A symbol stripping program
  33125. -STRIP=$lt_STRIP
  33126. -# Used to examine libraries when file_magic_cmd begins "file"
  33127. -MAGIC_CMD=$MAGIC_CMD
  33128. +# IFS
  33129. +# We need space, tab and new line, in precisely that order. Quoting is
  33130. +# there to prevent editors from complaining about space-tab.
  33131. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  33132. +# splitting by setting IFS to empty value.)
  33133. +IFS=" "" $as_nl"
  33134. -# Used on cygwin: DLL creation program.
  33135. -DLLTOOL="$DLLTOOL"
  33136. +# Find who we are. Look in the path if we contain no directory separator.
  33137. +case $0 in #((
  33138. + *[\\/]* ) as_myself=$0 ;;
  33139. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33140. +for as_dir in $PATH
  33141. +do
  33142. + IFS=$as_save_IFS
  33143. + test -z "$as_dir" && as_dir=.
  33144. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  33145. + done
  33146. +IFS=$as_save_IFS
  33147. -# Used on cygwin: object dumper.
  33148. -OBJDUMP="$OBJDUMP"
  33149. + ;;
  33150. +esac
  33151. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  33152. +# in which case we are not to be found in the path.
  33153. +if test "x$as_myself" = x; then
  33154. + as_myself=$0
  33155. +fi
  33156. +if test ! -f "$as_myself"; then
  33157. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  33158. + exit 1
  33159. +fi
  33160. -# Used on cygwin: assembler.
  33161. -AS="$AS"
  33162. +# Unset variables that we do not need and which cause bugs (e.g. in
  33163. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  33164. +# suppresses any "Segmentation fault" message there. '((' could
  33165. +# trigger a bug in pdksh 5.2.14.
  33166. +for as_var in BASH_ENV ENV MAIL MAILPATH
  33167. +do eval test x\${$as_var+set} = xset \
  33168. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  33169. +done
  33170. +PS1='$ '
  33171. +PS2='> '
  33172. +PS4='+ '
  33173. -# The name of the directory that contains temporary libtool files.
  33174. -objdir=$objdir
  33175. +# NLS nuisances.
  33176. +LC_ALL=C
  33177. +export LC_ALL
  33178. +LANGUAGE=C
  33179. +export LANGUAGE
  33180. -# How to create reloadable object files.
  33181. -reload_flag=$lt_reload_flag
  33182. -reload_cmds=$lt_reload_cmds
  33183. +# CDPATH.
  33184. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  33185. -# How to pass a linker flag through the compiler.
  33186. -wl=$lt_lt_prog_compiler_wl_RC
  33187. -# Object file suffix (normally "o").
  33188. -objext="$ac_objext"
  33189. +# as_fn_error ERROR [LINENO LOG_FD]
  33190. +# ---------------------------------
  33191. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  33192. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  33193. +# script with status $?, using 1 if that was 0.
  33194. +as_fn_error ()
  33195. +{
  33196. + as_status=$?; test $as_status -eq 0 && as_status=1
  33197. + if test "$3"; then
  33198. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  33199. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  33200. + fi
  33201. + $as_echo "$as_me: error: $1" >&2
  33202. + as_fn_exit $as_status
  33203. +} # as_fn_error
  33204. +
  33205. +
  33206. +# as_fn_set_status STATUS
  33207. +# -----------------------
  33208. +# Set $? to STATUS, without forking.
  33209. +as_fn_set_status ()
  33210. +{
  33211. + return $1
  33212. +} # as_fn_set_status
  33213. +
  33214. +# as_fn_exit STATUS
  33215. +# -----------------
  33216. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  33217. +as_fn_exit ()
  33218. +{
  33219. + set +e
  33220. + as_fn_set_status $1
  33221. + exit $1
  33222. +} # as_fn_exit
  33223. +
  33224. +# as_fn_unset VAR
  33225. +# ---------------
  33226. +# Portably unset VAR.
  33227. +as_fn_unset ()
  33228. +{
  33229. + { eval $1=; unset $1;}
  33230. +}
  33231. +as_unset=as_fn_unset
  33232. +# as_fn_append VAR VALUE
  33233. +# ----------------------
  33234. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  33235. +# advantage of any shell optimizations that allow amortized linear growth over
  33236. +# repeated appends, instead of the typical quadratic growth present in naive
  33237. +# implementations.
  33238. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  33239. + eval 'as_fn_append ()
  33240. + {
  33241. + eval $1+=\$2
  33242. + }'
  33243. +else
  33244. + as_fn_append ()
  33245. + {
  33246. + eval $1=\$$1\$2
  33247. + }
  33248. +fi # as_fn_append
  33249. -# Old archive suffix (normally "a").
  33250. -libext="$libext"
  33251. +# as_fn_arith ARG...
  33252. +# ------------------
  33253. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  33254. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  33255. +# must be portable across $(()) and expr.
  33256. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  33257. + eval 'as_fn_arith ()
  33258. + {
  33259. + as_val=$(( $* ))
  33260. + }'
  33261. +else
  33262. + as_fn_arith ()
  33263. + {
  33264. + as_val=`expr "$@" || test $? -eq 1`
  33265. + }
  33266. +fi # as_fn_arith
  33267. -# Shared library suffix (normally ".so").
  33268. -shrext_cmds='$shrext_cmds'
  33269. -# Executable file suffix (normally "").
  33270. -exeext="$exeext"
  33271. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  33272. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  33273. + as_expr=expr
  33274. +else
  33275. + as_expr=false
  33276. +fi
  33277. -# Additional compiler flags for building library objects.
  33278. -pic_flag=$lt_lt_prog_compiler_pic_RC
  33279. -pic_mode=$pic_mode
  33280. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  33281. + as_basename=basename
  33282. +else
  33283. + as_basename=false
  33284. +fi
  33285. -# What is the maximum length of a command?
  33286. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33287. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  33288. + as_dirname=dirname
  33289. +else
  33290. + as_dirname=false
  33291. +fi
  33292. -# Does compiler simultaneously support -c and -o options?
  33293. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  33294. +as_me=`$as_basename -- "$0" ||
  33295. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  33296. + X"$0" : 'X\(//\)$' \| \
  33297. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  33298. +$as_echo X/"$0" |
  33299. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  33300. + s//\1/
  33301. + q
  33302. + }
  33303. + /^X\/\(\/\/\)$/{
  33304. + s//\1/
  33305. + q
  33306. + }
  33307. + /^X\/\(\/\).*/{
  33308. + s//\1/
  33309. + q
  33310. + }
  33311. + s/.*/./; q'`
  33312. -# Must we lock files when doing compilation?
  33313. -need_locks=$lt_need_locks
  33314. +# Avoid depending upon Character Ranges.
  33315. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  33316. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33317. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33318. +as_cr_digits='0123456789'
  33319. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  33320. -# Do we need the lib prefix for modules?
  33321. -need_lib_prefix=$need_lib_prefix
  33322. +ECHO_C= ECHO_N= ECHO_T=
  33323. +case `echo -n x` in #(((((
  33324. +-n*)
  33325. + case `echo 'xy\c'` in
  33326. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  33327. + xy) ECHO_C='\c';;
  33328. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  33329. + ECHO_T=' ';;
  33330. + esac;;
  33331. +*)
  33332. + ECHO_N='-n';;
  33333. +esac
  33334. -# Do we need a version for libraries?
  33335. -need_version=$need_version
  33336. +rm -f conf$$ conf$$.exe conf$$.file
  33337. +if test -d conf$$.dir; then
  33338. + rm -f conf$$.dir/conf$$.file
  33339. +else
  33340. + rm -f conf$$.dir
  33341. + mkdir conf$$.dir 2>/dev/null
  33342. +fi
  33343. +if (echo >conf$$.file) 2>/dev/null; then
  33344. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  33345. + as_ln_s='ln -s'
  33346. + # ... but there are two gotchas:
  33347. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  33348. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  33349. + # In both cases, we have to default to `cp -p'.
  33350. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  33351. + as_ln_s='cp -p'
  33352. + elif ln conf$$.file conf$$ 2>/dev/null; then
  33353. + as_ln_s=ln
  33354. + else
  33355. + as_ln_s='cp -p'
  33356. + fi
  33357. +else
  33358. + as_ln_s='cp -p'
  33359. +fi
  33360. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  33361. +rmdir conf$$.dir 2>/dev/null
  33362. -# Whether dlopen is supported.
  33363. -dlopen_support=$enable_dlopen
  33364. -# Whether dlopen of programs is supported.
  33365. -dlopen_self=$enable_dlopen_self
  33366. +# as_fn_mkdir_p
  33367. +# -------------
  33368. +# Create "$as_dir" as a directory, including parents if necessary.
  33369. +as_fn_mkdir_p ()
  33370. +{
  33371. -# Whether dlopen of statically linked programs is supported.
  33372. -dlopen_self_static=$enable_dlopen_self_static
  33373. + case $as_dir in #(
  33374. + -*) as_dir=./$as_dir;;
  33375. + esac
  33376. + test -d "$as_dir" || eval $as_mkdir_p || {
  33377. + as_dirs=
  33378. + while :; do
  33379. + case $as_dir in #(
  33380. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  33381. + *) as_qdir=$as_dir;;
  33382. + esac
  33383. + as_dirs="'$as_qdir' $as_dirs"
  33384. + as_dir=`$as_dirname -- "$as_dir" ||
  33385. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33386. + X"$as_dir" : 'X\(//\)[^/]' \| \
  33387. + X"$as_dir" : 'X\(//\)$' \| \
  33388. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33389. +$as_echo X"$as_dir" |
  33390. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33391. + s//\1/
  33392. + q
  33393. + }
  33394. + /^X\(\/\/\)[^/].*/{
  33395. + s//\1/
  33396. + q
  33397. + }
  33398. + /^X\(\/\/\)$/{
  33399. + s//\1/
  33400. + q
  33401. + }
  33402. + /^X\(\/\).*/{
  33403. + s//\1/
  33404. + q
  33405. + }
  33406. + s/.*/./; q'`
  33407. + test -d "$as_dir" && break
  33408. + done
  33409. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  33410. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  33411. -# Compiler flag to prevent dynamic linking.
  33412. -link_static_flag=$lt_lt_prog_compiler_static_RC
  33413. -# Compiler flag to turn off builtin functions.
  33414. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  33415. +} # as_fn_mkdir_p
  33416. +if mkdir -p . 2>/dev/null; then
  33417. + as_mkdir_p='mkdir -p "$as_dir"'
  33418. +else
  33419. + test -d ./-p && rmdir ./-p
  33420. + as_mkdir_p=false
  33421. +fi
  33422. -# Compiler flag to allow reflexive dlopens.
  33423. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  33424. +if test -x / >/dev/null 2>&1; then
  33425. + as_test_x='test -x'
  33426. +else
  33427. + if ls -dL / >/dev/null 2>&1; then
  33428. + as_ls_L_option=L
  33429. + else
  33430. + as_ls_L_option=
  33431. + fi
  33432. + as_test_x='
  33433. + eval sh -c '\''
  33434. + if test -d "$1"; then
  33435. + test -d "$1/.";
  33436. + else
  33437. + case $1 in #(
  33438. + -*)set "./$1";;
  33439. + esac;
  33440. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  33441. + ???[sx]*):;;*)false;;esac;fi
  33442. + '\'' sh
  33443. + '
  33444. +fi
  33445. +as_executable_p=$as_test_x
  33446. -# Compiler flag to generate shared objects directly from archives.
  33447. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  33448. +# Sed expression to map a string onto a valid CPP name.
  33449. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  33450. -# Compiler flag to generate thread-safe objects.
  33451. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  33452. +# Sed expression to map a string onto a valid variable name.
  33453. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  33454. -# Library versioning type.
  33455. -version_type=$version_type
  33456. -# Format of library name prefix.
  33457. -libname_spec=$lt_libname_spec
  33458. +exec 6>&1
  33459. +## ----------------------------------- ##
  33460. +## Main body of $CONFIG_STATUS script. ##
  33461. +## ----------------------------------- ##
  33462. +_ASEOF
  33463. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  33464. -# List of archive names. First name is the real one, the rest are links.
  33465. -# The last name is the one that the linker finds with -lNAME.
  33466. -library_names_spec=$lt_library_names_spec
  33467. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33468. +# Save the log message, to keep $0 and so on meaningful, and to
  33469. +# report actual input values of CONFIG_FILES etc. instead of their
  33470. +# values after options handling.
  33471. +ac_log="
  33472. +This file was extended by $as_me, which was
  33473. +generated by GNU Autoconf 2.65. Invocation command line was
  33474. -# The coded name of the library, if different from the real name.
  33475. -soname_spec=$lt_soname_spec
  33476. + CONFIG_FILES = $CONFIG_FILES
  33477. + CONFIG_HEADERS = $CONFIG_HEADERS
  33478. + CONFIG_LINKS = $CONFIG_LINKS
  33479. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  33480. + $ $0 $@
  33481. -# Commands used to build and install an old-style archive.
  33482. -RANLIB=$lt_RANLIB
  33483. -old_archive_cmds=$lt_old_archive_cmds_RC
  33484. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33485. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33486. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  33487. +"
  33488. -# Create an old-style archive from a shared archive.
  33489. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  33490. +_ACEOF
  33491. -# Create a temporary old-style archive to link instead of a shared archive.
  33492. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  33493. +case $ac_config_files in *"
  33494. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  33495. +esac
  33496. -# Commands used to build and install a shared archive.
  33497. -archive_cmds=$lt_archive_cmds_RC
  33498. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  33499. -postinstall_cmds=$lt_postinstall_cmds
  33500. -postuninstall_cmds=$lt_postuninstall_cmds
  33501. -# Commands used to build a loadable module (assumed same as above if empty)
  33502. -module_cmds=$lt_module_cmds_RC
  33503. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  33504. -# Commands to strip libraries.
  33505. -old_striplib=$lt_old_striplib
  33506. -striplib=$lt_striplib
  33507. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33508. +# Files that config.status was made for.
  33509. +config_files="$ac_config_files"
  33510. +config_commands="$ac_config_commands"
  33511. -# Dependencies to place before the objects being linked to create a
  33512. -# shared library.
  33513. -predep_objects=$lt_predep_objects_RC
  33514. -
  33515. -# Dependencies to place after the objects being linked to create a
  33516. -# shared library.
  33517. -postdep_objects=$lt_postdep_objects_RC
  33518. -
  33519. -# Dependencies to place before the objects being linked to create a
  33520. -# shared library.
  33521. -predeps=$lt_predeps_RC
  33522. -
  33523. -# Dependencies to place after the objects being linked to create a
  33524. -# shared library.
  33525. -postdeps=$lt_postdeps_RC
  33526. -
  33527. -# The directories searched by this compiler when creating a shared
  33528. -# library
  33529. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  33530. -
  33531. -# The library search path used internally by the compiler when linking
  33532. -# a shared library.
  33533. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  33534. +_ACEOF
  33535. -# Method to check whether dependent libraries are shared objects.
  33536. -deplibs_check_method=$lt_deplibs_check_method
  33537. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33538. +ac_cs_usage="\
  33539. +\`$as_me' instantiates files and other configuration actions
  33540. +from templates according to the current configuration. Unless the files
  33541. +and actions are specified as TAGs, all are instantiated by default.
  33542. -# Command to use when deplibs_check_method == file_magic.
  33543. -file_magic_cmd=$lt_file_magic_cmd
  33544. +Usage: $0 [OPTION]... [TAG]...
  33545. -# Flag that allows shared libraries with undefined symbols to be built.
  33546. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  33547. + -h, --help print this help, then exit
  33548. + -V, --version print version number and configuration settings, then exit
  33549. + --config print configuration, then exit
  33550. + -q, --quiet, --silent
  33551. + do not print progress messages
  33552. + -d, --debug don't remove temporary files
  33553. + --recheck update $as_me by reconfiguring in the same conditions
  33554. + --file=FILE[:TEMPLATE]
  33555. + instantiate the configuration file FILE
  33556. -# Flag that forces no undefined symbols.
  33557. -no_undefined_flag=$lt_no_undefined_flag_RC
  33558. +Configuration files:
  33559. +$config_files
  33560. -# Commands used to finish a libtool library installation in a directory.
  33561. -finish_cmds=$lt_finish_cmds
  33562. +Configuration commands:
  33563. +$config_commands
  33564. -# Same as above, but a single script fragment to be evaled but not shown.
  33565. -finish_eval=$lt_finish_eval
  33566. +Report bugs to the package provider."
  33567. -# Take the output of nm and produce a listing of raw symbols and C names.
  33568. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33569. +_ACEOF
  33570. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33571. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  33572. +ac_cs_version="\\
  33573. +config.status
  33574. +configured by $0, generated by GNU Autoconf 2.65,
  33575. + with options \\"\$ac_cs_config\\"
  33576. -# Transform the output of nm in a proper C declaration
  33577. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33578. +Copyright (C) 2009 Free Software Foundation, Inc.
  33579. +This config.status script is free software; the Free Software Foundation
  33580. +gives unlimited permission to copy, distribute and modify it."
  33581. -# Transform the output of nm in a C name address pair
  33582. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33583. +ac_pwd='$ac_pwd'
  33584. +srcdir='$srcdir'
  33585. +INSTALL='$INSTALL'
  33586. +MKDIR_P='$MKDIR_P'
  33587. +AWK='$AWK'
  33588. +test -n "\$AWK" || AWK=awk
  33589. +_ACEOF
  33590. -# This is the shared library runtime path variable.
  33591. -runpath_var=$runpath_var
  33592. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33593. +# The default lists apply if the user does not specify any file.
  33594. +ac_need_defaults=:
  33595. +while test $# != 0
  33596. +do
  33597. + case $1 in
  33598. + --*=*)
  33599. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  33600. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  33601. + ac_shift=:
  33602. + ;;
  33603. + *)
  33604. + ac_option=$1
  33605. + ac_optarg=$2
  33606. + ac_shift=shift
  33607. + ;;
  33608. + esac
  33609. -# This is the shared library path variable.
  33610. -shlibpath_var=$shlibpath_var
  33611. + case $ac_option in
  33612. + # Handling of the options.
  33613. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  33614. + ac_cs_recheck=: ;;
  33615. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  33616. + $as_echo "$ac_cs_version"; exit ;;
  33617. + --config | --confi | --conf | --con | --co | --c )
  33618. + $as_echo "$ac_cs_config"; exit ;;
  33619. + --debug | --debu | --deb | --de | --d | -d )
  33620. + debug=: ;;
  33621. + --file | --fil | --fi | --f )
  33622. + $ac_shift
  33623. + case $ac_optarg in
  33624. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33625. + esac
  33626. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  33627. + ac_need_defaults=false;;
  33628. + --he | --h | --help | --hel | -h )
  33629. + $as_echo "$ac_cs_usage"; exit ;;
  33630. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  33631. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  33632. + ac_cs_silent=: ;;
  33633. -# Is shlibpath searched before the hard-coded library search path?
  33634. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33635. + # This is an error.
  33636. + -*) as_fn_error "unrecognized option: \`$1'
  33637. +Try \`$0 --help' for more information." ;;
  33638. -# How to hardcode a shared library path into an executable.
  33639. -hardcode_action=$hardcode_action_RC
  33640. + *) as_fn_append ac_config_targets " $1"
  33641. + ac_need_defaults=false ;;
  33642. -# Whether we should hardcode library paths into libraries.
  33643. -hardcode_into_libs=$hardcode_into_libs
  33644. + esac
  33645. + shift
  33646. +done
  33647. -# Flag to hardcode \$libdir into a binary during linking.
  33648. -# This must work even if \$libdir does not exist.
  33649. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  33650. +ac_configure_extra_args=
  33651. -# If ld is used when linking, flag to hardcode \$libdir into
  33652. -# a binary during linking. This must work even if \$libdir does
  33653. -# not exist.
  33654. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  33655. -
  33656. -# Whether we need a single -rpath flag with a separated argument.
  33657. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  33658. -
  33659. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  33660. -# resulting binary.
  33661. -hardcode_direct=$hardcode_direct_RC
  33662. -
  33663. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  33664. -# resulting binary.
  33665. -hardcode_minus_L=$hardcode_minus_L_RC
  33666. -
  33667. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  33668. -# the resulting binary.
  33669. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  33670. -
  33671. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  33672. -# and all subsequent libraries and executables linked against it.
  33673. -hardcode_automatic=$hardcode_automatic_RC
  33674. +if $ac_cs_silent; then
  33675. + exec 6>/dev/null
  33676. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  33677. +fi
  33678. -# Variables whose values should be saved in libtool wrapper scripts and
  33679. -# restored at relink time.
  33680. -variables_saved_for_relink="$variables_saved_for_relink"
  33681. +_ACEOF
  33682. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33683. +if \$ac_cs_recheck; then
  33684. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  33685. + shift
  33686. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  33687. + CONFIG_SHELL='$SHELL'
  33688. + export CONFIG_SHELL
  33689. + exec "\$@"
  33690. +fi
  33691. -# Whether libtool must link a program against all its dependency libraries.
  33692. -link_all_deplibs=$link_all_deplibs_RC
  33693. +_ACEOF
  33694. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33695. +exec 5>>config.log
  33696. +{
  33697. + echo
  33698. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  33699. +## Running $as_me. ##
  33700. +_ASBOX
  33701. + $as_echo "$ac_log"
  33702. +} >&5
  33703. -# Compile-time system search path for libraries
  33704. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  33705. +_ACEOF
  33706. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33707. +#
  33708. +# INIT-COMMANDS
  33709. +#
  33710. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  33711. -# Run-time system search path for libraries
  33712. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  33713. -# Fix the shell variable \$srcfile for the compiler.
  33714. -fix_srcfile_path=$lt_fix_srcfile_path
  33715. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  33716. +# if CDPATH is set.
  33717. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  33718. -# Set to yes if exported symbols are required.
  33719. -always_export_symbols=$always_export_symbols_RC
  33720. +sed_quote_subst='$sed_quote_subst'
  33721. +double_quote_subst='$double_quote_subst'
  33722. +delay_variable_subst='$delay_variable_subst'
  33723. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  33724. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  33725. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  33726. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  33727. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  33728. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  33729. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  33730. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  33731. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  33732. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  33733. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  33734. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  33735. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  33736. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  33737. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  33738. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  33739. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  33740. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  33741. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  33742. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  33743. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  33744. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  33745. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  33746. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  33747. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  33748. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  33749. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  33750. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33751. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  33752. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  33753. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  33754. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  33755. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  33756. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  33757. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  33758. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33759. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33760. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33761. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  33762. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  33763. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  33764. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  33765. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  33766. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  33767. +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"`'
  33768. +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"`'
  33769. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  33770. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  33771. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  33772. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  33773. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  33774. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  33775. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  33776. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  33777. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  33778. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  33779. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  33780. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  33781. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  33782. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  33783. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  33784. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  33785. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33786. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33787. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  33788. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  33789. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33790. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33791. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  33792. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33793. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33794. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33795. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33796. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33797. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33798. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  33799. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  33800. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  33801. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33802. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  33803. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  33804. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  33805. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  33806. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  33807. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  33808. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  33809. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  33810. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  33811. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  33812. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  33813. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33814. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  33815. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  33816. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33817. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33818. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  33819. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  33820. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  33821. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  33822. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  33823. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  33824. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  33825. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33826. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33827. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33828. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33829. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33830. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  33831. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  33832. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  33833. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33834. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  33835. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  33836. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  33837. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  33838. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  33839. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  33840. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  33841. +
  33842. +LTCC='$LTCC'
  33843. +LTCFLAGS='$LTCFLAGS'
  33844. +compiler='$compiler_DEFAULT'
  33845. +
  33846. +# Quote evaled strings.
  33847. +for var in SED \
  33848. +GREP \
  33849. +EGREP \
  33850. +FGREP \
  33851. +LD \
  33852. +NM \
  33853. +LN_S \
  33854. +lt_SP2NL \
  33855. +lt_NL2SP \
  33856. +reload_flag \
  33857. +OBJDUMP \
  33858. +deplibs_check_method \
  33859. +file_magic_cmd \
  33860. +AR \
  33861. +AR_FLAGS \
  33862. +STRIP \
  33863. +RANLIB \
  33864. +CC \
  33865. +CFLAGS \
  33866. +compiler \
  33867. +lt_cv_sys_global_symbol_pipe \
  33868. +lt_cv_sys_global_symbol_to_cdecl \
  33869. +lt_cv_sys_global_symbol_to_c_name_address \
  33870. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  33871. +SHELL \
  33872. +ECHO \
  33873. +lt_prog_compiler_no_builtin_flag \
  33874. +lt_prog_compiler_wl \
  33875. +lt_prog_compiler_pic \
  33876. +lt_prog_compiler_static \
  33877. +lt_cv_prog_compiler_c_o \
  33878. +need_locks \
  33879. +DSYMUTIL \
  33880. +NMEDIT \
  33881. +LIPO \
  33882. +OTOOL \
  33883. +OTOOL64 \
  33884. +shrext_cmds \
  33885. +export_dynamic_flag_spec \
  33886. +whole_archive_flag_spec \
  33887. +compiler_needs_object \
  33888. +with_gnu_ld \
  33889. +allow_undefined_flag \
  33890. +no_undefined_flag \
  33891. +hardcode_libdir_flag_spec \
  33892. +hardcode_libdir_flag_spec_ld \
  33893. +hardcode_libdir_separator \
  33894. +fix_srcfile_path \
  33895. +exclude_expsyms \
  33896. +include_expsyms \
  33897. +file_list_spec \
  33898. +variables_saved_for_relink \
  33899. +libname_spec \
  33900. +library_names_spec \
  33901. +soname_spec \
  33902. +finish_eval \
  33903. +old_striplib \
  33904. +striplib; do
  33905. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  33906. + *[\\\\\\\`\\"\\\$]*)
  33907. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  33908. + ;;
  33909. + *)
  33910. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33911. + ;;
  33912. + esac
  33913. +done
  33914. -# The commands to list exported symbols.
  33915. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  33916. +# Double-quote double-evaled strings.
  33917. +for var in reload_cmds \
  33918. +old_postinstall_cmds \
  33919. +old_postuninstall_cmds \
  33920. +old_archive_cmds \
  33921. +extract_expsyms_cmds \
  33922. +old_archive_from_new_cmds \
  33923. +old_archive_from_expsyms_cmds \
  33924. +archive_cmds \
  33925. +archive_expsym_cmds \
  33926. +module_cmds \
  33927. +module_expsym_cmds \
  33928. +export_symbols_cmds \
  33929. +prelink_cmds \
  33930. +postinstall_cmds \
  33931. +postuninstall_cmds \
  33932. +finish_cmds \
  33933. +sys_lib_search_path_spec \
  33934. +sys_lib_dlsearch_path_spec; do
  33935. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  33936. + *[\\\\\\\`\\"\\\$]*)
  33937. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  33938. + ;;
  33939. + *)
  33940. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33941. + ;;
  33942. + esac
  33943. +done
  33944. -# The commands to extract the exported symbol list from a shared archive.
  33945. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  33946. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  33947. +case \$lt_ECHO in
  33948. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  33949. + ;;
  33950. +esac
  33951. -# Symbols that should not be listed in the preloaded symbols.
  33952. -exclude_expsyms=$lt_exclude_expsyms_RC
  33953. +ac_aux_dir='$ac_aux_dir'
  33954. +xsi_shell='$xsi_shell'
  33955. +lt_shell_append='$lt_shell_append'
  33956. -# Symbols that must always be exported.
  33957. -include_expsyms=$lt_include_expsyms_RC
  33958. +# See if we are running on zsh, and set the options which allow our
  33959. +# commands through without removal of \ escapes INIT.
  33960. +if test -n "\${ZSH_VERSION+set}" ; then
  33961. + setopt NO_GLOB_SUBST
  33962. +fi
  33963. -# ### END LIBTOOL TAG CONFIG: $tagname
  33964. -__EOF__
  33965. + PACKAGE='$PACKAGE'
  33966. + VERSION='$VERSION'
  33967. + TIMESTAMP='$TIMESTAMP'
  33968. + RM='$RM'
  33969. + ofile='$ofile'
  33970. -else
  33971. - # If there is no Makefile yet, we rely on a make rule to execute
  33972. - # `config.status --recheck' to rerun these tests and create the
  33973. - # libtool script then.
  33974. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33975. - if test -f "$ltmain_in"; then
  33976. - test -f Makefile && make "$ltmain"
  33977. - fi
  33978. -fi
  33979. -ac_ext=c
  33980. -ac_cpp='$CPP $CPPFLAGS'
  33981. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33982. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33983. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33984. +_ACEOF
  33985. -CC="$lt_save_CC"
  33986. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33987. - ;;
  33988. +# Handling of arguments.
  33989. +for ac_config_target in $ac_config_targets
  33990. +do
  33991. + case $ac_config_target in
  33992. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  33993. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  33994. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  33995. - *)
  33996. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  33997. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  33998. - { (exit 1); exit 1; }; }
  33999. - ;;
  34000. - esac
  34001. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  34002. + esac
  34003. +done
  34004. - # Append the new tag name to the list of available tags.
  34005. - if test -n "$tagname" ; then
  34006. - available_tags="$available_tags $tagname"
  34007. - fi
  34008. - fi
  34009. - done
  34010. - IFS="$lt_save_ifs"
  34011. - # Now substitute the updated list of available tags.
  34012. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  34013. - mv "${ofile}T" "$ofile"
  34014. - chmod +x "$ofile"
  34015. - else
  34016. - rm -f "${ofile}T"
  34017. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  34018. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  34019. - { (exit 1); exit 1; }; }
  34020. - fi
  34021. +# If the user did not use the arguments to specify the items to instantiate,
  34022. +# then the envvar interface is used. Set only those that are not.
  34023. +# We use the long form for the default assignment because of an extremely
  34024. +# bizarre bug on SunOS 4.1.3.
  34025. +if $ac_need_defaults; then
  34026. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  34027. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  34028. fi
  34029. +# Have a temporary directory for convenience. Make it in the build tree
  34030. +# simply because there is no reason against having it here, and in addition,
  34031. +# creating and moving files from /tmp can sometimes cause problems.
  34032. +# Hook for its removal unless debugging.
  34033. +# Note that there is a small window in which the directory will not be cleaned:
  34034. +# after its creation but before its name has been assigned to `$tmp'.
  34035. +$debug ||
  34036. +{
  34037. + tmp=
  34038. + trap 'exit_status=$?
  34039. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  34040. +' 0
  34041. + trap 'as_fn_exit 1' 1 2 13 15
  34042. +}
  34043. +# Create a (secure) tmp directory for tmp files.
  34044. +{
  34045. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  34046. + test -n "$tmp" && test -d "$tmp"
  34047. +} ||
  34048. +{
  34049. + tmp=./conf$$-$RANDOM
  34050. + (umask 077 && mkdir "$tmp")
  34051. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  34052. -# This can be used to rebuild libtool when needed
  34053. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  34054. -
  34055. -# Always use our own libtool.
  34056. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  34057. -
  34058. -# Prevent multiple expansion
  34059. +# Set up the scripts for CONFIG_FILES section.
  34060. +# No need to generate them if there are no CONFIG_FILES.
  34061. +# This happens for instance with `./config.status config.h'.
  34062. +if test -n "$CONFIG_FILES"; then
  34063. +ac_cr=`echo X | tr X '\015'`
  34064. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  34065. +# But we know of no other shell where ac_cr would be empty at this
  34066. +# point, so we can use a bashism as a fallback.
  34067. +if test "x$ac_cr" = x; then
  34068. + eval ac_cr=\$\'\\r\'
  34069. +fi
  34070. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  34071. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  34072. + ac_cs_awk_cr='\r'
  34073. +else
  34074. + ac_cs_awk_cr=$ac_cr
  34075. +fi
  34076. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  34077. +_ACEOF
  34078. +{
  34079. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  34080. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  34081. + echo "_ACEOF"
  34082. +} >conf$$subs.sh ||
  34083. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  34084. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  34085. +ac_delim='%!_!# '
  34086. +for ac_last_try in false false false false false :; do
  34087. + . ./conf$$subs.sh ||
  34088. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  34089. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  34090. + if test $ac_delim_n = $ac_delim_num; then
  34091. + break
  34092. + elif $ac_last_try; then
  34093. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  34094. + else
  34095. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  34096. + fi
  34097. +done
  34098. +rm -f conf$$subs.sh
  34099. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34100. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  34101. +_ACEOF
  34102. +sed -n '
  34103. +h
  34104. +s/^/S["/; s/!.*/"]=/
  34105. +p
  34106. +g
  34107. +s/^[^!]*!//
  34108. +:repl
  34109. +t repl
  34110. +s/'"$ac_delim"'$//
  34111. +t delim
  34112. +:nl
  34113. +h
  34114. +s/\(.\{148\}\)..*/\1/
  34115. +t more1
  34116. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  34117. +p
  34118. +n
  34119. +b repl
  34120. +:more1
  34121. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  34122. +p
  34123. +g
  34124. +s/.\{148\}//
  34125. +t nl
  34126. +:delim
  34127. +h
  34128. +s/\(.\{148\}\)..*/\1/
  34129. +t more2
  34130. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  34131. +p
  34132. +b
  34133. +:more2
  34134. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  34135. +p
  34136. +g
  34137. +s/.\{148\}//
  34138. +t delim
  34139. +' <conf$$subs.awk | sed '
  34140. +/^[^""]/{
  34141. + N
  34142. + s/\n//
  34143. +}
  34144. +' >>$CONFIG_STATUS || ac_write_fail=1
  34145. +rm -f conf$$subs.awk
  34146. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34147. +_ACAWK
  34148. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  34149. + for (key in S) S_is_set[key] = 1
  34150. + FS = ""
  34151. +
  34152. +}
  34153. +{
  34154. + line = $ 0
  34155. + nfields = split(line, field, "@")
  34156. + substed = 0
  34157. + len = length(field[1])
  34158. + for (i = 2; i < nfields; i++) {
  34159. + key = field[i]
  34160. + keylen = length(key)
  34161. + if (S_is_set[key]) {
  34162. + value = S[key]
  34163. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  34164. + len += length(value) + length(field[++i])
  34165. + substed = 1
  34166. + } else
  34167. + len += 1 + keylen
  34168. + }
  34169. + print line
  34170. +}
  34171. +_ACAWK
  34172. +_ACEOF
  34173. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34174. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  34175. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  34176. +else
  34177. + cat
  34178. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  34179. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  34180. +_ACEOF
  34181. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  34182. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  34183. +# trailing colons and then remove the whole line if VPATH becomes empty
  34184. +# (actually we leave an empty line to preserve line numbers).
  34185. +if test "x$srcdir" = x.; then
  34186. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  34187. +s/:*\$(srcdir):*/:/
  34188. +s/:*\${srcdir}:*/:/
  34189. +s/:*@srcdir@:*/:/
  34190. +s/^\([^=]*=[ ]*\):*/\1/
  34191. +s/:*$//
  34192. +s/^[^=]*=[ ]*$//
  34193. +}'
  34194. +fi
  34195. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34196. +fi # test -n "$CONFIG_FILES"
  34197. +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  34198. +shift
  34199. +for ac_tag
  34200. +do
  34201. + case $ac_tag in
  34202. + :[FHLC]) ac_mode=$ac_tag; continue;;
  34203. + esac
  34204. + case $ac_mode$ac_tag in
  34205. + :[FHL]*:*);;
  34206. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  34207. + :[FH]-) ac_tag=-:-;;
  34208. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  34209. + esac
  34210. + ac_save_IFS=$IFS
  34211. + IFS=:
  34212. + set x $ac_tag
  34213. + IFS=$ac_save_IFS
  34214. + shift
  34215. + ac_file=$1
  34216. + shift
  34217. + case $ac_mode in
  34218. + :L) ac_source=$1;;
  34219. + :[FH])
  34220. + ac_file_inputs=
  34221. + for ac_f
  34222. + do
  34223. + case $ac_f in
  34224. + -) ac_f="$tmp/stdin";;
  34225. + *) # Look for the file first in the build tree, then in the source tree
  34226. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  34227. + # because $ac_f cannot contain `:'.
  34228. + test -f "$ac_f" ||
  34229. + case $ac_f in
  34230. + [\\/$]*) false;;
  34231. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  34232. + esac ||
  34233. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  34234. + esac
  34235. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  34236. + as_fn_append ac_file_inputs " '$ac_f'"
  34237. + done
  34238. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  34239. + # use $as_me), people would be surprised to read:
  34240. + # /* config.h. Generated by config.status. */
  34241. + configure_input='Generated from '`
  34242. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  34243. + `' by configure.'
  34244. + if test x"$ac_file" != x-; then
  34245. + configure_input="$ac_file. $configure_input"
  34246. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  34247. +$as_echo "$as_me: creating $ac_file" >&6;}
  34248. + fi
  34249. + # Neutralize special characters interpreted by sed in replacement strings.
  34250. + case $configure_input in #(
  34251. + *\&* | *\|* | *\\* )
  34252. + ac_sed_conf_input=`$as_echo "$configure_input" |
  34253. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  34254. + *) ac_sed_conf_input=$configure_input;;
  34255. + esac
  34256. + case $ac_tag in
  34257. + *:-:* | *:-) cat >"$tmp/stdin" \
  34258. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  34259. + esac
  34260. + ;;
  34261. + esac
  34262. + ac_dir=`$as_dirname -- "$ac_file" ||
  34263. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34264. + X"$ac_file" : 'X\(//\)[^/]' \| \
  34265. + X"$ac_file" : 'X\(//\)$' \| \
  34266. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  34267. +$as_echo X"$ac_file" |
  34268. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34269. + s//\1/
  34270. + q
  34271. + }
  34272. + /^X\(\/\/\)[^/].*/{
  34273. + s//\1/
  34274. + q
  34275. + }
  34276. + /^X\(\/\/\)$/{
  34277. + s//\1/
  34278. + q
  34279. + }
  34280. + /^X\(\/\).*/{
  34281. + s//\1/
  34282. + q
  34283. + }
  34284. + s/.*/./; q'`
  34285. + as_dir="$ac_dir"; as_fn_mkdir_p
  34286. + ac_builddir=.
  34287. +case "$ac_dir" in
  34288. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34289. +*)
  34290. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  34291. + # A ".." for each directory in $ac_dir_suffix.
  34292. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  34293. + case $ac_top_builddir_sub in
  34294. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34295. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  34296. + esac ;;
  34297. +esac
  34298. +ac_abs_top_builddir=$ac_pwd
  34299. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  34300. +# for backward compatibility:
  34301. +ac_top_builddir=$ac_top_build_prefix
  34302. +case $srcdir in
  34303. + .) # We are building in place.
  34304. + ac_srcdir=.
  34305. + ac_top_srcdir=$ac_top_builddir_sub
  34306. + ac_abs_top_srcdir=$ac_pwd ;;
  34307. + [\\/]* | ?:[\\/]* ) # Absolute name.
  34308. + ac_srcdir=$srcdir$ac_dir_suffix;
  34309. + ac_top_srcdir=$srcdir
  34310. + ac_abs_top_srcdir=$srcdir ;;
  34311. + *) # Relative name.
  34312. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  34313. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  34314. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  34315. +esac
  34316. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  34317. + case $ac_mode in
  34318. + :F)
  34319. + #
  34320. + # CONFIG_FILE
  34321. + #
  34322. + case $INSTALL in
  34323. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  34324. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  34325. + esac
  34326. + ac_MKDIR_P=$MKDIR_P
  34327. + case $MKDIR_P in
  34328. + [\\/$]* | ?:[\\/]* ) ;;
  34329. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  34330. + esac
  34331. +_ACEOF
  34332. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34333. +# If the template does not know about datarootdir, expand it.
  34334. +# FIXME: This hack should be removed a few years after 2.60.
  34335. +ac_datarootdir_hack=; ac_datarootdir_seen=
  34336. +ac_sed_dataroot='
  34337. +/datarootdir/ {
  34338. + p
  34339. + q
  34340. +}
  34341. +/@datadir@/p
  34342. +/@docdir@/p
  34343. +/@infodir@/p
  34344. +/@localedir@/p
  34345. +/@mandir@/p'
  34346. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  34347. +*datarootdir*) ac_datarootdir_seen=yes;;
  34348. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  34349. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  34350. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  34351. +_ACEOF
  34352. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34353. + ac_datarootdir_hack='
  34354. + s&@datadir@&$datadir&g
  34355. + s&@docdir@&$docdir&g
  34356. + s&@infodir@&$infodir&g
  34357. + s&@localedir@&$localedir&g
  34358. + s&@mandir@&$mandir&g
  34359. + s&\\\${datarootdir}&$datarootdir&g' ;;
  34360. +esac
  34361. +_ACEOF
  34362. -for ac_func in strndup
  34363. -do
  34364. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  34365. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  34366. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  34367. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  34368. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34369. -else
  34370. - cat >conftest.$ac_ext <<_ACEOF
  34371. -/* confdefs.h. */
  34372. +# Neutralize VPATH when `$srcdir' = `.'.
  34373. +# Shell code in configure.ac might set extrasub.
  34374. +# FIXME: do we really want to maintain this feature?
  34375. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34376. +ac_sed_extra="$ac_vpsub
  34377. +$extrasub
  34378. _ACEOF
  34379. -cat confdefs.h >>conftest.$ac_ext
  34380. -cat >>conftest.$ac_ext <<_ACEOF
  34381. -/* end confdefs.h. */
  34382. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  34383. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34384. -#define $ac_func innocuous_$ac_func
  34385. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34386. +:t
  34387. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  34388. +s|@configure_input@|$ac_sed_conf_input|;t t
  34389. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  34390. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  34391. +s&@srcdir@&$ac_srcdir&;t t
  34392. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  34393. +s&@top_srcdir@&$ac_top_srcdir&;t t
  34394. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  34395. +s&@builddir@&$ac_builddir&;t t
  34396. +s&@abs_builddir@&$ac_abs_builddir&;t t
  34397. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  34398. +s&@INSTALL@&$ac_INSTALL&;t t
  34399. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  34400. +$ac_datarootdir_hack
  34401. +"
  34402. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  34403. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  34404. -/* System header to define __stub macros and hopefully few prototypes,
  34405. - which can conflict with char $ac_func (); below.
  34406. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34407. - <limits.h> exists even on freestanding compilers. */
  34408. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  34409. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  34410. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  34411. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  34412. +which seems to be undefined. Please make sure it is defined." >&5
  34413. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  34414. +which seems to be undefined. Please make sure it is defined." >&2;}
  34415. -#ifdef __STDC__
  34416. -# include <limits.h>
  34417. -#else
  34418. -# include <assert.h>
  34419. -#endif
  34420. + rm -f "$tmp/stdin"
  34421. + case $ac_file in
  34422. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  34423. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  34424. + esac \
  34425. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  34426. + ;;
  34427. -#undef $ac_func
  34428. -/* Override any GCC internal prototype to avoid an error.
  34429. - Use char because int might match the return type of a GCC
  34430. - builtin and then its argument prototype would still apply. */
  34431. -#ifdef __cplusplus
  34432. -extern "C"
  34433. -#endif
  34434. -char $ac_func ();
  34435. -/* The GNU C library defines this for functions which it implements
  34436. - to always fail with ENOSYS. Some functions are actually named
  34437. - something starting with __ and the normal name is an alias. */
  34438. -#if defined __stub_$ac_func || defined __stub___$ac_func
  34439. -choke me
  34440. -#endif
  34441. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  34442. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  34443. + ;;
  34444. + esac
  34445. -int
  34446. -main ()
  34447. -{
  34448. -return $ac_func ();
  34449. - ;
  34450. - return 0;
  34451. +
  34452. + case $ac_file$ac_mode in
  34453. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  34454. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  34455. + # are listed without --file. Let's play safe and only enable the eval
  34456. + # if we detect the quoting.
  34457. + case $CONFIG_FILES in
  34458. + *\'*) eval set x "$CONFIG_FILES" ;;
  34459. + *) set x $CONFIG_FILES ;;
  34460. + esac
  34461. + shift
  34462. + for mf
  34463. + do
  34464. + # Strip MF so we end up with the name of the file.
  34465. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  34466. + # Check whether this is an Automake generated Makefile or not.
  34467. + # We used to match only the files named `Makefile.in', but
  34468. + # some people rename them; so instead we look at the file content.
  34469. + # Grep'ing the first line is not enough: some people post-process
  34470. + # each Makefile.in and add a new line on top of each file to say so.
  34471. + # Grep'ing the whole file is not good either: AIX grep has a line
  34472. + # limit of 2048, but all sed's we know have understand at least 4000.
  34473. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  34474. + dirpart=`$as_dirname -- "$mf" ||
  34475. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34476. + X"$mf" : 'X\(//\)[^/]' \| \
  34477. + X"$mf" : 'X\(//\)$' \| \
  34478. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  34479. +$as_echo X"$mf" |
  34480. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34481. + s//\1/
  34482. + q
  34483. + }
  34484. + /^X\(\/\/\)[^/].*/{
  34485. + s//\1/
  34486. + q
  34487. + }
  34488. + /^X\(\/\/\)$/{
  34489. + s//\1/
  34490. + q
  34491. + }
  34492. + /^X\(\/\).*/{
  34493. + s//\1/
  34494. + q
  34495. + }
  34496. + s/.*/./; q'`
  34497. + else
  34498. + continue
  34499. + fi
  34500. + # Extract the definition of DEPDIR, am__include, and am__quote
  34501. + # from the Makefile without running `make'.
  34502. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  34503. + test -z "$DEPDIR" && continue
  34504. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  34505. + test -z "am__include" && continue
  34506. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  34507. + # When using ansi2knr, U may be empty or an underscore; expand it
  34508. + U=`sed -n 's/^U = //p' < "$mf"`
  34509. + # Find all dependency output files, they are included files with
  34510. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  34511. + # simplest approach to changing $(DEPDIR) to its actual value in the
  34512. + # expansion.
  34513. + for file in `sed -n "
  34514. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  34515. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  34516. + # Make sure the directory exists.
  34517. + test -f "$dirpart/$file" && continue
  34518. + fdir=`$as_dirname -- "$file" ||
  34519. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34520. + X"$file" : 'X\(//\)[^/]' \| \
  34521. + X"$file" : 'X\(//\)$' \| \
  34522. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  34523. +$as_echo X"$file" |
  34524. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34525. + s//\1/
  34526. + q
  34527. + }
  34528. + /^X\(\/\/\)[^/].*/{
  34529. + s//\1/
  34530. + q
  34531. + }
  34532. + /^X\(\/\/\)$/{
  34533. + s//\1/
  34534. + q
  34535. + }
  34536. + /^X\(\/\).*/{
  34537. + s//\1/
  34538. + q
  34539. + }
  34540. + s/.*/./; q'`
  34541. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  34542. + # echo "creating $dirpart/$file"
  34543. + echo '# dummy' > "$dirpart/$file"
  34544. + done
  34545. + done
  34546. }
  34547. -_ACEOF
  34548. -rm -f conftest.$ac_objext conftest$ac_exeext
  34549. -if { (ac_try="$ac_link"
  34550. -case "(($ac_try" in
  34551. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34552. - *) ac_try_echo=$ac_try;;
  34553. -esac
  34554. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34555. - (eval "$ac_link") 2>conftest.er1
  34556. - ac_status=$?
  34557. - grep -v '^ *+' conftest.er1 >conftest.err
  34558. - rm -f conftest.er1
  34559. - cat conftest.err >&5
  34560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34561. - (exit $ac_status); } && {
  34562. - test -z "$ac_c_werror_flag" ||
  34563. - test ! -s conftest.err
  34564. - } && test -s conftest$ac_exeext &&
  34565. - $as_test_x conftest$ac_exeext; then
  34566. - eval "$as_ac_var=yes"
  34567. -else
  34568. - echo "$as_me: failed program was:" >&5
  34569. -sed 's/^/| /' conftest.$ac_ext >&5
  34570. -
  34571. - eval "$as_ac_var=no"
  34572. -fi
  34573. -
  34574. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34575. - conftest$ac_exeext conftest.$ac_ext
  34576. -fi
  34577. -ac_res=`eval echo '${'$as_ac_var'}'`
  34578. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  34579. -echo "${ECHO_T}$ac_res" >&6; }
  34580. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  34581. - cat >>confdefs.h <<_ACEOF
  34582. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  34583. -_ACEOF
  34584. + ;;
  34585. + "libtool":C)
  34586. -fi
  34587. -done
  34588. + # See if we are running on zsh, and set the options which allow our
  34589. + # commands through without removal of \ escapes.
  34590. + if test -n "${ZSH_VERSION+set}" ; then
  34591. + setopt NO_GLOB_SUBST
  34592. + fi
  34593. + cfgfile="${ofile}T"
  34594. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  34595. + $RM "$cfgfile"
  34596. -ac_config_files="$ac_config_files Makefile"
  34597. + cat <<_LT_EOF >> "$cfgfile"
  34598. +#! $SHELL
  34599. -cat >confcache <<\_ACEOF
  34600. -# This file is a shell script that caches the results of configure
  34601. -# tests run on this system so they can be shared between configure
  34602. -# scripts and configure runs, see configure's option --config-cache.
  34603. -# It is not useful on other systems. If it contains results you don't
  34604. -# want to keep, you may remove or edit it.
  34605. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34606. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  34607. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34608. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34609. #
  34610. -# config.status only pays attention to the cache file if you give it
  34611. -# the --recheck option to rerun configure.
  34612. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34613. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  34614. +# Written by Gordon Matzigkeit, 1996
  34615. +#
  34616. +# This file is part of GNU Libtool.
  34617. +#
  34618. +# GNU Libtool is free software; you can redistribute it and/or
  34619. +# modify it under the terms of the GNU General Public License as
  34620. +# published by the Free Software Foundation; either version 2 of
  34621. +# the License, or (at your option) any later version.
  34622. +#
  34623. +# As a special exception to the GNU General Public License,
  34624. +# if you distribute this file as part of a program or library that
  34625. +# is built using GNU Libtool, you may include this file under the
  34626. +# same distribution terms that you use for the rest of that program.
  34627. +#
  34628. +# GNU Libtool is distributed in the hope that it will be useful,
  34629. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  34630. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34631. +# GNU General Public License for more details.
  34632. #
  34633. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  34634. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  34635. -# following values.
  34636. -
  34637. -_ACEOF
  34638. +# You should have received a copy of the GNU General Public License
  34639. +# along with GNU Libtool; see the file COPYING. If not, a copy
  34640. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  34641. +# obtained by writing to the Free Software Foundation, Inc.,
  34642. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34643. -# The following way of writing the cache mishandles newlines in values,
  34644. -# but we know of no workaround that is simple, portable, and efficient.
  34645. -# So, we kill variables containing newlines.
  34646. -# Ultrix sh set writes to stderr and can't be redirected directly,
  34647. -# and sets the high bit in the cache file unless we assign to the vars.
  34648. -(
  34649. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  34650. - eval ac_val=\$$ac_var
  34651. - case $ac_val in #(
  34652. - *${as_nl}*)
  34653. - case $ac_var in #(
  34654. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  34655. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  34656. - esac
  34657. - case $ac_var in #(
  34658. - _ | IFS | as_nl) ;; #(
  34659. - *) $as_unset $ac_var ;;
  34660. - esac ;;
  34661. - esac
  34662. - done
  34663. - (set) 2>&1 |
  34664. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  34665. - *${as_nl}ac_space=\ *)
  34666. - # `set' does not quote correctly, so add quotes (double-quote
  34667. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  34668. - sed -n \
  34669. - "s/'/'\\\\''/g;
  34670. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  34671. - ;; #(
  34672. - *)
  34673. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  34674. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  34675. - ;;
  34676. - esac |
  34677. - sort
  34678. -) |
  34679. - sed '
  34680. - /^ac_cv_env_/b end
  34681. - t clear
  34682. - :clear
  34683. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  34684. - t end
  34685. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  34686. - :end' >>confcache
  34687. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  34688. - if test -w "$cache_file"; then
  34689. - test "x$cache_file" != "x/dev/null" &&
  34690. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  34691. -echo "$as_me: updating cache $cache_file" >&6;}
  34692. - cat confcache >$cache_file
  34693. - else
  34694. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  34695. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  34696. - fi
  34697. -fi
  34698. -rm -f confcache
  34699. +# The names of the tagged configurations supported by this script.
  34700. +available_tags=""
  34701. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  34702. -# Let make expand exec_prefix.
  34703. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  34704. +# ### BEGIN LIBTOOL CONFIG
  34705. -# Transform confdefs.h into DEFS.
  34706. -# Protect against shell expansion while executing Makefile rules.
  34707. -# Protect against Makefile macro expansion.
  34708. -#
  34709. -# If the first sed substitution is executed (which looks for macros that
  34710. -# take arguments), then branch to the quote section. Otherwise,
  34711. -# look for a macro that doesn't take arguments.
  34712. -ac_script='
  34713. -t clear
  34714. -:clear
  34715. -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  34716. -t quote
  34717. -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  34718. -t quote
  34719. -b any
  34720. -:quote
  34721. -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  34722. -s/\[/\\&/g
  34723. -s/\]/\\&/g
  34724. -s/\$/$$/g
  34725. -H
  34726. -:any
  34727. -${
  34728. - g
  34729. - s/^\n//
  34730. - s/\n/ /g
  34731. - p
  34732. -}
  34733. -'
  34734. -DEFS=`sed -n "$ac_script" confdefs.h`
  34735. +# Which release of libtool.m4 was used?
  34736. +macro_version=$macro_version
  34737. +macro_revision=$macro_revision
  34738. +# Whether or not to build shared libraries.
  34739. +build_libtool_libs=$enable_shared
  34740. -ac_libobjs=
  34741. -ac_ltlibobjs=
  34742. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  34743. - # 1. Remove the extension, and $U if already installed.
  34744. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  34745. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  34746. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  34747. - # will be set to the directory where LIBOBJS objects are built.
  34748. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  34749. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  34750. -done
  34751. -LIBOBJS=$ac_libobjs
  34752. +# Whether or not to build static libraries.
  34753. +build_old_libs=$enable_static
  34754. -LTLIBOBJS=$ac_ltlibobjs
  34755. +# What type of objects to build.
  34756. +pic_mode=$pic_mode
  34757. +# Whether or not to optimize for fast installation.
  34758. +fast_install=$enable_fast_install
  34759. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  34760. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  34761. -Usually this means the macro was only invoked conditionally." >&5
  34762. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  34763. -Usually this means the macro was only invoked conditionally." >&2;}
  34764. - { (exit 1); exit 1; }; }
  34765. -fi
  34766. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  34767. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  34768. -Usually this means the macro was only invoked conditionally." >&5
  34769. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  34770. -Usually this means the macro was only invoked conditionally." >&2;}
  34771. - { (exit 1); exit 1; }; }
  34772. -fi
  34773. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  34774. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  34775. -Usually this means the macro was only invoked conditionally." >&5
  34776. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  34777. -Usually this means the macro was only invoked conditionally." >&2;}
  34778. - { (exit 1); exit 1; }; }
  34779. -fi
  34780. +# The host system.
  34781. +host_alias=$host_alias
  34782. +host=$host
  34783. +host_os=$host_os
  34784. -: ${CONFIG_STATUS=./config.status}
  34785. -ac_clean_files_save=$ac_clean_files
  34786. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  34787. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  34788. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  34789. -cat >$CONFIG_STATUS <<_ACEOF
  34790. -#! $SHELL
  34791. -# Generated by $as_me.
  34792. -# Run this file to recreate the current configuration.
  34793. -# Compiler output produced by configure, useful for debugging
  34794. -# configure, is in config.log if it exists.
  34795. +# The build system.
  34796. +build_alias=$build_alias
  34797. +build=$build
  34798. +build_os=$build_os
  34799. -debug=false
  34800. -ac_cs_recheck=false
  34801. -ac_cs_silent=false
  34802. -SHELL=\${CONFIG_SHELL-$SHELL}
  34803. -_ACEOF
  34804. +# A sed program that does not truncate output.
  34805. +SED=$lt_SED
  34806. -cat >>$CONFIG_STATUS <<\_ACEOF
  34807. -## --------------------- ##
  34808. -## M4sh Initialization. ##
  34809. -## --------------------- ##
  34810. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34811. +Xsed="\$SED -e 1s/^X//"
  34812. -# Be more Bourne compatible
  34813. -DUALCASE=1; export DUALCASE # for MKS sh
  34814. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  34815. - emulate sh
  34816. - NULLCMD=:
  34817. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  34818. - # is contrary to our usage. Disable this feature.
  34819. - alias -g '${1+"$@"}'='"$@"'
  34820. - setopt NO_GLOB_SUBST
  34821. -else
  34822. - case `(set -o) 2>/dev/null` in
  34823. - *posix*) set -o posix ;;
  34824. -esac
  34825. +# A grep program that handles long lines.
  34826. +GREP=$lt_GREP
  34827. -fi
  34828. +# An ERE matcher.
  34829. +EGREP=$lt_EGREP
  34830. +# A literal string matcher.
  34831. +FGREP=$lt_FGREP
  34832. +# A BSD- or MS-compatible name lister.
  34833. +NM=$lt_NM
  34834. +# Whether we need soft or hard links.
  34835. +LN_S=$lt_LN_S
  34836. -# PATH needs CR
  34837. -# Avoid depending upon Character Ranges.
  34838. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  34839. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  34840. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34841. -as_cr_digits='0123456789'
  34842. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  34843. +# What is the maximum length of a command?
  34844. +max_cmd_len=$max_cmd_len
  34845. -# The user is always right.
  34846. -if test "${PATH_SEPARATOR+set}" != set; then
  34847. - echo "#! /bin/sh" >conf$$.sh
  34848. - echo "exit 0" >>conf$$.sh
  34849. - chmod +x conf$$.sh
  34850. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  34851. - PATH_SEPARATOR=';'
  34852. - else
  34853. - PATH_SEPARATOR=:
  34854. - fi
  34855. - rm -f conf$$.sh
  34856. -fi
  34857. +# Object file suffix (normally "o").
  34858. +objext=$ac_objext
  34859. -# Support unset when possible.
  34860. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  34861. - as_unset=unset
  34862. -else
  34863. - as_unset=false
  34864. -fi
  34865. +# Executable file suffix (normally "").
  34866. +exeext=$exeext
  34867. +# whether the shell understands "unset".
  34868. +lt_unset=$lt_unset
  34869. -# IFS
  34870. -# We need space, tab and new line, in precisely that order. Quoting is
  34871. -# there to prevent editors from complaining about space-tab.
  34872. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  34873. -# splitting by setting IFS to empty value.)
  34874. -as_nl='
  34875. -'
  34876. -IFS=" "" $as_nl"
  34877. +# turn spaces into newlines.
  34878. +SP2NL=$lt_lt_SP2NL
  34879. -# Find who we are. Look in the path if we contain no directory separator.
  34880. -case $0 in
  34881. - *[\\/]* ) as_myself=$0 ;;
  34882. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34883. -for as_dir in $PATH
  34884. -do
  34885. - IFS=$as_save_IFS
  34886. - test -z "$as_dir" && as_dir=.
  34887. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  34888. -done
  34889. -IFS=$as_save_IFS
  34890. +# turn newlines into spaces.
  34891. +NL2SP=$lt_lt_NL2SP
  34892. - ;;
  34893. -esac
  34894. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  34895. -# in which case we are not to be found in the path.
  34896. -if test "x$as_myself" = x; then
  34897. - as_myself=$0
  34898. -fi
  34899. -if test ! -f "$as_myself"; then
  34900. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  34901. - { (exit 1); exit 1; }
  34902. -fi
  34903. +# How to create reloadable object files.
  34904. +reload_flag=$lt_reload_flag
  34905. +reload_cmds=$lt_reload_cmds
  34906. -# Work around bugs in pre-3.0 UWIN ksh.
  34907. -for as_var in ENV MAIL MAILPATH
  34908. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  34909. -done
  34910. -PS1='$ '
  34911. -PS2='> '
  34912. -PS4='+ '
  34913. +# An object symbol dumper.
  34914. +OBJDUMP=$lt_OBJDUMP
  34915. -# NLS nuisances.
  34916. -for as_var in \
  34917. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  34918. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  34919. - LC_TELEPHONE LC_TIME
  34920. -do
  34921. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  34922. - eval $as_var=C; export $as_var
  34923. - else
  34924. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  34925. - fi
  34926. -done
  34927. +# Method to check whether dependent libraries are shared objects.
  34928. +deplibs_check_method=$lt_deplibs_check_method
  34929. -# Required to use basename.
  34930. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  34931. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  34932. - as_expr=expr
  34933. -else
  34934. - as_expr=false
  34935. -fi
  34936. +# Command to use when deplibs_check_method == "file_magic".
  34937. +file_magic_cmd=$lt_file_magic_cmd
  34938. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  34939. - as_basename=basename
  34940. -else
  34941. - as_basename=false
  34942. -fi
  34943. +# The archiver.
  34944. +AR=$lt_AR
  34945. +AR_FLAGS=$lt_AR_FLAGS
  34946. +# A symbol stripping program.
  34947. +STRIP=$lt_STRIP
  34948. -# Name of the executable.
  34949. -as_me=`$as_basename -- "$0" ||
  34950. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  34951. - X"$0" : 'X\(//\)$' \| \
  34952. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  34953. -echo X/"$0" |
  34954. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  34955. - s//\1/
  34956. - q
  34957. - }
  34958. - /^X\/\(\/\/\)$/{
  34959. - s//\1/
  34960. - q
  34961. - }
  34962. - /^X\/\(\/\).*/{
  34963. - s//\1/
  34964. - q
  34965. - }
  34966. - s/.*/./; q'`
  34967. +# Commands used to install an old-style archive.
  34968. +RANLIB=$lt_RANLIB
  34969. +old_postinstall_cmds=$lt_old_postinstall_cmds
  34970. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34971. -# CDPATH.
  34972. -$as_unset CDPATH
  34973. +# A C compiler.
  34974. +LTCC=$lt_CC
  34975. +# LTCC compiler flags.
  34976. +LTCFLAGS=$lt_CFLAGS
  34977. +# Take the output of nm and produce a listing of raw symbols and C names.
  34978. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34979. - as_lineno_1=$LINENO
  34980. - as_lineno_2=$LINENO
  34981. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  34982. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  34983. -
  34984. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  34985. - # uniformly replaced by the line number. The first 'sed' inserts a
  34986. - # line-number line after each line using $LINENO; the second 'sed'
  34987. - # does the real work. The second script uses 'N' to pair each
  34988. - # line-number line with the line containing $LINENO, and appends
  34989. - # trailing '-' during substitution so that $LINENO is not a special
  34990. - # case at line end.
  34991. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  34992. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  34993. - # E. McMahon (1931-1989) for sed's syntax. :-)
  34994. - sed -n '
  34995. - p
  34996. - /[$]LINENO/=
  34997. - ' <$as_myself |
  34998. - sed '
  34999. - s/[$]LINENO.*/&-/
  35000. - t lineno
  35001. - b
  35002. - :lineno
  35003. - N
  35004. - :loop
  35005. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  35006. - t loop
  35007. - s/-\n.*//
  35008. - ' >$as_me.lineno &&
  35009. - chmod +x "$as_me.lineno" ||
  35010. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  35011. - { (exit 1); exit 1; }; }
  35012. +# Transform the output of nm in a proper C declaration.
  35013. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35014. - # Don't try to exec as it changes $[0], causing all sort of problems
  35015. - # (the dirname of $[0] is not the place where we might find the
  35016. - # original and so on. Autoconf is especially sensitive to this).
  35017. - . "./$as_me.lineno"
  35018. - # Exit status is that of the last command.
  35019. - exit
  35020. -}
  35021. +# Transform the output of nm in a C name address pair.
  35022. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35023. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  35024. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  35025. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  35026. - as_dirname=dirname
  35027. -else
  35028. - as_dirname=false
  35029. -fi
  35030. +# The name of the directory that contains temporary libtool files.
  35031. +objdir=$objdir
  35032. -ECHO_C= ECHO_N= ECHO_T=
  35033. -case `echo -n x` in
  35034. --n*)
  35035. - case `echo 'x\c'` in
  35036. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  35037. - *) ECHO_C='\c';;
  35038. - esac;;
  35039. -*)
  35040. - ECHO_N='-n';;
  35041. -esac
  35042. +# Shell to use when invoking shell scripts.
  35043. +SHELL=$lt_SHELL
  35044. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  35045. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  35046. - as_expr=expr
  35047. -else
  35048. - as_expr=false
  35049. -fi
  35050. +# An echo program that does not interpret backslashes.
  35051. +ECHO=$lt_ECHO
  35052. -rm -f conf$$ conf$$.exe conf$$.file
  35053. -if test -d conf$$.dir; then
  35054. - rm -f conf$$.dir/conf$$.file
  35055. -else
  35056. - rm -f conf$$.dir
  35057. - mkdir conf$$.dir
  35058. -fi
  35059. -echo >conf$$.file
  35060. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  35061. - as_ln_s='ln -s'
  35062. - # ... but there are two gotchas:
  35063. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  35064. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  35065. - # In both cases, we have to default to `cp -p'.
  35066. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  35067. - as_ln_s='cp -p'
  35068. -elif ln conf$$.file conf$$ 2>/dev/null; then
  35069. - as_ln_s=ln
  35070. -else
  35071. - as_ln_s='cp -p'
  35072. -fi
  35073. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  35074. -rmdir conf$$.dir 2>/dev/null
  35075. +# Used to examine libraries when file_magic_cmd begins with "file".
  35076. +MAGIC_CMD=$MAGIC_CMD
  35077. -if mkdir -p . 2>/dev/null; then
  35078. - as_mkdir_p=:
  35079. -else
  35080. - test -d ./-p && rmdir ./-p
  35081. - as_mkdir_p=false
  35082. -fi
  35083. +# Must we lock files when doing compilation?
  35084. +need_locks=$lt_need_locks
  35085. -if test -x / >/dev/null 2>&1; then
  35086. - as_test_x='test -x'
  35087. -else
  35088. - if ls -dL / >/dev/null 2>&1; then
  35089. - as_ls_L_option=L
  35090. - else
  35091. - as_ls_L_option=
  35092. - fi
  35093. - as_test_x='
  35094. - eval sh -c '\''
  35095. - if test -d "$1"; then
  35096. - test -d "$1/.";
  35097. - else
  35098. - case $1 in
  35099. - -*)set "./$1";;
  35100. - esac;
  35101. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  35102. - ???[sx]*):;;*)false;;esac;fi
  35103. - '\'' sh
  35104. - '
  35105. -fi
  35106. -as_executable_p=$as_test_x
  35107. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  35108. +DSYMUTIL=$lt_DSYMUTIL
  35109. -# Sed expression to map a string onto a valid CPP name.
  35110. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  35111. +# Tool to change global to local symbols on Mac OS X.
  35112. +NMEDIT=$lt_NMEDIT
  35113. -# Sed expression to map a string onto a valid variable name.
  35114. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  35115. +# Tool to manipulate fat objects and archives on Mac OS X.
  35116. +LIPO=$lt_LIPO
  35117. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  35118. +OTOOL=$lt_OTOOL
  35119. -exec 6>&1
  35120. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  35121. +OTOOL64=$lt_OTOOL64
  35122. -# Save the log message, to keep $[0] and so on meaningful, and to
  35123. -# report actual input values of CONFIG_FILES etc. instead of their
  35124. -# values after options handling.
  35125. -ac_log="
  35126. -This file was extended by $as_me, which was
  35127. -generated by GNU Autoconf 2.61. Invocation command line was
  35128. +# Old archive suffix (normally "a").
  35129. +libext=$libext
  35130. - CONFIG_FILES = $CONFIG_FILES
  35131. - CONFIG_HEADERS = $CONFIG_HEADERS
  35132. - CONFIG_LINKS = $CONFIG_LINKS
  35133. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  35134. - $ $0 $@
  35135. +# Shared library suffix (normally ".so").
  35136. +shrext_cmds=$lt_shrext_cmds
  35137. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  35138. -"
  35139. +# The commands to extract the exported symbol list from a shared archive.
  35140. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35141. -_ACEOF
  35142. +# Variables whose values should be saved in libtool wrapper scripts and
  35143. +# restored at link time.
  35144. +variables_saved_for_relink=$lt_variables_saved_for_relink
  35145. -cat >>$CONFIG_STATUS <<_ACEOF
  35146. -# Files that config.status was made for.
  35147. -config_files="$ac_config_files"
  35148. -config_commands="$ac_config_commands"
  35149. +# Do we need the "lib" prefix for modules?
  35150. +need_lib_prefix=$need_lib_prefix
  35151. -_ACEOF
  35152. +# Do we need a version for libraries?
  35153. +need_version=$need_version
  35154. -cat >>$CONFIG_STATUS <<\_ACEOF
  35155. -ac_cs_usage="\
  35156. -\`$as_me' instantiates files from templates according to the
  35157. -current configuration.
  35158. +# Library versioning type.
  35159. +version_type=$version_type
  35160. -Usage: $0 [OPTIONS] [FILE]...
  35161. +# Shared library runtime path variable.
  35162. +runpath_var=$runpath_var
  35163. - -h, --help print this help, then exit
  35164. - -V, --version print version number and configuration settings, then exit
  35165. - -q, --quiet do not print progress messages
  35166. - -d, --debug don't remove temporary files
  35167. - --recheck update $as_me by reconfiguring in the same conditions
  35168. - --file=FILE[:TEMPLATE]
  35169. - instantiate the configuration file FILE
  35170. +# Shared library path variable.
  35171. +shlibpath_var=$shlibpath_var
  35172. -Configuration files:
  35173. -$config_files
  35174. +# Is shlibpath searched before the hard-coded library search path?
  35175. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35176. -Configuration commands:
  35177. -$config_commands
  35178. +# Format of library name prefix.
  35179. +libname_spec=$lt_libname_spec
  35180. -Report bugs to <bug-autoconf@gnu.org>."
  35181. +# List of archive names. First name is the real one, the rest are links.
  35182. +# The last name is the one that the linker finds with -lNAME
  35183. +library_names_spec=$lt_library_names_spec
  35184. -_ACEOF
  35185. -cat >>$CONFIG_STATUS <<_ACEOF
  35186. -ac_cs_version="\\
  35187. -config.status
  35188. -configured by $0, generated by GNU Autoconf 2.61,
  35189. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  35190. +# The coded name of the library, if different from the real name.
  35191. +soname_spec=$lt_soname_spec
  35192. -Copyright (C) 2006 Free Software Foundation, Inc.
  35193. -This config.status script is free software; the Free Software Foundation
  35194. -gives unlimited permission to copy, distribute and modify it."
  35195. +# Command to use after installation of a shared archive.
  35196. +postinstall_cmds=$lt_postinstall_cmds
  35197. -ac_pwd='$ac_pwd'
  35198. -srcdir='$srcdir'
  35199. -INSTALL='$INSTALL'
  35200. -MKDIR_P='$MKDIR_P'
  35201. -_ACEOF
  35202. +# Command to use after uninstallation of a shared archive.
  35203. +postuninstall_cmds=$lt_postuninstall_cmds
  35204. -cat >>$CONFIG_STATUS <<\_ACEOF
  35205. -# If no file are specified by the user, then we need to provide default
  35206. -# value. By we need to know if files were specified by the user.
  35207. -ac_need_defaults=:
  35208. -while test $# != 0
  35209. -do
  35210. - case $1 in
  35211. - --*=*)
  35212. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  35213. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  35214. - ac_shift=:
  35215. - ;;
  35216. - *)
  35217. - ac_option=$1
  35218. - ac_optarg=$2
  35219. - ac_shift=shift
  35220. - ;;
  35221. - esac
  35222. +# Commands used to finish a libtool library installation in a directory.
  35223. +finish_cmds=$lt_finish_cmds
  35224. - case $ac_option in
  35225. - # Handling of the options.
  35226. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  35227. - ac_cs_recheck=: ;;
  35228. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  35229. - echo "$ac_cs_version"; exit ;;
  35230. - --debug | --debu | --deb | --de | --d | -d )
  35231. - debug=: ;;
  35232. - --file | --fil | --fi | --f )
  35233. - $ac_shift
  35234. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  35235. - ac_need_defaults=false;;
  35236. - --he | --h | --help | --hel | -h )
  35237. - echo "$ac_cs_usage"; exit ;;
  35238. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  35239. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  35240. - ac_cs_silent=: ;;
  35241. +# As "finish_cmds", except a single script fragment to be evaled but
  35242. +# not shown.
  35243. +finish_eval=$lt_finish_eval
  35244. - # This is an error.
  35245. - -*) { echo "$as_me: error: unrecognized option: $1
  35246. -Try \`$0 --help' for more information." >&2
  35247. - { (exit 1); exit 1; }; } ;;
  35248. +# Whether we should hardcode library paths into libraries.
  35249. +hardcode_into_libs=$hardcode_into_libs
  35250. - *) ac_config_targets="$ac_config_targets $1"
  35251. - ac_need_defaults=false ;;
  35252. +# Compile-time system search path for libraries.
  35253. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35254. - esac
  35255. - shift
  35256. -done
  35257. +# Run-time system search path for libraries.
  35258. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35259. -ac_configure_extra_args=
  35260. +# Whether dlopen is supported.
  35261. +dlopen_support=$enable_dlopen
  35262. -if $ac_cs_silent; then
  35263. - exec 6>/dev/null
  35264. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  35265. -fi
  35266. +# Whether dlopen of programs is supported.
  35267. +dlopen_self=$enable_dlopen_self
  35268. -_ACEOF
  35269. -cat >>$CONFIG_STATUS <<_ACEOF
  35270. -if \$ac_cs_recheck; then
  35271. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  35272. - CONFIG_SHELL=$SHELL
  35273. - export CONFIG_SHELL
  35274. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  35275. -fi
  35276. +# Whether dlopen of statically linked programs is supported.
  35277. +dlopen_self_static=$enable_dlopen_self_static
  35278. -_ACEOF
  35279. -cat >>$CONFIG_STATUS <<\_ACEOF
  35280. -exec 5>>config.log
  35281. -{
  35282. - echo
  35283. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  35284. -## Running $as_me. ##
  35285. -_ASBOX
  35286. - echo "$ac_log"
  35287. -} >&5
  35288. +# Commands to strip libraries.
  35289. +old_striplib=$lt_old_striplib
  35290. +striplib=$lt_striplib
  35291. -_ACEOF
  35292. -cat >>$CONFIG_STATUS <<_ACEOF
  35293. -#
  35294. -# INIT-COMMANDS
  35295. -#
  35296. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  35297. -_ACEOF
  35298. +# The linker used to build libraries.
  35299. +LD=$lt_LD
  35300. -cat >>$CONFIG_STATUS <<\_ACEOF
  35301. +# Commands used to build an old-style archive.
  35302. +old_archive_cmds=$lt_old_archive_cmds
  35303. -# Handling of arguments.
  35304. -for ac_config_target in $ac_config_targets
  35305. -do
  35306. - case $ac_config_target in
  35307. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  35308. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  35309. +# A language specific compiler.
  35310. +CC=$lt_compiler
  35311. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  35312. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  35313. - { (exit 1); exit 1; }; };;
  35314. - esac
  35315. -done
  35316. +# Is the compiler the GNU compiler?
  35317. +with_gcc=$GCC
  35318. +# Compiler flag to turn off builtin functions.
  35319. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  35320. -# If the user did not use the arguments to specify the items to instantiate,
  35321. -# then the envvar interface is used. Set only those that are not.
  35322. -# We use the long form for the default assignment because of an extremely
  35323. -# bizarre bug on SunOS 4.1.3.
  35324. -if $ac_need_defaults; then
  35325. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  35326. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  35327. -fi
  35328. +# How to pass a linker flag through the compiler.
  35329. +wl=$lt_lt_prog_compiler_wl
  35330. -# Have a temporary directory for convenience. Make it in the build tree
  35331. -# simply because there is no reason against having it here, and in addition,
  35332. -# creating and moving files from /tmp can sometimes cause problems.
  35333. -# Hook for its removal unless debugging.
  35334. -# Note that there is a small window in which the directory will not be cleaned:
  35335. -# after its creation but before its name has been assigned to `$tmp'.
  35336. -$debug ||
  35337. -{
  35338. - tmp=
  35339. - trap 'exit_status=$?
  35340. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  35341. -' 0
  35342. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  35343. -}
  35344. -# Create a (secure) tmp directory for tmp files.
  35345. +# Additional compiler flags for building library objects.
  35346. +pic_flag=$lt_lt_prog_compiler_pic
  35347. -{
  35348. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  35349. - test -n "$tmp" && test -d "$tmp"
  35350. -} ||
  35351. -{
  35352. - tmp=./conf$$-$RANDOM
  35353. - (umask 077 && mkdir "$tmp")
  35354. -} ||
  35355. -{
  35356. - echo "$me: cannot create a temporary directory in ." >&2
  35357. - { (exit 1); exit 1; }
  35358. -}
  35359. +# Compiler flag to prevent dynamic linking.
  35360. +link_static_flag=$lt_lt_prog_compiler_static
  35361. -#
  35362. -# Set up the sed scripts for CONFIG_FILES section.
  35363. -#
  35364. +# Does compiler simultaneously support -c and -o options?
  35365. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  35366. -# No need to generate the scripts if there are no CONFIG_FILES.
  35367. -# This happens for instance when ./config.status config.h
  35368. -if test -n "$CONFIG_FILES"; then
  35369. +# Whether or not to add -lc for building shared libraries.
  35370. +build_libtool_need_lc=$archive_cmds_need_lc
  35371. -_ACEOF
  35372. +# Whether or not to disallow shared libs when runtime libs are static.
  35373. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  35374. +# Compiler flag to allow reflexive dlopens.
  35375. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  35376. +# Compiler flag to generate shared objects directly from archives.
  35377. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  35378. -ac_delim='%!_!# '
  35379. -for ac_last_try in false false false false false :; do
  35380. - cat >conf$$subs.sed <<_ACEOF
  35381. -SHELL!$SHELL$ac_delim
  35382. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  35383. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  35384. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  35385. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  35386. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  35387. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  35388. -exec_prefix!$exec_prefix$ac_delim
  35389. -prefix!$prefix$ac_delim
  35390. -program_transform_name!$program_transform_name$ac_delim
  35391. -bindir!$bindir$ac_delim
  35392. -sbindir!$sbindir$ac_delim
  35393. -libexecdir!$libexecdir$ac_delim
  35394. -datarootdir!$datarootdir$ac_delim
  35395. -datadir!$datadir$ac_delim
  35396. -sysconfdir!$sysconfdir$ac_delim
  35397. -sharedstatedir!$sharedstatedir$ac_delim
  35398. -localstatedir!$localstatedir$ac_delim
  35399. -includedir!$includedir$ac_delim
  35400. -oldincludedir!$oldincludedir$ac_delim
  35401. -docdir!$docdir$ac_delim
  35402. -infodir!$infodir$ac_delim
  35403. -htmldir!$htmldir$ac_delim
  35404. -dvidir!$dvidir$ac_delim
  35405. -pdfdir!$pdfdir$ac_delim
  35406. -psdir!$psdir$ac_delim
  35407. -libdir!$libdir$ac_delim
  35408. -localedir!$localedir$ac_delim
  35409. -mandir!$mandir$ac_delim
  35410. -DEFS!$DEFS$ac_delim
  35411. -ECHO_C!$ECHO_C$ac_delim
  35412. -ECHO_N!$ECHO_N$ac_delim
  35413. -ECHO_T!$ECHO_T$ac_delim
  35414. -LIBS!$LIBS$ac_delim
  35415. -build_alias!$build_alias$ac_delim
  35416. -host_alias!$host_alias$ac_delim
  35417. -target_alias!$target_alias$ac_delim
  35418. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  35419. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  35420. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  35421. -am__isrc!$am__isrc$ac_delim
  35422. -CYGPATH_W!$CYGPATH_W$ac_delim
  35423. -PACKAGE!$PACKAGE$ac_delim
  35424. -VERSION!$VERSION$ac_delim
  35425. -ACLOCAL!$ACLOCAL$ac_delim
  35426. -AUTOCONF!$AUTOCONF$ac_delim
  35427. -AUTOMAKE!$AUTOMAKE$ac_delim
  35428. -AUTOHEADER!$AUTOHEADER$ac_delim
  35429. -MAKEINFO!$MAKEINFO$ac_delim
  35430. -install_sh!$install_sh$ac_delim
  35431. -STRIP!$STRIP$ac_delim
  35432. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  35433. -mkdir_p!$mkdir_p$ac_delim
  35434. -AWK!$AWK$ac_delim
  35435. -SET_MAKE!$SET_MAKE$ac_delim
  35436. -am__leading_dot!$am__leading_dot$ac_delim
  35437. -AMTAR!$AMTAR$ac_delim
  35438. -am__tar!$am__tar$ac_delim
  35439. -am__untar!$am__untar$ac_delim
  35440. -CC!$CC$ac_delim
  35441. -CFLAGS!$CFLAGS$ac_delim
  35442. -LDFLAGS!$LDFLAGS$ac_delim
  35443. -CPPFLAGS!$CPPFLAGS$ac_delim
  35444. -ac_ct_CC!$ac_ct_CC$ac_delim
  35445. -EXEEXT!$EXEEXT$ac_delim
  35446. -OBJEXT!$OBJEXT$ac_delim
  35447. -DEPDIR!$DEPDIR$ac_delim
  35448. -am__include!$am__include$ac_delim
  35449. -am__quote!$am__quote$ac_delim
  35450. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  35451. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  35452. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  35453. -CCDEPMODE!$CCDEPMODE$ac_delim
  35454. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  35455. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  35456. -build!$build$ac_delim
  35457. -build_cpu!$build_cpu$ac_delim
  35458. -build_vendor!$build_vendor$ac_delim
  35459. -build_os!$build_os$ac_delim
  35460. -host!$host$ac_delim
  35461. -host_cpu!$host_cpu$ac_delim
  35462. -host_vendor!$host_vendor$ac_delim
  35463. -host_os!$host_os$ac_delim
  35464. -SED!$SED$ac_delim
  35465. -GREP!$GREP$ac_delim
  35466. -EGREP!$EGREP$ac_delim
  35467. -LN_S!$LN_S$ac_delim
  35468. -ECHO!$ECHO$ac_delim
  35469. -AR!$AR$ac_delim
  35470. -RANLIB!$RANLIB$ac_delim
  35471. -DSYMUTIL!$DSYMUTIL$ac_delim
  35472. -NMEDIT!$NMEDIT$ac_delim
  35473. -CPP!$CPP$ac_delim
  35474. -CXX!$CXX$ac_delim
  35475. -CXXFLAGS!$CXXFLAGS$ac_delim
  35476. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  35477. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  35478. -_ACEOF
  35479. +# Whether the compiler copes with passing no objects directly.
  35480. +compiler_needs_object=$lt_compiler_needs_object
  35481. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  35482. - break
  35483. - elif $ac_last_try; then
  35484. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  35485. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  35486. - { (exit 1); exit 1; }; }
  35487. - else
  35488. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35489. - fi
  35490. -done
  35491. +# Create an old-style archive from a shared archive.
  35492. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  35493. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  35494. -if test -n "$ac_eof"; then
  35495. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  35496. - ac_eof=`expr $ac_eof + 1`
  35497. -fi
  35498. +# Create a temporary old-style archive to link instead of a shared archive.
  35499. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  35500. -cat >>$CONFIG_STATUS <<_ACEOF
  35501. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  35502. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35503. -_ACEOF
  35504. -sed '
  35505. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  35506. -s/^/s,@/; s/!/@,|#_!!_#|/
  35507. -:n
  35508. -t n
  35509. -s/'"$ac_delim"'$/,g/; t
  35510. -s/$/\\/; p
  35511. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  35512. -' >>$CONFIG_STATUS <conf$$subs.sed
  35513. -rm -f conf$$subs.sed
  35514. -cat >>$CONFIG_STATUS <<_ACEOF
  35515. -CEOF$ac_eof
  35516. -_ACEOF
  35517. +# Commands used to build a shared archive.
  35518. +archive_cmds=$lt_archive_cmds
  35519. +archive_expsym_cmds=$lt_archive_expsym_cmds
  35520. +# Commands used to build a loadable module if different from building
  35521. +# a shared archive.
  35522. +module_cmds=$lt_module_cmds
  35523. +module_expsym_cmds=$lt_module_expsym_cmds
  35524. -ac_delim='%!_!# '
  35525. -for ac_last_try in false false false false false :; do
  35526. - cat >conf$$subs.sed <<_ACEOF
  35527. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  35528. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  35529. -CXXCPP!$CXXCPP$ac_delim
  35530. -F77!$F77$ac_delim
  35531. -FFLAGS!$FFLAGS$ac_delim
  35532. -ac_ct_F77!$ac_ct_F77$ac_delim
  35533. -LIBTOOL!$LIBTOOL$ac_delim
  35534. -SO_VERSION!$SO_VERSION$ac_delim
  35535. -LIBOBJS!$LIBOBJS$ac_delim
  35536. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  35537. -_ACEOF
  35538. +# Whether we are building with GNU ld or not.
  35539. +with_gnu_ld=$lt_with_gnu_ld
  35540. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
  35541. - break
  35542. - elif $ac_last_try; then
  35543. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  35544. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  35545. - { (exit 1); exit 1; }; }
  35546. - else
  35547. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35548. - fi
  35549. -done
  35550. +# Flag that allows shared libraries with undefined symbols to be built.
  35551. +allow_undefined_flag=$lt_allow_undefined_flag
  35552. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  35553. -if test -n "$ac_eof"; then
  35554. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  35555. - ac_eof=`expr $ac_eof + 1`
  35556. -fi
  35557. +# Flag that enforces no undefined symbols.
  35558. +no_undefined_flag=$lt_no_undefined_flag
  35559. -cat >>$CONFIG_STATUS <<_ACEOF
  35560. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  35561. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  35562. -_ACEOF
  35563. -sed '
  35564. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  35565. -s/^/s,@/; s/!/@,|#_!!_#|/
  35566. -:n
  35567. -t n
  35568. -s/'"$ac_delim"'$/,g/; t
  35569. -s/$/\\/; p
  35570. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  35571. -' >>$CONFIG_STATUS <conf$$subs.sed
  35572. -rm -f conf$$subs.sed
  35573. -cat >>$CONFIG_STATUS <<_ACEOF
  35574. -:end
  35575. -s/|#_!!_#|//g
  35576. -CEOF$ac_eof
  35577. -_ACEOF
  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
  35581. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  35582. +# during linking. This must work even if \$libdir does not exist.
  35583. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  35584. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  35585. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  35586. -# trailing colons and then remove the whole line if VPATH becomes empty
  35587. -# (actually we leave an empty line to preserve line numbers).
  35588. -if test "x$srcdir" = x.; then
  35589. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  35590. -s/:*\$(srcdir):*/:/
  35591. -s/:*\${srcdir}:*/:/
  35592. -s/:*@srcdir@:*/:/
  35593. -s/^\([^=]*=[ ]*\):*/\1/
  35594. -s/:*$//
  35595. -s/^[^=]*=[ ]*$//
  35596. -}'
  35597. -fi
  35598. +# Whether we need a single "-rpath" flag with a separated argument.
  35599. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  35600. -cat >>$CONFIG_STATUS <<\_ACEOF
  35601. -fi # test -n "$CONFIG_FILES"
  35602. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  35603. +# DIR into the resulting binary.
  35604. +hardcode_direct=$hardcode_direct
  35605. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  35606. +# DIR into the resulting binary and the resulting library dependency is
  35607. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  35608. +# library is relocated.
  35609. +hardcode_direct_absolute=$hardcode_direct_absolute
  35610. -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  35611. -do
  35612. - case $ac_tag in
  35613. - :[FHLC]) ac_mode=$ac_tag; continue;;
  35614. - esac
  35615. - case $ac_mode$ac_tag in
  35616. - :[FHL]*:*);;
  35617. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  35618. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  35619. - { (exit 1); exit 1; }; };;
  35620. - :[FH]-) ac_tag=-:-;;
  35621. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  35622. - esac
  35623. - ac_save_IFS=$IFS
  35624. - IFS=:
  35625. - set x $ac_tag
  35626. - IFS=$ac_save_IFS
  35627. - shift
  35628. - ac_file=$1
  35629. - shift
  35630. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  35631. +# into the resulting binary.
  35632. +hardcode_minus_L=$hardcode_minus_L
  35633. - case $ac_mode in
  35634. - :L) ac_source=$1;;
  35635. - :[FH])
  35636. - ac_file_inputs=
  35637. - for ac_f
  35638. - do
  35639. - case $ac_f in
  35640. - -) ac_f="$tmp/stdin";;
  35641. - *) # Look for the file first in the build tree, then in the source tree
  35642. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  35643. - # because $ac_f cannot contain `:'.
  35644. - test -f "$ac_f" ||
  35645. - case $ac_f in
  35646. - [\\/$]*) false;;
  35647. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  35648. - esac ||
  35649. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  35650. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  35651. - { (exit 1); exit 1; }; };;
  35652. - esac
  35653. - ac_file_inputs="$ac_file_inputs $ac_f"
  35654. - done
  35655. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  35656. +# into the resulting binary.
  35657. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  35658. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  35659. - # use $as_me), people would be surprised to read:
  35660. - # /* config.h. Generated by config.status. */
  35661. - configure_input="Generated from "`IFS=:
  35662. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  35663. - if test x"$ac_file" != x-; then
  35664. - configure_input="$ac_file. $configure_input"
  35665. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  35666. -echo "$as_me: creating $ac_file" >&6;}
  35667. - fi
  35668. +# Set to "yes" if building a shared library automatically hardcodes DIR
  35669. +# into the library and all subsequent libraries and executables linked
  35670. +# against it.
  35671. +hardcode_automatic=$hardcode_automatic
  35672. - case $ac_tag in
  35673. - *:-:* | *:-) cat >"$tmp/stdin";;
  35674. - esac
  35675. - ;;
  35676. - esac
  35677. +# Set to yes if linker adds runtime paths of dependent libraries
  35678. +# to runtime path list.
  35679. +inherit_rpath=$inherit_rpath
  35680. - ac_dir=`$as_dirname -- "$ac_file" ||
  35681. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35682. - X"$ac_file" : 'X\(//\)[^/]' \| \
  35683. - X"$ac_file" : 'X\(//\)$' \| \
  35684. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  35685. -echo X"$ac_file" |
  35686. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35687. - s//\1/
  35688. - q
  35689. - }
  35690. - /^X\(\/\/\)[^/].*/{
  35691. - s//\1/
  35692. - q
  35693. - }
  35694. - /^X\(\/\/\)$/{
  35695. - s//\1/
  35696. - q
  35697. - }
  35698. - /^X\(\/\).*/{
  35699. - s//\1/
  35700. - q
  35701. - }
  35702. - s/.*/./; q'`
  35703. - { as_dir="$ac_dir"
  35704. - case $as_dir in #(
  35705. - -*) as_dir=./$as_dir;;
  35706. - esac
  35707. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  35708. - as_dirs=
  35709. - while :; do
  35710. - case $as_dir in #(
  35711. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  35712. - *) as_qdir=$as_dir;;
  35713. - esac
  35714. - as_dirs="'$as_qdir' $as_dirs"
  35715. - as_dir=`$as_dirname -- "$as_dir" ||
  35716. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35717. - X"$as_dir" : 'X\(//\)[^/]' \| \
  35718. - X"$as_dir" : 'X\(//\)$' \| \
  35719. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  35720. -echo X"$as_dir" |
  35721. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35722. - s//\1/
  35723. - q
  35724. - }
  35725. - /^X\(\/\/\)[^/].*/{
  35726. - s//\1/
  35727. - q
  35728. - }
  35729. - /^X\(\/\/\)$/{
  35730. - s//\1/
  35731. - q
  35732. - }
  35733. - /^X\(\/\).*/{
  35734. - s//\1/
  35735. - q
  35736. - }
  35737. - s/.*/./; q'`
  35738. - test -d "$as_dir" && break
  35739. - done
  35740. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  35741. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  35742. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  35743. - { (exit 1); exit 1; }; }; }
  35744. - ac_builddir=.
  35745. +# Whether libtool must link a program against all its dependency libraries.
  35746. +link_all_deplibs=$link_all_deplibs
  35747. -case "$ac_dir" in
  35748. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35749. -*)
  35750. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  35751. - # A ".." for each directory in $ac_dir_suffix.
  35752. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  35753. - case $ac_top_builddir_sub in
  35754. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35755. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  35756. - esac ;;
  35757. -esac
  35758. -ac_abs_top_builddir=$ac_pwd
  35759. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  35760. -# for backward compatibility:
  35761. -ac_top_builddir=$ac_top_build_prefix
  35762. +# Fix the shell variable \$srcfile for the compiler.
  35763. +fix_srcfile_path=$lt_fix_srcfile_path
  35764. +
  35765. +# Set to "yes" if exported symbols are required.
  35766. +always_export_symbols=$always_export_symbols
  35767. +
  35768. +# The commands to list exported symbols.
  35769. +export_symbols_cmds=$lt_export_symbols_cmds
  35770. +
  35771. +# Symbols that should not be listed in the preloaded symbols.
  35772. +exclude_expsyms=$lt_exclude_expsyms
  35773. -case $srcdir in
  35774. - .) # We are building in place.
  35775. - ac_srcdir=.
  35776. - ac_top_srcdir=$ac_top_builddir_sub
  35777. - ac_abs_top_srcdir=$ac_pwd ;;
  35778. - [\\/]* | ?:[\\/]* ) # Absolute name.
  35779. - ac_srcdir=$srcdir$ac_dir_suffix;
  35780. - ac_top_srcdir=$srcdir
  35781. - ac_abs_top_srcdir=$srcdir ;;
  35782. - *) # Relative name.
  35783. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  35784. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  35785. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  35786. -esac
  35787. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  35788. +# Symbols that must always be exported.
  35789. +include_expsyms=$lt_include_expsyms
  35790. +# Commands necessary for linking programs (against libraries) with templates.
  35791. +prelink_cmds=$lt_prelink_cmds
  35792. - case $ac_mode in
  35793. - :F)
  35794. - #
  35795. - # CONFIG_FILE
  35796. - #
  35797. +# Specify filename containing input files.
  35798. +file_list_spec=$lt_file_list_spec
  35799. - case $INSTALL in
  35800. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  35801. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  35802. +# How to hardcode a shared library path into an executable.
  35803. +hardcode_action=$hardcode_action
  35804. +
  35805. +# ### END LIBTOOL CONFIG
  35806. +
  35807. +_LT_EOF
  35808. +
  35809. + case $host_os in
  35810. + aix3*)
  35811. + cat <<\_LT_EOF >> "$cfgfile"
  35812. +# AIX sometimes has problems with the GCC collect2 program. For some
  35813. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  35814. +# vanish in a puff of smoke.
  35815. +if test "X${COLLECT_NAMES+set}" != Xset; then
  35816. + COLLECT_NAMES=
  35817. + export COLLECT_NAMES
  35818. +fi
  35819. +_LT_EOF
  35820. + ;;
  35821. esac
  35822. - ac_MKDIR_P=$MKDIR_P
  35823. - case $MKDIR_P in
  35824. - [\\/$]* | ?:[\\/]* ) ;;
  35825. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  35826. +
  35827. +
  35828. +ltmain="$ac_aux_dir/ltmain.sh"
  35829. +
  35830. +
  35831. + # We use sed instead of cat because bash on DJGPP gets confused if
  35832. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  35833. + # text mode, it properly converts lines to CR/LF. This bash problem
  35834. + # is reportedly fixed, but why not run on old versions too?
  35835. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  35836. + || (rm -f "$cfgfile"; exit 1)
  35837. +
  35838. + case $xsi_shell in
  35839. + yes)
  35840. + cat << \_LT_EOF >> "$cfgfile"
  35841. +
  35842. +# func_dirname file append nondir_replacement
  35843. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  35844. +# otherwise set result to NONDIR_REPLACEMENT.
  35845. +func_dirname ()
  35846. +{
  35847. + case ${1} in
  35848. + */*) func_dirname_result="${1%/*}${2}" ;;
  35849. + * ) func_dirname_result="${3}" ;;
  35850. esac
  35851. -_ACEOF
  35852. +}
  35853. -cat >>$CONFIG_STATUS <<\_ACEOF
  35854. -# If the template does not know about datarootdir, expand it.
  35855. -# FIXME: This hack should be removed a few years after 2.60.
  35856. -ac_datarootdir_hack=; ac_datarootdir_seen=
  35857. +# func_basename file
  35858. +func_basename ()
  35859. +{
  35860. + func_basename_result="${1##*/}"
  35861. +}
  35862. -case `sed -n '/datarootdir/ {
  35863. - p
  35864. - q
  35865. +# func_dirname_and_basename file append nondir_replacement
  35866. +# perform func_basename and func_dirname in a single function
  35867. +# call:
  35868. +# dirname: Compute the dirname of FILE. If nonempty,
  35869. +# add APPEND to the result, otherwise set result
  35870. +# to NONDIR_REPLACEMENT.
  35871. +# value returned in "$func_dirname_result"
  35872. +# basename: Compute filename of FILE.
  35873. +# value retuned in "$func_basename_result"
  35874. +# Implementation must be kept synchronized with func_dirname
  35875. +# and func_basename. For efficiency, we do not delegate to
  35876. +# those functions but instead duplicate the functionality here.
  35877. +func_dirname_and_basename ()
  35878. +{
  35879. + case ${1} in
  35880. + */*) func_dirname_result="${1%/*}${2}" ;;
  35881. + * ) func_dirname_result="${3}" ;;
  35882. + esac
  35883. + func_basename_result="${1##*/}"
  35884. }
  35885. -/@datadir@/p
  35886. -/@docdir@/p
  35887. -/@infodir@/p
  35888. -/@localedir@/p
  35889. -/@mandir@/p
  35890. -' $ac_file_inputs` in
  35891. -*datarootdir*) ac_datarootdir_seen=yes;;
  35892. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  35893. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  35894. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  35895. -_ACEOF
  35896. -cat >>$CONFIG_STATUS <<_ACEOF
  35897. - ac_datarootdir_hack='
  35898. - s&@datadir@&$datadir&g
  35899. - s&@docdir@&$docdir&g
  35900. - s&@infodir@&$infodir&g
  35901. - s&@localedir@&$localedir&g
  35902. - s&@mandir@&$mandir&g
  35903. - s&\\\${datarootdir}&$datarootdir&g' ;;
  35904. -esac
  35905. -_ACEOF
  35906. -# Neutralize VPATH when `$srcdir' = `.'.
  35907. -# Shell code in configure.ac might set extrasub.
  35908. -# FIXME: do we really want to maintain this feature?
  35909. -cat >>$CONFIG_STATUS <<_ACEOF
  35910. - sed "$ac_vpsub
  35911. -$extrasub
  35912. -_ACEOF
  35913. -cat >>$CONFIG_STATUS <<\_ACEOF
  35914. -:t
  35915. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35916. -s&@configure_input@&$configure_input&;t t
  35917. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  35918. -s&@srcdir@&$ac_srcdir&;t t
  35919. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  35920. -s&@top_srcdir@&$ac_top_srcdir&;t t
  35921. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  35922. -s&@builddir@&$ac_builddir&;t t
  35923. -s&@abs_builddir@&$ac_abs_builddir&;t t
  35924. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  35925. -s&@INSTALL@&$ac_INSTALL&;t t
  35926. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  35927. -$ac_datarootdir_hack
  35928. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  35929. +# func_stripname prefix suffix name
  35930. +# strip PREFIX and SUFFIX off of NAME.
  35931. +# PREFIX and SUFFIX must not contain globbing or regex special
  35932. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  35933. +# dot (in which case that matches only a dot).
  35934. +func_stripname ()
  35935. +{
  35936. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  35937. + # positional parameters, so assign one to ordinary parameter first.
  35938. + func_stripname_result=${3}
  35939. + func_stripname_result=${func_stripname_result#"${1}"}
  35940. + func_stripname_result=${func_stripname_result%"${2}"}
  35941. +}
  35942. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  35943. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  35944. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  35945. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35946. -which seems to be undefined. Please make sure it is defined." >&5
  35947. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35948. -which seems to be undefined. Please make sure it is defined." >&2;}
  35949. +# func_opt_split
  35950. +func_opt_split ()
  35951. +{
  35952. + func_opt_split_opt=${1%%=*}
  35953. + func_opt_split_arg=${1#*=}
  35954. +}
  35955. - rm -f "$tmp/stdin"
  35956. - case $ac_file in
  35957. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  35958. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  35959. +# func_lo2o object
  35960. +func_lo2o ()
  35961. +{
  35962. + case ${1} in
  35963. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  35964. + *) func_lo2o_result=${1} ;;
  35965. esac
  35966. - ;;
  35967. +}
  35968. +# func_xform libobj-or-source
  35969. +func_xform ()
  35970. +{
  35971. + func_xform_result=${1%.*}.lo
  35972. +}
  35973. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  35974. -echo "$as_me: executing $ac_file commands" >&6;}
  35975. - ;;
  35976. - esac
  35977. +# func_arith arithmetic-term...
  35978. +func_arith ()
  35979. +{
  35980. + func_arith_result=$(( $* ))
  35981. +}
  35982. +# func_len string
  35983. +# STRING may not start with a hyphen.
  35984. +func_len ()
  35985. +{
  35986. + func_len_result=${#1}
  35987. +}
  35988. - case $ac_file$ac_mode in
  35989. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  35990. - # Strip MF so we end up with the name of the file.
  35991. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  35992. - # Check whether this is an Automake generated Makefile or not.
  35993. - # We used to match only the files named `Makefile.in', but
  35994. - # some people rename them; so instead we look at the file content.
  35995. - # Grep'ing the first line is not enough: some people post-process
  35996. - # each Makefile.in and add a new line on top of each file to say so.
  35997. - # Grep'ing the whole file is not good either: AIX grep has a line
  35998. - # limit of 2048, but all sed's we know have understand at least 4000.
  35999. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  36000. - dirpart=`$as_dirname -- "$mf" ||
  36001. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36002. - X"$mf" : 'X\(//\)[^/]' \| \
  36003. - X"$mf" : 'X\(//\)$' \| \
  36004. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  36005. -echo X"$mf" |
  36006. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36007. - s//\1/
  36008. - q
  36009. - }
  36010. - /^X\(\/\/\)[^/].*/{
  36011. - s//\1/
  36012. - q
  36013. - }
  36014. - /^X\(\/\/\)$/{
  36015. - s//\1/
  36016. - q
  36017. - }
  36018. - /^X\(\/\).*/{
  36019. - s//\1/
  36020. - q
  36021. - }
  36022. - s/.*/./; q'`
  36023. +_LT_EOF
  36024. + ;;
  36025. + *) # Bourne compatible functions.
  36026. + cat << \_LT_EOF >> "$cfgfile"
  36027. +
  36028. +# func_dirname file append nondir_replacement
  36029. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  36030. +# otherwise set result to NONDIR_REPLACEMENT.
  36031. +func_dirname ()
  36032. +{
  36033. + # Extract subdirectory from the argument.
  36034. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  36035. + if test "X$func_dirname_result" = "X${1}"; then
  36036. + func_dirname_result="${3}"
  36037. else
  36038. - continue
  36039. + func_dirname_result="$func_dirname_result${2}"
  36040. fi
  36041. - # Extract the definition of DEPDIR, am__include, and am__quote
  36042. - # from the Makefile without running `make'.
  36043. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  36044. - test -z "$DEPDIR" && continue
  36045. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  36046. - test -z "am__include" && continue
  36047. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  36048. - # When using ansi2knr, U may be empty or an underscore; expand it
  36049. - U=`sed -n 's/^U = //p' < "$mf"`
  36050. - # Find all dependency output files, they are included files with
  36051. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  36052. - # simplest approach to changing $(DEPDIR) to its actual value in the
  36053. - # expansion.
  36054. - for file in `sed -n "
  36055. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  36056. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  36057. - # Make sure the directory exists.
  36058. - test -f "$dirpart/$file" && continue
  36059. - fdir=`$as_dirname -- "$file" ||
  36060. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36061. - X"$file" : 'X\(//\)[^/]' \| \
  36062. - X"$file" : 'X\(//\)$' \| \
  36063. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  36064. -echo X"$file" |
  36065. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36066. - s//\1/
  36067. - q
  36068. - }
  36069. - /^X\(\/\/\)[^/].*/{
  36070. - s//\1/
  36071. - q
  36072. - }
  36073. - /^X\(\/\/\)$/{
  36074. - s//\1/
  36075. - q
  36076. - }
  36077. - /^X\(\/\).*/{
  36078. - s//\1/
  36079. - q
  36080. - }
  36081. - s/.*/./; q'`
  36082. - { as_dir=$dirpart/$fdir
  36083. - case $as_dir in #(
  36084. - -*) as_dir=./$as_dir;;
  36085. +}
  36086. +
  36087. +# func_basename file
  36088. +func_basename ()
  36089. +{
  36090. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  36091. +}
  36092. +
  36093. +
  36094. +# func_stripname prefix suffix name
  36095. +# strip PREFIX and SUFFIX off of NAME.
  36096. +# PREFIX and SUFFIX must not contain globbing or regex special
  36097. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  36098. +# dot (in which case that matches only a dot).
  36099. +# func_strip_suffix prefix name
  36100. +func_stripname ()
  36101. +{
  36102. + case ${2} in
  36103. + .*) func_stripname_result=`$ECHO "X${3}" \
  36104. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  36105. + *) func_stripname_result=`$ECHO "X${3}" \
  36106. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  36107. esac
  36108. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  36109. - as_dirs=
  36110. - while :; do
  36111. - case $as_dir in #(
  36112. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  36113. - *) as_qdir=$as_dir;;
  36114. - esac
  36115. - as_dirs="'$as_qdir' $as_dirs"
  36116. - as_dir=`$as_dirname -- "$as_dir" ||
  36117. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36118. - X"$as_dir" : 'X\(//\)[^/]' \| \
  36119. - X"$as_dir" : 'X\(//\)$' \| \
  36120. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  36121. -echo X"$as_dir" |
  36122. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36123. - s//\1/
  36124. - q
  36125. - }
  36126. - /^X\(\/\/\)[^/].*/{
  36127. - s//\1/
  36128. - q
  36129. - }
  36130. - /^X\(\/\/\)$/{
  36131. - s//\1/
  36132. - q
  36133. - }
  36134. - /^X\(\/\).*/{
  36135. - s//\1/
  36136. - q
  36137. - }
  36138. - s/.*/./; q'`
  36139. - test -d "$as_dir" && break
  36140. - done
  36141. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  36142. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  36143. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  36144. - { (exit 1); exit 1; }; }; }
  36145. - # echo "creating $dirpart/$file"
  36146. - echo '# dummy' > "$dirpart/$file"
  36147. - done
  36148. -done
  36149. +}
  36150. +
  36151. +# sed scripts:
  36152. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  36153. +my_sed_long_arg='1s/^-[^=]*=//'
  36154. +
  36155. +# func_opt_split
  36156. +func_opt_split ()
  36157. +{
  36158. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  36159. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  36160. +}
  36161. +
  36162. +# func_lo2o object
  36163. +func_lo2o ()
  36164. +{
  36165. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  36166. +}
  36167. +
  36168. +# func_xform libobj-or-source
  36169. +func_xform ()
  36170. +{
  36171. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  36172. +}
  36173. +
  36174. +# func_arith arithmetic-term...
  36175. +func_arith ()
  36176. +{
  36177. + func_arith_result=`expr "$@"`
  36178. +}
  36179. +
  36180. +# func_len string
  36181. +# STRING may not start with a hyphen.
  36182. +func_len ()
  36183. +{
  36184. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  36185. +}
  36186. +
  36187. +_LT_EOF
  36188. +esac
  36189. +
  36190. +case $lt_shell_append in
  36191. + yes)
  36192. + cat << \_LT_EOF >> "$cfgfile"
  36193. +
  36194. +# func_append var value
  36195. +# Append VALUE to the end of shell variable VAR.
  36196. +func_append ()
  36197. +{
  36198. + eval "$1+=\$2"
  36199. +}
  36200. +_LT_EOF
  36201. + ;;
  36202. + *)
  36203. + cat << \_LT_EOF >> "$cfgfile"
  36204. +
  36205. +# func_append var value
  36206. +# Append VALUE to the end of shell variable VAR.
  36207. +func_append ()
  36208. +{
  36209. + eval "$1=\$$1\$2"
  36210. +}
  36211. +
  36212. +_LT_EOF
  36213. + ;;
  36214. + esac
  36215. +
  36216. +
  36217. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  36218. + || (rm -f "$cfgfile"; exit 1)
  36219. +
  36220. + mv -f "$cfgfile" "$ofile" ||
  36221. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  36222. + chmod +x "$ofile"
  36223. +
  36224. ;;
  36225. esac
  36226. done # for ac_tag
  36227. -{ (exit 0); exit 0; }
  36228. +as_fn_exit 0
  36229. _ACEOF
  36230. -chmod +x $CONFIG_STATUS
  36231. ac_clean_files=$ac_clean_files_save
  36232. +test $ac_write_fail = 0 ||
  36233. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  36234. +
  36235. # configure is writing to config.log, and then calls config.status.
  36236. # config.status does its own redirection, appending to config.log.
  36237. @@ -21194,6 +12492,10 @@
  36238. exec 5>>config.log
  36239. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  36240. # would make configure fail if this is the last instruction.
  36241. - $ac_cs_success || { (exit 1); exit 1; }
  36242. + $ac_cs_success || as_fn_exit $?
  36243. +fi
  36244. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  36245. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  36246. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  36247. fi
  36248. diff -Nur cgilib-0.7.orig/depcomp cgilib-0.7/depcomp
  36249. --- cgilib-0.7.orig/depcomp 2009-02-08 19:47:04.000000000 +0100
  36250. +++ cgilib-0.7/depcomp 2011-02-21 14:57:58.613562918 +0100
  36251. @@ -1,10 +1,10 @@
  36252. #! /bin/sh
  36253. # depcomp - compile a program generating dependencies as side-effects
  36254. -scriptversion=2007-03-29.01
  36255. +scriptversion=2009-04-28.21; # UTC
  36256. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
  36257. -# Foundation, Inc.
  36258. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  36259. +# Software Foundation, Inc.
  36260. # This program is free software; you can redistribute it and/or modify
  36261. # it under the terms of the GNU General Public License as published by
  36262. @@ -17,9 +17,7 @@
  36263. # GNU General Public License for more details.
  36264. # You should have received a copy of the GNU General Public License
  36265. -# along with this program; if not, write to the Free Software
  36266. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  36267. -# 02110-1301, USA.
  36268. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  36269. # As a special exception to the GNU General Public License, if you
  36270. # distribute this file as part of a program that contains a
  36271. @@ -87,6 +85,15 @@
  36272. depmode=dashmstdout
  36273. fi
  36274. +cygpath_u="cygpath -u -f -"
  36275. +if test "$depmode" = msvcmsys; then
  36276. + # This is just like msvisualcpp but w/o cygpath translation.
  36277. + # Just convert the backslash-escaped backslashes to single forward
  36278. + # slashes to satisfy depend.m4
  36279. + cygpath_u="sed s,\\\\\\\\,/,g"
  36280. + depmode=msvisualcpp
  36281. +fi
  36282. +
  36283. case "$depmode" in
  36284. gcc3)
  36285. ## gcc 3 implements dependency tracking that does exactly what
  36286. @@ -192,14 +199,14 @@
  36287. ' < "$tmpdepfile" \
  36288. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  36289. tr '
  36290. -' ' ' >> $depfile
  36291. - echo >> $depfile
  36292. +' ' ' >> "$depfile"
  36293. + echo >> "$depfile"
  36294. # The second pass generates a dummy entry for each header file.
  36295. tr ' ' '
  36296. ' < "$tmpdepfile" \
  36297. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  36298. - >> $depfile
  36299. + >> "$depfile"
  36300. else
  36301. # The sourcefile does not contain any dependencies, so just
  36302. # store a dummy comment line, to avoid errors with the Makefile
  36303. @@ -328,7 +335,12 @@
  36304. if test -f "$tmpdepfile"; then
  36305. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  36306. # Add `dependent.h:' lines.
  36307. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  36308. + sed -ne '2,${
  36309. + s/^ *//
  36310. + s/ \\*$//
  36311. + s/$/:/
  36312. + p
  36313. + }' "$tmpdepfile" >> "$depfile"
  36314. else
  36315. echo "#dummy" > "$depfile"
  36316. fi
  36317. @@ -404,7 +416,7 @@
  36318. # Remove the call to Libtool.
  36319. if test "$libtool" = yes; then
  36320. - while test $1 != '--mode=compile'; do
  36321. + while test "X$1" != 'X--mode=compile'; do
  36322. shift
  36323. done
  36324. shift
  36325. @@ -455,32 +467,39 @@
  36326. "$@" || exit $?
  36327. # Remove any Libtool call
  36328. if test "$libtool" = yes; then
  36329. - while test $1 != '--mode=compile'; do
  36330. + while test "X$1" != 'X--mode=compile'; do
  36331. shift
  36332. done
  36333. shift
  36334. fi
  36335. # X makedepend
  36336. shift
  36337. - cleared=no
  36338. - for arg in "$@"; do
  36339. + cleared=no eat=no
  36340. + for arg
  36341. + do
  36342. case $cleared in
  36343. no)
  36344. set ""; shift
  36345. cleared=yes ;;
  36346. esac
  36347. + if test $eat = yes; then
  36348. + eat=no
  36349. + continue
  36350. + fi
  36351. case "$arg" in
  36352. -D*|-I*)
  36353. set fnord "$@" "$arg"; shift ;;
  36354. # Strip any option that makedepend may not understand. Remove
  36355. # the object too, otherwise makedepend will parse it as a source file.
  36356. + -arch)
  36357. + eat=yes ;;
  36358. -*|$object)
  36359. ;;
  36360. *)
  36361. set fnord "$@" "$arg"; shift ;;
  36362. esac
  36363. done
  36364. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  36365. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  36366. touch "$tmpdepfile"
  36367. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  36368. rm -f "$depfile"
  36369. @@ -500,7 +519,7 @@
  36370. # Remove the call to Libtool.
  36371. if test "$libtool" = yes; then
  36372. - while test $1 != '--mode=compile'; do
  36373. + while test "X$1" != 'X--mode=compile'; do
  36374. shift
  36375. done
  36376. shift
  36377. @@ -538,13 +557,27 @@
  36378. msvisualcpp)
  36379. # Important note: in order to support this mode, a compiler *must*
  36380. - # always write the preprocessed file to stdout, regardless of -o,
  36381. - # because we must use -o when running libtool.
  36382. + # always write the preprocessed file to stdout.
  36383. "$@" || exit $?
  36384. +
  36385. + # Remove the call to Libtool.
  36386. + if test "$libtool" = yes; then
  36387. + while test "X$1" != 'X--mode=compile'; do
  36388. + shift
  36389. + done
  36390. + shift
  36391. + fi
  36392. +
  36393. IFS=" "
  36394. for arg
  36395. do
  36396. case "$arg" in
  36397. + -o)
  36398. + shift
  36399. + ;;
  36400. + $object)
  36401. + shift
  36402. + ;;
  36403. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  36404. set fnord "$@"
  36405. shift
  36406. @@ -557,16 +590,23 @@
  36407. ;;
  36408. esac
  36409. done
  36410. - "$@" -E |
  36411. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  36412. + "$@" -E 2>/dev/null |
  36413. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  36414. rm -f "$depfile"
  36415. echo "$object : \\" > "$depfile"
  36416. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  36417. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  36418. echo " " >> "$depfile"
  36419. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  36420. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  36421. rm -f "$tmpdepfile"
  36422. ;;
  36423. +msvcmsys)
  36424. + # This case exists only to let depend.m4 do its work. It works by
  36425. + # looking at the text of this script. This case will never be run,
  36426. + # since it is checked for above.
  36427. + exit 1
  36428. + ;;
  36429. +
  36430. none)
  36431. exec "$@"
  36432. ;;
  36433. @@ -585,5 +625,6 @@
  36434. # eval: (add-hook 'write-file-hooks 'time-stamp)
  36435. # time-stamp-start: "scriptversion="
  36436. # time-stamp-format: "%:y-%02m-%02d.%02H"
  36437. -# time-stamp-end: "$"
  36438. +# time-stamp-time-zone: "UTC"
  36439. +# time-stamp-end: "; # UTC"
  36440. # End:
  36441. diff -Nur cgilib-0.7.orig/INSTALL cgilib-0.7/INSTALL
  36442. --- cgilib-0.7.orig/INSTALL 2009-02-08 15:13:57.000000000 +0100
  36443. +++ cgilib-0.7/INSTALL 2011-02-21 14:57:58.593554934 +0100
  36444. @@ -1,56 +1,365 @@
  36445. Installation Instructions
  36446. -=========================
  36447. +*************************
  36448. -The version control system does not contain all files required to
  36449. -compile this project. This is intentional.
  36450. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  36451. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  36452. -These files will be added before releasing a new version of the
  36453. -package outside of the version control system.
  36454. + Copying and distribution of this file, with or without modification,
  36455. +are permitted in any medium without royalty provided the copyright
  36456. +notice and this notice are preserved. This file is offered as-is,
  36457. +without warranty of any kind.
  36458. +
  36459. +Basic Installation
  36460. +==================
  36461. +
  36462. + Briefly, the shell commands `./configure; make; make install' should
  36463. +configure, build, and install this package. The following
  36464. +more-detailed instructions are generic; see the `README' file for
  36465. +instructions specific to this package. Some packages provide this
  36466. +`INSTALL' file but do not implement all of the features documented
  36467. +below. The lack of an optional feature in a given package is not
  36468. +necessarily a bug. More recommendations for GNU packages can be found
  36469. +in *note Makefile Conventions: (standards)Makefile Conventions.
  36470. +
  36471. + The `configure' shell script attempts to guess correct values for
  36472. +various system-dependent variables used during compilation. It uses
  36473. +those values to create a `Makefile' in each directory of the package.
  36474. +It may also create one or more `.h' files containing system-dependent
  36475. +definitions. Finally, it creates a shell script `config.status' that
  36476. +you can run in the future to recreate the current configuration, and a
  36477. +file `config.log' containing compiler output (useful mainly for
  36478. +debugging `configure').
  36479. +
  36480. + It can also use an optional file (typically called `config.cache'
  36481. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  36482. +the results of its tests to speed up reconfiguring. Caching is
  36483. +disabled by default to prevent problems with accidental use of stale
  36484. +cache files.
  36485. +
  36486. + If you need to do unusual things to compile the package, please try
  36487. +to figure out how `configure' could check whether to do them, and mail
  36488. +diffs or instructions to the address given in the `README' so they can
  36489. +be considered for the next release. If you are using the cache, and at
  36490. +some point `config.cache' contains results you don't want to keep, you
  36491. +may remove or edit it.
  36492. +
  36493. + The file `configure.ac' (or `configure.in') is used to create
  36494. +`configure' by a program called `autoconf'. You need `configure.ac' if
  36495. +you want to change it or regenerate `configure' using a newer version
  36496. +of `autoconf'.
  36497. +
  36498. + The simplest way to compile this package is:
  36499. +
  36500. + 1. `cd' to the directory containing the package's source code and type
  36501. + `./configure' to configure the package for your system.
  36502. +
  36503. + Running `configure' might take a while. While running, it prints
  36504. + some messages telling which features it is checking for.
  36505. +
  36506. + 2. Type `make' to compile the package.
  36507. +
  36508. + 3. Optionally, type `make check' to run any self-tests that come with
  36509. + the package, generally using the just-built uninstalled binaries.
  36510. +
  36511. + 4. Type `make install' to install the programs and any data files and
  36512. + documentation. When installing into a prefix owned by root, it is
  36513. + recommended that the package be configured and built as a regular
  36514. + user, and only the `make install' phase executed with root
  36515. + privileges.
  36516. +
  36517. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  36518. + this time using the binaries in their final installed location.
  36519. + This target does not install anything. Running this target as a
  36520. + regular user, particularly if the prior `make install' required
  36521. + root privileges, verifies that the installation completed
  36522. + correctly.
  36523. +
  36524. + 6. You can remove the program binaries and object files from the
  36525. + source code directory by typing `make clean'. To also remove the
  36526. + files that `configure' created (so you can compile the package for
  36527. + a different kind of computer), type `make distclean'. There is
  36528. + also a `make maintainer-clean' target, but that is intended mainly
  36529. + for the package's developers. If you use it, you may have to get
  36530. + all sorts of other programs in order to regenerate files that came
  36531. + with the distribution.
  36532. +
  36533. + 7. Often, you can also type `make uninstall' to remove the installed
  36534. + files again. In practice, not all packages have tested that
  36535. + uninstallation works correctly, even though it is required by the
  36536. + GNU Coding Standards.
  36537. +
  36538. + 8. Some packages, particularly those that use Automake, provide `make
  36539. + distcheck', which can by used by developers to test that all other
  36540. + targets like `make install' and `make uninstall' work correctly.
  36541. + This target is generally not run by end users.
  36542. +
  36543. +Compilers and Options
  36544. +=====================
  36545. +
  36546. + Some systems require unusual options for compilation or linking that
  36547. +the `configure' script does not know about. Run `./configure --help'
  36548. +for details on some of the pertinent environment variables.
  36549. +
  36550. + You can give `configure' initial values for configuration parameters
  36551. +by setting variables in the command line or in the environment. Here
  36552. +is an example:
  36553. +
  36554. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  36555. +
  36556. + *Note Defining Variables::, for more details.
  36557. +
  36558. +Compiling For Multiple Architectures
  36559. +====================================
  36560. +
  36561. + You can compile the package for more than one kind of computer at the
  36562. +same time, by placing the object files for each architecture in their
  36563. +own directory. To do this, you can use GNU `make'. `cd' to the
  36564. +directory where you want the object files and executables to go and run
  36565. +the `configure' script. `configure' automatically checks for the
  36566. +source code in the directory that `configure' is in and in `..'. This
  36567. +is known as a "VPATH" build.
  36568. +
  36569. + With a non-GNU `make', it is safer to compile the package for one
  36570. +architecture at a time in the source code directory. After you have
  36571. +installed the package for one architecture, use `make distclean' before
  36572. +reconfiguring for another architecture.
  36573. +
  36574. + On MacOS X 10.5 and later systems, you can create libraries and
  36575. +executables that work on multiple system types--known as "fat" or
  36576. +"universal" binaries--by specifying multiple `-arch' options to the
  36577. +compiler but only a single `-arch' option to the preprocessor. Like
  36578. +this:
  36579. +
  36580. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  36581. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  36582. + CPP="gcc -E" CXXCPP="g++ -E"
  36583. +
  36584. + This is not guaranteed to produce working output in all cases, you
  36585. +may have to build one architecture at a time and combine the results
  36586. +using the `lipo' tool if you have problems.
  36587. +
  36588. +Installation Names
  36589. +==================
  36590. +
  36591. + By default, `make install' installs the package's commands under
  36592. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  36593. +can specify an installation prefix other than `/usr/local' by giving
  36594. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  36595. +absolute file name.
  36596. +
  36597. + You can specify separate installation prefixes for
  36598. +architecture-specific files and architecture-independent files. If you
  36599. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  36600. +PREFIX as the prefix for installing programs and libraries.
  36601. +Documentation and other data files still use the regular prefix.
  36602. +
  36603. + In addition, if you use an unusual directory layout you can give
  36604. +options like `--bindir=DIR' to specify different values for particular
  36605. +kinds of files. Run `configure --help' for a list of the directories
  36606. +you can set and what kinds of files go in them. In general, the
  36607. +default for these options is expressed in terms of `${prefix}', so that
  36608. +specifying just `--prefix' will affect all of the other directory
  36609. +specifications that were not explicitly provided.
  36610. +
  36611. + The most portable way to affect installation locations is to pass the
  36612. +correct locations to `configure'; however, many packages provide one or
  36613. +both of the following shortcuts of passing variable assignments to the
  36614. +`make install' command line to change installation locations without
  36615. +having to reconfigure or recompile.
  36616. +
  36617. + The first method involves providing an override variable for each
  36618. +affected directory. For example, `make install
  36619. +prefix=/alternate/directory' will choose an alternate location for all
  36620. +directory configuration variables that were expressed in terms of
  36621. +`${prefix}'. Any directories that were specified during `configure',
  36622. +but not in terms of `${prefix}', must each be overridden at install
  36623. +time for the entire installation to be relocated. The approach of
  36624. +makefile variable overrides for each directory variable is required by
  36625. +the GNU Coding Standards, and ideally causes no recompilation.
  36626. +However, some platforms have known limitations with the semantics of
  36627. +shared libraries that end up requiring recompilation when using this
  36628. +method, particularly noticeable in packages that use GNU Libtool.
  36629. +
  36630. + The second method involves providing the `DESTDIR' variable. For
  36631. +example, `make install DESTDIR=/alternate/directory' will prepend
  36632. +`/alternate/directory' before all installation names. The approach of
  36633. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  36634. +does not work on platforms that have drive letters. On the other hand,
  36635. +it does better at avoiding recompilation issues, and works well even
  36636. +when some directory options were not specified in terms of `${prefix}'
  36637. +at `configure' time.
  36638. +
  36639. +Optional Features
  36640. +=================
  36641. +
  36642. + If the package supports it, you can cause programs to be installed
  36643. +with an extra prefix or suffix on their names by giving `configure' the
  36644. +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  36645. +
  36646. + Some packages pay attention to `--enable-FEATURE' options to
  36647. +`configure', where FEATURE indicates an optional part of the package.
  36648. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  36649. +is something like `gnu-as' or `x' (for the X Window System). The
  36650. +`README' should mention any `--enable-' and `--with-' options that the
  36651. +package recognizes.
  36652. +
  36653. + For packages that use the X Window System, `configure' can usually
  36654. +find the X include and library files automatically, but if it doesn't,
  36655. +you can use the `configure' options `--x-includes=DIR' and
  36656. +`--x-libraries=DIR' to specify their locations.
  36657. +
  36658. + Some packages offer the ability to configure how verbose the
  36659. +execution of `make' will be. For these packages, running `./configure
  36660. +--enable-silent-rules' sets the default to minimal output, which can be
  36661. +overridden with `make V=1'; while running `./configure
  36662. +--disable-silent-rules' sets the default to verbose, which can be
  36663. +overridden with `make V=0'.
  36664. +
  36665. +Particular systems
  36666. +==================
  36667. +
  36668. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  36669. +CC is not installed, it is recommended to use the following options in
  36670. +order to use an ANSI C compiler:
  36671. +
  36672. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  36673. +
  36674. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  36675. +
  36676. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  36677. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  36678. +a workaround. If GNU CC is not installed, it is therefore recommended
  36679. +to try
  36680. +
  36681. + ./configure CC="cc"
  36682. +
  36683. +and if that doesn't work, try
  36684. +
  36685. + ./configure CC="cc -nodtk"
  36686. +
  36687. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  36688. +directory contains several dysfunctional programs; working variants of
  36689. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  36690. +in your `PATH', put it _after_ `/usr/bin'.
  36691. +
  36692. + On Haiku, software installed for all users goes in `/boot/common',
  36693. +not `/usr/local'. It is recommended to use the following options:
  36694. +
  36695. + ./configure --prefix=/boot/common
  36696. +
  36697. +Specifying the System Type
  36698. +==========================
  36699. +
  36700. + There may be some features `configure' cannot figure out
  36701. +automatically, but needs to determine by the type of machine the package
  36702. +will run on. Usually, assuming the package is built to be run on the
  36703. +_same_ architectures, `configure' can figure that out, but if it prints
  36704. +a message saying it cannot guess the machine type, give it the
  36705. +`--build=TYPE' option. TYPE can either be a short name for the system
  36706. +type, such as `sun4', or a canonical name which has the form:
  36707. +
  36708. + CPU-COMPANY-SYSTEM
  36709. +
  36710. +where SYSTEM can have one of these forms:
  36711. +
  36712. + OS
  36713. + KERNEL-OS
  36714. +
  36715. + See the file `config.sub' for the possible values of each field. If
  36716. +`config.sub' isn't included in this package, then this package doesn't
  36717. +need to know the machine type.
  36718. +
  36719. + If you are _building_ compiler tools for cross-compiling, you should
  36720. +use the option `--target=TYPE' to select the type of system they will
  36721. +produce code for.
  36722. +
  36723. + If you want to _use_ a cross compiler, that generates code for a
  36724. +platform different from the build platform, you should specify the
  36725. +"host" platform (i.e., that on which the generated programs will
  36726. +eventually be run) with `--host=TYPE'.
  36727. +
  36728. +Sharing Defaults
  36729. +================
  36730. +
  36731. + If you want to set default values for `configure' scripts to share,
  36732. +you can create a site shell script called `config.site' that gives
  36733. +default values for variables like `CC', `cache_file', and `prefix'.
  36734. +`configure' looks for `PREFIX/share/config.site' if it exists, then
  36735. +`PREFIX/etc/config.site' if it exists. Or, you can set the
  36736. +`CONFIG_SITE' environment variable to the location of the site script.
  36737. +A warning: not all `configure' scripts look for a site script.
  36738. +
  36739. +Defining Variables
  36740. +==================
  36741. +
  36742. + Variables not defined in a site shell script can be set in the
  36743. +environment passed to `configure'. However, some packages may run
  36744. +configure again during the build, and the customized values of these
  36745. +variables may be lost. In order to avoid this problem, you should set
  36746. +them in the `configure' command line, using `VAR=value'. For example:
  36747. +
  36748. + ./configure CC=/usr/local2/bin/gcc
  36749. +
  36750. +causes the specified `gcc' to be used as the C compiler (unless it is
  36751. +overridden in the site shell script).
  36752. +
  36753. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  36754. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  36755. +
  36756. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  36757. +
  36758. +`configure' Invocation
  36759. +======================
  36760. +
  36761. + `configure' recognizes the following options to control how it
  36762. +operates.
  36763. +
  36764. +`--help'
  36765. +`-h'
  36766. + Print a summary of all of the options to `configure', and exit.
  36767. +
  36768. +`--help=short'
  36769. +`--help=recursive'
  36770. + Print a summary of the options unique to this package's
  36771. + `configure', and exit. The `short' variant lists options used
  36772. + only in the top level, while the `recursive' variant lists options
  36773. + also present in any nested packages.
  36774. +
  36775. +`--version'
  36776. +`-V'
  36777. + Print the version of Autoconf used to generate the `configure'
  36778. + script, and exit.
  36779. +
  36780. +`--cache-file=FILE'
  36781. + Enable the cache: use and save the results of the tests in FILE,
  36782. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  36783. + disable caching.
  36784. +
  36785. +`--config-cache'
  36786. +`-C'
  36787. + Alias for `--cache-file=config.cache'.
  36788. +
  36789. +`--quiet'
  36790. +`--silent'
  36791. +`-q'
  36792. + Do not print messages saying which checks are being made. To
  36793. + suppress all normal output, redirect it to `/dev/null' (any error
  36794. + messages will still be shown).
  36795. +
  36796. +`--srcdir=DIR'
  36797. + Look for the package's source code in directory DIR. Usually
  36798. + `configure' can determine that directory automatically.
  36799. +
  36800. +`--prefix=DIR'
  36801. + Use DIR as the installation prefix. *note Installation Names::
  36802. + for more details, including other options available for fine-tuning
  36803. + the installation locations.
  36804. +
  36805. +`--no-create'
  36806. +`-n'
  36807. + Run the configure checks, but stop before creating any output
  36808. + files.
  36809. -Compiling from Source
  36810. ----------------------
  36811. -
  36812. -To compile this package you'll have to execute the following two
  36813. -commands:
  36814. -
  36815. -./configure
  36816. -make
  36817. -
  36818. -Compiling from CVS
  36819. -------------------
  36820. -
  36821. -Before you can compile this project you'll have to install the
  36822. -following packages:
  36823. -
  36824. - . autoconf
  36825. - . automake
  36826. - . libtool
  36827. -
  36828. -Once installed you'll have to execute the following commands:
  36829. -
  36830. -aclocal
  36831. -autoconf
  36832. -libtoolize --force
  36833. -automake --add-missing --foreign
  36834. -
  36835. -Now ./configure is generated and needs to be executed.
  36836. -
  36837. -Preparing a release
  36838. --------------------
  36839. -
  36840. -After the final commit, edit configure.ac and adjust the package version.
  36841. -Run the following commands:
  36842. -
  36843. -aclocal
  36844. -autoconf
  36845. -libtoolize --force --copy
  36846. -automake --copy --add-missing --foreign
  36847. -
  36848. -Before building the final release tarball some files may be removed.
  36849. -
  36850. -After a normal build run, execute:
  36851. -
  36852. -make distclean
  36853. -rm -rf autom4te.cache
  36854. -rm -f aclocal.m4
  36855. +`configure' also accepts some other, not widely useful, options. Run
  36856. +`configure --help' for more details.
  36857. diff -Nur cgilib-0.7.orig/install-sh cgilib-0.7/install-sh
  36858. --- cgilib-0.7.orig/install-sh 2009-02-08 19:47:04.000000000 +0100
  36859. +++ cgilib-0.7/install-sh 2011-02-21 14:57:58.563559064 +0100
  36860. @@ -1,7 +1,7 @@
  36861. #!/bin/sh
  36862. # install - install a program, script, or datafile
  36863. -scriptversion=2006-12-25.00
  36864. +scriptversion=2009-04-28.21; # UTC
  36865. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  36866. # later released in X11R6 (xc/config/util/install.sh) with the
  36867. @@ -515,5 +515,6 @@
  36868. # eval: (add-hook 'write-file-hooks 'time-stamp)
  36869. # time-stamp-start: "scriptversion="
  36870. # time-stamp-format: "%:y-%02m-%02d.%02H"
  36871. -# time-stamp-end: "$"
  36872. +# time-stamp-time-zone: "UTC"
  36873. +# time-stamp-end: "; # UTC"
  36874. # End:
  36875. diff -Nur cgilib-0.7.orig/ltmain.sh cgilib-0.7/ltmain.sh
  36876. --- cgilib-0.7.orig/ltmain.sh 2008-04-29 23:33:55.000000000 +0200
  36877. +++ cgilib-0.7/ltmain.sh 2011-02-21 14:57:55.733552962 +0100
  36878. @@ -1,52 +1,83 @@
  36879. -# ltmain.sh - Provide generalized library-building support services.
  36880. -# NOTE: Changing this file will not affect anything until you rerun configure.
  36881. -#
  36882. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  36883. -# 2007, 2008 Free Software Foundation, Inc.
  36884. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  36885. -#
  36886. -# This program is free software; you can redistribute it and/or modify
  36887. +# Generated from ltmain.m4sh.
  36888. +
  36889. +# ltmain.sh (GNU libtool) 2.2.6b
  36890. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  36891. +
  36892. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  36893. +# This is free software; see the source for copying conditions. There is NO
  36894. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  36895. +
  36896. +# GNU Libtool is free software; you can redistribute it and/or modify
  36897. # it under the terms of the GNU General Public License as published by
  36898. # the Free Software Foundation; either version 2 of the License, or
  36899. # (at your option) any later version.
  36900. #
  36901. -# This program is distributed in the hope that it will be useful, but
  36902. +# As a special exception to the GNU General Public License,
  36903. +# if you distribute this file as part of a program or library that
  36904. +# is built using GNU Libtool, you may include this file under the
  36905. +# same distribution terms that you use for the rest of that program.
  36906. +#
  36907. +# GNU Libtool is distributed in the hope that it will be useful, but
  36908. # WITHOUT ANY WARRANTY; without even the implied warranty of
  36909. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  36910. # General Public License for more details.
  36911. #
  36912. # You should have received a copy of the GNU General Public License
  36913. -# along with this program; if not, write to the Free Software
  36914. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  36915. -#
  36916. -# As a special exception to the GNU General Public License, if you
  36917. -# distribute this file as part of a program that contains a
  36918. -# configuration script generated by Autoconf, you may include it under
  36919. -# the same distribution terms that you use for the rest of that program.
  36920. -
  36921. -basename="s,^.*/,,g"
  36922. -
  36923. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  36924. -# is ksh but when the shell is invoked as "sh" and the current value of
  36925. -# the _XPG environment variable is not equal to 1 (one), the special
  36926. -# positional parameter $0, within a function call, is the name of the
  36927. -# function.
  36928. -progpath="$0"
  36929. -
  36930. -# The name of this program:
  36931. -progname=`echo "$progpath" | $SED $basename`
  36932. -modename="$progname"
  36933. +# along with GNU Libtool; see the file COPYING. If not, a copy
  36934. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  36935. +# or obtained by writing to the Free Software Foundation, Inc.,
  36936. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  36937. -# Global variables:
  36938. -EXIT_SUCCESS=0
  36939. -EXIT_FAILURE=1
  36940. +# Usage: $progname [OPTION]... [MODE-ARG]...
  36941. +#
  36942. +# Provide generalized library-building support services.
  36943. +#
  36944. +# --config show all configuration variables
  36945. +# --debug enable verbose shell tracing
  36946. +# -n, --dry-run display commands without modifying any files
  36947. +# --features display basic configuration information and exit
  36948. +# --mode=MODE use operation mode MODE
  36949. +# --preserve-dup-deps don't remove duplicate dependency libraries
  36950. +# --quiet, --silent don't print informational messages
  36951. +# --tag=TAG use configuration variables from tag TAG
  36952. +# -v, --verbose print informational messages (default)
  36953. +# --version print version information
  36954. +# -h, --help print short or long help message
  36955. +#
  36956. +# MODE must be one of the following:
  36957. +#
  36958. +# clean remove files from the build directory
  36959. +# compile compile a source file into a libtool object
  36960. +# execute automatically set library path, then run a program
  36961. +# finish complete the installation of libtool libraries
  36962. +# install install libraries or executables
  36963. +# link create a library or an executable
  36964. +# uninstall remove libraries from an installed directory
  36965. +#
  36966. +# MODE-ARGS vary depending on the MODE.
  36967. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  36968. +#
  36969. +# When reporting a bug, please describe a test case to reproduce it and
  36970. +# include the following information:
  36971. +#
  36972. +# host-triplet: $host
  36973. +# shell: $SHELL
  36974. +# compiler: $LTCC
  36975. +# compiler flags: $LTCFLAGS
  36976. +# linker: $LD (gnu? $with_gnu_ld)
  36977. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  36978. +# automake: $automake_version
  36979. +# autoconf: $autoconf_version
  36980. +#
  36981. +# Report bugs to <bug-libtool@gnu.org>.
  36982. PROGRAM=ltmain.sh
  36983. PACKAGE=libtool
  36984. -VERSION="1.5.26 Debian 1.5.26-4"
  36985. -TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
  36986. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  36987. +TIMESTAMP=""
  36988. +package_revision=1.3017
  36989. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  36990. +# Be Bourne compatible
  36991. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  36992. emulate sh
  36993. NULLCMD=:
  36994. @@ -60,104 +91,261 @@
  36995. BIN_SH=xpg4; export BIN_SH # for Tru64
  36996. DUALCASE=1; export DUALCASE # for MKS sh
  36997. -# Check that we have a working $echo.
  36998. -if test "X$1" = X--no-reexec; then
  36999. - # Discard the --no-reexec flag, and continue.
  37000. - shift
  37001. -elif test "X$1" = X--fallback-echo; then
  37002. - # Avoid inline document here, it may be left over
  37003. - :
  37004. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  37005. - # Yippee, $echo works!
  37006. - :
  37007. -else
  37008. - # Restart under the correct shell, and then maybe $echo will work.
  37009. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  37010. -fi
  37011. -
  37012. -if test "X$1" = X--fallback-echo; then
  37013. - # used as fallback echo
  37014. - shift
  37015. - cat <<EOF
  37016. -$*
  37017. -EOF
  37018. - exit $EXIT_SUCCESS
  37019. -fi
  37020. -
  37021. -default_mode=
  37022. -help="Try \`$progname --help' for more information."
  37023. -magic="%%%MAGIC variable%%%"
  37024. -mkdir="mkdir"
  37025. -mv="mv -f"
  37026. -rm="rm -f"
  37027. -
  37028. -# Sed substitution that helps us do robust quoting. It backslashifies
  37029. -# metacharacters that are still active within double-quoted strings.
  37030. -Xsed="${SED}"' -e 1s/^X//'
  37031. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  37032. -# test EBCDIC or ASCII
  37033. -case `echo X|tr X '\101'` in
  37034. - A) # ASCII based system
  37035. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  37036. - SP2NL='tr \040 \012'
  37037. - NL2SP='tr \015\012 \040\040'
  37038. - ;;
  37039. - *) # EBCDIC based system
  37040. - SP2NL='tr \100 \n'
  37041. - NL2SP='tr \r\n \100\100'
  37042. - ;;
  37043. -esac
  37044. -
  37045. -# NLS nuisances.
  37046. +# NLS nuisances: We save the old values to restore during execute mode.
  37047. # Only set LANG and LC_ALL to C if already set.
  37048. # These must not be set unconditionally because not all systems understand
  37049. # e.g. LANG=C (notably SCO).
  37050. -# We save the old values to restore during execute mode.
  37051. -lt_env=
  37052. +lt_user_locale=
  37053. +lt_safe_locale=
  37054. for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  37055. do
  37056. eval "if test \"\${$lt_var+set}\" = set; then
  37057. - save_$lt_var=\$$lt_var
  37058. - lt_env=\"$lt_var=\$$lt_var \$lt_env\"
  37059. - $lt_var=C
  37060. + save_$lt_var=\$$lt_var
  37061. + $lt_var=C
  37062. export $lt_var
  37063. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  37064. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  37065. fi"
  37066. done
  37067. -if test -n "$lt_env"; then
  37068. - lt_env="env $lt_env"
  37069. -fi
  37070. +$lt_unset CDPATH
  37071. +
  37072. +
  37073. +
  37074. +
  37075. +
  37076. +: ${CP="cp -f"}
  37077. +: ${ECHO="echo"}
  37078. +: ${EGREP="/bin/grep -E"}
  37079. +: ${FGREP="/bin/grep -F"}
  37080. +: ${GREP="/bin/grep"}
  37081. +: ${LN_S="ln -s"}
  37082. +: ${MAKE="make"}
  37083. +: ${MKDIR="mkdir"}
  37084. +: ${MV="mv -f"}
  37085. +: ${RM="rm -f"}
  37086. +: ${SED="/bin/sed"}
  37087. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  37088. +: ${Xsed="$SED -e 1s/^X//"}
  37089. +
  37090. +# Global variables:
  37091. +EXIT_SUCCESS=0
  37092. +EXIT_FAILURE=1
  37093. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  37094. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  37095. +
  37096. +exit_status=$EXIT_SUCCESS
  37097. # Make sure IFS has a sensible default
  37098. lt_nl='
  37099. '
  37100. IFS=" $lt_nl"
  37101. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  37102. - $echo "$modename: not configured to build any kind of library" 1>&2
  37103. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  37104. - exit $EXIT_FAILURE
  37105. -fi
  37106. +dirname="s,/[^/]*$,,"
  37107. +basename="s,^.*/,,"
  37108. -# Global variables.
  37109. -mode=$default_mode
  37110. -nonopt=
  37111. -prev=
  37112. -prevopt=
  37113. -run=
  37114. -show="$echo"
  37115. -show_help=
  37116. -execute_dlfiles=
  37117. -duplicate_deps=no
  37118. -preserve_args=
  37119. -lo2o="s/\\.lo\$/.${objext}/"
  37120. -o2lo="s/\\.${objext}\$/.lo/"
  37121. -extracted_archives=
  37122. -extracted_serial=0
  37123. +# func_dirname_and_basename file append nondir_replacement
  37124. +# perform func_basename and func_dirname in a single function
  37125. +# call:
  37126. +# dirname: Compute the dirname of FILE. If nonempty,
  37127. +# add APPEND to the result, otherwise set result
  37128. +# to NONDIR_REPLACEMENT.
  37129. +# value returned in "$func_dirname_result"
  37130. +# basename: Compute filename of FILE.
  37131. +# value retuned in "$func_basename_result"
  37132. +# Implementation must be kept synchronized with func_dirname
  37133. +# and func_basename. For efficiency, we do not delegate to
  37134. +# those functions but instead duplicate the functionality here.
  37135. +func_dirname_and_basename ()
  37136. +{
  37137. + # Extract subdirectory from the argument.
  37138. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  37139. + if test "X$func_dirname_result" = "X${1}"; then
  37140. + func_dirname_result="${3}"
  37141. + else
  37142. + func_dirname_result="$func_dirname_result${2}"
  37143. + fi
  37144. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  37145. +}
  37146. +
  37147. +# Generated shell functions inserted here.
  37148. +
  37149. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  37150. +# is ksh but when the shell is invoked as "sh" and the current value of
  37151. +# the _XPG environment variable is not equal to 1 (one), the special
  37152. +# positional parameter $0, within a function call, is the name of the
  37153. +# function.
  37154. +progpath="$0"
  37155. +
  37156. +# The name of this program:
  37157. +# In the unlikely event $progname began with a '-', it would play havoc with
  37158. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  37159. +func_dirname_and_basename "$progpath"
  37160. +progname=$func_basename_result
  37161. +case $progname in
  37162. + -*) progname=./$progname ;;
  37163. +esac
  37164. +
  37165. +# Make sure we have an absolute path for reexecution:
  37166. +case $progpath in
  37167. + [\\/]*|[A-Za-z]:\\*) ;;
  37168. + *[\\/]*)
  37169. + progdir=$func_dirname_result
  37170. + progdir=`cd "$progdir" && pwd`
  37171. + progpath="$progdir/$progname"
  37172. + ;;
  37173. + *)
  37174. + save_IFS="$IFS"
  37175. + IFS=:
  37176. + for progdir in $PATH; do
  37177. + IFS="$save_IFS"
  37178. + test -x "$progdir/$progname" && break
  37179. + done
  37180. + IFS="$save_IFS"
  37181. + test -n "$progdir" || progdir=`pwd`
  37182. + progpath="$progdir/$progname"
  37183. + ;;
  37184. +esac
  37185. +
  37186. +# Sed substitution that helps us do robust quoting. It backslashifies
  37187. +# metacharacters that are still active within double-quoted strings.
  37188. +Xsed="${SED}"' -e 1s/^X//'
  37189. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  37190. +
  37191. +# Same as above, but do not quote variable references.
  37192. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  37193. +
  37194. +# Re-`\' parameter expansions in output of double_quote_subst that were
  37195. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  37196. +# in input to double_quote_subst, that '$' was protected from expansion.
  37197. +# Since each input `\' is now two `\'s, look for any number of runs of
  37198. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  37199. +bs='\\'
  37200. +bs2='\\\\'
  37201. +bs4='\\\\\\\\'
  37202. +dollar='\$'
  37203. +sed_double_backslash="\
  37204. + s/$bs4/&\\
  37205. +/g
  37206. + s/^$bs2$dollar/$bs&/
  37207. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  37208. + s/\n//g"
  37209. +
  37210. +# Standard options:
  37211. +opt_dry_run=false
  37212. +opt_help=false
  37213. +opt_quiet=false
  37214. +opt_verbose=false
  37215. +opt_warning=:
  37216. +
  37217. +# func_echo arg...
  37218. +# Echo program name prefixed message, along with the current mode
  37219. +# name if it has been set yet.
  37220. +func_echo ()
  37221. +{
  37222. + $ECHO "$progname${mode+: }$mode: $*"
  37223. +}
  37224. +
  37225. +# func_verbose arg...
  37226. +# Echo program name prefixed message in verbose mode only.
  37227. +func_verbose ()
  37228. +{
  37229. + $opt_verbose && func_echo ${1+"$@"}
  37230. +
  37231. + # A bug in bash halts the script if the last line of a function
  37232. + # fails when set -e is in force, so we need another command to
  37233. + # work around that:
  37234. + :
  37235. +}
  37236. +
  37237. +# func_error arg...
  37238. +# Echo program name prefixed message to standard error.
  37239. +func_error ()
  37240. +{
  37241. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  37242. +}
  37243. +
  37244. +# func_warning arg...
  37245. +# Echo program name prefixed warning message to standard error.
  37246. +func_warning ()
  37247. +{
  37248. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  37249. +
  37250. + # bash bug again:
  37251. + :
  37252. +}
  37253. +
  37254. +# func_fatal_error arg...
  37255. +# Echo program name prefixed message to standard error, and exit.
  37256. +func_fatal_error ()
  37257. +{
  37258. + func_error ${1+"$@"}
  37259. + exit $EXIT_FAILURE
  37260. +}
  37261. +
  37262. +# func_fatal_help arg...
  37263. +# Echo program name prefixed message to standard error, followed by
  37264. +# a help hint, and exit.
  37265. +func_fatal_help ()
  37266. +{
  37267. + func_error ${1+"$@"}
  37268. + func_fatal_error "$help"
  37269. +}
  37270. +help="Try \`$progname --help' for more information." ## default
  37271. +
  37272. +
  37273. +# func_grep expression filename
  37274. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  37275. +func_grep ()
  37276. +{
  37277. + $GREP "$1" "$2" >/dev/null 2>&1
  37278. +}
  37279. +
  37280. +
  37281. +# func_mkdir_p directory-path
  37282. +# Make sure the entire path to DIRECTORY-PATH is available.
  37283. +func_mkdir_p ()
  37284. +{
  37285. + my_directory_path="$1"
  37286. + my_dir_list=
  37287. +
  37288. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  37289. +
  37290. + # Protect directory names starting with `-'
  37291. + case $my_directory_path in
  37292. + -*) my_directory_path="./$my_directory_path" ;;
  37293. + esac
  37294. +
  37295. + # While some portion of DIR does not yet exist...
  37296. + while test ! -d "$my_directory_path"; do
  37297. + # ...make a list in topmost first order. Use a colon delimited
  37298. + # list incase some portion of path contains whitespace.
  37299. + my_dir_list="$my_directory_path:$my_dir_list"
  37300. +
  37301. + # If the last portion added has no slash in it, the list is done
  37302. + case $my_directory_path in */*) ;; *) break ;; esac
  37303. +
  37304. + # ...otherwise throw away the child directory and loop
  37305. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  37306. + done
  37307. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  37308. +
  37309. + save_mkdir_p_IFS="$IFS"; IFS=':'
  37310. + for my_dir in $my_dir_list; do
  37311. + IFS="$save_mkdir_p_IFS"
  37312. + # mkdir can fail with a `File exist' error if two processes
  37313. + # try to create one of the directories concurrently. Don't
  37314. + # stop in that case!
  37315. + $MKDIR "$my_dir" 2>/dev/null || :
  37316. + done
  37317. + IFS="$save_mkdir_p_IFS"
  37318. +
  37319. + # Bail out if we (or some other process) failed to create a directory.
  37320. + test -d "$my_directory_path" || \
  37321. + func_fatal_error "Failed to create \`$1'"
  37322. + fi
  37323. +}
  37324. -#####################################
  37325. -# Shell function definitions:
  37326. -# This seems to be the best place for them
  37327. # func_mktempdir [string]
  37328. # Make a temporary directory that won't clash with other running
  37329. @@ -167,7 +355,7 @@
  37330. {
  37331. my_template="${TMPDIR-/tmp}/${1-$progname}"
  37332. - if test "$run" = ":"; then
  37333. + if test "$opt_dry_run" = ":"; then
  37334. # Return a directory name, but don't create it in dry-run mode
  37335. my_tmpdir="${my_template}-$$"
  37336. else
  37337. @@ -176,526 +364,787 @@
  37338. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  37339. if test ! -d "$my_tmpdir"; then
  37340. - # Failing that, at least try and use $RANDOM to avoid a race
  37341. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  37342. + # Failing that, at least try and use $RANDOM to avoid a race
  37343. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  37344. - save_mktempdir_umask=`umask`
  37345. - umask 0077
  37346. - $mkdir "$my_tmpdir"
  37347. - umask $save_mktempdir_umask
  37348. + save_mktempdir_umask=`umask`
  37349. + umask 0077
  37350. + $MKDIR "$my_tmpdir"
  37351. + umask $save_mktempdir_umask
  37352. fi
  37353. # If we're not in dry-run mode, bomb out on failure
  37354. - test -d "$my_tmpdir" || {
  37355. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  37356. - exit $EXIT_FAILURE
  37357. - }
  37358. + test -d "$my_tmpdir" || \
  37359. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  37360. fi
  37361. - $echo "X$my_tmpdir" | $Xsed
  37362. + $ECHO "X$my_tmpdir" | $Xsed
  37363. }
  37364. -# func_win32_libid arg
  37365. -# return the library type of file 'arg'
  37366. -#
  37367. -# Need a lot of goo to handle *both* DLLs and import libs
  37368. -# Has to be a shell function in order to 'eat' the argument
  37369. -# that is supplied when $file_magic_command is called.
  37370. -func_win32_libid ()
  37371. +# func_quote_for_eval arg
  37372. +# Aesthetically quote ARG to be evaled later.
  37373. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  37374. +# is double-quoted, suitable for a subsequent eval, whereas
  37375. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  37376. +# which are still active within double quotes backslashified.
  37377. +func_quote_for_eval ()
  37378. {
  37379. - win32_libid_type="unknown"
  37380. - win32_fileres=`file -L $1 2>/dev/null`
  37381. - case $win32_fileres in
  37382. - *ar\ archive\ import\ library*) # definitely import
  37383. - win32_libid_type="x86 archive import"
  37384. - ;;
  37385. - *ar\ archive*) # could be an import, or static
  37386. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  37387. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  37388. - win32_nmres=`eval $NM -f posix -A $1 | \
  37389. - $SED -n -e '1,100{
  37390. - / I /{
  37391. - s,.*,import,
  37392. - p
  37393. - q
  37394. - }
  37395. - }'`
  37396. - case $win32_nmres in
  37397. - import*) win32_libid_type="x86 archive import";;
  37398. - *) win32_libid_type="x86 archive static";;
  37399. - esac
  37400. - fi
  37401. - ;;
  37402. - *DLL*)
  37403. - win32_libid_type="x86 DLL"
  37404. - ;;
  37405. - *executable*) # but shell scripts are "executable" too...
  37406. - case $win32_fileres in
  37407. - *MS\ Windows\ PE\ Intel*)
  37408. - win32_libid_type="x86 DLL"
  37409. - ;;
  37410. + case $1 in
  37411. + *[\\\`\"\$]*)
  37412. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  37413. + *)
  37414. + func_quote_for_eval_unquoted_result="$1" ;;
  37415. + esac
  37416. +
  37417. + case $func_quote_for_eval_unquoted_result in
  37418. + # Double-quote args containing shell metacharacters to delay
  37419. + # word splitting, command substitution and and variable
  37420. + # expansion for a subsequent eval.
  37421. + # Many Bourne shells cannot handle close brackets correctly
  37422. + # in scan sets, so we specify it separately.
  37423. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37424. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  37425. + ;;
  37426. + *)
  37427. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  37428. esac
  37429. - ;;
  37430. - esac
  37431. - $echo $win32_libid_type
  37432. }
  37433. -# func_infer_tag arg
  37434. -# Infer tagged configuration to use if any are available and
  37435. -# if one wasn't chosen via the "--tag" command line option.
  37436. -# Only attempt this if the compiler in the base compile
  37437. -# command doesn't match the default compiler.
  37438. -# arg is usually of the form 'gcc ...'
  37439. -func_infer_tag ()
  37440. +# func_quote_for_expand arg
  37441. +# Aesthetically quote ARG to be evaled later; same as above,
  37442. +# but do not quote variable references.
  37443. +func_quote_for_expand ()
  37444. {
  37445. - if test -n "$available_tags" && test -z "$tagname"; then
  37446. - CC_quoted=
  37447. - for arg in $CC; do
  37448. - case $arg in
  37449. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37450. - arg="\"$arg\""
  37451. - ;;
  37452. - esac
  37453. - CC_quoted="$CC_quoted $arg"
  37454. - done
  37455. - case $@ in
  37456. - # Blanks in the command may have been stripped by the calling shell,
  37457. - # but not from the CC environment variable when configure was run.
  37458. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  37459. - # Blanks at the start of $base_compile will cause this to fail
  37460. - # if we don't check for them as well.
  37461. + case $1 in
  37462. + *[\\\`\"]*)
  37463. + my_arg=`$ECHO "X$1" | $Xsed \
  37464. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  37465. *)
  37466. - for z in $available_tags; do
  37467. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  37468. - # Evaluate the configuration.
  37469. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  37470. - CC_quoted=
  37471. - for arg in $CC; do
  37472. - # Double-quote args containing other shell metacharacters.
  37473. - case $arg in
  37474. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37475. - arg="\"$arg\""
  37476. - ;;
  37477. - esac
  37478. - CC_quoted="$CC_quoted $arg"
  37479. - done
  37480. - case "$@ " in
  37481. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  37482. - # The compiler in the base compile command matches
  37483. - # the one in the tagged configuration.
  37484. - # Assume this is the tagged configuration we want.
  37485. - tagname=$z
  37486. - break
  37487. - ;;
  37488. - esac
  37489. - fi
  37490. - done
  37491. - # If $tagname still isn't set, then no tagged configuration
  37492. - # was found and let the user know that the "--tag" command
  37493. - # line option must be used.
  37494. - if test -z "$tagname"; then
  37495. - $echo "$modename: unable to infer tagged configuration"
  37496. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  37497. - exit $EXIT_FAILURE
  37498. -# else
  37499. -# $echo "$modename: using $tagname tagged configuration"
  37500. - fi
  37501. - ;;
  37502. - esac
  37503. - fi
  37504. + my_arg="$1" ;;
  37505. + esac
  37506. +
  37507. + case $my_arg in
  37508. + # Double-quote args containing shell metacharacters to delay
  37509. + # word splitting and command substitution for a subsequent eval.
  37510. + # Many Bourne shells cannot handle close brackets correctly
  37511. + # in scan sets, so we specify it separately.
  37512. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37513. + my_arg="\"$my_arg\""
  37514. + ;;
  37515. + esac
  37516. +
  37517. + func_quote_for_expand_result="$my_arg"
  37518. }
  37519. -# func_extract_an_archive dir oldlib
  37520. -func_extract_an_archive ()
  37521. +# func_show_eval cmd [fail_exp]
  37522. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  37523. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  37524. +# is given, then evaluate it.
  37525. +func_show_eval ()
  37526. {
  37527. - f_ex_an_ar_dir="$1"; shift
  37528. - f_ex_an_ar_oldlib="$1"
  37529. + my_cmd="$1"
  37530. + my_fail_exp="${2-:}"
  37531. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  37532. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  37533. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  37534. - :
  37535. - else
  37536. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  37537. - exit $EXIT_FAILURE
  37538. + ${opt_silent-false} || {
  37539. + func_quote_for_expand "$my_cmd"
  37540. + eval "func_echo $func_quote_for_expand_result"
  37541. + }
  37542. +
  37543. + if ${opt_dry_run-false}; then :; else
  37544. + eval "$my_cmd"
  37545. + my_status=$?
  37546. + if test "$my_status" -eq 0; then :; else
  37547. + eval "(exit $my_status); $my_fail_exp"
  37548. + fi
  37549. fi
  37550. }
  37551. -# func_extract_archives gentop oldlib ...
  37552. -func_extract_archives ()
  37553. +
  37554. +# func_show_eval_locale cmd [fail_exp]
  37555. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  37556. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  37557. +# is given, then evaluate it. Use the saved locale for evaluation.
  37558. +func_show_eval_locale ()
  37559. {
  37560. - my_gentop="$1"; shift
  37561. - my_oldlibs=${1+"$@"}
  37562. - my_oldobjs=""
  37563. - my_xlib=""
  37564. - my_xabs=""
  37565. - my_xdir=""
  37566. - my_status=""
  37567. + my_cmd="$1"
  37568. + my_fail_exp="${2-:}"
  37569. +
  37570. + ${opt_silent-false} || {
  37571. + func_quote_for_expand "$my_cmd"
  37572. + eval "func_echo $func_quote_for_expand_result"
  37573. + }
  37574. - $show "${rm}r $my_gentop"
  37575. - $run ${rm}r "$my_gentop"
  37576. - $show "$mkdir $my_gentop"
  37577. - $run $mkdir "$my_gentop"
  37578. - my_status=$?
  37579. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  37580. - exit $my_status
  37581. + if ${opt_dry_run-false}; then :; else
  37582. + eval "$lt_user_locale
  37583. + $my_cmd"
  37584. + my_status=$?
  37585. + eval "$lt_safe_locale"
  37586. + if test "$my_status" -eq 0; then :; else
  37587. + eval "(exit $my_status); $my_fail_exp"
  37588. + fi
  37589. fi
  37590. +}
  37591. - for my_xlib in $my_oldlibs; do
  37592. - # Extract the objects.
  37593. - case $my_xlib in
  37594. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  37595. - *) my_xabs=`pwd`"/$my_xlib" ;;
  37596. - esac
  37597. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  37598. - my_xlib_u=$my_xlib
  37599. - while :; do
  37600. - case " $extracted_archives " in
  37601. - *" $my_xlib_u "*)
  37602. - extracted_serial=`expr $extracted_serial + 1`
  37603. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  37604. - *) break ;;
  37605. - esac
  37606. - done
  37607. - extracted_archives="$extracted_archives $my_xlib_u"
  37608. - my_xdir="$my_gentop/$my_xlib_u"
  37609. - $show "${rm}r $my_xdir"
  37610. - $run ${rm}r "$my_xdir"
  37611. - $show "$mkdir $my_xdir"
  37612. - $run $mkdir "$my_xdir"
  37613. - exit_status=$?
  37614. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  37615. - exit $exit_status
  37616. - fi
  37617. - case $host in
  37618. - *-darwin*)
  37619. - $show "Extracting $my_xabs"
  37620. - # Do not bother doing anything if just a dry run
  37621. - if test -z "$run"; then
  37622. - darwin_orig_dir=`pwd`
  37623. - cd $my_xdir || exit $?
  37624. - darwin_archive=$my_xabs
  37625. - darwin_curdir=`pwd`
  37626. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  37627. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  37628. - if test -n "$darwin_arches"; then
  37629. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  37630. - darwin_arch=
  37631. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  37632. - for darwin_arch in $darwin_arches ; do
  37633. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  37634. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  37635. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  37636. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  37637. - cd "$darwin_curdir"
  37638. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  37639. - done # $darwin_arches
  37640. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  37641. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  37642. - darwin_file=
  37643. - darwin_files=
  37644. - for darwin_file in $darwin_filelist; do
  37645. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  37646. - lipo -create -output "$darwin_file" $darwin_files
  37647. - done # $darwin_filelist
  37648. - ${rm}r unfat-$$
  37649. - cd "$darwin_orig_dir"
  37650. - else
  37651. - cd "$darwin_orig_dir"
  37652. - func_extract_an_archive "$my_xdir" "$my_xabs"
  37653. - fi # $darwin_arches
  37654. - fi # $run
  37655. - ;;
  37656. - *)
  37657. - func_extract_an_archive "$my_xdir" "$my_xabs"
  37658. - ;;
  37659. - esac
  37660. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  37661. - done
  37662. - func_extract_archives_result="$my_oldobjs"
  37663. +
  37664. +
  37665. +
  37666. +# func_version
  37667. +# Echo version message to standard output and exit.
  37668. +func_version ()
  37669. +{
  37670. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  37671. + s/^# //
  37672. + s/^# *$//
  37673. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  37674. + p
  37675. + }' < "$progpath"
  37676. + exit $?
  37677. +}
  37678. +
  37679. +# func_usage
  37680. +# Echo short help message to standard output and exit.
  37681. +func_usage ()
  37682. +{
  37683. + $SED -n '/^# Usage:/,/# -h/ {
  37684. + s/^# //
  37685. + s/^# *$//
  37686. + s/\$progname/'$progname'/
  37687. + p
  37688. + }' < "$progpath"
  37689. + $ECHO
  37690. + $ECHO "run \`$progname --help | more' for full usage"
  37691. + exit $?
  37692. +}
  37693. +
  37694. +# func_help
  37695. +# Echo long help message to standard output and exit.
  37696. +func_help ()
  37697. +{
  37698. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  37699. + s/^# //
  37700. + s/^# *$//
  37701. + s*\$progname*'$progname'*
  37702. + s*\$host*'"$host"'*
  37703. + s*\$SHELL*'"$SHELL"'*
  37704. + s*\$LTCC*'"$LTCC"'*
  37705. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  37706. + s*\$LD*'"$LD"'*
  37707. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  37708. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  37709. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  37710. + p
  37711. + }' < "$progpath"
  37712. + exit $?
  37713. +}
  37714. +
  37715. +# func_missing_arg argname
  37716. +# Echo program name prefixed message to standard error and set global
  37717. +# exit_cmd.
  37718. +func_missing_arg ()
  37719. +{
  37720. + func_error "missing argument for $1"
  37721. + exit_cmd=exit
  37722. }
  37723. -# End of Shell function definitions
  37724. -#####################################
  37725. -# Darwin sucks
  37726. -eval std_shrext=\"$shrext_cmds\"
  37727. +exit_cmd=:
  37728. -disable_libs=no
  37729. -# Parse our command line options once, thoroughly.
  37730. -while test "$#" -gt 0
  37731. -do
  37732. - arg="$1"
  37733. +
  37734. +
  37735. +
  37736. +# Check that we have a working $ECHO.
  37737. +if test "X$1" = X--no-reexec; then
  37738. + # Discard the --no-reexec flag, and continue.
  37739. shift
  37740. +elif test "X$1" = X--fallback-echo; then
  37741. + # Avoid inline document here, it may be left over
  37742. + :
  37743. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  37744. + # Yippee, $ECHO works!
  37745. + :
  37746. +else
  37747. + # Restart under the correct shell, and then maybe $ECHO will work.
  37748. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  37749. +fi
  37750. - case $arg in
  37751. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  37752. - *) optarg= ;;
  37753. - esac
  37754. +if test "X$1" = X--fallback-echo; then
  37755. + # used as fallback echo
  37756. + shift
  37757. + cat <<EOF
  37758. +$*
  37759. +EOF
  37760. + exit $EXIT_SUCCESS
  37761. +fi
  37762. - # If the previous option needs an argument, assign it.
  37763. - if test -n "$prev"; then
  37764. - case $prev in
  37765. - execute_dlfiles)
  37766. - execute_dlfiles="$execute_dlfiles $arg"
  37767. - ;;
  37768. - tag)
  37769. - tagname="$arg"
  37770. - preserve_args="${preserve_args}=$arg"
  37771. -
  37772. - # Check whether tagname contains only valid characters
  37773. - case $tagname in
  37774. - *[!-_A-Za-z0-9,/]*)
  37775. - $echo "$progname: invalid tag name: $tagname" 1>&2
  37776. - exit $EXIT_FAILURE
  37777. - ;;
  37778. - esac
  37779. +magic="%%%MAGIC variable%%%"
  37780. +magic_exe="%%%MAGIC EXE variable%%%"
  37781. - case $tagname in
  37782. - CC)
  37783. - # Don't test for the "default" C tag, as we know, it's there, but
  37784. - # not specially marked.
  37785. - ;;
  37786. - *)
  37787. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  37788. - taglist="$taglist $tagname"
  37789. - # Evaluate the configuration.
  37790. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  37791. - else
  37792. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  37793. - fi
  37794. - ;;
  37795. - esac
  37796. - ;;
  37797. - *)
  37798. - eval "$prev=\$arg"
  37799. - ;;
  37800. - esac
  37801. +# Global variables.
  37802. +# $mode is unset
  37803. +nonopt=
  37804. +execute_dlfiles=
  37805. +preserve_args=
  37806. +lo2o="s/\\.lo\$/.${objext}/"
  37807. +o2lo="s/\\.${objext}\$/.lo/"
  37808. +extracted_archives=
  37809. +extracted_serial=0
  37810. - prev=
  37811. - prevopt=
  37812. - continue
  37813. - fi
  37814. +opt_dry_run=false
  37815. +opt_duplicate_deps=false
  37816. +opt_silent=false
  37817. +opt_debug=:
  37818. - # Have we seen a non-optional argument yet?
  37819. - case $arg in
  37820. - --help)
  37821. - show_help=yes
  37822. - ;;
  37823. +# If this variable is set in any of the actions, the command in it
  37824. +# will be execed at the end. This prevents here-documents from being
  37825. +# left over by shells.
  37826. +exec_cmd=
  37827. - --version)
  37828. - echo "\
  37829. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  37830. -
  37831. -Copyright (C) 2008 Free Software Foundation, Inc.
  37832. -This is free software; see the source for copying conditions. There is NO
  37833. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  37834. - exit $?
  37835. - ;;
  37836. +# func_fatal_configuration arg...
  37837. +# Echo program name prefixed message to standard error, followed by
  37838. +# a configuration failure hint, and exit.
  37839. +func_fatal_configuration ()
  37840. +{
  37841. + func_error ${1+"$@"}
  37842. + func_error "See the $PACKAGE documentation for more information."
  37843. + func_fatal_error "Fatal configuration error."
  37844. +}
  37845. +
  37846. +
  37847. +# func_config
  37848. +# Display the configuration for all the tags in this script.
  37849. +func_config ()
  37850. +{
  37851. + re_begincf='^# ### BEGIN LIBTOOL'
  37852. + re_endcf='^# ### END LIBTOOL'
  37853. +
  37854. + # Default configuration.
  37855. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  37856. - --config)
  37857. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  37858. # Now print the configurations for the tags.
  37859. for tagname in $taglist; do
  37860. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  37861. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  37862. done
  37863. - exit $?
  37864. - ;;
  37865. -
  37866. - --debug)
  37867. - $echo "$progname: enabling shell trace mode"
  37868. - set -x
  37869. - preserve_args="$preserve_args $arg"
  37870. - ;;
  37871. - --dry-run | -n)
  37872. - run=:
  37873. - ;;
  37874. + exit $?
  37875. +}
  37876. - --features)
  37877. - $echo "host: $host"
  37878. +# func_features
  37879. +# Display the features supported by this script.
  37880. +func_features ()
  37881. +{
  37882. + $ECHO "host: $host"
  37883. if test "$build_libtool_libs" = yes; then
  37884. - $echo "enable shared libraries"
  37885. + $ECHO "enable shared libraries"
  37886. else
  37887. - $echo "disable shared libraries"
  37888. + $ECHO "disable shared libraries"
  37889. fi
  37890. if test "$build_old_libs" = yes; then
  37891. - $echo "enable static libraries"
  37892. + $ECHO "enable static libraries"
  37893. else
  37894. - $echo "disable static libraries"
  37895. + $ECHO "disable static libraries"
  37896. fi
  37897. +
  37898. exit $?
  37899. - ;;
  37900. +}
  37901. - --finish) mode="finish" ;;
  37902. +# func_enable_tag tagname
  37903. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  37904. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  37905. +# variable here.
  37906. +func_enable_tag ()
  37907. +{
  37908. + # Global variable:
  37909. + tagname="$1"
  37910. +
  37911. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  37912. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  37913. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  37914. +
  37915. + # Validate tagname.
  37916. + case $tagname in
  37917. + *[!-_A-Za-z0-9,/]*)
  37918. + func_fatal_error "invalid tag name: $tagname"
  37919. + ;;
  37920. + esac
  37921. - --mode) prevopt="--mode" prev=mode ;;
  37922. - --mode=*) mode="$optarg" ;;
  37923. + # Don't test for the "default" C tag, as we know it's
  37924. + # there but not specially marked.
  37925. + case $tagname in
  37926. + CC) ;;
  37927. + *)
  37928. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  37929. + taglist="$taglist $tagname"
  37930. - --preserve-dup-deps) duplicate_deps="yes" ;;
  37931. + # Evaluate the configuration. Be careful to quote the path
  37932. + # and the sed script, to avoid splitting on whitespace, but
  37933. + # also don't use non-portable quotes within backquotes within
  37934. + # quotes we have to do it in 2 steps:
  37935. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  37936. + eval "$extractedcf"
  37937. + else
  37938. + func_error "ignoring unknown tag $tagname"
  37939. + fi
  37940. + ;;
  37941. + esac
  37942. +}
  37943. - --quiet | --silent)
  37944. - show=:
  37945. - preserve_args="$preserve_args $arg"
  37946. - ;;
  37947. +# Parse options once, thoroughly. This comes as soon as possible in
  37948. +# the script to make things like `libtool --version' happen quickly.
  37949. +{
  37950. - --tag)
  37951. - prevopt="--tag"
  37952. - prev=tag
  37953. - preserve_args="$preserve_args --tag"
  37954. + # Shorthand for --mode=foo, only valid as the first argument
  37955. + case $1 in
  37956. + clean|clea|cle|cl)
  37957. + shift; set dummy --mode clean ${1+"$@"}; shift
  37958. ;;
  37959. - --tag=*)
  37960. - set tag "$optarg" ${1+"$@"}
  37961. - shift
  37962. - prev=tag
  37963. - preserve_args="$preserve_args --tag"
  37964. + compile|compil|compi|comp|com|co|c)
  37965. + shift; set dummy --mode compile ${1+"$@"}; shift
  37966. ;;
  37967. -
  37968. - -dlopen)
  37969. - prevopt="-dlopen"
  37970. - prev=execute_dlfiles
  37971. + execute|execut|execu|exec|exe|ex|e)
  37972. + shift; set dummy --mode execute ${1+"$@"}; shift
  37973. ;;
  37974. -
  37975. - -*)
  37976. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  37977. - $echo "$help" 1>&2
  37978. - exit $EXIT_FAILURE
  37979. + finish|finis|fini|fin|fi|f)
  37980. + shift; set dummy --mode finish ${1+"$@"}; shift
  37981. ;;
  37982. -
  37983. - *)
  37984. - nonopt="$arg"
  37985. - break
  37986. + install|instal|insta|inst|ins|in|i)
  37987. + shift; set dummy --mode install ${1+"$@"}; shift
  37988. + ;;
  37989. + link|lin|li|l)
  37990. + shift; set dummy --mode link ${1+"$@"}; shift
  37991. + ;;
  37992. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  37993. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  37994. ;;
  37995. esac
  37996. -done
  37997. -if test -n "$prevopt"; then
  37998. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  37999. - $echo "$help" 1>&2
  38000. - exit $EXIT_FAILURE
  38001. -fi
  38002. + # Parse non-mode specific arguments:
  38003. + while test "$#" -gt 0; do
  38004. + opt="$1"
  38005. + shift
  38006. -case $disable_libs in
  38007. -no)
  38008. - ;;
  38009. -shared)
  38010. - build_libtool_libs=no
  38011. - build_old_libs=yes
  38012. - ;;
  38013. -static)
  38014. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  38015. - ;;
  38016. -esac
  38017. + case $opt in
  38018. + --config) func_config ;;
  38019. -# If this variable is set in any of the actions, the command in it
  38020. -# will be execed at the end. This prevents here-documents from being
  38021. -# left over by shells.
  38022. -exec_cmd=
  38023. + --debug) preserve_args="$preserve_args $opt"
  38024. + func_echo "enabling shell trace mode"
  38025. + opt_debug='set -x'
  38026. + $opt_debug
  38027. + ;;
  38028. -if test -z "$show_help"; then
  38029. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  38030. + execute_dlfiles="$execute_dlfiles $1"
  38031. + shift
  38032. + ;;
  38033. - # Infer the operation mode.
  38034. - if test -z "$mode"; then
  38035. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  38036. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  38037. - case $nonopt in
  38038. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  38039. - mode=link
  38040. - for arg
  38041. - do
  38042. - case $arg in
  38043. - -c)
  38044. - mode=compile
  38045. - break
  38046. - ;;
  38047. - esac
  38048. - done
  38049. - ;;
  38050. - *db | *dbx | *strace | *truss)
  38051. - mode=execute
  38052. - ;;
  38053. - *install*|cp|mv)
  38054. - mode=install
  38055. - ;;
  38056. - *rm)
  38057. - mode=uninstall
  38058. + --dry-run | -n) opt_dry_run=: ;;
  38059. + --features) func_features ;;
  38060. + --finish) mode="finish" ;;
  38061. +
  38062. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  38063. + case $1 in
  38064. + # Valid mode arguments:
  38065. + clean) ;;
  38066. + compile) ;;
  38067. + execute) ;;
  38068. + finish) ;;
  38069. + install) ;;
  38070. + link) ;;
  38071. + relink) ;;
  38072. + uninstall) ;;
  38073. +
  38074. + # Catch anything else as an error
  38075. + *) func_error "invalid argument for $opt"
  38076. + exit_cmd=exit
  38077. + break
  38078. + ;;
  38079. + esac
  38080. +
  38081. + mode="$1"
  38082. + shift
  38083. + ;;
  38084. +
  38085. + --preserve-dup-deps)
  38086. + opt_duplicate_deps=: ;;
  38087. +
  38088. + --quiet|--silent) preserve_args="$preserve_args $opt"
  38089. + opt_silent=:
  38090. + ;;
  38091. +
  38092. + --verbose| -v) preserve_args="$preserve_args $opt"
  38093. + opt_silent=false
  38094. + ;;
  38095. +
  38096. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  38097. + preserve_args="$preserve_args $opt $1"
  38098. + func_enable_tag "$1" # tagname is set here
  38099. + shift
  38100. + ;;
  38101. +
  38102. + # Separate optargs to long options:
  38103. + -dlopen=*|--mode=*|--tag=*)
  38104. + func_opt_split "$opt"
  38105. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  38106. + shift
  38107. + ;;
  38108. +
  38109. + -\?|-h) func_usage ;;
  38110. + --help) opt_help=: ;;
  38111. + --version) func_version ;;
  38112. +
  38113. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  38114. +
  38115. + *) nonopt="$opt"
  38116. + break
  38117. + ;;
  38118. + esac
  38119. + done
  38120. +
  38121. +
  38122. + case $host in
  38123. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  38124. + # don't eliminate duplications in $postdeps and $predeps
  38125. + opt_duplicate_compiler_generated_deps=:
  38126. ;;
  38127. *)
  38128. - # If we have no mode, but dlfiles were specified, then do execute mode.
  38129. - test -n "$execute_dlfiles" && mode=execute
  38130. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  38131. + ;;
  38132. + esac
  38133. - # Just use the default operation mode.
  38134. - if test -z "$mode"; then
  38135. - if test -n "$nonopt"; then
  38136. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  38137. - else
  38138. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  38139. - fi
  38140. + # Having warned about all mis-specified options, bail out if
  38141. + # anything was wrong.
  38142. + $exit_cmd $EXIT_FAILURE
  38143. +}
  38144. +
  38145. +# func_check_version_match
  38146. +# Ensure that we are using m4 macros, and libtool script from the same
  38147. +# release of libtool.
  38148. +func_check_version_match ()
  38149. +{
  38150. + if test "$package_revision" != "$macro_revision"; then
  38151. + if test "$VERSION" != "$macro_version"; then
  38152. + if test -z "$macro_version"; then
  38153. + cat >&2 <<_LT_EOF
  38154. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  38155. +$progname: definition of this LT_INIT comes from an older release.
  38156. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  38157. +$progname: and run autoconf again.
  38158. +_LT_EOF
  38159. + else
  38160. + cat >&2 <<_LT_EOF
  38161. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  38162. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  38163. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  38164. +$progname: and run autoconf again.
  38165. +_LT_EOF
  38166. fi
  38167. - ;;
  38168. - esac
  38169. + else
  38170. + cat >&2 <<_LT_EOF
  38171. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  38172. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  38173. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  38174. +$progname: of $PACKAGE $VERSION and run autoconf again.
  38175. +_LT_EOF
  38176. + fi
  38177. +
  38178. + exit $EXIT_MISMATCH
  38179. + fi
  38180. +}
  38181. +
  38182. +
  38183. +## ----------- ##
  38184. +## Main. ##
  38185. +## ----------- ##
  38186. +
  38187. +$opt_help || {
  38188. + # Sanity checks first:
  38189. + func_check_version_match
  38190. +
  38191. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  38192. + func_fatal_configuration "not configured to build any kind of library"
  38193. fi
  38194. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  38195. +
  38196. +
  38197. + # Darwin sucks
  38198. + eval std_shrext=\"$shrext_cmds\"
  38199. +
  38200. +
  38201. # Only execute mode is allowed to have -dlopen flags.
  38202. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  38203. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  38204. - $echo "$help" 1>&2
  38205. + func_error "unrecognized option \`-dlopen'"
  38206. + $ECHO "$help" 1>&2
  38207. exit $EXIT_FAILURE
  38208. fi
  38209. # Change the help message to a mode-specific one.
  38210. generic_help="$help"
  38211. - help="Try \`$modename --help --mode=$mode' for more information."
  38212. + help="Try \`$progname --help --mode=$mode' for more information."
  38213. +}
  38214. - # These modes are in order of execution frequency so that they run quickly.
  38215. - case $mode in
  38216. - # libtool compile mode
  38217. - compile)
  38218. - modename="$modename: compile"
  38219. - # Get the compilation command and the source file.
  38220. - base_compile=
  38221. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  38222. - suppress_opt=yes
  38223. - suppress_output=
  38224. - arg_mode=normal
  38225. - libobj=
  38226. - later=
  38227. - for arg
  38228. - do
  38229. - case $arg_mode in
  38230. - arg )
  38231. - # do not "continue". Instead, add this to base_compile
  38232. - lastarg="$arg"
  38233. - arg_mode=normal
  38234. - ;;
  38235. +# func_lalib_p file
  38236. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  38237. +# This function is only a basic sanity check; it will hardly flush out
  38238. +# determined imposters.
  38239. +func_lalib_p ()
  38240. +{
  38241. + test -f "$1" &&
  38242. + $SED -e 4q "$1" 2>/dev/null \
  38243. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  38244. +}
  38245. - target )
  38246. - libobj="$arg"
  38247. - arg_mode=normal
  38248. - continue
  38249. - ;;
  38250. +# func_lalib_unsafe_p file
  38251. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  38252. +# This function implements the same check as func_lalib_p without
  38253. +# resorting to external programs. To this end, it redirects stdin and
  38254. +# closes it afterwards, without saving the original file descriptor.
  38255. +# As a safety measure, use it only where a negative result would be
  38256. +# fatal anyway. Works if `file' does not exist.
  38257. +func_lalib_unsafe_p ()
  38258. +{
  38259. + lalib_p=no
  38260. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  38261. + for lalib_p_l in 1 2 3 4
  38262. + do
  38263. + read lalib_p_line
  38264. + case "$lalib_p_line" in
  38265. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  38266. + esac
  38267. + done
  38268. + exec 0<&5 5<&-
  38269. + fi
  38270. + test "$lalib_p" = yes
  38271. +}
  38272. - normal )
  38273. - # Accept any command-line options.
  38274. - case $arg in
  38275. - -o)
  38276. - if test -n "$libobj" ; then
  38277. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  38278. - exit $EXIT_FAILURE
  38279. - fi
  38280. - arg_mode=target
  38281. - continue
  38282. - ;;
  38283. +# func_ltwrapper_script_p file
  38284. +# True iff FILE is a libtool wrapper script
  38285. +# This function is only a basic sanity check; it will hardly flush out
  38286. +# determined imposters.
  38287. +func_ltwrapper_script_p ()
  38288. +{
  38289. + func_lalib_p "$1"
  38290. +}
  38291. - -static | -prefer-pic | -prefer-non-pic)
  38292. - later="$later $arg"
  38293. - continue
  38294. - ;;
  38295. +# func_ltwrapper_executable_p file
  38296. +# True iff FILE is a libtool wrapper executable
  38297. +# This function is only a basic sanity check; it will hardly flush out
  38298. +# determined imposters.
  38299. +func_ltwrapper_executable_p ()
  38300. +{
  38301. + func_ltwrapper_exec_suffix=
  38302. + case $1 in
  38303. + *.exe) ;;
  38304. + *) func_ltwrapper_exec_suffix=.exe ;;
  38305. + esac
  38306. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  38307. +}
  38308. +
  38309. +# func_ltwrapper_scriptname file
  38310. +# Assumes file is an ltwrapper_executable
  38311. +# uses $file to determine the appropriate filename for a
  38312. +# temporary ltwrapper_script.
  38313. +func_ltwrapper_scriptname ()
  38314. +{
  38315. + func_ltwrapper_scriptname_result=""
  38316. + if func_ltwrapper_executable_p "$1"; then
  38317. + func_dirname_and_basename "$1" "" "."
  38318. + func_stripname '' '.exe' "$func_basename_result"
  38319. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  38320. + fi
  38321. +}
  38322. +
  38323. +# func_ltwrapper_p file
  38324. +# True iff FILE is a libtool wrapper script or wrapper executable
  38325. +# This function is only a basic sanity check; it will hardly flush out
  38326. +# determined imposters.
  38327. +func_ltwrapper_p ()
  38328. +{
  38329. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  38330. +}
  38331. +
  38332. +
  38333. +# func_execute_cmds commands fail_cmd
  38334. +# Execute tilde-delimited COMMANDS.
  38335. +# If FAIL_CMD is given, eval that upon failure.
  38336. +# FAIL_CMD may read-access the current command in variable CMD!
  38337. +func_execute_cmds ()
  38338. +{
  38339. + $opt_debug
  38340. + save_ifs=$IFS; IFS='~'
  38341. + for cmd in $1; do
  38342. + IFS=$save_ifs
  38343. + eval cmd=\"$cmd\"
  38344. + func_show_eval "$cmd" "${2-:}"
  38345. + done
  38346. + IFS=$save_ifs
  38347. +}
  38348. +
  38349. +
  38350. +# func_source file
  38351. +# Source FILE, adding directory component if necessary.
  38352. +# Note that it is not necessary on cygwin/mingw to append a dot to
  38353. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  38354. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  38355. +# `FILE.' does not work on cygwin managed mounts.
  38356. +func_source ()
  38357. +{
  38358. + $opt_debug
  38359. + case $1 in
  38360. + */* | *\\*) . "$1" ;;
  38361. + *) . "./$1" ;;
  38362. + esac
  38363. +}
  38364. +
  38365. +
  38366. +# func_infer_tag arg
  38367. +# Infer tagged configuration to use if any are available and
  38368. +# if one wasn't chosen via the "--tag" command line option.
  38369. +# Only attempt this if the compiler in the base compile
  38370. +# command doesn't match the default compiler.
  38371. +# arg is usually of the form 'gcc ...'
  38372. +func_infer_tag ()
  38373. +{
  38374. + $opt_debug
  38375. + if test -n "$available_tags" && test -z "$tagname"; then
  38376. + CC_quoted=
  38377. + for arg in $CC; do
  38378. + func_quote_for_eval "$arg"
  38379. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  38380. + done
  38381. + case $@ in
  38382. + # Blanks in the command may have been stripped by the calling shell,
  38383. + # but not from the CC environment variable when configure was run.
  38384. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  38385. + # Blanks at the start of $base_compile will cause this to fail
  38386. + # if we don't check for them as well.
  38387. + *)
  38388. + for z in $available_tags; do
  38389. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  38390. + # Evaluate the configuration.
  38391. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  38392. + CC_quoted=
  38393. + for arg in $CC; do
  38394. + # Double-quote args containing other shell metacharacters.
  38395. + func_quote_for_eval "$arg"
  38396. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  38397. + done
  38398. + case "$@ " in
  38399. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  38400. + # The compiler in the base compile command matches
  38401. + # the one in the tagged configuration.
  38402. + # Assume this is the tagged configuration we want.
  38403. + tagname=$z
  38404. + break
  38405. + ;;
  38406. + esac
  38407. + fi
  38408. + done
  38409. + # If $tagname still isn't set, then no tagged configuration
  38410. + # was found and let the user know that the "--tag" command
  38411. + # line option must be used.
  38412. + if test -z "$tagname"; then
  38413. + func_echo "unable to infer tagged configuration"
  38414. + func_fatal_error "specify a tag with \`--tag'"
  38415. +# else
  38416. +# func_verbose "using $tagname tagged configuration"
  38417. + fi
  38418. + ;;
  38419. + esac
  38420. + fi
  38421. +}
  38422. +
  38423. +
  38424. +
  38425. +# func_write_libtool_object output_name pic_name nonpic_name
  38426. +# Create a libtool object file (analogous to a ".la" file),
  38427. +# but don't create it if we're doing a dry run.
  38428. +func_write_libtool_object ()
  38429. +{
  38430. + write_libobj=${1}
  38431. + if test "$build_libtool_libs" = yes; then
  38432. + write_lobj=\'${2}\'
  38433. + else
  38434. + write_lobj=none
  38435. + fi
  38436. +
  38437. + if test "$build_old_libs" = yes; then
  38438. + write_oldobj=\'${3}\'
  38439. + else
  38440. + write_oldobj=none
  38441. + fi
  38442. +
  38443. + $opt_dry_run || {
  38444. + cat >${write_libobj}T <<EOF
  38445. +# $write_libobj - a libtool object file
  38446. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  38447. +#
  38448. +# Please DO NOT delete this file!
  38449. +# It is necessary for linking the library.
  38450. +
  38451. +# Name of the PIC object.
  38452. +pic_object=$write_lobj
  38453. +
  38454. +# Name of the non-PIC object
  38455. +non_pic_object=$write_oldobj
  38456. +
  38457. +EOF
  38458. + $MV "${write_libobj}T" "${write_libobj}"
  38459. + }
  38460. +}
  38461. +
  38462. +# func_mode_compile arg...
  38463. +func_mode_compile ()
  38464. +{
  38465. + $opt_debug
  38466. + # Get the compilation command and the source file.
  38467. + base_compile=
  38468. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  38469. + suppress_opt=yes
  38470. + suppress_output=
  38471. + arg_mode=normal
  38472. + libobj=
  38473. + later=
  38474. + pie_flag=
  38475. +
  38476. + for arg
  38477. + do
  38478. + case $arg_mode in
  38479. + arg )
  38480. + # do not "continue". Instead, add this to base_compile
  38481. + lastarg="$arg"
  38482. + arg_mode=normal
  38483. + ;;
  38484. +
  38485. + target )
  38486. + libobj="$arg"
  38487. + arg_mode=normal
  38488. + continue
  38489. + ;;
  38490. +
  38491. + normal )
  38492. + # Accept any command-line options.
  38493. + case $arg in
  38494. + -o)
  38495. + test -n "$libobj" && \
  38496. + func_fatal_error "you cannot specify \`-o' more than once"
  38497. + arg_mode=target
  38498. + continue
  38499. + ;;
  38500. +
  38501. + -pie | -fpie | -fPIE)
  38502. + pie_flag="$pie_flag $arg"
  38503. + continue
  38504. + ;;
  38505. +
  38506. + -shared | -static | -prefer-pic | -prefer-non-pic)
  38507. + later="$later $arg"
  38508. + continue
  38509. + ;;
  38510. -no-suppress)
  38511. suppress_opt=no
  38512. @@ -708,31 +1157,25 @@
  38513. ;; # replaced later. I would guess that would be a bug.
  38514. -Wc,*)
  38515. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  38516. + func_stripname '-Wc,' '' "$arg"
  38517. + args=$func_stripname_result
  38518. lastarg=
  38519. save_ifs="$IFS"; IFS=','
  38520. - for arg in $args; do
  38521. + for arg in $args; do
  38522. IFS="$save_ifs"
  38523. -
  38524. - # Double-quote args containing other shell metacharacters.
  38525. - # Many Bourne shells cannot handle close brackets correctly
  38526. - # in scan sets, so we specify it separately.
  38527. - case $arg in
  38528. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38529. - arg="\"$arg\""
  38530. - ;;
  38531. - esac
  38532. - lastarg="$lastarg $arg"
  38533. + func_quote_for_eval "$arg"
  38534. + lastarg="$lastarg $func_quote_for_eval_result"
  38535. done
  38536. IFS="$save_ifs"
  38537. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  38538. + func_stripname ' ' '' "$lastarg"
  38539. + lastarg=$func_stripname_result
  38540. # Add the arguments to base_compile.
  38541. base_compile="$base_compile $lastarg"
  38542. continue
  38543. ;;
  38544. - * )
  38545. + *)
  38546. # Accept the current argument as the source file.
  38547. # The previous "srcfile" becomes the current argument.
  38548. #
  38549. @@ -744,66 +1187,42 @@
  38550. esac # case $arg_mode
  38551. # Aesthetically quote the previous argument.
  38552. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  38553. -
  38554. - case $lastarg in
  38555. - # Double-quote args containing other shell metacharacters.
  38556. - # Many Bourne shells cannot handle close brackets correctly
  38557. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  38558. - # in scan sets (worked around with variable expansion),
  38559. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  38560. - # at all, so we specify them separately.
  38561. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38562. - lastarg="\"$lastarg\""
  38563. - ;;
  38564. - esac
  38565. -
  38566. - base_compile="$base_compile $lastarg"
  38567. + func_quote_for_eval "$lastarg"
  38568. + base_compile="$base_compile $func_quote_for_eval_result"
  38569. done # for arg
  38570. case $arg_mode in
  38571. arg)
  38572. - $echo "$modename: you must specify an argument for -Xcompile"
  38573. - exit $EXIT_FAILURE
  38574. + func_fatal_error "you must specify an argument for -Xcompile"
  38575. ;;
  38576. target)
  38577. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  38578. - exit $EXIT_FAILURE
  38579. + func_fatal_error "you must specify a target with \`-o'"
  38580. ;;
  38581. *)
  38582. # Get the name of the library object.
  38583. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  38584. + test -z "$libobj" && {
  38585. + func_basename "$srcfile"
  38586. + libobj="$func_basename_result"
  38587. + }
  38588. ;;
  38589. esac
  38590. # Recognize several different file suffixes.
  38591. # If the user specifies -o file.o, it is replaced with file.lo
  38592. - xform='[cCFSifmso]'
  38593. case $libobj in
  38594. - *.ada) xform=ada ;;
  38595. - *.adb) xform=adb ;;
  38596. - *.ads) xform=ads ;;
  38597. - *.asm) xform=asm ;;
  38598. - *.c++) xform=c++ ;;
  38599. - *.cc) xform=cc ;;
  38600. - *.ii) xform=ii ;;
  38601. - *.class) xform=class ;;
  38602. - *.cpp) xform=cpp ;;
  38603. - *.cxx) xform=cxx ;;
  38604. - *.[fF][09]?) xform=[fF][09]. ;;
  38605. - *.for) xform=for ;;
  38606. - *.java) xform=java ;;
  38607. - *.obj) xform=obj ;;
  38608. - *.sx) xform=sx ;;
  38609. + *.[cCFSifmso] | \
  38610. + *.ada | *.adb | *.ads | *.asm | \
  38611. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  38612. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  38613. + func_xform "$libobj"
  38614. + libobj=$func_xform_result
  38615. + ;;
  38616. esac
  38617. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  38618. -
  38619. case $libobj in
  38620. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  38621. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  38622. *)
  38623. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  38624. - exit $EXIT_FAILURE
  38625. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  38626. ;;
  38627. esac
  38628. @@ -811,7 +1230,15 @@
  38629. for arg in $later; do
  38630. case $arg in
  38631. + -shared)
  38632. + test "$build_libtool_libs" != yes && \
  38633. + func_fatal_configuration "can not build a shared library"
  38634. + build_old_libs=no
  38635. + continue
  38636. + ;;
  38637. +
  38638. -static)
  38639. + build_libtool_libs=no
  38640. build_old_libs=yes
  38641. continue
  38642. ;;
  38643. @@ -828,28 +1255,17 @@
  38644. esac
  38645. done
  38646. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  38647. - case $qlibobj in
  38648. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38649. - qlibobj="\"$qlibobj\"" ;;
  38650. - esac
  38651. - test "X$libobj" != "X$qlibobj" \
  38652. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  38653. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  38654. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  38655. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  38656. - if test "X$xdir" = "X$obj"; then
  38657. - xdir=
  38658. - else
  38659. - xdir=$xdir/
  38660. - fi
  38661. + func_quote_for_eval "$libobj"
  38662. + test "X$libobj" != "X$func_quote_for_eval_result" \
  38663. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  38664. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  38665. + func_dirname_and_basename "$obj" "/" ""
  38666. + objname="$func_basename_result"
  38667. + xdir="$func_dirname_result"
  38668. lobj=${xdir}$objdir/$objname
  38669. - if test -z "$base_compile"; then
  38670. - $echo "$modename: you must specify a compilation command" 1>&2
  38671. - $echo "$help" 1>&2
  38672. - exit $EXIT_FAILURE
  38673. - fi
  38674. + test -z "$base_compile" && \
  38675. + func_fatal_help "you must specify a compilation command"
  38676. # Delete any leftover library objects.
  38677. if test "$build_old_libs" = yes; then
  38678. @@ -858,12 +1274,9 @@
  38679. removelist="$lobj $libobj ${libobj}T"
  38680. fi
  38681. - $run $rm $removelist
  38682. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  38683. -
  38684. # On Cygwin there's no "real" PIC flag so we must build both object types
  38685. case $host_os in
  38686. - cygwin* | mingw* | pw32* | os2*)
  38687. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  38688. pic_mode=default
  38689. ;;
  38690. esac
  38691. @@ -875,10 +1288,8 @@
  38692. # Calculate the filename of the output object if compiler does
  38693. # not support -o with -c
  38694. if test "$compiler_c_o" = no; then
  38695. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  38696. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  38697. lockfile="$output_obj.lock"
  38698. - removelist="$removelist $output_obj $lockfile"
  38699. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  38700. else
  38701. output_obj=
  38702. need_locks=no
  38703. @@ -888,13 +1299,13 @@
  38704. # Lock this critical section if it is needed
  38705. # We use this script file to make the link, it avoids creating a new file
  38706. if test "$need_locks" = yes; then
  38707. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  38708. - $show "Waiting for $lockfile to be removed"
  38709. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  38710. + func_echo "Waiting for $lockfile to be removed"
  38711. sleep 2
  38712. done
  38713. elif test "$need_locks" = warn; then
  38714. if test -f "$lockfile"; then
  38715. - $echo "\
  38716. + $ECHO "\
  38717. *** ERROR, $lockfile exists and contains:
  38718. `cat $lockfile 2>/dev/null`
  38719. @@ -905,34 +1316,22 @@
  38720. avoid parallel builds (make -j) in this platform, or get a better
  38721. compiler."
  38722. - $run $rm $removelist
  38723. + $opt_dry_run || $RM $removelist
  38724. exit $EXIT_FAILURE
  38725. fi
  38726. - $echo "$srcfile" > "$lockfile"
  38727. + removelist="$removelist $output_obj"
  38728. + $ECHO "$srcfile" > "$lockfile"
  38729. fi
  38730. + $opt_dry_run || $RM $removelist
  38731. + removelist="$removelist $lockfile"
  38732. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  38733. +
  38734. if test -n "$fix_srcfile_path"; then
  38735. eval srcfile=\"$fix_srcfile_path\"
  38736. fi
  38737. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  38738. - case $qsrcfile in
  38739. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38740. - qsrcfile="\"$qsrcfile\"" ;;
  38741. - esac
  38742. -
  38743. - $run $rm "$libobj" "${libobj}T"
  38744. -
  38745. - # Create a libtool object file (analogous to a ".la" file),
  38746. - # but don't create it if we're doing a dry run.
  38747. - test -z "$run" && cat > ${libobj}T <<EOF
  38748. -# $libobj - a libtool object file
  38749. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  38750. -#
  38751. -# Please DO NOT delete this file!
  38752. -# It is necessary for linking the library.
  38753. -
  38754. -# Name of the PIC object.
  38755. -EOF
  38756. + func_quote_for_eval "$srcfile"
  38757. + qsrcfile=$func_quote_for_eval_result
  38758. # Only build a PIC object if we are building libtool libraries.
  38759. if test "$build_libtool_libs" = yes; then
  38760. @@ -946,32 +1345,19 @@
  38761. command="$base_compile $qsrcfile"
  38762. fi
  38763. - if test ! -d "${xdir}$objdir"; then
  38764. - $show "$mkdir ${xdir}$objdir"
  38765. - $run $mkdir ${xdir}$objdir
  38766. - exit_status=$?
  38767. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  38768. - exit $exit_status
  38769. - fi
  38770. - fi
  38771. + func_mkdir_p "$xdir$objdir"
  38772. if test -z "$output_obj"; then
  38773. # Place PIC objects in $objdir
  38774. command="$command -o $lobj"
  38775. fi
  38776. - $run $rm "$lobj" "$output_obj"
  38777. -
  38778. - $show "$command"
  38779. - if $run eval $lt_env "$command"; then :
  38780. - else
  38781. - test -n "$output_obj" && $run $rm $removelist
  38782. - exit $EXIT_FAILURE
  38783. - fi
  38784. + func_show_eval_locale "$command" \
  38785. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  38786. if test "$need_locks" = warn &&
  38787. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  38788. - $echo "\
  38789. + $ECHO "\
  38790. *** ERROR, $lockfile contains:
  38791. `cat $lockfile 2>/dev/null`
  38792. @@ -985,45 +1371,27 @@
  38793. avoid parallel builds (make -j) in this platform, or get a better
  38794. compiler."
  38795. - $run $rm $removelist
  38796. + $opt_dry_run || $RM $removelist
  38797. exit $EXIT_FAILURE
  38798. fi
  38799. # Just move the object if needed, then go on to compile the next one
  38800. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  38801. - $show "$mv $output_obj $lobj"
  38802. - if $run $mv $output_obj $lobj; then :
  38803. - else
  38804. - error=$?
  38805. - $run $rm $removelist
  38806. - exit $error
  38807. - fi
  38808. + func_show_eval '$MV "$output_obj" "$lobj"' \
  38809. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  38810. fi
  38811. - # Append the name of the PIC object to the libtool object file.
  38812. - test -z "$run" && cat >> ${libobj}T <<EOF
  38813. -pic_object='$objdir/$objname'
  38814. -
  38815. -EOF
  38816. -
  38817. # Allow error messages only from the first compilation.
  38818. if test "$suppress_opt" = yes; then
  38819. - suppress_output=' >/dev/null 2>&1'
  38820. + suppress_output=' >/dev/null 2>&1'
  38821. fi
  38822. - else
  38823. - # No PIC object so indicate it doesn't exist in the libtool
  38824. - # object file.
  38825. - test -z "$run" && cat >> ${libobj}T <<EOF
  38826. -pic_object=none
  38827. -
  38828. -EOF
  38829. fi
  38830. # Only build a position-dependent object if we build old libraries.
  38831. if test "$build_old_libs" = yes; then
  38832. if test "$pic_mode" != yes; then
  38833. # Don't build PIC code
  38834. - command="$base_compile $qsrcfile"
  38835. + command="$base_compile $qsrcfile$pie_flag"
  38836. else
  38837. command="$base_compile $qsrcfile $pic_flag"
  38838. fi
  38839. @@ -1033,17 +1401,12 @@
  38840. # Suppress compiler output if we already did a PIC compilation.
  38841. command="$command$suppress_output"
  38842. - $run $rm "$obj" "$output_obj"
  38843. - $show "$command"
  38844. - if $run eval $lt_env "$command"; then :
  38845. - else
  38846. - $run $rm $removelist
  38847. - exit $EXIT_FAILURE
  38848. - fi
  38849. + func_show_eval_locale "$command" \
  38850. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  38851. if test "$need_locks" = warn &&
  38852. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  38853. - $echo "\
  38854. + $ECHO "\
  38855. *** ERROR, $lockfile contains:
  38856. `cat $lockfile 2>/dev/null`
  38857. @@ -1057,5485 +1420,6784 @@
  38858. avoid parallel builds (make -j) in this platform, or get a better
  38859. compiler."
  38860. - $run $rm $removelist
  38861. + $opt_dry_run || $RM $removelist
  38862. exit $EXIT_FAILURE
  38863. fi
  38864. # Just move the object if needed
  38865. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  38866. - $show "$mv $output_obj $obj"
  38867. - if $run $mv $output_obj $obj; then :
  38868. - else
  38869. - error=$?
  38870. - $run $rm $removelist
  38871. - exit $error
  38872. - fi
  38873. + func_show_eval '$MV "$output_obj" "$obj"' \
  38874. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  38875. fi
  38876. -
  38877. - # Append the name of the non-PIC object the libtool object file.
  38878. - # Only append if the libtool object file exists.
  38879. - test -z "$run" && cat >> ${libobj}T <<EOF
  38880. -# Name of the non-PIC object.
  38881. -non_pic_object='$objname'
  38882. -
  38883. -EOF
  38884. - else
  38885. - # Append the name of the non-PIC object the libtool object file.
  38886. - # Only append if the libtool object file exists.
  38887. - test -z "$run" && cat >> ${libobj}T <<EOF
  38888. -# Name of the non-PIC object.
  38889. -non_pic_object=none
  38890. -
  38891. -EOF
  38892. fi
  38893. - $run $mv "${libobj}T" "${libobj}"
  38894. + $opt_dry_run || {
  38895. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  38896. - # Unlock the critical section if it was locked
  38897. - if test "$need_locks" != no; then
  38898. - $run $rm "$lockfile"
  38899. - fi
  38900. + # Unlock the critical section if it was locked
  38901. + if test "$need_locks" != no; then
  38902. + removelist=$lockfile
  38903. + $RM "$lockfile"
  38904. + fi
  38905. + }
  38906. exit $EXIT_SUCCESS
  38907. - ;;
  38908. +}
  38909. - # libtool link mode
  38910. - link | relink)
  38911. - modename="$modename: link"
  38912. - case $host in
  38913. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  38914. - # It is impossible to link a dll without this setting, and
  38915. - # we shouldn't force the makefile maintainer to figure out
  38916. - # which system we are compiling for in order to pass an extra
  38917. - # flag for every libtool invocation.
  38918. - # allow_undefined=no
  38919. +$opt_help || {
  38920. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  38921. +}
  38922. - # FIXME: Unfortunately, there are problems with the above when trying
  38923. - # to make a dll which has undefined symbols, in which case not
  38924. - # even a static library is built. For now, we need to specify
  38925. - # -no-undefined on the libtool link line when we can be certain
  38926. - # that all symbols are satisfied, otherwise we get a static library.
  38927. - allow_undefined=yes
  38928. - ;;
  38929. - *)
  38930. - allow_undefined=yes
  38931. - ;;
  38932. - esac
  38933. - libtool_args="$nonopt"
  38934. - base_compile="$nonopt $@"
  38935. - compile_command="$nonopt"
  38936. - finalize_command="$nonopt"
  38937. +func_mode_help ()
  38938. +{
  38939. + # We need to display help for each of the modes.
  38940. + case $mode in
  38941. + "")
  38942. + # Generic help is extracted from the usage comments
  38943. + # at the start of this file.
  38944. + func_help
  38945. + ;;
  38946. - compile_rpath=
  38947. - finalize_rpath=
  38948. - compile_shlibpath=
  38949. - finalize_shlibpath=
  38950. - convenience=
  38951. - old_convenience=
  38952. - deplibs=
  38953. - old_deplibs=
  38954. - compiler_flags=
  38955. - linker_flags=
  38956. - dllsearchpath=
  38957. - lib_search_path=`pwd`
  38958. - inst_prefix_dir=
  38959. + clean)
  38960. + $ECHO \
  38961. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  38962. - avoid_version=no
  38963. - dlfiles=
  38964. - dlprefiles=
  38965. - dlself=no
  38966. - export_dynamic=no
  38967. - export_symbols=
  38968. - export_symbols_regex=
  38969. - generated=
  38970. - libobjs=
  38971. - ltlibs=
  38972. - module=no
  38973. - no_install=no
  38974. - objs=
  38975. - non_pic_objects=
  38976. - notinst_path= # paths that contain not-installed libtool libraries
  38977. - precious_files_regex=
  38978. - prefer_static_libs=no
  38979. - preload=no
  38980. - prev=
  38981. - prevarg=
  38982. - release=
  38983. - rpath=
  38984. - xrpath=
  38985. - perm_rpath=
  38986. - temp_rpath=
  38987. - thread_safe=no
  38988. - vinfo=
  38989. - vinfo_number=no
  38990. - single_module="${wl}-single_module"
  38991. +Remove files from the build directory.
  38992. - func_infer_tag $base_compile
  38993. +RM is the name of the program to use to delete files associated with each FILE
  38994. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  38995. +to RM.
  38996. - # We need to know -static, to get the right output filenames.
  38997. - for arg
  38998. - do
  38999. - case $arg in
  39000. - -all-static | -static | -static-libtool-libs)
  39001. - case $arg in
  39002. - -all-static)
  39003. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  39004. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  39005. - fi
  39006. - if test -n "$link_static_flag"; then
  39007. - dlopen_self=$dlopen_self_static
  39008. - fi
  39009. - prefer_static_libs=yes
  39010. - ;;
  39011. - -static)
  39012. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  39013. - dlopen_self=$dlopen_self_static
  39014. - fi
  39015. - prefer_static_libs=built
  39016. - ;;
  39017. - -static-libtool-libs)
  39018. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  39019. - dlopen_self=$dlopen_self_static
  39020. - fi
  39021. - prefer_static_libs=yes
  39022. - ;;
  39023. - esac
  39024. - build_libtool_libs=no
  39025. - build_old_libs=yes
  39026. - break
  39027. - ;;
  39028. - esac
  39029. - done
  39030. +If FILE is a libtool library, object or program, all the files associated
  39031. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  39032. + ;;
  39033. - # See if our shared archives depend on static archives.
  39034. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  39035. + compile)
  39036. + $ECHO \
  39037. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  39038. - # Go through the arguments, transforming them on the way.
  39039. - while test "$#" -gt 0; do
  39040. - arg="$1"
  39041. - shift
  39042. - case $arg in
  39043. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39044. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  39045. - ;;
  39046. - *) qarg=$arg ;;
  39047. - esac
  39048. - libtool_args="$libtool_args $qarg"
  39049. +Compile a source file into a libtool library object.
  39050. - # If the previous option needs an argument, assign it.
  39051. - if test -n "$prev"; then
  39052. - case $prev in
  39053. - output)
  39054. - compile_command="$compile_command @OUTPUT@"
  39055. - finalize_command="$finalize_command @OUTPUT@"
  39056. - ;;
  39057. - esac
  39058. +This mode accepts the following additional options:
  39059. - case $prev in
  39060. - dlfiles|dlprefiles)
  39061. - if test "$preload" = no; then
  39062. - # Add the symbol object into the linking commands.
  39063. - compile_command="$compile_command @SYMFILE@"
  39064. - finalize_command="$finalize_command @SYMFILE@"
  39065. - preload=yes
  39066. - fi
  39067. - case $arg in
  39068. - *.la | *.lo) ;; # We handle these cases below.
  39069. - force)
  39070. - if test "$dlself" = no; then
  39071. - dlself=needless
  39072. - export_dynamic=yes
  39073. - fi
  39074. - prev=
  39075. - continue
  39076. - ;;
  39077. - self)
  39078. - if test "$prev" = dlprefiles; then
  39079. - dlself=yes
  39080. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  39081. - dlself=yes
  39082. - else
  39083. - dlself=needless
  39084. - export_dynamic=yes
  39085. - fi
  39086. - prev=
  39087. - continue
  39088. - ;;
  39089. - *)
  39090. - if test "$prev" = dlfiles; then
  39091. - dlfiles="$dlfiles $arg"
  39092. - else
  39093. - dlprefiles="$dlprefiles $arg"
  39094. - fi
  39095. - prev=
  39096. - continue
  39097. - ;;
  39098. - esac
  39099. - ;;
  39100. - expsyms)
  39101. - export_symbols="$arg"
  39102. - if test ! -f "$arg"; then
  39103. - $echo "$modename: symbol file \`$arg' does not exist"
  39104. - exit $EXIT_FAILURE
  39105. - fi
  39106. - prev=
  39107. - continue
  39108. - ;;
  39109. - expsyms_regex)
  39110. - export_symbols_regex="$arg"
  39111. - prev=
  39112. - continue
  39113. - ;;
  39114. - inst_prefix)
  39115. - inst_prefix_dir="$arg"
  39116. - prev=
  39117. - continue
  39118. - ;;
  39119. - precious_regex)
  39120. - precious_files_regex="$arg"
  39121. - prev=
  39122. - continue
  39123. - ;;
  39124. - release)
  39125. - release="-$arg"
  39126. - prev=
  39127. - continue
  39128. - ;;
  39129. - objectlist)
  39130. - if test -f "$arg"; then
  39131. - save_arg=$arg
  39132. - moreargs=
  39133. - for fil in `cat $save_arg`
  39134. - do
  39135. -# moreargs="$moreargs $fil"
  39136. - arg=$fil
  39137. - # A libtool-controlled object.
  39138. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  39139. + -no-suppress do not suppress compiler output for multiple passes
  39140. + -prefer-pic try to building PIC objects only
  39141. + -prefer-non-pic try to building non-PIC objects only
  39142. + -shared do not build a \`.o' file suitable for static linking
  39143. + -static only build a \`.o' file suitable for static linking
  39144. - # Check to see that this really is a libtool object.
  39145. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  39146. - pic_object=
  39147. - non_pic_object=
  39148. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  39149. +from the given SOURCEFILE.
  39150. - # Read the .lo file
  39151. - # If there is no directory component, then add one.
  39152. - case $arg in
  39153. - */* | *\\*) . $arg ;;
  39154. - *) . ./$arg ;;
  39155. - esac
  39156. +The output file name is determined by removing the directory component from
  39157. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  39158. +library object suffix, \`.lo'."
  39159. + ;;
  39160. - if test -z "$pic_object" || \
  39161. - test -z "$non_pic_object" ||
  39162. - test "$pic_object" = none && \
  39163. - test "$non_pic_object" = none; then
  39164. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  39165. - exit $EXIT_FAILURE
  39166. - fi
  39167. + execute)
  39168. + $ECHO \
  39169. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  39170. - # Extract subdirectory from the argument.
  39171. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  39172. - if test "X$xdir" = "X$arg"; then
  39173. - xdir=
  39174. - else
  39175. - xdir="$xdir/"
  39176. - fi
  39177. +Automatically set library path, then run a program.
  39178. - if test "$pic_object" != none; then
  39179. - # Prepend the subdirectory the object is found in.
  39180. - pic_object="$xdir$pic_object"
  39181. +This mode accepts the following additional options:
  39182. - if test "$prev" = dlfiles; then
  39183. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  39184. - dlfiles="$dlfiles $pic_object"
  39185. - prev=
  39186. - continue
  39187. - else
  39188. - # If libtool objects are unsupported, then we need to preload.
  39189. - prev=dlprefiles
  39190. - fi
  39191. - fi
  39192. + -dlopen FILE add the directory containing FILE to the library path
  39193. - # CHECK ME: I think I busted this. -Ossama
  39194. - if test "$prev" = dlprefiles; then
  39195. - # Preload the old-style object.
  39196. - dlprefiles="$dlprefiles $pic_object"
  39197. - prev=
  39198. - fi
  39199. +This mode sets the library path environment variable according to \`-dlopen'
  39200. +flags.
  39201. - # A PIC object.
  39202. - libobjs="$libobjs $pic_object"
  39203. - arg="$pic_object"
  39204. - fi
  39205. +If any of the ARGS are libtool executable wrappers, then they are translated
  39206. +into their corresponding uninstalled binary, and any of their required library
  39207. +directories are added to the library path.
  39208. - # Non-PIC object.
  39209. - if test "$non_pic_object" != none; then
  39210. - # Prepend the subdirectory the object is found in.
  39211. - non_pic_object="$xdir$non_pic_object"
  39212. +Then, COMMAND is executed, with ARGS as arguments."
  39213. + ;;
  39214. - # A standard non-PIC object
  39215. - non_pic_objects="$non_pic_objects $non_pic_object"
  39216. - if test -z "$pic_object" || test "$pic_object" = none ; then
  39217. - arg="$non_pic_object"
  39218. - fi
  39219. - else
  39220. - # If the PIC object exists, use it instead.
  39221. - # $xdir was prepended to $pic_object above.
  39222. - non_pic_object="$pic_object"
  39223. - non_pic_objects="$non_pic_objects $non_pic_object"
  39224. - fi
  39225. - else
  39226. - # Only an error if not doing a dry-run.
  39227. - if test -z "$run"; then
  39228. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  39229. - exit $EXIT_FAILURE
  39230. - else
  39231. - # Dry-run case.
  39232. + finish)
  39233. + $ECHO \
  39234. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  39235. - # Extract subdirectory from the argument.
  39236. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  39237. - if test "X$xdir" = "X$arg"; then
  39238. - xdir=
  39239. - else
  39240. - xdir="$xdir/"
  39241. - fi
  39242. +Complete the installation of libtool libraries.
  39243. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  39244. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  39245. - libobjs="$libobjs $pic_object"
  39246. - non_pic_objects="$non_pic_objects $non_pic_object"
  39247. - fi
  39248. - fi
  39249. - done
  39250. - else
  39251. - $echo "$modename: link input file \`$save_arg' does not exist"
  39252. - exit $EXIT_FAILURE
  39253. - fi
  39254. - arg=$save_arg
  39255. - prev=
  39256. - continue
  39257. - ;;
  39258. - rpath | xrpath)
  39259. - # We need an absolute path.
  39260. - case $arg in
  39261. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  39262. - *)
  39263. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  39264. - exit $EXIT_FAILURE
  39265. - ;;
  39266. - esac
  39267. - if test "$prev" = rpath; then
  39268. - case "$rpath " in
  39269. - *" $arg "*) ;;
  39270. - *) rpath="$rpath $arg" ;;
  39271. - esac
  39272. - else
  39273. - case "$xrpath " in
  39274. - *" $arg "*) ;;
  39275. - *) xrpath="$xrpath $arg" ;;
  39276. - esac
  39277. - fi
  39278. - prev=
  39279. - continue
  39280. - ;;
  39281. - xcompiler)
  39282. - compiler_flags="$compiler_flags $qarg"
  39283. - prev=
  39284. - compile_command="$compile_command $qarg"
  39285. - finalize_command="$finalize_command $qarg"
  39286. - continue
  39287. - ;;
  39288. - xlinker)
  39289. - linker_flags="$linker_flags $qarg"
  39290. - compiler_flags="$compiler_flags $wl$qarg"
  39291. - prev=
  39292. - compile_command="$compile_command $wl$qarg"
  39293. - finalize_command="$finalize_command $wl$qarg"
  39294. - continue
  39295. - ;;
  39296. - xcclinker)
  39297. - linker_flags="$linker_flags $qarg"
  39298. - compiler_flags="$compiler_flags $qarg"
  39299. - prev=
  39300. - compile_command="$compile_command $qarg"
  39301. - finalize_command="$finalize_command $qarg"
  39302. - continue
  39303. - ;;
  39304. - shrext)
  39305. - shrext_cmds="$arg"
  39306. - prev=
  39307. - continue
  39308. - ;;
  39309. - darwin_framework|darwin_framework_skip)
  39310. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  39311. - compile_command="$compile_command $arg"
  39312. - finalize_command="$finalize_command $arg"
  39313. - prev=
  39314. - continue
  39315. - ;;
  39316. - *)
  39317. - eval "$prev=\"\$arg\""
  39318. - prev=
  39319. - continue
  39320. - ;;
  39321. - esac
  39322. - fi # test -n "$prev"
  39323. +Each LIBDIR is a directory that contains libtool libraries.
  39324. - prevarg="$arg"
  39325. +The commands that this mode executes may require superuser privileges. Use
  39326. +the \`--dry-run' option if you just want to see what would be executed."
  39327. + ;;
  39328. - case $arg in
  39329. - -all-static)
  39330. - if test -n "$link_static_flag"; then
  39331. - compile_command="$compile_command $link_static_flag"
  39332. - finalize_command="$finalize_command $link_static_flag"
  39333. - fi
  39334. - continue
  39335. - ;;
  39336. + install)
  39337. + $ECHO \
  39338. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  39339. - -allow-undefined)
  39340. - # FIXME: remove this flag sometime in the future.
  39341. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  39342. - continue
  39343. - ;;
  39344. +Install executables or libraries.
  39345. - -avoid-version)
  39346. - avoid_version=yes
  39347. - continue
  39348. - ;;
  39349. +INSTALL-COMMAND is the installation command. The first component should be
  39350. +either the \`install' or \`cp' program.
  39351. - -dlopen)
  39352. - prev=dlfiles
  39353. - continue
  39354. - ;;
  39355. +The following components of INSTALL-COMMAND are treated specially:
  39356. - -dlpreopen)
  39357. - prev=dlprefiles
  39358. - continue
  39359. - ;;
  39360. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  39361. - -export-dynamic)
  39362. - export_dynamic=yes
  39363. - continue
  39364. - ;;
  39365. +The rest of the components are interpreted as arguments to that command (only
  39366. +BSD-compatible install options are recognized)."
  39367. + ;;
  39368. - -export-symbols | -export-symbols-regex)
  39369. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  39370. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  39371. - exit $EXIT_FAILURE
  39372. - fi
  39373. - if test "X$arg" = "X-export-symbols"; then
  39374. - prev=expsyms
  39375. - else
  39376. - prev=expsyms_regex
  39377. - fi
  39378. - continue
  39379. - ;;
  39380. + link)
  39381. + $ECHO \
  39382. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  39383. - -framework|-arch|-isysroot)
  39384. - case " $CC " in
  39385. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  39386. - prev=darwin_framework_skip ;;
  39387. - *) compiler_flags="$compiler_flags $arg"
  39388. - prev=darwin_framework ;;
  39389. - esac
  39390. - compile_command="$compile_command $arg"
  39391. - finalize_command="$finalize_command $arg"
  39392. - continue
  39393. - ;;
  39394. +Link object files or libraries together to form another library, or to
  39395. +create an executable program.
  39396. - -inst-prefix-dir)
  39397. - prev=inst_prefix
  39398. - continue
  39399. - ;;
  39400. +LINK-COMMAND is a command using the C compiler that you would use to create
  39401. +a program from several object files.
  39402. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  39403. - # so, if we see these flags be careful not to treat them like -L
  39404. - -L[A-Z][A-Z]*:*)
  39405. - case $with_gcc/$host in
  39406. - no/*-*-irix* | /*-*-irix*)
  39407. - compile_command="$compile_command $arg"
  39408. - finalize_command="$finalize_command $arg"
  39409. - ;;
  39410. - esac
  39411. - continue
  39412. - ;;
  39413. +The following components of LINK-COMMAND are treated specially:
  39414. - -L*)
  39415. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  39416. - # We need an absolute path.
  39417. - case $dir in
  39418. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  39419. - *)
  39420. - absdir=`cd "$dir" && pwd`
  39421. - if test -z "$absdir"; then
  39422. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  39423. - absdir="$dir"
  39424. - notinst_path="$notinst_path $dir"
  39425. - fi
  39426. - dir="$absdir"
  39427. - ;;
  39428. - esac
  39429. - case "$deplibs " in
  39430. - *" -L$dir "*) ;;
  39431. - *)
  39432. - deplibs="$deplibs -L$dir"
  39433. - lib_search_path="$lib_search_path $dir"
  39434. - ;;
  39435. - esac
  39436. - case $host in
  39437. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  39438. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  39439. - case :$dllsearchpath: in
  39440. - *":$dir:"*) ;;
  39441. - *) dllsearchpath="$dllsearchpath:$dir";;
  39442. - esac
  39443. - case :$dllsearchpath: in
  39444. - *":$testbindir:"*) ;;
  39445. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  39446. - esac
  39447. - ;;
  39448. - esac
  39449. - continue
  39450. - ;;
  39451. + -all-static do not do any dynamic linking at all
  39452. + -avoid-version do not add a version suffix if possible
  39453. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  39454. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  39455. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  39456. + -export-symbols SYMFILE
  39457. + try to export only the symbols listed in SYMFILE
  39458. + -export-symbols-regex REGEX
  39459. + try to export only the symbols matching REGEX
  39460. + -LLIBDIR search LIBDIR for required installed libraries
  39461. + -lNAME OUTPUT-FILE requires the installed library libNAME
  39462. + -module build a library that can dlopened
  39463. + -no-fast-install disable the fast-install mode
  39464. + -no-install link a not-installable executable
  39465. + -no-undefined declare that a library does not refer to external symbols
  39466. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  39467. + -objectlist FILE Use a list of object files found in FILE to specify objects
  39468. + -precious-files-regex REGEX
  39469. + don't remove output files matching REGEX
  39470. + -release RELEASE specify package release information
  39471. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  39472. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  39473. + -shared only do dynamic linking of libtool libraries
  39474. + -shrext SUFFIX override the standard shared library file extension
  39475. + -static do not do any dynamic linking of uninstalled libtool libraries
  39476. + -static-libtool-libs
  39477. + do not do any dynamic linking of libtool libraries
  39478. + -version-info CURRENT[:REVISION[:AGE]]
  39479. + specify library version info [each variable defaults to 0]
  39480. + -weak LIBNAME declare that the target provides the LIBNAME interface
  39481. - -l*)
  39482. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  39483. - case $host in
  39484. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  39485. - # These systems don't actually have a C or math library (as such)
  39486. - continue
  39487. - ;;
  39488. - *-*-os2*)
  39489. - # These systems don't actually have a C library (as such)
  39490. - test "X$arg" = "X-lc" && continue
  39491. - ;;
  39492. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  39493. - # Do not include libc due to us having libc/libc_r.
  39494. - test "X$arg" = "X-lc" && continue
  39495. - ;;
  39496. - *-*-rhapsody* | *-*-darwin1.[012])
  39497. - # Rhapsody C and math libraries are in the System framework
  39498. - deplibs="$deplibs -framework System"
  39499. - continue
  39500. - ;;
  39501. - *-*-sco3.2v5* | *-*-sco5v6*)
  39502. - # Causes problems with __ctype
  39503. - test "X$arg" = "X-lc" && continue
  39504. - ;;
  39505. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  39506. - # Compiler inserts libc in the correct place for threads to work
  39507. - test "X$arg" = "X-lc" && continue
  39508. - ;;
  39509. - esac
  39510. - elif test "X$arg" = "X-lc_r"; then
  39511. - case $host in
  39512. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  39513. - # Do not include libc_r directly, use -pthread flag.
  39514. - continue
  39515. - ;;
  39516. - esac
  39517. - fi
  39518. - deplibs="$deplibs $arg"
  39519. - continue
  39520. - ;;
  39521. +All other options (arguments beginning with \`-') are ignored.
  39522. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  39523. - # classes, name mangling, and exception handling.
  39524. - -model)
  39525. - compile_command="$compile_command $arg"
  39526. - compiler_flags="$compiler_flags $arg"
  39527. - finalize_command="$finalize_command $arg"
  39528. - prev=xcompiler
  39529. - continue
  39530. - ;;
  39531. +Every other argument is treated as a filename. Files ending in \`.la' are
  39532. +treated as uninstalled libtool libraries, other files are standard or library
  39533. +object files.
  39534. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  39535. - compiler_flags="$compiler_flags $arg"
  39536. - compile_command="$compile_command $arg"
  39537. - finalize_command="$finalize_command $arg"
  39538. - continue
  39539. - ;;
  39540. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  39541. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  39542. +required, except when creating a convenience library.
  39543. - -multi_module)
  39544. - single_module="${wl}-multi_module"
  39545. - continue
  39546. - ;;
  39547. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  39548. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  39549. - -module)
  39550. - module=yes
  39551. - continue
  39552. - ;;
  39553. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  39554. +is created, otherwise an executable program is created."
  39555. + ;;
  39556. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  39557. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  39558. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  39559. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  39560. - # -q* pass through compiler args for the IBM compiler
  39561. - # -m* pass through architecture-specific compiler args for GCC
  39562. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  39563. - # compiler args for GCC
  39564. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  39565. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  39566. - # @file GCC response files
  39567. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  39568. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  39569. + uninstall)
  39570. + $ECHO \
  39571. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  39572. - # Unknown arguments in both finalize_command and compile_command need
  39573. - # to be aesthetically quoted because they are evaled later.
  39574. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  39575. - case $arg in
  39576. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39577. - arg="\"$arg\""
  39578. - ;;
  39579. - esac
  39580. - compile_command="$compile_command $arg"
  39581. - finalize_command="$finalize_command $arg"
  39582. - compiler_flags="$compiler_flags $arg"
  39583. - continue
  39584. +Remove libraries from an installation directory.
  39585. +
  39586. +RM is the name of the program to use to delete files associated with each FILE
  39587. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  39588. +to RM.
  39589. +
  39590. +If FILE is a libtool library, all the files associated with it are deleted.
  39591. +Otherwise, only FILE itself is deleted using RM."
  39592. ;;
  39593. - -shrext)
  39594. - prev=shrext
  39595. - continue
  39596. - ;;
  39597. + *)
  39598. + func_fatal_help "invalid operation mode \`$mode'"
  39599. + ;;
  39600. + esac
  39601. - -no-fast-install)
  39602. - fast_install=no
  39603. - continue
  39604. - ;;
  39605. + $ECHO
  39606. + $ECHO "Try \`$progname --help' for more information about other modes."
  39607. - -no-install)
  39608. - case $host in
  39609. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  39610. - # The PATH hackery in wrapper scripts is required on Windows
  39611. - # and Darwin in order for the loader to find any dlls it needs.
  39612. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  39613. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  39614. - fast_install=no
  39615. - ;;
  39616. - *) no_install=yes ;;
  39617. - esac
  39618. - continue
  39619. - ;;
  39620. + exit $?
  39621. +}
  39622. - -no-undefined)
  39623. - allow_undefined=no
  39624. - continue
  39625. - ;;
  39626. + # Now that we've collected a possible --mode arg, show help if necessary
  39627. + $opt_help && func_mode_help
  39628. - -objectlist)
  39629. - prev=objectlist
  39630. - continue
  39631. - ;;
  39632. - -o) prev=output ;;
  39633. +# func_mode_execute arg...
  39634. +func_mode_execute ()
  39635. +{
  39636. + $opt_debug
  39637. + # The first argument is the command name.
  39638. + cmd="$nonopt"
  39639. + test -z "$cmd" && \
  39640. + func_fatal_help "you must specify a COMMAND"
  39641. - -precious-files-regex)
  39642. - prev=precious_regex
  39643. - continue
  39644. - ;;
  39645. + # Handle -dlopen flags immediately.
  39646. + for file in $execute_dlfiles; do
  39647. + test -f "$file" \
  39648. + || func_fatal_help "\`$file' is not a file"
  39649. - -release)
  39650. - prev=release
  39651. - continue
  39652. - ;;
  39653. + dir=
  39654. + case $file in
  39655. + *.la)
  39656. + # Check to see that this really is a libtool archive.
  39657. + func_lalib_unsafe_p "$file" \
  39658. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  39659. - -rpath)
  39660. - prev=rpath
  39661. - continue
  39662. - ;;
  39663. + # Read the libtool library.
  39664. + dlname=
  39665. + library_names=
  39666. + func_source "$file"
  39667. - -R)
  39668. - prev=xrpath
  39669. - continue
  39670. - ;;
  39671. + # Skip this library if it cannot be dlopened.
  39672. + if test -z "$dlname"; then
  39673. + # Warn if it was a shared library.
  39674. + test -n "$library_names" && \
  39675. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  39676. + continue
  39677. + fi
  39678. - -R*)
  39679. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  39680. - # We need an absolute path.
  39681. - case $dir in
  39682. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  39683. - *)
  39684. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  39685. - exit $EXIT_FAILURE
  39686. - ;;
  39687. - esac
  39688. - case "$xrpath " in
  39689. - *" $dir "*) ;;
  39690. - *) xrpath="$xrpath $dir" ;;
  39691. - esac
  39692. - continue
  39693. - ;;
  39694. + func_dirname "$file" "" "."
  39695. + dir="$func_dirname_result"
  39696. - -static | -static-libtool-libs)
  39697. - # The effects of -static are defined in a previous loop.
  39698. - # We used to do the same as -all-static on platforms that
  39699. - # didn't have a PIC flag, but the assumption that the effects
  39700. - # would be equivalent was wrong. It would break on at least
  39701. - # Digital Unix and AIX.
  39702. - continue
  39703. + if test -f "$dir/$objdir/$dlname"; then
  39704. + dir="$dir/$objdir"
  39705. + else
  39706. + if test ! -f "$dir/$dlname"; then
  39707. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  39708. + fi
  39709. + fi
  39710. ;;
  39711. - -thread-safe)
  39712. - thread_safe=yes
  39713. - continue
  39714. + *.lo)
  39715. + # Just add the directory containing the .lo file.
  39716. + func_dirname "$file" "" "."
  39717. + dir="$func_dirname_result"
  39718. ;;
  39719. - -version-info)
  39720. - prev=vinfo
  39721. - continue
  39722. - ;;
  39723. - -version-number)
  39724. - prev=vinfo
  39725. - vinfo_number=yes
  39726. + *)
  39727. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  39728. continue
  39729. ;;
  39730. + esac
  39731. - -Wc,*)
  39732. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  39733. - arg=
  39734. - save_ifs="$IFS"; IFS=','
  39735. - for flag in $args; do
  39736. - IFS="$save_ifs"
  39737. - case $flag in
  39738. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39739. - flag="\"$flag\""
  39740. - ;;
  39741. - esac
  39742. - arg="$arg $wl$flag"
  39743. - compiler_flags="$compiler_flags $flag"
  39744. - done
  39745. - IFS="$save_ifs"
  39746. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  39747. - ;;
  39748. + # Get the absolute pathname.
  39749. + absdir=`cd "$dir" && pwd`
  39750. + test -n "$absdir" && dir="$absdir"
  39751. - -Wl,*)
  39752. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  39753. - arg=
  39754. - save_ifs="$IFS"; IFS=','
  39755. - for flag in $args; do
  39756. - IFS="$save_ifs"
  39757. - case $flag in
  39758. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39759. - flag="\"$flag\""
  39760. - ;;
  39761. - esac
  39762. - arg="$arg $wl$flag"
  39763. - compiler_flags="$compiler_flags $wl$flag"
  39764. - linker_flags="$linker_flags $flag"
  39765. - done
  39766. - IFS="$save_ifs"
  39767. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  39768. - ;;
  39769. + # Now add the directory to shlibpath_var.
  39770. + if eval "test -z \"\$$shlibpath_var\""; then
  39771. + eval "$shlibpath_var=\"\$dir\""
  39772. + else
  39773. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  39774. + fi
  39775. + done
  39776. - -Xcompiler)
  39777. - prev=xcompiler
  39778. - continue
  39779. - ;;
  39780. + # This variable tells wrapper scripts just to set shlibpath_var
  39781. + # rather than running their programs.
  39782. + libtool_execute_magic="$magic"
  39783. - -Xlinker)
  39784. - prev=xlinker
  39785. - continue
  39786. + # Check if any of the arguments is a wrapper script.
  39787. + args=
  39788. + for file
  39789. + do
  39790. + case $file in
  39791. + -*) ;;
  39792. + *)
  39793. + # Do a test to see if this is really a libtool program.
  39794. + if func_ltwrapper_script_p "$file"; then
  39795. + func_source "$file"
  39796. + # Transform arg to wrapped name.
  39797. + file="$progdir/$program"
  39798. + elif func_ltwrapper_executable_p "$file"; then
  39799. + func_ltwrapper_scriptname "$file"
  39800. + func_source "$func_ltwrapper_scriptname_result"
  39801. + # Transform arg to wrapped name.
  39802. + file="$progdir/$program"
  39803. + fi
  39804. ;;
  39805. + esac
  39806. + # Quote arguments (to preserve shell metacharacters).
  39807. + func_quote_for_eval "$file"
  39808. + args="$args $func_quote_for_eval_result"
  39809. + done
  39810. - -XCClinker)
  39811. - prev=xcclinker
  39812. - continue
  39813. - ;;
  39814. + if test "X$opt_dry_run" = Xfalse; then
  39815. + if test -n "$shlibpath_var"; then
  39816. + # Export the shlibpath_var.
  39817. + eval "export $shlibpath_var"
  39818. + fi
  39819. - # Some other compiler flag.
  39820. - -* | +*)
  39821. - # Unknown arguments in both finalize_command and compile_command need
  39822. - # to be aesthetically quoted because they are evaled later.
  39823. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  39824. - case $arg in
  39825. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39826. - arg="\"$arg\""
  39827. - ;;
  39828. - esac
  39829. - ;;
  39830. + # Restore saved environment variables
  39831. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  39832. + do
  39833. + eval "if test \"\${save_$lt_var+set}\" = set; then
  39834. + $lt_var=\$save_$lt_var; export $lt_var
  39835. + else
  39836. + $lt_unset $lt_var
  39837. + fi"
  39838. + done
  39839. - *.$objext)
  39840. - # A standard object.
  39841. - objs="$objs $arg"
  39842. - ;;
  39843. + # Now prepare to actually exec the command.
  39844. + exec_cmd="\$cmd$args"
  39845. + else
  39846. + # Display what would be done.
  39847. + if test -n "$shlibpath_var"; then
  39848. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  39849. + $ECHO "export $shlibpath_var"
  39850. + fi
  39851. + $ECHO "$cmd$args"
  39852. + exit $EXIT_SUCCESS
  39853. + fi
  39854. +}
  39855. - *.lo)
  39856. - # A libtool-controlled object.
  39857. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  39858. - # Check to see that this really is a libtool object.
  39859. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  39860. - pic_object=
  39861. - non_pic_object=
  39862. - # Read the .lo file
  39863. - # If there is no directory component, then add one.
  39864. - case $arg in
  39865. - */* | *\\*) . $arg ;;
  39866. - *) . ./$arg ;;
  39867. - esac
  39868. +# func_mode_finish arg...
  39869. +func_mode_finish ()
  39870. +{
  39871. + $opt_debug
  39872. + libdirs="$nonopt"
  39873. + admincmds=
  39874. - if test -z "$pic_object" || \
  39875. - test -z "$non_pic_object" ||
  39876. - test "$pic_object" = none && \
  39877. - test "$non_pic_object" = none; then
  39878. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  39879. - exit $EXIT_FAILURE
  39880. - fi
  39881. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  39882. + for dir
  39883. + do
  39884. + libdirs="$libdirs $dir"
  39885. + done
  39886. - # Extract subdirectory from the argument.
  39887. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  39888. - if test "X$xdir" = "X$arg"; then
  39889. - xdir=
  39890. - else
  39891. - xdir="$xdir/"
  39892. - fi
  39893. + for libdir in $libdirs; do
  39894. + if test -n "$finish_cmds"; then
  39895. + # Do each command in the finish commands.
  39896. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  39897. +'"$cmd"'"'
  39898. + fi
  39899. + if test -n "$finish_eval"; then
  39900. + # Do the single finish_eval.
  39901. + eval cmds=\"$finish_eval\"
  39902. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  39903. + $cmds"
  39904. + fi
  39905. + done
  39906. + fi
  39907. - if test "$pic_object" != none; then
  39908. - # Prepend the subdirectory the object is found in.
  39909. - pic_object="$xdir$pic_object"
  39910. + # Exit here if they wanted silent mode.
  39911. + $opt_silent && exit $EXIT_SUCCESS
  39912. - if test "$prev" = dlfiles; then
  39913. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  39914. - dlfiles="$dlfiles $pic_object"
  39915. - prev=
  39916. - continue
  39917. - else
  39918. - # If libtool objects are unsupported, then we need to preload.
  39919. - prev=dlprefiles
  39920. - fi
  39921. - fi
  39922. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  39923. + $ECHO "Libraries have been installed in:"
  39924. + for libdir in $libdirs; do
  39925. + $ECHO " $libdir"
  39926. + done
  39927. + $ECHO
  39928. + $ECHO "If you ever happen to want to link against installed libraries"
  39929. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  39930. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  39931. + $ECHO "flag during linking and do at least one of the following:"
  39932. + if test -n "$shlibpath_var"; then
  39933. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  39934. + $ECHO " during execution"
  39935. + fi
  39936. + if test -n "$runpath_var"; then
  39937. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  39938. + $ECHO " during linking"
  39939. + fi
  39940. + if test -n "$hardcode_libdir_flag_spec"; then
  39941. + libdir=LIBDIR
  39942. + eval flag=\"$hardcode_libdir_flag_spec\"
  39943. - # CHECK ME: I think I busted this. -Ossama
  39944. - if test "$prev" = dlprefiles; then
  39945. - # Preload the old-style object.
  39946. - dlprefiles="$dlprefiles $pic_object"
  39947. - prev=
  39948. - fi
  39949. + $ECHO " - use the \`$flag' linker flag"
  39950. + fi
  39951. + if test -n "$admincmds"; then
  39952. + $ECHO " - have your system administrator run these commands:$admincmds"
  39953. + fi
  39954. + if test -f /etc/ld.so.conf; then
  39955. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  39956. + fi
  39957. + $ECHO
  39958. - # A PIC object.
  39959. - libobjs="$libobjs $pic_object"
  39960. - arg="$pic_object"
  39961. - fi
  39962. + $ECHO "See any operating system documentation about shared libraries for"
  39963. + case $host in
  39964. + solaris2.[6789]|solaris2.1[0-9])
  39965. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  39966. + $ECHO "pages."
  39967. + ;;
  39968. + *)
  39969. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  39970. + ;;
  39971. + esac
  39972. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  39973. + exit $EXIT_SUCCESS
  39974. +}
  39975. - # Non-PIC object.
  39976. - if test "$non_pic_object" != none; then
  39977. - # Prepend the subdirectory the object is found in.
  39978. - non_pic_object="$xdir$non_pic_object"
  39979. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  39980. - # A standard non-PIC object
  39981. - non_pic_objects="$non_pic_objects $non_pic_object"
  39982. - if test -z "$pic_object" || test "$pic_object" = none ; then
  39983. - arg="$non_pic_object"
  39984. - fi
  39985. - else
  39986. - # If the PIC object exists, use it instead.
  39987. - # $xdir was prepended to $pic_object above.
  39988. - non_pic_object="$pic_object"
  39989. - non_pic_objects="$non_pic_objects $non_pic_object"
  39990. - fi
  39991. - else
  39992. - # Only an error if not doing a dry-run.
  39993. - if test -z "$run"; then
  39994. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  39995. - exit $EXIT_FAILURE
  39996. - else
  39997. - # Dry-run case.
  39998. - # Extract subdirectory from the argument.
  39999. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  40000. - if test "X$xdir" = "X$arg"; then
  40001. - xdir=
  40002. - else
  40003. - xdir="$xdir/"
  40004. - fi
  40005. +# func_mode_install arg...
  40006. +func_mode_install ()
  40007. +{
  40008. + $opt_debug
  40009. + # There may be an optional sh(1) argument at the beginning of
  40010. + # install_prog (especially on Windows NT).
  40011. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  40012. + # Allow the use of GNU shtool's install command.
  40013. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  40014. + # Aesthetically quote it.
  40015. + func_quote_for_eval "$nonopt"
  40016. + install_prog="$func_quote_for_eval_result "
  40017. + arg=$1
  40018. + shift
  40019. + else
  40020. + install_prog=
  40021. + arg=$nonopt
  40022. + fi
  40023. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  40024. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  40025. - libobjs="$libobjs $pic_object"
  40026. - non_pic_objects="$non_pic_objects $non_pic_object"
  40027. - fi
  40028. - fi
  40029. - ;;
  40030. + # The real first argument should be the name of the installation program.
  40031. + # Aesthetically quote it.
  40032. + func_quote_for_eval "$arg"
  40033. + install_prog="$install_prog$func_quote_for_eval_result"
  40034. - *.$libext)
  40035. - # An archive.
  40036. - deplibs="$deplibs $arg"
  40037. - old_deplibs="$old_deplibs $arg"
  40038. + # We need to accept at least all the BSD install flags.
  40039. + dest=
  40040. + files=
  40041. + opts=
  40042. + prev=
  40043. + install_type=
  40044. + isdir=no
  40045. + stripme=
  40046. + for arg
  40047. + do
  40048. + if test -n "$dest"; then
  40049. + files="$files $dest"
  40050. + dest=$arg
  40051. continue
  40052. - ;;
  40053. -
  40054. - *.la)
  40055. - # A libtool-controlled library.
  40056. + fi
  40057. - if test "$prev" = dlfiles; then
  40058. - # This library was specified with -dlopen.
  40059. - dlfiles="$dlfiles $arg"
  40060. - prev=
  40061. - elif test "$prev" = dlprefiles; then
  40062. - # The library was specified with -dlpreopen.
  40063. - dlprefiles="$dlprefiles $arg"
  40064. + case $arg in
  40065. + -d) isdir=yes ;;
  40066. + -f)
  40067. + case " $install_prog " in
  40068. + *[\\\ /]cp\ *) ;;
  40069. + *) prev=$arg ;;
  40070. + esac
  40071. + ;;
  40072. + -g | -m | -o)
  40073. + prev=$arg
  40074. + ;;
  40075. + -s)
  40076. + stripme=" -s"
  40077. + continue
  40078. + ;;
  40079. + -*)
  40080. + ;;
  40081. + *)
  40082. + # If the previous option needed an argument, then skip it.
  40083. + if test -n "$prev"; then
  40084. prev=
  40085. else
  40086. - deplibs="$deplibs $arg"
  40087. + dest=$arg
  40088. + continue
  40089. fi
  40090. - continue
  40091. ;;
  40092. + esac
  40093. - # Some other compiler argument.
  40094. - *)
  40095. - # Unknown arguments in both finalize_command and compile_command need
  40096. - # to be aesthetically quoted because they are evaled later.
  40097. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  40098. - case $arg in
  40099. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  40100. - arg="\"$arg\""
  40101. - ;;
  40102. - esac
  40103. - ;;
  40104. - esac # arg
  40105. + # Aesthetically quote the argument.
  40106. + func_quote_for_eval "$arg"
  40107. + install_prog="$install_prog $func_quote_for_eval_result"
  40108. + done
  40109. - # Now actually substitute the argument into the commands.
  40110. - if test -n "$arg"; then
  40111. - compile_command="$compile_command $arg"
  40112. - finalize_command="$finalize_command $arg"
  40113. - fi
  40114. - done # argument parsing loop
  40115. + test -z "$install_prog" && \
  40116. + func_fatal_help "you must specify an install program"
  40117. - if test -n "$prev"; then
  40118. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  40119. - $echo "$help" 1>&2
  40120. - exit $EXIT_FAILURE
  40121. - fi
  40122. + test -n "$prev" && \
  40123. + func_fatal_help "the \`$prev' option requires an argument"
  40124. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  40125. - eval arg=\"$export_dynamic_flag_spec\"
  40126. - compile_command="$compile_command $arg"
  40127. - finalize_command="$finalize_command $arg"
  40128. + if test -z "$files"; then
  40129. + if test -z "$dest"; then
  40130. + func_fatal_help "no file or destination specified"
  40131. + else
  40132. + func_fatal_help "you must specify a destination"
  40133. + fi
  40134. fi
  40135. - oldlibs=
  40136. - # calculate the name of the file, without its directory
  40137. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  40138. - libobjs_save="$libobjs"
  40139. + # Strip any trailing slash from the destination.
  40140. + func_stripname '' '/' "$dest"
  40141. + dest=$func_stripname_result
  40142. - if test -n "$shlibpath_var"; then
  40143. - # get the directories listed in $shlibpath_var
  40144. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  40145. + # Check to see that the destination is a directory.
  40146. + test -d "$dest" && isdir=yes
  40147. + if test "$isdir" = yes; then
  40148. + destdir="$dest"
  40149. + destname=
  40150. else
  40151. - shlib_search_path=
  40152. - fi
  40153. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  40154. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  40155. + func_dirname_and_basename "$dest" "" "."
  40156. + destdir="$func_dirname_result"
  40157. + destname="$func_basename_result"
  40158. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  40159. - if test "X$output_objdir" = "X$output"; then
  40160. - output_objdir="$objdir"
  40161. - else
  40162. - output_objdir="$output_objdir/$objdir"
  40163. - fi
  40164. - # Create the object directory.
  40165. - if test ! -d "$output_objdir"; then
  40166. - $show "$mkdir $output_objdir"
  40167. - $run $mkdir $output_objdir
  40168. - exit_status=$?
  40169. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  40170. - exit $exit_status
  40171. - fi
  40172. + # Not a directory, so check to see that there is only one file specified.
  40173. + set dummy $files; shift
  40174. + test "$#" -gt 1 && \
  40175. + func_fatal_help "\`$dest' is not a directory"
  40176. fi
  40177. -
  40178. - # Determine the type of output
  40179. - case $output in
  40180. - "")
  40181. - $echo "$modename: you must specify an output file" 1>&2
  40182. - $echo "$help" 1>&2
  40183. - exit $EXIT_FAILURE
  40184. - ;;
  40185. - *.$libext) linkmode=oldlib ;;
  40186. - *.lo | *.$objext) linkmode=obj ;;
  40187. - *.la) linkmode=lib ;;
  40188. - *) linkmode=prog ;; # Anything else should be a program.
  40189. - esac
  40190. -
  40191. - case $host in
  40192. - *cygwin* | *mingw* | *pw32*)
  40193. - # don't eliminate duplications in $postdeps and $predeps
  40194. - duplicate_compiler_generated_deps=yes
  40195. - ;;
  40196. + case $destdir in
  40197. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  40198. *)
  40199. - duplicate_compiler_generated_deps=$duplicate_deps
  40200. + for file in $files; do
  40201. + case $file in
  40202. + *.lo) ;;
  40203. + *)
  40204. + func_fatal_help "\`$destdir' must be an absolute directory name"
  40205. + ;;
  40206. + esac
  40207. + done
  40208. ;;
  40209. esac
  40210. - specialdeplibs=
  40211. - libs=
  40212. - # Find all interdependent deplibs by searching for libraries
  40213. - # that are linked more than once (e.g. -la -lb -la)
  40214. - for deplib in $deplibs; do
  40215. - if test "X$duplicate_deps" = "Xyes" ; then
  40216. - case "$libs " in
  40217. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  40218. - esac
  40219. - fi
  40220. - libs="$libs $deplib"
  40221. - done
  40222. + # This variable tells wrapper scripts just to set variables rather
  40223. + # than running their programs.
  40224. + libtool_install_magic="$magic"
  40225. - if test "$linkmode" = lib; then
  40226. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  40227. + staticlibs=
  40228. + future_libdirs=
  40229. + current_libdirs=
  40230. + for file in $files; do
  40231. - # Compute libraries that are listed more than once in $predeps
  40232. - # $postdeps and mark them as special (i.e., whose duplicates are
  40233. - # not to be eliminated).
  40234. - pre_post_deps=
  40235. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  40236. - for pre_post_dep in $predeps $postdeps; do
  40237. - case "$pre_post_deps " in
  40238. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  40239. + # Do each installation.
  40240. + case $file in
  40241. + *.$libext)
  40242. + # Do the static libraries later.
  40243. + staticlibs="$staticlibs $file"
  40244. + ;;
  40245. +
  40246. + *.la)
  40247. + # Check to see that this really is a libtool archive.
  40248. + func_lalib_unsafe_p "$file" \
  40249. + || func_fatal_help "\`$file' is not a valid libtool archive"
  40250. +
  40251. + library_names=
  40252. + old_library=
  40253. + relink_command=
  40254. + func_source "$file"
  40255. +
  40256. + # Add the libdir to current_libdirs if it is the destination.
  40257. + if test "X$destdir" = "X$libdir"; then
  40258. + case "$current_libdirs " in
  40259. + *" $libdir "*) ;;
  40260. + *) current_libdirs="$current_libdirs $libdir" ;;
  40261. esac
  40262. - pre_post_deps="$pre_post_deps $pre_post_dep"
  40263. - done
  40264. - fi
  40265. - pre_post_deps=
  40266. - fi
  40267. + else
  40268. + # Note the libdir as a future libdir.
  40269. + case "$future_libdirs " in
  40270. + *" $libdir "*) ;;
  40271. + *) future_libdirs="$future_libdirs $libdir" ;;
  40272. + esac
  40273. + fi
  40274. - deplibs=
  40275. - newdependency_libs=
  40276. - newlib_search_path=
  40277. - need_relink=no # whether we're linking any uninstalled libtool libraries
  40278. - notinst_deplibs= # not-installed libtool libraries
  40279. - case $linkmode in
  40280. - lib)
  40281. - passes="conv link"
  40282. - for file in $dlfiles $dlprefiles; do
  40283. - case $file in
  40284. - *.la) ;;
  40285. - *)
  40286. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  40287. - exit $EXIT_FAILURE
  40288. + func_dirname "$file" "/" ""
  40289. + dir="$func_dirname_result"
  40290. + dir="$dir$objdir"
  40291. +
  40292. + if test -n "$relink_command"; then
  40293. + # Determine the prefix the user has applied to our future dir.
  40294. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  40295. +
  40296. + # Don't allow the user to place us outside of our expected
  40297. + # location b/c this prevents finding dependent libraries that
  40298. + # are installed to the same prefix.
  40299. + # At present, this check doesn't affect windows .dll's that
  40300. + # are installed into $libdir/../bin (currently, that works fine)
  40301. + # but it's something to keep an eye on.
  40302. + test "$inst_prefix_dir" = "$destdir" && \
  40303. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  40304. +
  40305. + if test -n "$inst_prefix_dir"; then
  40306. + # Stick the inst_prefix_dir data into the link command.
  40307. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  40308. + else
  40309. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  40310. + fi
  40311. +
  40312. + func_warning "relinking \`$file'"
  40313. + func_show_eval "$relink_command" \
  40314. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  40315. + fi
  40316. +
  40317. + # See the names of the shared library.
  40318. + set dummy $library_names; shift
  40319. + if test -n "$1"; then
  40320. + realname="$1"
  40321. + shift
  40322. +
  40323. + srcname="$realname"
  40324. + test -n "$relink_command" && srcname="$realname"T
  40325. +
  40326. + # Install the shared library and build the symlinks.
  40327. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  40328. + 'exit $?'
  40329. + tstripme="$stripme"
  40330. + case $host_os in
  40331. + cygwin* | mingw* | pw32* | cegcc*)
  40332. + case $realname in
  40333. + *.dll.a)
  40334. + tstripme=""
  40335. + ;;
  40336. + esac
  40337. ;;
  40338. esac
  40339. - done
  40340. - ;;
  40341. - prog)
  40342. - compile_deplibs=
  40343. - finalize_deplibs=
  40344. - alldeplibs=no
  40345. - newdlfiles=
  40346. - newdlprefiles=
  40347. - passes="conv scan dlopen dlpreopen link"
  40348. - ;;
  40349. - *) passes="conv"
  40350. - ;;
  40351. - esac
  40352. - for pass in $passes; do
  40353. - if test "$linkmode,$pass" = "lib,link" ||
  40354. - test "$linkmode,$pass" = "prog,scan"; then
  40355. - libs="$deplibs"
  40356. - deplibs=
  40357. - fi
  40358. - if test "$linkmode" = prog; then
  40359. - case $pass in
  40360. - dlopen) libs="$dlfiles" ;;
  40361. - dlpreopen) libs="$dlprefiles" ;;
  40362. - link)
  40363. - libs="$deplibs %DEPLIBS%"
  40364. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  40365. - ;;
  40366. - esac
  40367. - fi
  40368. - if test "$pass" = dlopen; then
  40369. - # Collect dlpreopened libraries
  40370. - save_deplibs="$deplibs"
  40371. - deplibs=
  40372. - fi
  40373. - for deplib in $libs; do
  40374. - lib=
  40375. - found=no
  40376. - case $deplib in
  40377. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  40378. - if test "$linkmode,$pass" = "prog,link"; then
  40379. - compile_deplibs="$deplib $compile_deplibs"
  40380. - finalize_deplibs="$deplib $finalize_deplibs"
  40381. - else
  40382. - compiler_flags="$compiler_flags $deplib"
  40383. - fi
  40384. - continue
  40385. - ;;
  40386. - -l*)
  40387. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  40388. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  40389. - continue
  40390. - fi
  40391. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  40392. - if test "$linkmode" = lib; then
  40393. - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  40394. - else
  40395. - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  40396. + if test -n "$tstripme" && test -n "$striplib"; then
  40397. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  40398. fi
  40399. - for searchdir in $searchdirs; do
  40400. - for search_ext in .la $std_shrext .so .a; do
  40401. - # Search the libtool library
  40402. - lib="$searchdir/lib${name}${search_ext}"
  40403. - if test -f "$lib"; then
  40404. - if test "$search_ext" = ".la"; then
  40405. - found=yes
  40406. - else
  40407. - found=no
  40408. - fi
  40409. - break 2
  40410. - fi
  40411. +
  40412. + if test "$#" -gt 0; then
  40413. + # Delete the old symlinks, and create new ones.
  40414. + # Try `ln -sf' first, because the `ln' binary might depend on
  40415. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  40416. + # so we also need to try rm && ln -s.
  40417. + for linkname
  40418. + do
  40419. + test "$linkname" != "$realname" \
  40420. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  40421. done
  40422. - done
  40423. - if test "$found" != yes; then
  40424. - # deplib doesn't seem to be a libtool library
  40425. - if test "$linkmode,$pass" = "prog,link"; then
  40426. - compile_deplibs="$deplib $compile_deplibs"
  40427. - finalize_deplibs="$deplib $finalize_deplibs"
  40428. - else
  40429. - deplibs="$deplib $deplibs"
  40430. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  40431. - fi
  40432. - continue
  40433. - else # deplib is a libtool library
  40434. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  40435. - # We need to do some special things here, and not later.
  40436. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  40437. - case " $predeps $postdeps " in
  40438. - *" $deplib "*)
  40439. - if (${SED} -e '2q' $lib |
  40440. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  40441. - library_names=
  40442. - old_library=
  40443. - case $lib in
  40444. - */* | *\\*) . $lib ;;
  40445. - *) . ./$lib ;;
  40446. - esac
  40447. - for l in $old_library $library_names; do
  40448. - ll="$l"
  40449. - done
  40450. - if test "X$ll" = "X$old_library" ; then # only static version available
  40451. - found=no
  40452. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  40453. - test "X$ladir" = "X$lib" && ladir="."
  40454. - lib=$ladir/$old_library
  40455. - if test "$linkmode,$pass" = "prog,link"; then
  40456. - compile_deplibs="$deplib $compile_deplibs"
  40457. - finalize_deplibs="$deplib $finalize_deplibs"
  40458. - else
  40459. - deplibs="$deplib $deplibs"
  40460. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  40461. - fi
  40462. - continue
  40463. - fi
  40464. - fi
  40465. - ;;
  40466. - *) ;;
  40467. - esac
  40468. - fi
  40469. - fi
  40470. - ;; # -l
  40471. - -L*)
  40472. - case $linkmode in
  40473. - lib)
  40474. - deplibs="$deplib $deplibs"
  40475. - test "$pass" = conv && continue
  40476. - newdependency_libs="$deplib $newdependency_libs"
  40477. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  40478. - ;;
  40479. - prog)
  40480. - if test "$pass" = conv; then
  40481. - deplibs="$deplib $deplibs"
  40482. - continue
  40483. - fi
  40484. - if test "$pass" = scan; then
  40485. - deplibs="$deplib $deplibs"
  40486. - else
  40487. - compile_deplibs="$deplib $compile_deplibs"
  40488. - finalize_deplibs="$deplib $finalize_deplibs"
  40489. - fi
  40490. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  40491. - ;;
  40492. - *)
  40493. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  40494. - ;;
  40495. - esac # linkmode
  40496. - continue
  40497. - ;; # -L
  40498. - -R*)
  40499. - if test "$pass" = link; then
  40500. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  40501. - # Make sure the xrpath contains only unique directories.
  40502. - case "$xrpath " in
  40503. - *" $dir "*) ;;
  40504. - *) xrpath="$xrpath $dir" ;;
  40505. - esac
  40506. - fi
  40507. - deplibs="$deplib $deplibs"
  40508. - continue
  40509. - ;;
  40510. - *.la) lib="$deplib" ;;
  40511. - *.$libext)
  40512. - if test "$pass" = conv; then
  40513. - deplibs="$deplib $deplibs"
  40514. - continue
  40515. - fi
  40516. - case $linkmode in
  40517. - lib)
  40518. - valid_a_lib=no
  40519. - case $deplibs_check_method in
  40520. - match_pattern*)
  40521. - set dummy $deplibs_check_method
  40522. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  40523. - if eval $echo \"$deplib\" 2>/dev/null \
  40524. - | $SED 10q \
  40525. - | $EGREP "$match_pattern_regex" > /dev/null; then
  40526. - valid_a_lib=yes
  40527. - fi
  40528. - ;;
  40529. - pass_all)
  40530. - valid_a_lib=yes
  40531. - ;;
  40532. - esac
  40533. - if test "$valid_a_lib" != yes; then
  40534. - $echo
  40535. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  40536. - $echo "*** I have the capability to make that library automatically link in when"
  40537. - $echo "*** you link to this library. But I can only do this if you have a"
  40538. - $echo "*** shared version of the library, which you do not appear to have"
  40539. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  40540. - $echo "*** that it is just a static archive that I should not used here."
  40541. - else
  40542. - $echo
  40543. - $echo "*** Warning: Linking the shared library $output against the"
  40544. - $echo "*** static library $deplib is not portable!"
  40545. - deplibs="$deplib $deplibs"
  40546. - fi
  40547. - continue
  40548. - ;;
  40549. - prog)
  40550. - if test "$pass" != link; then
  40551. - deplibs="$deplib $deplibs"
  40552. - else
  40553. - compile_deplibs="$deplib $compile_deplibs"
  40554. - finalize_deplibs="$deplib $finalize_deplibs"
  40555. - fi
  40556. - continue
  40557. - ;;
  40558. - esac # linkmode
  40559. - ;; # *.$libext
  40560. - *.lo | *.$objext)
  40561. - if test "$pass" = conv; then
  40562. - deplibs="$deplib $deplibs"
  40563. - elif test "$linkmode" = prog; then
  40564. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  40565. - # If there is no dlopen support or we're linking statically,
  40566. - # we need to preload.
  40567. - newdlprefiles="$newdlprefiles $deplib"
  40568. - compile_deplibs="$deplib $compile_deplibs"
  40569. - finalize_deplibs="$deplib $finalize_deplibs"
  40570. - else
  40571. - newdlfiles="$newdlfiles $deplib"
  40572. - fi
  40573. fi
  40574. - continue
  40575. - ;;
  40576. - %DEPLIBS%)
  40577. - alldeplibs=yes
  40578. - continue
  40579. - ;;
  40580. - esac # case $deplib
  40581. - if test "$found" = yes || test -f "$lib"; then :
  40582. - else
  40583. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  40584. - exit $EXIT_FAILURE
  40585. - fi
  40586. - # Check to see that this really is a libtool archive.
  40587. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  40588. - else
  40589. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  40590. - exit $EXIT_FAILURE
  40591. + # Do each command in the postinstall commands.
  40592. + lib="$destdir/$realname"
  40593. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  40594. fi
  40595. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  40596. - test "X$ladir" = "X$lib" && ladir="."
  40597. -
  40598. - dlname=
  40599. - dlopen=
  40600. - dlpreopen=
  40601. - libdir=
  40602. - library_names=
  40603. - old_library=
  40604. - # If the library was installed with an old release of libtool,
  40605. - # it will not redefine variables installed, or shouldnotlink
  40606. - installed=yes
  40607. - shouldnotlink=no
  40608. - avoidtemprpath=
  40609. + # Install the pseudo-library for information purposes.
  40610. + func_basename "$file"
  40611. + name="$func_basename_result"
  40612. + instname="$dir/$name"i
  40613. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  40614. + # Maybe install the static library, too.
  40615. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  40616. + ;;
  40617. - # Read the .la file
  40618. - case $lib in
  40619. - */* | *\\*) . $lib ;;
  40620. - *) . ./$lib ;;
  40621. - esac
  40622. + *.lo)
  40623. + # Install (i.e. copy) a libtool object.
  40624. - if test "$linkmode,$pass" = "lib,link" ||
  40625. - test "$linkmode,$pass" = "prog,scan" ||
  40626. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  40627. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  40628. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  40629. + # Figure out destination file name, if it wasn't already specified.
  40630. + if test -n "$destname"; then
  40631. + destfile="$destdir/$destname"
  40632. + else
  40633. + func_basename "$file"
  40634. + destfile="$func_basename_result"
  40635. + destfile="$destdir/$destfile"
  40636. fi
  40637. - if test "$pass" = conv; then
  40638. - # Only check for convenience libraries
  40639. - deplibs="$lib $deplibs"
  40640. - if test -z "$libdir"; then
  40641. - if test -z "$old_library"; then
  40642. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  40643. - exit $EXIT_FAILURE
  40644. - fi
  40645. - # It is a libtool convenience library, so add in its objects.
  40646. - convenience="$convenience $ladir/$objdir/$old_library"
  40647. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  40648. - tmp_libs=
  40649. - for deplib in $dependency_libs; do
  40650. - deplibs="$deplib $deplibs"
  40651. - if test "X$duplicate_deps" = "Xyes" ; then
  40652. - case "$tmp_libs " in
  40653. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  40654. - esac
  40655. - fi
  40656. - tmp_libs="$tmp_libs $deplib"
  40657. - done
  40658. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  40659. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  40660. - exit $EXIT_FAILURE
  40661. - fi
  40662. - continue
  40663. - fi # $pass = conv
  40664. + # Deduce the name of the destination old-style object file.
  40665. + case $destfile in
  40666. + *.lo)
  40667. + func_lo2o "$destfile"
  40668. + staticdest=$func_lo2o_result
  40669. + ;;
  40670. + *.$objext)
  40671. + staticdest="$destfile"
  40672. + destfile=
  40673. + ;;
  40674. + *)
  40675. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  40676. + ;;
  40677. + esac
  40678. + # Install the libtool object if requested.
  40679. + test -n "$destfile" && \
  40680. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  40681. - # Get the name of the library we link against.
  40682. - linklib=
  40683. - for l in $old_library $library_names; do
  40684. - linklib="$l"
  40685. - done
  40686. - if test -z "$linklib"; then
  40687. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  40688. - exit $EXIT_FAILURE
  40689. + # Install the old object if enabled.
  40690. + if test "$build_old_libs" = yes; then
  40691. + # Deduce the name of the old-style object file.
  40692. + func_lo2o "$file"
  40693. + staticobj=$func_lo2o_result
  40694. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  40695. fi
  40696. + exit $EXIT_SUCCESS
  40697. + ;;
  40698. - # This library was specified with -dlopen.
  40699. - if test "$pass" = dlopen; then
  40700. - if test -z "$libdir"; then
  40701. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  40702. - exit $EXIT_FAILURE
  40703. - fi
  40704. - if test -z "$dlname" ||
  40705. - test "$dlopen_support" != yes ||
  40706. - test "$build_libtool_libs" = no; then
  40707. - # If there is no dlname, no dlopen support or we're linking
  40708. - # statically, we need to preload. We also need to preload any
  40709. - # dependent libraries so libltdl's deplib preloader doesn't
  40710. - # bomb out in the load deplibs phase.
  40711. - dlprefiles="$dlprefiles $lib $dependency_libs"
  40712. - else
  40713. - newdlfiles="$newdlfiles $lib"
  40714. - fi
  40715. - continue
  40716. - fi # $pass = dlopen
  40717. + *)
  40718. + # Figure out destination file name, if it wasn't already specified.
  40719. + if test -n "$destname"; then
  40720. + destfile="$destdir/$destname"
  40721. + else
  40722. + func_basename "$file"
  40723. + destfile="$func_basename_result"
  40724. + destfile="$destdir/$destfile"
  40725. + fi
  40726. - # We need an absolute path.
  40727. - case $ladir in
  40728. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  40729. + # If the file is missing, and there is a .exe on the end, strip it
  40730. + # because it is most likely a libtool script we actually want to
  40731. + # install
  40732. + stripped_ext=""
  40733. + case $file in
  40734. + *.exe)
  40735. + if test ! -f "$file"; then
  40736. + func_stripname '' '.exe' "$file"
  40737. + file=$func_stripname_result
  40738. + stripped_ext=".exe"
  40739. + fi
  40740. + ;;
  40741. + esac
  40742. +
  40743. + # Do a test to see if this is really a libtool program.
  40744. + case $host in
  40745. + *cygwin* | *mingw*)
  40746. + if func_ltwrapper_executable_p "$file"; then
  40747. + func_ltwrapper_scriptname "$file"
  40748. + wrapper=$func_ltwrapper_scriptname_result
  40749. + else
  40750. + func_stripname '' '.exe' "$file"
  40751. + wrapper=$func_stripname_result
  40752. + fi
  40753. + ;;
  40754. *)
  40755. - abs_ladir=`cd "$ladir" && pwd`
  40756. - if test -z "$abs_ladir"; then
  40757. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  40758. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  40759. - abs_ladir="$ladir"
  40760. + wrapper=$file
  40761. + ;;
  40762. + esac
  40763. + if func_ltwrapper_script_p "$wrapper"; then
  40764. + notinst_deplibs=
  40765. + relink_command=
  40766. +
  40767. + func_source "$wrapper"
  40768. +
  40769. + # Check the variables that should have been set.
  40770. + test -z "$generated_by_libtool_version" && \
  40771. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  40772. +
  40773. + finalize=yes
  40774. + for lib in $notinst_deplibs; do
  40775. + # Check to see that each library is installed.
  40776. + libdir=
  40777. + if test -f "$lib"; then
  40778. + func_source "$lib"
  40779. + fi
  40780. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  40781. + if test -n "$libdir" && test ! -f "$libfile"; then
  40782. + func_warning "\`$lib' has not been installed in \`$libdir'"
  40783. + finalize=no
  40784. + fi
  40785. + done
  40786. +
  40787. + relink_command=
  40788. + func_source "$wrapper"
  40789. +
  40790. + outputname=
  40791. + if test "$fast_install" = no && test -n "$relink_command"; then
  40792. + $opt_dry_run || {
  40793. + if test "$finalize" = yes; then
  40794. + tmpdir=`func_mktempdir`
  40795. + func_basename "$file$stripped_ext"
  40796. + file="$func_basename_result"
  40797. + outputname="$tmpdir/$file"
  40798. + # Replace the output file specification.
  40799. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  40800. +
  40801. + $opt_silent || {
  40802. + func_quote_for_expand "$relink_command"
  40803. + eval "func_echo $func_quote_for_expand_result"
  40804. + }
  40805. + if eval "$relink_command"; then :
  40806. + else
  40807. + func_error "error: relink \`$file' with the above command before installing it"
  40808. + $opt_dry_run || ${RM}r "$tmpdir"
  40809. + continue
  40810. + fi
  40811. + file="$outputname"
  40812. + else
  40813. + func_warning "cannot relink \`$file'"
  40814. + fi
  40815. + }
  40816. + else
  40817. + # Install the binary that we compiled earlier.
  40818. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  40819. fi
  40820. + fi
  40821. +
  40822. + # remove .exe since cygwin /usr/bin/install will append another
  40823. + # one anyway
  40824. + case $install_prog,$host in
  40825. + */usr/bin/install*,*cygwin*)
  40826. + case $file:$destfile in
  40827. + *.exe:*.exe)
  40828. + # this is ok
  40829. + ;;
  40830. + *.exe:*)
  40831. + destfile=$destfile.exe
  40832. + ;;
  40833. + *:*.exe)
  40834. + func_stripname '' '.exe' "$destfile"
  40835. + destfile=$func_stripname_result
  40836. + ;;
  40837. + esac
  40838. ;;
  40839. esac
  40840. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  40841. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  40842. + $opt_dry_run || if test -n "$outputname"; then
  40843. + ${RM}r "$tmpdir"
  40844. + fi
  40845. + ;;
  40846. + esac
  40847. + done
  40848. - # Find the relevant object directory and library name.
  40849. - if test "X$installed" = Xyes; then
  40850. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  40851. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  40852. - dir="$ladir"
  40853. - absdir="$abs_ladir"
  40854. - libdir="$abs_ladir"
  40855. - else
  40856. - dir="$libdir"
  40857. - absdir="$libdir"
  40858. + for file in $staticlibs; do
  40859. + func_basename "$file"
  40860. + name="$func_basename_result"
  40861. +
  40862. + # Set up the ranlib parameters.
  40863. + oldlib="$destdir/$name"
  40864. +
  40865. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  40866. +
  40867. + if test -n "$stripme" && test -n "$old_striplib"; then
  40868. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  40869. + fi
  40870. +
  40871. + # Do each command in the postinstall commands.
  40872. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  40873. + done
  40874. +
  40875. + test -n "$future_libdirs" && \
  40876. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  40877. +
  40878. + if test -n "$current_libdirs"; then
  40879. + # Maybe just do a dry run.
  40880. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  40881. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  40882. + else
  40883. + exit $EXIT_SUCCESS
  40884. + fi
  40885. +}
  40886. +
  40887. +test "$mode" = install && func_mode_install ${1+"$@"}
  40888. +
  40889. +
  40890. +# func_generate_dlsyms outputname originator pic_p
  40891. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  40892. +# a dlpreopen symbol table.
  40893. +func_generate_dlsyms ()
  40894. +{
  40895. + $opt_debug
  40896. + my_outputname="$1"
  40897. + my_originator="$2"
  40898. + my_pic_p="${3-no}"
  40899. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  40900. + my_dlsyms=
  40901. +
  40902. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  40903. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  40904. + my_dlsyms="${my_outputname}S.c"
  40905. + else
  40906. + func_error "not configured to extract global symbols from dlpreopened files"
  40907. + fi
  40908. + fi
  40909. +
  40910. + if test -n "$my_dlsyms"; then
  40911. + case $my_dlsyms in
  40912. + "") ;;
  40913. + *.c)
  40914. + # Discover the nlist of each of the dlfiles.
  40915. + nlist="$output_objdir/${my_outputname}.nm"
  40916. +
  40917. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  40918. +
  40919. + # Parse the name list into a source file.
  40920. + func_verbose "creating $output_objdir/$my_dlsyms"
  40921. +
  40922. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  40923. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  40924. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  40925. +
  40926. +#ifdef __cplusplus
  40927. +extern \"C\" {
  40928. +#endif
  40929. +
  40930. +/* External symbol declarations for the compiler. */\
  40931. +"
  40932. +
  40933. + if test "$dlself" = yes; then
  40934. + func_verbose "generating symbol list for \`$output'"
  40935. +
  40936. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  40937. +
  40938. + # Add our own program objects to the symbol list.
  40939. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  40940. + for progfile in $progfiles; do
  40941. + func_verbose "extracting global C symbols from \`$progfile'"
  40942. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  40943. + done
  40944. +
  40945. + if test -n "$exclude_expsyms"; then
  40946. + $opt_dry_run || {
  40947. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  40948. + eval '$MV "$nlist"T "$nlist"'
  40949. + }
  40950. fi
  40951. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  40952. - else
  40953. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  40954. - dir="$ladir"
  40955. - absdir="$abs_ladir"
  40956. - # Remove this search path later
  40957. - notinst_path="$notinst_path $abs_ladir"
  40958. +
  40959. + if test -n "$export_symbols_regex"; then
  40960. + $opt_dry_run || {
  40961. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  40962. + eval '$MV "$nlist"T "$nlist"'
  40963. + }
  40964. + fi
  40965. +
  40966. + # Prepare the list of exported symbols
  40967. + if test -z "$export_symbols"; then
  40968. + export_symbols="$output_objdir/$outputname.exp"
  40969. + $opt_dry_run || {
  40970. + $RM $export_symbols
  40971. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  40972. + case $host in
  40973. + *cygwin* | *mingw* | *cegcc* )
  40974. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  40975. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  40976. + ;;
  40977. + esac
  40978. + }
  40979. else
  40980. - dir="$ladir/$objdir"
  40981. - absdir="$abs_ladir/$objdir"
  40982. - # Remove this search path later
  40983. - notinst_path="$notinst_path $abs_ladir"
  40984. + $opt_dry_run || {
  40985. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  40986. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  40987. + eval '$MV "$nlist"T "$nlist"'
  40988. + case $host in
  40989. + *cygwin | *mingw* | *cegcc* )
  40990. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  40991. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  40992. + ;;
  40993. + esac
  40994. + }
  40995. fi
  40996. - fi # $installed = yes
  40997. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  40998. + fi
  40999. - # This library was specified with -dlpreopen.
  41000. - if test "$pass" = dlpreopen; then
  41001. - if test -z "$libdir"; then
  41002. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  41003. - exit $EXIT_FAILURE
  41004. + for dlprefile in $dlprefiles; do
  41005. + func_verbose "extracting global C symbols from \`$dlprefile'"
  41006. + func_basename "$dlprefile"
  41007. + name="$func_basename_result"
  41008. + $opt_dry_run || {
  41009. + eval '$ECHO ": $name " >> "$nlist"'
  41010. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  41011. + }
  41012. + done
  41013. +
  41014. + $opt_dry_run || {
  41015. + # Make sure we have at least an empty file.
  41016. + test -f "$nlist" || : > "$nlist"
  41017. +
  41018. + if test -n "$exclude_expsyms"; then
  41019. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  41020. + $MV "$nlist"T "$nlist"
  41021. fi
  41022. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  41023. - # are required to link).
  41024. - if test -n "$old_library"; then
  41025. - newdlprefiles="$newdlprefiles $dir/$old_library"
  41026. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  41027. - elif test -n "$dlname"; then
  41028. - newdlprefiles="$newdlprefiles $dir/$dlname"
  41029. +
  41030. + # Try sorting and uniquifying the output.
  41031. + if $GREP -v "^: " < "$nlist" |
  41032. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  41033. + sort -k 3
  41034. + else
  41035. + sort +2
  41036. + fi |
  41037. + uniq > "$nlist"S; then
  41038. + :
  41039. else
  41040. - newdlprefiles="$newdlprefiles $dir/$linklib"
  41041. + $GREP -v "^: " < "$nlist" > "$nlist"S
  41042. fi
  41043. - fi # $pass = dlpreopen
  41044. - if test -z "$libdir"; then
  41045. - # Link the convenience library
  41046. - if test "$linkmode" = lib; then
  41047. - deplibs="$dir/$old_library $deplibs"
  41048. - elif test "$linkmode,$pass" = "prog,link"; then
  41049. - compile_deplibs="$dir/$old_library $compile_deplibs"
  41050. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  41051. + if test -f "$nlist"S; then
  41052. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  41053. else
  41054. - deplibs="$lib $deplibs" # used for prog,scan pass
  41055. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  41056. fi
  41057. - continue
  41058. - fi
  41059. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  41060. - if test "$linkmode" = prog && test "$pass" != link; then
  41061. - newlib_search_path="$newlib_search_path $ladir"
  41062. - deplibs="$lib $deplibs"
  41063. +/* The mapping between symbol names and symbols. */
  41064. +typedef struct {
  41065. + const char *name;
  41066. + void *address;
  41067. +} lt_dlsymlist;
  41068. +"
  41069. + case $host in
  41070. + *cygwin* | *mingw* | *cegcc* )
  41071. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  41072. +/* DATA imports from DLLs on WIN32 con't be const, because
  41073. + runtime relocations are performed -- see ld's documentation
  41074. + on pseudo-relocs. */"
  41075. + lt_dlsym_const= ;;
  41076. + *osf5*)
  41077. + echo >> "$output_objdir/$my_dlsyms" "\
  41078. +/* This system does not cope well with relocations in const data */"
  41079. + lt_dlsym_const= ;;
  41080. + *)
  41081. + lt_dlsym_const=const ;;
  41082. + esac
  41083. - linkalldeplibs=no
  41084. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  41085. - test "$build_libtool_libs" = no; then
  41086. - linkalldeplibs=yes
  41087. - fi
  41088. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  41089. +extern $lt_dlsym_const lt_dlsymlist
  41090. +lt_${my_prefix}_LTX_preloaded_symbols[];
  41091. +$lt_dlsym_const lt_dlsymlist
  41092. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  41093. +{\
  41094. + { \"$my_originator\", (void *) 0 },"
  41095. - tmp_libs=
  41096. - for deplib in $dependency_libs; do
  41097. - case $deplib in
  41098. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  41099. - esac
  41100. - # Need to link against all dependency_libs?
  41101. - if test "$linkalldeplibs" = yes; then
  41102. - deplibs="$deplib $deplibs"
  41103. - else
  41104. - # Need to hardcode shared library paths
  41105. - # or/and link against static libraries
  41106. - newdependency_libs="$deplib $newdependency_libs"
  41107. - fi
  41108. - if test "X$duplicate_deps" = "Xyes" ; then
  41109. - case "$tmp_libs " in
  41110. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  41111. - esac
  41112. - fi
  41113. - tmp_libs="$tmp_libs $deplib"
  41114. - done # for deplib
  41115. - continue
  41116. - fi # $linkmode = prog...
  41117. + case $need_lib_prefix in
  41118. + no)
  41119. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  41120. + ;;
  41121. + *)
  41122. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  41123. + ;;
  41124. + esac
  41125. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  41126. + {0, (void *) 0}
  41127. +};
  41128. - if test "$linkmode,$pass" = "prog,link"; then
  41129. - if test -n "$library_names" &&
  41130. - { { test "$prefer_static_libs" = no ||
  41131. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  41132. - test -z "$old_library"; }; then
  41133. - # We need to hardcode the library path
  41134. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  41135. - # Make sure the rpath contains only unique directories.
  41136. - case "$temp_rpath " in
  41137. - *" $dir "*) ;;
  41138. - *" $absdir "*) ;;
  41139. - *) temp_rpath="$temp_rpath $absdir" ;;
  41140. - esac
  41141. - fi
  41142. +/* This works around a problem in FreeBSD linker */
  41143. +#ifdef FREEBSD_WORKAROUND
  41144. +static const void *lt_preloaded_setup() {
  41145. + return lt_${my_prefix}_LTX_preloaded_symbols;
  41146. +}
  41147. +#endif
  41148. - # Hardcode the library path.
  41149. - # Skip directories that are in the system default run-time
  41150. - # search path.
  41151. - case " $sys_lib_dlsearch_path " in
  41152. - *" $absdir "*) ;;
  41153. - *)
  41154. - case "$compile_rpath " in
  41155. - *" $absdir "*) ;;
  41156. - *) compile_rpath="$compile_rpath $absdir"
  41157. - esac
  41158. - ;;
  41159. - esac
  41160. - case " $sys_lib_dlsearch_path " in
  41161. - *" $libdir "*) ;;
  41162. - *)
  41163. - case "$finalize_rpath " in
  41164. - *" $libdir "*) ;;
  41165. - *) finalize_rpath="$finalize_rpath $libdir"
  41166. - esac
  41167. - ;;
  41168. - esac
  41169. - fi # $linkmode,$pass = prog,link...
  41170. +#ifdef __cplusplus
  41171. +}
  41172. +#endif\
  41173. +"
  41174. + } # !$opt_dry_run
  41175. - if test "$alldeplibs" = yes &&
  41176. - { test "$deplibs_check_method" = pass_all ||
  41177. - { test "$build_libtool_libs" = yes &&
  41178. - test -n "$library_names"; }; }; then
  41179. - # We only need to search for static libraries
  41180. - continue
  41181. - fi
  41182. - fi
  41183. + pic_flag_for_symtable=
  41184. + case "$compile_command " in
  41185. + *" -static "*) ;;
  41186. + *)
  41187. + case $host in
  41188. + # compiling the symbol table file with pic_flag works around
  41189. + # a FreeBSD bug that causes programs to crash when -lm is
  41190. + # linked before any other PIC object. But we must not use
  41191. + # pic_flag when linking with -static. The problem exists in
  41192. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  41193. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  41194. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  41195. + *-*-hpux*)
  41196. + pic_flag_for_symtable=" $pic_flag" ;;
  41197. + *)
  41198. + if test "X$my_pic_p" != Xno; then
  41199. + pic_flag_for_symtable=" $pic_flag"
  41200. + fi
  41201. + ;;
  41202. + esac
  41203. + ;;
  41204. + esac
  41205. + symtab_cflags=
  41206. + for arg in $LTCFLAGS; do
  41207. + case $arg in
  41208. + -pie | -fpie | -fPIE) ;;
  41209. + *) symtab_cflags="$symtab_cflags $arg" ;;
  41210. + esac
  41211. + done
  41212. - link_static=no # Whether the deplib will be linked statically
  41213. - use_static_libs=$prefer_static_libs
  41214. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  41215. - use_static_libs=no
  41216. - fi
  41217. - if test -n "$library_names" &&
  41218. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  41219. - if test "$installed" = no; then
  41220. - notinst_deplibs="$notinst_deplibs $lib"
  41221. - need_relink=yes
  41222. - fi
  41223. - # This is a shared library
  41224. + # Now compile the dynamic symbol file.
  41225. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  41226. - # Warn about portability, can't link against -module's on
  41227. - # some systems (darwin)
  41228. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  41229. - $echo
  41230. - if test "$linkmode" = prog; then
  41231. - $echo "*** Warning: Linking the executable $output against the loadable module"
  41232. - else
  41233. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  41234. - fi
  41235. - $echo "*** $linklib is not portable!"
  41236. - fi
  41237. - if test "$linkmode" = lib &&
  41238. - test "$hardcode_into_libs" = yes; then
  41239. - # Hardcode the library path.
  41240. - # Skip directories that are in the system default run-time
  41241. - # search path.
  41242. - case " $sys_lib_dlsearch_path " in
  41243. - *" $absdir "*) ;;
  41244. - *)
  41245. - case "$compile_rpath " in
  41246. - *" $absdir "*) ;;
  41247. - *) compile_rpath="$compile_rpath $absdir"
  41248. - esac
  41249. - ;;
  41250. - esac
  41251. - case " $sys_lib_dlsearch_path " in
  41252. - *" $libdir "*) ;;
  41253. - *)
  41254. - case "$finalize_rpath " in
  41255. - *" $libdir "*) ;;
  41256. - *) finalize_rpath="$finalize_rpath $libdir"
  41257. - esac
  41258. - ;;
  41259. - esac
  41260. + # Clean up the generated files.
  41261. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  41262. +
  41263. + # Transform the symbol file into the correct name.
  41264. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  41265. + case $host in
  41266. + *cygwin* | *mingw* | *cegcc* )
  41267. + if test -f "$output_objdir/$my_outputname.def"; then
  41268. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  41269. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  41270. + else
  41271. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  41272. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  41273. fi
  41274. + ;;
  41275. + *)
  41276. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  41277. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  41278. + ;;
  41279. + esac
  41280. + ;;
  41281. + *)
  41282. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  41283. + ;;
  41284. + esac
  41285. + else
  41286. + # We keep going just in case the user didn't refer to
  41287. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  41288. + # really was required.
  41289. +
  41290. + # Nullify the symbol file.
  41291. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  41292. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  41293. + fi
  41294. +}
  41295. - if test -n "$old_archive_from_expsyms_cmds"; then
  41296. - # figure out the soname
  41297. - set dummy $library_names
  41298. - realname="$2"
  41299. - shift; shift
  41300. - libname=`eval \\$echo \"$libname_spec\"`
  41301. - # use dlname if we got it. it's perfectly good, no?
  41302. - if test -n "$dlname"; then
  41303. - soname="$dlname"
  41304. - elif test -n "$soname_spec"; then
  41305. - # bleh windows
  41306. - case $host in
  41307. - *cygwin* | mingw*)
  41308. - major=`expr $current - $age`
  41309. - versuffix="-$major"
  41310. - ;;
  41311. - esac
  41312. - eval soname=\"$soname_spec\"
  41313. - else
  41314. - soname="$realname"
  41315. - fi
  41316. +# func_win32_libid arg
  41317. +# return the library type of file 'arg'
  41318. +#
  41319. +# Need a lot of goo to handle *both* DLLs and import libs
  41320. +# Has to be a shell function in order to 'eat' the argument
  41321. +# that is supplied when $file_magic_command is called.
  41322. +func_win32_libid ()
  41323. +{
  41324. + $opt_debug
  41325. + win32_libid_type="unknown"
  41326. + win32_fileres=`file -L $1 2>/dev/null`
  41327. + case $win32_fileres in
  41328. + *ar\ archive\ import\ library*) # definitely import
  41329. + win32_libid_type="x86 archive import"
  41330. + ;;
  41331. + *ar\ archive*) # could be an import, or static
  41332. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  41333. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  41334. + win32_nmres=`eval $NM -f posix -A $1 |
  41335. + $SED -n -e '
  41336. + 1,100{
  41337. + / I /{
  41338. + s,.*,import,
  41339. + p
  41340. + q
  41341. + }
  41342. + }'`
  41343. + case $win32_nmres in
  41344. + import*) win32_libid_type="x86 archive import";;
  41345. + *) win32_libid_type="x86 archive static";;
  41346. + esac
  41347. + fi
  41348. + ;;
  41349. + *DLL*)
  41350. + win32_libid_type="x86 DLL"
  41351. + ;;
  41352. + *executable*) # but shell scripts are "executable" too...
  41353. + case $win32_fileres in
  41354. + *MS\ Windows\ PE\ Intel*)
  41355. + win32_libid_type="x86 DLL"
  41356. + ;;
  41357. + esac
  41358. + ;;
  41359. + esac
  41360. + $ECHO "$win32_libid_type"
  41361. +}
  41362. - # Make a new name for the extract_expsyms_cmds to use
  41363. - soroot="$soname"
  41364. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  41365. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  41366. - # If the library has no export list, then create one now
  41367. - if test -f "$output_objdir/$soname-def"; then :
  41368. - else
  41369. - $show "extracting exported symbol list from \`$soname'"
  41370. - save_ifs="$IFS"; IFS='~'
  41371. - cmds=$extract_expsyms_cmds
  41372. - for cmd in $cmds; do
  41373. - IFS="$save_ifs"
  41374. - eval cmd=\"$cmd\"
  41375. - $show "$cmd"
  41376. - $run eval "$cmd" || exit $?
  41377. - done
  41378. - IFS="$save_ifs"
  41379. - fi
  41380. - # Create $newlib
  41381. - if test -f "$output_objdir/$newlib"; then :; else
  41382. - $show "generating import library for \`$soname'"
  41383. - save_ifs="$IFS"; IFS='~'
  41384. - cmds=$old_archive_from_expsyms_cmds
  41385. - for cmd in $cmds; do
  41386. - IFS="$save_ifs"
  41387. - eval cmd=\"$cmd\"
  41388. - $show "$cmd"
  41389. - $run eval "$cmd" || exit $?
  41390. - done
  41391. - IFS="$save_ifs"
  41392. - fi
  41393. - # make sure the library variables are pointing to the new library
  41394. - dir=$output_objdir
  41395. - linklib=$newlib
  41396. - fi # test -n "$old_archive_from_expsyms_cmds"
  41397. +# func_extract_an_archive dir oldlib
  41398. +func_extract_an_archive ()
  41399. +{
  41400. + $opt_debug
  41401. + f_ex_an_ar_dir="$1"; shift
  41402. + f_ex_an_ar_oldlib="$1"
  41403. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  41404. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  41405. + :
  41406. + else
  41407. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  41408. + fi
  41409. +}
  41410. - if test "$linkmode" = prog || test "$mode" != relink; then
  41411. - add_shlibpath=
  41412. - add_dir=
  41413. - add=
  41414. - lib_linked=yes
  41415. - case $hardcode_action in
  41416. - immediate | unsupported)
  41417. - if test "$hardcode_direct" = no; then
  41418. - add="$dir/$linklib"
  41419. - case $host in
  41420. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  41421. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  41422. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  41423. - *-*-unixware7*) add_dir="-L$dir" ;;
  41424. - *-*-darwin* )
  41425. - # if the lib is a module then we can not link against
  41426. - # it, someone is ignoring the new warnings I added
  41427. - if /usr/bin/file -L $add 2> /dev/null |
  41428. - $EGREP ": [^:]* bundle" >/dev/null ; then
  41429. - $echo "** Warning, lib $linklib is a module, not a shared library"
  41430. - if test -z "$old_library" ; then
  41431. - $echo
  41432. - $echo "** And there doesn't seem to be a static archive available"
  41433. - $echo "** The link will probably fail, sorry"
  41434. - else
  41435. - add="$dir/$old_library"
  41436. - fi
  41437. - fi
  41438. - esac
  41439. - elif test "$hardcode_minus_L" = no; then
  41440. - case $host in
  41441. - *-*-sunos*) add_shlibpath="$dir" ;;
  41442. - esac
  41443. - add_dir="-L$dir"
  41444. - add="-l$name"
  41445. - elif test "$hardcode_shlibpath_var" = no; then
  41446. - add_shlibpath="$dir"
  41447. - add="-l$name"
  41448. - else
  41449. - lib_linked=no
  41450. - fi
  41451. - ;;
  41452. - relink)
  41453. - if test "$hardcode_direct" = yes; then
  41454. - add="$dir/$linklib"
  41455. - elif test "$hardcode_minus_L" = yes; then
  41456. - add_dir="-L$dir"
  41457. - # Try looking first in the location we're being installed to.
  41458. - if test -n "$inst_prefix_dir"; then
  41459. - case $libdir in
  41460. - [\\/]*)
  41461. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  41462. - ;;
  41463. - esac
  41464. - fi
  41465. - add="-l$name"
  41466. - elif test "$hardcode_shlibpath_var" = yes; then
  41467. - add_shlibpath="$dir"
  41468. - add="-l$name"
  41469. - else
  41470. - lib_linked=no
  41471. - fi
  41472. - ;;
  41473. - *) lib_linked=no ;;
  41474. - esac
  41475. - if test "$lib_linked" != yes; then
  41476. - $echo "$modename: configuration error: unsupported hardcode properties"
  41477. - exit $EXIT_FAILURE
  41478. - fi
  41479. +# func_extract_archives gentop oldlib ...
  41480. +func_extract_archives ()
  41481. +{
  41482. + $opt_debug
  41483. + my_gentop="$1"; shift
  41484. + my_oldlibs=${1+"$@"}
  41485. + my_oldobjs=""
  41486. + my_xlib=""
  41487. + my_xabs=""
  41488. + my_xdir=""
  41489. - if test -n "$add_shlibpath"; then
  41490. - case :$compile_shlibpath: in
  41491. - *":$add_shlibpath:"*) ;;
  41492. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  41493. - esac
  41494. - fi
  41495. - if test "$linkmode" = prog; then
  41496. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  41497. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  41498. - else
  41499. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  41500. - test -n "$add" && deplibs="$add $deplibs"
  41501. - if test "$hardcode_direct" != yes && \
  41502. - test "$hardcode_minus_L" != yes && \
  41503. - test "$hardcode_shlibpath_var" = yes; then
  41504. - case :$finalize_shlibpath: in
  41505. - *":$libdir:"*) ;;
  41506. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  41507. - esac
  41508. - fi
  41509. - fi
  41510. - fi
  41511. + for my_xlib in $my_oldlibs; do
  41512. + # Extract the objects.
  41513. + case $my_xlib in
  41514. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  41515. + *) my_xabs=`pwd`"/$my_xlib" ;;
  41516. + esac
  41517. + func_basename "$my_xlib"
  41518. + my_xlib="$func_basename_result"
  41519. + my_xlib_u=$my_xlib
  41520. + while :; do
  41521. + case " $extracted_archives " in
  41522. + *" $my_xlib_u "*)
  41523. + func_arith $extracted_serial + 1
  41524. + extracted_serial=$func_arith_result
  41525. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  41526. + *) break ;;
  41527. + esac
  41528. + done
  41529. + extracted_archives="$extracted_archives $my_xlib_u"
  41530. + my_xdir="$my_gentop/$my_xlib_u"
  41531. - if test "$linkmode" = prog || test "$mode" = relink; then
  41532. - add_shlibpath=
  41533. - add_dir=
  41534. - add=
  41535. - # Finalize command for both is simple: just hardcode it.
  41536. - if test "$hardcode_direct" = yes; then
  41537. - add="$libdir/$linklib"
  41538. - elif test "$hardcode_minus_L" = yes; then
  41539. - add_dir="-L$libdir"
  41540. - add="-l$name"
  41541. - elif test "$hardcode_shlibpath_var" = yes; then
  41542. - case :$finalize_shlibpath: in
  41543. - *":$libdir:"*) ;;
  41544. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  41545. - esac
  41546. - add="-l$name"
  41547. - elif test "$hardcode_automatic" = yes; then
  41548. - if test -n "$inst_prefix_dir" &&
  41549. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  41550. - add="$inst_prefix_dir$libdir/$linklib"
  41551. - else
  41552. - add="$libdir/$linklib"
  41553. - fi
  41554. - else
  41555. - # We cannot seem to hardcode it, guess we'll fake it.
  41556. - add_dir="-L$libdir"
  41557. - # Try looking first in the location we're being installed to.
  41558. - if test -n "$inst_prefix_dir"; then
  41559. - case $libdir in
  41560. - [\\/]*)
  41561. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  41562. - ;;
  41563. - esac
  41564. - fi
  41565. - add="-l$name"
  41566. - fi
  41567. + func_mkdir_p "$my_xdir"
  41568. - if test "$linkmode" = prog; then
  41569. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  41570. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  41571. - else
  41572. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  41573. - test -n "$add" && deplibs="$add $deplibs"
  41574. - fi
  41575. - fi
  41576. - elif test "$linkmode" = prog; then
  41577. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  41578. - # is not unsupported. This is valid on all known static and
  41579. - # shared platforms.
  41580. - if test "$hardcode_direct" != unsupported; then
  41581. - test -n "$old_library" && linklib="$old_library"
  41582. - compile_deplibs="$dir/$linklib $compile_deplibs"
  41583. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  41584. + case $host in
  41585. + *-darwin*)
  41586. + func_verbose "Extracting $my_xabs"
  41587. + # Do not bother doing anything if just a dry run
  41588. + $opt_dry_run || {
  41589. + darwin_orig_dir=`pwd`
  41590. + cd $my_xdir || exit $?
  41591. + darwin_archive=$my_xabs
  41592. + darwin_curdir=`pwd`
  41593. + darwin_base_archive=`basename "$darwin_archive"`
  41594. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  41595. + if test -n "$darwin_arches"; then
  41596. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  41597. + darwin_arch=
  41598. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  41599. + for darwin_arch in $darwin_arches ; do
  41600. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  41601. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  41602. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  41603. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  41604. + cd "$darwin_curdir"
  41605. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  41606. + done # $darwin_arches
  41607. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  41608. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  41609. + darwin_file=
  41610. + darwin_files=
  41611. + for darwin_file in $darwin_filelist; do
  41612. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  41613. + $LIPO -create -output "$darwin_file" $darwin_files
  41614. + done # $darwin_filelist
  41615. + $RM -rf unfat-$$
  41616. + cd "$darwin_orig_dir"
  41617. else
  41618. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  41619. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  41620. - fi
  41621. - elif test "$build_libtool_libs" = yes; then
  41622. - # Not a shared library
  41623. - if test "$deplibs_check_method" != pass_all; then
  41624. - # We're trying link a shared library against a static one
  41625. - # but the system doesn't support it.
  41626. + cd $darwin_orig_dir
  41627. + func_extract_an_archive "$my_xdir" "$my_xabs"
  41628. + fi # $darwin_arches
  41629. + } # !$opt_dry_run
  41630. + ;;
  41631. + *)
  41632. + func_extract_an_archive "$my_xdir" "$my_xabs"
  41633. + ;;
  41634. + esac
  41635. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  41636. + done
  41637. - # Just print a warning and add the library to dependency_libs so
  41638. - # that the program can be linked against the static library.
  41639. - $echo
  41640. - $echo "*** Warning: This system can not link to static lib archive $lib."
  41641. - $echo "*** I have the capability to make that library automatically link in when"
  41642. - $echo "*** you link to this library. But I can only do this if you have a"
  41643. - $echo "*** shared version of the library, which you do not appear to have."
  41644. - if test "$module" = yes; then
  41645. - $echo "*** But as you try to build a module library, libtool will still create "
  41646. - $echo "*** a static module, that should work as long as the dlopening application"
  41647. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  41648. - if test -z "$global_symbol_pipe"; then
  41649. - $echo
  41650. - $echo "*** However, this would only work if libtool was able to extract symbol"
  41651. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  41652. - $echo "*** not find such a program. So, this module is probably useless."
  41653. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  41654. - fi
  41655. - if test "$build_old_libs" = no; then
  41656. - build_libtool_libs=module
  41657. - build_old_libs=yes
  41658. - else
  41659. - build_libtool_libs=no
  41660. - fi
  41661. - fi
  41662. - else
  41663. - deplibs="$dir/$old_library $deplibs"
  41664. - link_static=yes
  41665. - fi
  41666. - fi # link shared/static library?
  41667. + func_extract_archives_result="$my_oldobjs"
  41668. +}
  41669. - if test "$linkmode" = lib; then
  41670. - if test -n "$dependency_libs" &&
  41671. - { test "$hardcode_into_libs" != yes ||
  41672. - test "$build_old_libs" = yes ||
  41673. - test "$link_static" = yes; }; then
  41674. - # Extract -R from dependency_libs
  41675. - temp_deplibs=
  41676. - for libdir in $dependency_libs; do
  41677. - case $libdir in
  41678. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  41679. - case " $xrpath " in
  41680. - *" $temp_xrpath "*) ;;
  41681. - *) xrpath="$xrpath $temp_xrpath";;
  41682. - esac;;
  41683. - *) temp_deplibs="$temp_deplibs $libdir";;
  41684. - esac
  41685. - done
  41686. - dependency_libs="$temp_deplibs"
  41687. - fi
  41688. - newlib_search_path="$newlib_search_path $absdir"
  41689. - # Link against this library
  41690. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  41691. - # ... and its dependency_libs
  41692. - tmp_libs=
  41693. - for deplib in $dependency_libs; do
  41694. - newdependency_libs="$deplib $newdependency_libs"
  41695. - if test "X$duplicate_deps" = "Xyes" ; then
  41696. - case "$tmp_libs " in
  41697. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  41698. - esac
  41699. - fi
  41700. - tmp_libs="$tmp_libs $deplib"
  41701. - done
  41702. - if test "$link_all_deplibs" != no; then
  41703. - # Add the search paths of all dependency libraries
  41704. - for deplib in $dependency_libs; do
  41705. - case $deplib in
  41706. - -L*) path="$deplib" ;;
  41707. - *.la)
  41708. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  41709. - test "X$dir" = "X$deplib" && dir="."
  41710. - # We need an absolute path.
  41711. - case $dir in
  41712. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  41713. - *)
  41714. - absdir=`cd "$dir" && pwd`
  41715. - if test -z "$absdir"; then
  41716. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  41717. - absdir="$dir"
  41718. - fi
  41719. - ;;
  41720. - esac
  41721. - if grep "^installed=no" $deplib > /dev/null; then
  41722. - path="$absdir/$objdir"
  41723. - else
  41724. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  41725. - if test -z "$libdir"; then
  41726. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  41727. - exit $EXIT_FAILURE
  41728. - fi
  41729. - if test "$absdir" != "$libdir"; then
  41730. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  41731. - fi
  41732. - path="$absdir"
  41733. - fi
  41734. - depdepl=
  41735. - case $host in
  41736. - *-*-darwin*)
  41737. - # we do not want to link against static libs,
  41738. - # but need to link against shared
  41739. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  41740. - eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  41741. - if test -n "$deplibrary_names" ; then
  41742. - for tmp in $deplibrary_names ; do
  41743. - depdepl=$tmp
  41744. - done
  41745. - if test -f "$deplibdir/$depdepl" ; then
  41746. - depdepl="$deplibdir/$depdepl"
  41747. - elif test -f "$path/$depdepl" ; then
  41748. - depdepl="$path/$depdepl"
  41749. - else
  41750. - # Can't find it, oh well...
  41751. - depdepl=
  41752. - fi
  41753. - # do not add paths which are already there
  41754. - case " $newlib_search_path " in
  41755. - *" $path "*) ;;
  41756. - *) newlib_search_path="$newlib_search_path $path";;
  41757. - esac
  41758. - fi
  41759. - path=""
  41760. - ;;
  41761. - *)
  41762. - path="-L$path"
  41763. - ;;
  41764. - esac
  41765. - ;;
  41766. - -l*)
  41767. - case $host in
  41768. - *-*-darwin*)
  41769. - # Again, we only want to link against shared libraries
  41770. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  41771. - for tmp in $newlib_search_path ; do
  41772. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  41773. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  41774. - break
  41775. - fi
  41776. - done
  41777. - path=""
  41778. - ;;
  41779. - *) continue ;;
  41780. - esac
  41781. - ;;
  41782. - *) continue ;;
  41783. - esac
  41784. - case " $deplibs " in
  41785. - *" $path "*) ;;
  41786. - *) deplibs="$path $deplibs" ;;
  41787. - esac
  41788. - case " $deplibs " in
  41789. - *" $depdepl "*) ;;
  41790. - *) deplibs="$depdepl $deplibs" ;;
  41791. - esac
  41792. - done
  41793. - fi # link_all_deplibs != no
  41794. - fi # linkmode = lib
  41795. - done # for deplib in $libs
  41796. - dependency_libs="$newdependency_libs"
  41797. - if test "$pass" = dlpreopen; then
  41798. - # Link the dlpreopened libraries before other libraries
  41799. - for deplib in $save_deplibs; do
  41800. - deplibs="$deplib $deplibs"
  41801. - done
  41802. - fi
  41803. - if test "$pass" != dlopen; then
  41804. - if test "$pass" != conv; then
  41805. - # Make sure lib_search_path contains only unique directories.
  41806. - lib_search_path=
  41807. - for dir in $newlib_search_path; do
  41808. - case "$lib_search_path " in
  41809. - *" $dir "*) ;;
  41810. - *) lib_search_path="$lib_search_path $dir" ;;
  41811. - esac
  41812. - done
  41813. - newlib_search_path=
  41814. +# func_emit_wrapper_part1 [arg=no]
  41815. +#
  41816. +# Emit the first part of a libtool wrapper script on stdout.
  41817. +# For more information, see the description associated with
  41818. +# func_emit_wrapper(), below.
  41819. +func_emit_wrapper_part1 ()
  41820. +{
  41821. + func_emit_wrapper_part1_arg1=no
  41822. + if test -n "$1" ; then
  41823. + func_emit_wrapper_part1_arg1=$1
  41824. fi
  41825. - if test "$linkmode,$pass" != "prog,link"; then
  41826. - vars="deplibs"
  41827. - else
  41828. - vars="compile_deplibs finalize_deplibs"
  41829. - fi
  41830. - for var in $vars dependency_libs; do
  41831. - # Add libraries to $var in reverse order
  41832. - eval tmp_libs=\"\$$var\"
  41833. - new_libs=
  41834. - for deplib in $tmp_libs; do
  41835. - # FIXME: Pedantically, this is the right thing to do, so
  41836. - # that some nasty dependency loop isn't accidentally
  41837. - # broken:
  41838. - #new_libs="$deplib $new_libs"
  41839. - # Pragmatically, this seems to cause very few problems in
  41840. - # practice:
  41841. - case $deplib in
  41842. - -L*) new_libs="$deplib $new_libs" ;;
  41843. - -R*) ;;
  41844. - *)
  41845. - # And here is the reason: when a library appears more
  41846. - # than once as an explicit dependence of a library, or
  41847. - # is implicitly linked in more than once by the
  41848. - # compiler, it is considered special, and multiple
  41849. - # occurrences thereof are not removed. Compare this
  41850. - # with having the same library being listed as a
  41851. - # dependency of multiple other libraries: in this case,
  41852. - # we know (pedantically, we assume) the library does not
  41853. - # need to be listed more than once, so we keep only the
  41854. - # last copy. This is not always right, but it is rare
  41855. - # enough that we require users that really mean to play
  41856. - # such unportable linking tricks to link the library
  41857. - # using -Wl,-lname, so that libtool does not consider it
  41858. - # for duplicate removal.
  41859. - case " $specialdeplibs " in
  41860. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  41861. - *)
  41862. - case " $new_libs " in
  41863. - *" $deplib "*) ;;
  41864. - *) new_libs="$deplib $new_libs" ;;
  41865. - esac
  41866. - ;;
  41867. - esac
  41868. - ;;
  41869. - esac
  41870. - done
  41871. - tmp_libs=
  41872. - for deplib in $new_libs; do
  41873. - case $deplib in
  41874. - -L*)
  41875. - case " $tmp_libs " in
  41876. - *" $deplib "*) ;;
  41877. - *) tmp_libs="$tmp_libs $deplib" ;;
  41878. - esac
  41879. - ;;
  41880. - *) tmp_libs="$tmp_libs $deplib" ;;
  41881. - esac
  41882. - done
  41883. - eval $var=\"$tmp_libs\"
  41884. - done # for var
  41885. - fi
  41886. - # Last step: remove runtime libs from dependency_libs
  41887. - # (they stay in deplibs)
  41888. - tmp_libs=
  41889. - for i in $dependency_libs ; do
  41890. - case " $predeps $postdeps $compiler_lib_search_path " in
  41891. - *" $i "*)
  41892. - i=""
  41893. - ;;
  41894. - esac
  41895. - if test -n "$i" ; then
  41896. - tmp_libs="$tmp_libs $i"
  41897. - fi
  41898. - done
  41899. - dependency_libs=$tmp_libs
  41900. - done # for pass
  41901. - if test "$linkmode" = prog; then
  41902. - dlfiles="$newdlfiles"
  41903. - dlprefiles="$newdlprefiles"
  41904. + $ECHO "\
  41905. +#! $SHELL
  41906. +
  41907. +# $output - temporary wrapper script for $objdir/$outputname
  41908. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  41909. +#
  41910. +# The $output program cannot be directly executed until all the libtool
  41911. +# libraries that it depends on are installed.
  41912. +#
  41913. +# This wrapper script should never be moved out of the build directory.
  41914. +# If it is, it will not operate correctly.
  41915. +
  41916. +# Sed substitution that helps us do robust quoting. It backslashifies
  41917. +# metacharacters that are still active within double-quoted strings.
  41918. +Xsed='${SED} -e 1s/^X//'
  41919. +sed_quote_subst='$sed_quote_subst'
  41920. +
  41921. +# Be Bourne compatible
  41922. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  41923. + emulate sh
  41924. + NULLCMD=:
  41925. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  41926. + # is contrary to our usage. Disable this feature.
  41927. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  41928. + setopt NO_GLOB_SUBST
  41929. +else
  41930. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  41931. +fi
  41932. +BIN_SH=xpg4; export BIN_SH # for Tru64
  41933. +DUALCASE=1; export DUALCASE # for MKS sh
  41934. +
  41935. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41936. +# if CDPATH is set.
  41937. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41938. +
  41939. +relink_command=\"$relink_command\"
  41940. +
  41941. +# This environment variable determines our operation mode.
  41942. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  41943. + # install mode needs the following variables:
  41944. + generated_by_libtool_version='$macro_version'
  41945. + notinst_deplibs='$notinst_deplibs'
  41946. +else
  41947. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  41948. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  41949. + ECHO=\"$qecho\"
  41950. + file=\"\$0\"
  41951. + # Make sure echo works.
  41952. + if test \"X\$1\" = X--no-reexec; then
  41953. + # Discard the --no-reexec flag, and continue.
  41954. + shift
  41955. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  41956. + # Yippee, \$ECHO works!
  41957. + :
  41958. + else
  41959. + # Restart under the correct shell, and then maybe \$ECHO will work.
  41960. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  41961. fi
  41962. + fi\
  41963. +"
  41964. + $ECHO "\
  41965. - case $linkmode in
  41966. - oldlib)
  41967. - case " $deplibs" in
  41968. - *\ -l* | *\ -L*)
  41969. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
  41970. + # Find the directory that this script lives in.
  41971. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  41972. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  41973. +
  41974. + # Follow symbolic links until we get to the real thisdir.
  41975. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  41976. + while test -n \"\$file\"; do
  41977. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  41978. +
  41979. + # If there was a directory component, then change thisdir.
  41980. + if test \"x\$destdir\" != \"x\$file\"; then
  41981. + case \"\$destdir\" in
  41982. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  41983. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  41984. esac
  41985. + fi
  41986. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  41987. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  41988. - fi
  41989. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  41990. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  41991. + done
  41992. +"
  41993. +}
  41994. +# end: func_emit_wrapper_part1
  41995. - if test -n "$rpath"; then
  41996. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  41997. - fi
  41998. +# func_emit_wrapper_part2 [arg=no]
  41999. +#
  42000. +# Emit the second part of a libtool wrapper script on stdout.
  42001. +# For more information, see the description associated with
  42002. +# func_emit_wrapper(), below.
  42003. +func_emit_wrapper_part2 ()
  42004. +{
  42005. + func_emit_wrapper_part2_arg1=no
  42006. + if test -n "$1" ; then
  42007. + func_emit_wrapper_part2_arg1=$1
  42008. + fi
  42009. +
  42010. + $ECHO "\
  42011. +
  42012. + # Usually 'no', except on cygwin/mingw when embedded into
  42013. + # the cwrapper.
  42014. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  42015. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  42016. + # special case for '.'
  42017. + if test \"\$thisdir\" = \".\"; then
  42018. + thisdir=\`pwd\`
  42019. + fi
  42020. + # remove .libs from thisdir
  42021. + case \"\$thisdir\" in
  42022. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  42023. + $objdir ) thisdir=. ;;
  42024. + esac
  42025. + fi
  42026. - if test -n "$xrpath"; then
  42027. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  42028. - fi
  42029. + # Try to get the absolute directory name.
  42030. + absdir=\`cd \"\$thisdir\" && pwd\`
  42031. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  42032. +"
  42033. - if test -n "$vinfo"; then
  42034. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  42035. - fi
  42036. + if test "$fast_install" = yes; then
  42037. + $ECHO "\
  42038. + program=lt-'$outputname'$exeext
  42039. + progdir=\"\$thisdir/$objdir\"
  42040. - if test -n "$release"; then
  42041. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  42042. - fi
  42043. + if test ! -f \"\$progdir/\$program\" ||
  42044. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  42045. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  42046. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  42047. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  42048. - fi
  42049. + file=\"\$\$-\$program\"
  42050. - # Now set the variables for building old libraries.
  42051. - build_libtool_libs=no
  42052. - oldlibs="$output"
  42053. - objs="$objs$old_deplibs"
  42054. - ;;
  42055. + if test ! -d \"\$progdir\"; then
  42056. + $MKDIR \"\$progdir\"
  42057. + else
  42058. + $RM \"\$progdir/\$file\"
  42059. + fi"
  42060. - lib)
  42061. - # Make sure we only generate libraries of the form `libNAME.la'.
  42062. - case $outputname in
  42063. - lib*)
  42064. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  42065. - eval shared_ext=\"$shrext_cmds\"
  42066. - eval libname=\"$libname_spec\"
  42067. - ;;
  42068. - *)
  42069. - if test "$module" = no; then
  42070. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  42071. - $echo "$help" 1>&2
  42072. - exit $EXIT_FAILURE
  42073. - fi
  42074. - if test "$need_lib_prefix" != no; then
  42075. - # Add the "lib" prefix for modules if required
  42076. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  42077. - eval shared_ext=\"$shrext_cmds\"
  42078. - eval libname=\"$libname_spec\"
  42079. - else
  42080. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  42081. - fi
  42082. - ;;
  42083. - esac
  42084. + $ECHO "\
  42085. - if test -n "$objs"; then
  42086. - if test "$deplibs_check_method" != pass_all; then
  42087. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  42088. - exit $EXIT_FAILURE
  42089. + # relink executable if necessary
  42090. + if test -n \"\$relink_command\"; then
  42091. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  42092. + else
  42093. + $ECHO \"\$relink_command_output\" >&2
  42094. + $RM \"\$progdir/\$file\"
  42095. + exit 1
  42096. + fi
  42097. + fi
  42098. +
  42099. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  42100. + { $RM \"\$progdir/\$program\";
  42101. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  42102. + $RM \"\$progdir/\$file\"
  42103. + fi"
  42104. else
  42105. - $echo
  42106. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  42107. - $echo "*** objects $objs is not portable!"
  42108. - libobjs="$libobjs $objs"
  42109. + $ECHO "\
  42110. + program='$outputname'
  42111. + progdir=\"\$thisdir/$objdir\"
  42112. +"
  42113. fi
  42114. - fi
  42115. - if test "$dlself" != no; then
  42116. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  42117. - fi
  42118. + $ECHO "\
  42119. - set dummy $rpath
  42120. - if test "$#" -gt 2; then
  42121. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  42122. - fi
  42123. - install_libdir="$2"
  42124. + if test -f \"\$progdir/\$program\"; then"
  42125. - oldlibs=
  42126. - if test -z "$rpath"; then
  42127. - if test "$build_libtool_libs" = yes; then
  42128. - # Building a libtool convenience library.
  42129. - # Some compilers have problems with a `.al' extension so
  42130. - # convenience libraries should have the same extension an
  42131. - # archive normally would.
  42132. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  42133. - build_libtool_libs=convenience
  42134. - build_old_libs=yes
  42135. - fi
  42136. + # Export our shlibpath_var if we have one.
  42137. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  42138. + $ECHO "\
  42139. + # Add our own library path to $shlibpath_var
  42140. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  42141. - if test -n "$vinfo"; then
  42142. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  42143. + # Some systems cannot cope with colon-terminated $shlibpath_var
  42144. + # The second colon is a workaround for a bug in BeOS R4 sed
  42145. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  42146. +
  42147. + export $shlibpath_var
  42148. +"
  42149. fi
  42150. - if test -n "$release"; then
  42151. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  42152. + # fixup the dll searchpath if we need to.
  42153. + if test -n "$dllsearchpath"; then
  42154. + $ECHO "\
  42155. + # Add the dll search path components to the executable PATH
  42156. + PATH=$dllsearchpath:\$PATH
  42157. +"
  42158. fi
  42159. - else
  42160. - # Parse the version information argument.
  42161. - save_ifs="$IFS"; IFS=':'
  42162. - set dummy $vinfo 0 0 0
  42163. - IFS="$save_ifs"
  42164. + $ECHO "\
  42165. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  42166. + # Run the actual program with our arguments.
  42167. +"
  42168. + case $host in
  42169. + # Backslashes separate directories on plain windows
  42170. + *-*-mingw | *-*-os2* | *-cegcc*)
  42171. + $ECHO "\
  42172. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  42173. +"
  42174. + ;;
  42175. +
  42176. + *)
  42177. + $ECHO "\
  42178. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  42179. +"
  42180. + ;;
  42181. + esac
  42182. + $ECHO "\
  42183. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  42184. + exit 1
  42185. + fi
  42186. + else
  42187. + # The program doesn't exist.
  42188. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  42189. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  42190. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  42191. + exit 1
  42192. + fi
  42193. +fi\
  42194. +"
  42195. +}
  42196. +# end: func_emit_wrapper_part2
  42197. - if test -n "$8"; then
  42198. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  42199. - $echo "$help" 1>&2
  42200. - exit $EXIT_FAILURE
  42201. +
  42202. +# func_emit_wrapper [arg=no]
  42203. +#
  42204. +# Emit a libtool wrapper script on stdout.
  42205. +# Don't directly open a file because we may want to
  42206. +# incorporate the script contents within a cygwin/mingw
  42207. +# wrapper executable. Must ONLY be called from within
  42208. +# func_mode_link because it depends on a number of variables
  42209. +# set therein.
  42210. +#
  42211. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  42212. +# variable will take. If 'yes', then the emitted script
  42213. +# will assume that the directory in which it is stored is
  42214. +# the $objdir directory. This is a cygwin/mingw-specific
  42215. +# behavior.
  42216. +func_emit_wrapper ()
  42217. +{
  42218. + func_emit_wrapper_arg1=no
  42219. + if test -n "$1" ; then
  42220. + func_emit_wrapper_arg1=$1
  42221. fi
  42222. - # convert absolute version numbers to libtool ages
  42223. - # this retains compatibility with .la files and attempts
  42224. - # to make the code below a bit more comprehensible
  42225. + # split this up so that func_emit_cwrapperexe_src
  42226. + # can call each part independently.
  42227. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  42228. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  42229. +}
  42230. - case $vinfo_number in
  42231. - yes)
  42232. - number_major="$2"
  42233. - number_minor="$3"
  42234. - number_revision="$4"
  42235. - #
  42236. - # There are really only two kinds -- those that
  42237. - # use the current revision as the major version
  42238. - # and those that subtract age and use age as
  42239. - # a minor version. But, then there is irix
  42240. - # which has an extra 1 added just for fun
  42241. - #
  42242. - case $version_type in
  42243. - darwin|linux|osf|windows|none)
  42244. - current=`expr $number_major + $number_minor`
  42245. - age="$number_minor"
  42246. - revision="$number_revision"
  42247. - ;;
  42248. - freebsd-aout|freebsd-elf|sunos)
  42249. - current="$number_major"
  42250. - revision="$number_minor"
  42251. - age="0"
  42252. - ;;
  42253. - irix|nonstopux)
  42254. - current=`expr $number_major + $number_minor`
  42255. - age="$number_minor"
  42256. - revision="$number_minor"
  42257. - lt_irix_increment=no
  42258. - ;;
  42259. - *)
  42260. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  42261. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  42262. - exit $EXIT_FAILURE
  42263. - ;;
  42264. - esac
  42265. - ;;
  42266. - no)
  42267. - current="$2"
  42268. - revision="$3"
  42269. - age="$4"
  42270. - ;;
  42271. - esac
  42272. - # Check that each of the things are valid numbers.
  42273. - case $current in
  42274. - 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]) ;;
  42275. - *)
  42276. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  42277. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  42278. - exit $EXIT_FAILURE
  42279. - ;;
  42280. - esac
  42281. +# func_to_host_path arg
  42282. +#
  42283. +# Convert paths to host format when used with build tools.
  42284. +# Intended for use with "native" mingw (where libtool itself
  42285. +# is running under the msys shell), or in the following cross-
  42286. +# build environments:
  42287. +# $build $host
  42288. +# mingw (msys) mingw [e.g. native]
  42289. +# cygwin mingw
  42290. +# *nix + wine mingw
  42291. +# where wine is equipped with the `winepath' executable.
  42292. +# In the native mingw case, the (msys) shell automatically
  42293. +# converts paths for any non-msys applications it launches,
  42294. +# but that facility isn't available from inside the cwrapper.
  42295. +# Similar accommodations are necessary for $host mingw and
  42296. +# $build cygwin. Calling this function does no harm for other
  42297. +# $host/$build combinations not listed above.
  42298. +#
  42299. +# ARG is the path (on $build) that should be converted to
  42300. +# the proper representation for $host. The result is stored
  42301. +# in $func_to_host_path_result.
  42302. +func_to_host_path ()
  42303. +{
  42304. + func_to_host_path_result="$1"
  42305. + if test -n "$1" ; then
  42306. + case $host in
  42307. + *mingw* )
  42308. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  42309. + case $build in
  42310. + *mingw* ) # actually, msys
  42311. + # awkward: cmd appends spaces to result
  42312. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  42313. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  42314. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  42315. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  42316. + $SED -e "$lt_sed_naive_backslashify"`
  42317. + ;;
  42318. + *cygwin* )
  42319. + func_to_host_path_tmp1=`cygpath -w "$1"`
  42320. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  42321. + $SED -e "$lt_sed_naive_backslashify"`
  42322. + ;;
  42323. + * )
  42324. + # Unfortunately, winepath does not exit with a non-zero
  42325. + # error code, so we are forced to check the contents of
  42326. + # stdout. On the other hand, if the command is not
  42327. + # found, the shell will set an exit code of 127 and print
  42328. + # *an error message* to stdout. So we must check for both
  42329. + # error code of zero AND non-empty stdout, which explains
  42330. + # the odd construction:
  42331. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  42332. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  42333. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  42334. + $SED -e "$lt_sed_naive_backslashify"`
  42335. + else
  42336. + # Allow warning below.
  42337. + func_to_host_path_result=""
  42338. + fi
  42339. + ;;
  42340. + esac
  42341. + if test -z "$func_to_host_path_result" ; then
  42342. + func_error "Could not determine host path corresponding to"
  42343. + func_error " '$1'"
  42344. + func_error "Continuing, but uninstalled executables may not work."
  42345. + # Fallback:
  42346. + func_to_host_path_result="$1"
  42347. + fi
  42348. + ;;
  42349. + esac
  42350. + fi
  42351. +}
  42352. +# end: func_to_host_path
  42353. - case $revision in
  42354. - 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]) ;;
  42355. - *)
  42356. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  42357. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  42358. - exit $EXIT_FAILURE
  42359. - ;;
  42360. - esac
  42361. +# func_to_host_pathlist arg
  42362. +#
  42363. +# Convert pathlists to host format when used with build tools.
  42364. +# See func_to_host_path(), above. This function supports the
  42365. +# following $build/$host combinations (but does no harm for
  42366. +# combinations not listed here):
  42367. +# $build $host
  42368. +# mingw (msys) mingw [e.g. native]
  42369. +# cygwin mingw
  42370. +# *nix + wine mingw
  42371. +#
  42372. +# Path separators are also converted from $build format to
  42373. +# $host format. If ARG begins or ends with a path separator
  42374. +# character, it is preserved (but converted to $host format)
  42375. +# on output.
  42376. +#
  42377. +# ARG is a pathlist (on $build) that should be converted to
  42378. +# the proper representation on $host. The result is stored
  42379. +# in $func_to_host_pathlist_result.
  42380. +func_to_host_pathlist ()
  42381. +{
  42382. + func_to_host_pathlist_result="$1"
  42383. + if test -n "$1" ; then
  42384. + case $host in
  42385. + *mingw* )
  42386. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  42387. + # Remove leading and trailing path separator characters from
  42388. + # ARG. msys behavior is inconsistent here, cygpath turns them
  42389. + # into '.;' and ';.', and winepath ignores them completely.
  42390. + func_to_host_pathlist_tmp2="$1"
  42391. + # Once set for this call, this variable should not be
  42392. + # reassigned. It is used in tha fallback case.
  42393. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  42394. + $SED -e 's|^:*||' -e 's|:*$||'`
  42395. + case $build in
  42396. + *mingw* ) # Actually, msys.
  42397. + # Awkward: cmd appends spaces to result.
  42398. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  42399. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  42400. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  42401. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  42402. + $SED -e "$lt_sed_naive_backslashify"`
  42403. + ;;
  42404. + *cygwin* )
  42405. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  42406. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  42407. + $SED -e "$lt_sed_naive_backslashify"`
  42408. + ;;
  42409. + * )
  42410. + # unfortunately, winepath doesn't convert pathlists
  42411. + func_to_host_pathlist_result=""
  42412. + func_to_host_pathlist_oldIFS=$IFS
  42413. + IFS=:
  42414. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  42415. + IFS=$func_to_host_pathlist_oldIFS
  42416. + if test -n "$func_to_host_pathlist_f" ; then
  42417. + func_to_host_path "$func_to_host_pathlist_f"
  42418. + if test -n "$func_to_host_path_result" ; then
  42419. + if test -z "$func_to_host_pathlist_result" ; then
  42420. + func_to_host_pathlist_result="$func_to_host_path_result"
  42421. + else
  42422. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  42423. + fi
  42424. + fi
  42425. + fi
  42426. + IFS=:
  42427. + done
  42428. + IFS=$func_to_host_pathlist_oldIFS
  42429. + ;;
  42430. + esac
  42431. + if test -z "$func_to_host_pathlist_result" ; then
  42432. + func_error "Could not determine the host path(s) corresponding to"
  42433. + func_error " '$1'"
  42434. + func_error "Continuing, but uninstalled executables may not work."
  42435. + # Fallback. This may break if $1 contains DOS-style drive
  42436. + # specifications. The fix is not to complicate the expression
  42437. + # below, but for the user to provide a working wine installation
  42438. + # with winepath so that path translation in the cross-to-mingw
  42439. + # case works properly.
  42440. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  42441. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  42442. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  42443. + fi
  42444. + # Now, add the leading and trailing path separators back
  42445. + case "$1" in
  42446. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  42447. + ;;
  42448. + esac
  42449. + case "$1" in
  42450. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  42451. + ;;
  42452. + esac
  42453. + ;;
  42454. + esac
  42455. + fi
  42456. +}
  42457. +# end: func_to_host_pathlist
  42458. - case $age in
  42459. - 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]) ;;
  42460. - *)
  42461. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  42462. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  42463. - exit $EXIT_FAILURE
  42464. - ;;
  42465. - esac
  42466. +# func_emit_cwrapperexe_src
  42467. +# emit the source code for a wrapper executable on stdout
  42468. +# Must ONLY be called from within func_mode_link because
  42469. +# it depends on a number of variable set therein.
  42470. +func_emit_cwrapperexe_src ()
  42471. +{
  42472. + cat <<EOF
  42473. - if test "$age" -gt "$current"; then
  42474. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  42475. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  42476. - exit $EXIT_FAILURE
  42477. - fi
  42478. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  42479. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  42480. - # Calculate the version variables.
  42481. - major=
  42482. - versuffix=
  42483. - verstring=
  42484. - case $version_type in
  42485. - none) ;;
  42486. + The $output program cannot be directly executed until all the libtool
  42487. + libraries that it depends on are installed.
  42488. - darwin)
  42489. - # Like Linux, but with the current version available in
  42490. - # verstring for coding it into the library header
  42491. - major=.`expr $current - $age`
  42492. - versuffix="$major.$age.$revision"
  42493. - # Darwin ld doesn't like 0 for these options...
  42494. - minor_current=`expr $current + 1`
  42495. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  42496. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  42497. - ;;
  42498. + This wrapper executable should never be moved out of the build directory.
  42499. + If it is, it will not operate correctly.
  42500. - freebsd-aout)
  42501. - major=".$current"
  42502. - versuffix=".$current.$revision";
  42503. - ;;
  42504. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  42505. + but could eventually absorb all of the scripts functionality and
  42506. + exec $objdir/$outputname directly.
  42507. +*/
  42508. +EOF
  42509. + cat <<"EOF"
  42510. +#include <stdio.h>
  42511. +#include <stdlib.h>
  42512. +#ifdef _MSC_VER
  42513. +# include <direct.h>
  42514. +# include <process.h>
  42515. +# include <io.h>
  42516. +# define setmode _setmode
  42517. +#else
  42518. +# include <unistd.h>
  42519. +# include <stdint.h>
  42520. +# ifdef __CYGWIN__
  42521. +# include <io.h>
  42522. +# define HAVE_SETENV
  42523. +# ifdef __STRICT_ANSI__
  42524. +char *realpath (const char *, char *);
  42525. +int putenv (char *);
  42526. +int setenv (const char *, const char *, int);
  42527. +# endif
  42528. +# endif
  42529. +#endif
  42530. +#include <malloc.h>
  42531. +#include <stdarg.h>
  42532. +#include <assert.h>
  42533. +#include <string.h>
  42534. +#include <ctype.h>
  42535. +#include <errno.h>
  42536. +#include <fcntl.h>
  42537. +#include <sys/stat.h>
  42538. - freebsd-elf)
  42539. - major=".$current"
  42540. - versuffix=".$current";
  42541. - ;;
  42542. +#if defined(PATH_MAX)
  42543. +# define LT_PATHMAX PATH_MAX
  42544. +#elif defined(MAXPATHLEN)
  42545. +# define LT_PATHMAX MAXPATHLEN
  42546. +#else
  42547. +# define LT_PATHMAX 1024
  42548. +#endif
  42549. - irix | nonstopux)
  42550. - if test "X$lt_irix_increment" = "Xno"; then
  42551. - major=`expr $current - $age`
  42552. - else
  42553. - major=`expr $current - $age + 1`
  42554. - fi
  42555. - case $version_type in
  42556. - nonstopux) verstring_prefix=nonstopux ;;
  42557. - *) verstring_prefix=sgi ;;
  42558. - esac
  42559. - verstring="$verstring_prefix$major.$revision"
  42560. +#ifndef S_IXOTH
  42561. +# define S_IXOTH 0
  42562. +#endif
  42563. +#ifndef S_IXGRP
  42564. +# define S_IXGRP 0
  42565. +#endif
  42566. - # Add in all the interfaces that we are compatible with.
  42567. - loop=$revision
  42568. - while test "$loop" -ne 0; do
  42569. - iface=`expr $revision - $loop`
  42570. - loop=`expr $loop - 1`
  42571. - verstring="$verstring_prefix$major.$iface:$verstring"
  42572. - done
  42573. +#ifdef _MSC_VER
  42574. +# define S_IXUSR _S_IEXEC
  42575. +# define stat _stat
  42576. +# ifndef _INTPTR_T_DEFINED
  42577. +# define intptr_t int
  42578. +# endif
  42579. +#endif
  42580. - # Before this point, $major must not contain `.'.
  42581. - major=.$major
  42582. - versuffix="$major.$revision"
  42583. - ;;
  42584. +#ifndef DIR_SEPARATOR
  42585. +# define DIR_SEPARATOR '/'
  42586. +# define PATH_SEPARATOR ':'
  42587. +#endif
  42588. - linux)
  42589. - major=.`expr $current - $age`
  42590. - versuffix="$major.$age.$revision"
  42591. - ;;
  42592. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  42593. + defined (__OS2__)
  42594. +# define HAVE_DOS_BASED_FILE_SYSTEM
  42595. +# define FOPEN_WB "wb"
  42596. +# ifndef DIR_SEPARATOR_2
  42597. +# define DIR_SEPARATOR_2 '\\'
  42598. +# endif
  42599. +# ifndef PATH_SEPARATOR_2
  42600. +# define PATH_SEPARATOR_2 ';'
  42601. +# endif
  42602. +#endif
  42603. - osf)
  42604. - major=.`expr $current - $age`
  42605. - versuffix=".$current.$age.$revision"
  42606. - verstring="$current.$age.$revision"
  42607. +#ifndef DIR_SEPARATOR_2
  42608. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  42609. +#else /* DIR_SEPARATOR_2 */
  42610. +# define IS_DIR_SEPARATOR(ch) \
  42611. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  42612. +#endif /* DIR_SEPARATOR_2 */
  42613. - # Add in all the interfaces that we are compatible with.
  42614. - loop=$age
  42615. - while test "$loop" -ne 0; do
  42616. - iface=`expr $current - $loop`
  42617. - loop=`expr $loop - 1`
  42618. - verstring="$verstring:${iface}.0"
  42619. - done
  42620. +#ifndef PATH_SEPARATOR_2
  42621. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  42622. +#else /* PATH_SEPARATOR_2 */
  42623. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  42624. +#endif /* PATH_SEPARATOR_2 */
  42625. - # Make executables depend on our current version.
  42626. - verstring="$verstring:${current}.0"
  42627. - ;;
  42628. +#ifdef __CYGWIN__
  42629. +# define FOPEN_WB "wb"
  42630. +#endif
  42631. - sunos)
  42632. - major=".$current"
  42633. - versuffix=".$current.$revision"
  42634. - ;;
  42635. +#ifndef FOPEN_WB
  42636. +# define FOPEN_WB "w"
  42637. +#endif
  42638. +#ifndef _O_BINARY
  42639. +# define _O_BINARY 0
  42640. +#endif
  42641. - windows)
  42642. - # Use '-' rather than '.', since we only want one
  42643. - # extension on DOS 8.3 filesystems.
  42644. - major=`expr $current - $age`
  42645. - versuffix="-$major"
  42646. - ;;
  42647. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  42648. +#define XFREE(stale) do { \
  42649. + if (stale) { free ((void *) stale); stale = 0; } \
  42650. +} while (0)
  42651. - *)
  42652. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  42653. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  42654. - exit $EXIT_FAILURE
  42655. - ;;
  42656. - esac
  42657. +#undef LTWRAPPER_DEBUGPRINTF
  42658. +#if defined DEBUGWRAPPER
  42659. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  42660. +static void
  42661. +ltwrapper_debugprintf (const char *fmt, ...)
  42662. +{
  42663. + va_list args;
  42664. + va_start (args, fmt);
  42665. + (void) vfprintf (stderr, fmt, args);
  42666. + va_end (args);
  42667. +}
  42668. +#else
  42669. +# define LTWRAPPER_DEBUGPRINTF(args)
  42670. +#endif
  42671. - # Clear the version info if we defaulted, and they specified a release.
  42672. - if test -z "$vinfo" && test -n "$release"; then
  42673. - major=
  42674. - case $version_type in
  42675. - darwin)
  42676. - # we can't check for "0.0" in archive_cmds due to quoting
  42677. - # problems, so we reset it completely
  42678. - verstring=
  42679. - ;;
  42680. - *)
  42681. - verstring="0.0"
  42682. - ;;
  42683. - esac
  42684. - if test "$need_version" = no; then
  42685. - versuffix=
  42686. - else
  42687. - versuffix=".0.0"
  42688. - fi
  42689. - fi
  42690. +const char *program_name = NULL;
  42691. - # Remove version info from name if versioning should be avoided
  42692. - if test "$avoid_version" = yes && test "$need_version" = no; then
  42693. - major=
  42694. - versuffix=
  42695. - verstring=""
  42696. - fi
  42697. +void *xmalloc (size_t num);
  42698. +char *xstrdup (const char *string);
  42699. +const char *base_name (const char *name);
  42700. +char *find_executable (const char *wrapper);
  42701. +char *chase_symlinks (const char *pathspec);
  42702. +int make_executable (const char *path);
  42703. +int check_executable (const char *path);
  42704. +char *strendzap (char *str, const char *pat);
  42705. +void lt_fatal (const char *message, ...);
  42706. +void lt_setenv (const char *name, const char *value);
  42707. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  42708. +void lt_opt_process_env_set (const char *arg);
  42709. +void lt_opt_process_env_prepend (const char *arg);
  42710. +void lt_opt_process_env_append (const char *arg);
  42711. +int lt_split_name_value (const char *arg, char** name, char** value);
  42712. +void lt_update_exe_path (const char *name, const char *value);
  42713. +void lt_update_lib_path (const char *name, const char *value);
  42714. - # Check to see if the archive will have undefined symbols.
  42715. - if test "$allow_undefined" = yes; then
  42716. - if test "$allow_undefined_flag" = unsupported; then
  42717. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  42718. - build_libtool_libs=no
  42719. - build_old_libs=yes
  42720. - fi
  42721. - else
  42722. - # Don't allow undefined symbols.
  42723. - allow_undefined_flag="$no_undefined_flag"
  42724. - fi
  42725. - fi
  42726. +static const char *script_text_part1 =
  42727. +EOF
  42728. - if test "$mode" != relink; then
  42729. - # Remove our outputs, but don't remove object files since they
  42730. - # may have been created when compiling PIC objects.
  42731. - removelist=
  42732. - tempremovelist=`$echo "$output_objdir/*"`
  42733. - for p in $tempremovelist; do
  42734. - case $p in
  42735. - *.$objext)
  42736. - ;;
  42737. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  42738. - if test "X$precious_files_regex" != "X"; then
  42739. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  42740. - then
  42741. - continue
  42742. - fi
  42743. - fi
  42744. - removelist="$removelist $p"
  42745. - ;;
  42746. - *) ;;
  42747. - esac
  42748. - done
  42749. - if test -n "$removelist"; then
  42750. - $show "${rm}r $removelist"
  42751. - $run ${rm}r $removelist
  42752. - fi
  42753. - fi
  42754. + func_emit_wrapper_part1 yes |
  42755. + $SED -e 's/\([\\"]\)/\\\1/g' \
  42756. + -e 's/^/ "/' -e 's/$/\\n"/'
  42757. + echo ";"
  42758. + cat <<EOF
  42759. - # Now set the variables for building old libraries.
  42760. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  42761. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  42762. +static const char *script_text_part2 =
  42763. +EOF
  42764. + func_emit_wrapper_part2 yes |
  42765. + $SED -e 's/\([\\"]\)/\\\1/g' \
  42766. + -e 's/^/ "/' -e 's/$/\\n"/'
  42767. + echo ";"
  42768. +
  42769. + cat <<EOF
  42770. +const char * MAGIC_EXE = "$magic_exe";
  42771. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  42772. +EOF
  42773. - # Transform .lo files to .o files.
  42774. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  42775. - fi
  42776. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  42777. + func_to_host_pathlist "$temp_rpath"
  42778. + cat <<EOF
  42779. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  42780. +EOF
  42781. + else
  42782. + cat <<"EOF"
  42783. +const char * LIB_PATH_VALUE = "";
  42784. +EOF
  42785. + fi
  42786. - # Eliminate all temporary directories.
  42787. - #for path in $notinst_path; do
  42788. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  42789. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  42790. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  42791. - #done
  42792. + if test -n "$dllsearchpath"; then
  42793. + func_to_host_pathlist "$dllsearchpath:"
  42794. + cat <<EOF
  42795. +const char * EXE_PATH_VARNAME = "PATH";
  42796. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  42797. +EOF
  42798. + else
  42799. + cat <<"EOF"
  42800. +const char * EXE_PATH_VARNAME = "";
  42801. +const char * EXE_PATH_VALUE = "";
  42802. +EOF
  42803. + fi
  42804. - if test -n "$xrpath"; then
  42805. - # If the user specified any rpath flags, then add them.
  42806. - temp_xrpath=
  42807. - for libdir in $xrpath; do
  42808. - temp_xrpath="$temp_xrpath -R$libdir"
  42809. - case "$finalize_rpath " in
  42810. - *" $libdir "*) ;;
  42811. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  42812. - esac
  42813. - done
  42814. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  42815. - dependency_libs="$temp_xrpath $dependency_libs"
  42816. - fi
  42817. - fi
  42818. + if test "$fast_install" = yes; then
  42819. + cat <<EOF
  42820. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  42821. +EOF
  42822. + else
  42823. + cat <<EOF
  42824. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  42825. +EOF
  42826. + fi
  42827. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  42828. - old_dlfiles="$dlfiles"
  42829. - dlfiles=
  42830. - for lib in $old_dlfiles; do
  42831. - case " $dlprefiles $dlfiles " in
  42832. - *" $lib "*) ;;
  42833. - *) dlfiles="$dlfiles $lib" ;;
  42834. - esac
  42835. - done
  42836. - # Make sure dlprefiles contains only unique files
  42837. - old_dlprefiles="$dlprefiles"
  42838. - dlprefiles=
  42839. - for lib in $old_dlprefiles; do
  42840. - case "$dlprefiles " in
  42841. - *" $lib "*) ;;
  42842. - *) dlprefiles="$dlprefiles $lib" ;;
  42843. - esac
  42844. - done
  42845. + cat <<"EOF"
  42846. - if test "$build_libtool_libs" = yes; then
  42847. - if test -n "$rpath"; then
  42848. - case $host in
  42849. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  42850. - # these systems don't actually have a c library (as such)!
  42851. - ;;
  42852. - *-*-rhapsody* | *-*-darwin1.[012])
  42853. - # Rhapsody C library is in the System framework
  42854. - deplibs="$deplibs -framework System"
  42855. - ;;
  42856. - *-*-netbsd*)
  42857. - # Don't link with libc until the a.out ld.so is fixed.
  42858. - ;;
  42859. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  42860. - # Do not include libc due to us having libc/libc_r.
  42861. - ;;
  42862. - *-*-sco3.2v5* | *-*-sco5v6*)
  42863. - # Causes problems with __ctype
  42864. - ;;
  42865. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  42866. - # Compiler inserts libc in the correct place for threads to work
  42867. - ;;
  42868. - *)
  42869. - # Add libc to deplibs on all other systems if necessary.
  42870. - if test "$build_libtool_need_lc" = "yes"; then
  42871. - deplibs="$deplibs -lc"
  42872. - fi
  42873. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  42874. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  42875. +
  42876. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  42877. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  42878. +
  42879. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  42880. +
  42881. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  42882. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  42883. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  42884. +
  42885. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  42886. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  42887. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  42888. +
  42889. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  42890. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  42891. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  42892. +
  42893. +int
  42894. +main (int argc, char *argv[])
  42895. +{
  42896. + char **newargz;
  42897. + int newargc;
  42898. + char *tmp_pathspec;
  42899. + char *actual_cwrapper_path;
  42900. + char *actual_cwrapper_name;
  42901. + char *target_name;
  42902. + char *lt_argv_zero;
  42903. + intptr_t rval = 127;
  42904. +
  42905. + int i;
  42906. +
  42907. + program_name = (char *) xstrdup (base_name (argv[0]));
  42908. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  42909. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  42910. +
  42911. + /* very simple arg parsing; don't want to rely on getopt */
  42912. + for (i = 1; i < argc; i++)
  42913. + {
  42914. + if (strcmp (argv[i], dumpscript_opt) == 0)
  42915. + {
  42916. +EOF
  42917. + case "$host" in
  42918. + *mingw* | *cygwin* )
  42919. + # make stdout use "unix" line endings
  42920. + echo " setmode(1,_O_BINARY);"
  42921. + ;;
  42922. + esac
  42923. +
  42924. + cat <<"EOF"
  42925. + printf ("%s", script_text_part1);
  42926. + printf ("%s", script_text_part2);
  42927. + return 0;
  42928. + }
  42929. + }
  42930. +
  42931. + newargz = XMALLOC (char *, argc + 1);
  42932. + tmp_pathspec = find_executable (argv[0]);
  42933. + if (tmp_pathspec == NULL)
  42934. + lt_fatal ("Couldn't find %s", argv[0]);
  42935. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  42936. + tmp_pathspec));
  42937. +
  42938. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  42939. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  42940. + actual_cwrapper_path));
  42941. + XFREE (tmp_pathspec);
  42942. +
  42943. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  42944. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  42945. +
  42946. + /* wrapper name transforms */
  42947. + strendzap (actual_cwrapper_name, ".exe");
  42948. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  42949. + XFREE (actual_cwrapper_name);
  42950. + actual_cwrapper_name = tmp_pathspec;
  42951. + tmp_pathspec = 0;
  42952. +
  42953. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  42954. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  42955. + strendzap (target_name, ".exe");
  42956. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  42957. + XFREE (target_name);
  42958. + target_name = tmp_pathspec;
  42959. + tmp_pathspec = 0;
  42960. +
  42961. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  42962. + target_name));
  42963. +EOF
  42964. +
  42965. + cat <<EOF
  42966. + newargz[0] =
  42967. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  42968. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  42969. + strcpy (newargz[0], actual_cwrapper_path);
  42970. + strcat (newargz[0], "$objdir");
  42971. + strcat (newargz[0], "/");
  42972. +EOF
  42973. +
  42974. + cat <<"EOF"
  42975. + /* stop here, and copy so we don't have to do this twice */
  42976. + tmp_pathspec = xstrdup (newargz[0]);
  42977. +
  42978. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  42979. + strcat (newargz[0], actual_cwrapper_name);
  42980. +
  42981. + /* DO want the lt- prefix here if it exists, so use target_name */
  42982. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  42983. + XFREE (tmp_pathspec);
  42984. + tmp_pathspec = NULL;
  42985. +EOF
  42986. +
  42987. + case $host_os in
  42988. + mingw*)
  42989. + cat <<"EOF"
  42990. + {
  42991. + char* p;
  42992. + while ((p = strchr (newargz[0], '\\')) != NULL)
  42993. + {
  42994. + *p = '/';
  42995. + }
  42996. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  42997. + {
  42998. + *p = '/';
  42999. + }
  43000. + }
  43001. +EOF
  43002. ;;
  43003. - esac
  43004. - fi
  43005. + esac
  43006. +
  43007. + cat <<"EOF"
  43008. + XFREE (target_name);
  43009. + XFREE (actual_cwrapper_path);
  43010. + XFREE (actual_cwrapper_name);
  43011. +
  43012. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  43013. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  43014. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  43015. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  43016. +
  43017. + newargc=0;
  43018. + for (i = 1; i < argc; i++)
  43019. + {
  43020. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  43021. + {
  43022. + if (argv[i][env_set_opt_len] == '=')
  43023. + {
  43024. + const char *p = argv[i] + env_set_opt_len + 1;
  43025. + lt_opt_process_env_set (p);
  43026. + }
  43027. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  43028. + {
  43029. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  43030. + }
  43031. + else
  43032. + lt_fatal ("%s missing required argument", env_set_opt);
  43033. + continue;
  43034. + }
  43035. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  43036. + {
  43037. + if (argv[i][env_prepend_opt_len] == '=')
  43038. + {
  43039. + const char *p = argv[i] + env_prepend_opt_len + 1;
  43040. + lt_opt_process_env_prepend (p);
  43041. + }
  43042. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  43043. + {
  43044. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  43045. + }
  43046. + else
  43047. + lt_fatal ("%s missing required argument", env_prepend_opt);
  43048. + continue;
  43049. + }
  43050. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  43051. + {
  43052. + if (argv[i][env_append_opt_len] == '=')
  43053. + {
  43054. + const char *p = argv[i] + env_append_opt_len + 1;
  43055. + lt_opt_process_env_append (p);
  43056. + }
  43057. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  43058. + {
  43059. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  43060. + }
  43061. + else
  43062. + lt_fatal ("%s missing required argument", env_append_opt);
  43063. + continue;
  43064. + }
  43065. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  43066. + {
  43067. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  43068. + namespace, but it is not one of the ones we know about and
  43069. + have already dealt with, above (inluding dump-script), then
  43070. + report an error. Otherwise, targets might begin to believe
  43071. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  43072. + namespace. The first time any user complains about this, we'll
  43073. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  43074. + or a configure.ac-settable value.
  43075. + */
  43076. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  43077. + ltwrapper_option_prefix, argv[i]);
  43078. + }
  43079. + /* otherwise ... */
  43080. + newargz[++newargc] = xstrdup (argv[i]);
  43081. + }
  43082. + newargz[++newargc] = NULL;
  43083. +
  43084. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  43085. + for (i = 0; i < newargc; i++)
  43086. + {
  43087. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  43088. + }
  43089. - # Transform deplibs into only deplibs that can be linked in shared.
  43090. - name_save=$name
  43091. - libname_save=$libname
  43092. - release_save=$release
  43093. - versuffix_save=$versuffix
  43094. - major_save=$major
  43095. - # I'm not sure if I'm treating the release correctly. I think
  43096. - # release should show up in the -l (ie -lgmp5) so we don't want to
  43097. - # add it in twice. Is that correct?
  43098. - release=""
  43099. - versuffix=""
  43100. - major=""
  43101. - newdeplibs=
  43102. - droppeddeps=no
  43103. - case $deplibs_check_method in
  43104. - pass_all)
  43105. - # Don't check for shared/static. Everything works.
  43106. - # This might be a little naive. We might want to check
  43107. - # whether the library exists or not. But this is on
  43108. - # osf3 & osf4 and I'm not really sure... Just
  43109. - # implementing what was already the behavior.
  43110. - newdeplibs=$deplibs
  43111. - ;;
  43112. - test_compile)
  43113. - # This code stresses the "libraries are programs" paradigm to its
  43114. - # limits. Maybe even breaks it. We compile a program, linking it
  43115. - # against the deplibs as a proxy for the library. Then we can check
  43116. - # whether they linked in statically or dynamically with ldd.
  43117. - $rm conftest.c
  43118. - cat > conftest.c <<EOF
  43119. - int main() { return 0; }
  43120. EOF
  43121. - $rm conftest
  43122. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  43123. - ldd_output=`ldd conftest`
  43124. - for i in $deplibs; do
  43125. - name=`expr $i : '-l\(.*\)'`
  43126. - # If $name is empty we are operating on a -L argument.
  43127. - if test "$name" != "" && test "$name" != "0"; then
  43128. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43129. - case " $predeps $postdeps " in
  43130. - *" $i "*)
  43131. - newdeplibs="$newdeplibs $i"
  43132. - i=""
  43133. - ;;
  43134. - esac
  43135. - fi
  43136. - if test -n "$i" ; then
  43137. - libname=`eval \\$echo \"$libname_spec\"`
  43138. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  43139. - set dummy $deplib_matches
  43140. - deplib_match=$2
  43141. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  43142. - newdeplibs="$newdeplibs $i"
  43143. - else
  43144. - droppeddeps=yes
  43145. - $echo
  43146. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  43147. - $echo "*** I have the capability to make that library automatically link in when"
  43148. - $echo "*** you link to this library. But I can only do this if you have a"
  43149. - $echo "*** shared version of the library, which I believe you do not have"
  43150. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  43151. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  43152. - fi
  43153. - fi
  43154. - else
  43155. - newdeplibs="$newdeplibs $i"
  43156. - fi
  43157. - done
  43158. - else
  43159. - # Error occurred in the first compile. Let's try to salvage
  43160. - # the situation: Compile a separate program for each library.
  43161. - for i in $deplibs; do
  43162. - name=`expr $i : '-l\(.*\)'`
  43163. - # If $name is empty we are operating on a -L argument.
  43164. - if test "$name" != "" && test "$name" != "0"; then
  43165. - $rm conftest
  43166. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  43167. - ldd_output=`ldd conftest`
  43168. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43169. - case " $predeps $postdeps " in
  43170. - *" $i "*)
  43171. - newdeplibs="$newdeplibs $i"
  43172. - i=""
  43173. - ;;
  43174. - esac
  43175. - fi
  43176. - if test -n "$i" ; then
  43177. - libname=`eval \\$echo \"$libname_spec\"`
  43178. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  43179. - set dummy $deplib_matches
  43180. - deplib_match=$2
  43181. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  43182. - newdeplibs="$newdeplibs $i"
  43183. - else
  43184. - droppeddeps=yes
  43185. - $echo
  43186. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  43187. - $echo "*** I have the capability to make that library automatically link in when"
  43188. - $echo "*** you link to this library. But I can only do this if you have a"
  43189. - $echo "*** shared version of the library, which you do not appear to have"
  43190. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  43191. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  43192. - fi
  43193. - fi
  43194. - else
  43195. - droppeddeps=yes
  43196. - $echo
  43197. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  43198. - $echo "*** make it link in! You will probably need to install it or some"
  43199. - $echo "*** library that it depends on before this library will be fully"
  43200. - $echo "*** functional. Installing it before continuing would be even better."
  43201. - fi
  43202. - else
  43203. - newdeplibs="$newdeplibs $i"
  43204. - fi
  43205. - done
  43206. - fi
  43207. - ;;
  43208. - file_magic*)
  43209. - set dummy $deplibs_check_method
  43210. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  43211. - for a_deplib in $deplibs; do
  43212. - name=`expr $a_deplib : '-l\(.*\)'`
  43213. - # If $name is empty we are operating on a -L argument.
  43214. - if test "$name" != "" && test "$name" != "0"; then
  43215. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43216. - case " $predeps $postdeps " in
  43217. - *" $a_deplib "*)
  43218. - newdeplibs="$newdeplibs $a_deplib"
  43219. - a_deplib=""
  43220. - ;;
  43221. - esac
  43222. - fi
  43223. - if test -n "$a_deplib" ; then
  43224. - libname=`eval \\$echo \"$libname_spec\"`
  43225. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  43226. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  43227. - for potent_lib in $potential_libs; do
  43228. - # Follow soft links.
  43229. - if ls -lLd "$potent_lib" 2>/dev/null \
  43230. - | grep " -> " >/dev/null; then
  43231. - continue
  43232. - fi
  43233. - # The statement above tries to avoid entering an
  43234. - # endless loop below, in case of cyclic links.
  43235. - # We might still enter an endless loop, since a link
  43236. - # loop can be closed while we follow links,
  43237. - # but so what?
  43238. - potlib="$potent_lib"
  43239. - while test -h "$potlib" 2>/dev/null; do
  43240. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  43241. - case $potliblink in
  43242. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  43243. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  43244. - esac
  43245. - done
  43246. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  43247. - | ${SED} 10q \
  43248. - | $EGREP "$file_magic_regex" > /dev/null; then
  43249. - newdeplibs="$newdeplibs $a_deplib"
  43250. - a_deplib=""
  43251. - break 2
  43252. - fi
  43253. - done
  43254. - done
  43255. - fi
  43256. - if test -n "$a_deplib" ; then
  43257. - droppeddeps=yes
  43258. - $echo
  43259. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  43260. - $echo "*** I have the capability to make that library automatically link in when"
  43261. - $echo "*** you link to this library. But I can only do this if you have a"
  43262. - $echo "*** shared version of the library, which you do not appear to have"
  43263. - $echo "*** because I did check the linker path looking for a file starting"
  43264. - if test -z "$potlib" ; then
  43265. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  43266. - else
  43267. - $echo "*** with $libname and none of the candidates passed a file format test"
  43268. - $echo "*** using a file magic. Last file checked: $potlib"
  43269. - fi
  43270. - fi
  43271. - else
  43272. - # Add a -L argument.
  43273. - newdeplibs="$newdeplibs $a_deplib"
  43274. - fi
  43275. - done # Gone through all deplibs.
  43276. - ;;
  43277. - match_pattern*)
  43278. - set dummy $deplibs_check_method
  43279. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  43280. - for a_deplib in $deplibs; do
  43281. - name=`expr $a_deplib : '-l\(.*\)'`
  43282. - # If $name is empty we are operating on a -L argument.
  43283. - if test -n "$name" && test "$name" != "0"; then
  43284. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43285. - case " $predeps $postdeps " in
  43286. - *" $a_deplib "*)
  43287. - newdeplibs="$newdeplibs $a_deplib"
  43288. - a_deplib=""
  43289. - ;;
  43290. - esac
  43291. - fi
  43292. - if test -n "$a_deplib" ; then
  43293. - libname=`eval \\$echo \"$libname_spec\"`
  43294. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  43295. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  43296. - for potent_lib in $potential_libs; do
  43297. - potlib="$potent_lib" # see symlink-check above in file_magic test
  43298. - if eval $echo \"$potent_lib\" 2>/dev/null \
  43299. - | ${SED} 10q \
  43300. - | $EGREP "$match_pattern_regex" > /dev/null; then
  43301. - newdeplibs="$newdeplibs $a_deplib"
  43302. - a_deplib=""
  43303. - break 2
  43304. - fi
  43305. - done
  43306. - done
  43307. - fi
  43308. - if test -n "$a_deplib" ; then
  43309. - droppeddeps=yes
  43310. - $echo
  43311. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  43312. - $echo "*** I have the capability to make that library automatically link in when"
  43313. - $echo "*** you link to this library. But I can only do this if you have a"
  43314. - $echo "*** shared version of the library, which you do not appear to have"
  43315. - $echo "*** because I did check the linker path looking for a file starting"
  43316. - if test -z "$potlib" ; then
  43317. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  43318. - else
  43319. - $echo "*** with $libname and none of the candidates passed a file format test"
  43320. - $echo "*** using a regex pattern. Last file checked: $potlib"
  43321. - fi
  43322. - fi
  43323. - else
  43324. - # Add a -L argument.
  43325. - newdeplibs="$newdeplibs $a_deplib"
  43326. - fi
  43327. - done # Gone through all deplibs.
  43328. - ;;
  43329. - none | unknown | *)
  43330. - newdeplibs=""
  43331. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  43332. - -e 's/ -[LR][^ ]*//g'`
  43333. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  43334. - for i in $predeps $postdeps ; do
  43335. - # can't use Xsed below, because $i might contain '/'
  43336. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  43337. - done
  43338. - fi
  43339. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  43340. - | grep . >/dev/null; then
  43341. - $echo
  43342. - if test "X$deplibs_check_method" = "Xnone"; then
  43343. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  43344. - else
  43345. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  43346. - fi
  43347. - $echo "*** All declared inter-library dependencies are being dropped."
  43348. - droppeddeps=yes
  43349. - fi
  43350. - ;;
  43351. - esac
  43352. - versuffix=$versuffix_save
  43353. - major=$major_save
  43354. - release=$release_save
  43355. - libname=$libname_save
  43356. - name=$name_save
  43357. - case $host in
  43358. - *-*-rhapsody* | *-*-darwin1.[012])
  43359. - # On Rhapsody replace the C library is the System framework
  43360. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  43361. - ;;
  43362. - esac
  43363. + case $host_os in
  43364. + mingw*)
  43365. + cat <<"EOF"
  43366. + /* execv doesn't actually work on mingw as expected on unix */
  43367. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  43368. + if (rval == -1)
  43369. + {
  43370. + /* failed to start process */
  43371. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  43372. + return 127;
  43373. + }
  43374. + return rval;
  43375. +EOF
  43376. + ;;
  43377. + *)
  43378. + cat <<"EOF"
  43379. + execv (lt_argv_zero, newargz);
  43380. + return rval; /* =127, but avoids unused variable warning */
  43381. +EOF
  43382. + ;;
  43383. + esac
  43384. - if test "$droppeddeps" = yes; then
  43385. - if test "$module" = yes; then
  43386. - $echo
  43387. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  43388. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  43389. - $echo "*** a static module, that should work as long as the dlopening"
  43390. - $echo "*** application is linked with the -dlopen flag."
  43391. - if test -z "$global_symbol_pipe"; then
  43392. - $echo
  43393. - $echo "*** However, this would only work if libtool was able to extract symbol"
  43394. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  43395. - $echo "*** not find such a program. So, this module is probably useless."
  43396. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  43397. - fi
  43398. - if test "$build_old_libs" = no; then
  43399. - oldlibs="$output_objdir/$libname.$libext"
  43400. - build_libtool_libs=module
  43401. - build_old_libs=yes
  43402. - else
  43403. - build_libtool_libs=no
  43404. - fi
  43405. - else
  43406. - $echo "*** The inter-library dependencies that have been dropped here will be"
  43407. - $echo "*** automatically added whenever a program is linked with this library"
  43408. - $echo "*** or is declared to -dlopen it."
  43409. + cat <<"EOF"
  43410. +}
  43411. - if test "$allow_undefined" = no; then
  43412. - $echo
  43413. - $echo "*** Since this library must not contain undefined symbols,"
  43414. - $echo "*** because either the platform does not support them or"
  43415. - $echo "*** it was explicitly requested with -no-undefined,"
  43416. - $echo "*** libtool will only create a static version of it."
  43417. - if test "$build_old_libs" = no; then
  43418. - oldlibs="$output_objdir/$libname.$libext"
  43419. - build_libtool_libs=module
  43420. - build_old_libs=yes
  43421. - else
  43422. - build_libtool_libs=no
  43423. - fi
  43424. - fi
  43425. - fi
  43426. - fi
  43427. - # Done checking deplibs!
  43428. - deplibs=$newdeplibs
  43429. - fi
  43430. +void *
  43431. +xmalloc (size_t num)
  43432. +{
  43433. + void *p = (void *) malloc (num);
  43434. + if (!p)
  43435. + lt_fatal ("Memory exhausted");
  43436. + return p;
  43437. +}
  43438. - # move library search paths that coincide with paths to not yet
  43439. - # installed libraries to the beginning of the library search list
  43440. - new_libs=
  43441. - for path in $notinst_path; do
  43442. - case " $new_libs " in
  43443. - *" -L$path/$objdir "*) ;;
  43444. - *)
  43445. - case " $deplibs " in
  43446. - *" -L$path/$objdir "*)
  43447. - new_libs="$new_libs -L$path/$objdir" ;;
  43448. - esac
  43449. - ;;
  43450. - esac
  43451. - done
  43452. - for deplib in $deplibs; do
  43453. - case $deplib in
  43454. - -L*)
  43455. - case " $new_libs " in
  43456. - *" $deplib "*) ;;
  43457. - *) new_libs="$new_libs $deplib" ;;
  43458. - esac
  43459. - ;;
  43460. - *) new_libs="$new_libs $deplib" ;;
  43461. - esac
  43462. - done
  43463. - deplibs="$new_libs"
  43464. +char *
  43465. +xstrdup (const char *string)
  43466. +{
  43467. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  43468. + string) : NULL;
  43469. +}
  43470. +const char *
  43471. +base_name (const char *name)
  43472. +{
  43473. + const char *base;
  43474. - # All the library-specific variables (install_libdir is set above).
  43475. - library_names=
  43476. - old_library=
  43477. - dlname=
  43478. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43479. + /* Skip over the disk name in MSDOS pathnames. */
  43480. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  43481. + name += 2;
  43482. +#endif
  43483. - # Test again, we may have decided not to build it any more
  43484. - if test "$build_libtool_libs" = yes; then
  43485. - if test "$hardcode_into_libs" = yes; then
  43486. - # Hardcode the library paths
  43487. - hardcode_libdirs=
  43488. - dep_rpath=
  43489. - rpath="$finalize_rpath"
  43490. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  43491. - for libdir in $rpath; do
  43492. - if test -n "$hardcode_libdir_flag_spec"; then
  43493. - if test -n "$hardcode_libdir_separator"; then
  43494. - if test -z "$hardcode_libdirs"; then
  43495. - hardcode_libdirs="$libdir"
  43496. - else
  43497. - # Just accumulate the unique libdirs.
  43498. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  43499. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  43500. - ;;
  43501. - *)
  43502. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  43503. - ;;
  43504. - esac
  43505. - fi
  43506. - else
  43507. - eval flag=\"$hardcode_libdir_flag_spec\"
  43508. - dep_rpath="$dep_rpath $flag"
  43509. - fi
  43510. - elif test -n "$runpath_var"; then
  43511. - case "$perm_rpath " in
  43512. - *" $libdir "*) ;;
  43513. - *) perm_rpath="$perm_rpath $libdir" ;;
  43514. - esac
  43515. - fi
  43516. - done
  43517. - # Substitute the hardcoded libdirs into the rpath.
  43518. - if test -n "$hardcode_libdir_separator" &&
  43519. - test -n "$hardcode_libdirs"; then
  43520. - libdir="$hardcode_libdirs"
  43521. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  43522. - case $archive_cmds in
  43523. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  43524. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  43525. - esac
  43526. - else
  43527. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  43528. - fi
  43529. - fi
  43530. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  43531. - # We should set the runpath_var.
  43532. - rpath=
  43533. - for dir in $perm_rpath; do
  43534. - rpath="$rpath$dir:"
  43535. - done
  43536. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  43537. - fi
  43538. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  43539. - fi
  43540. + for (base = name; *name; name++)
  43541. + if (IS_DIR_SEPARATOR (*name))
  43542. + base = name + 1;
  43543. + return base;
  43544. +}
  43545. - shlibpath="$finalize_shlibpath"
  43546. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  43547. - if test -n "$shlibpath"; then
  43548. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  43549. - fi
  43550. +int
  43551. +check_executable (const char *path)
  43552. +{
  43553. + struct stat st;
  43554. - # Get the real and link names of the library.
  43555. - eval shared_ext=\"$shrext_cmds\"
  43556. - eval library_names=\"$library_names_spec\"
  43557. - set dummy $library_names
  43558. - realname="$2"
  43559. - shift; shift
  43560. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  43561. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  43562. + if ((!path) || (!*path))
  43563. + return 0;
  43564. - if test -n "$soname_spec"; then
  43565. - eval soname=\"$soname_spec\"
  43566. - else
  43567. - soname="$realname"
  43568. - fi
  43569. - if test -z "$dlname"; then
  43570. - dlname=$soname
  43571. - fi
  43572. + if ((stat (path, &st) >= 0)
  43573. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  43574. + return 1;
  43575. + else
  43576. + return 0;
  43577. +}
  43578. - lib="$output_objdir/$realname"
  43579. - linknames=
  43580. - for link
  43581. - do
  43582. - linknames="$linknames $link"
  43583. - done
  43584. +int
  43585. +make_executable (const char *path)
  43586. +{
  43587. + int rval = 0;
  43588. + struct stat st;
  43589. - # Use standard objects if they are pic
  43590. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43591. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  43592. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  43593. + if ((!path) || (!*path))
  43594. + return 0;
  43595. - # Prepare the list of exported symbols
  43596. - if test -z "$export_symbols"; then
  43597. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  43598. - $show "generating symbol list for \`$libname.la'"
  43599. - export_symbols="$output_objdir/$libname.exp"
  43600. - $run $rm $export_symbols
  43601. - cmds=$export_symbols_cmds
  43602. - save_ifs="$IFS"; IFS='~'
  43603. - for cmd in $cmds; do
  43604. - IFS="$save_ifs"
  43605. - eval cmd=\"$cmd\"
  43606. - if len=`expr "X$cmd" : ".*"` &&
  43607. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  43608. - $show "$cmd"
  43609. - $run eval "$cmd" || exit $?
  43610. - skipped_export=false
  43611. - else
  43612. - # The command line is too long to execute in one step.
  43613. - $show "using reloadable object file for export list..."
  43614. - skipped_export=:
  43615. - # Break out early, otherwise skipped_export may be
  43616. - # set to false by a later but shorter cmd.
  43617. - break
  43618. - fi
  43619. - done
  43620. - IFS="$save_ifs"
  43621. - if test -n "$export_symbols_regex"; then
  43622. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  43623. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  43624. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  43625. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  43626. - fi
  43627. - fi
  43628. - fi
  43629. + if (stat (path, &st) >= 0)
  43630. + {
  43631. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  43632. + }
  43633. + return rval;
  43634. +}
  43635. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  43636. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  43637. - fi
  43638. +/* Searches for the full path of the wrapper. Returns
  43639. + newly allocated full path name if found, NULL otherwise
  43640. + Does not chase symlinks, even on platforms that support them.
  43641. +*/
  43642. +char *
  43643. +find_executable (const char *wrapper)
  43644. +{
  43645. + int has_slash = 0;
  43646. + const char *p;
  43647. + const char *p_next;
  43648. + /* static buffer for getcwd */
  43649. + char tmp[LT_PATHMAX + 1];
  43650. + int tmp_len;
  43651. + char *concat_name;
  43652. - tmp_deplibs=
  43653. - for test_deplib in $deplibs; do
  43654. - case " $convenience " in
  43655. - *" $test_deplib "*) ;;
  43656. - *)
  43657. - tmp_deplibs="$tmp_deplibs $test_deplib"
  43658. - ;;
  43659. - esac
  43660. - done
  43661. - deplibs="$tmp_deplibs"
  43662. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  43663. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  43664. - if test -n "$convenience"; then
  43665. - if test -n "$whole_archive_flag_spec"; then
  43666. - save_libobjs=$libobjs
  43667. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  43668. - else
  43669. - gentop="$output_objdir/${outputname}x"
  43670. - generated="$generated $gentop"
  43671. + if ((wrapper == NULL) || (*wrapper == '\0'))
  43672. + return NULL;
  43673. - func_extract_archives $gentop $convenience
  43674. - libobjs="$libobjs $func_extract_archives_result"
  43675. - fi
  43676. - fi
  43677. -
  43678. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  43679. - eval flag=\"$thread_safe_flag_spec\"
  43680. - linker_flags="$linker_flags $flag"
  43681. - fi
  43682. + /* Absolute path? */
  43683. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43684. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  43685. + {
  43686. + concat_name = xstrdup (wrapper);
  43687. + if (check_executable (concat_name))
  43688. + return concat_name;
  43689. + XFREE (concat_name);
  43690. + }
  43691. + else
  43692. + {
  43693. +#endif
  43694. + if (IS_DIR_SEPARATOR (wrapper[0]))
  43695. + {
  43696. + concat_name = xstrdup (wrapper);
  43697. + if (check_executable (concat_name))
  43698. + return concat_name;
  43699. + XFREE (concat_name);
  43700. + }
  43701. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43702. + }
  43703. +#endif
  43704. - # Make a backup of the uninstalled library when relinking
  43705. - if test "$mode" = relink; then
  43706. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  43707. - fi
  43708. + for (p = wrapper; *p; p++)
  43709. + if (*p == '/')
  43710. + {
  43711. + has_slash = 1;
  43712. + break;
  43713. + }
  43714. + if (!has_slash)
  43715. + {
  43716. + /* no slashes; search PATH */
  43717. + const char *path = getenv ("PATH");
  43718. + if (path != NULL)
  43719. + {
  43720. + for (p = path; *p; p = p_next)
  43721. + {
  43722. + const char *q;
  43723. + size_t p_len;
  43724. + for (q = p; *q; q++)
  43725. + if (IS_PATH_SEPARATOR (*q))
  43726. + break;
  43727. + p_len = q - p;
  43728. + p_next = (*q == '\0' ? q : q + 1);
  43729. + if (p_len == 0)
  43730. + {
  43731. + /* empty path: current directory */
  43732. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  43733. + lt_fatal ("getcwd failed");
  43734. + tmp_len = strlen (tmp);
  43735. + concat_name =
  43736. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  43737. + memcpy (concat_name, tmp, tmp_len);
  43738. + concat_name[tmp_len] = '/';
  43739. + strcpy (concat_name + tmp_len + 1, wrapper);
  43740. + }
  43741. + else
  43742. + {
  43743. + concat_name =
  43744. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  43745. + memcpy (concat_name, p, p_len);
  43746. + concat_name[p_len] = '/';
  43747. + strcpy (concat_name + p_len + 1, wrapper);
  43748. + }
  43749. + if (check_executable (concat_name))
  43750. + return concat_name;
  43751. + XFREE (concat_name);
  43752. + }
  43753. + }
  43754. + /* not found in PATH; assume curdir */
  43755. + }
  43756. + /* Relative path | not found in path: prepend cwd */
  43757. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  43758. + lt_fatal ("getcwd failed");
  43759. + tmp_len = strlen (tmp);
  43760. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  43761. + memcpy (concat_name, tmp, tmp_len);
  43762. + concat_name[tmp_len] = '/';
  43763. + strcpy (concat_name + tmp_len + 1, wrapper);
  43764. - # Do each of the archive commands.
  43765. - if test "$module" = yes && test -n "$module_cmds" ; then
  43766. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  43767. - eval test_cmds=\"$module_expsym_cmds\"
  43768. - cmds=$module_expsym_cmds
  43769. - else
  43770. - eval test_cmds=\"$module_cmds\"
  43771. - cmds=$module_cmds
  43772. - fi
  43773. - else
  43774. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  43775. - eval test_cmds=\"$archive_expsym_cmds\"
  43776. - cmds=$archive_expsym_cmds
  43777. - else
  43778. - eval test_cmds=\"$archive_cmds\"
  43779. - cmds=$archive_cmds
  43780. - fi
  43781. - fi
  43782. + if (check_executable (concat_name))
  43783. + return concat_name;
  43784. + XFREE (concat_name);
  43785. + return NULL;
  43786. +}
  43787. - if test "X$skipped_export" != "X:" &&
  43788. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  43789. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  43790. - :
  43791. - else
  43792. - # The command line is too long to link in one step, link piecewise.
  43793. - $echo "creating reloadable object files..."
  43794. +char *
  43795. +chase_symlinks (const char *pathspec)
  43796. +{
  43797. +#ifndef S_ISLNK
  43798. + return xstrdup (pathspec);
  43799. +#else
  43800. + char buf[LT_PATHMAX];
  43801. + struct stat s;
  43802. + char *tmp_pathspec = xstrdup (pathspec);
  43803. + char *p;
  43804. + int has_symlinks = 0;
  43805. + while (strlen (tmp_pathspec) && !has_symlinks)
  43806. + {
  43807. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  43808. + tmp_pathspec));
  43809. + if (lstat (tmp_pathspec, &s) == 0)
  43810. + {
  43811. + if (S_ISLNK (s.st_mode) != 0)
  43812. + {
  43813. + has_symlinks = 1;
  43814. + break;
  43815. + }
  43816. - # Save the value of $output and $libobjs because we want to
  43817. - # use them later. If we have whole_archive_flag_spec, we
  43818. - # want to use save_libobjs as it was before
  43819. - # whole_archive_flag_spec was expanded, because we can't
  43820. - # assume the linker understands whole_archive_flag_spec.
  43821. - # This may have to be revisited, in case too many
  43822. - # convenience libraries get linked in and end up exceeding
  43823. - # the spec.
  43824. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  43825. - save_libobjs=$libobjs
  43826. - fi
  43827. - save_output=$output
  43828. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  43829. + /* search backwards for last DIR_SEPARATOR */
  43830. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  43831. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  43832. + p--;
  43833. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  43834. + {
  43835. + /* no more DIR_SEPARATORS left */
  43836. + break;
  43837. + }
  43838. + *p = '\0';
  43839. + }
  43840. + else
  43841. + {
  43842. + char *errstr = strerror (errno);
  43843. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  43844. + }
  43845. + }
  43846. + XFREE (tmp_pathspec);
  43847. - # Clear the reloadable object creation command queue and
  43848. - # initialize k to one.
  43849. - test_cmds=
  43850. - concat_cmds=
  43851. - objlist=
  43852. - delfiles=
  43853. - last_robj=
  43854. - k=1
  43855. - output=$output_objdir/$output_la-${k}.$objext
  43856. - # Loop over the list of objects to be linked.
  43857. - for obj in $save_libobjs
  43858. - do
  43859. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  43860. - if test "X$objlist" = X ||
  43861. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  43862. - test "$len" -le "$max_cmd_len"; }; then
  43863. - objlist="$objlist $obj"
  43864. - else
  43865. - # The command $test_cmds is almost too long, add a
  43866. - # command to the queue.
  43867. - if test "$k" -eq 1 ; then
  43868. - # The first file doesn't have a previous command to add.
  43869. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  43870. - else
  43871. - # All subsequent reloadable object files will link in
  43872. - # the last one created.
  43873. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  43874. - fi
  43875. - last_robj=$output_objdir/$output_la-${k}.$objext
  43876. - k=`expr $k + 1`
  43877. - output=$output_objdir/$output_la-${k}.$objext
  43878. - objlist=$obj
  43879. - len=1
  43880. - fi
  43881. - done
  43882. - # Handle the remaining objects by creating one last
  43883. - # reloadable object file. All subsequent reloadable object
  43884. - # files will link in the last one created.
  43885. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  43886. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  43887. + if (!has_symlinks)
  43888. + {
  43889. + return xstrdup (pathspec);
  43890. + }
  43891. - if ${skipped_export-false}; then
  43892. - $show "generating symbol list for \`$libname.la'"
  43893. - export_symbols="$output_objdir/$libname.exp"
  43894. - $run $rm $export_symbols
  43895. - libobjs=$output
  43896. - # Append the command to create the export file.
  43897. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  43898. - fi
  43899. -
  43900. - # Set up a command to remove the reloadable object files
  43901. - # after they are used.
  43902. - i=0
  43903. - while test "$i" -lt "$k"
  43904. - do
  43905. - i=`expr $i + 1`
  43906. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  43907. - done
  43908. + tmp_pathspec = realpath (pathspec, buf);
  43909. + if (tmp_pathspec == 0)
  43910. + {
  43911. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  43912. + }
  43913. + return xstrdup (tmp_pathspec);
  43914. +#endif
  43915. +}
  43916. - $echo "creating a temporary reloadable object file: $output"
  43917. +char *
  43918. +strendzap (char *str, const char *pat)
  43919. +{
  43920. + size_t len, patlen;
  43921. - # Loop through the commands generated above and execute them.
  43922. - save_ifs="$IFS"; IFS='~'
  43923. - for cmd in $concat_cmds; do
  43924. - IFS="$save_ifs"
  43925. - $show "$cmd"
  43926. - $run eval "$cmd" || exit $?
  43927. - done
  43928. - IFS="$save_ifs"
  43929. + assert (str != NULL);
  43930. + assert (pat != NULL);
  43931. - libobjs=$output
  43932. - # Restore the value of output.
  43933. - output=$save_output
  43934. + len = strlen (str);
  43935. + patlen = strlen (pat);
  43936. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  43937. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  43938. - fi
  43939. - # Expand the library linking commands again to reset the
  43940. - # value of $libobjs for piecewise linking.
  43941. + if (patlen <= len)
  43942. + {
  43943. + str += len - patlen;
  43944. + if (strcmp (str, pat) == 0)
  43945. + *str = '\0';
  43946. + }
  43947. + return str;
  43948. +}
  43949. - # Do each of the archive commands.
  43950. - if test "$module" = yes && test -n "$module_cmds" ; then
  43951. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  43952. - cmds=$module_expsym_cmds
  43953. - else
  43954. - cmds=$module_cmds
  43955. - fi
  43956. - else
  43957. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  43958. - cmds=$archive_expsym_cmds
  43959. - else
  43960. - cmds=$archive_cmds
  43961. - fi
  43962. - fi
  43963. +static void
  43964. +lt_error_core (int exit_status, const char *mode,
  43965. + const char *message, va_list ap)
  43966. +{
  43967. + fprintf (stderr, "%s: %s: ", program_name, mode);
  43968. + vfprintf (stderr, message, ap);
  43969. + fprintf (stderr, ".\n");
  43970. - # Append the command to remove the reloadable object files
  43971. - # to the just-reset $cmds.
  43972. - eval cmds=\"\$cmds~\$rm $delfiles\"
  43973. - fi
  43974. - save_ifs="$IFS"; IFS='~'
  43975. - for cmd in $cmds; do
  43976. - IFS="$save_ifs"
  43977. - eval cmd=\"$cmd\"
  43978. - $show "$cmd"
  43979. - $run eval "$cmd" || {
  43980. - lt_exit=$?
  43981. + if (exit_status >= 0)
  43982. + exit (exit_status);
  43983. +}
  43984. - # Restore the uninstalled library and exit
  43985. - if test "$mode" = relink; then
  43986. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  43987. - fi
  43988. +void
  43989. +lt_fatal (const char *message, ...)
  43990. +{
  43991. + va_list ap;
  43992. + va_start (ap, message);
  43993. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  43994. + va_end (ap);
  43995. +}
  43996. - exit $lt_exit
  43997. - }
  43998. - done
  43999. - IFS="$save_ifs"
  44000. +void
  44001. +lt_setenv (const char *name, const char *value)
  44002. +{
  44003. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  44004. + (name ? name : "<NULL>"),
  44005. + (value ? value : "<NULL>")));
  44006. + {
  44007. +#ifdef HAVE_SETENV
  44008. + /* always make a copy, for consistency with !HAVE_SETENV */
  44009. + char *str = xstrdup (value);
  44010. + setenv (name, str, 1);
  44011. +#else
  44012. + int len = strlen (name) + 1 + strlen (value) + 1;
  44013. + char *str = XMALLOC (char, len);
  44014. + sprintf (str, "%s=%s", name, value);
  44015. + if (putenv (str) != EXIT_SUCCESS)
  44016. + {
  44017. + XFREE (str);
  44018. + }
  44019. +#endif
  44020. + }
  44021. +}
  44022. - # Restore the uninstalled library and exit
  44023. - if test "$mode" = relink; then
  44024. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  44025. +char *
  44026. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  44027. +{
  44028. + char *new_value;
  44029. + if (orig_value && *orig_value)
  44030. + {
  44031. + int orig_value_len = strlen (orig_value);
  44032. + int add_len = strlen (add);
  44033. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  44034. + if (to_end)
  44035. + {
  44036. + strcpy (new_value, orig_value);
  44037. + strcpy (new_value + orig_value_len, add);
  44038. + }
  44039. + else
  44040. + {
  44041. + strcpy (new_value, add);
  44042. + strcpy (new_value + add_len, orig_value);
  44043. + }
  44044. + }
  44045. + else
  44046. + {
  44047. + new_value = xstrdup (add);
  44048. + }
  44049. + return new_value;
  44050. +}
  44051. - if test -n "$convenience"; then
  44052. - if test -z "$whole_archive_flag_spec"; then
  44053. - $show "${rm}r $gentop"
  44054. - $run ${rm}r "$gentop"
  44055. - fi
  44056. - fi
  44057. +int
  44058. +lt_split_name_value (const char *arg, char** name, char** value)
  44059. +{
  44060. + const char *p;
  44061. + int len;
  44062. + if (!arg || !*arg)
  44063. + return 1;
  44064. - exit $EXIT_SUCCESS
  44065. - fi
  44066. + p = strchr (arg, (int)'=');
  44067. - # Create links to the real library.
  44068. - for linkname in $linknames; do
  44069. - if test "$realname" != "$linkname"; then
  44070. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  44071. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  44072. - fi
  44073. - done
  44074. -
  44075. - # If -module or -export-dynamic was specified, set the dlname.
  44076. - if test "$module" = yes || test "$export_dynamic" = yes; then
  44077. - # On all known operating systems, these are identical.
  44078. - dlname="$soname"
  44079. - fi
  44080. - fi
  44081. - ;;
  44082. + if (!p)
  44083. + return 1;
  44084. - obj)
  44085. - case " $deplibs" in
  44086. - *\ -l* | *\ -L*)
  44087. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
  44088. - esac
  44089. + *value = xstrdup (++p);
  44090. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  44091. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  44092. - fi
  44093. + len = strlen (arg) - strlen (*value);
  44094. + *name = XMALLOC (char, len);
  44095. + strncpy (*name, arg, len-1);
  44096. + (*name)[len - 1] = '\0';
  44097. - if test -n "$rpath"; then
  44098. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  44099. - fi
  44100. + return 0;
  44101. +}
  44102. - if test -n "$xrpath"; then
  44103. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  44104. - fi
  44105. +void
  44106. +lt_opt_process_env_set (const char *arg)
  44107. +{
  44108. + char *name = NULL;
  44109. + char *value = NULL;
  44110. - if test -n "$vinfo"; then
  44111. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  44112. - fi
  44113. + if (lt_split_name_value (arg, &name, &value) != 0)
  44114. + {
  44115. + XFREE (name);
  44116. + XFREE (value);
  44117. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  44118. + }
  44119. - if test -n "$release"; then
  44120. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  44121. - fi
  44122. + lt_setenv (name, value);
  44123. + XFREE (name);
  44124. + XFREE (value);
  44125. +}
  44126. - case $output in
  44127. - *.lo)
  44128. - if test -n "$objs$old_deplibs"; then
  44129. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  44130. - exit $EXIT_FAILURE
  44131. - fi
  44132. - libobj="$output"
  44133. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  44134. - ;;
  44135. - *)
  44136. - libobj=
  44137. - obj="$output"
  44138. - ;;
  44139. - esac
  44140. +void
  44141. +lt_opt_process_env_prepend (const char *arg)
  44142. +{
  44143. + char *name = NULL;
  44144. + char *value = NULL;
  44145. + char *new_value = NULL;
  44146. - # Delete the old objects.
  44147. - $run $rm $obj $libobj
  44148. + if (lt_split_name_value (arg, &name, &value) != 0)
  44149. + {
  44150. + XFREE (name);
  44151. + XFREE (value);
  44152. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  44153. + }
  44154. - # Objects from convenience libraries. This assumes
  44155. - # single-version convenience libraries. Whenever we create
  44156. - # different ones for PIC/non-PIC, this we'll have to duplicate
  44157. - # the extraction.
  44158. - reload_conv_objs=
  44159. - gentop=
  44160. - # reload_cmds runs $LD directly, so let us get rid of
  44161. - # -Wl from whole_archive_flag_spec and hope we can get by with
  44162. - # turning comma into space..
  44163. - wl=
  44164. + new_value = lt_extend_str (getenv (name), value, 0);
  44165. + lt_setenv (name, new_value);
  44166. + XFREE (new_value);
  44167. + XFREE (name);
  44168. + XFREE (value);
  44169. +}
  44170. - if test -n "$convenience"; then
  44171. - if test -n "$whole_archive_flag_spec"; then
  44172. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  44173. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  44174. - else
  44175. - gentop="$output_objdir/${obj}x"
  44176. - generated="$generated $gentop"
  44177. +void
  44178. +lt_opt_process_env_append (const char *arg)
  44179. +{
  44180. + char *name = NULL;
  44181. + char *value = NULL;
  44182. + char *new_value = NULL;
  44183. - func_extract_archives $gentop $convenience
  44184. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  44185. - fi
  44186. - fi
  44187. + if (lt_split_name_value (arg, &name, &value) != 0)
  44188. + {
  44189. + XFREE (name);
  44190. + XFREE (value);
  44191. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  44192. + }
  44193. - # Create the old-style object.
  44194. - 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
  44195. + new_value = lt_extend_str (getenv (name), value, 1);
  44196. + lt_setenv (name, new_value);
  44197. + XFREE (new_value);
  44198. + XFREE (name);
  44199. + XFREE (value);
  44200. +}
  44201. - output="$obj"
  44202. - cmds=$reload_cmds
  44203. - save_ifs="$IFS"; IFS='~'
  44204. - for cmd in $cmds; do
  44205. - IFS="$save_ifs"
  44206. - eval cmd=\"$cmd\"
  44207. - $show "$cmd"
  44208. - $run eval "$cmd" || exit $?
  44209. - done
  44210. - IFS="$save_ifs"
  44211. +void
  44212. +lt_update_exe_path (const char *name, const char *value)
  44213. +{
  44214. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  44215. + (name ? name : "<NULL>"),
  44216. + (value ? value : "<NULL>")));
  44217. - # Exit if we aren't doing a library object file.
  44218. - if test -z "$libobj"; then
  44219. - if test -n "$gentop"; then
  44220. - $show "${rm}r $gentop"
  44221. - $run ${rm}r $gentop
  44222. - fi
  44223. + if (name && *name && value && *value)
  44224. + {
  44225. + char *new_value = lt_extend_str (getenv (name), value, 0);
  44226. + /* some systems can't cope with a ':'-terminated path #' */
  44227. + int len = strlen (new_value);
  44228. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  44229. + {
  44230. + new_value[len-1] = '\0';
  44231. + }
  44232. + lt_setenv (name, new_value);
  44233. + XFREE (new_value);
  44234. + }
  44235. +}
  44236. - exit $EXIT_SUCCESS
  44237. - fi
  44238. +void
  44239. +lt_update_lib_path (const char *name, const char *value)
  44240. +{
  44241. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  44242. + (name ? name : "<NULL>"),
  44243. + (value ? value : "<NULL>")));
  44244. - if test "$build_libtool_libs" != yes; then
  44245. - if test -n "$gentop"; then
  44246. - $show "${rm}r $gentop"
  44247. - $run ${rm}r $gentop
  44248. - fi
  44249. + if (name && *name && value && *value)
  44250. + {
  44251. + char *new_value = lt_extend_str (getenv (name), value, 0);
  44252. + lt_setenv (name, new_value);
  44253. + XFREE (new_value);
  44254. + }
  44255. +}
  44256. - # Create an invalid libtool object if no PIC, so that we don't
  44257. - # accidentally link it into a program.
  44258. - # $show "echo timestamp > $libobj"
  44259. - # $run eval "echo timestamp > $libobj" || exit $?
  44260. - exit $EXIT_SUCCESS
  44261. - fi
  44262. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  44263. - # Only do commands if we really have different PIC objects.
  44264. - reload_objs="$libobjs $reload_conv_objs"
  44265. - output="$libobj"
  44266. - cmds=$reload_cmds
  44267. - save_ifs="$IFS"; IFS='~'
  44268. - for cmd in $cmds; do
  44269. - IFS="$save_ifs"
  44270. - eval cmd=\"$cmd\"
  44271. - $show "$cmd"
  44272. - $run eval "$cmd" || exit $?
  44273. - done
  44274. - IFS="$save_ifs"
  44275. - fi
  44276. +EOF
  44277. +}
  44278. +# end: func_emit_cwrapperexe_src
  44279. - if test -n "$gentop"; then
  44280. - $show "${rm}r $gentop"
  44281. - $run ${rm}r $gentop
  44282. - fi
  44283. +# func_mode_link arg...
  44284. +func_mode_link ()
  44285. +{
  44286. + $opt_debug
  44287. + case $host in
  44288. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  44289. + # It is impossible to link a dll without this setting, and
  44290. + # we shouldn't force the makefile maintainer to figure out
  44291. + # which system we are compiling for in order to pass an extra
  44292. + # flag for every libtool invocation.
  44293. + # allow_undefined=no
  44294. - exit $EXIT_SUCCESS
  44295. + # FIXME: Unfortunately, there are problems with the above when trying
  44296. + # to make a dll which has undefined symbols, in which case not
  44297. + # even a static library is built. For now, we need to specify
  44298. + # -no-undefined on the libtool link line when we can be certain
  44299. + # that all symbols are satisfied, otherwise we get a static library.
  44300. + allow_undefined=yes
  44301. ;;
  44302. + *)
  44303. + allow_undefined=yes
  44304. + ;;
  44305. + esac
  44306. + libtool_args=$nonopt
  44307. + base_compile="$nonopt $@"
  44308. + compile_command=$nonopt
  44309. + finalize_command=$nonopt
  44310. - prog)
  44311. - case $host in
  44312. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  44313. - esac
  44314. - if test -n "$vinfo"; then
  44315. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  44316. - fi
  44317. -
  44318. - if test -n "$release"; then
  44319. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  44320. - fi
  44321. + compile_rpath=
  44322. + finalize_rpath=
  44323. + compile_shlibpath=
  44324. + finalize_shlibpath=
  44325. + convenience=
  44326. + old_convenience=
  44327. + deplibs=
  44328. + old_deplibs=
  44329. + compiler_flags=
  44330. + linker_flags=
  44331. + dllsearchpath=
  44332. + lib_search_path=`pwd`
  44333. + inst_prefix_dir=
  44334. + new_inherited_linker_flags=
  44335. - if test "$preload" = yes; then
  44336. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  44337. - test "$dlopen_self_static" = unknown; then
  44338. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  44339. - fi
  44340. - fi
  44341. + avoid_version=no
  44342. + dlfiles=
  44343. + dlprefiles=
  44344. + dlself=no
  44345. + export_dynamic=no
  44346. + export_symbols=
  44347. + export_symbols_regex=
  44348. + generated=
  44349. + libobjs=
  44350. + ltlibs=
  44351. + module=no
  44352. + no_install=no
  44353. + objs=
  44354. + non_pic_objects=
  44355. + precious_files_regex=
  44356. + prefer_static_libs=no
  44357. + preload=no
  44358. + prev=
  44359. + prevarg=
  44360. + release=
  44361. + rpath=
  44362. + xrpath=
  44363. + perm_rpath=
  44364. + temp_rpath=
  44365. + thread_safe=no
  44366. + vinfo=
  44367. + vinfo_number=no
  44368. + weak_libs=
  44369. + single_module="${wl}-single_module"
  44370. + func_infer_tag $base_compile
  44371. - case $host in
  44372. - *-*-rhapsody* | *-*-darwin1.[012])
  44373. - # On Rhapsody replace the C library is the System framework
  44374. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  44375. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  44376. + # We need to know -static, to get the right output filenames.
  44377. + for arg
  44378. + do
  44379. + case $arg in
  44380. + -shared)
  44381. + test "$build_libtool_libs" != yes && \
  44382. + func_fatal_configuration "can not build a shared library"
  44383. + build_old_libs=no
  44384. + break
  44385. + ;;
  44386. + -all-static | -static | -static-libtool-libs)
  44387. + case $arg in
  44388. + -all-static)
  44389. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  44390. + func_warning "complete static linking is impossible in this configuration"
  44391. + fi
  44392. + if test -n "$link_static_flag"; then
  44393. + dlopen_self=$dlopen_self_static
  44394. + fi
  44395. + prefer_static_libs=yes
  44396. + ;;
  44397. + -static)
  44398. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  44399. + dlopen_self=$dlopen_self_static
  44400. + fi
  44401. + prefer_static_libs=built
  44402. + ;;
  44403. + -static-libtool-libs)
  44404. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  44405. + dlopen_self=$dlopen_self_static
  44406. + fi
  44407. + prefer_static_libs=yes
  44408. + ;;
  44409. + esac
  44410. + build_libtool_libs=no
  44411. + build_old_libs=yes
  44412. + break
  44413. ;;
  44414. esac
  44415. + done
  44416. - case $host in
  44417. - *darwin*)
  44418. - # Don't allow lazy linking, it breaks C++ global constructors
  44419. - if test "$tagname" = CXX ; then
  44420. - compile_command="$compile_command ${wl}-bind_at_load"
  44421. - finalize_command="$finalize_command ${wl}-bind_at_load"
  44422. - fi
  44423. - ;;
  44424. - esac
  44425. + # See if our shared archives depend on static archives.
  44426. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  44427. + # Go through the arguments, transforming them on the way.
  44428. + while test "$#" -gt 0; do
  44429. + arg="$1"
  44430. + shift
  44431. + func_quote_for_eval "$arg"
  44432. + qarg=$func_quote_for_eval_unquoted_result
  44433. + func_append libtool_args " $func_quote_for_eval_result"
  44434. - # move library search paths that coincide with paths to not yet
  44435. - # installed libraries to the beginning of the library search list
  44436. - new_libs=
  44437. - for path in $notinst_path; do
  44438. - case " $new_libs " in
  44439. - *" -L$path/$objdir "*) ;;
  44440. - *)
  44441. - case " $compile_deplibs " in
  44442. - *" -L$path/$objdir "*)
  44443. - new_libs="$new_libs -L$path/$objdir" ;;
  44444. - esac
  44445. - ;;
  44446. - esac
  44447. - done
  44448. - for deplib in $compile_deplibs; do
  44449. - case $deplib in
  44450. - -L*)
  44451. - case " $new_libs " in
  44452. - *" $deplib "*) ;;
  44453. - *) new_libs="$new_libs $deplib" ;;
  44454. - esac
  44455. + # If the previous option needs an argument, assign it.
  44456. + if test -n "$prev"; then
  44457. + case $prev in
  44458. + output)
  44459. + func_append compile_command " @OUTPUT@"
  44460. + func_append finalize_command " @OUTPUT@"
  44461. ;;
  44462. - *) new_libs="$new_libs $deplib" ;;
  44463. esac
  44464. - done
  44465. - compile_deplibs="$new_libs"
  44466. -
  44467. - compile_command="$compile_command $compile_deplibs"
  44468. - finalize_command="$finalize_command $finalize_deplibs"
  44469. -
  44470. - if test -n "$rpath$xrpath"; then
  44471. - # If the user specified any rpath flags, then add them.
  44472. - for libdir in $rpath $xrpath; do
  44473. - # This is the magic to use -rpath.
  44474. - case "$finalize_rpath " in
  44475. - *" $libdir "*) ;;
  44476. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  44477. - esac
  44478. - done
  44479. - fi
  44480. -
  44481. - # Now hardcode the library paths
  44482. - rpath=
  44483. - hardcode_libdirs=
  44484. - for libdir in $compile_rpath $finalize_rpath; do
  44485. - if test -n "$hardcode_libdir_flag_spec"; then
  44486. - if test -n "$hardcode_libdir_separator"; then
  44487. - if test -z "$hardcode_libdirs"; then
  44488. - hardcode_libdirs="$libdir"
  44489. + case $prev in
  44490. + dlfiles|dlprefiles)
  44491. + if test "$preload" = no; then
  44492. + # Add the symbol object into the linking commands.
  44493. + func_append compile_command " @SYMFILE@"
  44494. + func_append finalize_command " @SYMFILE@"
  44495. + preload=yes
  44496. + fi
  44497. + case $arg in
  44498. + *.la | *.lo) ;; # We handle these cases below.
  44499. + force)
  44500. + if test "$dlself" = no; then
  44501. + dlself=needless
  44502. + export_dynamic=yes
  44503. + fi
  44504. + prev=
  44505. + continue
  44506. + ;;
  44507. + self)
  44508. + if test "$prev" = dlprefiles; then
  44509. + dlself=yes
  44510. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  44511. + dlself=yes
  44512. else
  44513. - # Just accumulate the unique libdirs.
  44514. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  44515. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  44516. - ;;
  44517. - *)
  44518. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  44519. - ;;
  44520. - esac
  44521. + dlself=needless
  44522. + export_dynamic=yes
  44523. fi
  44524. - else
  44525. - eval flag=\"$hardcode_libdir_flag_spec\"
  44526. - rpath="$rpath $flag"
  44527. - fi
  44528. - elif test -n "$runpath_var"; then
  44529. - case "$perm_rpath " in
  44530. - *" $libdir "*) ;;
  44531. - *) perm_rpath="$perm_rpath $libdir" ;;
  44532. - esac
  44533. - fi
  44534. - case $host in
  44535. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  44536. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  44537. - case :$dllsearchpath: in
  44538. - *":$libdir:"*) ;;
  44539. - *) dllsearchpath="$dllsearchpath:$libdir";;
  44540. - esac
  44541. - case :$dllsearchpath: in
  44542. - *":$testbindir:"*) ;;
  44543. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  44544. + prev=
  44545. + continue
  44546. + ;;
  44547. + *)
  44548. + if test "$prev" = dlfiles; then
  44549. + dlfiles="$dlfiles $arg"
  44550. + else
  44551. + dlprefiles="$dlprefiles $arg"
  44552. + fi
  44553. + prev=
  44554. + continue
  44555. + ;;
  44556. esac
  44557. ;;
  44558. - esac
  44559. - done
  44560. - # Substitute the hardcoded libdirs into the rpath.
  44561. - if test -n "$hardcode_libdir_separator" &&
  44562. - test -n "$hardcode_libdirs"; then
  44563. - libdir="$hardcode_libdirs"
  44564. - eval rpath=\" $hardcode_libdir_flag_spec\"
  44565. - fi
  44566. - compile_rpath="$rpath"
  44567. -
  44568. - rpath=
  44569. - hardcode_libdirs=
  44570. - for libdir in $finalize_rpath; do
  44571. - if test -n "$hardcode_libdir_flag_spec"; then
  44572. - if test -n "$hardcode_libdir_separator"; then
  44573. - if test -z "$hardcode_libdirs"; then
  44574. - hardcode_libdirs="$libdir"
  44575. - else
  44576. - # Just accumulate the unique libdirs.
  44577. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  44578. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  44579. - ;;
  44580. - *)
  44581. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  44582. - ;;
  44583. + expsyms)
  44584. + export_symbols="$arg"
  44585. + test -f "$arg" \
  44586. + || func_fatal_error "symbol file \`$arg' does not exist"
  44587. + prev=
  44588. + continue
  44589. + ;;
  44590. + expsyms_regex)
  44591. + export_symbols_regex="$arg"
  44592. + prev=
  44593. + continue
  44594. + ;;
  44595. + framework)
  44596. + case $host in
  44597. + *-*-darwin*)
  44598. + case "$deplibs " in
  44599. + *" $qarg.ltframework "*) ;;
  44600. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  44601. + ;;
  44602. esac
  44603. - fi
  44604. - else
  44605. - eval flag=\"$hardcode_libdir_flag_spec\"
  44606. - rpath="$rpath $flag"
  44607. - fi
  44608. - elif test -n "$runpath_var"; then
  44609. - case "$finalize_perm_rpath " in
  44610. - *" $libdir "*) ;;
  44611. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  44612. + ;;
  44613. esac
  44614. - fi
  44615. - done
  44616. - # Substitute the hardcoded libdirs into the rpath.
  44617. - if test -n "$hardcode_libdir_separator" &&
  44618. - test -n "$hardcode_libdirs"; then
  44619. - libdir="$hardcode_libdirs"
  44620. - eval rpath=\" $hardcode_libdir_flag_spec\"
  44621. - fi
  44622. - finalize_rpath="$rpath"
  44623. -
  44624. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  44625. - # Transform all the library objects into standard objects.
  44626. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  44627. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  44628. - fi
  44629. + prev=
  44630. + continue
  44631. + ;;
  44632. + inst_prefix)
  44633. + inst_prefix_dir="$arg"
  44634. + prev=
  44635. + continue
  44636. + ;;
  44637. + objectlist)
  44638. + if test -f "$arg"; then
  44639. + save_arg=$arg
  44640. + moreargs=
  44641. + for fil in `cat "$save_arg"`
  44642. + do
  44643. +# moreargs="$moreargs $fil"
  44644. + arg=$fil
  44645. + # A libtool-controlled object.
  44646. - dlsyms=
  44647. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  44648. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  44649. - dlsyms="${outputname}S.c"
  44650. - else
  44651. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  44652. - fi
  44653. - fi
  44654. + # Check to see that this really is a libtool object.
  44655. + if func_lalib_unsafe_p "$arg"; then
  44656. + pic_object=
  44657. + non_pic_object=
  44658. - if test -n "$dlsyms"; then
  44659. - case $dlsyms in
  44660. - "") ;;
  44661. - *.c)
  44662. - # Discover the nlist of each of the dlfiles.
  44663. - nlist="$output_objdir/${outputname}.nm"
  44664. + # Read the .lo file
  44665. + func_source "$arg"
  44666. - $show "$rm $nlist ${nlist}S ${nlist}T"
  44667. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  44668. + if test -z "$pic_object" ||
  44669. + test -z "$non_pic_object" ||
  44670. + test "$pic_object" = none &&
  44671. + test "$non_pic_object" = none; then
  44672. + func_fatal_error "cannot find name of object for \`$arg'"
  44673. + fi
  44674. - # Parse the name list into a source file.
  44675. - $show "creating $output_objdir/$dlsyms"
  44676. + # Extract subdirectory from the argument.
  44677. + func_dirname "$arg" "/" ""
  44678. + xdir="$func_dirname_result"
  44679. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  44680. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  44681. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  44682. + if test "$pic_object" != none; then
  44683. + # Prepend the subdirectory the object is found in.
  44684. + pic_object="$xdir$pic_object"
  44685. -#ifdef __cplusplus
  44686. -extern \"C\" {
  44687. -#endif
  44688. + if test "$prev" = dlfiles; then
  44689. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44690. + dlfiles="$dlfiles $pic_object"
  44691. + prev=
  44692. + continue
  44693. + else
  44694. + # If libtool objects are unsupported, then we need to preload.
  44695. + prev=dlprefiles
  44696. + fi
  44697. + fi
  44698. -/* Prevent the only kind of declaration conflicts we can make. */
  44699. -#define lt_preloaded_symbols some_other_symbol
  44700. + # CHECK ME: I think I busted this. -Ossama
  44701. + if test "$prev" = dlprefiles; then
  44702. + # Preload the old-style object.
  44703. + dlprefiles="$dlprefiles $pic_object"
  44704. + prev=
  44705. + fi
  44706. -/* External symbol declarations for the compiler. */\
  44707. -"
  44708. + # A PIC object.
  44709. + func_append libobjs " $pic_object"
  44710. + arg="$pic_object"
  44711. + fi
  44712. - if test "$dlself" = yes; then
  44713. - $show "generating symbol list for \`$output'"
  44714. + # Non-PIC object.
  44715. + if test "$non_pic_object" != none; then
  44716. + # Prepend the subdirectory the object is found in.
  44717. + non_pic_object="$xdir$non_pic_object"
  44718. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  44719. + # A standard non-PIC object
  44720. + func_append non_pic_objects " $non_pic_object"
  44721. + if test -z "$pic_object" || test "$pic_object" = none ; then
  44722. + arg="$non_pic_object"
  44723. + fi
  44724. + else
  44725. + # If the PIC object exists, use it instead.
  44726. + # $xdir was prepended to $pic_object above.
  44727. + non_pic_object="$pic_object"
  44728. + func_append non_pic_objects " $non_pic_object"
  44729. + fi
  44730. + else
  44731. + # Only an error if not doing a dry-run.
  44732. + if $opt_dry_run; then
  44733. + # Extract subdirectory from the argument.
  44734. + func_dirname "$arg" "/" ""
  44735. + xdir="$func_dirname_result"
  44736. - # Add our own program objects to the symbol list.
  44737. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  44738. - for arg in $progfiles; do
  44739. - $show "extracting global C symbols from \`$arg'"
  44740. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  44741. + func_lo2o "$arg"
  44742. + pic_object=$xdir$objdir/$func_lo2o_result
  44743. + non_pic_object=$xdir$func_lo2o_result
  44744. + func_append libobjs " $pic_object"
  44745. + func_append non_pic_objects " $non_pic_object"
  44746. + else
  44747. + func_fatal_error "\`$arg' is not a valid libtool object"
  44748. + fi
  44749. + fi
  44750. done
  44751. -
  44752. - if test -n "$exclude_expsyms"; then
  44753. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  44754. - $run eval '$mv "$nlist"T "$nlist"'
  44755. - fi
  44756. -
  44757. - if test -n "$export_symbols_regex"; then
  44758. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  44759. - $run eval '$mv "$nlist"T "$nlist"'
  44760. - fi
  44761. -
  44762. - # Prepare the list of exported symbols
  44763. - if test -z "$export_symbols"; then
  44764. - export_symbols="$output_objdir/$outputname.exp"
  44765. - $run $rm $export_symbols
  44766. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  44767. - case $host in
  44768. - *cygwin* | *mingw* )
  44769. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  44770. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  44771. - ;;
  44772. - esac
  44773. - else
  44774. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  44775. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  44776. - $run eval 'mv "$nlist"T "$nlist"'
  44777. - case $host in
  44778. - *cygwin* | *mingw* )
  44779. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  44780. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  44781. - ;;
  44782. - esac
  44783. - fi
  44784. + else
  44785. + func_fatal_error "link input file \`$arg' does not exist"
  44786. fi
  44787. -
  44788. - for arg in $dlprefiles; do
  44789. - $show "extracting global C symbols from \`$arg'"
  44790. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  44791. - $run eval '$echo ": $name " >> "$nlist"'
  44792. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  44793. - done
  44794. -
  44795. - if test -z "$run"; then
  44796. - # Make sure we have at least an empty file.
  44797. - test -f "$nlist" || : > "$nlist"
  44798. -
  44799. - if test -n "$exclude_expsyms"; then
  44800. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  44801. - $mv "$nlist"T "$nlist"
  44802. - fi
  44803. -
  44804. - # Try sorting and uniquifying the output.
  44805. - if grep -v "^: " < "$nlist" |
  44806. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  44807. - sort -k 3
  44808. - else
  44809. - sort +2
  44810. - fi |
  44811. - uniq > "$nlist"S; then
  44812. - :
  44813. - else
  44814. - grep -v "^: " < "$nlist" > "$nlist"S
  44815. - fi
  44816. -
  44817. - if test -f "$nlist"S; then
  44818. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  44819. - else
  44820. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  44821. - fi
  44822. -
  44823. - $echo >> "$output_objdir/$dlsyms" "\
  44824. -
  44825. -#undef lt_preloaded_symbols
  44826. -
  44827. -#if defined (__STDC__) && __STDC__
  44828. -# define lt_ptr void *
  44829. -#else
  44830. -# define lt_ptr char *
  44831. -# define const
  44832. -#endif
  44833. -
  44834. -/* The mapping between symbol names and symbols. */
  44835. -"
  44836. -
  44837. - case $host in
  44838. - *cygwin* | *mingw* )
  44839. - $echo >> "$output_objdir/$dlsyms" "\
  44840. -/* DATA imports from DLLs on WIN32 can't be const, because
  44841. - runtime relocations are performed -- see ld's documentation
  44842. - on pseudo-relocs */
  44843. -struct {
  44844. -"
  44845. - ;;
  44846. - * )
  44847. - $echo >> "$output_objdir/$dlsyms" "\
  44848. -const struct {
  44849. -"
  44850. - ;;
  44851. - esac
  44852. -
  44853. -
  44854. - $echo >> "$output_objdir/$dlsyms" "\
  44855. - const char *name;
  44856. - lt_ptr address;
  44857. -}
  44858. -lt_preloaded_symbols[] =
  44859. -{\
  44860. -"
  44861. -
  44862. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  44863. -
  44864. - $echo >> "$output_objdir/$dlsyms" "\
  44865. - {0, (lt_ptr) 0}
  44866. -};
  44867. -
  44868. -/* This works around a problem in FreeBSD linker */
  44869. -#ifdef FREEBSD_WORKAROUND
  44870. -static const void *lt_preloaded_setup() {
  44871. - return lt_preloaded_symbols;
  44872. -}
  44873. -#endif
  44874. -
  44875. -#ifdef __cplusplus
  44876. -}
  44877. -#endif\
  44878. -"
  44879. - fi
  44880. -
  44881. - pic_flag_for_symtable=
  44882. - case $host in
  44883. - # compiling the symbol table file with pic_flag works around
  44884. - # a FreeBSD bug that causes programs to crash when -lm is
  44885. - # linked before any other PIC object. But we must not use
  44886. - # pic_flag when linking with -static. The problem exists in
  44887. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  44888. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  44889. - case "$compile_command " in
  44890. - *" -static "*) ;;
  44891. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  44892. - esac;;
  44893. - *-*-hpux*)
  44894. - case "$compile_command " in
  44895. - *" -static "*) ;;
  44896. - *) pic_flag_for_symtable=" $pic_flag";;
  44897. - esac
  44898. + arg=$save_arg
  44899. + prev=
  44900. + continue
  44901. + ;;
  44902. + precious_regex)
  44903. + precious_files_regex="$arg"
  44904. + prev=
  44905. + continue
  44906. + ;;
  44907. + release)
  44908. + release="-$arg"
  44909. + prev=
  44910. + continue
  44911. + ;;
  44912. + rpath | xrpath)
  44913. + # We need an absolute path.
  44914. + case $arg in
  44915. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  44916. + *)
  44917. + func_fatal_error "only absolute run-paths are allowed"
  44918. + ;;
  44919. esac
  44920. -
  44921. - # Now compile the dynamic symbol file.
  44922. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  44923. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  44924. -
  44925. - # Clean up the generated files.
  44926. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  44927. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  44928. -
  44929. - # Transform the symbol file into the correct name.
  44930. - case $host in
  44931. - *cygwin* | *mingw* )
  44932. - if test -f "$output_objdir/${outputname}.def" ; then
  44933. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44934. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44935. - else
  44936. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44937. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44938. - fi
  44939. - ;;
  44940. - * )
  44941. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44942. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  44943. - ;;
  44944. - esac
  44945. + if test "$prev" = rpath; then
  44946. + case "$rpath " in
  44947. + *" $arg "*) ;;
  44948. + *) rpath="$rpath $arg" ;;
  44949. + esac
  44950. + else
  44951. + case "$xrpath " in
  44952. + *" $arg "*) ;;
  44953. + *) xrpath="$xrpath $arg" ;;
  44954. + esac
  44955. + fi
  44956. + prev=
  44957. + continue
  44958. + ;;
  44959. + shrext)
  44960. + shrext_cmds="$arg"
  44961. + prev=
  44962. + continue
  44963. + ;;
  44964. + weak)
  44965. + weak_libs="$weak_libs $arg"
  44966. + prev=
  44967. + continue
  44968. + ;;
  44969. + xcclinker)
  44970. + linker_flags="$linker_flags $qarg"
  44971. + compiler_flags="$compiler_flags $qarg"
  44972. + prev=
  44973. + func_append compile_command " $qarg"
  44974. + func_append finalize_command " $qarg"
  44975. + continue
  44976. + ;;
  44977. + xcompiler)
  44978. + compiler_flags="$compiler_flags $qarg"
  44979. + prev=
  44980. + func_append compile_command " $qarg"
  44981. + func_append finalize_command " $qarg"
  44982. + continue
  44983. + ;;
  44984. + xlinker)
  44985. + linker_flags="$linker_flags $qarg"
  44986. + compiler_flags="$compiler_flags $wl$qarg"
  44987. + prev=
  44988. + func_append compile_command " $wl$qarg"
  44989. + func_append finalize_command " $wl$qarg"
  44990. + continue
  44991. ;;
  44992. *)
  44993. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  44994. - exit $EXIT_FAILURE
  44995. + eval "$prev=\"\$arg\""
  44996. + prev=
  44997. + continue
  44998. ;;
  44999. esac
  45000. - else
  45001. - # We keep going just in case the user didn't refer to
  45002. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  45003. - # really was required.
  45004. -
  45005. - # Nullify the symbol file.
  45006. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  45007. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  45008. - fi
  45009. -
  45010. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  45011. - # Replace the output file specification.
  45012. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  45013. - link_command="$compile_command$compile_rpath"
  45014. + fi # test -n "$prev"
  45015. - # We have no uninstalled library dependencies, so finalize right now.
  45016. - $show "$link_command"
  45017. - $run eval "$link_command"
  45018. - exit_status=$?
  45019. + prevarg="$arg"
  45020. - # Delete the generated files.
  45021. - if test -n "$dlsyms"; then
  45022. - $show "$rm $output_objdir/${outputname}S.${objext}"
  45023. - $run $rm "$output_objdir/${outputname}S.${objext}"
  45024. + case $arg in
  45025. + -all-static)
  45026. + if test -n "$link_static_flag"; then
  45027. + # See comment for -static flag below, for more details.
  45028. + func_append compile_command " $link_static_flag"
  45029. + func_append finalize_command " $link_static_flag"
  45030. fi
  45031. + continue
  45032. + ;;
  45033. - exit $exit_status
  45034. - fi
  45035. -
  45036. - if test -n "$shlibpath_var"; then
  45037. - # We should set the shlibpath_var
  45038. - rpath=
  45039. - for dir in $temp_rpath; do
  45040. - case $dir in
  45041. - [\\/]* | [A-Za-z]:[\\/]*)
  45042. - # Absolute path.
  45043. - rpath="$rpath$dir:"
  45044. - ;;
  45045. - *)
  45046. - # Relative path: add a thisdir entry.
  45047. - rpath="$rpath\$thisdir/$dir:"
  45048. - ;;
  45049. - esac
  45050. - done
  45051. - temp_rpath="$rpath"
  45052. - fi
  45053. + -allow-undefined)
  45054. + # FIXME: remove this flag sometime in the future.
  45055. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  45056. + ;;
  45057. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  45058. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  45059. - fi
  45060. - if test -n "$finalize_shlibpath"; then
  45061. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  45062. - fi
  45063. + -avoid-version)
  45064. + avoid_version=yes
  45065. + continue
  45066. + ;;
  45067. - compile_var=
  45068. - finalize_var=
  45069. - if test -n "$runpath_var"; then
  45070. - if test -n "$perm_rpath"; then
  45071. - # We should set the runpath_var.
  45072. - rpath=
  45073. - for dir in $perm_rpath; do
  45074. - rpath="$rpath$dir:"
  45075. - done
  45076. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  45077. - fi
  45078. - if test -n "$finalize_perm_rpath"; then
  45079. - # We should set the runpath_var.
  45080. - rpath=
  45081. - for dir in $finalize_perm_rpath; do
  45082. - rpath="$rpath$dir:"
  45083. - done
  45084. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  45085. - fi
  45086. - fi
  45087. + -dlopen)
  45088. + prev=dlfiles
  45089. + continue
  45090. + ;;
  45091. - if test "$no_install" = yes; then
  45092. - # We don't need to create a wrapper script.
  45093. - link_command="$compile_var$compile_command$compile_rpath"
  45094. - # Replace the output file specification.
  45095. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  45096. - # Delete the old output file.
  45097. - $run $rm $output
  45098. - # Link the executable and exit
  45099. - $show "$link_command"
  45100. - $run eval "$link_command" || exit $?
  45101. - exit $EXIT_SUCCESS
  45102. - fi
  45103. + -dlpreopen)
  45104. + prev=dlprefiles
  45105. + continue
  45106. + ;;
  45107. - if test "$hardcode_action" = relink; then
  45108. - # Fast installation is not supported
  45109. - link_command="$compile_var$compile_command$compile_rpath"
  45110. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  45111. + -export-dynamic)
  45112. + export_dynamic=yes
  45113. + continue
  45114. + ;;
  45115. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  45116. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  45117. - else
  45118. - if test "$fast_install" != no; then
  45119. - link_command="$finalize_var$compile_command$finalize_rpath"
  45120. - if test "$fast_install" = yes; then
  45121. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  45122. - else
  45123. - # fast_install is set to needless
  45124. - relink_command=
  45125. - fi
  45126. + -export-symbols | -export-symbols-regex)
  45127. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  45128. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  45129. + fi
  45130. + if test "X$arg" = "X-export-symbols"; then
  45131. + prev=expsyms
  45132. else
  45133. - link_command="$compile_var$compile_command$compile_rpath"
  45134. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  45135. + prev=expsyms_regex
  45136. fi
  45137. - fi
  45138. -
  45139. - # Replace the output file specification.
  45140. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  45141. + continue
  45142. + ;;
  45143. - # Delete the old output files.
  45144. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  45145. + -framework)
  45146. + prev=framework
  45147. + continue
  45148. + ;;
  45149. - $show "$link_command"
  45150. - $run eval "$link_command" || exit $?
  45151. + -inst-prefix-dir)
  45152. + prev=inst_prefix
  45153. + continue
  45154. + ;;
  45155. - # Now create the wrapper script.
  45156. - $show "creating $output"
  45157. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  45158. + # so, if we see these flags be careful not to treat them like -L
  45159. + -L[A-Z][A-Z]*:*)
  45160. + case $with_gcc/$host in
  45161. + no/*-*-irix* | /*-*-irix*)
  45162. + func_append compile_command " $arg"
  45163. + func_append finalize_command " $arg"
  45164. + ;;
  45165. + esac
  45166. + continue
  45167. + ;;
  45168. - # Quote the relink command for shipping.
  45169. - if test -n "$relink_command"; then
  45170. - # Preserve any variables that may affect compiler behavior
  45171. - for var in $variables_saved_for_relink; do
  45172. - if eval test -z \"\${$var+set}\"; then
  45173. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  45174. - elif eval var_value=\$$var; test -z "$var_value"; then
  45175. - relink_command="$var=; export $var; $relink_command"
  45176. + -L*)
  45177. + func_stripname '-L' '' "$arg"
  45178. + dir=$func_stripname_result
  45179. + if test -z "$dir"; then
  45180. + if test "$#" -gt 0; then
  45181. + func_fatal_error "require no space between \`-L' and \`$1'"
  45182. else
  45183. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  45184. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  45185. + func_fatal_error "need path for \`-L' option"
  45186. fi
  45187. - done
  45188. - relink_command="(cd `pwd`; $relink_command)"
  45189. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  45190. - fi
  45191. -
  45192. - # Quote $echo for shipping.
  45193. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  45194. - case $progpath in
  45195. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  45196. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  45197. + fi
  45198. + # We need an absolute path.
  45199. + case $dir in
  45200. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  45201. + *)
  45202. + absdir=`cd "$dir" && pwd`
  45203. + test -z "$absdir" && \
  45204. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  45205. + dir="$absdir"
  45206. + ;;
  45207. esac
  45208. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  45209. - else
  45210. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  45211. - fi
  45212. -
  45213. - # Only actually do things if our run command is non-null.
  45214. - if test -z "$run"; then
  45215. - # win32 will think the script is a binary if it has
  45216. - # a .exe suffix, so we strip it off here.
  45217. - case $output in
  45218. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  45219. + case "$deplibs " in
  45220. + *" -L$dir "*) ;;
  45221. + *)
  45222. + deplibs="$deplibs -L$dir"
  45223. + lib_search_path="$lib_search_path $dir"
  45224. + ;;
  45225. esac
  45226. - # test for cygwin because mv fails w/o .exe extensions
  45227. case $host in
  45228. - *cygwin*)
  45229. - exeext=.exe
  45230. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  45231. - *) exeext= ;;
  45232. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  45233. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  45234. + case :$dllsearchpath: in
  45235. + *":$dir:"*) ;;
  45236. + ::) dllsearchpath=$dir;;
  45237. + *) dllsearchpath="$dllsearchpath:$dir";;
  45238. + esac
  45239. + case :$dllsearchpath: in
  45240. + *":$testbindir:"*) ;;
  45241. + ::) dllsearchpath=$testbindir;;
  45242. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  45243. + esac
  45244. + ;;
  45245. esac
  45246. - case $host in
  45247. - *cygwin* | *mingw* )
  45248. - output_name=`basename $output`
  45249. - output_path=`dirname $output`
  45250. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  45251. - cwrapper="$output_path/$output_name.exe"
  45252. - $rm $cwrappersource $cwrapper
  45253. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  45254. + continue
  45255. + ;;
  45256. - cat > $cwrappersource <<EOF
  45257. + -l*)
  45258. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  45259. + case $host in
  45260. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  45261. + # These systems don't actually have a C or math library (as such)
  45262. + continue
  45263. + ;;
  45264. + *-*-os2*)
  45265. + # These systems don't actually have a C library (as such)
  45266. + test "X$arg" = "X-lc" && continue
  45267. + ;;
  45268. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45269. + # Do not include libc due to us having libc/libc_r.
  45270. + test "X$arg" = "X-lc" && continue
  45271. + ;;
  45272. + *-*-rhapsody* | *-*-darwin1.[012])
  45273. + # Rhapsody C and math libraries are in the System framework
  45274. + deplibs="$deplibs System.ltframework"
  45275. + continue
  45276. + ;;
  45277. + *-*-sco3.2v5* | *-*-sco5v6*)
  45278. + # Causes problems with __ctype
  45279. + test "X$arg" = "X-lc" && continue
  45280. + ;;
  45281. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  45282. + # Compiler inserts libc in the correct place for threads to work
  45283. + test "X$arg" = "X-lc" && continue
  45284. + ;;
  45285. + esac
  45286. + elif test "X$arg" = "X-lc_r"; then
  45287. + case $host in
  45288. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45289. + # Do not include libc_r directly, use -pthread flag.
  45290. + continue
  45291. + ;;
  45292. + esac
  45293. + fi
  45294. + deplibs="$deplibs $arg"
  45295. + continue
  45296. + ;;
  45297. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  45298. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  45299. + -module)
  45300. + module=yes
  45301. + continue
  45302. + ;;
  45303. - The $output program cannot be directly executed until all the libtool
  45304. - libraries that it depends on are installed.
  45305. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  45306. + # classes, name mangling, and exception handling.
  45307. + # Darwin uses the -arch flag to determine output architecture.
  45308. + -model|-arch|-isysroot)
  45309. + compiler_flags="$compiler_flags $arg"
  45310. + func_append compile_command " $arg"
  45311. + func_append finalize_command " $arg"
  45312. + prev=xcompiler
  45313. + continue
  45314. + ;;
  45315. - This wrapper executable should never be moved out of the build directory.
  45316. - If it is, it will not operate correctly.
  45317. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  45318. + compiler_flags="$compiler_flags $arg"
  45319. + func_append compile_command " $arg"
  45320. + func_append finalize_command " $arg"
  45321. + case "$new_inherited_linker_flags " in
  45322. + *" $arg "*) ;;
  45323. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  45324. + esac
  45325. + continue
  45326. + ;;
  45327. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  45328. - but could eventually absorb all of the scripts functionality and
  45329. - exec $objdir/$outputname directly.
  45330. -*/
  45331. -EOF
  45332. - cat >> $cwrappersource<<"EOF"
  45333. -#include <stdio.h>
  45334. -#include <stdlib.h>
  45335. -#include <unistd.h>
  45336. -#include <malloc.h>
  45337. -#include <stdarg.h>
  45338. -#include <assert.h>
  45339. -#include <string.h>
  45340. -#include <ctype.h>
  45341. -#include <sys/stat.h>
  45342. + -multi_module)
  45343. + single_module="${wl}-multi_module"
  45344. + continue
  45345. + ;;
  45346. -#if defined(PATH_MAX)
  45347. -# define LT_PATHMAX PATH_MAX
  45348. -#elif defined(MAXPATHLEN)
  45349. -# define LT_PATHMAX MAXPATHLEN
  45350. -#else
  45351. -# define LT_PATHMAX 1024
  45352. -#endif
  45353. + -no-fast-install)
  45354. + fast_install=no
  45355. + continue
  45356. + ;;
  45357. -#ifndef DIR_SEPARATOR
  45358. -# define DIR_SEPARATOR '/'
  45359. -# define PATH_SEPARATOR ':'
  45360. -#endif
  45361. + -no-install)
  45362. + case $host in
  45363. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  45364. + # The PATH hackery in wrapper scripts is required on Windows
  45365. + # and Darwin in order for the loader to find any dlls it needs.
  45366. + func_warning "\`-no-install' is ignored for $host"
  45367. + func_warning "assuming \`-no-fast-install' instead"
  45368. + fast_install=no
  45369. + ;;
  45370. + *) no_install=yes ;;
  45371. + esac
  45372. + continue
  45373. + ;;
  45374. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  45375. - defined (__OS2__)
  45376. -# define HAVE_DOS_BASED_FILE_SYSTEM
  45377. -# ifndef DIR_SEPARATOR_2
  45378. -# define DIR_SEPARATOR_2 '\\'
  45379. -# endif
  45380. -# ifndef PATH_SEPARATOR_2
  45381. -# define PATH_SEPARATOR_2 ';'
  45382. -# endif
  45383. -#endif
  45384. + -no-undefined)
  45385. + allow_undefined=no
  45386. + continue
  45387. + ;;
  45388. -#ifndef DIR_SEPARATOR_2
  45389. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  45390. -#else /* DIR_SEPARATOR_2 */
  45391. -# define IS_DIR_SEPARATOR(ch) \
  45392. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  45393. -#endif /* DIR_SEPARATOR_2 */
  45394. + -objectlist)
  45395. + prev=objectlist
  45396. + continue
  45397. + ;;
  45398. -#ifndef PATH_SEPARATOR_2
  45399. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  45400. -#else /* PATH_SEPARATOR_2 */
  45401. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  45402. -#endif /* PATH_SEPARATOR_2 */
  45403. + -o) prev=output ;;
  45404. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  45405. -#define XFREE(stale) do { \
  45406. - if (stale) { free ((void *) stale); stale = 0; } \
  45407. -} while (0)
  45408. + -precious-files-regex)
  45409. + prev=precious_regex
  45410. + continue
  45411. + ;;
  45412. -/* -DDEBUG is fairly common in CFLAGS. */
  45413. -#undef DEBUG
  45414. -#if defined DEBUGWRAPPER
  45415. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  45416. -#else
  45417. -# define DEBUG(format, ...)
  45418. -#endif
  45419. + -release)
  45420. + prev=release
  45421. + continue
  45422. + ;;
  45423. -const char *program_name = NULL;
  45424. + -rpath)
  45425. + prev=rpath
  45426. + continue
  45427. + ;;
  45428. -void * xmalloc (size_t num);
  45429. -char * xstrdup (const char *string);
  45430. -const char * base_name (const char *name);
  45431. -char * find_executable(const char *wrapper);
  45432. -int check_executable(const char *path);
  45433. -char * strendzap(char *str, const char *pat);
  45434. -void lt_fatal (const char *message, ...);
  45435. + -R)
  45436. + prev=xrpath
  45437. + continue
  45438. + ;;
  45439. -int
  45440. -main (int argc, char *argv[])
  45441. -{
  45442. - char **newargz;
  45443. - int i;
  45444. + -R*)
  45445. + func_stripname '-R' '' "$arg"
  45446. + dir=$func_stripname_result
  45447. + # We need an absolute path.
  45448. + case $dir in
  45449. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  45450. + *)
  45451. + func_fatal_error "only absolute run-paths are allowed"
  45452. + ;;
  45453. + esac
  45454. + case "$xrpath " in
  45455. + *" $dir "*) ;;
  45456. + *) xrpath="$xrpath $dir" ;;
  45457. + esac
  45458. + continue
  45459. + ;;
  45460. - program_name = (char *) xstrdup (base_name (argv[0]));
  45461. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  45462. - DEBUG("(main) program_name : %s\n",program_name);
  45463. - newargz = XMALLOC(char *, argc+2);
  45464. -EOF
  45465. + -shared)
  45466. + # The effects of -shared are defined in a previous loop.
  45467. + continue
  45468. + ;;
  45469. - cat >> $cwrappersource <<EOF
  45470. - newargz[0] = (char *) xstrdup("$SHELL");
  45471. -EOF
  45472. + -shrext)
  45473. + prev=shrext
  45474. + continue
  45475. + ;;
  45476. - cat >> $cwrappersource <<"EOF"
  45477. - newargz[1] = find_executable(argv[0]);
  45478. - if (newargz[1] == NULL)
  45479. - lt_fatal("Couldn't find %s", argv[0]);
  45480. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  45481. - /* we know the script has the same name, without the .exe */
  45482. - /* so make sure newargz[1] doesn't end in .exe */
  45483. - strendzap(newargz[1],".exe");
  45484. - for (i = 1; i < argc; i++)
  45485. - newargz[i+1] = xstrdup(argv[i]);
  45486. - newargz[argc+1] = NULL;
  45487. + -static | -static-libtool-libs)
  45488. + # The effects of -static are defined in a previous loop.
  45489. + # We used to do the same as -all-static on platforms that
  45490. + # didn't have a PIC flag, but the assumption that the effects
  45491. + # would be equivalent was wrong. It would break on at least
  45492. + # Digital Unix and AIX.
  45493. + continue
  45494. + ;;
  45495. - for (i=0; i<argc+1; i++)
  45496. - {
  45497. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  45498. - ;
  45499. - }
  45500. + -thread-safe)
  45501. + thread_safe=yes
  45502. + continue
  45503. + ;;
  45504. -EOF
  45505. + -version-info)
  45506. + prev=vinfo
  45507. + continue
  45508. + ;;
  45509. - case $host_os in
  45510. - mingw*)
  45511. - cat >> $cwrappersource <<EOF
  45512. - execv("$SHELL",(char const **)newargz);
  45513. -EOF
  45514. - ;;
  45515. - *)
  45516. - cat >> $cwrappersource <<EOF
  45517. - execv("$SHELL",newargz);
  45518. -EOF
  45519. - ;;
  45520. - esac
  45521. + -version-number)
  45522. + prev=vinfo
  45523. + vinfo_number=yes
  45524. + continue
  45525. + ;;
  45526. - cat >> $cwrappersource <<"EOF"
  45527. - return 127;
  45528. -}
  45529. + -weak)
  45530. + prev=weak
  45531. + continue
  45532. + ;;
  45533. -void *
  45534. -xmalloc (size_t num)
  45535. -{
  45536. - void * p = (void *) malloc (num);
  45537. - if (!p)
  45538. - lt_fatal ("Memory exhausted");
  45539. + -Wc,*)
  45540. + func_stripname '-Wc,' '' "$arg"
  45541. + args=$func_stripname_result
  45542. + arg=
  45543. + save_ifs="$IFS"; IFS=','
  45544. + for flag in $args; do
  45545. + IFS="$save_ifs"
  45546. + func_quote_for_eval "$flag"
  45547. + arg="$arg $wl$func_quote_for_eval_result"
  45548. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  45549. + done
  45550. + IFS="$save_ifs"
  45551. + func_stripname ' ' '' "$arg"
  45552. + arg=$func_stripname_result
  45553. + ;;
  45554. - return p;
  45555. -}
  45556. + -Wl,*)
  45557. + func_stripname '-Wl,' '' "$arg"
  45558. + args=$func_stripname_result
  45559. + arg=
  45560. + save_ifs="$IFS"; IFS=','
  45561. + for flag in $args; do
  45562. + IFS="$save_ifs"
  45563. + func_quote_for_eval "$flag"
  45564. + arg="$arg $wl$func_quote_for_eval_result"
  45565. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  45566. + linker_flags="$linker_flags $func_quote_for_eval_result"
  45567. + done
  45568. + IFS="$save_ifs"
  45569. + func_stripname ' ' '' "$arg"
  45570. + arg=$func_stripname_result
  45571. + ;;
  45572. -char *
  45573. -xstrdup (const char *string)
  45574. -{
  45575. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  45576. -;
  45577. -}
  45578. + -Xcompiler)
  45579. + prev=xcompiler
  45580. + continue
  45581. + ;;
  45582. -const char *
  45583. -base_name (const char *name)
  45584. -{
  45585. - const char *base;
  45586. + -Xlinker)
  45587. + prev=xlinker
  45588. + continue
  45589. + ;;
  45590. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45591. - /* Skip over the disk name in MSDOS pathnames. */
  45592. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  45593. - name += 2;
  45594. -#endif
  45595. + -XCClinker)
  45596. + prev=xcclinker
  45597. + continue
  45598. + ;;
  45599. - for (base = name; *name; name++)
  45600. - if (IS_DIR_SEPARATOR (*name))
  45601. - base = name + 1;
  45602. - return base;
  45603. -}
  45604. + # -msg_* for osf cc
  45605. + -msg_*)
  45606. + func_quote_for_eval "$arg"
  45607. + arg="$func_quote_for_eval_result"
  45608. + ;;
  45609. -int
  45610. -check_executable(const char * path)
  45611. -{
  45612. - struct stat st;
  45613. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  45614. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  45615. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  45616. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  45617. + # -q* pass through compiler args for the IBM compiler
  45618. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  45619. + # compiler args for GCC
  45620. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  45621. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  45622. + # @file GCC response files
  45623. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  45624. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  45625. + func_quote_for_eval "$arg"
  45626. + arg="$func_quote_for_eval_result"
  45627. + func_append compile_command " $arg"
  45628. + func_append finalize_command " $arg"
  45629. + compiler_flags="$compiler_flags $arg"
  45630. + continue
  45631. + ;;
  45632. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  45633. - if ((!path) || (!*path))
  45634. - return 0;
  45635. + # Some other compiler flag.
  45636. + -* | +*)
  45637. + func_quote_for_eval "$arg"
  45638. + arg="$func_quote_for_eval_result"
  45639. + ;;
  45640. - if ((stat (path, &st) >= 0) &&
  45641. - (
  45642. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  45643. -#if defined (S_IXOTH)
  45644. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  45645. -#endif
  45646. -#if defined (S_IXGRP)
  45647. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  45648. -#endif
  45649. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  45650. - )
  45651. - return 1;
  45652. - else
  45653. - return 0;
  45654. -}
  45655. + *.$objext)
  45656. + # A standard object.
  45657. + objs="$objs $arg"
  45658. + ;;
  45659. -/* Searches for the full path of the wrapper. Returns
  45660. - newly allocated full path name if found, NULL otherwise */
  45661. -char *
  45662. -find_executable (const char* wrapper)
  45663. -{
  45664. - int has_slash = 0;
  45665. - const char* p;
  45666. - const char* p_next;
  45667. - /* static buffer for getcwd */
  45668. - char tmp[LT_PATHMAX + 1];
  45669. - int tmp_len;
  45670. - char* concat_name;
  45671. + *.lo)
  45672. + # A libtool-controlled object.
  45673. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  45674. + # Check to see that this really is a libtool object.
  45675. + if func_lalib_unsafe_p "$arg"; then
  45676. + pic_object=
  45677. + non_pic_object=
  45678. - if ((wrapper == NULL) || (*wrapper == '\0'))
  45679. - return NULL;
  45680. + # Read the .lo file
  45681. + func_source "$arg"
  45682. - /* Absolute path? */
  45683. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45684. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  45685. - {
  45686. - concat_name = xstrdup (wrapper);
  45687. - if (check_executable(concat_name))
  45688. - return concat_name;
  45689. - XFREE(concat_name);
  45690. - }
  45691. - else
  45692. - {
  45693. -#endif
  45694. - if (IS_DIR_SEPARATOR (wrapper[0]))
  45695. - {
  45696. - concat_name = xstrdup (wrapper);
  45697. - if (check_executable(concat_name))
  45698. - return concat_name;
  45699. - XFREE(concat_name);
  45700. - }
  45701. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  45702. - }
  45703. -#endif
  45704. + if test -z "$pic_object" ||
  45705. + test -z "$non_pic_object" ||
  45706. + test "$pic_object" = none &&
  45707. + test "$non_pic_object" = none; then
  45708. + func_fatal_error "cannot find name of object for \`$arg'"
  45709. + fi
  45710. - for (p = wrapper; *p; p++)
  45711. - if (*p == '/')
  45712. - {
  45713. - has_slash = 1;
  45714. - break;
  45715. - }
  45716. - if (!has_slash)
  45717. - {
  45718. - /* no slashes; search PATH */
  45719. - const char* path = getenv ("PATH");
  45720. - if (path != NULL)
  45721. - {
  45722. - for (p = path; *p; p = p_next)
  45723. - {
  45724. - const char* q;
  45725. - size_t p_len;
  45726. - for (q = p; *q; q++)
  45727. - if (IS_PATH_SEPARATOR(*q))
  45728. - break;
  45729. - p_len = q - p;
  45730. - p_next = (*q == '\0' ? q : q + 1);
  45731. - if (p_len == 0)
  45732. - {
  45733. - /* empty path: current directory */
  45734. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  45735. - lt_fatal ("getcwd failed");
  45736. - tmp_len = strlen(tmp);
  45737. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  45738. - memcpy (concat_name, tmp, tmp_len);
  45739. - concat_name[tmp_len] = '/';
  45740. - strcpy (concat_name + tmp_len + 1, wrapper);
  45741. - }
  45742. - else
  45743. - {
  45744. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  45745. - memcpy (concat_name, p, p_len);
  45746. - concat_name[p_len] = '/';
  45747. - strcpy (concat_name + p_len + 1, wrapper);
  45748. - }
  45749. - if (check_executable(concat_name))
  45750. - return concat_name;
  45751. - XFREE(concat_name);
  45752. - }
  45753. - }
  45754. - /* not found in PATH; assume curdir */
  45755. - }
  45756. - /* Relative path | not found in path: prepend cwd */
  45757. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  45758. - lt_fatal ("getcwd failed");
  45759. - tmp_len = strlen(tmp);
  45760. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  45761. - memcpy (concat_name, tmp, tmp_len);
  45762. - concat_name[tmp_len] = '/';
  45763. - strcpy (concat_name + tmp_len + 1, wrapper);
  45764. + # Extract subdirectory from the argument.
  45765. + func_dirname "$arg" "/" ""
  45766. + xdir="$func_dirname_result"
  45767. - if (check_executable(concat_name))
  45768. - return concat_name;
  45769. - XFREE(concat_name);
  45770. - return NULL;
  45771. -}
  45772. + if test "$pic_object" != none; then
  45773. + # Prepend the subdirectory the object is found in.
  45774. + pic_object="$xdir$pic_object"
  45775. -char *
  45776. -strendzap(char *str, const char *pat)
  45777. -{
  45778. - size_t len, patlen;
  45779. + if test "$prev" = dlfiles; then
  45780. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  45781. + dlfiles="$dlfiles $pic_object"
  45782. + prev=
  45783. + continue
  45784. + else
  45785. + # If libtool objects are unsupported, then we need to preload.
  45786. + prev=dlprefiles
  45787. + fi
  45788. + fi
  45789. - assert(str != NULL);
  45790. - assert(pat != NULL);
  45791. + # CHECK ME: I think I busted this. -Ossama
  45792. + if test "$prev" = dlprefiles; then
  45793. + # Preload the old-style object.
  45794. + dlprefiles="$dlprefiles $pic_object"
  45795. + prev=
  45796. + fi
  45797. - len = strlen(str);
  45798. - patlen = strlen(pat);
  45799. + # A PIC object.
  45800. + func_append libobjs " $pic_object"
  45801. + arg="$pic_object"
  45802. + fi
  45803. - if (patlen <= len)
  45804. - {
  45805. - str += len - patlen;
  45806. - if (strcmp(str, pat) == 0)
  45807. - *str = '\0';
  45808. - }
  45809. - return str;
  45810. -}
  45811. + # Non-PIC object.
  45812. + if test "$non_pic_object" != none; then
  45813. + # Prepend the subdirectory the object is found in.
  45814. + non_pic_object="$xdir$non_pic_object"
  45815. -static void
  45816. -lt_error_core (int exit_status, const char * mode,
  45817. - const char * message, va_list ap)
  45818. -{
  45819. - fprintf (stderr, "%s: %s: ", program_name, mode);
  45820. - vfprintf (stderr, message, ap);
  45821. - fprintf (stderr, ".\n");
  45822. + # A standard non-PIC object
  45823. + func_append non_pic_objects " $non_pic_object"
  45824. + if test -z "$pic_object" || test "$pic_object" = none ; then
  45825. + arg="$non_pic_object"
  45826. + fi
  45827. + else
  45828. + # If the PIC object exists, use it instead.
  45829. + # $xdir was prepended to $pic_object above.
  45830. + non_pic_object="$pic_object"
  45831. + func_append non_pic_objects " $non_pic_object"
  45832. + fi
  45833. + else
  45834. + # Only an error if not doing a dry-run.
  45835. + if $opt_dry_run; then
  45836. + # Extract subdirectory from the argument.
  45837. + func_dirname "$arg" "/" ""
  45838. + xdir="$func_dirname_result"
  45839. - if (exit_status >= 0)
  45840. - exit (exit_status);
  45841. -}
  45842. + func_lo2o "$arg"
  45843. + pic_object=$xdir$objdir/$func_lo2o_result
  45844. + non_pic_object=$xdir$func_lo2o_result
  45845. + func_append libobjs " $pic_object"
  45846. + func_append non_pic_objects " $non_pic_object"
  45847. + else
  45848. + func_fatal_error "\`$arg' is not a valid libtool object"
  45849. + fi
  45850. + fi
  45851. + ;;
  45852. -void
  45853. -lt_fatal (const char *message, ...)
  45854. -{
  45855. - va_list ap;
  45856. - va_start (ap, message);
  45857. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  45858. - va_end (ap);
  45859. -}
  45860. -EOF
  45861. - # we should really use a build-platform specific compiler
  45862. - # here, but OTOH, the wrappers (shell script and this C one)
  45863. - # are only useful if you want to execute the "real" binary.
  45864. - # Since the "real" binary is built for $host, then this
  45865. - # wrapper might as well be built for $host, too.
  45866. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  45867. - ;;
  45868. - esac
  45869. - $rm $output
  45870. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  45871. + *.$libext)
  45872. + # An archive.
  45873. + deplibs="$deplibs $arg"
  45874. + old_deplibs="$old_deplibs $arg"
  45875. + continue
  45876. + ;;
  45877. - $echo > $output "\
  45878. -#! $SHELL
  45879. + *.la)
  45880. + # A libtool-controlled library.
  45881. -# $output - temporary wrapper script for $objdir/$outputname
  45882. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  45883. -#
  45884. -# The $output program cannot be directly executed until all the libtool
  45885. -# libraries that it depends on are installed.
  45886. -#
  45887. -# This wrapper script should never be moved out of the build directory.
  45888. -# If it is, it will not operate correctly.
  45889. + if test "$prev" = dlfiles; then
  45890. + # This library was specified with -dlopen.
  45891. + dlfiles="$dlfiles $arg"
  45892. + prev=
  45893. + elif test "$prev" = dlprefiles; then
  45894. + # The library was specified with -dlpreopen.
  45895. + dlprefiles="$dlprefiles $arg"
  45896. + prev=
  45897. + else
  45898. + deplibs="$deplibs $arg"
  45899. + fi
  45900. + continue
  45901. + ;;
  45902. -# Sed substitution that helps us do robust quoting. It backslashifies
  45903. -# metacharacters that are still active within double-quoted strings.
  45904. -Xsed='${SED} -e 1s/^X//'
  45905. -sed_quote_subst='$sed_quote_subst'
  45906. + # Some other compiler argument.
  45907. + *)
  45908. + # Unknown arguments in both finalize_command and compile_command need
  45909. + # to be aesthetically quoted because they are evaled later.
  45910. + func_quote_for_eval "$arg"
  45911. + arg="$func_quote_for_eval_result"
  45912. + ;;
  45913. + esac # arg
  45914. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  45915. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  45916. - emulate sh
  45917. - NULLCMD=:
  45918. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  45919. - # is contrary to our usage. Disable this feature.
  45920. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  45921. - setopt NO_GLOB_SUBST
  45922. -else
  45923. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  45924. -fi
  45925. -BIN_SH=xpg4; export BIN_SH # for Tru64
  45926. -DUALCASE=1; export DUALCASE # for MKS sh
  45927. + # Now actually substitute the argument into the commands.
  45928. + if test -n "$arg"; then
  45929. + func_append compile_command " $arg"
  45930. + func_append finalize_command " $arg"
  45931. + fi
  45932. + done # argument parsing loop
  45933. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  45934. -# if CDPATH is set.
  45935. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  45936. + test -n "$prev" && \
  45937. + func_fatal_help "the \`$prevarg' option requires an argument"
  45938. -relink_command=\"$relink_command\"
  45939. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  45940. + eval arg=\"$export_dynamic_flag_spec\"
  45941. + func_append compile_command " $arg"
  45942. + func_append finalize_command " $arg"
  45943. + fi
  45944. -# This environment variable determines our operation mode.
  45945. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  45946. - # install mode needs the following variable:
  45947. - notinst_deplibs='$notinst_deplibs'
  45948. -else
  45949. - # When we are sourced in execute mode, \$file and \$echo are already set.
  45950. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  45951. - echo=\"$qecho\"
  45952. - file=\"\$0\"
  45953. - # Make sure echo works.
  45954. - if test \"X\$1\" = X--no-reexec; then
  45955. - # Discard the --no-reexec flag, and continue.
  45956. - shift
  45957. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  45958. - # Yippee, \$echo works!
  45959. - :
  45960. + oldlibs=
  45961. + # calculate the name of the file, without its directory
  45962. + func_basename "$output"
  45963. + outputname="$func_basename_result"
  45964. + libobjs_save="$libobjs"
  45965. +
  45966. + if test -n "$shlibpath_var"; then
  45967. + # get the directories listed in $shlibpath_var
  45968. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  45969. else
  45970. - # Restart under the correct shell, and then maybe \$echo will work.
  45971. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  45972. + shlib_search_path=
  45973. fi
  45974. - fi\
  45975. -"
  45976. - $echo >> $output "\
  45977. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  45978. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  45979. - # Find the directory that this script lives in.
  45980. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  45981. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  45982. + func_dirname "$output" "/" ""
  45983. + output_objdir="$func_dirname_result$objdir"
  45984. + # Create the object directory.
  45985. + func_mkdir_p "$output_objdir"
  45986. - # Follow symbolic links until we get to the real thisdir.
  45987. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  45988. - while test -n \"\$file\"; do
  45989. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  45990. + # Determine the type of output
  45991. + case $output in
  45992. + "")
  45993. + func_fatal_help "you must specify an output file"
  45994. + ;;
  45995. + *.$libext) linkmode=oldlib ;;
  45996. + *.lo | *.$objext) linkmode=obj ;;
  45997. + *.la) linkmode=lib ;;
  45998. + *) linkmode=prog ;; # Anything else should be a program.
  45999. + esac
  46000. +
  46001. + specialdeplibs=
  46002. +
  46003. + libs=
  46004. + # Find all interdependent deplibs by searching for libraries
  46005. + # that are linked more than once (e.g. -la -lb -la)
  46006. + for deplib in $deplibs; do
  46007. + if $opt_duplicate_deps ; then
  46008. + case "$libs " in
  46009. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46010. + esac
  46011. + fi
  46012. + libs="$libs $deplib"
  46013. + done
  46014. +
  46015. + if test "$linkmode" = lib; then
  46016. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  46017. +
  46018. + # Compute libraries that are listed more than once in $predeps
  46019. + # $postdeps and mark them as special (i.e., whose duplicates are
  46020. + # not to be eliminated).
  46021. + pre_post_deps=
  46022. + if $opt_duplicate_compiler_generated_deps; then
  46023. + for pre_post_dep in $predeps $postdeps; do
  46024. + case "$pre_post_deps " in
  46025. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  46026. + esac
  46027. + pre_post_deps="$pre_post_deps $pre_post_dep"
  46028. + done
  46029. + fi
  46030. + pre_post_deps=
  46031. + fi
  46032. +
  46033. + deplibs=
  46034. + newdependency_libs=
  46035. + newlib_search_path=
  46036. + need_relink=no # whether we're linking any uninstalled libtool libraries
  46037. + notinst_deplibs= # not-installed libtool libraries
  46038. + notinst_path= # paths that contain not-installed libtool libraries
  46039. +
  46040. + case $linkmode in
  46041. + lib)
  46042. + passes="conv dlpreopen link"
  46043. + for file in $dlfiles $dlprefiles; do
  46044. + case $file in
  46045. + *.la) ;;
  46046. + *)
  46047. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  46048. + ;;
  46049. + esac
  46050. + done
  46051. + ;;
  46052. + prog)
  46053. + compile_deplibs=
  46054. + finalize_deplibs=
  46055. + alldeplibs=no
  46056. + newdlfiles=
  46057. + newdlprefiles=
  46058. + passes="conv scan dlopen dlpreopen link"
  46059. + ;;
  46060. + *) passes="conv"
  46061. + ;;
  46062. + esac
  46063. +
  46064. + for pass in $passes; do
  46065. + # The preopen pass in lib mode reverses $deplibs; put it back here
  46066. + # so that -L comes before libs that need it for instance...
  46067. + if test "$linkmode,$pass" = "lib,link"; then
  46068. + ## FIXME: Find the place where the list is rebuilt in the wrong
  46069. + ## order, and fix it there properly
  46070. + tmp_deplibs=
  46071. + for deplib in $deplibs; do
  46072. + tmp_deplibs="$deplib $tmp_deplibs"
  46073. + done
  46074. + deplibs="$tmp_deplibs"
  46075. + fi
  46076. +
  46077. + if test "$linkmode,$pass" = "lib,link" ||
  46078. + test "$linkmode,$pass" = "prog,scan"; then
  46079. + libs="$deplibs"
  46080. + deplibs=
  46081. + fi
  46082. + if test "$linkmode" = prog; then
  46083. + case $pass in
  46084. + dlopen) libs="$dlfiles" ;;
  46085. + dlpreopen) libs="$dlprefiles" ;;
  46086. + link)
  46087. + libs="$deplibs %DEPLIBS%"
  46088. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  46089. + ;;
  46090. + esac
  46091. + fi
  46092. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  46093. + # Collect and forward deplibs of preopened libtool libs
  46094. + for lib in $dlprefiles; do
  46095. + # Ignore non-libtool-libs
  46096. + dependency_libs=
  46097. + case $lib in
  46098. + *.la) func_source "$lib" ;;
  46099. + esac
  46100. +
  46101. + # Collect preopened libtool deplibs, except any this library
  46102. + # has declared as weak libs
  46103. + for deplib in $dependency_libs; do
  46104. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  46105. + case " $weak_libs " in
  46106. + *" $deplib_base "*) ;;
  46107. + *) deplibs="$deplibs $deplib" ;;
  46108. + esac
  46109. + done
  46110. + done
  46111. + libs="$dlprefiles"
  46112. + fi
  46113. + if test "$pass" = dlopen; then
  46114. + # Collect dlpreopened libraries
  46115. + save_deplibs="$deplibs"
  46116. + deplibs=
  46117. + fi
  46118. +
  46119. + for deplib in $libs; do
  46120. + lib=
  46121. + found=no
  46122. + case $deplib in
  46123. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  46124. + if test "$linkmode,$pass" = "prog,link"; then
  46125. + compile_deplibs="$deplib $compile_deplibs"
  46126. + finalize_deplibs="$deplib $finalize_deplibs"
  46127. + else
  46128. + compiler_flags="$compiler_flags $deplib"
  46129. + if test "$linkmode" = lib ; then
  46130. + case "$new_inherited_linker_flags " in
  46131. + *" $deplib "*) ;;
  46132. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  46133. + esac
  46134. + fi
  46135. + fi
  46136. + continue
  46137. + ;;
  46138. + -l*)
  46139. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  46140. + func_warning "\`-l' is ignored for archives/objects"
  46141. + continue
  46142. + fi
  46143. + func_stripname '-l' '' "$deplib"
  46144. + name=$func_stripname_result
  46145. + if test "$linkmode" = lib; then
  46146. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  46147. + else
  46148. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  46149. + fi
  46150. + for searchdir in $searchdirs; do
  46151. + for search_ext in .la $std_shrext .so .a; do
  46152. + # Search the libtool library
  46153. + lib="$searchdir/lib${name}${search_ext}"
  46154. + if test -f "$lib"; then
  46155. + if test "$search_ext" = ".la"; then
  46156. + found=yes
  46157. + else
  46158. + found=no
  46159. + fi
  46160. + break 2
  46161. + fi
  46162. + done
  46163. + done
  46164. + if test "$found" != yes; then
  46165. + # deplib doesn't seem to be a libtool library
  46166. + if test "$linkmode,$pass" = "prog,link"; then
  46167. + compile_deplibs="$deplib $compile_deplibs"
  46168. + finalize_deplibs="$deplib $finalize_deplibs"
  46169. + else
  46170. + deplibs="$deplib $deplibs"
  46171. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  46172. + fi
  46173. + continue
  46174. + else # deplib is a libtool library
  46175. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  46176. + # We need to do some special things here, and not later.
  46177. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46178. + case " $predeps $postdeps " in
  46179. + *" $deplib "*)
  46180. + if func_lalib_p "$lib"; then
  46181. + library_names=
  46182. + old_library=
  46183. + func_source "$lib"
  46184. + for l in $old_library $library_names; do
  46185. + ll="$l"
  46186. + done
  46187. + if test "X$ll" = "X$old_library" ; then # only static version available
  46188. + found=no
  46189. + func_dirname "$lib" "" "."
  46190. + ladir="$func_dirname_result"
  46191. + lib=$ladir/$old_library
  46192. + if test "$linkmode,$pass" = "prog,link"; then
  46193. + compile_deplibs="$deplib $compile_deplibs"
  46194. + finalize_deplibs="$deplib $finalize_deplibs"
  46195. + else
  46196. + deplibs="$deplib $deplibs"
  46197. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  46198. + fi
  46199. + continue
  46200. + fi
  46201. + fi
  46202. + ;;
  46203. + *) ;;
  46204. + esac
  46205. + fi
  46206. + fi
  46207. + ;; # -l
  46208. + *.ltframework)
  46209. + if test "$linkmode,$pass" = "prog,link"; then
  46210. + compile_deplibs="$deplib $compile_deplibs"
  46211. + finalize_deplibs="$deplib $finalize_deplibs"
  46212. + else
  46213. + deplibs="$deplib $deplibs"
  46214. + if test "$linkmode" = lib ; then
  46215. + case "$new_inherited_linker_flags " in
  46216. + *" $deplib "*) ;;
  46217. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  46218. + esac
  46219. + fi
  46220. + fi
  46221. + continue
  46222. + ;;
  46223. + -L*)
  46224. + case $linkmode in
  46225. + lib)
  46226. + deplibs="$deplib $deplibs"
  46227. + test "$pass" = conv && continue
  46228. + newdependency_libs="$deplib $newdependency_libs"
  46229. + func_stripname '-L' '' "$deplib"
  46230. + newlib_search_path="$newlib_search_path $func_stripname_result"
  46231. + ;;
  46232. + prog)
  46233. + if test "$pass" = conv; then
  46234. + deplibs="$deplib $deplibs"
  46235. + continue
  46236. + fi
  46237. + if test "$pass" = scan; then
  46238. + deplibs="$deplib $deplibs"
  46239. + else
  46240. + compile_deplibs="$deplib $compile_deplibs"
  46241. + finalize_deplibs="$deplib $finalize_deplibs"
  46242. + fi
  46243. + func_stripname '-L' '' "$deplib"
  46244. + newlib_search_path="$newlib_search_path $func_stripname_result"
  46245. + ;;
  46246. + *)
  46247. + func_warning "\`-L' is ignored for archives/objects"
  46248. + ;;
  46249. + esac # linkmode
  46250. + continue
  46251. + ;; # -L
  46252. + -R*)
  46253. + if test "$pass" = link; then
  46254. + func_stripname '-R' '' "$deplib"
  46255. + dir=$func_stripname_result
  46256. + # Make sure the xrpath contains only unique directories.
  46257. + case "$xrpath " in
  46258. + *" $dir "*) ;;
  46259. + *) xrpath="$xrpath $dir" ;;
  46260. + esac
  46261. + fi
  46262. + deplibs="$deplib $deplibs"
  46263. + continue
  46264. + ;;
  46265. + *.la) lib="$deplib" ;;
  46266. + *.$libext)
  46267. + if test "$pass" = conv; then
  46268. + deplibs="$deplib $deplibs"
  46269. + continue
  46270. + fi
  46271. + case $linkmode in
  46272. + lib)
  46273. + # Linking convenience modules into shared libraries is allowed,
  46274. + # but linking other static libraries is non-portable.
  46275. + case " $dlpreconveniencelibs " in
  46276. + *" $deplib "*) ;;
  46277. + *)
  46278. + valid_a_lib=no
  46279. + case $deplibs_check_method in
  46280. + match_pattern*)
  46281. + set dummy $deplibs_check_method; shift
  46282. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  46283. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  46284. + | $EGREP "$match_pattern_regex" > /dev/null; then
  46285. + valid_a_lib=yes
  46286. + fi
  46287. + ;;
  46288. + pass_all)
  46289. + valid_a_lib=yes
  46290. + ;;
  46291. + esac
  46292. + if test "$valid_a_lib" != yes; then
  46293. + $ECHO
  46294. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  46295. + $ECHO "*** I have the capability to make that library automatically link in when"
  46296. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46297. + $ECHO "*** shared version of the library, which you do not appear to have"
  46298. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  46299. + $ECHO "*** that it is just a static archive that I should not use here."
  46300. + else
  46301. + $ECHO
  46302. + $ECHO "*** Warning: Linking the shared library $output against the"
  46303. + $ECHO "*** static library $deplib is not portable!"
  46304. + deplibs="$deplib $deplibs"
  46305. + fi
  46306. + ;;
  46307. + esac
  46308. + continue
  46309. + ;;
  46310. + prog)
  46311. + if test "$pass" != link; then
  46312. + deplibs="$deplib $deplibs"
  46313. + else
  46314. + compile_deplibs="$deplib $compile_deplibs"
  46315. + finalize_deplibs="$deplib $finalize_deplibs"
  46316. + fi
  46317. + continue
  46318. + ;;
  46319. + esac # linkmode
  46320. + ;; # *.$libext
  46321. + *.lo | *.$objext)
  46322. + if test "$pass" = conv; then
  46323. + deplibs="$deplib $deplibs"
  46324. + elif test "$linkmode" = prog; then
  46325. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  46326. + # If there is no dlopen support or we're linking statically,
  46327. + # we need to preload.
  46328. + newdlprefiles="$newdlprefiles $deplib"
  46329. + compile_deplibs="$deplib $compile_deplibs"
  46330. + finalize_deplibs="$deplib $finalize_deplibs"
  46331. + else
  46332. + newdlfiles="$newdlfiles $deplib"
  46333. + fi
  46334. + fi
  46335. + continue
  46336. + ;;
  46337. + %DEPLIBS%)
  46338. + alldeplibs=yes
  46339. + continue
  46340. + ;;
  46341. + esac # case $deplib
  46342. +
  46343. + if test "$found" = yes || test -f "$lib"; then :
  46344. + else
  46345. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  46346. + fi
  46347. +
  46348. + # Check to see that this really is a libtool archive.
  46349. + func_lalib_unsafe_p "$lib" \
  46350. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  46351. +
  46352. + func_dirname "$lib" "" "."
  46353. + ladir="$func_dirname_result"
  46354. +
  46355. + dlname=
  46356. + dlopen=
  46357. + dlpreopen=
  46358. + libdir=
  46359. + library_names=
  46360. + old_library=
  46361. + inherited_linker_flags=
  46362. + # If the library was installed with an old release of libtool,
  46363. + # it will not redefine variables installed, or shouldnotlink
  46364. + installed=yes
  46365. + shouldnotlink=no
  46366. + avoidtemprpath=
  46367. +
  46368. +
  46369. + # Read the .la file
  46370. + func_source "$lib"
  46371. +
  46372. + # Convert "-framework foo" to "foo.ltframework"
  46373. + if test -n "$inherited_linker_flags"; then
  46374. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  46375. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  46376. + case " $new_inherited_linker_flags " in
  46377. + *" $tmp_inherited_linker_flag "*) ;;
  46378. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  46379. + esac
  46380. + done
  46381. + fi
  46382. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  46383. + if test "$linkmode,$pass" = "lib,link" ||
  46384. + test "$linkmode,$pass" = "prog,scan" ||
  46385. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  46386. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  46387. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  46388. + fi
  46389. +
  46390. + if test "$pass" = conv; then
  46391. + # Only check for convenience libraries
  46392. + deplibs="$lib $deplibs"
  46393. + if test -z "$libdir"; then
  46394. + if test -z "$old_library"; then
  46395. + func_fatal_error "cannot find name of link library for \`$lib'"
  46396. + fi
  46397. + # It is a libtool convenience library, so add in its objects.
  46398. + convenience="$convenience $ladir/$objdir/$old_library"
  46399. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  46400. + tmp_libs=
  46401. + for deplib in $dependency_libs; do
  46402. + deplibs="$deplib $deplibs"
  46403. + if $opt_duplicate_deps ; then
  46404. + case "$tmp_libs " in
  46405. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46406. + esac
  46407. + fi
  46408. + tmp_libs="$tmp_libs $deplib"
  46409. + done
  46410. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  46411. + func_fatal_error "\`$lib' is not a convenience library"
  46412. + fi
  46413. + continue
  46414. + fi # $pass = conv
  46415. +
  46416. +
  46417. + # Get the name of the library we link against.
  46418. + linklib=
  46419. + for l in $old_library $library_names; do
  46420. + linklib="$l"
  46421. + done
  46422. + if test -z "$linklib"; then
  46423. + func_fatal_error "cannot find name of link library for \`$lib'"
  46424. + fi
  46425. +
  46426. + # This library was specified with -dlopen.
  46427. + if test "$pass" = dlopen; then
  46428. + if test -z "$libdir"; then
  46429. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  46430. + fi
  46431. + if test -z "$dlname" ||
  46432. + test "$dlopen_support" != yes ||
  46433. + test "$build_libtool_libs" = no; then
  46434. + # If there is no dlname, no dlopen support or we're linking
  46435. + # statically, we need to preload. We also need to preload any
  46436. + # dependent libraries so libltdl's deplib preloader doesn't
  46437. + # bomb out in the load deplibs phase.
  46438. + dlprefiles="$dlprefiles $lib $dependency_libs"
  46439. + else
  46440. + newdlfiles="$newdlfiles $lib"
  46441. + fi
  46442. + continue
  46443. + fi # $pass = dlopen
  46444. +
  46445. + # We need an absolute path.
  46446. + case $ladir in
  46447. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  46448. + *)
  46449. + abs_ladir=`cd "$ladir" && pwd`
  46450. + if test -z "$abs_ladir"; then
  46451. + func_warning "cannot determine absolute directory name of \`$ladir'"
  46452. + func_warning "passing it literally to the linker, although it might fail"
  46453. + abs_ladir="$ladir"
  46454. + fi
  46455. + ;;
  46456. + esac
  46457. + func_basename "$lib"
  46458. + laname="$func_basename_result"
  46459. +
  46460. + # Find the relevant object directory and library name.
  46461. + if test "X$installed" = Xyes; then
  46462. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  46463. + func_warning "library \`$lib' was moved."
  46464. + dir="$ladir"
  46465. + absdir="$abs_ladir"
  46466. + libdir="$abs_ladir"
  46467. + else
  46468. + dir="$libdir"
  46469. + absdir="$libdir"
  46470. + fi
  46471. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  46472. + else
  46473. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  46474. + dir="$ladir"
  46475. + absdir="$abs_ladir"
  46476. + # Remove this search path later
  46477. + notinst_path="$notinst_path $abs_ladir"
  46478. + else
  46479. + dir="$ladir/$objdir"
  46480. + absdir="$abs_ladir/$objdir"
  46481. + # Remove this search path later
  46482. + notinst_path="$notinst_path $abs_ladir"
  46483. + fi
  46484. + fi # $installed = yes
  46485. + func_stripname 'lib' '.la' "$laname"
  46486. + name=$func_stripname_result
  46487. +
  46488. + # This library was specified with -dlpreopen.
  46489. + if test "$pass" = dlpreopen; then
  46490. + if test -z "$libdir" && test "$linkmode" = prog; then
  46491. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  46492. + fi
  46493. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  46494. + # are required to link).
  46495. + if test -n "$old_library"; then
  46496. + newdlprefiles="$newdlprefiles $dir/$old_library"
  46497. + # Keep a list of preopened convenience libraries to check
  46498. + # that they are being used correctly in the link pass.
  46499. + test -z "$libdir" && \
  46500. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  46501. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  46502. + elif test -n "$dlname"; then
  46503. + newdlprefiles="$newdlprefiles $dir/$dlname"
  46504. + else
  46505. + newdlprefiles="$newdlprefiles $dir/$linklib"
  46506. + fi
  46507. + fi # $pass = dlpreopen
  46508. +
  46509. + if test -z "$libdir"; then
  46510. + # Link the convenience library
  46511. + if test "$linkmode" = lib; then
  46512. + deplibs="$dir/$old_library $deplibs"
  46513. + elif test "$linkmode,$pass" = "prog,link"; then
  46514. + compile_deplibs="$dir/$old_library $compile_deplibs"
  46515. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  46516. + else
  46517. + deplibs="$lib $deplibs" # used for prog,scan pass
  46518. + fi
  46519. + continue
  46520. + fi
  46521. +
  46522. +
  46523. + if test "$linkmode" = prog && test "$pass" != link; then
  46524. + newlib_search_path="$newlib_search_path $ladir"
  46525. + deplibs="$lib $deplibs"
  46526. +
  46527. + linkalldeplibs=no
  46528. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  46529. + test "$build_libtool_libs" = no; then
  46530. + linkalldeplibs=yes
  46531. + fi
  46532. +
  46533. + tmp_libs=
  46534. + for deplib in $dependency_libs; do
  46535. + case $deplib in
  46536. + -L*) func_stripname '-L' '' "$deplib"
  46537. + newlib_search_path="$newlib_search_path $func_stripname_result"
  46538. + ;;
  46539. + esac
  46540. + # Need to link against all dependency_libs?
  46541. + if test "$linkalldeplibs" = yes; then
  46542. + deplibs="$deplib $deplibs"
  46543. + else
  46544. + # Need to hardcode shared library paths
  46545. + # or/and link against static libraries
  46546. + newdependency_libs="$deplib $newdependency_libs"
  46547. + fi
  46548. + if $opt_duplicate_deps ; then
  46549. + case "$tmp_libs " in
  46550. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46551. + esac
  46552. + fi
  46553. + tmp_libs="$tmp_libs $deplib"
  46554. + done # for deplib
  46555. + continue
  46556. + fi # $linkmode = prog...
  46557. +
  46558. + if test "$linkmode,$pass" = "prog,link"; then
  46559. + if test -n "$library_names" &&
  46560. + { { test "$prefer_static_libs" = no ||
  46561. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  46562. + test -z "$old_library"; }; then
  46563. + # We need to hardcode the library path
  46564. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  46565. + # Make sure the rpath contains only unique directories.
  46566. + case "$temp_rpath:" in
  46567. + *"$absdir:"*) ;;
  46568. + *) temp_rpath="$temp_rpath$absdir:" ;;
  46569. + esac
  46570. + fi
  46571. +
  46572. + # Hardcode the library path.
  46573. + # Skip directories that are in the system default run-time
  46574. + # search path.
  46575. + case " $sys_lib_dlsearch_path " in
  46576. + *" $absdir "*) ;;
  46577. + *)
  46578. + case "$compile_rpath " in
  46579. + *" $absdir "*) ;;
  46580. + *) compile_rpath="$compile_rpath $absdir"
  46581. + esac
  46582. + ;;
  46583. + esac
  46584. + case " $sys_lib_dlsearch_path " in
  46585. + *" $libdir "*) ;;
  46586. + *)
  46587. + case "$finalize_rpath " in
  46588. + *" $libdir "*) ;;
  46589. + *) finalize_rpath="$finalize_rpath $libdir"
  46590. + esac
  46591. + ;;
  46592. + esac
  46593. + fi # $linkmode,$pass = prog,link...
  46594. +
  46595. + if test "$alldeplibs" = yes &&
  46596. + { test "$deplibs_check_method" = pass_all ||
  46597. + { test "$build_libtool_libs" = yes &&
  46598. + test -n "$library_names"; }; }; then
  46599. + # We only need to search for static libraries
  46600. + continue
  46601. + fi
  46602. + fi
  46603. +
  46604. + link_static=no # Whether the deplib will be linked statically
  46605. + use_static_libs=$prefer_static_libs
  46606. + if test "$use_static_libs" = built && test "$installed" = yes; then
  46607. + use_static_libs=no
  46608. + fi
  46609. + if test -n "$library_names" &&
  46610. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  46611. + case $host in
  46612. + *cygwin* | *mingw* | *cegcc*)
  46613. + # No point in relinking DLLs because paths are not encoded
  46614. + notinst_deplibs="$notinst_deplibs $lib"
  46615. + need_relink=no
  46616. + ;;
  46617. + *)
  46618. + if test "$installed" = no; then
  46619. + notinst_deplibs="$notinst_deplibs $lib"
  46620. + need_relink=yes
  46621. + fi
  46622. + ;;
  46623. + esac
  46624. + # This is a shared library
  46625. +
  46626. + # Warn about portability, can't link against -module's on some
  46627. + # systems (darwin). Don't bleat about dlopened modules though!
  46628. + dlopenmodule=""
  46629. + for dlpremoduletest in $dlprefiles; do
  46630. + if test "X$dlpremoduletest" = "X$lib"; then
  46631. + dlopenmodule="$dlpremoduletest"
  46632. + break
  46633. + fi
  46634. + done
  46635. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  46636. + $ECHO
  46637. + if test "$linkmode" = prog; then
  46638. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  46639. + else
  46640. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  46641. + fi
  46642. + $ECHO "*** $linklib is not portable!"
  46643. + fi
  46644. + if test "$linkmode" = lib &&
  46645. + test "$hardcode_into_libs" = yes; then
  46646. + # Hardcode the library path.
  46647. + # Skip directories that are in the system default run-time
  46648. + # search path.
  46649. + case " $sys_lib_dlsearch_path " in
  46650. + *" $absdir "*) ;;
  46651. + *)
  46652. + case "$compile_rpath " in
  46653. + *" $absdir "*) ;;
  46654. + *) compile_rpath="$compile_rpath $absdir"
  46655. + esac
  46656. + ;;
  46657. + esac
  46658. + case " $sys_lib_dlsearch_path " in
  46659. + *" $libdir "*) ;;
  46660. + *)
  46661. + case "$finalize_rpath " in
  46662. + *" $libdir "*) ;;
  46663. + *) finalize_rpath="$finalize_rpath $libdir"
  46664. + esac
  46665. + ;;
  46666. + esac
  46667. + fi
  46668. +
  46669. + if test -n "$old_archive_from_expsyms_cmds"; then
  46670. + # figure out the soname
  46671. + set dummy $library_names
  46672. + shift
  46673. + realname="$1"
  46674. + shift
  46675. + libname=`eval "\\$ECHO \"$libname_spec\""`
  46676. + # use dlname if we got it. it's perfectly good, no?
  46677. + if test -n "$dlname"; then
  46678. + soname="$dlname"
  46679. + elif test -n "$soname_spec"; then
  46680. + # bleh windows
  46681. + case $host in
  46682. + *cygwin* | mingw* | *cegcc*)
  46683. + func_arith $current - $age
  46684. + major=$func_arith_result
  46685. + versuffix="-$major"
  46686. + ;;
  46687. + esac
  46688. + eval soname=\"$soname_spec\"
  46689. + else
  46690. + soname="$realname"
  46691. + fi
  46692. +
  46693. + # Make a new name for the extract_expsyms_cmds to use
  46694. + soroot="$soname"
  46695. + func_basename "$soroot"
  46696. + soname="$func_basename_result"
  46697. + func_stripname 'lib' '.dll' "$soname"
  46698. + newlib=libimp-$func_stripname_result.a
  46699. +
  46700. + # If the library has no export list, then create one now
  46701. + if test -f "$output_objdir/$soname-def"; then :
  46702. + else
  46703. + func_verbose "extracting exported symbol list from \`$soname'"
  46704. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  46705. + fi
  46706. +
  46707. + # Create $newlib
  46708. + if test -f "$output_objdir/$newlib"; then :; else
  46709. + func_verbose "generating import library for \`$soname'"
  46710. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  46711. + fi
  46712. + # make sure the library variables are pointing to the new library
  46713. + dir=$output_objdir
  46714. + linklib=$newlib
  46715. + fi # test -n "$old_archive_from_expsyms_cmds"
  46716. +
  46717. + if test "$linkmode" = prog || test "$mode" != relink; then
  46718. + add_shlibpath=
  46719. + add_dir=
  46720. + add=
  46721. + lib_linked=yes
  46722. + case $hardcode_action in
  46723. + immediate | unsupported)
  46724. + if test "$hardcode_direct" = no; then
  46725. + add="$dir/$linklib"
  46726. + case $host in
  46727. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  46728. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  46729. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  46730. + *-*-unixware7*) add_dir="-L$dir" ;;
  46731. + *-*-darwin* )
  46732. + # if the lib is a (non-dlopened) module then we can not
  46733. + # link against it, someone is ignoring the earlier warnings
  46734. + if /usr/bin/file -L $add 2> /dev/null |
  46735. + $GREP ": [^:]* bundle" >/dev/null ; then
  46736. + if test "X$dlopenmodule" != "X$lib"; then
  46737. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  46738. + if test -z "$old_library" ; then
  46739. + $ECHO
  46740. + $ECHO "*** And there doesn't seem to be a static archive available"
  46741. + $ECHO "*** The link will probably fail, sorry"
  46742. + else
  46743. + add="$dir/$old_library"
  46744. + fi
  46745. + elif test -n "$old_library"; then
  46746. + add="$dir/$old_library"
  46747. + fi
  46748. + fi
  46749. + esac
  46750. + elif test "$hardcode_minus_L" = no; then
  46751. + case $host in
  46752. + *-*-sunos*) add_shlibpath="$dir" ;;
  46753. + esac
  46754. + add_dir="-L$dir"
  46755. + add="-l$name"
  46756. + elif test "$hardcode_shlibpath_var" = no; then
  46757. + add_shlibpath="$dir"
  46758. + add="-l$name"
  46759. + else
  46760. + lib_linked=no
  46761. + fi
  46762. + ;;
  46763. + relink)
  46764. + if test "$hardcode_direct" = yes &&
  46765. + test "$hardcode_direct_absolute" = no; then
  46766. + add="$dir/$linklib"
  46767. + elif test "$hardcode_minus_L" = yes; then
  46768. + add_dir="-L$dir"
  46769. + # Try looking first in the location we're being installed to.
  46770. + if test -n "$inst_prefix_dir"; then
  46771. + case $libdir in
  46772. + [\\/]*)
  46773. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46774. + ;;
  46775. + esac
  46776. + fi
  46777. + add="-l$name"
  46778. + elif test "$hardcode_shlibpath_var" = yes; then
  46779. + add_shlibpath="$dir"
  46780. + add="-l$name"
  46781. + else
  46782. + lib_linked=no
  46783. + fi
  46784. + ;;
  46785. + *) lib_linked=no ;;
  46786. + esac
  46787. +
  46788. + if test "$lib_linked" != yes; then
  46789. + func_fatal_configuration "unsupported hardcode properties"
  46790. + fi
  46791. +
  46792. + if test -n "$add_shlibpath"; then
  46793. + case :$compile_shlibpath: in
  46794. + *":$add_shlibpath:"*) ;;
  46795. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  46796. + esac
  46797. + fi
  46798. + if test "$linkmode" = prog; then
  46799. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  46800. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  46801. + else
  46802. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46803. + test -n "$add" && deplibs="$add $deplibs"
  46804. + if test "$hardcode_direct" != yes &&
  46805. + test "$hardcode_minus_L" != yes &&
  46806. + test "$hardcode_shlibpath_var" = yes; then
  46807. + case :$finalize_shlibpath: in
  46808. + *":$libdir:"*) ;;
  46809. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46810. + esac
  46811. + fi
  46812. + fi
  46813. + fi
  46814. +
  46815. + if test "$linkmode" = prog || test "$mode" = relink; then
  46816. + add_shlibpath=
  46817. + add_dir=
  46818. + add=
  46819. + # Finalize command for both is simple: just hardcode it.
  46820. + if test "$hardcode_direct" = yes &&
  46821. + test "$hardcode_direct_absolute" = no; then
  46822. + add="$libdir/$linklib"
  46823. + elif test "$hardcode_minus_L" = yes; then
  46824. + add_dir="-L$libdir"
  46825. + add="-l$name"
  46826. + elif test "$hardcode_shlibpath_var" = yes; then
  46827. + case :$finalize_shlibpath: in
  46828. + *":$libdir:"*) ;;
  46829. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46830. + esac
  46831. + add="-l$name"
  46832. + elif test "$hardcode_automatic" = yes; then
  46833. + if test -n "$inst_prefix_dir" &&
  46834. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  46835. + add="$inst_prefix_dir$libdir/$linklib"
  46836. + else
  46837. + add="$libdir/$linklib"
  46838. + fi
  46839. + else
  46840. + # We cannot seem to hardcode it, guess we'll fake it.
  46841. + add_dir="-L$libdir"
  46842. + # Try looking first in the location we're being installed to.
  46843. + if test -n "$inst_prefix_dir"; then
  46844. + case $libdir in
  46845. + [\\/]*)
  46846. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46847. + ;;
  46848. + esac
  46849. + fi
  46850. + add="-l$name"
  46851. + fi
  46852. +
  46853. + if test "$linkmode" = prog; then
  46854. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  46855. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  46856. + else
  46857. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46858. + test -n "$add" && deplibs="$add $deplibs"
  46859. + fi
  46860. + fi
  46861. + elif test "$linkmode" = prog; then
  46862. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  46863. + # is not unsupported. This is valid on all known static and
  46864. + # shared platforms.
  46865. + if test "$hardcode_direct" != unsupported; then
  46866. + test -n "$old_library" && linklib="$old_library"
  46867. + compile_deplibs="$dir/$linklib $compile_deplibs"
  46868. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  46869. + else
  46870. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  46871. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  46872. + fi
  46873. + elif test "$build_libtool_libs" = yes; then
  46874. + # Not a shared library
  46875. + if test "$deplibs_check_method" != pass_all; then
  46876. + # We're trying link a shared library against a static one
  46877. + # but the system doesn't support it.
  46878. +
  46879. + # Just print a warning and add the library to dependency_libs so
  46880. + # that the program can be linked against the static library.
  46881. + $ECHO
  46882. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  46883. + $ECHO "*** I have the capability to make that library automatically link in when"
  46884. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46885. + $ECHO "*** shared version of the library, which you do not appear to have."
  46886. + if test "$module" = yes; then
  46887. + $ECHO "*** But as you try to build a module library, libtool will still create "
  46888. + $ECHO "*** a static module, that should work as long as the dlopening application"
  46889. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  46890. + if test -z "$global_symbol_pipe"; then
  46891. + $ECHO
  46892. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  46893. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46894. + $ECHO "*** not find such a program. So, this module is probably useless."
  46895. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  46896. + fi
  46897. + if test "$build_old_libs" = no; then
  46898. + build_libtool_libs=module
  46899. + build_old_libs=yes
  46900. + else
  46901. + build_libtool_libs=no
  46902. + fi
  46903. + fi
  46904. + else
  46905. + deplibs="$dir/$old_library $deplibs"
  46906. + link_static=yes
  46907. + fi
  46908. + fi # link shared/static library?
  46909. +
  46910. + if test "$linkmode" = lib; then
  46911. + if test -n "$dependency_libs" &&
  46912. + { test "$hardcode_into_libs" != yes ||
  46913. + test "$build_old_libs" = yes ||
  46914. + test "$link_static" = yes; }; then
  46915. + # Extract -R from dependency_libs
  46916. + temp_deplibs=
  46917. + for libdir in $dependency_libs; do
  46918. + case $libdir in
  46919. + -R*) func_stripname '-R' '' "$libdir"
  46920. + temp_xrpath=$func_stripname_result
  46921. + case " $xrpath " in
  46922. + *" $temp_xrpath "*) ;;
  46923. + *) xrpath="$xrpath $temp_xrpath";;
  46924. + esac;;
  46925. + *) temp_deplibs="$temp_deplibs $libdir";;
  46926. + esac
  46927. + done
  46928. + dependency_libs="$temp_deplibs"
  46929. + fi
  46930. +
  46931. + newlib_search_path="$newlib_search_path $absdir"
  46932. + # Link against this library
  46933. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  46934. + # ... and its dependency_libs
  46935. + tmp_libs=
  46936. + for deplib in $dependency_libs; do
  46937. + newdependency_libs="$deplib $newdependency_libs"
  46938. + if $opt_duplicate_deps ; then
  46939. + case "$tmp_libs " in
  46940. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46941. + esac
  46942. + fi
  46943. + tmp_libs="$tmp_libs $deplib"
  46944. + done
  46945. +
  46946. + if test "$link_all_deplibs" != no; then
  46947. + # Add the search paths of all dependency libraries
  46948. + for deplib in $dependency_libs; do
  46949. + path=
  46950. + case $deplib in
  46951. + -L*) path="$deplib" ;;
  46952. + *.la)
  46953. + func_dirname "$deplib" "" "."
  46954. + dir="$func_dirname_result"
  46955. + # We need an absolute path.
  46956. + case $dir in
  46957. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  46958. + *)
  46959. + absdir=`cd "$dir" && pwd`
  46960. + if test -z "$absdir"; then
  46961. + func_warning "cannot determine absolute directory name of \`$dir'"
  46962. + absdir="$dir"
  46963. + fi
  46964. + ;;
  46965. + esac
  46966. + if $GREP "^installed=no" $deplib > /dev/null; then
  46967. + case $host in
  46968. + *-*-darwin*)
  46969. + depdepl=
  46970. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  46971. + if test -n "$deplibrary_names" ; then
  46972. + for tmp in $deplibrary_names ; do
  46973. + depdepl=$tmp
  46974. + done
  46975. + if test -f "$absdir/$objdir/$depdepl" ; then
  46976. + depdepl="$absdir/$objdir/$depdepl"
  46977. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  46978. + if test -z "$darwin_install_name"; then
  46979. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  46980. + fi
  46981. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  46982. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  46983. + path=
  46984. + fi
  46985. + fi
  46986. + ;;
  46987. + *)
  46988. + path="-L$absdir/$objdir"
  46989. + ;;
  46990. + esac
  46991. + else
  46992. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  46993. + test -z "$libdir" && \
  46994. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  46995. + test "$absdir" != "$libdir" && \
  46996. + func_warning "\`$deplib' seems to be moved"
  46997. +
  46998. + path="-L$absdir"
  46999. + fi
  47000. + ;;
  47001. + esac
  47002. + case " $deplibs " in
  47003. + *" $path "*) ;;
  47004. + *) deplibs="$path $deplibs" ;;
  47005. + esac
  47006. + done
  47007. + fi # link_all_deplibs != no
  47008. + fi # linkmode = lib
  47009. + done # for deplib in $libs
  47010. + if test "$pass" = link; then
  47011. + if test "$linkmode" = "prog"; then
  47012. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  47013. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  47014. + else
  47015. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47016. + fi
  47017. + fi
  47018. + dependency_libs="$newdependency_libs"
  47019. + if test "$pass" = dlpreopen; then
  47020. + # Link the dlpreopened libraries before other libraries
  47021. + for deplib in $save_deplibs; do
  47022. + deplibs="$deplib $deplibs"
  47023. + done
  47024. + fi
  47025. + if test "$pass" != dlopen; then
  47026. + if test "$pass" != conv; then
  47027. + # Make sure lib_search_path contains only unique directories.
  47028. + lib_search_path=
  47029. + for dir in $newlib_search_path; do
  47030. + case "$lib_search_path " in
  47031. + *" $dir "*) ;;
  47032. + *) lib_search_path="$lib_search_path $dir" ;;
  47033. + esac
  47034. + done
  47035. + newlib_search_path=
  47036. + fi
  47037. +
  47038. + if test "$linkmode,$pass" != "prog,link"; then
  47039. + vars="deplibs"
  47040. + else
  47041. + vars="compile_deplibs finalize_deplibs"
  47042. + fi
  47043. + for var in $vars dependency_libs; do
  47044. + # Add libraries to $var in reverse order
  47045. + eval tmp_libs=\"\$$var\"
  47046. + new_libs=
  47047. + for deplib in $tmp_libs; do
  47048. + # FIXME: Pedantically, this is the right thing to do, so
  47049. + # that some nasty dependency loop isn't accidentally
  47050. + # broken:
  47051. + #new_libs="$deplib $new_libs"
  47052. + # Pragmatically, this seems to cause very few problems in
  47053. + # practice:
  47054. + case $deplib in
  47055. + -L*) new_libs="$deplib $new_libs" ;;
  47056. + -R*) ;;
  47057. + *)
  47058. + # And here is the reason: when a library appears more
  47059. + # than once as an explicit dependence of a library, or
  47060. + # is implicitly linked in more than once by the
  47061. + # compiler, it is considered special, and multiple
  47062. + # occurrences thereof are not removed. Compare this
  47063. + # with having the same library being listed as a
  47064. + # dependency of multiple other libraries: in this case,
  47065. + # we know (pedantically, we assume) the library does not
  47066. + # need to be listed more than once, so we keep only the
  47067. + # last copy. This is not always right, but it is rare
  47068. + # enough that we require users that really mean to play
  47069. + # such unportable linking tricks to link the library
  47070. + # using -Wl,-lname, so that libtool does not consider it
  47071. + # for duplicate removal.
  47072. + case " $specialdeplibs " in
  47073. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  47074. + *)
  47075. + case " $new_libs " in
  47076. + *" $deplib "*) ;;
  47077. + *) new_libs="$deplib $new_libs" ;;
  47078. + esac
  47079. + ;;
  47080. + esac
  47081. + ;;
  47082. + esac
  47083. + done
  47084. + tmp_libs=
  47085. + for deplib in $new_libs; do
  47086. + case $deplib in
  47087. + -L*)
  47088. + case " $tmp_libs " in
  47089. + *" $deplib "*) ;;
  47090. + *) tmp_libs="$tmp_libs $deplib" ;;
  47091. + esac
  47092. + ;;
  47093. + *) tmp_libs="$tmp_libs $deplib" ;;
  47094. + esac
  47095. + done
  47096. + eval $var=\"$tmp_libs\"
  47097. + done # for var
  47098. + fi
  47099. + # Last step: remove runtime libs from dependency_libs
  47100. + # (they stay in deplibs)
  47101. + tmp_libs=
  47102. + for i in $dependency_libs ; do
  47103. + case " $predeps $postdeps $compiler_lib_search_path " in
  47104. + *" $i "*)
  47105. + i=""
  47106. + ;;
  47107. + esac
  47108. + if test -n "$i" ; then
  47109. + tmp_libs="$tmp_libs $i"
  47110. + fi
  47111. + done
  47112. + dependency_libs=$tmp_libs
  47113. + done # for pass
  47114. + if test "$linkmode" = prog; then
  47115. + dlfiles="$newdlfiles"
  47116. + fi
  47117. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  47118. + dlprefiles="$newdlprefiles"
  47119. + fi
  47120. +
  47121. + case $linkmode in
  47122. + oldlib)
  47123. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  47124. + func_warning "\`-dlopen' is ignored for archives"
  47125. + fi
  47126. +
  47127. + case " $deplibs" in
  47128. + *\ -l* | *\ -L*)
  47129. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  47130. + esac
  47131. +
  47132. + test -n "$rpath" && \
  47133. + func_warning "\`-rpath' is ignored for archives"
  47134. +
  47135. + test -n "$xrpath" && \
  47136. + func_warning "\`-R' is ignored for archives"
  47137. +
  47138. + test -n "$vinfo" && \
  47139. + func_warning "\`-version-info/-version-number' is ignored for archives"
  47140. +
  47141. + test -n "$release" && \
  47142. + func_warning "\`-release' is ignored for archives"
  47143. +
  47144. + test -n "$export_symbols$export_symbols_regex" && \
  47145. + func_warning "\`-export-symbols' is ignored for archives"
  47146. +
  47147. + # Now set the variables for building old libraries.
  47148. + build_libtool_libs=no
  47149. + oldlibs="$output"
  47150. + objs="$objs$old_deplibs"
  47151. + ;;
  47152. +
  47153. + lib)
  47154. + # Make sure we only generate libraries of the form `libNAME.la'.
  47155. + case $outputname in
  47156. + lib*)
  47157. + func_stripname 'lib' '.la' "$outputname"
  47158. + name=$func_stripname_result
  47159. + eval shared_ext=\"$shrext_cmds\"
  47160. + eval libname=\"$libname_spec\"
  47161. + ;;
  47162. + *)
  47163. + test "$module" = no && \
  47164. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  47165. +
  47166. + if test "$need_lib_prefix" != no; then
  47167. + # Add the "lib" prefix for modules if required
  47168. + func_stripname '' '.la' "$outputname"
  47169. + name=$func_stripname_result
  47170. + eval shared_ext=\"$shrext_cmds\"
  47171. + eval libname=\"$libname_spec\"
  47172. + else
  47173. + func_stripname '' '.la' "$outputname"
  47174. + libname=$func_stripname_result
  47175. + fi
  47176. + ;;
  47177. + esac
  47178. +
  47179. + if test -n "$objs"; then
  47180. + if test "$deplibs_check_method" != pass_all; then
  47181. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  47182. + else
  47183. + $ECHO
  47184. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  47185. + $ECHO "*** objects $objs is not portable!"
  47186. + libobjs="$libobjs $objs"
  47187. + fi
  47188. + fi
  47189. +
  47190. + test "$dlself" != no && \
  47191. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  47192. +
  47193. + set dummy $rpath
  47194. + shift
  47195. + test "$#" -gt 1 && \
  47196. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  47197. +
  47198. + install_libdir="$1"
  47199. +
  47200. + oldlibs=
  47201. + if test -z "$rpath"; then
  47202. + if test "$build_libtool_libs" = yes; then
  47203. + # Building a libtool convenience library.
  47204. + # Some compilers have problems with a `.al' extension so
  47205. + # convenience libraries should have the same extension an
  47206. + # archive normally would.
  47207. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  47208. + build_libtool_libs=convenience
  47209. + build_old_libs=yes
  47210. + fi
  47211. +
  47212. + test -n "$vinfo" && \
  47213. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  47214. +
  47215. + test -n "$release" && \
  47216. + func_warning "\`-release' is ignored for convenience libraries"
  47217. + else
  47218. +
  47219. + # Parse the version information argument.
  47220. + save_ifs="$IFS"; IFS=':'
  47221. + set dummy $vinfo 0 0 0
  47222. + shift
  47223. + IFS="$save_ifs"
  47224. +
  47225. + test -n "$7" && \
  47226. + func_fatal_help "too many parameters to \`-version-info'"
  47227. +
  47228. + # convert absolute version numbers to libtool ages
  47229. + # this retains compatibility with .la files and attempts
  47230. + # to make the code below a bit more comprehensible
  47231. +
  47232. + case $vinfo_number in
  47233. + yes)
  47234. + number_major="$1"
  47235. + number_minor="$2"
  47236. + number_revision="$3"
  47237. + #
  47238. + # There are really only two kinds -- those that
  47239. + # use the current revision as the major version
  47240. + # and those that subtract age and use age as
  47241. + # a minor version. But, then there is irix
  47242. + # which has an extra 1 added just for fun
  47243. + #
  47244. + case $version_type in
  47245. + darwin|linux|osf|windows|none)
  47246. + func_arith $number_major + $number_minor
  47247. + current=$func_arith_result
  47248. + age="$number_minor"
  47249. + revision="$number_revision"
  47250. + ;;
  47251. + freebsd-aout|freebsd-elf|sunos)
  47252. + current="$number_major"
  47253. + revision="$number_minor"
  47254. + age="0"
  47255. + ;;
  47256. + irix|nonstopux)
  47257. + func_arith $number_major + $number_minor
  47258. + current=$func_arith_result
  47259. + age="$number_minor"
  47260. + revision="$number_minor"
  47261. + lt_irix_increment=no
  47262. + ;;
  47263. + *)
  47264. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  47265. + ;;
  47266. + esac
  47267. + ;;
  47268. + no)
  47269. + current="$1"
  47270. + revision="$2"
  47271. + age="$3"
  47272. + ;;
  47273. + esac
  47274. +
  47275. + # Check that each of the things are valid numbers.
  47276. + case $current in
  47277. + 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]) ;;
  47278. + *)
  47279. + func_error "CURRENT \`$current' must be a nonnegative integer"
  47280. + func_fatal_error "\`$vinfo' is not valid version information"
  47281. + ;;
  47282. + esac
  47283. +
  47284. + case $revision in
  47285. + 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]) ;;
  47286. + *)
  47287. + func_error "REVISION \`$revision' must be a nonnegative integer"
  47288. + func_fatal_error "\`$vinfo' is not valid version information"
  47289. + ;;
  47290. + esac
  47291. +
  47292. + case $age in
  47293. + 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]) ;;
  47294. + *)
  47295. + func_error "AGE \`$age' must be a nonnegative integer"
  47296. + func_fatal_error "\`$vinfo' is not valid version information"
  47297. + ;;
  47298. + esac
  47299. +
  47300. + if test "$age" -gt "$current"; then
  47301. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  47302. + func_fatal_error "\`$vinfo' is not valid version information"
  47303. + fi
  47304. +
  47305. + # Calculate the version variables.
  47306. + major=
  47307. + versuffix=
  47308. + verstring=
  47309. + case $version_type in
  47310. + none) ;;
  47311. +
  47312. + darwin)
  47313. + # Like Linux, but with the current version available in
  47314. + # verstring for coding it into the library header
  47315. + func_arith $current - $age
  47316. + major=.$func_arith_result
  47317. + versuffix="$major.$age.$revision"
  47318. + # Darwin ld doesn't like 0 for these options...
  47319. + func_arith $current + 1
  47320. + minor_current=$func_arith_result
  47321. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  47322. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  47323. + ;;
  47324. +
  47325. + freebsd-aout)
  47326. + major=".$current"
  47327. + versuffix=".$current.$revision";
  47328. + ;;
  47329. +
  47330. + freebsd-elf)
  47331. + major=".$current"
  47332. + versuffix=".$current"
  47333. + ;;
  47334. +
  47335. + irix | nonstopux)
  47336. + if test "X$lt_irix_increment" = "Xno"; then
  47337. + func_arith $current - $age
  47338. + else
  47339. + func_arith $current - $age + 1
  47340. + fi
  47341. + major=$func_arith_result
  47342. +
  47343. + case $version_type in
  47344. + nonstopux) verstring_prefix=nonstopux ;;
  47345. + *) verstring_prefix=sgi ;;
  47346. + esac
  47347. + verstring="$verstring_prefix$major.$revision"
  47348. +
  47349. + # Add in all the interfaces that we are compatible with.
  47350. + loop=$revision
  47351. + while test "$loop" -ne 0; do
  47352. + func_arith $revision - $loop
  47353. + iface=$func_arith_result
  47354. + func_arith $loop - 1
  47355. + loop=$func_arith_result
  47356. + verstring="$verstring_prefix$major.$iface:$verstring"
  47357. + done
  47358. +
  47359. + # Before this point, $major must not contain `.'.
  47360. + major=.$major
  47361. + versuffix="$major.$revision"
  47362. + ;;
  47363. +
  47364. + linux)
  47365. + func_arith $current - $age
  47366. + major=.$func_arith_result
  47367. + versuffix="$major.$age.$revision"
  47368. + ;;
  47369. +
  47370. + osf)
  47371. + func_arith $current - $age
  47372. + major=.$func_arith_result
  47373. + versuffix=".$current.$age.$revision"
  47374. + verstring="$current.$age.$revision"
  47375. +
  47376. + # Add in all the interfaces that we are compatible with.
  47377. + loop=$age
  47378. + while test "$loop" -ne 0; do
  47379. + func_arith $current - $loop
  47380. + iface=$func_arith_result
  47381. + func_arith $loop - 1
  47382. + loop=$func_arith_result
  47383. + verstring="$verstring:${iface}.0"
  47384. + done
  47385. +
  47386. + # Make executables depend on our current version.
  47387. + verstring="$verstring:${current}.0"
  47388. + ;;
  47389. +
  47390. + qnx)
  47391. + major=".$current"
  47392. + versuffix=".$current"
  47393. + ;;
  47394. +
  47395. + sunos)
  47396. + major=".$current"
  47397. + versuffix=".$current.$revision"
  47398. + ;;
  47399. +
  47400. + windows)
  47401. + # Use '-' rather than '.', since we only want one
  47402. + # extension on DOS 8.3 filesystems.
  47403. + func_arith $current - $age
  47404. + major=$func_arith_result
  47405. + versuffix="-$major"
  47406. + ;;
  47407. +
  47408. + *)
  47409. + func_fatal_configuration "unknown library version type \`$version_type'"
  47410. + ;;
  47411. + esac
  47412. +
  47413. + # Clear the version info if we defaulted, and they specified a release.
  47414. + if test -z "$vinfo" && test -n "$release"; then
  47415. + major=
  47416. + case $version_type in
  47417. + darwin)
  47418. + # we can't check for "0.0" in archive_cmds due to quoting
  47419. + # problems, so we reset it completely
  47420. + verstring=
  47421. + ;;
  47422. + *)
  47423. + verstring="0.0"
  47424. + ;;
  47425. + esac
  47426. + if test "$need_version" = no; then
  47427. + versuffix=
  47428. + else
  47429. + versuffix=".0.0"
  47430. + fi
  47431. + fi
  47432. +
  47433. + # Remove version info from name if versioning should be avoided
  47434. + if test "$avoid_version" = yes && test "$need_version" = no; then
  47435. + major=
  47436. + versuffix=
  47437. + verstring=""
  47438. + fi
  47439. +
  47440. + # Check to see if the archive will have undefined symbols.
  47441. + if test "$allow_undefined" = yes; then
  47442. + if test "$allow_undefined_flag" = unsupported; then
  47443. + func_warning "undefined symbols not allowed in $host shared libraries"
  47444. + build_libtool_libs=no
  47445. + build_old_libs=yes
  47446. + fi
  47447. + else
  47448. + # Don't allow undefined symbols.
  47449. + allow_undefined_flag="$no_undefined_flag"
  47450. + fi
  47451. +
  47452. + fi
  47453. +
  47454. + func_generate_dlsyms "$libname" "$libname" "yes"
  47455. + libobjs="$libobjs $symfileobj"
  47456. + test "X$libobjs" = "X " && libobjs=
  47457. +
  47458. + if test "$mode" != relink; then
  47459. + # Remove our outputs, but don't remove object files since they
  47460. + # may have been created when compiling PIC objects.
  47461. + removelist=
  47462. + tempremovelist=`$ECHO "$output_objdir/*"`
  47463. + for p in $tempremovelist; do
  47464. + case $p in
  47465. + *.$objext | *.gcno)
  47466. + ;;
  47467. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  47468. + if test "X$precious_files_regex" != "X"; then
  47469. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  47470. + then
  47471. + continue
  47472. + fi
  47473. + fi
  47474. + removelist="$removelist $p"
  47475. + ;;
  47476. + *) ;;
  47477. + esac
  47478. + done
  47479. + test -n "$removelist" && \
  47480. + func_show_eval "${RM}r \$removelist"
  47481. + fi
  47482. +
  47483. + # Now set the variables for building old libraries.
  47484. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  47485. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  47486. +
  47487. + # Transform .lo files to .o files.
  47488. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  47489. + fi
  47490. +
  47491. + # Eliminate all temporary directories.
  47492. + #for path in $notinst_path; do
  47493. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  47494. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  47495. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  47496. + #done
  47497. +
  47498. + if test -n "$xrpath"; then
  47499. + # If the user specified any rpath flags, then add them.
  47500. + temp_xrpath=
  47501. + for libdir in $xrpath; do
  47502. + temp_xrpath="$temp_xrpath -R$libdir"
  47503. + case "$finalize_rpath " in
  47504. + *" $libdir "*) ;;
  47505. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  47506. + esac
  47507. + done
  47508. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  47509. + dependency_libs="$temp_xrpath $dependency_libs"
  47510. + fi
  47511. + fi
  47512. +
  47513. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  47514. + old_dlfiles="$dlfiles"
  47515. + dlfiles=
  47516. + for lib in $old_dlfiles; do
  47517. + case " $dlprefiles $dlfiles " in
  47518. + *" $lib "*) ;;
  47519. + *) dlfiles="$dlfiles $lib" ;;
  47520. + esac
  47521. + done
  47522. +
  47523. + # Make sure dlprefiles contains only unique files
  47524. + old_dlprefiles="$dlprefiles"
  47525. + dlprefiles=
  47526. + for lib in $old_dlprefiles; do
  47527. + case "$dlprefiles " in
  47528. + *" $lib "*) ;;
  47529. + *) dlprefiles="$dlprefiles $lib" ;;
  47530. + esac
  47531. + done
  47532. +
  47533. + if test "$build_libtool_libs" = yes; then
  47534. + if test -n "$rpath"; then
  47535. + case $host in
  47536. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  47537. + # these systems don't actually have a c library (as such)!
  47538. + ;;
  47539. + *-*-rhapsody* | *-*-darwin1.[012])
  47540. + # Rhapsody C library is in the System framework
  47541. + deplibs="$deplibs System.ltframework"
  47542. + ;;
  47543. + *-*-netbsd*)
  47544. + # Don't link with libc until the a.out ld.so is fixed.
  47545. + ;;
  47546. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47547. + # Do not include libc due to us having libc/libc_r.
  47548. + ;;
  47549. + *-*-sco3.2v5* | *-*-sco5v6*)
  47550. + # Causes problems with __ctype
  47551. + ;;
  47552. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47553. + # Compiler inserts libc in the correct place for threads to work
  47554. + ;;
  47555. + *)
  47556. + # Add libc to deplibs on all other systems if necessary.
  47557. + if test "$build_libtool_need_lc" = "yes"; then
  47558. + deplibs="$deplibs -lc"
  47559. + fi
  47560. + ;;
  47561. + esac
  47562. + fi
  47563. +
  47564. + # Transform deplibs into only deplibs that can be linked in shared.
  47565. + name_save=$name
  47566. + libname_save=$libname
  47567. + release_save=$release
  47568. + versuffix_save=$versuffix
  47569. + major_save=$major
  47570. + # I'm not sure if I'm treating the release correctly. I think
  47571. + # release should show up in the -l (ie -lgmp5) so we don't want to
  47572. + # add it in twice. Is that correct?
  47573. + release=""
  47574. + versuffix=""
  47575. + major=""
  47576. + newdeplibs=
  47577. + droppeddeps=no
  47578. + case $deplibs_check_method in
  47579. + pass_all)
  47580. + # Don't check for shared/static. Everything works.
  47581. + # This might be a little naive. We might want to check
  47582. + # whether the library exists or not. But this is on
  47583. + # osf3 & osf4 and I'm not really sure... Just
  47584. + # implementing what was already the behavior.
  47585. + newdeplibs=$deplibs
  47586. + ;;
  47587. + test_compile)
  47588. + # This code stresses the "libraries are programs" paradigm to its
  47589. + # limits. Maybe even breaks it. We compile a program, linking it
  47590. + # against the deplibs as a proxy for the library. Then we can check
  47591. + # whether they linked in statically or dynamically with ldd.
  47592. + $opt_dry_run || $RM conftest.c
  47593. + cat > conftest.c <<EOF
  47594. + int main() { return 0; }
  47595. +EOF
  47596. + $opt_dry_run || $RM conftest
  47597. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  47598. + ldd_output=`ldd conftest`
  47599. + for i in $deplibs; do
  47600. + case $i in
  47601. + -l*)
  47602. + func_stripname -l '' "$i"
  47603. + name=$func_stripname_result
  47604. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47605. + case " $predeps $postdeps " in
  47606. + *" $i "*)
  47607. + newdeplibs="$newdeplibs $i"
  47608. + i=""
  47609. + ;;
  47610. + esac
  47611. + fi
  47612. + if test -n "$i" ; then
  47613. + libname=`eval "\\$ECHO \"$libname_spec\""`
  47614. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  47615. + set dummy $deplib_matches; shift
  47616. + deplib_match=$1
  47617. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  47618. + newdeplibs="$newdeplibs $i"
  47619. + else
  47620. + droppeddeps=yes
  47621. + $ECHO
  47622. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  47623. + $ECHO "*** I have the capability to make that library automatically link in when"
  47624. + $ECHO "*** you link to this library. But I can only do this if you have a"
  47625. + $ECHO "*** shared version of the library, which I believe you do not have"
  47626. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  47627. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  47628. + fi
  47629. + fi
  47630. + ;;
  47631. + *)
  47632. + newdeplibs="$newdeplibs $i"
  47633. + ;;
  47634. + esac
  47635. + done
  47636. + else
  47637. + # Error occurred in the first compile. Let's try to salvage
  47638. + # the situation: Compile a separate program for each library.
  47639. + for i in $deplibs; do
  47640. + case $i in
  47641. + -l*)
  47642. + func_stripname -l '' "$i"
  47643. + name=$func_stripname_result
  47644. + $opt_dry_run || $RM conftest
  47645. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  47646. + ldd_output=`ldd conftest`
  47647. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47648. + case " $predeps $postdeps " in
  47649. + *" $i "*)
  47650. + newdeplibs="$newdeplibs $i"
  47651. + i=""
  47652. + ;;
  47653. + esac
  47654. + fi
  47655. + if test -n "$i" ; then
  47656. + libname=`eval "\\$ECHO \"$libname_spec\""`
  47657. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  47658. + set dummy $deplib_matches; shift
  47659. + deplib_match=$1
  47660. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  47661. + newdeplibs="$newdeplibs $i"
  47662. + else
  47663. + droppeddeps=yes
  47664. + $ECHO
  47665. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  47666. + $ECHO "*** I have the capability to make that library automatically link in when"
  47667. + $ECHO "*** you link to this library. But I can only do this if you have a"
  47668. + $ECHO "*** shared version of the library, which you do not appear to have"
  47669. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  47670. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  47671. + fi
  47672. + fi
  47673. + else
  47674. + droppeddeps=yes
  47675. + $ECHO
  47676. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  47677. + $ECHO "*** make it link in! You will probably need to install it or some"
  47678. + $ECHO "*** library that it depends on before this library will be fully"
  47679. + $ECHO "*** functional. Installing it before continuing would be even better."
  47680. + fi
  47681. + ;;
  47682. + *)
  47683. + newdeplibs="$newdeplibs $i"
  47684. + ;;
  47685. + esac
  47686. + done
  47687. + fi
  47688. + ;;
  47689. + file_magic*)
  47690. + set dummy $deplibs_check_method; shift
  47691. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  47692. + for a_deplib in $deplibs; do
  47693. + case $a_deplib in
  47694. + -l*)
  47695. + func_stripname -l '' "$a_deplib"
  47696. + name=$func_stripname_result
  47697. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47698. + case " $predeps $postdeps " in
  47699. + *" $a_deplib "*)
  47700. + newdeplibs="$newdeplibs $a_deplib"
  47701. + a_deplib=""
  47702. + ;;
  47703. + esac
  47704. + fi
  47705. + if test -n "$a_deplib" ; then
  47706. + libname=`eval "\\$ECHO \"$libname_spec\""`
  47707. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47708. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  47709. + for potent_lib in $potential_libs; do
  47710. + # Follow soft links.
  47711. + if ls -lLd "$potent_lib" 2>/dev/null |
  47712. + $GREP " -> " >/dev/null; then
  47713. + continue
  47714. + fi
  47715. + # The statement above tries to avoid entering an
  47716. + # endless loop below, in case of cyclic links.
  47717. + # We might still enter an endless loop, since a link
  47718. + # loop can be closed while we follow links,
  47719. + # but so what?
  47720. + potlib="$potent_lib"
  47721. + while test -h "$potlib" 2>/dev/null; do
  47722. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  47723. + case $potliblink in
  47724. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  47725. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  47726. + esac
  47727. + done
  47728. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  47729. + $SED -e 10q |
  47730. + $EGREP "$file_magic_regex" > /dev/null; then
  47731. + newdeplibs="$newdeplibs $a_deplib"
  47732. + a_deplib=""
  47733. + break 2
  47734. + fi
  47735. + done
  47736. + done
  47737. + fi
  47738. + if test -n "$a_deplib" ; then
  47739. + droppeddeps=yes
  47740. + $ECHO
  47741. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  47742. + $ECHO "*** I have the capability to make that library automatically link in when"
  47743. + $ECHO "*** you link to this library. But I can only do this if you have a"
  47744. + $ECHO "*** shared version of the library, which you do not appear to have"
  47745. + $ECHO "*** because I did check the linker path looking for a file starting"
  47746. + if test -z "$potlib" ; then
  47747. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  47748. + else
  47749. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  47750. + $ECHO "*** using a file magic. Last file checked: $potlib"
  47751. + fi
  47752. + fi
  47753. + ;;
  47754. + *)
  47755. + # Add a -L argument.
  47756. + newdeplibs="$newdeplibs $a_deplib"
  47757. + ;;
  47758. + esac
  47759. + done # Gone through all deplibs.
  47760. + ;;
  47761. + match_pattern*)
  47762. + set dummy $deplibs_check_method; shift
  47763. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  47764. + for a_deplib in $deplibs; do
  47765. + case $a_deplib in
  47766. + -l*)
  47767. + func_stripname -l '' "$a_deplib"
  47768. + name=$func_stripname_result
  47769. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47770. + case " $predeps $postdeps " in
  47771. + *" $a_deplib "*)
  47772. + newdeplibs="$newdeplibs $a_deplib"
  47773. + a_deplib=""
  47774. + ;;
  47775. + esac
  47776. + fi
  47777. + if test -n "$a_deplib" ; then
  47778. + libname=`eval "\\$ECHO \"$libname_spec\""`
  47779. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47780. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  47781. + for potent_lib in $potential_libs; do
  47782. + potlib="$potent_lib" # see symlink-check above in file_magic test
  47783. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  47784. + $EGREP "$match_pattern_regex" > /dev/null; then
  47785. + newdeplibs="$newdeplibs $a_deplib"
  47786. + a_deplib=""
  47787. + break 2
  47788. + fi
  47789. + done
  47790. + done
  47791. + fi
  47792. + if test -n "$a_deplib" ; then
  47793. + droppeddeps=yes
  47794. + $ECHO
  47795. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  47796. + $ECHO "*** I have the capability to make that library automatically link in when"
  47797. + $ECHO "*** you link to this library. But I can only do this if you have a"
  47798. + $ECHO "*** shared version of the library, which you do not appear to have"
  47799. + $ECHO "*** because I did check the linker path looking for a file starting"
  47800. + if test -z "$potlib" ; then
  47801. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  47802. + else
  47803. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  47804. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  47805. + fi
  47806. + fi
  47807. + ;;
  47808. + *)
  47809. + # Add a -L argument.
  47810. + newdeplibs="$newdeplibs $a_deplib"
  47811. + ;;
  47812. + esac
  47813. + done # Gone through all deplibs.
  47814. + ;;
  47815. + none | unknown | *)
  47816. + newdeplibs=""
  47817. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  47818. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  47819. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47820. + for i in $predeps $postdeps ; do
  47821. + # can't use Xsed below, because $i might contain '/'
  47822. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  47823. + done
  47824. + fi
  47825. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  47826. + $GREP . >/dev/null; then
  47827. + $ECHO
  47828. + if test "X$deplibs_check_method" = "Xnone"; then
  47829. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  47830. + else
  47831. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  47832. + fi
  47833. + $ECHO "*** All declared inter-library dependencies are being dropped."
  47834. + droppeddeps=yes
  47835. + fi
  47836. + ;;
  47837. + esac
  47838. + versuffix=$versuffix_save
  47839. + major=$major_save
  47840. + release=$release_save
  47841. + libname=$libname_save
  47842. + name=$name_save
  47843. - # If there was a directory component, then change thisdir.
  47844. - if test \"x\$destdir\" != \"x\$file\"; then
  47845. - case \"\$destdir\" in
  47846. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  47847. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  47848. + case $host in
  47849. + *-*-rhapsody* | *-*-darwin1.[012])
  47850. + # On Rhapsody replace the C library with the System framework
  47851. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  47852. + ;;
  47853. + esac
  47854. +
  47855. + if test "$droppeddeps" = yes; then
  47856. + if test "$module" = yes; then
  47857. + $ECHO
  47858. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  47859. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  47860. + $ECHO "*** a static module, that should work as long as the dlopening"
  47861. + $ECHO "*** application is linked with the -dlopen flag."
  47862. + if test -z "$global_symbol_pipe"; then
  47863. + $ECHO
  47864. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  47865. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  47866. + $ECHO "*** not find such a program. So, this module is probably useless."
  47867. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  47868. + fi
  47869. + if test "$build_old_libs" = no; then
  47870. + oldlibs="$output_objdir/$libname.$libext"
  47871. + build_libtool_libs=module
  47872. + build_old_libs=yes
  47873. + else
  47874. + build_libtool_libs=no
  47875. + fi
  47876. + else
  47877. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  47878. + $ECHO "*** automatically added whenever a program is linked with this library"
  47879. + $ECHO "*** or is declared to -dlopen it."
  47880. +
  47881. + if test "$allow_undefined" = no; then
  47882. + $ECHO
  47883. + $ECHO "*** Since this library must not contain undefined symbols,"
  47884. + $ECHO "*** because either the platform does not support them or"
  47885. + $ECHO "*** it was explicitly requested with -no-undefined,"
  47886. + $ECHO "*** libtool will only create a static version of it."
  47887. + if test "$build_old_libs" = no; then
  47888. + oldlibs="$output_objdir/$libname.$libext"
  47889. + build_libtool_libs=module
  47890. + build_old_libs=yes
  47891. + else
  47892. + build_libtool_libs=no
  47893. + fi
  47894. + fi
  47895. + fi
  47896. + fi
  47897. + # Done checking deplibs!
  47898. + deplibs=$newdeplibs
  47899. + fi
  47900. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  47901. + case $host in
  47902. + *-*-darwin*)
  47903. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47904. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47905. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47906. + ;;
  47907. esac
  47908. - fi
  47909. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  47910. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  47911. - done
  47912. + # move library search paths that coincide with paths to not yet
  47913. + # installed libraries to the beginning of the library search list
  47914. + new_libs=
  47915. + for path in $notinst_path; do
  47916. + case " $new_libs " in
  47917. + *" -L$path/$objdir "*) ;;
  47918. + *)
  47919. + case " $deplibs " in
  47920. + *" -L$path/$objdir "*)
  47921. + new_libs="$new_libs -L$path/$objdir" ;;
  47922. + esac
  47923. + ;;
  47924. + esac
  47925. + done
  47926. + for deplib in $deplibs; do
  47927. + case $deplib in
  47928. + -L*)
  47929. + case " $new_libs " in
  47930. + *" $deplib "*) ;;
  47931. + *) new_libs="$new_libs $deplib" ;;
  47932. + esac
  47933. + ;;
  47934. + *) new_libs="$new_libs $deplib" ;;
  47935. + esac
  47936. + done
  47937. + deplibs="$new_libs"
  47938. - # Try to get the absolute directory name.
  47939. - absdir=\`cd \"\$thisdir\" && pwd\`
  47940. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  47941. -"
  47942. + # All the library-specific variables (install_libdir is set above).
  47943. + library_names=
  47944. + old_library=
  47945. + dlname=
  47946. +
  47947. + # Test again, we may have decided not to build it any more
  47948. + if test "$build_libtool_libs" = yes; then
  47949. + if test "$hardcode_into_libs" = yes; then
  47950. + # Hardcode the library paths
  47951. + hardcode_libdirs=
  47952. + dep_rpath=
  47953. + rpath="$finalize_rpath"
  47954. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  47955. + for libdir in $rpath; do
  47956. + if test -n "$hardcode_libdir_flag_spec"; then
  47957. + if test -n "$hardcode_libdir_separator"; then
  47958. + if test -z "$hardcode_libdirs"; then
  47959. + hardcode_libdirs="$libdir"
  47960. + else
  47961. + # Just accumulate the unique libdirs.
  47962. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47963. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47964. + ;;
  47965. + *)
  47966. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  47967. + ;;
  47968. + esac
  47969. + fi
  47970. + else
  47971. + eval flag=\"$hardcode_libdir_flag_spec\"
  47972. + dep_rpath="$dep_rpath $flag"
  47973. + fi
  47974. + elif test -n "$runpath_var"; then
  47975. + case "$perm_rpath " in
  47976. + *" $libdir "*) ;;
  47977. + *) perm_rpath="$perm_rpath $libdir" ;;
  47978. + esac
  47979. + fi
  47980. + done
  47981. + # Substitute the hardcoded libdirs into the rpath.
  47982. + if test -n "$hardcode_libdir_separator" &&
  47983. + test -n "$hardcode_libdirs"; then
  47984. + libdir="$hardcode_libdirs"
  47985. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  47986. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  47987. + else
  47988. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  47989. + fi
  47990. + fi
  47991. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  47992. + # We should set the runpath_var.
  47993. + rpath=
  47994. + for dir in $perm_rpath; do
  47995. + rpath="$rpath$dir:"
  47996. + done
  47997. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  47998. + fi
  47999. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  48000. + fi
  48001. - if test "$fast_install" = yes; then
  48002. - $echo >> $output "\
  48003. - program=lt-'$outputname'$exeext
  48004. - progdir=\"\$thisdir/$objdir\"
  48005. + shlibpath="$finalize_shlibpath"
  48006. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  48007. + if test -n "$shlibpath"; then
  48008. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  48009. + fi
  48010. - if test ! -f \"\$progdir/\$program\" || \\
  48011. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  48012. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  48013. + # Get the real and link names of the library.
  48014. + eval shared_ext=\"$shrext_cmds\"
  48015. + eval library_names=\"$library_names_spec\"
  48016. + set dummy $library_names
  48017. + shift
  48018. + realname="$1"
  48019. + shift
  48020. - file=\"\$\$-\$program\"
  48021. + if test -n "$soname_spec"; then
  48022. + eval soname=\"$soname_spec\"
  48023. + else
  48024. + soname="$realname"
  48025. + fi
  48026. + if test -z "$dlname"; then
  48027. + dlname=$soname
  48028. + fi
  48029. - if test ! -d \"\$progdir\"; then
  48030. - $mkdir \"\$progdir\"
  48031. - else
  48032. - $rm \"\$progdir/\$file\"
  48033. - fi"
  48034. + lib="$output_objdir/$realname"
  48035. + linknames=
  48036. + for link
  48037. + do
  48038. + linknames="$linknames $link"
  48039. + done
  48040. - $echo >> $output "\
  48041. + # Use standard objects if they are pic
  48042. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48043. + test "X$libobjs" = "X " && libobjs=
  48044. - # relink executable if necessary
  48045. - if test -n \"\$relink_command\"; then
  48046. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  48047. - else
  48048. - $echo \"\$relink_command_output\" >&2
  48049. - $rm \"\$progdir/\$file\"
  48050. - exit $EXIT_FAILURE
  48051. - fi
  48052. - fi
  48053. + delfiles=
  48054. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  48055. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  48056. + export_symbols="$output_objdir/$libname.uexp"
  48057. + delfiles="$delfiles $export_symbols"
  48058. + fi
  48059. +
  48060. + orig_export_symbols=
  48061. + case $host_os in
  48062. + cygwin* | mingw* | cegcc*)
  48063. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  48064. + # exporting using user supplied symfile
  48065. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  48066. + # and it's NOT already a .def file. Must figure out
  48067. + # which of the given symbols are data symbols and tag
  48068. + # them as such. So, trigger use of export_symbols_cmds.
  48069. + # export_symbols gets reassigned inside the "prepare
  48070. + # the list of exported symbols" if statement, so the
  48071. + # include_expsyms logic still works.
  48072. + orig_export_symbols="$export_symbols"
  48073. + export_symbols=
  48074. + always_export_symbols=yes
  48075. + fi
  48076. + fi
  48077. + ;;
  48078. + esac
  48079. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  48080. - { $rm \"\$progdir/\$program\";
  48081. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  48082. - $rm \"\$progdir/\$file\"
  48083. - fi"
  48084. - else
  48085. - $echo >> $output "\
  48086. - program='$outputname'
  48087. - progdir=\"\$thisdir/$objdir\"
  48088. -"
  48089. + # Prepare the list of exported symbols
  48090. + if test -z "$export_symbols"; then
  48091. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  48092. + func_verbose "generating symbol list for \`$libname.la'"
  48093. + export_symbols="$output_objdir/$libname.exp"
  48094. + $opt_dry_run || $RM $export_symbols
  48095. + cmds=$export_symbols_cmds
  48096. + save_ifs="$IFS"; IFS='~'
  48097. + for cmd in $cmds; do
  48098. + IFS="$save_ifs"
  48099. + eval cmd=\"$cmd\"
  48100. + func_len " $cmd"
  48101. + len=$func_len_result
  48102. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48103. + func_show_eval "$cmd" 'exit $?'
  48104. + skipped_export=false
  48105. + else
  48106. + # The command line is too long to execute in one step.
  48107. + func_verbose "using reloadable object file for export list..."
  48108. + skipped_export=:
  48109. + # Break out early, otherwise skipped_export may be
  48110. + # set to false by a later but shorter cmd.
  48111. + break
  48112. + fi
  48113. + done
  48114. + IFS="$save_ifs"
  48115. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  48116. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  48117. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  48118. + fi
  48119. + fi
  48120. fi
  48121. - $echo >> $output "\
  48122. -
  48123. - if test -f \"\$progdir/\$program\"; then"
  48124. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  48125. + tmp_export_symbols="$export_symbols"
  48126. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  48127. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  48128. + fi
  48129. +
  48130. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  48131. + # The given exports_symbols file has to be filtered, so filter it.
  48132. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  48133. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  48134. + # 's' commands which not all seds can handle. GNU sed should be fine
  48135. + # though. Also, the filter scales superlinearly with the number of
  48136. + # global variables. join(1) would be nice here, but unfortunately
  48137. + # isn't a blessed tool.
  48138. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  48139. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  48140. + export_symbols=$output_objdir/$libname.def
  48141. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  48142. + fi
  48143. - # Export our shlibpath_var if we have one.
  48144. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  48145. - $echo >> $output "\
  48146. - # Add our own library path to $shlibpath_var
  48147. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  48148. + tmp_deplibs=
  48149. + for test_deplib in $deplibs; do
  48150. + case " $convenience " in
  48151. + *" $test_deplib "*) ;;
  48152. + *)
  48153. + tmp_deplibs="$tmp_deplibs $test_deplib"
  48154. + ;;
  48155. + esac
  48156. + done
  48157. + deplibs="$tmp_deplibs"
  48158. - # Some systems cannot cope with colon-terminated $shlibpath_var
  48159. - # The second colon is a workaround for a bug in BeOS R4 sed
  48160. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  48161. + if test -n "$convenience"; then
  48162. + if test -n "$whole_archive_flag_spec" &&
  48163. + test "$compiler_needs_object" = yes &&
  48164. + test -z "$libobjs"; then
  48165. + # extract the archives, so we have objects to list.
  48166. + # TODO: could optimize this to just extract one archive.
  48167. + whole_archive_flag_spec=
  48168. + fi
  48169. + if test -n "$whole_archive_flag_spec"; then
  48170. + save_libobjs=$libobjs
  48171. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48172. + test "X$libobjs" = "X " && libobjs=
  48173. + else
  48174. + gentop="$output_objdir/${outputname}x"
  48175. + generated="$generated $gentop"
  48176. - export $shlibpath_var
  48177. -"
  48178. + func_extract_archives $gentop $convenience
  48179. + libobjs="$libobjs $func_extract_archives_result"
  48180. + test "X$libobjs" = "X " && libobjs=
  48181. + fi
  48182. fi
  48183. - # fixup the dll searchpath if we need to.
  48184. - if test -n "$dllsearchpath"; then
  48185. - $echo >> $output "\
  48186. - # Add the dll search path components to the executable PATH
  48187. - PATH=$dllsearchpath:\$PATH
  48188. -"
  48189. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  48190. + eval flag=\"$thread_safe_flag_spec\"
  48191. + linker_flags="$linker_flags $flag"
  48192. fi
  48193. - $echo >> $output "\
  48194. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  48195. - # Run the actual program with our arguments.
  48196. -"
  48197. - case $host in
  48198. - # Backslashes separate directories on plain windows
  48199. - *-*-mingw | *-*-os2*)
  48200. - $echo >> $output "\
  48201. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  48202. -"
  48203. - ;;
  48204. -
  48205. - *)
  48206. - $echo >> $output "\
  48207. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  48208. -"
  48209. - ;;
  48210. - esac
  48211. - $echo >> $output "\
  48212. - \$echo \"\$0: cannot exec \$program \$*\"
  48213. - exit $EXIT_FAILURE
  48214. - fi
  48215. - else
  48216. - # The program doesn't exist.
  48217. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  48218. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  48219. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  48220. - exit $EXIT_FAILURE
  48221. - fi
  48222. -fi\
  48223. -"
  48224. - chmod +x $output
  48225. - fi
  48226. - exit $EXIT_SUCCESS
  48227. - ;;
  48228. - esac
  48229. -
  48230. - # See if we need to build an old-fashioned archive.
  48231. - for oldlib in $oldlibs; do
  48232. + # Make a backup of the uninstalled library when relinking
  48233. + if test "$mode" = relink; then
  48234. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  48235. + fi
  48236. - if test "$build_libtool_libs" = convenience; then
  48237. - oldobjs="$libobjs_save"
  48238. - addlibs="$convenience"
  48239. - build_libtool_libs=no
  48240. - else
  48241. - if test "$build_libtool_libs" = module; then
  48242. - oldobjs="$libobjs_save"
  48243. - build_libtool_libs=no
  48244. + # Do each of the archive commands.
  48245. + if test "$module" = yes && test -n "$module_cmds" ; then
  48246. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48247. + eval test_cmds=\"$module_expsym_cmds\"
  48248. + cmds=$module_expsym_cmds
  48249. + else
  48250. + eval test_cmds=\"$module_cmds\"
  48251. + cmds=$module_cmds
  48252. + fi
  48253. else
  48254. - oldobjs="$old_deplibs $non_pic_objects"
  48255. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48256. + eval test_cmds=\"$archive_expsym_cmds\"
  48257. + cmds=$archive_expsym_cmds
  48258. + else
  48259. + eval test_cmds=\"$archive_cmds\"
  48260. + cmds=$archive_cmds
  48261. + fi
  48262. fi
  48263. - addlibs="$old_convenience"
  48264. - fi
  48265. - if test -n "$addlibs"; then
  48266. - gentop="$output_objdir/${outputname}x"
  48267. - generated="$generated $gentop"
  48268. + if test "X$skipped_export" != "X:" &&
  48269. + func_len " $test_cmds" &&
  48270. + len=$func_len_result &&
  48271. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48272. + :
  48273. + else
  48274. + # The command line is too long to link in one step, link piecewise
  48275. + # or, if using GNU ld and skipped_export is not :, use a linker
  48276. + # script.
  48277. - func_extract_archives $gentop $addlibs
  48278. - oldobjs="$oldobjs $func_extract_archives_result"
  48279. - fi
  48280. + # Save the value of $output and $libobjs because we want to
  48281. + # use them later. If we have whole_archive_flag_spec, we
  48282. + # want to use save_libobjs as it was before
  48283. + # whole_archive_flag_spec was expanded, because we can't
  48284. + # assume the linker understands whole_archive_flag_spec.
  48285. + # This may have to be revisited, in case too many
  48286. + # convenience libraries get linked in and end up exceeding
  48287. + # the spec.
  48288. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  48289. + save_libobjs=$libobjs
  48290. + fi
  48291. + save_output=$output
  48292. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  48293. - # Do each command in the archive commands.
  48294. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  48295. - cmds=$old_archive_from_new_cmds
  48296. - else
  48297. - # POSIX demands no paths to be encoded in archives. We have
  48298. - # to avoid creating archives with duplicate basenames if we
  48299. - # might have to extract them afterwards, e.g., when creating a
  48300. - # static archive out of a convenience library, or when linking
  48301. - # the entirety of a libtool archive into another (currently
  48302. - # not supported by libtool).
  48303. - if (for obj in $oldobjs
  48304. + # Clear the reloadable object creation command queue and
  48305. + # initialize k to one.
  48306. + test_cmds=
  48307. + concat_cmds=
  48308. + objlist=
  48309. + last_robj=
  48310. + k=1
  48311. +
  48312. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  48313. + output=${output_objdir}/${output_la}.lnkscript
  48314. + func_verbose "creating GNU ld script: $output"
  48315. + $ECHO 'INPUT (' > $output
  48316. + for obj in $save_libobjs
  48317. do
  48318. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  48319. - done | sort | sort -uc >/dev/null 2>&1); then
  48320. - :
  48321. - else
  48322. - $echo "copying selected object files to avoid basename conflicts..."
  48323. + $ECHO "$obj" >> $output
  48324. + done
  48325. + $ECHO ')' >> $output
  48326. + delfiles="$delfiles $output"
  48327. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  48328. + output=${output_objdir}/${output_la}.lnk
  48329. + func_verbose "creating linker input file list: $output"
  48330. + : > $output
  48331. + set x $save_libobjs
  48332. + shift
  48333. + firstobj=
  48334. + if test "$compiler_needs_object" = yes; then
  48335. + firstobj="$1 "
  48336. + shift
  48337. + fi
  48338. + for obj
  48339. + do
  48340. + $ECHO "$obj" >> $output
  48341. + done
  48342. + delfiles="$delfiles $output"
  48343. + output=$firstobj\"$file_list_spec$output\"
  48344. + else
  48345. + if test -n "$save_libobjs"; then
  48346. + func_verbose "creating reloadable object files..."
  48347. + output=$output_objdir/$output_la-${k}.$objext
  48348. + eval test_cmds=\"$reload_cmds\"
  48349. + func_len " $test_cmds"
  48350. + len0=$func_len_result
  48351. + len=$len0
  48352. +
  48353. + # Loop over the list of objects to be linked.
  48354. + for obj in $save_libobjs
  48355. + do
  48356. + func_len " $obj"
  48357. + func_arith $len + $func_len_result
  48358. + len=$func_arith_result
  48359. + if test "X$objlist" = X ||
  48360. + test "$len" -lt "$max_cmd_len"; then
  48361. + func_append objlist " $obj"
  48362. + else
  48363. + # The command $test_cmds is almost too long, add a
  48364. + # command to the queue.
  48365. + if test "$k" -eq 1 ; then
  48366. + # The first file doesn't have a previous command to add.
  48367. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  48368. + else
  48369. + # All subsequent reloadable object files will link in
  48370. + # the last one created.
  48371. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  48372. + fi
  48373. + last_robj=$output_objdir/$output_la-${k}.$objext
  48374. + func_arith $k + 1
  48375. + k=$func_arith_result
  48376. + output=$output_objdir/$output_la-${k}.$objext
  48377. + objlist=$obj
  48378. + func_len " $last_robj"
  48379. + func_arith $len0 + $func_len_result
  48380. + len=$func_arith_result
  48381. + fi
  48382. + done
  48383. + # Handle the remaining objects by creating one last
  48384. + # reloadable object file. All subsequent reloadable object
  48385. + # files will link in the last one created.
  48386. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48387. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  48388. + if test -n "$last_robj"; then
  48389. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  48390. + fi
  48391. + delfiles="$delfiles $output"
  48392. - if test -z "$gentop"; then
  48393. - gentop="$output_objdir/${outputname}x"
  48394. - generated="$generated $gentop"
  48395. + else
  48396. + output=
  48397. + fi
  48398. +
  48399. + if ${skipped_export-false}; then
  48400. + func_verbose "generating symbol list for \`$libname.la'"
  48401. + export_symbols="$output_objdir/$libname.exp"
  48402. + $opt_dry_run || $RM $export_symbols
  48403. + libobjs=$output
  48404. + # Append the command to create the export file.
  48405. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48406. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  48407. + if test -n "$last_robj"; then
  48408. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  48409. + fi
  48410. + fi
  48411. +
  48412. + test -n "$save_libobjs" &&
  48413. + func_verbose "creating a temporary reloadable object file: $output"
  48414. +
  48415. + # Loop through the commands generated above and execute them.
  48416. + save_ifs="$IFS"; IFS='~'
  48417. + for cmd in $concat_cmds; do
  48418. + IFS="$save_ifs"
  48419. + $opt_silent || {
  48420. + func_quote_for_expand "$cmd"
  48421. + eval "func_echo $func_quote_for_expand_result"
  48422. + }
  48423. + $opt_dry_run || eval "$cmd" || {
  48424. + lt_exit=$?
  48425. +
  48426. + # Restore the uninstalled library and exit
  48427. + if test "$mode" = relink; then
  48428. + ( cd "$output_objdir" && \
  48429. + $RM "${realname}T" && \
  48430. + $MV "${realname}U" "$realname" )
  48431. + fi
  48432. +
  48433. + exit $lt_exit
  48434. + }
  48435. + done
  48436. + IFS="$save_ifs"
  48437. - $show "${rm}r $gentop"
  48438. - $run ${rm}r "$gentop"
  48439. - $show "$mkdir $gentop"
  48440. - $run $mkdir "$gentop"
  48441. - exit_status=$?
  48442. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  48443. - exit $exit_status
  48444. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  48445. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  48446. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  48447. fi
  48448. fi
  48449. - save_oldobjs=$oldobjs
  48450. - oldobjs=
  48451. - counter=1
  48452. - for obj in $save_oldobjs
  48453. - do
  48454. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  48455. - case " $oldobjs " in
  48456. - " ") oldobjs=$obj ;;
  48457. - *[\ /]"$objbase "*)
  48458. - while :; do
  48459. - # Make sure we don't pick an alternate name that also
  48460. - # overlaps.
  48461. - newobj=lt$counter-$objbase
  48462. - counter=`expr $counter + 1`
  48463. - case " $oldobjs " in
  48464. - *[\ /]"$newobj "*) ;;
  48465. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  48466. - esac
  48467. - done
  48468. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  48469. - $run ln "$obj" "$gentop/$newobj" ||
  48470. - $run cp "$obj" "$gentop/$newobj"
  48471. - oldobjs="$oldobjs $gentop/$newobj"
  48472. - ;;
  48473. - *) oldobjs="$oldobjs $obj" ;;
  48474. - esac
  48475. - done
  48476. - fi
  48477. + if ${skipped_export-false}; then
  48478. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  48479. + tmp_export_symbols="$export_symbols"
  48480. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  48481. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  48482. + fi
  48483. +
  48484. + if test -n "$orig_export_symbols"; then
  48485. + # The given exports_symbols file has to be filtered, so filter it.
  48486. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  48487. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  48488. + # 's' commands which not all seds can handle. GNU sed should be fine
  48489. + # though. Also, the filter scales superlinearly with the number of
  48490. + # global variables. join(1) would be nice here, but unfortunately
  48491. + # isn't a blessed tool.
  48492. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  48493. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  48494. + export_symbols=$output_objdir/$libname.def
  48495. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  48496. + fi
  48497. + fi
  48498. - eval cmds=\"$old_archive_cmds\"
  48499. + libobjs=$output
  48500. + # Restore the value of output.
  48501. + output=$save_output
  48502. - if len=`expr "X$cmds" : ".*"` &&
  48503. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48504. - cmds=$old_archive_cmds
  48505. - else
  48506. - # the command line is too long to link in one step, link in parts
  48507. - $echo "using piecewise archive linking..."
  48508. - save_RANLIB=$RANLIB
  48509. - RANLIB=:
  48510. - objlist=
  48511. - concat_cmds=
  48512. - save_oldobjs=$oldobjs
  48513. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  48514. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48515. + test "X$libobjs" = "X " && libobjs=
  48516. + fi
  48517. + # Expand the library linking commands again to reset the
  48518. + # value of $libobjs for piecewise linking.
  48519. - # Is there a better way of finding the last object in the list?
  48520. - for obj in $save_oldobjs
  48521. - do
  48522. - last_oldobj=$obj
  48523. - done
  48524. - for obj in $save_oldobjs
  48525. - do
  48526. - oldobjs="$objlist $obj"
  48527. - objlist="$objlist $obj"
  48528. - eval test_cmds=\"$old_archive_cmds\"
  48529. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  48530. - test "$len" -le "$max_cmd_len"; then
  48531. - :
  48532. + # Do each of the archive commands.
  48533. + if test "$module" = yes && test -n "$module_cmds" ; then
  48534. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48535. + cmds=$module_expsym_cmds
  48536. else
  48537. - # the above command should be used before it gets too long
  48538. - oldobjs=$objlist
  48539. - if test "$obj" = "$last_oldobj" ; then
  48540. - RANLIB=$save_RANLIB
  48541. - fi
  48542. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48543. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  48544. - objlist=
  48545. + cmds=$module_cmds
  48546. fi
  48547. - done
  48548. - RANLIB=$save_RANLIB
  48549. - oldobjs=$objlist
  48550. - if test "X$oldobjs" = "X" ; then
  48551. - eval cmds=\"\$concat_cmds\"
  48552. else
  48553. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  48554. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48555. + cmds=$archive_expsym_cmds
  48556. + else
  48557. + cmds=$archive_cmds
  48558. + fi
  48559. fi
  48560. fi
  48561. - fi
  48562. - save_ifs="$IFS"; IFS='~'
  48563. - for cmd in $cmds; do
  48564. - eval cmd=\"$cmd\"
  48565. - IFS="$save_ifs"
  48566. - $show "$cmd"
  48567. - $run eval "$cmd" || exit $?
  48568. - done
  48569. - IFS="$save_ifs"
  48570. - done
  48571. - if test -n "$generated"; then
  48572. - $show "${rm}r$generated"
  48573. - $run ${rm}r$generated
  48574. - fi
  48575. + if test -n "$delfiles"; then
  48576. + # Append the command to remove temporary files to $cmds.
  48577. + eval cmds=\"\$cmds~\$RM $delfiles\"
  48578. + fi
  48579. - # Now create the libtool archive.
  48580. - case $output in
  48581. - *.la)
  48582. - old_library=
  48583. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  48584. - $show "creating $output"
  48585. + # Add any objects from preloaded convenience libraries
  48586. + if test -n "$dlprefiles"; then
  48587. + gentop="$output_objdir/${outputname}x"
  48588. + generated="$generated $gentop"
  48589. - # Preserve any variables that may affect compiler behavior
  48590. - for var in $variables_saved_for_relink; do
  48591. - if eval test -z \"\${$var+set}\"; then
  48592. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  48593. - elif eval var_value=\$$var; test -z "$var_value"; then
  48594. - relink_command="$var=; export $var; $relink_command"
  48595. - else
  48596. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  48597. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  48598. + func_extract_archives $gentop $dlprefiles
  48599. + libobjs="$libobjs $func_extract_archives_result"
  48600. + test "X$libobjs" = "X " && libobjs=
  48601. fi
  48602. - done
  48603. - # Quote the link command for shipping.
  48604. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  48605. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  48606. - if test "$hardcode_automatic" = yes ; then
  48607. - relink_command=
  48608. - fi
  48609. + save_ifs="$IFS"; IFS='~'
  48610. + for cmd in $cmds; do
  48611. + IFS="$save_ifs"
  48612. + eval cmd=\"$cmd\"
  48613. + $opt_silent || {
  48614. + func_quote_for_expand "$cmd"
  48615. + eval "func_echo $func_quote_for_expand_result"
  48616. + }
  48617. + $opt_dry_run || eval "$cmd" || {
  48618. + lt_exit=$?
  48619. - # Only create the output if not a dry run.
  48620. - if test -z "$run"; then
  48621. - for installed in no yes; do
  48622. - if test "$installed" = yes; then
  48623. - if test -z "$install_libdir"; then
  48624. - break
  48625. + # Restore the uninstalled library and exit
  48626. + if test "$mode" = relink; then
  48627. + ( cd "$output_objdir" && \
  48628. + $RM "${realname}T" && \
  48629. + $MV "${realname}U" "$realname" )
  48630. fi
  48631. - output="$output_objdir/$outputname"i
  48632. - # Replace all uninstalled libtool libraries with the installed ones
  48633. - newdependency_libs=
  48634. - for deplib in $dependency_libs; do
  48635. - case $deplib in
  48636. - *.la)
  48637. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  48638. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  48639. - if test -z "$libdir"; then
  48640. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  48641. - exit $EXIT_FAILURE
  48642. - fi
  48643. - newdependency_libs="$newdependency_libs $libdir/$name"
  48644. - ;;
  48645. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  48646. - esac
  48647. - done
  48648. - dependency_libs="$newdependency_libs"
  48649. - newdlfiles=
  48650. - for lib in $dlfiles; do
  48651. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48652. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  48653. - if test -z "$libdir"; then
  48654. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48655. - exit $EXIT_FAILURE
  48656. - fi
  48657. - newdlfiles="$newdlfiles $libdir/$name"
  48658. - done
  48659. - dlfiles="$newdlfiles"
  48660. - newdlprefiles=
  48661. - for lib in $dlprefiles; do
  48662. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48663. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  48664. - if test -z "$libdir"; then
  48665. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  48666. - exit $EXIT_FAILURE
  48667. - fi
  48668. - newdlprefiles="$newdlprefiles $libdir/$name"
  48669. - done
  48670. - dlprefiles="$newdlprefiles"
  48671. - else
  48672. - newdlfiles=
  48673. - for lib in $dlfiles; do
  48674. - case $lib in
  48675. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  48676. - *) abs=`pwd`"/$lib" ;;
  48677. - esac
  48678. - newdlfiles="$newdlfiles $abs"
  48679. - done
  48680. - dlfiles="$newdlfiles"
  48681. - newdlprefiles=
  48682. - for lib in $dlprefiles; do
  48683. - case $lib in
  48684. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  48685. - *) abs=`pwd`"/$lib" ;;
  48686. - esac
  48687. - newdlprefiles="$newdlprefiles $abs"
  48688. - done
  48689. - dlprefiles="$newdlprefiles"
  48690. - fi
  48691. - $rm $output
  48692. - # place dlname in correct position for cygwin
  48693. - tdlname=$dlname
  48694. - case $host,$output,$installed,$module,$dlname in
  48695. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  48696. - esac
  48697. - $echo > $output "\
  48698. -# $outputname - a libtool library file
  48699. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48700. -#
  48701. -# Please DO NOT delete this file!
  48702. -# It is necessary for linking the library.
  48703. -# The name that we can dlopen(3).
  48704. -dlname='$tdlname'
  48705. + exit $lt_exit
  48706. + }
  48707. + done
  48708. + IFS="$save_ifs"
  48709. -# Names of this library.
  48710. -library_names='$library_names'
  48711. + # Restore the uninstalled library and exit
  48712. + if test "$mode" = relink; then
  48713. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  48714. -# The name of the static archive.
  48715. -old_library='$old_library'
  48716. + if test -n "$convenience"; then
  48717. + if test -z "$whole_archive_flag_spec"; then
  48718. + func_show_eval '${RM}r "$gentop"'
  48719. + fi
  48720. + fi
  48721. -# Libraries that this one depends upon.
  48722. -dependency_libs='$dependency_libs'
  48723. + exit $EXIT_SUCCESS
  48724. + fi
  48725. -# Version information for $libname.
  48726. -current=$current
  48727. -age=$age
  48728. -revision=$revision
  48729. + # Create links to the real library.
  48730. + for linkname in $linknames; do
  48731. + if test "$realname" != "$linkname"; then
  48732. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  48733. + fi
  48734. + done
  48735. -# Is this an already installed library?
  48736. -installed=$installed
  48737. + # If -module or -export-dynamic was specified, set the dlname.
  48738. + if test "$module" = yes || test "$export_dynamic" = yes; then
  48739. + # On all known operating systems, these are identical.
  48740. + dlname="$soname"
  48741. + fi
  48742. + fi
  48743. + ;;
  48744. -# Should we warn about portability when linking against -modules?
  48745. -shouldnotlink=$module
  48746. + obj)
  48747. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48748. + func_warning "\`-dlopen' is ignored for objects"
  48749. + fi
  48750. -# Files to dlopen/dlpreopen
  48751. -dlopen='$dlfiles'
  48752. -dlpreopen='$dlprefiles'
  48753. + case " $deplibs" in
  48754. + *\ -l* | *\ -L*)
  48755. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  48756. + esac
  48757. -# Directory that this library needs to be installed in:
  48758. -libdir='$install_libdir'"
  48759. - if test "$installed" = no && test "$need_relink" = yes; then
  48760. - $echo >> $output "\
  48761. -relink_command=\"$relink_command\""
  48762. - fi
  48763. - done
  48764. - fi
  48765. + test -n "$rpath" && \
  48766. + func_warning "\`-rpath' is ignored for objects"
  48767. - # Do a symbolic link so that the libtool archive can be found in
  48768. - # LD_LIBRARY_PATH before the program is installed.
  48769. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  48770. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  48771. - ;;
  48772. - esac
  48773. - exit $EXIT_SUCCESS
  48774. - ;;
  48775. + test -n "$xrpath" && \
  48776. + func_warning "\`-R' is ignored for objects"
  48777. - # libtool install mode
  48778. - install)
  48779. - modename="$modename: install"
  48780. + test -n "$vinfo" && \
  48781. + func_warning "\`-version-info' is ignored for objects"
  48782. - # There may be an optional sh(1) argument at the beginning of
  48783. - # install_prog (especially on Windows NT).
  48784. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  48785. - # Allow the use of GNU shtool's install command.
  48786. - $echo "X$nonopt" | grep shtool > /dev/null; then
  48787. - # Aesthetically quote it.
  48788. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  48789. - case $arg in
  48790. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48791. - arg="\"$arg\""
  48792. + test -n "$release" && \
  48793. + func_warning "\`-release' is ignored for objects"
  48794. +
  48795. + case $output in
  48796. + *.lo)
  48797. + test -n "$objs$old_deplibs" && \
  48798. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  48799. +
  48800. + libobj=$output
  48801. + func_lo2o "$libobj"
  48802. + obj=$func_lo2o_result
  48803. + ;;
  48804. + *)
  48805. + libobj=
  48806. + obj="$output"
  48807. ;;
  48808. esac
  48809. - install_prog="$arg "
  48810. - arg="$1"
  48811. - shift
  48812. - else
  48813. - install_prog=
  48814. - arg=$nonopt
  48815. - fi
  48816. - # The real first argument should be the name of the installation program.
  48817. - # Aesthetically quote it.
  48818. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48819. - case $arg in
  48820. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48821. - arg="\"$arg\""
  48822. - ;;
  48823. - esac
  48824. - install_prog="$install_prog$arg"
  48825. + # Delete the old objects.
  48826. + $opt_dry_run || $RM $obj $libobj
  48827. - # We need to accept at least all the BSD install flags.
  48828. - dest=
  48829. - files=
  48830. - opts=
  48831. - prev=
  48832. - install_type=
  48833. - isdir=no
  48834. - stripme=
  48835. - for arg
  48836. - do
  48837. - if test -n "$dest"; then
  48838. - files="$files $dest"
  48839. - dest=$arg
  48840. - continue
  48841. - fi
  48842. + # Objects from convenience libraries. This assumes
  48843. + # single-version convenience libraries. Whenever we create
  48844. + # different ones for PIC/non-PIC, this we'll have to duplicate
  48845. + # the extraction.
  48846. + reload_conv_objs=
  48847. + gentop=
  48848. + # reload_cmds runs $LD directly, so let us get rid of
  48849. + # -Wl from whole_archive_flag_spec and hope we can get by with
  48850. + # turning comma into space..
  48851. + wl=
  48852. - case $arg in
  48853. - -d) isdir=yes ;;
  48854. - -f)
  48855. - case " $install_prog " in
  48856. - *[\\\ /]cp\ *) ;;
  48857. - *) prev=$arg ;;
  48858. - esac
  48859. - ;;
  48860. - -g | -m | -o) prev=$arg ;;
  48861. - -s)
  48862. - stripme=" -s"
  48863. - continue
  48864. - ;;
  48865. - -*)
  48866. - ;;
  48867. - *)
  48868. - # If the previous option needed an argument, then skip it.
  48869. - if test -n "$prev"; then
  48870. - prev=
  48871. + if test -n "$convenience"; then
  48872. + if test -n "$whole_archive_flag_spec"; then
  48873. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  48874. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  48875. else
  48876. - dest=$arg
  48877. - continue
  48878. + gentop="$output_objdir/${obj}x"
  48879. + generated="$generated $gentop"
  48880. +
  48881. + func_extract_archives $gentop $convenience
  48882. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  48883. fi
  48884. - ;;
  48885. - esac
  48886. + fi
  48887. - # Aesthetically quote the argument.
  48888. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48889. - case $arg in
  48890. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48891. - arg="\"$arg\""
  48892. - ;;
  48893. - esac
  48894. - install_prog="$install_prog $arg"
  48895. - done
  48896. + # Create the old-style object.
  48897. + 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
  48898. - if test -z "$install_prog"; then
  48899. - $echo "$modename: you must specify an install program" 1>&2
  48900. - $echo "$help" 1>&2
  48901. - exit $EXIT_FAILURE
  48902. - fi
  48903. + output="$obj"
  48904. + func_execute_cmds "$reload_cmds" 'exit $?'
  48905. - if test -n "$prev"; then
  48906. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  48907. - $echo "$help" 1>&2
  48908. - exit $EXIT_FAILURE
  48909. - fi
  48910. + # Exit if we aren't doing a library object file.
  48911. + if test -z "$libobj"; then
  48912. + if test -n "$gentop"; then
  48913. + func_show_eval '${RM}r "$gentop"'
  48914. + fi
  48915. - if test -z "$files"; then
  48916. - if test -z "$dest"; then
  48917. - $echo "$modename: no file or destination specified" 1>&2
  48918. - else
  48919. - $echo "$modename: you must specify a destination" 1>&2
  48920. + exit $EXIT_SUCCESS
  48921. fi
  48922. - $echo "$help" 1>&2
  48923. - exit $EXIT_FAILURE
  48924. - fi
  48925. - # Strip any trailing slash from the destination.
  48926. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  48927. + if test "$build_libtool_libs" != yes; then
  48928. + if test -n "$gentop"; then
  48929. + func_show_eval '${RM}r "$gentop"'
  48930. + fi
  48931. - # Check to see that the destination is a directory.
  48932. - test -d "$dest" && isdir=yes
  48933. - if test "$isdir" = yes; then
  48934. - destdir="$dest"
  48935. - destname=
  48936. - else
  48937. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  48938. - test "X$destdir" = "X$dest" && destdir=.
  48939. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  48940. + # Create an invalid libtool object if no PIC, so that we don't
  48941. + # accidentally link it into a program.
  48942. + # $show "echo timestamp > $libobj"
  48943. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  48944. + exit $EXIT_SUCCESS
  48945. + fi
  48946. - # Not a directory, so check to see that there is only one file specified.
  48947. - set dummy $files
  48948. - if test "$#" -gt 2; then
  48949. - $echo "$modename: \`$dest' is not a directory" 1>&2
  48950. - $echo "$help" 1>&2
  48951. - exit $EXIT_FAILURE
  48952. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  48953. + # Only do commands if we really have different PIC objects.
  48954. + reload_objs="$libobjs $reload_conv_objs"
  48955. + output="$libobj"
  48956. + func_execute_cmds "$reload_cmds" 'exit $?'
  48957. fi
  48958. - fi
  48959. - case $destdir in
  48960. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48961. - *)
  48962. - for file in $files; do
  48963. - case $file in
  48964. - *.lo) ;;
  48965. - *)
  48966. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  48967. - $echo "$help" 1>&2
  48968. - exit $EXIT_FAILURE
  48969. - ;;
  48970. - esac
  48971. - done
  48972. +
  48973. + if test -n "$gentop"; then
  48974. + func_show_eval '${RM}r "$gentop"'
  48975. + fi
  48976. +
  48977. + exit $EXIT_SUCCESS
  48978. ;;
  48979. - esac
  48980. - # This variable tells wrapper scripts just to set variables rather
  48981. - # than running their programs.
  48982. - libtool_install_magic="$magic"
  48983. + prog)
  48984. + case $host in
  48985. + *cygwin*) func_stripname '' '.exe' "$output"
  48986. + output=$func_stripname_result.exe;;
  48987. + esac
  48988. + test -n "$vinfo" && \
  48989. + func_warning "\`-version-info' is ignored for programs"
  48990. - staticlibs=
  48991. - future_libdirs=
  48992. - current_libdirs=
  48993. - for file in $files; do
  48994. + test -n "$release" && \
  48995. + func_warning "\`-release' is ignored for programs"
  48996. - # Do each installation.
  48997. - case $file in
  48998. - *.$libext)
  48999. - # Do the static libraries later.
  49000. - staticlibs="$staticlibs $file"
  49001. + test "$preload" = yes \
  49002. + && test "$dlopen_support" = unknown \
  49003. + && test "$dlopen_self" = unknown \
  49004. + && test "$dlopen_self_static" = unknown && \
  49005. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  49006. +
  49007. + case $host in
  49008. + *-*-rhapsody* | *-*-darwin1.[012])
  49009. + # On Rhapsody replace the C library is the System framework
  49010. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  49011. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  49012. ;;
  49013. + esac
  49014. - *.la)
  49015. - # Check to see that this really is a libtool archive.
  49016. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49017. - else
  49018. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  49019. - $echo "$help" 1>&2
  49020. - exit $EXIT_FAILURE
  49021. + case $host in
  49022. + *-*-darwin*)
  49023. + # Don't allow lazy linking, it breaks C++ global constructors
  49024. + # But is supposedly fixed on 10.4 or later (yay!).
  49025. + if test "$tagname" = CXX ; then
  49026. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  49027. + 10.[0123])
  49028. + compile_command="$compile_command ${wl}-bind_at_load"
  49029. + finalize_command="$finalize_command ${wl}-bind_at_load"
  49030. + ;;
  49031. + esac
  49032. fi
  49033. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  49034. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49035. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49036. + ;;
  49037. + esac
  49038. - library_names=
  49039. - old_library=
  49040. - relink_command=
  49041. - # If there is no directory component, then add one.
  49042. - case $file in
  49043. - */* | *\\*) . $file ;;
  49044. - *) . ./$file ;;
  49045. - esac
  49046. - # Add the libdir to current_libdirs if it is the destination.
  49047. - if test "X$destdir" = "X$libdir"; then
  49048. - case "$current_libdirs " in
  49049. - *" $libdir "*) ;;
  49050. - *) current_libdirs="$current_libdirs $libdir" ;;
  49051. + # move library search paths that coincide with paths to not yet
  49052. + # installed libraries to the beginning of the library search list
  49053. + new_libs=
  49054. + for path in $notinst_path; do
  49055. + case " $new_libs " in
  49056. + *" -L$path/$objdir "*) ;;
  49057. + *)
  49058. + case " $compile_deplibs " in
  49059. + *" -L$path/$objdir "*)
  49060. + new_libs="$new_libs -L$path/$objdir" ;;
  49061. esac
  49062. - else
  49063. - # Note the libdir as a future libdir.
  49064. - case "$future_libdirs " in
  49065. - *" $libdir "*) ;;
  49066. - *) future_libdirs="$future_libdirs $libdir" ;;
  49067. + ;;
  49068. + esac
  49069. + done
  49070. + for deplib in $compile_deplibs; do
  49071. + case $deplib in
  49072. + -L*)
  49073. + case " $new_libs " in
  49074. + *" $deplib "*) ;;
  49075. + *) new_libs="$new_libs $deplib" ;;
  49076. esac
  49077. - fi
  49078. + ;;
  49079. + *) new_libs="$new_libs $deplib" ;;
  49080. + esac
  49081. + done
  49082. + compile_deplibs="$new_libs"
  49083. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  49084. - test "X$dir" = "X$file/" && dir=
  49085. - dir="$dir$objdir"
  49086. - if test -n "$relink_command"; then
  49087. - # Determine the prefix the user has applied to our future dir.
  49088. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  49089. + compile_command="$compile_command $compile_deplibs"
  49090. + finalize_command="$finalize_command $finalize_deplibs"
  49091. - # Don't allow the user to place us outside of our expected
  49092. - # location b/c this prevents finding dependent libraries that
  49093. - # are installed to the same prefix.
  49094. - # At present, this check doesn't affect windows .dll's that
  49095. - # are installed into $libdir/../bin (currently, that works fine)
  49096. - # but it's something to keep an eye on.
  49097. - if test "$inst_prefix_dir" = "$destdir"; then
  49098. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  49099. - exit $EXIT_FAILURE
  49100. - fi
  49101. + if test -n "$rpath$xrpath"; then
  49102. + # If the user specified any rpath flags, then add them.
  49103. + for libdir in $rpath $xrpath; do
  49104. + # This is the magic to use -rpath.
  49105. + case "$finalize_rpath " in
  49106. + *" $libdir "*) ;;
  49107. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  49108. + esac
  49109. + done
  49110. + fi
  49111. - if test -n "$inst_prefix_dir"; then
  49112. - # Stick the inst_prefix_dir data into the link command.
  49113. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  49114. + # Now hardcode the library paths
  49115. + rpath=
  49116. + hardcode_libdirs=
  49117. + for libdir in $compile_rpath $finalize_rpath; do
  49118. + if test -n "$hardcode_libdir_flag_spec"; then
  49119. + if test -n "$hardcode_libdir_separator"; then
  49120. + if test -z "$hardcode_libdirs"; then
  49121. + hardcode_libdirs="$libdir"
  49122. + else
  49123. + # Just accumulate the unique libdirs.
  49124. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49125. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49126. + ;;
  49127. + *)
  49128. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49129. + ;;
  49130. + esac
  49131. + fi
  49132. else
  49133. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  49134. + eval flag=\"$hardcode_libdir_flag_spec\"
  49135. + rpath="$rpath $flag"
  49136. fi
  49137. + elif test -n "$runpath_var"; then
  49138. + case "$perm_rpath " in
  49139. + *" $libdir "*) ;;
  49140. + *) perm_rpath="$perm_rpath $libdir" ;;
  49141. + esac
  49142. + fi
  49143. + case $host in
  49144. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  49145. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  49146. + case :$dllsearchpath: in
  49147. + *":$libdir:"*) ;;
  49148. + ::) dllsearchpath=$libdir;;
  49149. + *) dllsearchpath="$dllsearchpath:$libdir";;
  49150. + esac
  49151. + case :$dllsearchpath: in
  49152. + *":$testbindir:"*) ;;
  49153. + ::) dllsearchpath=$testbindir;;
  49154. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  49155. + esac
  49156. + ;;
  49157. + esac
  49158. + done
  49159. + # Substitute the hardcoded libdirs into the rpath.
  49160. + if test -n "$hardcode_libdir_separator" &&
  49161. + test -n "$hardcode_libdirs"; then
  49162. + libdir="$hardcode_libdirs"
  49163. + eval rpath=\" $hardcode_libdir_flag_spec\"
  49164. + fi
  49165. + compile_rpath="$rpath"
  49166. - $echo "$modename: warning: relinking \`$file'" 1>&2
  49167. - $show "$relink_command"
  49168. - if $run eval "$relink_command"; then :
  49169. + rpath=
  49170. + hardcode_libdirs=
  49171. + for libdir in $finalize_rpath; do
  49172. + if test -n "$hardcode_libdir_flag_spec"; then
  49173. + if test -n "$hardcode_libdir_separator"; then
  49174. + if test -z "$hardcode_libdirs"; then
  49175. + hardcode_libdirs="$libdir"
  49176. + else
  49177. + # Just accumulate the unique libdirs.
  49178. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49179. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49180. + ;;
  49181. + *)
  49182. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49183. + ;;
  49184. + esac
  49185. + fi
  49186. else
  49187. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  49188. - exit $EXIT_FAILURE
  49189. + eval flag=\"$hardcode_libdir_flag_spec\"
  49190. + rpath="$rpath $flag"
  49191. fi
  49192. + elif test -n "$runpath_var"; then
  49193. + case "$finalize_perm_rpath " in
  49194. + *" $libdir "*) ;;
  49195. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  49196. + esac
  49197. fi
  49198. + done
  49199. + # Substitute the hardcoded libdirs into the rpath.
  49200. + if test -n "$hardcode_libdir_separator" &&
  49201. + test -n "$hardcode_libdirs"; then
  49202. + libdir="$hardcode_libdirs"
  49203. + eval rpath=\" $hardcode_libdir_flag_spec\"
  49204. + fi
  49205. + finalize_rpath="$rpath"
  49206. - # See the names of the shared library.
  49207. - set dummy $library_names
  49208. - if test -n "$2"; then
  49209. - realname="$2"
  49210. - shift
  49211. - shift
  49212. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  49213. + # Transform all the library objects into standard objects.
  49214. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49215. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49216. + fi
  49217. - srcname="$realname"
  49218. - test -n "$relink_command" && srcname="$realname"T
  49219. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  49220. - # Install the shared library and build the symlinks.
  49221. - $show "$install_prog $dir/$srcname $destdir/$realname"
  49222. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  49223. - if test -n "$stripme" && test -n "$striplib"; then
  49224. - $show "$striplib $destdir/$realname"
  49225. - $run eval "$striplib $destdir/$realname" || exit $?
  49226. - fi
  49227. + # template prelinking step
  49228. + if test -n "$prelink_cmds"; then
  49229. + func_execute_cmds "$prelink_cmds" 'exit $?'
  49230. + fi
  49231. - if test "$#" -gt 0; then
  49232. - # Delete the old symlinks, and create new ones.
  49233. - # Try `ln -sf' first, because the `ln' binary might depend on
  49234. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  49235. - # so we also need to try rm && ln -s.
  49236. - for linkname
  49237. - do
  49238. - if test "$linkname" != "$realname"; then
  49239. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  49240. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  49241. - fi
  49242. - done
  49243. - fi
  49244. + wrappers_required=yes
  49245. + case $host in
  49246. + *cygwin* | *mingw* )
  49247. + if test "$build_libtool_libs" != yes; then
  49248. + wrappers_required=no
  49249. + fi
  49250. + ;;
  49251. + *cegcc)
  49252. + # Disable wrappers for cegcc, we are cross compiling anyway.
  49253. + wrappers_required=no
  49254. + ;;
  49255. + *)
  49256. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  49257. + wrappers_required=no
  49258. + fi
  49259. + ;;
  49260. + esac
  49261. + if test "$wrappers_required" = no; then
  49262. + # Replace the output file specification.
  49263. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  49264. + link_command="$compile_command$compile_rpath"
  49265. - # Do each command in the postinstall commands.
  49266. - lib="$destdir/$realname"
  49267. - cmds=$postinstall_cmds
  49268. - save_ifs="$IFS"; IFS='~'
  49269. - for cmd in $cmds; do
  49270. - IFS="$save_ifs"
  49271. - eval cmd=\"$cmd\"
  49272. - $show "$cmd"
  49273. - $run eval "$cmd" || {
  49274. - lt_exit=$?
  49275. -
  49276. - # Restore the uninstalled library and exit
  49277. - if test "$mode" = relink; then
  49278. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  49279. - fi
  49280. + # We have no uninstalled library dependencies, so finalize right now.
  49281. + exit_status=0
  49282. + func_show_eval "$link_command" 'exit_status=$?'
  49283. - exit $lt_exit
  49284. - }
  49285. - done
  49286. - IFS="$save_ifs"
  49287. + # Delete the generated files.
  49288. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  49289. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  49290. fi
  49291. - # Install the pseudo-library for information purposes.
  49292. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49293. - instname="$dir/$name"i
  49294. - $show "$install_prog $instname $destdir/$name"
  49295. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  49296. -
  49297. - # Maybe install the static library, too.
  49298. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  49299. - ;;
  49300. + exit $exit_status
  49301. + fi
  49302. - *.lo)
  49303. - # Install (i.e. copy) a libtool object.
  49304. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  49305. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  49306. + fi
  49307. + if test -n "$finalize_shlibpath"; then
  49308. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  49309. + fi
  49310. - # Figure out destination file name, if it wasn't already specified.
  49311. - if test -n "$destname"; then
  49312. - destfile="$destdir/$destname"
  49313. - else
  49314. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49315. - destfile="$destdir/$destfile"
  49316. + compile_var=
  49317. + finalize_var=
  49318. + if test -n "$runpath_var"; then
  49319. + if test -n "$perm_rpath"; then
  49320. + # We should set the runpath_var.
  49321. + rpath=
  49322. + for dir in $perm_rpath; do
  49323. + rpath="$rpath$dir:"
  49324. + done
  49325. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49326. fi
  49327. -
  49328. - # Deduce the name of the destination old-style object file.
  49329. - case $destfile in
  49330. - *.lo)
  49331. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  49332. - ;;
  49333. - *.$objext)
  49334. - staticdest="$destfile"
  49335. - destfile=
  49336. - ;;
  49337. - *)
  49338. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  49339. - $echo "$help" 1>&2
  49340. - exit $EXIT_FAILURE
  49341. - ;;
  49342. - esac
  49343. -
  49344. - # Install the libtool object if requested.
  49345. - if test -n "$destfile"; then
  49346. - $show "$install_prog $file $destfile"
  49347. - $run eval "$install_prog $file $destfile" || exit $?
  49348. + if test -n "$finalize_perm_rpath"; then
  49349. + # We should set the runpath_var.
  49350. + rpath=
  49351. + for dir in $finalize_perm_rpath; do
  49352. + rpath="$rpath$dir:"
  49353. + done
  49354. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49355. fi
  49356. + fi
  49357. - # Install the old object if enabled.
  49358. - if test "$build_old_libs" = yes; then
  49359. - # Deduce the name of the old-style object file.
  49360. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  49361. -
  49362. - $show "$install_prog $staticobj $staticdest"
  49363. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  49364. - fi
  49365. + if test "$no_install" = yes; then
  49366. + # We don't need to create a wrapper script.
  49367. + link_command="$compile_var$compile_command$compile_rpath"
  49368. + # Replace the output file specification.
  49369. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  49370. + # Delete the old output file.
  49371. + $opt_dry_run || $RM $output
  49372. + # Link the executable and exit
  49373. + func_show_eval "$link_command" 'exit $?'
  49374. exit $EXIT_SUCCESS
  49375. - ;;
  49376. + fi
  49377. - *)
  49378. - # Figure out destination file name, if it wasn't already specified.
  49379. - if test -n "$destname"; then
  49380. - destfile="$destdir/$destname"
  49381. + if test "$hardcode_action" = relink; then
  49382. + # Fast installation is not supported
  49383. + link_command="$compile_var$compile_command$compile_rpath"
  49384. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  49385. +
  49386. + func_warning "this platform does not like uninstalled shared libraries"
  49387. + func_warning "\`$output' will be relinked during installation"
  49388. + else
  49389. + if test "$fast_install" != no; then
  49390. + link_command="$finalize_var$compile_command$finalize_rpath"
  49391. + if test "$fast_install" = yes; then
  49392. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  49393. + else
  49394. + # fast_install is set to needless
  49395. + relink_command=
  49396. + fi
  49397. else
  49398. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49399. - destfile="$destdir/$destfile"
  49400. + link_command="$compile_var$compile_command$compile_rpath"
  49401. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  49402. fi
  49403. + fi
  49404. - # If the file is missing, and there is a .exe on the end, strip it
  49405. - # because it is most likely a libtool script we actually want to
  49406. - # install
  49407. - stripped_ext=""
  49408. - case $file in
  49409. - *.exe)
  49410. - if test ! -f "$file"; then
  49411. - file=`$echo $file|${SED} 's,.exe$,,'`
  49412. - stripped_ext=".exe"
  49413. - fi
  49414. - ;;
  49415. - esac
  49416. -
  49417. - # Do a test to see if this is really a libtool program.
  49418. - case $host in
  49419. - *cygwin*|*mingw*)
  49420. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  49421. - ;;
  49422. - *)
  49423. - wrapper=$file
  49424. - ;;
  49425. - esac
  49426. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  49427. - notinst_deplibs=
  49428. - relink_command=
  49429. -
  49430. - # Note that it is not necessary on cygwin/mingw to append a dot to
  49431. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  49432. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  49433. - # `FILE.' does not work on cygwin managed mounts.
  49434. - #
  49435. - # If there is no directory component, then add one.
  49436. - case $wrapper in
  49437. - */* | *\\*) . ${wrapper} ;;
  49438. - *) . ./${wrapper} ;;
  49439. - esac
  49440. -
  49441. - # Check the variables that should have been set.
  49442. - if test -z "$notinst_deplibs"; then
  49443. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  49444. - exit $EXIT_FAILURE
  49445. - fi
  49446. + # Replace the output file specification.
  49447. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  49448. - finalize=yes
  49449. - for lib in $notinst_deplibs; do
  49450. - # Check to see that each library is installed.
  49451. - libdir=
  49452. - if test -f "$lib"; then
  49453. - # If there is no directory component, then add one.
  49454. - case $lib in
  49455. - */* | *\\*) . $lib ;;
  49456. - *) . ./$lib ;;
  49457. - esac
  49458. - fi
  49459. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  49460. - if test -n "$libdir" && test ! -f "$libfile"; then
  49461. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  49462. - finalize=no
  49463. - fi
  49464. - done
  49465. + # Delete the old output files.
  49466. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  49467. - relink_command=
  49468. - # Note that it is not necessary on cygwin/mingw to append a dot to
  49469. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  49470. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  49471. - # `FILE.' does not work on cygwin managed mounts.
  49472. - #
  49473. - # If there is no directory component, then add one.
  49474. - case $wrapper in
  49475. - */* | *\\*) . ${wrapper} ;;
  49476. - *) . ./${wrapper} ;;
  49477. - esac
  49478. + func_show_eval "$link_command" 'exit $?'
  49479. - outputname=
  49480. - if test "$fast_install" = no && test -n "$relink_command"; then
  49481. - if test "$finalize" = yes && test -z "$run"; then
  49482. - tmpdir=`func_mktempdir`
  49483. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  49484. - outputname="$tmpdir/$file"
  49485. - # Replace the output file specification.
  49486. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  49487. + # Now create the wrapper script.
  49488. + func_verbose "creating $output"
  49489. - $show "$relink_command"
  49490. - if $run eval "$relink_command"; then :
  49491. - else
  49492. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  49493. - ${rm}r "$tmpdir"
  49494. - continue
  49495. - fi
  49496. - file="$outputname"
  49497. - else
  49498. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  49499. - fi
  49500. + # Quote the relink command for shipping.
  49501. + if test -n "$relink_command"; then
  49502. + # Preserve any variables that may affect compiler behavior
  49503. + for var in $variables_saved_for_relink; do
  49504. + if eval test -z \"\${$var+set}\"; then
  49505. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  49506. + elif eval var_value=\$$var; test -z "$var_value"; then
  49507. + relink_command="$var=; export $var; $relink_command"
  49508. else
  49509. - # Install the binary that we compiled earlier.
  49510. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  49511. + func_quote_for_eval "$var_value"
  49512. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  49513. fi
  49514. - fi
  49515. + done
  49516. + relink_command="(cd `pwd`; $relink_command)"
  49517. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  49518. + fi
  49519. - # remove .exe since cygwin /usr/bin/install will append another
  49520. - # one anyway
  49521. - case $install_prog,$host in
  49522. - */usr/bin/install*,*cygwin*)
  49523. - case $file:$destfile in
  49524. - *.exe:*.exe)
  49525. - # this is ok
  49526. - ;;
  49527. - *.exe:*)
  49528. - destfile=$destfile.exe
  49529. - ;;
  49530. - *:*.exe)
  49531. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  49532. - ;;
  49533. - esac
  49534. - ;;
  49535. + # Quote $ECHO for shipping.
  49536. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  49537. + case $progpath in
  49538. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  49539. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  49540. + esac
  49541. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  49542. + else
  49543. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  49544. + fi
  49545. +
  49546. + # Only actually do things if not in dry run mode.
  49547. + $opt_dry_run || {
  49548. + # win32 will think the script is a binary if it has
  49549. + # a .exe suffix, so we strip it off here.
  49550. + case $output in
  49551. + *.exe) func_stripname '' '.exe' "$output"
  49552. + output=$func_stripname_result ;;
  49553. + esac
  49554. + # test for cygwin because mv fails w/o .exe extensions
  49555. + case $host in
  49556. + *cygwin*)
  49557. + exeext=.exe
  49558. + func_stripname '' '.exe' "$outputname"
  49559. + outputname=$func_stripname_result ;;
  49560. + *) exeext= ;;
  49561. esac
  49562. - $show "$install_prog$stripme $file $destfile"
  49563. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  49564. - test -n "$outputname" && ${rm}r "$tmpdir"
  49565. - ;;
  49566. - esac
  49567. - done
  49568. + case $host in
  49569. + *cygwin* | *mingw* )
  49570. + func_dirname_and_basename "$output" "" "."
  49571. + output_name=$func_basename_result
  49572. + output_path=$func_dirname_result
  49573. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  49574. + cwrapper="$output_path/$output_name.exe"
  49575. + $RM $cwrappersource $cwrapper
  49576. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  49577. +
  49578. + func_emit_cwrapperexe_src > $cwrappersource
  49579. +
  49580. + # The wrapper executable is built using the $host compiler,
  49581. + # because it contains $host paths and files. If cross-
  49582. + # compiling, it, like the target executable, must be
  49583. + # executed on the $host or under an emulation environment.
  49584. + $opt_dry_run || {
  49585. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  49586. + $STRIP $cwrapper
  49587. + }
  49588. - for file in $staticlibs; do
  49589. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49590. + # Now, create the wrapper script for func_source use:
  49591. + func_ltwrapper_scriptname $cwrapper
  49592. + $RM $func_ltwrapper_scriptname_result
  49593. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  49594. + $opt_dry_run || {
  49595. + # note: this script will not be executed, so do not chmod.
  49596. + if test "x$build" = "x$host" ; then
  49597. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  49598. + else
  49599. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  49600. + fi
  49601. + }
  49602. + ;;
  49603. + * )
  49604. + $RM $output
  49605. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  49606. - # Set up the ranlib parameters.
  49607. - oldlib="$destdir/$name"
  49608. + func_emit_wrapper no > $output
  49609. + chmod +x $output
  49610. + ;;
  49611. + esac
  49612. + }
  49613. + exit $EXIT_SUCCESS
  49614. + ;;
  49615. + esac
  49616. - $show "$install_prog $file $oldlib"
  49617. - $run eval "$install_prog \$file \$oldlib" || exit $?
  49618. + # See if we need to build an old-fashioned archive.
  49619. + for oldlib in $oldlibs; do
  49620. - if test -n "$stripme" && test -n "$old_striplib"; then
  49621. - $show "$old_striplib $oldlib"
  49622. - $run eval "$old_striplib $oldlib" || exit $?
  49623. + if test "$build_libtool_libs" = convenience; then
  49624. + oldobjs="$libobjs_save $symfileobj"
  49625. + addlibs="$convenience"
  49626. + build_libtool_libs=no
  49627. + else
  49628. + if test "$build_libtool_libs" = module; then
  49629. + oldobjs="$libobjs_save"
  49630. + build_libtool_libs=no
  49631. + else
  49632. + oldobjs="$old_deplibs $non_pic_objects"
  49633. + if test "$preload" = yes && test -f "$symfileobj"; then
  49634. + oldobjs="$oldobjs $symfileobj"
  49635. + fi
  49636. + fi
  49637. + addlibs="$old_convenience"
  49638. fi
  49639. - # Do each command in the postinstall commands.
  49640. - cmds=$old_postinstall_cmds
  49641. - save_ifs="$IFS"; IFS='~'
  49642. - for cmd in $cmds; do
  49643. - IFS="$save_ifs"
  49644. - eval cmd=\"$cmd\"
  49645. - $show "$cmd"
  49646. - $run eval "$cmd" || exit $?
  49647. - done
  49648. - IFS="$save_ifs"
  49649. - done
  49650. + if test -n "$addlibs"; then
  49651. + gentop="$output_objdir/${outputname}x"
  49652. + generated="$generated $gentop"
  49653. - if test -n "$future_libdirs"; then
  49654. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  49655. - fi
  49656. + func_extract_archives $gentop $addlibs
  49657. + oldobjs="$oldobjs $func_extract_archives_result"
  49658. + fi
  49659. - if test -n "$current_libdirs"; then
  49660. - # Maybe just do a dry run.
  49661. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  49662. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  49663. - else
  49664. - exit $EXIT_SUCCESS
  49665. - fi
  49666. - ;;
  49667. + # Do each command in the archive commands.
  49668. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  49669. + cmds=$old_archive_from_new_cmds
  49670. + else
  49671. - # libtool finish mode
  49672. - finish)
  49673. - modename="$modename: finish"
  49674. - libdirs="$nonopt"
  49675. - admincmds=
  49676. + # Add any objects from preloaded convenience libraries
  49677. + if test -n "$dlprefiles"; then
  49678. + gentop="$output_objdir/${outputname}x"
  49679. + generated="$generated $gentop"
  49680. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  49681. - for dir
  49682. - do
  49683. - libdirs="$libdirs $dir"
  49684. - done
  49685. + func_extract_archives $gentop $dlprefiles
  49686. + oldobjs="$oldobjs $func_extract_archives_result"
  49687. + fi
  49688. - for libdir in $libdirs; do
  49689. - if test -n "$finish_cmds"; then
  49690. - # Do each command in the finish commands.
  49691. - cmds=$finish_cmds
  49692. - save_ifs="$IFS"; IFS='~'
  49693. - for cmd in $cmds; do
  49694. - IFS="$save_ifs"
  49695. - eval cmd=\"$cmd\"
  49696. - $show "$cmd"
  49697. - $run eval "$cmd" || admincmds="$admincmds
  49698. - $cmd"
  49699. + # POSIX demands no paths to be encoded in archives. We have
  49700. + # to avoid creating archives with duplicate basenames if we
  49701. + # might have to extract them afterwards, e.g., when creating a
  49702. + # static archive out of a convenience library, or when linking
  49703. + # the entirety of a libtool archive into another (currently
  49704. + # not supported by libtool).
  49705. + if (for obj in $oldobjs
  49706. + do
  49707. + func_basename "$obj"
  49708. + $ECHO "$func_basename_result"
  49709. + done | sort | sort -uc >/dev/null 2>&1); then
  49710. + :
  49711. + else
  49712. + $ECHO "copying selected object files to avoid basename conflicts..."
  49713. + gentop="$output_objdir/${outputname}x"
  49714. + generated="$generated $gentop"
  49715. + func_mkdir_p "$gentop"
  49716. + save_oldobjs=$oldobjs
  49717. + oldobjs=
  49718. + counter=1
  49719. + for obj in $save_oldobjs
  49720. + do
  49721. + func_basename "$obj"
  49722. + objbase="$func_basename_result"
  49723. + case " $oldobjs " in
  49724. + " ") oldobjs=$obj ;;
  49725. + *[\ /]"$objbase "*)
  49726. + while :; do
  49727. + # Make sure we don't pick an alternate name that also
  49728. + # overlaps.
  49729. + newobj=lt$counter-$objbase
  49730. + func_arith $counter + 1
  49731. + counter=$func_arith_result
  49732. + case " $oldobjs " in
  49733. + *[\ /]"$newobj "*) ;;
  49734. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  49735. + esac
  49736. + done
  49737. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  49738. + oldobjs="$oldobjs $gentop/$newobj"
  49739. + ;;
  49740. + *) oldobjs="$oldobjs $obj" ;;
  49741. + esac
  49742. done
  49743. - IFS="$save_ifs"
  49744. - fi
  49745. - if test -n "$finish_eval"; then
  49746. - # Do the single finish_eval.
  49747. - eval cmds=\"$finish_eval\"
  49748. - $run eval "$cmds" || admincmds="$admincmds
  49749. - $cmds"
  49750. fi
  49751. - done
  49752. - fi
  49753. -
  49754. - # Exit here if they wanted silent mode.
  49755. - test "$show" = : && exit $EXIT_SUCCESS
  49756. + eval cmds=\"$old_archive_cmds\"
  49757. - $echo "X----------------------------------------------------------------------" | $Xsed
  49758. - $echo "Libraries have been installed in:"
  49759. - for libdir in $libdirs; do
  49760. - $echo " $libdir"
  49761. + func_len " $cmds"
  49762. + len=$func_len_result
  49763. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  49764. + cmds=$old_archive_cmds
  49765. + else
  49766. + # the command line is too long to link in one step, link in parts
  49767. + func_verbose "using piecewise archive linking..."
  49768. + save_RANLIB=$RANLIB
  49769. + RANLIB=:
  49770. + objlist=
  49771. + concat_cmds=
  49772. + save_oldobjs=$oldobjs
  49773. + oldobjs=
  49774. + # Is there a better way of finding the last object in the list?
  49775. + for obj in $save_oldobjs
  49776. + do
  49777. + last_oldobj=$obj
  49778. + done
  49779. + eval test_cmds=\"$old_archive_cmds\"
  49780. + func_len " $test_cmds"
  49781. + len0=$func_len_result
  49782. + len=$len0
  49783. + for obj in $save_oldobjs
  49784. + do
  49785. + func_len " $obj"
  49786. + func_arith $len + $func_len_result
  49787. + len=$func_arith_result
  49788. + func_append objlist " $obj"
  49789. + if test "$len" -lt "$max_cmd_len"; then
  49790. + :
  49791. + else
  49792. + # the above command should be used before it gets too long
  49793. + oldobjs=$objlist
  49794. + if test "$obj" = "$last_oldobj" ; then
  49795. + RANLIB=$save_RANLIB
  49796. + fi
  49797. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  49798. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  49799. + objlist=
  49800. + len=$len0
  49801. + fi
  49802. + done
  49803. + RANLIB=$save_RANLIB
  49804. + oldobjs=$objlist
  49805. + if test "X$oldobjs" = "X" ; then
  49806. + eval cmds=\"\$concat_cmds\"
  49807. + else
  49808. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  49809. + fi
  49810. + fi
  49811. + fi
  49812. + func_execute_cmds "$cmds" 'exit $?'
  49813. done
  49814. - $echo
  49815. - $echo "If you ever happen to want to link against installed libraries"
  49816. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  49817. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  49818. - $echo "flag during linking and do at least one of the following:"
  49819. - if test -n "$shlibpath_var"; then
  49820. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  49821. - $echo " during execution"
  49822. - fi
  49823. - if test -n "$runpath_var"; then
  49824. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  49825. - $echo " during linking"
  49826. - fi
  49827. - if test -n "$hardcode_libdir_flag_spec"; then
  49828. - libdir=LIBDIR
  49829. - eval flag=\"$hardcode_libdir_flag_spec\"
  49830. -
  49831. - $echo " - use the \`$flag' linker flag"
  49832. - fi
  49833. - if test -n "$admincmds"; then
  49834. - $echo " - have your system administrator run these commands:$admincmds"
  49835. - fi
  49836. - if test -f /etc/ld.so.conf; then
  49837. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  49838. - fi
  49839. - $echo
  49840. - $echo "See any operating system documentation about shared libraries for"
  49841. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  49842. - $echo "X----------------------------------------------------------------------" | $Xsed
  49843. - exit $EXIT_SUCCESS
  49844. - ;;
  49845. -
  49846. - # libtool execute mode
  49847. - execute)
  49848. - modename="$modename: execute"
  49849. - # The first argument is the command name.
  49850. - cmd="$nonopt"
  49851. - if test -z "$cmd"; then
  49852. - $echo "$modename: you must specify a COMMAND" 1>&2
  49853. - $echo "$help"
  49854. - exit $EXIT_FAILURE
  49855. - fi
  49856. + test -n "$generated" && \
  49857. + func_show_eval "${RM}r$generated"
  49858. - # Handle -dlopen flags immediately.
  49859. - for file in $execute_dlfiles; do
  49860. - if test ! -f "$file"; then
  49861. - $echo "$modename: \`$file' is not a file" 1>&2
  49862. - $echo "$help" 1>&2
  49863. - exit $EXIT_FAILURE
  49864. - fi
  49865. + # Now create the libtool archive.
  49866. + case $output in
  49867. + *.la)
  49868. + old_library=
  49869. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  49870. + func_verbose "creating $output"
  49871. - dir=
  49872. - case $file in
  49873. - *.la)
  49874. - # Check to see that this really is a libtool archive.
  49875. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49876. + # Preserve any variables that may affect compiler behavior
  49877. + for var in $variables_saved_for_relink; do
  49878. + if eval test -z \"\${$var+set}\"; then
  49879. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  49880. + elif eval var_value=\$$var; test -z "$var_value"; then
  49881. + relink_command="$var=; export $var; $relink_command"
  49882. else
  49883. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  49884. - $echo "$help" 1>&2
  49885. - exit $EXIT_FAILURE
  49886. + func_quote_for_eval "$var_value"
  49887. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  49888. fi
  49889. + done
  49890. + # Quote the link command for shipping.
  49891. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  49892. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  49893. + if test "$hardcode_automatic" = yes ; then
  49894. + relink_command=
  49895. + fi
  49896. - # Read the libtool library.
  49897. - dlname=
  49898. - library_names=
  49899. + # Only create the output if not a dry run.
  49900. + $opt_dry_run || {
  49901. + for installed in no yes; do
  49902. + if test "$installed" = yes; then
  49903. + if test -z "$install_libdir"; then
  49904. + break
  49905. + fi
  49906. + output="$output_objdir/$outputname"i
  49907. + # Replace all uninstalled libtool libraries with the installed ones
  49908. + newdependency_libs=
  49909. + for deplib in $dependency_libs; do
  49910. + case $deplib in
  49911. + *.la)
  49912. + func_basename "$deplib"
  49913. + name="$func_basename_result"
  49914. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49915. + test -z "$libdir" && \
  49916. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  49917. + newdependency_libs="$newdependency_libs $libdir/$name"
  49918. + ;;
  49919. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  49920. + esac
  49921. + done
  49922. + dependency_libs="$newdependency_libs"
  49923. + newdlfiles=
  49924. +
  49925. + for lib in $dlfiles; do
  49926. + case $lib in
  49927. + *.la)
  49928. + func_basename "$lib"
  49929. + name="$func_basename_result"
  49930. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  49931. + test -z "$libdir" && \
  49932. + func_fatal_error "\`$lib' is not a valid libtool archive"
  49933. + newdlfiles="$newdlfiles $libdir/$name"
  49934. + ;;
  49935. + *) newdlfiles="$newdlfiles $lib" ;;
  49936. + esac
  49937. + done
  49938. + dlfiles="$newdlfiles"
  49939. + newdlprefiles=
  49940. + for lib in $dlprefiles; do
  49941. + case $lib in
  49942. + *.la)
  49943. + # Only pass preopened files to the pseudo-archive (for
  49944. + # eventual linking with the app. that links it) if we
  49945. + # didn't already link the preopened objects directly into
  49946. + # the library:
  49947. + func_basename "$lib"
  49948. + name="$func_basename_result"
  49949. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  49950. + test -z "$libdir" && \
  49951. + func_fatal_error "\`$lib' is not a valid libtool archive"
  49952. + newdlprefiles="$newdlprefiles $libdir/$name"
  49953. + ;;
  49954. + esac
  49955. + done
  49956. + dlprefiles="$newdlprefiles"
  49957. + else
  49958. + newdlfiles=
  49959. + for lib in $dlfiles; do
  49960. + case $lib in
  49961. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  49962. + *) abs=`pwd`"/$lib" ;;
  49963. + esac
  49964. + newdlfiles="$newdlfiles $abs"
  49965. + done
  49966. + dlfiles="$newdlfiles"
  49967. + newdlprefiles=
  49968. + for lib in $dlprefiles; do
  49969. + case $lib in
  49970. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  49971. + *) abs=`pwd`"/$lib" ;;
  49972. + esac
  49973. + newdlprefiles="$newdlprefiles $abs"
  49974. + done
  49975. + dlprefiles="$newdlprefiles"
  49976. + fi
  49977. + $RM $output
  49978. + # place dlname in correct position for cygwin
  49979. + tdlname=$dlname
  49980. + case $host,$output,$installed,$module,$dlname in
  49981. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  49982. + esac
  49983. + $ECHO > $output "\
  49984. +# $outputname - a libtool library file
  49985. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49986. +#
  49987. +# Please DO NOT delete this file!
  49988. +# It is necessary for linking the library.
  49989. - # If there is no directory component, then add one.
  49990. - case $file in
  49991. - */* | *\\*) . $file ;;
  49992. - *) . ./$file ;;
  49993. - esac
  49994. +# The name that we can dlopen(3).
  49995. +dlname='$tdlname'
  49996. - # Skip this library if it cannot be dlopened.
  49997. - if test -z "$dlname"; then
  49998. - # Warn if it was a shared library.
  49999. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  50000. - continue
  50001. - fi
  50002. +# Names of this library.
  50003. +library_names='$library_names'
  50004. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  50005. - test "X$dir" = "X$file" && dir=.
  50006. +# The name of the static archive.
  50007. +old_library='$old_library'
  50008. - if test -f "$dir/$objdir/$dlname"; then
  50009. - dir="$dir/$objdir"
  50010. - else
  50011. - if test ! -f "$dir/$dlname"; then
  50012. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  50013. - exit $EXIT_FAILURE
  50014. - fi
  50015. - fi
  50016. - ;;
  50017. +# Linker flags that can not go in dependency_libs.
  50018. +inherited_linker_flags='$new_inherited_linker_flags'
  50019. - *.lo)
  50020. - # Just add the directory containing the .lo file.
  50021. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  50022. - test "X$dir" = "X$file" && dir=.
  50023. - ;;
  50024. +# Libraries that this one depends upon.
  50025. +dependency_libs='$dependency_libs'
  50026. - *)
  50027. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  50028. - continue
  50029. - ;;
  50030. - esac
  50031. +# Names of additional weak libraries provided by this library
  50032. +weak_library_names='$weak_libs'
  50033. - # Get the absolute pathname.
  50034. - absdir=`cd "$dir" && pwd`
  50035. - test -n "$absdir" && dir="$absdir"
  50036. +# Version information for $libname.
  50037. +current=$current
  50038. +age=$age
  50039. +revision=$revision
  50040. - # Now add the directory to shlibpath_var.
  50041. - if eval "test -z \"\$$shlibpath_var\""; then
  50042. - eval "$shlibpath_var=\"\$dir\""
  50043. - else
  50044. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  50045. - fi
  50046. - done
  50047. +# Is this an already installed library?
  50048. +installed=$installed
  50049. - # This variable tells wrapper scripts just to set shlibpath_var
  50050. - # rather than running their programs.
  50051. - libtool_execute_magic="$magic"
  50052. +# Should we warn about portability when linking against -modules?
  50053. +shouldnotlink=$module
  50054. - # Check if any of the arguments is a wrapper script.
  50055. - args=
  50056. - for file
  50057. - do
  50058. - case $file in
  50059. - -*) ;;
  50060. - *)
  50061. - # Do a test to see if this is really a libtool program.
  50062. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50063. - # If there is no directory component, then add one.
  50064. - case $file in
  50065. - */* | *\\*) . $file ;;
  50066. - *) . ./$file ;;
  50067. - esac
  50068. +# Files to dlopen/dlpreopen
  50069. +dlopen='$dlfiles'
  50070. +dlpreopen='$dlprefiles'
  50071. - # Transform arg to wrapped name.
  50072. - file="$progdir/$program"
  50073. - fi
  50074. - ;;
  50075. - esac
  50076. - # Quote arguments (to preserve shell metacharacters).
  50077. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  50078. - args="$args \"$file\""
  50079. - done
  50080. +# Directory that this library needs to be installed in:
  50081. +libdir='$install_libdir'"
  50082. + if test "$installed" = no && test "$need_relink" = yes; then
  50083. + $ECHO >> $output "\
  50084. +relink_command=\"$relink_command\""
  50085. + fi
  50086. + done
  50087. + }
  50088. - if test -z "$run"; then
  50089. - if test -n "$shlibpath_var"; then
  50090. - # Export the shlibpath_var.
  50091. - eval "export $shlibpath_var"
  50092. - fi
  50093. + # Do a symbolic link so that the libtool archive can be found in
  50094. + # LD_LIBRARY_PATH before the program is installed.
  50095. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  50096. + ;;
  50097. + esac
  50098. + exit $EXIT_SUCCESS
  50099. +}
  50100. - # Restore saved environment variables
  50101. - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  50102. - do
  50103. - eval "if test \"\${save_$lt_var+set}\" = set; then
  50104. - $lt_var=\$save_$lt_var; export $lt_var
  50105. - fi"
  50106. - done
  50107. +{ test "$mode" = link || test "$mode" = relink; } &&
  50108. + func_mode_link ${1+"$@"}
  50109. - # Now prepare to actually exec the command.
  50110. - exec_cmd="\$cmd$args"
  50111. - else
  50112. - # Display what would be done.
  50113. - if test -n "$shlibpath_var"; then
  50114. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  50115. - $echo "export $shlibpath_var"
  50116. - fi
  50117. - $echo "$cmd$args"
  50118. - exit $EXIT_SUCCESS
  50119. - fi
  50120. - ;;
  50121. - # libtool clean and uninstall mode
  50122. - clean | uninstall)
  50123. - modename="$modename: $mode"
  50124. - rm="$nonopt"
  50125. +# func_mode_uninstall arg...
  50126. +func_mode_uninstall ()
  50127. +{
  50128. + $opt_debug
  50129. + RM="$nonopt"
  50130. files=
  50131. rmforce=
  50132. exit_status=0
  50133. @@ -6547,30 +8209,28 @@
  50134. for arg
  50135. do
  50136. case $arg in
  50137. - -f) rm="$rm $arg"; rmforce=yes ;;
  50138. - -*) rm="$rm $arg" ;;
  50139. + -f) RM="$RM $arg"; rmforce=yes ;;
  50140. + -*) RM="$RM $arg" ;;
  50141. *) files="$files $arg" ;;
  50142. esac
  50143. done
  50144. - if test -z "$rm"; then
  50145. - $echo "$modename: you must specify an RM program" 1>&2
  50146. - $echo "$help" 1>&2
  50147. - exit $EXIT_FAILURE
  50148. - fi
  50149. + test -z "$RM" && \
  50150. + func_fatal_help "you must specify an RM program"
  50151. rmdirs=
  50152. origobjdir="$objdir"
  50153. for file in $files; do
  50154. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  50155. - if test "X$dir" = "X$file"; then
  50156. - dir=.
  50157. + func_dirname "$file" "" "."
  50158. + dir="$func_dirname_result"
  50159. + if test "X$dir" = X.; then
  50160. objdir="$origobjdir"
  50161. else
  50162. objdir="$dir/$origobjdir"
  50163. fi
  50164. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  50165. + func_basename "$file"
  50166. + name="$func_basename_result"
  50167. test "$mode" = uninstall && objdir="$dir"
  50168. # Remember objdir for removal later, being careful to avoid duplicates
  50169. @@ -6582,9 +8242,9 @@
  50170. fi
  50171. # Don't error if the file doesn't exist and rm -f was used.
  50172. - if (test -L "$file") >/dev/null 2>&1 \
  50173. - || (test -h "$file") >/dev/null 2>&1 \
  50174. - || test -f "$file"; then
  50175. + if { test -L "$file"; } >/dev/null 2>&1 ||
  50176. + { test -h "$file"; } >/dev/null 2>&1 ||
  50177. + test -f "$file"; then
  50178. :
  50179. elif test -d "$file"; then
  50180. exit_status=1
  50181. @@ -6598,8 +8258,8 @@
  50182. case $name in
  50183. *.la)
  50184. # Possibly a libtool archive, so verify it.
  50185. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50186. - . $dir/$name
  50187. + if func_lalib_p "$file"; then
  50188. + func_source $dir/$name
  50189. # Delete the libtool libraries and symlinks.
  50190. for n in $library_names; do
  50191. @@ -6614,39 +8274,17 @@
  50192. *" $dlname "*) ;;
  50193. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  50194. esac
  50195. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  50196. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  50197. ;;
  50198. uninstall)
  50199. if test -n "$library_names"; then
  50200. # Do each command in the postuninstall commands.
  50201. - cmds=$postuninstall_cmds
  50202. - save_ifs="$IFS"; IFS='~'
  50203. - for cmd in $cmds; do
  50204. - IFS="$save_ifs"
  50205. - eval cmd=\"$cmd\"
  50206. - $show "$cmd"
  50207. - $run eval "$cmd"
  50208. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  50209. - exit_status=1
  50210. - fi
  50211. - done
  50212. - IFS="$save_ifs"
  50213. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  50214. fi
  50215. if test -n "$old_library"; then
  50216. # Do each command in the old_postuninstall commands.
  50217. - cmds=$old_postuninstall_cmds
  50218. - save_ifs="$IFS"; IFS='~'
  50219. - for cmd in $cmds; do
  50220. - IFS="$save_ifs"
  50221. - eval cmd=\"$cmd\"
  50222. - $show "$cmd"
  50223. - $run eval "$cmd"
  50224. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  50225. - exit_status=1
  50226. - fi
  50227. - done
  50228. - IFS="$save_ifs"
  50229. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  50230. fi
  50231. # FIXME: should reinstall the best remaining shared library.
  50232. ;;
  50233. @@ -6656,20 +8294,20 @@
  50234. *.lo)
  50235. # Possibly a libtool object, so verify it.
  50236. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50237. + if func_lalib_p "$file"; then
  50238. # Read the .lo file
  50239. - . $dir/$name
  50240. + func_source $dir/$name
  50241. # Add PIC object to the list of files to remove.
  50242. - if test -n "$pic_object" \
  50243. - && test "$pic_object" != none; then
  50244. + if test -n "$pic_object" &&
  50245. + test "$pic_object" != none; then
  50246. rmfiles="$rmfiles $dir/$pic_object"
  50247. fi
  50248. # Add non-PIC object to the list of files to remove.
  50249. - if test -n "$non_pic_object" \
  50250. - && test "$non_pic_object" != none; then
  50251. + if test -n "$non_pic_object" &&
  50252. + test "$non_pic_object" != none; then
  50253. rmfiles="$rmfiles $dir/$non_pic_object"
  50254. fi
  50255. fi
  50256. @@ -6680,17 +8318,26 @@
  50257. noexename=$name
  50258. case $file in
  50259. *.exe)
  50260. - file=`$echo $file|${SED} 's,.exe$,,'`
  50261. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  50262. + func_stripname '' '.exe' "$file"
  50263. + file=$func_stripname_result
  50264. + func_stripname '' '.exe' "$name"
  50265. + noexename=$func_stripname_result
  50266. # $file with .exe has already been added to rmfiles,
  50267. # add $file without .exe
  50268. rmfiles="$rmfiles $file"
  50269. ;;
  50270. esac
  50271. # Do a test to see if this is a libtool program.
  50272. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50273. - relink_command=
  50274. - . $dir/$noexename
  50275. + if func_ltwrapper_p "$file"; then
  50276. + if func_ltwrapper_executable_p "$file"; then
  50277. + func_ltwrapper_scriptname "$file"
  50278. + relink_command=
  50279. + func_source $func_ltwrapper_scriptname_result
  50280. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  50281. + else
  50282. + relink_command=
  50283. + func_source $dir/$noexename
  50284. + fi
  50285. # note $name still contains .exe if it was in $file originally
  50286. # as does the version of $file that was added into $rmfiles
  50287. @@ -6705,239 +8352,38 @@
  50288. fi
  50289. ;;
  50290. esac
  50291. - $show "$rm $rmfiles"
  50292. - $run $rm $rmfiles || exit_status=1
  50293. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  50294. done
  50295. objdir="$origobjdir"
  50296. # Try to remove the ${objdir}s in the directories where we deleted files
  50297. for dir in $rmdirs; do
  50298. if test -d "$dir"; then
  50299. - $show "rmdir $dir"
  50300. - $run rmdir $dir >/dev/null 2>&1
  50301. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  50302. fi
  50303. done
  50304. exit $exit_status
  50305. - ;;
  50306. +}
  50307. - "")
  50308. - $echo "$modename: you must specify a MODE" 1>&2
  50309. - $echo "$generic_help" 1>&2
  50310. - exit $EXIT_FAILURE
  50311. - ;;
  50312. - esac
  50313. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  50314. + func_mode_uninstall ${1+"$@"}
  50315. - if test -z "$exec_cmd"; then
  50316. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  50317. - $echo "$generic_help" 1>&2
  50318. - exit $EXIT_FAILURE
  50319. - fi
  50320. -fi # test -z "$show_help"
  50321. +test -z "$mode" && {
  50322. + help="$generic_help"
  50323. + func_fatal_help "you must specify a MODE"
  50324. +}
  50325. +
  50326. +test -z "$exec_cmd" && \
  50327. + func_fatal_help "invalid operation mode \`$mode'"
  50328. if test -n "$exec_cmd"; then
  50329. - eval exec $exec_cmd
  50330. + eval exec "$exec_cmd"
  50331. exit $EXIT_FAILURE
  50332. fi
  50333. -# We need to display help for each of the modes.
  50334. -case $mode in
  50335. -"") $echo \
  50336. -"Usage: $modename [OPTION]... [MODE-ARG]...
  50337. -
  50338. -Provide generalized library-building support services.
  50339. -
  50340. - --config show all configuration variables
  50341. - --debug enable verbose shell tracing
  50342. --n, --dry-run display commands without modifying any files
  50343. - --features display basic configuration information and exit
  50344. - --finish same as \`--mode=finish'
  50345. - --help display this help message and exit
  50346. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  50347. - --quiet same as \`--silent'
  50348. - --silent don't print informational messages
  50349. - --tag=TAG use configuration variables from tag TAG
  50350. - --version print version information
  50351. -
  50352. -MODE must be one of the following:
  50353. -
  50354. - clean remove files from the build directory
  50355. - compile compile a source file into a libtool object
  50356. - execute automatically set library path, then run a program
  50357. - finish complete the installation of libtool libraries
  50358. - install install libraries or executables
  50359. - link create a library or an executable
  50360. - uninstall remove libraries from an installed directory
  50361. -
  50362. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  50363. -a more detailed description of MODE.
  50364. -
  50365. -Report bugs to <bug-libtool@gnu.org>."
  50366. - exit $EXIT_SUCCESS
  50367. - ;;
  50368. -
  50369. -clean)
  50370. - $echo \
  50371. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  50372. -
  50373. -Remove files from the build directory.
  50374. -
  50375. -RM is the name of the program to use to delete files associated with each FILE
  50376. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50377. -to RM.
  50378. -
  50379. -If FILE is a libtool library, object or program, all the files associated
  50380. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  50381. - ;;
  50382. -
  50383. -compile)
  50384. - $echo \
  50385. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  50386. -
  50387. -Compile a source file into a libtool library object.
  50388. -
  50389. -This mode accepts the following additional options:
  50390. -
  50391. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  50392. - -prefer-pic try to building PIC objects only
  50393. - -prefer-non-pic try to building non-PIC objects only
  50394. - -static always build a \`.o' file suitable for static linking
  50395. -
  50396. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  50397. -from the given SOURCEFILE.
  50398. -
  50399. -The output file name is determined by removing the directory component from
  50400. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  50401. -library object suffix, \`.lo'."
  50402. - ;;
  50403. -
  50404. -execute)
  50405. - $echo \
  50406. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  50407. -
  50408. -Automatically set library path, then run a program.
  50409. -
  50410. -This mode accepts the following additional options:
  50411. -
  50412. - -dlopen FILE add the directory containing FILE to the library path
  50413. -
  50414. -This mode sets the library path environment variable according to \`-dlopen'
  50415. -flags.
  50416. -
  50417. -If any of the ARGS are libtool executable wrappers, then they are translated
  50418. -into their corresponding uninstalled binary, and any of their required library
  50419. -directories are added to the library path.
  50420. -
  50421. -Then, COMMAND is executed, with ARGS as arguments."
  50422. - ;;
  50423. -
  50424. -finish)
  50425. - $echo \
  50426. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  50427. -
  50428. -Complete the installation of libtool libraries.
  50429. -
  50430. -Each LIBDIR is a directory that contains libtool libraries.
  50431. -
  50432. -The commands that this mode executes may require superuser privileges. Use
  50433. -the \`--dry-run' option if you just want to see what would be executed."
  50434. - ;;
  50435. -
  50436. -install)
  50437. - $echo \
  50438. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  50439. -
  50440. -Install executables or libraries.
  50441. -
  50442. -INSTALL-COMMAND is the installation command. The first component should be
  50443. -either the \`install' or \`cp' program.
  50444. -
  50445. -The rest of the components are interpreted as arguments to that command (only
  50446. -BSD-compatible install options are recognized)."
  50447. - ;;
  50448. -
  50449. -link)
  50450. - $echo \
  50451. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  50452. -
  50453. -Link object files or libraries together to form another library, or to
  50454. -create an executable program.
  50455. +exit $exit_status
  50456. -LINK-COMMAND is a command using the C compiler that you would use to create
  50457. -a program from several object files.
  50458. -
  50459. -The following components of LINK-COMMAND are treated specially:
  50460. -
  50461. - -all-static do not do any dynamic linking at all
  50462. - -avoid-version do not add a version suffix if possible
  50463. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  50464. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  50465. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  50466. - -export-symbols SYMFILE
  50467. - try to export only the symbols listed in SYMFILE
  50468. - -export-symbols-regex REGEX
  50469. - try to export only the symbols matching REGEX
  50470. - -LLIBDIR search LIBDIR for required installed libraries
  50471. - -lNAME OUTPUT-FILE requires the installed library libNAME
  50472. - -module build a library that can dlopened
  50473. - -no-fast-install disable the fast-install mode
  50474. - -no-install link a not-installable executable
  50475. - -no-undefined declare that a library does not refer to external symbols
  50476. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  50477. - -objectlist FILE Use a list of object files found in FILE to specify objects
  50478. - -precious-files-regex REGEX
  50479. - don't remove output files matching REGEX
  50480. - -release RELEASE specify package release information
  50481. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  50482. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  50483. - -static do not do any dynamic linking of uninstalled libtool libraries
  50484. - -static-libtool-libs
  50485. - do not do any dynamic linking of libtool libraries
  50486. - -version-info CURRENT[:REVISION[:AGE]]
  50487. - specify library version info [each variable defaults to 0]
  50488. -
  50489. -All other options (arguments beginning with \`-') are ignored.
  50490. -
  50491. -Every other argument is treated as a filename. Files ending in \`.la' are
  50492. -treated as uninstalled libtool libraries, other files are standard or library
  50493. -object files.
  50494. -
  50495. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  50496. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  50497. -required, except when creating a convenience library.
  50498. -
  50499. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  50500. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  50501. -
  50502. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  50503. -is created, otherwise an executable program is created."
  50504. - ;;
  50505. -
  50506. -uninstall)
  50507. - $echo \
  50508. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  50509. -
  50510. -Remove libraries from an installation directory.
  50511. -
  50512. -RM is the name of the program to use to delete files associated with each FILE
  50513. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50514. -to RM.
  50515. -
  50516. -If FILE is a libtool library, all the files associated with it are deleted.
  50517. -Otherwise, only FILE itself is deleted using RM."
  50518. - ;;
  50519. -
  50520. -*)
  50521. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  50522. - $echo "$help" 1>&2
  50523. - exit $EXIT_FAILURE
  50524. - ;;
  50525. -esac
  50526. -
  50527. -$echo
  50528. -$echo "Try \`$modename --help' for more information about other modes."
  50529. -
  50530. -exit $?
  50531. # The TAGs below are defined such that we never get into a situation
  50532. # in which we disable both kinds of libraries. Given conflicting
  50533. @@ -6951,14 +8397,17 @@
  50534. # configuration. But we'll never go from static-only to shared-only.
  50535. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  50536. -disable_libs=shared
  50537. +build_libtool_libs=no
  50538. +build_old_libs=yes
  50539. # ### END LIBTOOL TAG CONFIG: disable-shared
  50540. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  50541. -disable_libs=static
  50542. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  50543. # ### END LIBTOOL TAG CONFIG: disable-static
  50544. # Local Variables:
  50545. # mode:shell-script
  50546. # sh-indentation:2
  50547. # End:
  50548. +# vi:sw=2
  50549. +
  50550. diff -Nur cgilib-0.7.orig/Makefile.in cgilib-0.7/Makefile.in
  50551. --- cgilib-0.7.orig/Makefile.in 2009-02-08 19:47:04.000000000 +0100
  50552. +++ cgilib-0.7/Makefile.in 2011-02-21 14:57:58.653552166 +0100
  50553. @@ -1,8 +1,9 @@
  50554. -# Makefile.in generated by automake 1.10.1 from Makefile.am.
  50555. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  50556. # @configure_input@
  50557. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  50558. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  50559. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  50560. +# Inc.
  50561. # This Makefile.in is free software; the Free Software Foundation
  50562. # gives unlimited permission to copy and/or distribute it,
  50563. # with or without modifications, as long as this notice is preserved.
  50564. @@ -34,8 +35,9 @@
  50565. VPATH = @srcdir@
  50566. pkgdatadir = $(datadir)/@PACKAGE@
  50567. -pkglibdir = $(libdir)/@PACKAGE@
  50568. pkgincludedir = $(includedir)/@PACKAGE@
  50569. +pkglibdir = $(libdir)/@PACKAGE@
  50570. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  50571. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  50572. install_sh_DATA = $(install_sh) -c -m 644
  50573. install_sh_PROGRAM = $(install_sh) -c
  50574. @@ -54,7 +56,7 @@
  50575. subdir = .
  50576. DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
  50577. $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  50578. - $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL \
  50579. + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
  50580. config.guess config.sub depcomp install-sh ltmain.sh missing
  50581. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  50582. am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  50583. @@ -64,16 +66,31 @@
  50584. configure.lineno config.status.lineno
  50585. mkinstalldirs = $(install_sh) -d
  50586. CONFIG_CLEAN_FILES =
  50587. +CONFIG_CLEAN_VPATH_FILES =
  50588. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  50589. am__vpath_adj = case $$p in \
  50590. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  50591. *) f=$$p;; \
  50592. esac;
  50593. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  50594. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  50595. +am__install_max = 40
  50596. +am__nobase_strip_setup = \
  50597. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  50598. +am__nobase_strip = \
  50599. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  50600. +am__nobase_list = $(am__nobase_strip_setup); \
  50601. + for p in $$list; do echo "$$p $$p"; done | \
  50602. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  50603. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  50604. + if (++n[$$2] == $(am__install_max)) \
  50605. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  50606. + END { for (dir in files) print dir, files[dir] }'
  50607. +am__base_list = \
  50608. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  50609. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  50610. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
  50611. "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" \
  50612. "$(DESTDIR)$(includedir)"
  50613. -libLTLIBRARIES_INSTALL = $(INSTALL)
  50614. LTLIBRARIES = $(lib_LTLIBRARIES)
  50615. libcgi_la_LIBADD =
  50616. am_libcgi_la_OBJECTS = cgi.lo cookies.lo aux.lo
  50617. @@ -81,7 +98,6 @@
  50618. libcgi_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  50619. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  50620. $(libcgi_la_LDFLAGS) $(LDFLAGS) -o $@
  50621. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  50622. PROGRAMS = $(bin_PROGRAMS)
  50623. am_cgitest_OBJECTS = cgitest.$(OBJEXT)
  50624. cgitest_OBJECTS = $(am_cgitest_OBJECTS)
  50625. @@ -92,6 +108,7 @@
  50626. DEFAULT_INCLUDES = -I.@am__isrc@
  50627. depcomp = $(SHELL) $(top_srcdir)/depcomp
  50628. am__depfiles_maybe = depfiles
  50629. +am__mv = mv -f
  50630. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  50631. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  50632. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  50633. @@ -108,7 +125,6 @@
  50634. man5dir = $(mandir)/man5
  50635. NROFF = nroff
  50636. MANS = $(man_MANS)
  50637. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  50638. HEADERS = $(include_HEADERS)
  50639. ETAGS = etags
  50640. CTAGS = ctags
  50641. @@ -116,9 +132,9 @@
  50642. distdir = $(PACKAGE)-$(VERSION)
  50643. top_distdir = $(distdir)
  50644. am__remove_distdir = \
  50645. - { test ! -d $(distdir) \
  50646. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  50647. - && rm -fr $(distdir); }; }
  50648. + { test ! -d "$(distdir)" \
  50649. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  50650. + && rm -fr "$(distdir)"; }; }
  50651. DIST_ARCHIVES = $(distdir).tar.gz
  50652. GZIP_ENV = --best
  50653. distuninstallcheck_listfiles = find . -type f -print
  50654. @@ -135,43 +151,45 @@
  50655. CFLAGS = @CFLAGS@
  50656. CPP = @CPP@
  50657. CPPFLAGS = @CPPFLAGS@
  50658. -CXX = @CXX@
  50659. -CXXCPP = @CXXCPP@
  50660. -CXXDEPMODE = @CXXDEPMODE@
  50661. -CXXFLAGS = @CXXFLAGS@
  50662. CYGPATH_W = @CYGPATH_W@
  50663. DEFS = @DEFS@
  50664. DEPDIR = @DEPDIR@
  50665. DSYMUTIL = @DSYMUTIL@
  50666. -ECHO = @ECHO@
  50667. +DUMPBIN = @DUMPBIN@
  50668. ECHO_C = @ECHO_C@
  50669. ECHO_N = @ECHO_N@
  50670. ECHO_T = @ECHO_T@
  50671. EGREP = @EGREP@
  50672. EXEEXT = @EXEEXT@
  50673. -F77 = @F77@
  50674. -FFLAGS = @FFLAGS@
  50675. +FGREP = @FGREP@
  50676. GREP = @GREP@
  50677. INSTALL = @INSTALL@
  50678. INSTALL_DATA = @INSTALL_DATA@
  50679. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  50680. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  50681. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  50682. +LD = @LD@
  50683. LDFLAGS = @LDFLAGS@
  50684. LIBOBJS = @LIBOBJS@
  50685. LIBS = @LIBS@
  50686. LIBTOOL = @LIBTOOL@
  50687. +LIPO = @LIPO@
  50688. LN_S = @LN_S@
  50689. LTLIBOBJS = @LTLIBOBJS@
  50690. MAKEINFO = @MAKEINFO@
  50691. MKDIR_P = @MKDIR_P@
  50692. +NM = @NM@
  50693. NMEDIT = @NMEDIT@
  50694. +OBJDUMP = @OBJDUMP@
  50695. OBJEXT = @OBJEXT@
  50696. +OTOOL = @OTOOL@
  50697. +OTOOL64 = @OTOOL64@
  50698. PACKAGE = @PACKAGE@
  50699. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  50700. PACKAGE_NAME = @PACKAGE_NAME@
  50701. PACKAGE_STRING = @PACKAGE_STRING@
  50702. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  50703. +PACKAGE_URL = @PACKAGE_URL@
  50704. PACKAGE_VERSION = @PACKAGE_VERSION@
  50705. PATH_SEPARATOR = @PATH_SEPARATOR@
  50706. RANLIB = @RANLIB@
  50707. @@ -186,8 +204,7 @@
  50708. abs_top_builddir = @abs_top_builddir@
  50709. abs_top_srcdir = @abs_top_srcdir@
  50710. ac_ct_CC = @ac_ct_CC@
  50711. -ac_ct_CXX = @ac_ct_CXX@
  50712. -ac_ct_F77 = @ac_ct_F77@
  50713. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  50714. am__include = @am__include@
  50715. am__leading_dot = @am__leading_dot@
  50716. am__quote = @am__quote@
  50717. @@ -218,6 +235,7 @@
  50718. libexecdir = @libexecdir@
  50719. localedir = @localedir@
  50720. localstatedir = @localstatedir@
  50721. +lt_ECHO = @lt_ECHO@
  50722. mandir = @mandir@
  50723. mkdir_p = @mkdir_p@
  50724. oldincludedir = @oldincludedir@
  50725. @@ -230,6 +248,7 @@
  50726. srcdir = @srcdir@
  50727. sysconfdir = @sysconfdir@
  50728. target_alias = @target_alias@
  50729. +top_build_prefix = @top_build_prefix@
  50730. top_builddir = @top_builddir@
  50731. top_srcdir = @top_srcdir@
  50732. lib_LTLIBRARIES = libcgi.la
  50733. @@ -251,15 +270,15 @@
  50734. @for dep in $?; do \
  50735. case '$(am__configure_deps)' in \
  50736. *$$dep*) \
  50737. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  50738. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  50739. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  50740. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  50741. && exit 0; \
  50742. exit 1;; \
  50743. esac; \
  50744. done; \
  50745. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  50746. - cd $(top_srcdir) && \
  50747. - $(AUTOMAKE) --foreign Makefile
  50748. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  50749. + $(am__cd) $(top_srcdir) && \
  50750. + $(AUTOMAKE) --gnu Makefile
  50751. .PRECIOUS: Makefile
  50752. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  50753. @case '$?' in \
  50754. @@ -275,26 +294,31 @@
  50755. $(SHELL) ./config.status --recheck
  50756. $(top_srcdir)/configure: $(am__configure_deps)
  50757. - cd $(srcdir) && $(AUTOCONF)
  50758. + $(am__cd) $(srcdir) && $(AUTOCONF)
  50759. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  50760. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  50761. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  50762. +$(am__aclocal_m4_deps):
  50763. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  50764. @$(NORMAL_INSTALL)
  50765. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  50766. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  50767. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  50768. + list2=; for p in $$list; do \
  50769. if test -f $$p; then \
  50770. - f=$(am__strip_dir) \
  50771. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  50772. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  50773. + list2="$$list2 $$p"; \
  50774. else :; fi; \
  50775. - done
  50776. + done; \
  50777. + test -z "$$list2" || { \
  50778. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  50779. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  50780. + }
  50781. uninstall-libLTLIBRARIES:
  50782. @$(NORMAL_UNINSTALL)
  50783. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  50784. - p=$(am__strip_dir) \
  50785. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  50786. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  50787. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  50788. + for p in $$list; do \
  50789. + $(am__strip_dir) \
  50790. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  50791. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  50792. done
  50793. clean-libLTLIBRARIES:
  50794. @@ -310,31 +334,46 @@
  50795. install-binPROGRAMS: $(bin_PROGRAMS)
  50796. @$(NORMAL_INSTALL)
  50797. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  50798. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  50799. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  50800. - if test -f $$p \
  50801. - || test -f $$p1 \
  50802. - ; then \
  50803. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  50804. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  50805. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  50806. - else :; fi; \
  50807. - done
  50808. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  50809. + for p in $$list; do echo "$$p $$p"; done | \
  50810. + sed 's/$(EXEEXT)$$//' | \
  50811. + while read p p1; do if test -f $$p || test -f $$p1; \
  50812. + then echo "$$p"; echo "$$p"; else :; fi; \
  50813. + done | \
  50814. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  50815. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  50816. + sed 'N;N;N;s,\n, ,g' | \
  50817. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  50818. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  50819. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  50820. + else { print "f", $$3 "/" $$4, $$1; } } \
  50821. + END { for (d in files) print "f", d, files[d] }' | \
  50822. + while read type dir files; do \
  50823. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  50824. + test -z "$$files" || { \
  50825. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  50826. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  50827. + } \
  50828. + ; done
  50829. uninstall-binPROGRAMS:
  50830. @$(NORMAL_UNINSTALL)
  50831. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  50832. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  50833. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  50834. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  50835. - done
  50836. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  50837. + files=`for p in $$list; do echo "$$p"; done | \
  50838. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  50839. + -e 's/$$/$(EXEEXT)/' `; \
  50840. + test -n "$$list" || exit 0; \
  50841. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  50842. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  50843. clean-binPROGRAMS:
  50844. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  50845. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  50846. - echo " rm -f $$p $$f"; \
  50847. - rm -f $$p $$f ; \
  50848. - done
  50849. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  50850. + echo " rm -f" $$list; \
  50851. + rm -f $$list || exit $$?; \
  50852. + test -n "$(EXEEXT)" || exit 0; \
  50853. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  50854. + echo " rm -f" $$list; \
  50855. + rm -f $$list
  50856. cgitest$(EXEEXT): $(cgitest_OBJECTS) $(cgitest_DEPENDENCIES)
  50857. @rm -f cgitest$(EXEEXT)
  50858. $(LINK) $(cgitest_OBJECTS) $(cgitest_LDADD) $(LIBS)
  50859. @@ -355,21 +394,21 @@
  50860. .c.o:
  50861. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  50862. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50863. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50864. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  50865. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50866. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  50867. .c.obj:
  50868. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  50869. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50870. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  50871. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  50872. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50873. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  50874. .c.lo:
  50875. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  50876. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  50877. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  50878. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  50879. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  50880. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  50881. @@ -381,128 +420,117 @@
  50882. -rm -rf .libs _libs
  50883. distclean-libtool:
  50884. - -rm -f libtool
  50885. -install-man3: $(man3_MANS) $(man_MANS)
  50886. + -rm -f libtool config.lt
  50887. +install-man3: $(man_MANS)
  50888. @$(NORMAL_INSTALL)
  50889. test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
  50890. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  50891. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  50892. - for i in $$l2; do \
  50893. - case "$$i" in \
  50894. - *.3*) list="$$list $$i" ;; \
  50895. - esac; \
  50896. + @list=''; test -n "$(man3dir)" || exit 0; \
  50897. + { for i in $$list; do echo "$$i"; done; \
  50898. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  50899. + sed -n '/\.3[a-z]*$$/p'; \
  50900. + } | while read p; do \
  50901. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  50902. + echo "$$d$$p"; echo "$$p"; \
  50903. + done | \
  50904. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  50905. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  50906. + sed 'N;N;s,\n, ,g' | { \
  50907. + list=; while read file base inst; do \
  50908. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  50909. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  50910. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
  50911. + fi; \
  50912. done; \
  50913. - for i in $$list; do \
  50914. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  50915. - else file=$$i; fi; \
  50916. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  50917. - case "$$ext" in \
  50918. - 3*) ;; \
  50919. - *) ext='3' ;; \
  50920. - esac; \
  50921. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  50922. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  50923. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  50924. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
  50925. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
  50926. - done
  50927. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  50928. + while read files; do \
  50929. + test -z "$$files" || { \
  50930. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
  50931. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
  50932. + done; }
  50933. +
  50934. uninstall-man3:
  50935. @$(NORMAL_UNINSTALL)
  50936. - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
  50937. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  50938. - for i in $$l2; do \
  50939. - case "$$i" in \
  50940. - *.3*) list="$$list $$i" ;; \
  50941. - esac; \
  50942. - done; \
  50943. - for i in $$list; do \
  50944. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  50945. - case "$$ext" in \
  50946. - 3*) ;; \
  50947. - *) ext='3' ;; \
  50948. - esac; \
  50949. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  50950. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  50951. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  50952. - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
  50953. - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
  50954. - done
  50955. -install-man5: $(man5_MANS) $(man_MANS)
  50956. + @list=''; test -n "$(man3dir)" || exit 0; \
  50957. + files=`{ for i in $$list; do echo "$$i"; done; \
  50958. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  50959. + sed -n '/\.3[a-z]*$$/p'; \
  50960. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
  50961. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  50962. + test -z "$$files" || { \
  50963. + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
  50964. + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
  50965. +install-man5: $(man_MANS)
  50966. @$(NORMAL_INSTALL)
  50967. test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
  50968. - @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
  50969. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  50970. - for i in $$l2; do \
  50971. - case "$$i" in \
  50972. - *.5*) list="$$list $$i" ;; \
  50973. - esac; \
  50974. + @list=''; test -n "$(man5dir)" || exit 0; \
  50975. + { for i in $$list; do echo "$$i"; done; \
  50976. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  50977. + sed -n '/\.5[a-z]*$$/p'; \
  50978. + } | while read p; do \
  50979. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  50980. + echo "$$d$$p"; echo "$$p"; \
  50981. + done | \
  50982. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
  50983. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  50984. + sed 'N;N;s,\n, ,g' | { \
  50985. + list=; while read file base inst; do \
  50986. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  50987. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
  50988. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \
  50989. + fi; \
  50990. done; \
  50991. - for i in $$list; do \
  50992. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  50993. - else file=$$i; fi; \
  50994. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  50995. - case "$$ext" in \
  50996. - 5*) ;; \
  50997. - *) ext='5' ;; \
  50998. - esac; \
  50999. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  51000. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  51001. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  51002. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
  51003. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
  51004. - done
  51005. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  51006. + while read files; do \
  51007. + test -z "$$files" || { \
  51008. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \
  51009. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \
  51010. + done; }
  51011. +
  51012. uninstall-man5:
  51013. @$(NORMAL_UNINSTALL)
  51014. - @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
  51015. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  51016. - for i in $$l2; do \
  51017. - case "$$i" in \
  51018. - *.5*) list="$$list $$i" ;; \
  51019. - esac; \
  51020. - done; \
  51021. - for i in $$list; do \
  51022. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  51023. - case "$$ext" in \
  51024. - 5*) ;; \
  51025. - *) ext='5' ;; \
  51026. - esac; \
  51027. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  51028. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  51029. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  51030. - echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
  51031. - rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
  51032. - done
  51033. + @list=''; test -n "$(man5dir)" || exit 0; \
  51034. + files=`{ for i in $$list; do echo "$$i"; done; \
  51035. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  51036. + sed -n '/\.5[a-z]*$$/p'; \
  51037. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
  51038. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  51039. + test -z "$$files" || { \
  51040. + echo " ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \
  51041. + cd "$(DESTDIR)$(man5dir)" && rm -f $$files; }
  51042. install-includeHEADERS: $(include_HEADERS)
  51043. @$(NORMAL_INSTALL)
  51044. test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  51045. - @list='$(include_HEADERS)'; for p in $$list; do \
  51046. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  51047. + for p in $$list; do \
  51048. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  51049. - f=$(am__strip_dir) \
  51050. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  51051. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  51052. + echo "$$d$$p"; \
  51053. + done | $(am__base_list) | \
  51054. + while read files; do \
  51055. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  51056. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  51057. done
  51058. uninstall-includeHEADERS:
  51059. @$(NORMAL_UNINSTALL)
  51060. - @list='$(include_HEADERS)'; for p in $$list; do \
  51061. - f=$(am__strip_dir) \
  51062. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  51063. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  51064. - done
  51065. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  51066. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  51067. + test -n "$$files" || exit 0; \
  51068. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  51069. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  51070. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  51071. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51072. unique=`for i in $$list; do \
  51073. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  51074. done | \
  51075. - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
  51076. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51077. END { if (nonempty) { for (i in files) print i; }; }'`; \
  51078. mkid -fID $$unique
  51079. tags: TAGS
  51080. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  51081. $(TAGS_FILES) $(LISP)
  51082. - tags=; \
  51083. + set x; \
  51084. here=`pwd`; \
  51085. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51086. unique=`for i in $$list; do \
  51087. @@ -510,36 +538,54 @@
  51088. done | \
  51089. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51090. END { if (nonempty) { for (i in files) print i; }; }'`; \
  51091. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  51092. + shift; \
  51093. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  51094. test -n "$$unique" || unique=$$empty_fix; \
  51095. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51096. - $$tags $$unique; \
  51097. + if test $$# -gt 0; then \
  51098. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51099. + "$$@" $$unique; \
  51100. + else \
  51101. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  51102. + $$unique; \
  51103. + fi; \
  51104. fi
  51105. ctags: CTAGS
  51106. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  51107. $(TAGS_FILES) $(LISP)
  51108. - tags=; \
  51109. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  51110. unique=`for i in $$list; do \
  51111. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  51112. done | \
  51113. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  51114. END { if (nonempty) { for (i in files) print i; }; }'`; \
  51115. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  51116. + test -z "$(CTAGS_ARGS)$$unique" \
  51117. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  51118. - $$tags $$unique
  51119. + $$unique
  51120. GTAGS:
  51121. here=`$(am__cd) $(top_builddir) && pwd` \
  51122. - && cd $(top_srcdir) \
  51123. - && gtags -i $(GTAGS_ARGS) $$here
  51124. + && $(am__cd) $(top_srcdir) \
  51125. + && gtags -i $(GTAGS_ARGS) "$$here"
  51126. distclean-tags:
  51127. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  51128. distdir: $(DISTFILES)
  51129. + @list='$(MANS)'; if test -n "$$list"; then \
  51130. + list=`for p in $$list; do \
  51131. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  51132. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  51133. + if test -n "$$list" && \
  51134. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  51135. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  51136. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  51137. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  51138. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  51139. + exit 1; \
  51140. + else :; fi; \
  51141. + else :; fi
  51142. $(am__remove_distdir)
  51143. - test -d $(distdir) || mkdir $(distdir)
  51144. + test -d "$(distdir)" || mkdir "$(distdir)"
  51145. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51146. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  51147. list='$(DISTFILES)'; \
  51148. @@ -555,21 +601,27 @@
  51149. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  51150. if test -d $$d/$$file; then \
  51151. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  51152. + if test -d "$(distdir)/$$file"; then \
  51153. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51154. + fi; \
  51155. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  51156. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  51157. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  51158. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  51159. fi; \
  51160. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  51161. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  51162. else \
  51163. - test -f $(distdir)/$$file \
  51164. - || cp -p $$d/$$file $(distdir)/$$file \
  51165. + test -f "$(distdir)/$$file" \
  51166. + || cp -p $$d/$$file "$(distdir)/$$file" \
  51167. || exit 1; \
  51168. fi; \
  51169. done
  51170. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  51171. + -test -n "$(am__skip_mode_fix)" \
  51172. + || find "$(distdir)" -type d ! -perm -755 \
  51173. + -exec chmod u+rwx,go+rx {} \; -o \
  51174. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  51175. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  51176. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  51177. - || chmod -R a+r $(distdir)
  51178. + || chmod -R a+r "$(distdir)"
  51179. dist-gzip: distdir
  51180. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  51181. $(am__remove_distdir)
  51182. @@ -582,6 +634,10 @@
  51183. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  51184. $(am__remove_distdir)
  51185. +dist-xz: distdir
  51186. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  51187. + $(am__remove_distdir)
  51188. +
  51189. dist-tarZ: distdir
  51190. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  51191. $(am__remove_distdir)
  51192. @@ -605,15 +661,17 @@
  51193. distcheck: dist
  51194. case '$(DIST_ARCHIVES)' in \
  51195. *.tar.gz*) \
  51196. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  51197. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  51198. *.tar.bz2*) \
  51199. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  51200. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  51201. *.tar.lzma*) \
  51202. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  51203. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  51204. + *.tar.xz*) \
  51205. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  51206. *.tar.Z*) \
  51207. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  51208. *.shar.gz*) \
  51209. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  51210. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  51211. *.zip*) \
  51212. unzip $(distdir).zip ;;\
  51213. esac
  51214. @@ -621,9 +679,11 @@
  51215. mkdir $(distdir)/_build
  51216. mkdir $(distdir)/_inst
  51217. chmod a-w $(distdir)
  51218. + test -d $(distdir)/_build || exit 0; \
  51219. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  51220. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  51221. - && cd $(distdir)/_build \
  51222. + && am__cwd=`pwd` \
  51223. + && $(am__cd) $(distdir)/_build \
  51224. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  51225. $(DISTCHECK_CONFIGURE_FLAGS) \
  51226. && $(MAKE) $(AM_MAKEFLAGS) \
  51227. @@ -645,13 +705,15 @@
  51228. && rm -rf "$$dc_destdir" \
  51229. && $(MAKE) $(AM_MAKEFLAGS) dist \
  51230. && rm -rf $(DIST_ARCHIVES) \
  51231. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  51232. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  51233. + && cd "$$am__cwd" \
  51234. + || exit 1
  51235. $(am__remove_distdir)
  51236. @(echo "$(distdir) archives ready for distribution: "; \
  51237. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  51238. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  51239. distuninstallcheck:
  51240. - @cd $(distuninstallcheck_dir) \
  51241. + @$(am__cd) '$(distuninstallcheck_dir)' \
  51242. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  51243. || { echo "ERROR: files left after uninstall:" ; \
  51244. if test -n "$(DESTDIR)"; then \
  51245. @@ -697,6 +759,7 @@
  51246. distclean-generic:
  51247. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  51248. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  51249. maintainer-clean-generic:
  51250. @echo "This command is intended for maintainers to use"
  51251. @@ -719,6 +782,8 @@
  51252. html: html-am
  51253. +html-am:
  51254. +
  51255. info: info-am
  51256. info-am:
  51257. @@ -727,18 +792,28 @@
  51258. install-dvi: install-dvi-am
  51259. +install-dvi-am:
  51260. +
  51261. install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
  51262. install-html: install-html-am
  51263. +install-html-am:
  51264. +
  51265. install-info: install-info-am
  51266. +install-info-am:
  51267. +
  51268. install-man: install-man3 install-man5
  51269. install-pdf: install-pdf-am
  51270. +install-pdf-am:
  51271. +
  51272. install-ps: install-ps-am
  51273. +install-ps-am:
  51274. +
  51275. installcheck-am:
  51276. maintainer-clean: maintainer-clean-am
  51277. @@ -771,22 +846,24 @@
  51278. .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
  51279. clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
  51280. clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \
  51281. - dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \
  51282. - distclean-compile distclean-generic distclean-libtool \
  51283. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  51284. - dvi-am html html-am info info-am install install-am \
  51285. - install-binPROGRAMS install-data install-data-am install-dvi \
  51286. - install-dvi-am install-exec install-exec-am install-html \
  51287. - install-html-am install-includeHEADERS install-info \
  51288. - install-info-am install-libLTLIBRARIES install-man \
  51289. - install-man3 install-man5 install-pdf install-pdf-am \
  51290. - install-ps install-ps-am install-strip installcheck \
  51291. - installcheck-am installdirs maintainer-clean \
  51292. - maintainer-clean-generic mostlyclean mostlyclean-compile \
  51293. - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  51294. - tags uninstall uninstall-am uninstall-binPROGRAMS \
  51295. - uninstall-includeHEADERS uninstall-libLTLIBRARIES \
  51296. - uninstall-man uninstall-man3 uninstall-man5
  51297. + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
  51298. + distclean distclean-compile distclean-generic \
  51299. + distclean-libtool distclean-tags distcleancheck distdir \
  51300. + distuninstallcheck dvi dvi-am html html-am info info-am \
  51301. + install install-am install-binPROGRAMS install-data \
  51302. + install-data-am install-dvi install-dvi-am install-exec \
  51303. + install-exec-am install-html install-html-am \
  51304. + install-includeHEADERS install-info install-info-am \
  51305. + install-libLTLIBRARIES install-man install-man3 install-man5 \
  51306. + install-pdf install-pdf-am install-ps install-ps-am \
  51307. + install-strip installcheck installcheck-am installdirs \
  51308. + maintainer-clean maintainer-clean-generic mostlyclean \
  51309. + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  51310. + pdf pdf-am ps ps-am tags uninstall uninstall-am \
  51311. + uninstall-binPROGRAMS uninstall-includeHEADERS \
  51312. + uninstall-libLTLIBRARIES uninstall-man uninstall-man3 \
  51313. + uninstall-man5
  51314. +
  51315. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  51316. # Otherwise a system limit (for SysV at least) may be exceeded.
  51317. diff -Nur cgilib-0.7.orig/missing cgilib-0.7/missing
  51318. --- cgilib-0.7.orig/missing 2009-02-08 19:47:04.000000000 +0100
  51319. +++ cgilib-0.7/missing 2011-02-21 14:57:58.563559064 +0100
  51320. @@ -1,10 +1,10 @@
  51321. #! /bin/sh
  51322. # Common stub for a few missing GNU programs while installing.
  51323. -scriptversion=2006-05-10.23
  51324. +scriptversion=2009-04-28.21; # UTC
  51325. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  51326. -# Free Software Foundation, Inc.
  51327. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  51328. +# 2008, 2009 Free Software Foundation, Inc.
  51329. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  51330. # This program is free software; you can redistribute it and/or modify
  51331. @@ -18,9 +18,7 @@
  51332. # GNU General Public License for more details.
  51333. # You should have received a copy of the GNU General Public License
  51334. -# along with this program; if not, write to the Free Software
  51335. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  51336. -# 02110-1301, USA.
  51337. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  51338. # As a special exception to the GNU General Public License, if you
  51339. # distribute this file as part of a program that contains a
  51340. @@ -89,6 +87,9 @@
  51341. tar try tar, gnutar, gtar, then tar without non-portable flags
  51342. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  51343. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  51344. +\`g' are ignored when checking the name.
  51345. +
  51346. Send bug reports to <bug-automake@gnu.org>."
  51347. exit $?
  51348. ;;
  51349. @@ -106,15 +107,22 @@
  51350. esac
  51351. +# normalize program name to check for.
  51352. +program=`echo "$1" | sed '
  51353. + s/^gnu-//; t
  51354. + s/^gnu//; t
  51355. + s/^g//; t'`
  51356. +
  51357. # Now exit if we have it, but it failed. Also exit now if we
  51358. # don't have it and --version was passed (most likely to detect
  51359. -# the program).
  51360. +# the program). This is about non-GNU programs, so use $1 not
  51361. +# $program.
  51362. case $1 in
  51363. - lex|yacc)
  51364. + lex*|yacc*)
  51365. # Not GNU programs, they don't have --version.
  51366. ;;
  51367. - tar)
  51368. + tar*)
  51369. if test -n "$run"; then
  51370. echo 1>&2 "ERROR: \`tar' requires --run"
  51371. exit 1
  51372. @@ -138,7 +146,7 @@
  51373. # If it does not exist, or fails to run (possibly an outdated version),
  51374. # try to emulate it.
  51375. -case $1 in
  51376. +case $program in
  51377. aclocal*)
  51378. echo 1>&2 "\
  51379. WARNING: \`$1' is $msg. You should only need it if
  51380. @@ -148,7 +156,7 @@
  51381. touch aclocal.m4
  51382. ;;
  51383. - autoconf)
  51384. + autoconf*)
  51385. echo 1>&2 "\
  51386. WARNING: \`$1' is $msg. You should only need it if
  51387. you modified \`${configure_ac}'. You might want to install the
  51388. @@ -157,7 +165,7 @@
  51389. touch configure
  51390. ;;
  51391. - autoheader)
  51392. + autoheader*)
  51393. echo 1>&2 "\
  51394. WARNING: \`$1' is $msg. You should only need it if
  51395. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  51396. @@ -187,7 +195,7 @@
  51397. while read f; do touch "$f"; done
  51398. ;;
  51399. - autom4te)
  51400. + autom4te*)
  51401. echo 1>&2 "\
  51402. WARNING: \`$1' is needed, but is $msg.
  51403. You might have modified some files without having the
  51404. @@ -210,7 +218,7 @@
  51405. fi
  51406. ;;
  51407. - bison|yacc)
  51408. + bison*|yacc*)
  51409. echo 1>&2 "\
  51410. WARNING: \`$1' $msg. You should only need it if
  51411. you modified a \`.y' file. You may need the \`Bison' package
  51412. @@ -240,7 +248,7 @@
  51413. fi
  51414. ;;
  51415. - lex|flex)
  51416. + lex*|flex*)
  51417. echo 1>&2 "\
  51418. WARNING: \`$1' is $msg. You should only need it if
  51419. you modified a \`.l' file. You may need the \`Flex' package
  51420. @@ -263,7 +271,7 @@
  51421. fi
  51422. ;;
  51423. - help2man)
  51424. + help2man*)
  51425. echo 1>&2 "\
  51426. WARNING: \`$1' is $msg. You should only need it if
  51427. you modified a dependency of a manual page. You may need the
  51428. @@ -277,11 +285,11 @@
  51429. else
  51430. test -z "$file" || exec >$file
  51431. echo ".ab help2man is required to generate this page"
  51432. - exit 1
  51433. + exit $?
  51434. fi
  51435. ;;
  51436. - makeinfo)
  51437. + makeinfo*)
  51438. echo 1>&2 "\
  51439. WARNING: \`$1' is $msg. You should only need it if
  51440. you modified a \`.texi' or \`.texinfo' file, or any other file
  51441. @@ -310,7 +318,7 @@
  51442. touch $file
  51443. ;;
  51444. - tar)
  51445. + tar*)
  51446. shift
  51447. # We have already tried tar in the generic part.
  51448. @@ -363,5 +371,6 @@
  51449. # eval: (add-hook 'write-file-hooks 'time-stamp)
  51450. # time-stamp-start: "scriptversion="
  51451. # time-stamp-format: "%:y-%02m-%02d.%02H"
  51452. -# time-stamp-end: "$"
  51453. +# time-stamp-time-zone: "UTC"
  51454. +# time-stamp-end: "; # UTC"
  51455. # End: